From f815627a748d2ec5f68f1579443e231acc6fd1ba Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 07 五月 2025 10:05:44 +0800
Subject: [PATCH] #物料组盘

---
 pages/listing/disc.vue |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/pages/listing/disc.vue b/pages/listing/disc.vue
index c67d0a6..ee12153 100644
--- a/pages/listing/disc.vue
+++ b/pages/listing/disc.vue
@@ -133,10 +133,11 @@
 				container: '',
 				megreQty: '',
 				list: [],
-				range: [],
+				range: [],
 				batch: '',
 				repeatClick: false,
-				isconfirm: false
+				isconfirm: false,
+				
 			}
 		},
 		computed: {
@@ -155,20 +156,19 @@
 					})
 					return
 				}
-				const find = this.list.find(el => el.trackCode === this.barcode);
-				find ? this.scrollTo() : this.getDet();
+				this.getDet();
 			},
 			async getDet() {
 				const {
 					code,
 					data,
 					msg
-				} = await request('/asnOrderItem/trackCode', {
-					code: this.barcode,
-					batch: this.batch
+				} = await request('/asnOrderItem/trackCode', {
+					code: this.barcode,
+					batch: this.batch
 				}, "post")
 				if (code === 200) {
-					data && this.list.push(data);
+					this.list = data
 				} else {
 					uni.showToast({
 						title: msg,
@@ -245,7 +245,7 @@
 					msg
 				} = await request('/waitPakin/merge', {
 					items: newArr,
-					barcode: this.container,
+					barcode: this.container,
 					batch: this.batch,
 				})
 				if (code === 200) {

--
Gitblit v1.9.1