From 0de302f651e3184f9999b9798359064dc39a0600 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期五, 30 五月 2025 14:27:43 +0800
Subject: [PATCH] 出库异常时,提示优化
---
pages/phyz/orderOut/orderCheck_2.vue | 28 +++++++++++++++++++---------
1 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/pages/phyz/orderOut/orderCheck_2.vue b/pages/phyz/orderOut/orderCheck_2.vue
index 9fa4e84..432e389 100644
--- a/pages/phyz/orderOut/orderCheck_2.vue
+++ b/pages/phyz/orderOut/orderCheck_2.vue
@@ -129,10 +129,19 @@
if (k == item) flag = true
}
if(!flag) {
- uni.showToast({ title: '褰撳墠绔欑偣鏃犳硶浣跨敤锛屽凡澶嶄綅', icon: "error", position: 'top' })
- setTimeout(() => {
- this.dataList[index].agvStaNo = ''
- }, 100);
+ var lev0 = this.dataList[index].locNo.substring(this.dataList[index].locNo.length-2);
+ var lev00 = item.substring(item.length-2);
+ if(lev0 != lev00){
+ uni.showToast({ title: '鎵弿鐨勭珯鐐瑰拰搴撲綅涓嶅湪鍚屼竴妤煎眰锛岃妫�鏌ユ暟鎹�', icon: "error", position: 'top' })
+ setTimeout(() => {
+ this.dataList[index].agvStaNo = ''
+ }, 100);
+ }else{
+ uni.showToast({ title: '褰撳墠绔欑偣鏃犳硶浣跨敤锛屽凡澶嶄綅', icon: "error", position: 'top' })
+ setTimeout(() => {
+ this.dataList[index].agvStaNo = ''
+ }, 100);
+ }
}
},
// 璁㈠崟鏄庣粏
@@ -152,14 +161,15 @@
k['count'] = k.anfme
k.agvStaNo = ''
k.anfme = 0
- if (_this.orderType == 'bcp') {
- if (k.locNo.substring(k.locNo.length - 1, k.locNo.length) == 1) {
- continue
- }
- }
+ // if (_this.orderType == 'bcp') {
+ // if (k.locNo.substring(k.locNo.length - 1, k.locNo.length) == 1) {
+ // continue
+ // }
+ // }
_this.dataList.push(k)
}
}
+ console.log(_this.dataList);
} else if (res.code == 403) {
uni.showToast({ title: res.msg, icon: "error", position: 'top' })
setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
--
Gitblit v1.9.1