From 4bfdb8f5d74e9b55360ed45db27f7f428b9d0b6b Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期二, 07 五月 2024 19:07:17 +0800 Subject: [PATCH] # --- pages/phyz/orderOut/orderList.vue | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/pages/phyz/orderOut/orderList.vue b/pages/phyz/orderOut/orderList.vue index 2f84f21..4ccecd6 100644 --- a/pages/phyz/orderOut/orderList.vue +++ b/pages/phyz/orderOut/orderList.vue @@ -6,6 +6,7 @@ <view> <view class="detl-threeCode">{{orderDetl.threeCode}}</view> <view class="detl-locNo">{{orderDetl.locNo}}</view> + <view class="detl-locNo">璐ф灦鐮侊細{{orderDetl.suppCode}}</view> </view> <!-- 涓� --> <view style="display: flex;"> @@ -13,6 +14,7 @@ <view>涓诲崟鍙凤細{{orderDetl.orderNo}}</view> <view>缂栧彿锛歿{orderDetl.matnr}}</view> <view>鍚嶇О锛歿{orderDetl.maktx}}</view> + <view>搴撲綅鐘舵�侊細{{orderDetl.locSts$}}</view> <view>搴撳瓨鏁伴噺锛歿{orderDetl.anfme}}</view> </view> <view class="out-btn" @click="pakoutPrive(orderDetl)"> @@ -78,9 +80,9 @@ console.log(res); if (res.code === 200) { for (let k of res.data) { - if (k.anfme > k.qty && k.qty == 0) { + if (k.locSts == "F") { k['color'] = 'order-sts-start' - } else if (k.anfme > k.qty && k.qty != 0) { + } else if (k.locSts != "F") { k['color'] = 'order-sts-working' } else { k['color'] = 'order-sts-end' @@ -88,6 +90,11 @@ k['id'] = id } _this.dataList = res.data + } 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' }) } } }) @@ -95,6 +102,10 @@ pakoutPrive(item) { let _this = this console.log(item); + if (item.locSts != 'F') { + uni.showToast({ title: '褰撳墠搴撲綅涓嶆槸鍦ㄥ簱鐘舵�侊紒', icon: "error", position: 'top' }) + return + } uni.navigateTo({ url: "./orderCheck", success: function(res) { @@ -124,6 +135,11 @@ console.log(res); if (res.code === 200) { + } 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