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 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) 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); + } } }, // 璁㈠崟鏄庣粏 -- Gitblit v1.9.1