From 917b01ee96a3e1c60a1d8b02167fa2e5b194f049 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 05 四月 2024 08:52:56 +0800
Subject: [PATCH] #
---
pages/phyz/stationManage/stationManage.vue | 47 ++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 42 insertions(+), 5 deletions(-)
diff --git a/pages/phyz/stationManage/stationManage.vue b/pages/phyz/stationManage/stationManage.vue
index e458353..6478660 100644
--- a/pages/phyz/stationManage/stationManage.vue
+++ b/pages/phyz/stationManage/stationManage.vue
@@ -41,7 +41,7 @@
</view>
</view>
- <view class="list" style="background-color: #fda800;color: #fff;" v-for="wrkMast in waitPakins">
+ <view class="list" style="background-color: #fda800;color: #fff;" v-if="!wrkDetls" v-for="wrkMast in waitPakins">
<view class="list-left">
<view>鐗╂枡鍙凤細{{wrkMast.matnr}}</view>
<view>鐗╂枡鍚嶇О锛歿{wrkMast.maktx}}</view>
@@ -227,6 +227,23 @@
data: {devNo: e},
method: 'POST',
success(res) {
+ res = res.data
+ if (res.code === 200) {
+ _this.searchValue = ''
+ setTimeout(()=> {
+ _this.searchValue = ''
+ _this.station = ''
+ _this.wrkMast = ''
+ _this.wrkDetls = []
+ _this.waitPakins = []
+ },100)
+ } else {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(()=> {
+ _this.searchValue = ''
+ _this.getBasDevp()
+ },2000)
+ }
}
})
},
@@ -240,7 +257,23 @@
data: JSON.stringify(devNo),
method: 'POST',
success(res) {
-
+ res = res.data
+ if (res.code === 200) {
+ _this.searchValue = ''
+ setTimeout(()=> {
+ _this.searchValue = ''
+ _this.station = ''
+ _this.wrkMast = ''
+ _this.wrkDetls = []
+ _this.waitPakins = []
+ },100)
+ } else {
+ uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+ setTimeout(()=> {
+ _this.searchValue = ''
+ _this.getBasDevp()
+ },2000)
+ }
}
})
},
@@ -269,6 +302,13 @@
success(result) {
var res = result.data
if (res.code === 200) {
+ setTimeout(()=> {
+ that.searchValue = ''
+ that.station = ''
+ that.wrkMast = ''
+ that.wrkDetls = []
+ that.waitPakins = []
+ },300)
uni.showToast({
title: res.msg,
icon: "none",
@@ -303,9 +343,6 @@
reviseConfirm() {
this.startPakin('empty')
this.$refs.revise.close()
- setTimeout(()=> {
- this.getBasDevp()
- },300)
}
}
}
--
Gitblit v1.9.1