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 | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/pages/listing/disc.vue b/pages/listing/disc.vue
index 6730113..ee12153 100644
--- a/pages/listing/disc.vue
+++ b/pages/listing/disc.vue
@@ -137,7 +137,7 @@
batch: '',
repeatClick: false,
isconfirm: false,
- batch:''
+
}
},
computed: {
@@ -149,9 +149,14 @@
mounted() {},
methods: {
async search() {
- const find = this.list.find(el => el.trackCode === this.barcode);
- find ? this.scrollTo() : this.getDet();
-
+ if (this.barcode == undefined || this.barcode == '') {
+ uni.showToast({
+ icon: "none",
+ title: '鐗╂枡鏍囩涓嶈兘涓虹┖锛侊紒'
+ })
+ return
+ }
+ this.getDet();
},
async getDet() {
const {
@@ -163,7 +168,7 @@
batch: this.batch
}, "post")
if (code === 200) {
- data && this.list.push(data);
+ this.list = data
} else {
uni.showToast({
title: msg,
@@ -172,7 +177,14 @@
})
}
},
- async getList() {
+ async getList() {
+ if (this.container == undefined || this.container == '') {
+ uni.showToast({
+ icon: "none",
+ title: '瀹瑰櫒鍙蜂笉鑳戒负绌猴紒锛�'
+ })
+ return
+ }
const {
code,
data,
--
Gitblit v1.9.1