From 7de2d9a4a7b2f97dcbda3cf9a78643854c94318f Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期四, 25 十二月 2025 10:03:32 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 components/ZLGL/InspectValueTemplate.vue |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 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()

--
Gitblit v1.9.1