|  |  |  | 
|---|
|  |  |  | <view class="popup-item-left">站点号:</view> | 
|---|
|  |  |  | <view class="popup-item-right"><input type="text" v-model="devNo"></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="processedClose">取消</button> | 
|---|
|  |  |  | <button class="btn-right" @click="processedConfirm()" :disabled="processedDis">加工完成</button> | 
|---|
|  |  |  | 
|---|
|  |  |  | baseUrl: '', | 
|---|
|  |  |  | token: '', | 
|---|
|  |  |  | dataList: [], | 
|---|
|  |  |  | floorList:['二厂','三厂'], | 
|---|
|  |  |  | floor: '', | 
|---|
|  |  |  | count: 0, | 
|---|
|  |  |  | containerType: '', | 
|---|
|  |  |  | isOpen: true, | 
|---|
|  |  |  | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | for (let k of res.data.records) { | 
|---|
|  |  |  | k['maxCount'] = k.anfme | 
|---|
|  |  |  | if (k.threeCode) { | 
|---|
|  |  |  | if (k.threeCode.includes("B")) { | 
|---|
|  |  |  | _this.floor = '二厂' | 
|---|
|  |  |  | } else if (k.threeCode.includes("G")) { | 
|---|
|  |  |  | _this.floor = '三厂' | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | _this.floor = '' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | _this.dataList = res.data.records | 
|---|
|  |  |  | } else if (res.code == 403) { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$refs.process.close() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | processedConfirm() { | 
|---|
|  |  |  | 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.processedDis = true | 
|---|
|  |  |  | let that = this | 
|---|
|  |  |  | uni.request({ | 
|---|
|  |  |  | url: that.baseUrl + '/agvMobile/hand/control/processed', | 
|---|
|  |  |  | url: that.baseUrl + '/agvMobile/hand/control/processed/v2', | 
|---|
|  |  |  | header: {'token': uni.getStorageSync('token')}, | 
|---|
|  |  |  | data: {devNo: that.devNo, barcode: that.barcode,wrkDetls:that.dataList}, | 
|---|
|  |  |  | data: {devNo: that.devNo, barcode: that.barcode,wrkDetls:that.dataList,factory: factor}, | 
|---|
|  |  |  | method: 'POST', | 
|---|
|  |  |  | success(result) { | 
|---|
|  |  |  | that.processedDis = false | 
|---|