From bbae990ed1f4574fa954753faeae159052d03fba Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期二, 27 一月 2026 16:14:06 +0800
Subject: [PATCH] 待我审核增加销售订单,采购订单

---
 components/ZLGL/InspectValueTemplate.vue |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/components/ZLGL/InspectValueTemplate.vue b/components/ZLGL/InspectValueTemplate.vue
index 9c073c8..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,21 +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