From c48093016b1511ce8b33ffb49062a3bf7a1aed16 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 06 六月 2024 08:24:10 +0800
Subject: [PATCH] Merge branch 'phyzasrs' of http://47.97.1.152:5880/r/wms_app into phyzasrs

---
 pages/phyz/checkLocDetl/locMove.vue |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/pages/phyz/checkLocDetl/locMove.vue b/pages/phyz/checkLocDetl/locMove.vue
index abf0d1f..e103691 100644
--- a/pages/phyz/checkLocDetl/locMove.vue
+++ b/pages/phyz/checkLocDetl/locMove.vue
@@ -52,7 +52,7 @@
 					</view>
 					<view class="btn">
 						<view class="btn-left" @click="checkClose">鍙栨秷</view>
-						<view class="btn-right" @click="checkConfirm()">纭</view>
+						<view class="btn-right" @click="checkConfirm()" :disabled="checkDis">纭</view>
 					</view>
 				</view>
 			</uni-popup>
@@ -77,7 +77,8 @@
 				item: '',
 				floorList: ['1F','2F','3F'],
 				floor: '',
-				locMast: null
+				locMast: null,
+				checkDis: false
 			}
 		},
 		onShow() {
@@ -193,6 +194,7 @@
 			},
 			checkConfirm() {
 				let _this = this
+				_this.checkDis = true
 				uni.request({
 					url: `${_this.baseUrl}/agvMobile/hand/control/locMove`,
 					header: {'token': uni.getStorageSync('token'),
@@ -203,6 +205,7 @@
 					}),
 					method: 'POST',
 					success(res) {
+						_this.checkDis = false
 						res = res.data
 						if (res.code === 200) {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
@@ -214,7 +217,11 @@
 						} else {
 							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						} 
+					},
+					fail(res) {
+						_this.checkDis = false
 					}
+					
 				})
 			}
 			

--
Gitblit v1.9.1