|  |  | 
 |  |  |             </view> | 
 |  |  |          </uni-popup> | 
 |  |  |       </view> | 
 |  |  |       <!-- 弹窗 --> | 
 |  |  |       <view> | 
 |  |  |          <uni-popup ref="doBack" type="dialog"> | 
 |  |  |             <view class="popup"> | 
 |  |  |                <!-- 标题 --> | 
 |  |  |                <view class="title">请输入空货架码</view> | 
 |  |  |                <view class="popup-item"> | 
 |  |  |                   <view class="popup-item-left">货架码:</view> | 
 |  |  |                   <view class="popup-item-right"><input type="text" v-model="barcode"></view> | 
 |  |  |                </view> | 
 |  |  |                <view class="btn"> | 
 |  |  |                   <view class="btn-left" @click="doBackClose">取消</view> | 
 |  |  |                   <view class="btn-right" @click="doBackConfirm()">退库</view> | 
 |  |  |                </view> | 
 |  |  |             </view> | 
 |  |  |          </uni-popup> | 
 |  |  |       </view> | 
 |  |  |        | 
 |  |  |       <!-- 弹窗 --> | 
 |  |  |       <view> | 
 |  |  | 
 |  |  |        | 
 |  |  |       <!-- 底部操作按钮 --> | 
 |  |  |       <view class="buttom"> | 
 |  |  |          <button size="mini" type="primary" @click="handBack()" v-if="btnType == 'handBack'">转手动</button> | 
 |  |  |          <button size="mini" type="warn" @click="doBack()" v-if="btnType == 'out' || btnType == 'pick'">退库</button> | 
 |  |  |          <button size="mini" type="primary" @click="emptyPakin()" v-if="btnType == 'emptyPakin'">空板入库</button> | 
 |  |  |          <button size="mini" type="primary" @click="emptyOut()" v-if="btnType == 'emptyPakin'">呼叫空板</button> | 
 |  |  | 
 |  |  |                         } else if (wrkMast.ioType == 103) { | 
 |  |  |                            wrkMast['ioTitle'] = '拣料出库' | 
 |  |  |                            _this.btnType = 'pick' | 
 |  |  |                         } else if (wrkMast.ioType == 109) { | 
 |  |  |                            wrkMast['ioTitle'] = '自动回流' | 
 |  |  |                            _this.btnType = 'handBack' | 
 |  |  |                         } else if (wrkMast.ioType == 110) { | 
 |  |  |                            wrkMast['ioTitle'] = '空板出库' | 
 |  |  |                         } else if (wrkMast.ioType == 111) { | 
 |  |  | 
 |  |  |             let devNo = {devNo:[this.station.devNo],barcode: _this.barcode} | 
 |  |  |             uni.request({ | 
 |  |  |                url: `${_this.baseUrl}/agv/basDevp/visualized/container/moveOut`, | 
 |  |  |                header: { 'token': uni.getStorageSync('token')}, | 
 |  |  |                data: JSON.stringify(devNo), | 
 |  |  |                method: 'POST', | 
 |  |  |                success(res) { | 
 |  |  | 
 |  |  |             let devNo = {devNo:[this.station.devNo],barcode: _this.barcode} | 
 |  |  |             uni.request({ | 
 |  |  |                url: `${_this.baseUrl}/agv/basDevp/visualized/container/moveOut2`, | 
 |  |  |                header: { 'token': uni.getStorageSync('token')}, | 
 |  |  |                data: JSON.stringify(devNo), | 
 |  |  |                method: 'POST', | 
 |  |  |                success(res) { | 
 |  |  | 
 |  |  |             let _this = this | 
 |  |  |             uni.request({ | 
 |  |  |                url: `${_this.baseUrl}/agv/basDevp/visualized/container/pickIn`, | 
 |  |  |                header: { 'token': uni.getStorageSync('token')}, | 
 |  |  |                data: {devNo: _this.station.devNo,barcode: _this.barcode}, | 
 |  |  |                method: 'POST', | 
 |  |  |                success(res) { | 
 |  |  | 
 |  |  |             }); | 
 |  |  |          }, | 
 |  |  |          doBack() { | 
 |  |  |             this.$refs.doBack.open() | 
 |  |  |          }, | 
 |  |  |          doBackClose() { | 
 |  |  |             this.$refs.doBack.close() | 
 |  |  |          }, | 
 |  |  |          doBackConfirm() { | 
 |  |  |             let that = this | 
 |  |  |             let params = [] | 
 |  |  |             let param = { devNo: this.station.devNo, containerCode: this.station.barcode, } | 
 |  |  | 
 |  |  |                success(result) { | 
 |  |  |                   var res = result.data | 
 |  |  |                   if (res.code === 200) { | 
 |  |  |                      // that.$refs.allocationIn.close() | 
 |  |  |                      that.$refs.doBack.close() | 
 |  |  |                      setTimeout(()=> { | 
 |  |  |                         that.barcode = '' | 
 |  |  |                         that.reloadStation() | 
 |  |  |                      },1000) | 
 |  |  |                      uni.showToast({ title: '进场成功', icon: "success", position: 'top' }) | 
 |  |  |                      uni.showToast({ title: '退库任务申请成功', icon: "success", position: 'top' }) | 
 |  |  |                   } else if (res.code == 403) { | 
 |  |  |                      uni.showToast({ title: res.msg, icon: "error", position: 'top' }) | 
 |  |  |                      setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000); | 
 |  |  |                   } else { | 
 |  |  |                      uni.showToast({ title: res.msg, icon: "error", position: 'top' }) | 
 |  |  |                   } | 
 |  |  |                } | 
 |  |  |             }); | 
 |  |  |          }, | 
 |  |  |          handBack() { | 
 |  |  |             let that = this | 
 |  |  |             let params = [] | 
 |  |  |             let param = { devNo: this.station.devNo, containerCode: this.station.barcode, } | 
 |  |  |             params.push(param) | 
 |  |  |             uni.request({ | 
 |  |  |                url: that.baseUrl + '/agvMobile/hand/control/handBack', | 
 |  |  |                header: {'token': uni.getStorageSync('token')}, | 
 |  |  |                data: {devNo: that.station.devNo, barcode: that.barcode}, | 
 |  |  |                method: 'POST', | 
 |  |  |                success(result) { | 
 |  |  |                   var res = result.data | 
 |  |  |                   if (res.code === 200) { | 
 |  |  |                      setTimeout(()=> { | 
 |  |  |                         that.reloadStation() | 
 |  |  |                      },1000) | 
 |  |  |                      uni.showToast({ title: '转换成功', icon: "success", position: 'top' }) | 
 |  |  |                   } else if (res.code == 403) { | 
 |  |  |                      uni.showToast({ title: res.msg, icon: "error", position: 'top' }) | 
 |  |  |                      setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000); |