From 3afe42dec5534422f2a99292542fbba86883b527 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期三, 14 五月 2025 13:47:25 +0800
Subject: [PATCH] 1.采购入库扫条码实现

---
 pages/wlgl/cgrk4.vue |   38 +++++++++++++-------------------------
 1 files changed, 13 insertions(+), 25 deletions(-)

diff --git a/pages/wlgl/cgrk4.vue b/pages/wlgl/cgrk4.vue
index 7e861fc..9ce0f3f 100644
--- a/pages/wlgl/cgrk4.vue
+++ b/pages/wlgl/cgrk4.vue
@@ -1,6 +1,6 @@
 <template>
 	<view>
-		<page-nav title="閲囪喘鍏ュ簱4"></page-nav>
+		<page-nav title="閲囪喘鍏ュ簱"></page-nav>
 
 		<view v-if='purchorderArr.length!==0' class="mainContent" style="">
 			<view>
@@ -393,8 +393,6 @@
 						i.stockcode = '' //浠撳簱
 						i.countInquantity2 = parseFloat(i.quantity) - parseFloat(i.countInquantity) +
 							parseFloat(i.countreturnquantity)
-
-						console.log(i.countInquantity)
 					})
 					this.purchorderArr = res.data
 					this.purchorderObj = this.purchorderArr[0]
@@ -504,19 +502,6 @@
 						"deptcode": i.deptcode,
 						"deptname": i.deptname,
 						children: i.children
-
-						// "hbarcode": "",
-						// "hbillno": "",
-						// "hqty": i.hqty,
-						// "hcustomercode": i.customercode,
-						// "hdeptcode": i.departmentcode,
-						// "partcode": i.partcode,
-						// "unitcode": i.unitcode,
-						// "hsourceid": i.orderid,
-						// "hsourcebillno": i.ordercode,
-
-						// "stockcode": this.purchorderObj.stockname2,
-						// "lcationcode": this.purchorderObj.lcationname2
 					})
 				})
 
@@ -524,20 +509,23 @@
 					return this.$u.toast('绗�' + count + '涓墿鏂欑殑鍏ュ簱鏁伴噺閿欒锛�')
 				}
 
-				console.log(JSON.stringify(data2))
+				// console.log(JSON.stringify(data2))
 
 				const res = await MesAppPurchInStorSave(this.global.formatData(
 					data1), data2)
 
 				if (res.code === '200') {
-					let prevPage = getCurrentPages()[getCurrentPages()
-						.length -
-						2]; // 涓婁竴椤甸潰瀹炰緥
-					prevPage.$vm
-						.getMesAppPurchOrderSearch() // 璋冪敤涓婁竴椤� 瀹氫箟鐨勬柟娉�
-					uni.navigateBack({
-						delta: 1, //杩斿洖灞傛暟锛�2鍒欎笂涓婇〉
-					})
+					this.$u.toast('鎻愪氦鎴愬姛锛�')
+					setTimeout(() => {
+						let prevPage = getCurrentPages()[getCurrentPages()
+							.length -
+							2]; // 涓婁竴椤甸潰瀹炰緥
+						prevPage.$vm
+							.getMesAppPurchOrderSearch() // 璋冪敤涓婁竴椤� 瀹氫箟鐨勬柟娉�
+						uni.navigateBack({
+							delta: 1, //杩斿洖灞傛暟锛�2鍒欎笂涓婇〉
+						})
+					}, 1000)
 				} else {
 					this.$u.toast(res.message)
 				}

--
Gitblit v1.9.3