From 970cf973d0d5383f6e49cf78d0f3f268d9c5e03c Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 12 七月 2024 20:09:38 +0800
Subject: [PATCH] #
---
pages/phyz/stationManage/pickAgain.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/pages/phyz/stationManage/pickAgain.vue b/pages/phyz/stationManage/pickAgain.vue
index f4d44ab..7d6f2f3 100644
--- a/pages/phyz/stationManage/pickAgain.vue
+++ b/pages/phyz/stationManage/pickAgain.vue
@@ -36,7 +36,7 @@
</view>
<!-- 搴曢儴鎿嶄綔鎸夐挳 -->
<view class="buttom">
- <button size="mini" type="primary" @click="confirmPick('warn')">纭鎷f枡</button>
+ <button size="mini" type="primary" @click="confirmPick('warn')" :disabled="pickAgaDis">纭鎷f枡</button>
</view>
</view>
</template>
@@ -53,7 +53,8 @@
maxCount: 0,
wrkNo: '',
locNo: '',
- pickedAnfme: 0
+ pickedAnfme: 0,
+ pickAgaDis: false
}
},
onShow() {
@@ -73,6 +74,7 @@
},
methods: {
getLocDetl(locNo) {
+
let _this = this
uni.request({
url: `${_this.baseUrl}/agv/locDetl/list/auth/v2`,
@@ -120,7 +122,7 @@
} else {
uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
- }
+ },
})
},
// 宸查�夋嫞鏂欏垪琛�
@@ -187,6 +189,7 @@
},
// 纭鍐嶆鎷f枡
confirmPick() {
+ this.pickAgaDis = true
let _this = this
uni.request({
url: `${_this.baseUrl}/agvMobile/pick/again/auth`,
@@ -198,6 +201,7 @@
}),
method: 'POST',
success(res) {
+ _this.pickAgaDis = false
res = res.data
console.log(res);
if (res.code === 200) {
@@ -213,6 +217,9 @@
}
}
})
+ },
+ fail(res) {
+ _this.pickAgaDis = false
}
}
}
--
Gitblit v1.9.1