From 04839b0c8660e2ba4228a743edf8f784e2470d6c Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 19 二月 2025 09:21:12 +0800
Subject: [PATCH] #
---
pages/phyz/bcp/bcpDbList.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/pages/phyz/bcp/bcpDbList.vue b/pages/phyz/bcp/bcpDbList.vue
index b0eebbb..fdfda8c 100644
--- a/pages/phyz/bcp/bcpDbList.vue
+++ b/pages/phyz/bcp/bcpDbList.vue
@@ -61,7 +61,7 @@
</view>
</view>
<view class="btn filter-btn">
- <view class="btn-right" @click="filterConfirm()">寮�濮嬭皟鎷�</view>
+ <button class="btn-right" @click="filterConfirm()" :disabled="isAutoDis">寮�濮嬭皟鎷�</button>
</view>
</view>
</uni-popup>
@@ -69,7 +69,7 @@
<!-- 搴曢儴鎿嶄綔鎸夐挳 -->
<view class="buttom">
<button size="mini" @click="isAuto('unAuto')">鎵嬪姩</button>
- <button size="mini" type="primary" @click="isAuto('auto')">鑷姩</button>
+ <button size="mini" type="primary" @click="isAuto('auto')" >鑷姩</button>
</view>
</view>
</template>
@@ -93,7 +93,9 @@
allCheckBtnTitle: '鍏ㄩ��',
floorList: ['2妤�','3妤�'],
floor: '',
- moveType: ''
+ moveType: '',
+ isAutoDis: false,
+ orderNo: ''
}
},
onShow() {
@@ -108,6 +110,7 @@
data.item['count'] = 0
_this.station = data.item
_this.orderId = data.item.id
+ _this.orderNo = data.item.orderNo
_this.getLocDetl(data.item.orderNo,data.item.threeCode,data.item.matnr,data.item.id)
})
},
@@ -275,19 +278,20 @@
this.$refs.filter.open('bottom')
},
filterConfirm() {
- console.log(this.dbList);
+ this.isAutoDis = true
if (this.floor == '') {
uni.showToast({ title: '璇烽�夋嫨璋冩嫧妤煎眰', icon: "error", position: 'top' })
return
}
let _this = this
- let param = {floor: this.floor,dbList: this.dbList,moveType: this.moveType}
+ let param = {floor: this.floor,orderNo:this.orderNo,dbList: this.dbList,moveType: this.moveType}
uni.request({
url: `${_this.baseUrl}/agvMobile/agv/v2/locMove`,
header: {'token': uni.getStorageSync('token'),},
data: param,
method: 'POST',
success(res) {
+ _this.isAutoDis = false
console.log(res);
res = res.data
if (res.code === 200) {
@@ -300,6 +304,9 @@
} else {
uni.showToast({ title: res.msg, icon: "error", position: 'top' })
}
+ },
+ fail(res) {
+ _this.isAutoDis = false
}
})
this.$refs.filter.close('bottom')
--
Gitblit v1.9.1