From a592652f3b2f820a8a783eefe4f8a74d5665aef0 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 30 三月 2026 17:19:10 +0800
Subject: [PATCH] 取样单调整 生产领料检验单调整

---
 pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue b/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
index 125c2a5..2848eb5 100644
--- a/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
+++ b/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBill.vue
@@ -191,7 +191,7 @@
 					HProcID: 0,
 					HQty: '',
 					HSampleDamageQty: 0,
-					TestType: 'first',
+					TestType: '棣栨',
 					HBadNote: '',
 					HDeptName: getUserInfo().HDeptName,
 					HDeptID: getUserInfo().HDeptID,
@@ -615,11 +615,11 @@
 						if (code == 1) {
 							this.HBarCode = ''
 							let data1 = data.h_v_Sc_ProcessExchangeBillList
-							this.hform = Object.assign(this.hform, {
+							Object.assign(this.hform, {
 								"HMaterID": data1[0].HMaterID, //浜у搧ID
 								"HMaterCode": data1[0].浜у搧浠g爜, //浜у搧浠g爜
 								"HMaterName": data1[0].浜у搧, //浜у搧鍚嶇О
-								"HMaterSpec": data1[0].瑙勬牸鍨嬪彿, //浜у搧瑙勬牸
+								"HMaterSpec": data1[0].瑙勬牸鍨嬪彿.replace(/["]/g, "'"), //浜у搧瑙勬牸
 								"HUnitID": data1[0].HUnitID, //璁¢噺鍗曚綅id
 								"HUnitName": data1[0].鍗曚綅, //璁¢噺鍗曚綅
 								"HMainSourceBillNo": data1[0].鍗曟嵁鍙�, //婧愬崟鍗曞彿
@@ -633,8 +633,9 @@
 								"HICMOBillNo": data1[0].浠诲姟鍗曞彿, //鐢熶骇璁㈠崟
 								"HDeptID": data1[0].HWorkShopID, //杞﹂棿ID
 								"HDeptName": data1[0].鐢熶骇杞﹂棿, //杞﹂棿
-
+                                "HSampleDamageQty": data1[0]["HSampleDamageQty"] || 0
 							})
+                            
 							if (data1 && data1.length === 1) {
 								// 鑾峰彇宸ュ簭ID
 								let procId = data1[0].HProcID
@@ -664,19 +665,22 @@
 				})
 			},
 			submit() {
+                console.log('this.hform: ',this.hform);
 				if (this.hform.HProcID == 0) {
 					return uni.showToast({
 						icon: 'none',
 						title: this.$t('QC_TakeSampleCheckBill.noProcess') == 'QC_TakeSampleCheckBill.noProcess' ? '宸ュ簭娌℃湁閫夋嫨' : this.$t('QC_TakeSampleCheckBill.noProcess')
 					})
 				}
-				if (this.hform.HQty == '') {
+				if (this.hform.HQty === '') {
 					return uni.showToast({
 						icon: 'none',
 						title: this.$t('QC_TakeSampleCheckBill.sampleQtyEmpty') == 'QC_TakeSampleCheckBill.sampleQtyEmpty' ? '鍙栨牱鏁伴噺涓嶈兘涓虹┖' : this.$t('QC_TakeSampleCheckBill.sampleQtyEmpty')
 					})
 				}
-				if (this.hform.HSampleDamageQty == '') {
+                console.log('this.hform.HSampleDamageQty: ',this.hform.HSampleDamageQty);
+                console.log('this.hform.HSampleDamageQty: ',this.hform.HSampleDamageQty == '');
+				if (this.hform.HSampleDamageQty === "") {
 					return uni.showToast({
 						icon: 'none',
 						title: this.$t('QC_TakeSampleCheckBill.damageQtyEmpty') == 'QC_TakeSampleCheckBill.damageQtyEmpty' ? '鐮村潖鎬у疄楠屾暟閲忎笉鑳戒负绌�' : this.$t('QC_TakeSampleCheckBill.damageQtyEmpty')

--
Gitblit v1.9.1