| | |
| | | <view class="popup-item-left">站点码:</view> |
| | | <view class="popup-item-right"><input type="text" v-model="agvDevp"></view> |
| | | </view> |
| | | <view class="popup-item"> |
| | | <view class="popup-item-left">目标楼层:</view> |
| | | <view class="popup-item-right" style="border: none;"> |
| | | <uni-combox style="height: 50rpx;" :candidates="floorList" placeholder="请选择目标楼层" v-model="floor"> |
| | | </uni-combox></view> |
| | | </view> |
| | | <view class="btn"> |
| | | <button class="btn-left" @click="agvStartClose()">取消</button> |
| | | <button class="btn-right" @click="agvStartConfirm()" :disabled="agvStartDis">入库</button> |
| | |
| | | index: 0, |
| | | barcode: '', |
| | | agvDevp: '', |
| | | agvStartDis: false, |
| | | floorList:['二厂','三厂'], |
| | | floor: '', |
| | | agvStartDis: false |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('item', function(data) { |
| | | _this.orderCarList = data.item |
| | | for (let k of _this.orderCarList) { |
| | | if (k.threeCode) { |
| | | if (k.threeCode.includes("B")) { |
| | | _this.floor = '二厂' |
| | | } else if (k.threeCode.includes("G")) { |
| | | _this.floor = '三厂' |
| | | } else { |
| | | _this.floor = '' |
| | | } |
| | | } |
| | | } |
| | | console.log(data.item); |
| | | }) |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | comb(combMats) { |
| | | let _this = this; |
| | | let factor = '' |
| | | if (!this.floor) { |
| | | uni.showToast({ title: '请选择楼层', icon: "error", position: 'top' }) |
| | | return |
| | | } |
| | | if (this.floor == '二厂') { |
| | | factor = 'B' |
| | | } else if (this.floor == '三厂') { |
| | | factor = 'G' |
| | | } |
| | | this.agvStartDis = true |
| | | uni.request({ |
| | | url: _this.baseUrl + '/agvMobile/start/pakin/auth/v2', |
| | | url: _this.baseUrl + '/agvMobile/start/pakin/auth', |
| | | data: JSON.stringify({ |
| | | barcode: _this.barcode, |
| | | containerCode: _this.barcode, |
| | | devNo: _this.agvDevp, |
| | | combParams: combMats, |
| | | factory: factor |
| | | combParams: combMats |
| | | }), |
| | | method: 'POST', |
| | | header: { |