From aa18e56c61efe7974b43ca26fc6185be3c39cb90 Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期四, 25 十二月 2025 10:02:58 +0800
Subject: [PATCH] 凯贝装箱单增加客户条码解析

---
 pages/zhuangxiangdan/form.vue |   58 +++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 43 insertions(+), 15 deletions(-)

diff --git a/pages/zhuangxiangdan/form.vue b/pages/zhuangxiangdan/form.vue
index 61ca8ad..a4aae1f 100644
--- a/pages/zhuangxiangdan/form.vue
+++ b/pages/zhuangxiangdan/form.vue
@@ -319,7 +319,7 @@
 			// 鏍规嵁绠辨潯鐮佽幏鍙栦俊鎭�
 			GetMeesageByBarCode_Pack(HBarCode_Pack) {
 				CommonUtils.doRequest2({
-					url: '/WEBSController/Get_PackBarCode_PackUnionBill_New_Json_Cus',
+					url: '/WEBSController/GetHBarCode_CusJX',
 					data: {
 						HInterID: this.hform.HInterID || 0,
 						HBillNo: this.hform.HBillNo,
@@ -336,20 +336,48 @@
 							list
 						} = res.data
 						if (count == 1) {
-							CommonUtils.playSound(1)
-							this.hform.HBillNo = data[0].HBillNo
-							this.hform.HInterID = data[0].HInterID
-							this.HMaterNumber_Pack = data[0].HMaterNumber
-							this.hform.HMaterName = data[0].HMaterName
-							// 璁剧疆鎬绘暟锛屽綋鍓嶆壂鎻忔暟閲忛�氳繃DisBillEntryList鏇存柊
-							const totalQty = data[0].HQty || 0
-							this.hform.HQtySum = `0/${totalQty}`
-							//澶勭悊鎴愬姛鍚庤仛鐒﹀埌浜у搧鐮佽緭鍏ユ
-							this.HBarCodeFocusRefresh()
-							this.DisBillEntryList();
-							uni.showToast({
-								icon: 'none',
-								title: Message
+							CommonUtils.doRequest2({
+								url: '/WEBSController/Get_PackBarCode_PackUnionBill_New_Json_Cus',
+								data: {
+									HInterID: this.hform.HInterID || 0,
+									HBillNo: this.hform.HBillNo,
+									HBillType: this.HBillType,
+									HBillSubType: this.HBillSubType,
+									HBarCode_Pack: HBarCode_Pack,
+									HSourceBillNo: this.hform.HSourceBillNo,
+								},
+								resFunction: (res) => {
+									let {
+										data,
+										count,
+										Message,
+										list
+									} = res.data
+									if (count == 1) {
+										CommonUtils.playSound(1)
+										this.hform.HBillNo = data[0].HBillNo
+										this.hform.HInterID = data[0].HInterID
+										this.HMaterNumber_Pack = data[0].HMaterNumber
+										this.hform.HMaterName = data[0].HMaterName
+										// 璁剧疆鎬绘暟锛屽綋鍓嶆壂鎻忔暟閲忛�氳繃DisBillEntryList鏇存柊
+										const totalQty = data[0].HQty || 0
+										this.hform.HQtySum = `0/${totalQty}`
+										//澶勭悊鎴愬姛鍚庤仛鐒﹀埌浜у搧鐮佽緭鍏ユ
+										this.HBarCodeFocusRefresh()
+										this.DisBillEntryList();
+										uni.showToast({
+											icon: 'none',
+											title: Message
+										})
+									} else {
+										CommonUtils.playSound(0)
+										this.HBarCodePackFocusRefresh()
+										uni.showToast({
+											icon: 'none',
+											title: Message
+										})
+									}
+								}
 							})
 						} else {
 							CommonUtils.playSound(0)

--
Gitblit v1.9.1