From 7a0ec3521c40d3037bfd5e716ed8984244f9dd82 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 22 十二月 2025 16:10:02 +0800
Subject: [PATCH] APP来料,入库,出库检验单主表添加添加检验数量字段,添加源单数量字段 修正 APP来料检验单源单类型未赋值的问题 修正 APP来料检验单检测值没有保 修正 生产入库 来料 出厂 检验 检测值输入结论不会变化 单据类型添加缓存功能,默认根据用户上一次选择的来

---
 components/ZLGL/InspectValueTemplate.vue                     |   24 +++++
 pages/ZLGL/chuchangjiaoyandan/QC_OutCompCheckBill.vue        |   55 +++++++++++++
 pages/ZLGL/shengchanrukujiaoyan/QC_LastPieceCheckBill_v2.vue |   57 +++++++++++++-
 manifest.json                                                |    4 
 pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue             |   61 +++++++++++++--
 5 files changed, 182 insertions(+), 19 deletions(-)

diff --git a/components/ZLGL/InspectValueTemplate.vue b/components/ZLGL/InspectValueTemplate.vue
index 5310ff8..ec6b845 100644
--- a/components/ZLGL/InspectValueTemplate.vue
+++ b/components/ZLGL/InspectValueTemplate.vue
@@ -201,7 +201,10 @@
                 mode
             } = this.bindData
             Object.assign(this.checkData, data, JSON.parse(JSON.stringify(this.bindData)))
-            this.checkData.HStatus = this.checkData.HStatus ? true : false
+            // 鍓嶆鑾峰彇HStatus鏃讹紝0鍜�1 鐨勭姸鎬佸潎鍒濆鍖栦负 true锛�2鐘舵�佸垵濮嬪寲涓篺alse
+            if(typeof this.checkData.HStatus == 'number'){
+                this.checkData.HStatus = this.checkData.HStatus <= 1 ? true : false
+            }
             this.checkData.HResult2 = this.checkData.HResult == 1 ? '鍚堟牸' : '涓嶅悎鏍�'
             this.mode = mode
             // 鍒ゆ柇鏄惁鏈夌紦瀛樻暟鎹垨鑰呯紦瀛樻暟鎹槸鍚︿笌鏍锋湰鏁颁竴鑷�
@@ -235,13 +238,17 @@
                 } else {
                     this.CheckResultClass = 'disabled'
                 }
+                // 鍚屾鐖剁粍浠剁殑瀵瑰簲妫�楠岄」鐩殑缁撹
+                this.$emit("syncInspectResult", {
+                    HResult2: newVal,
+                    bindKey: this.bindKey
+                })
             },
             
         },
         computed: {
             AnalysisMethodStatus: {
                 get() {
-                    console.log('this.checkData.HAnalysisMethod: ', this.checkData.HAnalysisMethod);
                     if (this.checkData.HAnalysisMethod == 1) {
                         return 1
                     } else if (this.checkData.HAnalysisMethod == 2) {
@@ -254,25 +261,38 @@
                 get(){
                     switch (this.mode){
                         case 1: return {
+                            // 棣栨
                             setUrl: '/QC_FirstPieceCheckBill/set_SaveValue',
                             getUrl: '/QC_ValueTable/getValueList'
                         }
                         case 2: return {
+                            // 宸℃
                             setUrl: '/QC_PatrolProcCheckOtherBill/set_SaveValue',
                             getUrl: '/QC_PatrolProcCheckOtherBill/getValueList'
                         }
 						case 3: return {
+                            // 鐢熶骇鍏ュ簱妫�
 						    setUrl: '/QC_LastPieceCheckBill/set_SaveValue',
 						    getUrl: '/QC_LastPieceCheckBill_ValueTable/getValueList'
 						}
 						case 4:return{
+                            // 鍑哄巶妫�
 							setUrl: '/QC_OutCompCheckBill/set_SaveValue',
 							getUrl: '/QC_OutCompCheckBill_ValueTable/getValueList'
 						}
+                        case 5:return{
+                            // 鏉ユ枡妫�
+                        	setUrl: '/QC_POStockInCheckBill/set_SaveValue',
+                        	getUrl: '/QC_POStockInCheckBill_ValueTable/getValueList'
+                        }
+                        case 6: return {
+                            // 鏈
+                        }
                     }
                 } 
             }
         },
+        
         beforeDestroy() {
             // 娉ㄩ攢鍓嶏紝鎻愪氦鏁版嵁鐨勬楠屽��
             this.set_SaveValue()
diff --git a/manifest.json b/manifest.json
index fe8c669..9454edb 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
     "name" : "鏅轰簯LMES",
     "appid" : "__UNI__B002F49",
     "description" : "",
-    "versionName" : "2.0.36",
-    "versionCode" : 236,
+    "versionName" : "2.0.37",
+    "versionCode" : 237,
     "transformPx" : false,
     /* 5+App鐗规湁鐩稿叧 */
     "app-plus" : {
diff --git a/pages/ZLGL/chuchangjiaoyandan/QC_OutCompCheckBill.vue b/pages/ZLGL/chuchangjiaoyandan/QC_OutCompCheckBill.vue
index c9e0b02..3b5fff0 100644
--- a/pages/ZLGL/chuchangjiaoyandan/QC_OutCompCheckBill.vue
+++ b/pages/ZLGL/chuchangjiaoyandan/QC_OutCompCheckBill.vue
@@ -45,6 +45,12 @@
                                 :disabled="hasSourceBill" size="20" @click="toBillSelector"></uni-icons>
                         </view>
                     </view>
+                    <view class="form-item">
+                        <view class="left">婧愬崟鏁伴噺</view>
+                        <view class="right disabled">
+                            <input type="number" v-model="hform.HSourceBillQty" />
+                        </view>
+                    </view>
                     <view class="form-item" v-if="false">
                         <view class="left">鐢熶骇璧勬簮</view>
                         <view class="right">
@@ -92,6 +98,12 @@
                         <view class="left">浜у搧鍚嶇О</view>
                         <view class="right disabled">
                             <input type="text" disabled :value="hform.HMaterName" />
+                        </view>
+                    </view>
+                    <view class="form-item">
+                        <view class="left">妫�楠屾暟閲�</view>
+                        <view class="right">
+                            <input type="number" v-model="hform.HCheckQty" />
                         </view>
                     </view>
                     <view class="form-item">
@@ -477,9 +489,9 @@
                 <view v-else v-for="item in InspectModules" :key="item.id">
                     <view v-if="subTabSelected == item.id">
                         <InspectValueTemplateVue ref="InspectValueModules" :bind-key="item.id"
-                            @syncCheckData="InspectValueComplete" :bind-data="{
+                            @syncCheckData="InspectValueComplete" @syncInspectResult="syncInspectResult" :bind-data="{
                 data: checkItems[item.checkItemId],
-                list: InspectValues[item.checkItemId],
+                list: InspectValues[item.checkItemId], 
                 mode: 4 // 妫�娴嬪�兼ā鍧�
               }">
                         </InspectValueTemplateVue>
@@ -645,6 +657,7 @@
                     HBillType: "7504",
                     HSourceBillType: "1401",
                     HSourceBillNo: "",
+                    HSourceBillQty: 0,
                     HBillNo: "",
                     HInterID: "0",
                     HDate: dayjs(new Date()).format("YYYY-MM-DD"),
@@ -687,6 +700,7 @@
                     HDeleteDate: "",
                     HResult: 1,
                     HAnalysisMethod: "",
+                    HCheckQty: 0,
 
                     HResDec: "",
                     HStatus: 1,
@@ -709,6 +723,29 @@
             };
         },
         methods: {
+            // 鍚屾妫�楠屽�兼楠岀粨鏋�
+            syncInspectResult(item) {
+                console.log(item)
+                // 涓哄尯鍒� 鏅�氶〉绛惧拰鍔ㄦ�佺敓鎴愰〉绛撅紝鍔ㄦ�佺敓鎴愰〉绛剧殑鍓嶉潰鍔犱笂_浣滀负鍖哄垎 鍦ㄨ繘琛屽洖濉殑鏃跺�欙紝闇�瑕佸幓闄� 
+                this.HResultChange(item.bindKey.substring(1, item.bindKey.length), {
+                    detail: {
+                        value: item.HResult2 == "鍚堟牸"
+                    }
+                })
+            },
+            // 璇诲彇缂撳瓨
+            loadCache() {
+                const pages = getCurrentPages()
+                // 鑾峰彇椤甸潰鏍堜腑鐨勬渶鍚庝竴涓厓绱狅紝涔熷氨鏄綋鍓嶆樉绀虹殑椤甸潰
+                const currentPage = pages[pages.length - 1]
+                let HBillTypeCache = uni.getStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`)
+                console.log('HBillTypeCache: ', HBillTypeCache);
+                if (HBillTypeCache) {
+                    this.HSourceBillType = HBillTypeCache.HSourceBillTypeName
+                    this.hform.HSourceBillType = HBillTypeCache.HSourceBillType
+                    this.hform.HMainSourceBillType = HBillTypeCache.HSourceBillType
+                }
+            },
             // 鏂板涓嶈壇鍘熷洜
             addBadReason() {
                 this.badReasons.push({
@@ -758,6 +795,7 @@
                         this.hform.HMainSourceEntryID = data[0].HEntryID
                         this.hform.HQCSchemeName = data[0].妫�楠屾柟妗堝悕绉�
                         this.hform.HQCSchemeID = data[0].妫�楠屾柟妗圛D
+                        this.hform.HSourceBillQty = data[0].HSourceBillQty
                         this.get_CheckItem();
                         this.hasSourceBill = true
                         this.$refs['billList'].exit()
@@ -803,6 +841,16 @@
             HSourceBillTypeNameChange(e) {
                 this.HSourceBillType = this.HSourceBillTypeNameList[e.detail.value];
                 this.hform.HSourceBillType = this.HSourceBillTypeValueList[e.detail.value];
+                this.hform.HMainSourceBillType = this.HSourceBillTypeValueList[e.detail.value];
+
+                const pages = getCurrentPages()
+                // 鑾峰彇椤甸潰鏍堜腑鐨勬渶鍚庝竴涓厓绱狅紝涔熷氨鏄綋鍓嶆樉绀虹殑椤甸潰
+                const currentPage = pages[pages.length - 1]
+                // 閫夋嫨婧愬崟绫诲瀷鍚� 缂撳瓨褰撳墠椤甸潰閫夋嫨
+                uni.setStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`, {
+                    HSourceBillTypeName: this.HSourceBillType,
+                    HSourceBillType: this.hform.HSourceBillType
+                })
             },
             toScanCode() {
                 MpaasScan.scanCode((res) => {
@@ -2190,7 +2238,7 @@
                             });
 
                         }
-                        
+
                         this.hasSourceBill = true
 
                         let resBadReason = await CommonUtils.doRequest2Async({
@@ -2238,6 +2286,7 @@
             await this.InitHSource();
             await this.InitHWorkShift();
             await this.InitHEmp();
+            await this.loadCache()
         },
     };
 </script>
diff --git a/pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue b/pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue
index d108428..216f481 100644
--- a/pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue
+++ b/pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue
@@ -44,7 +44,12 @@
                                 :disabled="hasSourceBill" size="20" @click="toBillSelector"></uni-icons>
                         </view>
                     </view>
-
+                    <view class="form-item">
+                        <view class="left">婧愬崟鏁伴噺</view>
+                        <view class="right disabled">
+                            <input type="number" v-model="hform.HSourceBillQty" />
+                        </view>
+                    </view>
                     <view class="form-item">
                         <view class="left">浠诲姟鍗曞彿</view>
                         <view class="right disabled">
@@ -79,6 +84,12 @@
                         <view class="left">浜у搧鍚嶇О</view>
                         <view class="right disabled">
                             <input type="text" disabled :value="hform.HMaterName" />
+                        </view>
+                    </view>
+                    <view class="form-item">
+                        <view class="left">妫�楠屾暟閲�</view>
+                        <view class="right">
+                            <input type="number" v-model="hform.HCheckQty" />
                         </view>
                     </view>
                     <view class="form-item">
@@ -478,10 +489,10 @@
                 <view v-else v-for="item in InspectModules" :key="item.id">
                     <view v-if="subTabSelected == item.id">
                         <InspectValueTemplateVue ref="InspectValueModules" :bind-key="item.id"
-                            @syncCheckData="InspectValueComplete" :bind-data="{
+                            @syncCheckData="InspectValueComplete" @syncInspectResult="syncInspectResult" :bind-data="{
                 data: checkItems[item.checkItemId],
                 list: InspectValues[item.checkItemId],
-                mode: 1 // 棣栨妫�娴嬪�兼ā鍧�
+                mode: 5 // 鏉ユ枡妫�娴嬪�兼ā鍧�
               }">
                         </InspectValueTemplateVue>
                     </view>
@@ -649,6 +660,7 @@
                     HBillType: '7503',
                     HSourceBillType: "1103",
                     HSourceBillNo: "",
+                    HSourceBillQty: 0,
                     HBillNo: "",
                     HInterID: "0",
                     HDate: dayjs(new Date()).format("YYYY-MM-DD"),
@@ -691,6 +703,7 @@
                     HDeleteDate: "",
                     HResult: 1,
                     HAnalysisMethod: "",
+                    HCheckQty: 0,
 
                     HResDec: "",
                     HStatus: 1,
@@ -713,6 +726,24 @@
             };
         },
         methods: {
+            //鍚屾妫�楠屽�兼楠岀粨鏋�
+            syncInspectResult(item) {
+                console.log(item)
+                // 涓哄尯鍒� 鏅�氶〉绛惧拰鍔ㄦ�佺敓鎴愰〉绛撅紝鍔ㄦ�佺敓鎴愰〉绛剧殑鍓嶉潰鍔犱笂_浣滀负鍖哄垎 鍦ㄨ繘琛屽洖濉殑鏃跺�欙紝闇�瑕佸幓闄� 
+                this.HResultChange(item.bindKey.substring(1, item.bindKey.length), {detail: {value: item.HResult2 == "鍚堟牸"}})
+            }, 
+            // 璇诲彇缂撳瓨
+            loadCache() {
+                const pages = getCurrentPages()
+                // 鑾峰彇椤甸潰鏍堜腑鐨勬渶鍚庝竴涓厓绱狅紝涔熷氨鏄綋鍓嶆樉绀虹殑椤甸潰
+                const currentPage = pages[pages.length - 1]
+                let HBillTypeCache = uni.getStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`)
+                if (HBillTypeCache) {
+                    this.HSourceBillType = HBillTypeCache.HSourceBillTypeName
+                    this.hform.HSourceBillType = HBillTypeCache.HSourceBillType
+                    this.hform.HMainSourceBillType = HBillTypeCache.HSourceBillType
+                }
+            },
             // 鏂板涓嶈壇鍘熷洜
             addBadReason() {
                 this.badReasons.push({
@@ -759,6 +790,7 @@
                         this.hform.HMainSourceEntryID = data[0].HEntryID
                         this.hform.HQCSchemeName = data[0].妫�楠屾柟妗堝悕绉�
                         this.hform.HQCSchemeID = data[0].妫�楠屾柟妗圛D
+                        this.hform.HSourceBillQty = data[0].HSourceBillQty
 
                         this.get_CheckItem();
                         this.hasSourceBill = true
@@ -805,6 +837,16 @@
             HSourceBillTypeNameChange(e) {
                 this.HSourceBillType = this.HSourceBillTypeNameList[e.detail.value];
                 this.hform.HSourceBillType = this.HSourceBillTypeValueList[e.detail.value];
+                this.hform.HMainSourceBillType = this.HSourceBillTypeValueList[e.detail.value];
+                
+                const pages = getCurrentPages()
+                // 鑾峰彇椤甸潰鏍堜腑鐨勬渶鍚庝竴涓厓绱狅紝涔熷氨鏄綋鍓嶆樉绀虹殑椤甸潰
+                const currentPage = pages[pages.length - 1]
+                // 閫夋嫨婧愬崟绫诲瀷鍚� 缂撳瓨褰撳墠椤甸潰閫夋嫨
+                uni.setStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`, {
+                    HSourceBillTypeName: this.HSourceBillType,
+                    HSourceBillType: this.hform.HSourceBillType
+                })
             },
             toScanCode() {
                 MpaasScan.scanCode((res) => {
@@ -847,6 +889,7 @@
                     this.hform.HMainSourceEntryID = data[0].HEntryID
                     this.hform.HQCSchemeName = data[0].妫�楠屾柟妗堝悕绉�
                     this.hform.HQCSchemeID = data[0].妫�楠屾柟妗圛D
+                    this.hform.HSourceBillQty = data[0].HSourceBillQty
                     this.hasSourceBill = true
                     this.get_CheckItem();
                 } else {
@@ -1013,7 +1056,7 @@
                 // 鐢熶骇璁㈠崟
                 try {
                     let res = await CommonUtils.doRequest2Async({
-                        url: "/QC_FirstPieceCheckBill/get_ICMOBill_ByBillNo",
+                        url: "/QC_POStockInCheckBill/get_ICMOBill_ByBillNo",
                         data: {
                             HBillNo: HBarCode,
                             user: getUserInfo()["Czymc"],
@@ -1112,7 +1155,7 @@
                 // 杩涚珯鎺ユ敹鍗�
                 try {
                     let res = await CommonUtils.doRequest2Async({
-                        url: "/QC_FirstPieceCheckBill/get_StationInBill_ByHBillNo",
+                        url: "/QC_POStockInCheckBill/get_StationInBill_ByHBillNo",
                         data: {
                             HBillNo: HBarCode,
                             user: getUserInfo()["Czymc"],
@@ -1427,7 +1470,7 @@
             },
             // 缁撹淇敼
             HResultChange(id, e) {
-                console.log("e: ", e);
+                console.log("e: ", e, "id: ", id);
                 this.checkItems[id]["HResult"] = e.detail.value ? 1 : 2;
 
                 this.HCheckLastResult();
@@ -1838,7 +1881,7 @@
                     let res = await CommonUtils.doRequest2Sync({
                         url: "/Web/GetMAXNum",
                         data: {
-                            HBillType: "7505",
+                            HBillType: "7503",
                         },
                     });
 
@@ -2040,7 +2083,7 @@
             async RoadBillMain() {
                 try {
                     let res = await CommonUtils.doRequest2Async({
-                        url: "/QC_FirstPieceCheckBill/QC_FirstPieceCheckBill_Edit",
+                        url: "/QC_POStockInCheckBill/QC_POStockInCheckBill_Edit",
                         data: {
                             sWhere: ` and hmainid=${this.hform.HInterID}`,
                             user: getUserInfo()["Czymc"],
@@ -2211,6 +2254,7 @@
         async onLoad(e) {
             this.operationType = e.operationType || 1;
             this.hform.HInterID = e.linterid || 0;
+            
             if (this.operationType == 1) {
                 await this.getMaxBillNo();
             } else if (this.operationType == 2) {} else if (this.operationType == 3) {
@@ -2220,6 +2264,7 @@
             await this.InitHSource();
             await this.InitHWorkShift();
             await this.InitHEmp();
+            await this.loadCache();
         },
     };
 </script>
diff --git a/pages/ZLGL/shengchanrukujiaoyan/QC_LastPieceCheckBill_v2.vue b/pages/ZLGL/shengchanrukujiaoyan/QC_LastPieceCheckBill_v2.vue
index f646d7f..dd75951 100644
--- a/pages/ZLGL/shengchanrukujiaoyan/QC_LastPieceCheckBill_v2.vue
+++ b/pages/ZLGL/shengchanrukujiaoyan/QC_LastPieceCheckBill_v2.vue
@@ -45,6 +45,12 @@
                                 :disabled="hasSourceBill" size="20" @click="toBillSelector"></uni-icons>
                         </view>
                     </view>
+                    <view class="form-item">
+                        <view class="left">婧愬崟鏁伴噺</view>
+                        <view class="right disabled">
+                            <input type="number" v-model="hform.HSourceBillQty" />
+                        </view>
+                    </view>
                     <view class="form-item" v-if="false">
                         <view class="left">鐢熶骇璧勬簮</view>
                         <view class="right">
@@ -92,6 +98,12 @@
                         <view class="left">浜у搧鍚嶇О</view>
                         <view class="right disabled">
                             <input type="text" disabled :value="hform.HMaterName" />
+                        </view>
+                    </view>
+                    <view class="form-item">
+                        <view class="left">妫�楠屾暟閲�</view>
+                        <view class="right">
+                            <input type="number" v-model="hform.HCheckQty" />
                         </view>
                     </view>
                     <view class="form-item">
@@ -477,10 +489,10 @@
                 <view v-else v-for="item in InspectModules" :key="item.id">
                     <view v-if="subTabSelected == item.id">
                         <InspectValueTemplateVue ref="InspectValueModules" :bind-key="item.id"
-                            @syncCheckData="InspectValueComplete" :bind-data="{
+                            @syncCheckData="InspectValueComplete" @syncInspectResult="syncInspectResult" :bind-data="{
                 data: checkItems[item.checkItemId],
                 list: InspectValues[item.checkItemId],
-                mode: 3 // 棣栨妫�娴嬪�兼ā鍧�
+                mode: 3 // 鍏ュ簱妫�妫�娴嬪�兼ā鍧�
               }">
                         </InspectValueTemplateVue>
                     </view>
@@ -644,6 +656,7 @@
                     HBillType: "7501",
                     HSourceBillType: "3711",
                     HSourceBillNo: "",
+                    HSourceBillQty: 0,
                     HBillNo: "",
                     HInterID: "0",
                     HDate: dayjs(new Date()).format("YYYY-MM-DD"),
@@ -686,6 +699,8 @@
                     HDeleteDate: "",
                     HResult: 1,
                     HAnalysisMethod: "",
+                    HCheckQty: 0,
+                    HRemarkSN: "",
 
                     HResDec: "",
                     HStatus: 1,
@@ -708,6 +723,28 @@
             };
         },
         methods: {
+            // 鍚屾妫�楠屽�兼楠岀粨鏋�
+            syncInspectResult(item) {
+                console.log(item)
+                // 涓哄尯鍒� 鏅�氶〉绛惧拰鍔ㄦ�佺敓鎴愰〉绛撅紝鍔ㄦ�佺敓鎴愰〉绛剧殑鍓嶉潰鍔犱笂_浣滀负鍖哄垎 鍦ㄨ繘琛屽洖濉殑鏃跺�欙紝闇�瑕佸幓闄� 
+                this.HResultChange(item.bindKey.substring(1, item.bindKey.length), {
+                    detail: {
+                        value: item.HResult2 == "鍚堟牸"
+                    }
+                })
+            },
+            // 璇诲彇缂撳瓨
+            loadCache() {
+                const pages = getCurrentPages()
+                // 鑾峰彇椤甸潰鏍堜腑鐨勬渶鍚庝竴涓厓绱狅紝涔熷氨鏄綋鍓嶆樉绀虹殑椤甸潰
+                const currentPage = pages[pages.length - 1]
+                let HBillTypeCache = uni.getStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`)
+                if (HBillTypeCache) {
+                    this.HSourceBillType = HBillTypeCache.HSourceBillTypeName
+                    this.hform.HSourceBillType = HBillTypeCache.HSourceBillType
+                    this.hform.HMainSourceBillType = HBillTypeCache.HSourceBillType
+                }
+            },
             // 鏂板涓嶈壇鍘熷洜
             addBadReason() {
                 this.badReasons.push({
@@ -767,6 +804,7 @@
                         this.hform.HQCSchemeID = data[0].妫�楠屾柟妗圛D
                         this.hform.HProcID = data[0]['HProcID']
                         this.hform.HProcName = data[0]['褰撳墠宸ュ簭']
+                        this.hform.HSourceBillQty = data[0].HSourceBillQty
                         this.hasSourceBill = true
                         this.get_CheckItem();
                         this.$refs['billList'].exit()
@@ -813,6 +851,15 @@
                 this.HSourceBillType = this.HSourceBillTypeNameList[e.detail.value];
                 this.hform.HSourceBillType = this.HSourceBillTypeValueList[e.detail.value];
                 this.hform.HMainSourceBillType = this.HSourceBillTypeValueList[e.detail.value];
+
+                const pages = getCurrentPages()
+                // 鑾峰彇椤甸潰鏍堜腑鐨勬渶鍚庝竴涓厓绱狅紝涔熷氨鏄綋鍓嶆樉绀虹殑椤甸潰
+                const currentPage = pages[pages.length - 1]
+                // 閫夋嫨婧愬崟绫诲瀷鍚� 缂撳瓨褰撳墠椤甸潰閫夋嫨
+                uni.setStorageSync(`${currentPage.route.split("/").pop()}_HSourceBillTypeCache`, {
+                    HSourceBillTypeName: this.HSourceBillType,
+                    HSourceBillType: this.hform.HSourceBillType
+                })
             },
             toScanCode() {
                 MpaasScan.scanCode((res) => {
@@ -857,6 +904,7 @@
                     this.hform.HQCSchemeID = data[0].妫�楠屾柟妗圛D
                     this.hform.HProcID = data[0]['HProcID']
                     this.hform.HProcName = data[0]['褰撳墠宸ュ簭']
+                    this.hform.HSourceBillQty = data[0].HSourceBillQty
                     this.hasSourceBill = true
                     this.get_CheckItem();
                 } else {
@@ -1999,7 +2047,7 @@
                                 if (res.confirm) {
                                     console.log("鐢ㄦ埛鐐瑰嚮纭畾");
                                     uni.redirectTo({
-                                        url: "/pages/JIAOYAN/shengchanrukujiaoyan/QC_LastPieceCheckBill_v2?operationType=1",
+                                        url: "/pages/ZLGL/shengchanrukujiaoyan/QC_LastPieceCheckBill_v2?operationType=1",
                                     });
                                 } else if (res.cancel) {
                                     console.log("鐢ㄦ埛鐐瑰嚮鍙栨秷");
@@ -2172,7 +2220,7 @@
                             });
 
                         }
-                        
+
                         this.hasSourceBill = true
                         let resBadReason = await CommonUtils.doRequest2Async({
                             url: '/QC_LastPieceCheckBill_BadReason/getBadReasonList',
@@ -2219,6 +2267,7 @@
             await this.InitHSource();
             await this.InitHWorkShift();
             await this.InitHEmp();
+            await this.loadCache()
         },
     };
 </script>

--
Gitblit v1.9.1