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.vue | 22 ++++++++---
manifest.json | 2
pages/phyz/comOrder/checkOut.vue | 17 ++++++--
pages/phyz/orderOut/orderCheck_2.vue | 17 ++++++--
pages/phyz/processOrder/orderCheck.vue | 17 ++++++--
5 files changed, 56 insertions(+), 19 deletions(-)
diff --git a/manifest.json b/manifest.json
index 8f4f1e6..8230155 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"name" : "涓壃WMS",
"appid" : "__UNI__DA5854D",
"description" : "",
- "versionName" : "20250324A",
+ "versionName" : "20250530A",
"versionCode" : 146,
"transformPx" : false,
/* 5+App鐗规湁鐩稿叧 */
diff --git a/pages/phyz/comOrder/checkOut.vue b/pages/phyz/comOrder/checkOut.vue
index 980d50d..8977455 100644
--- a/pages/phyz/comOrder/checkOut.vue
+++ b/pages/phyz/comOrder/checkOut.vue
@@ -123,10 +123,19 @@
if (k == item) flag = true
}
if(!flag) {
- uni.showToast({ title: '褰撳墠绔欑偣瀛樺湪宸ヤ綔妗f棤娉曚娇鐢紝宸插浣�', 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);
+ }
}
},
// 璁㈠崟鏄庣粏
diff --git a/pages/phyz/orderOut/orderCheck.vue b/pages/phyz/orderOut/orderCheck.vue
index 7881bee..20342b1 100644
--- a/pages/phyz/orderOut/orderCheck.vue
+++ b/pages/phyz/orderOut/orderCheck.vue
@@ -125,14 +125,24 @@
staInput(item,items,index) {
var flag = false
for (let k of items) {
- if (k == item) flag = true
+ if (k == item) {
+ flag = true
+ }
}
- console.log(item);
if(!flag) {
- uni.showToast({ title: '褰撳墠绔欑偣瀛樺湪宸ヤ綔妗f棤娉曚娇鐢紝宸插浣�', 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);
+ }
}
},
// 璁㈠崟鏄庣粏
diff --git a/pages/phyz/orderOut/orderCheck_2.vue b/pages/phyz/orderOut/orderCheck_2.vue
index dbd064e..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: '褰撳墠绔欑偣瀛樺湪宸ヤ綔妗f棤娉曚娇鐢紝宸插浣�', 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);
+ }
}
},
// 璁㈠崟鏄庣粏
diff --git a/pages/phyz/processOrder/orderCheck.vue b/pages/phyz/processOrder/orderCheck.vue
index 6a91014..750ddda 100644
--- a/pages/phyz/processOrder/orderCheck.vue
+++ b/pages/phyz/processOrder/orderCheck.vue
@@ -123,10 +123,19 @@
if (k == item) flag = true
}
if(!flag) {
- uni.showToast({ title: '褰撳墠绔欑偣瀛樺湪宸ヤ綔妗f棤娉曚娇鐢紝宸插浣�', 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);
+ }
}
},
// 璁㈠崟鏄庣粏
--
Gitblit v1.9.1