From b1cbc2ecd0b22014f54d0f7128bba9741b45814f Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期二, 07 五月 2024 16:25:14 +0800
Subject: [PATCH] #
---
pages/phyz/stationManage/pickAgain.vue | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/pages/phyz/stationManage/pickAgain.vue b/pages/phyz/stationManage/pickAgain.vue
index 0b0b72c..dfd1b5c 100644
--- a/pages/phyz/stationManage/pickAgain.vue
+++ b/pages/phyz/stationManage/pickAgain.vue
@@ -85,10 +85,12 @@
res = res.data
console.log(res);
if (res.code === 200) {
- let enbleList = []
+ let enbleList = [], isfl;
for (let k of res.data.records) {
+ isfl = false;
for (let j of _this.pickList) {
if (j.matnr == k.matnr && j.threeCode == k.threeCode) {
+ isfl = true;
break
} else {
if (k.stock == -1) {
@@ -99,8 +101,10 @@
}
k['count'] = 0
- enbleList.push(k)
}
+ }
+ if (!isfl) {
+ enbleList.push(k)
}
}
@@ -153,6 +157,17 @@
success(res) {
res = res.data
console.log(res);
+ if (res.code === 200) {
+ _this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: 1});
+ setTimeout(()=>{
+ uni.navigateBack()
+ },700)
+ } else if (res.code == 403) {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+ } else {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ }
}
})
}
--
Gitblit v1.9.1