From 2ad931a09f80d02608101967a63e43212ebfa8f5 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 06 五月 2025 13:41:13 +0800
Subject: [PATCH] #物料组盘
---
pages/listing/disc.vue | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/pages/listing/disc.vue b/pages/listing/disc.vue
index 6730113..d2debba 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,15 @@
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 {
@@ -163,7 +169,7 @@
batch: this.batch
}, "post")
if (code === 200) {
- data && this.list.push(data);
+ this.list = data
} else {
uni.showToast({
title: msg,
@@ -172,7 +178,14 @@
})
}
},
- async getList() {
+ async getList() {
+ if (this.container == undefined || this.container == '') {
+ uni.showToast({
+ icon: "none",
+ title: '瀹瑰櫒鍙蜂笉鑳戒负绌猴紒锛�'
+ })
+ return
+ }
const {
code,
data,
--
Gitblit v1.9.1