| | |
| | | </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> |
| | |
| | | item: '', |
| | | floorList: ['1F','2F','3F'], |
| | | floor: '', |
| | | locMast: null |
| | | locMast: null, |
| | | checkDis: false |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | }, |
| | | checkConfirm() { |
| | | let _this = this |
| | | _this.checkDis = true |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agvMobile/hand/control/locMove`, |
| | | header: {'token': uni.getStorageSync('token'), |
| | |
| | | }), |
| | | method: 'POST', |
| | | success(res) { |
| | | _this.checkDis = false |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | |
| | | } else { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | } |
| | | }, |
| | | fail(res) { |
| | | _this.checkDis = false |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |