whycq
2024-06-06 c48093016b1511ce8b33ffb49062a3bf7a1aed16
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
               }
            })
         }