From c5df53716b70b190e22e4016d952f1aec25c9049 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 06 五月 2025 13:13:08 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/devlop' into devlop

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

diff --git a/pages/listing/disc.vue b/pages/listing/disc.vue
index 5701357..114dd16 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,
+				batch:''
 			}
 		},
 		computed: {
@@ -148,18 +149,24 @@
 		mounted() {},
 		methods: {
 			async search() {
-				const find = this.list.find(el => el.trackCode === this.barcode);
+				if (this.barcode == undefined || this.barcode == '') {
+					uni.showToast({
+						icon: "none",
+						title: '鐗╂枡鏍囩涓嶈兘涓虹┖锛侊紒'
+					})
+					return
+				}
+				const find = this.list.find(el => el.trackCode === this.barcode);
 				find ? this.scrollTo() : 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);
@@ -171,7 +178,14 @@
 					})
 				}
 			},
-			async getList() {
+			async getList() {
+				if (this.container == undefined || this.container == '') {
+					uni.showToast({
+						icon: "none",
+						title: '瀹瑰櫒鍙蜂笉鑳戒负绌猴紒锛�'
+					})
+					return
+				}
 				const {
 					code,
 					data,
@@ -232,7 +246,7 @@
 					msg
 				} = await request('/waitPakin/merge', {
 					items: newArr,
-					barcode: this.container,
+					barcode: this.container,
 					batch: this.batch,
 				})
 				if (code === 200) {

--
Gitblit v1.9.1