| | |
| | | |
| | | |
| | | <!-- 工作档 --> |
| | | <view class="wrkMast"> |
| | | <view class="wrkMast" v-if="wrkMast"> |
| | | <view class="wrkMast-wrkNo"> |
| | | <view style="flex:3">工作号: {{wrkMast.wrkNo}}</view> |
| | | <view style="flex:2;text-align: right;">{{wrkMast.ioTitle}}</view> |
| | |
| | | <view class="buttom"> |
| | | <button size="mini" type="primary" @click="emptyPakin()" v-if="btnType == 'emptyPakin'">空板入库</button> |
| | | <button size="mini" type="primary" @click="emptyOut()" v-if="btnType == 'emptyPakin'">呼叫空板</button> |
| | | <button size="mini" type="primary" @click="containerMoveOut()" v-if="btnType == 'out'">确认出库</button> |
| | | <button size="mini" type="primary" @click="pickIn()" v-if="btnType == 'pick'">已拣料回库</button> |
| | | <button size="mini" type="primary" @click="containerMoveOut()" v-if="btnType == 'out' && station.locSts == 'F'">确认出库</button> |
| | | <button size="mini" type="primary" @click="pickIn()" v-if="btnType == 'pick' && station.locSts == 'F'">已拣料回库</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | method: 'GET', |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | if (res.code === 200 && res.data.records.length > 0) { |
| | | if (res.data.records[0].ioType == 1) { |
| | | res.data.records[0]['ioTitle'] = '入库' |
| | | } else if (res.data.records[0].ioType == 10) { |
| | |
| | | _this.btnType = 'out' |
| | | } else if (res.data.records[0].ioType == 103) { |
| | | res.data.records[0]['ioTitle'] = '拣料出库' |
| | | _this.btnType = 'pick' |
| | | } else if (res.data.records[0].ioType == 110) { |
| | | res.data.records[0]['ioTitle'] = '空板出库' |
| | | } |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 全板出库 确认出库 |
| | | containerMoveOut() { |
| | | let _this = this |
| | | let devNo = {devNo:[this.station.devNo]} |
| | |
| | | uni.showToast({ title: '确认完成', icon: "success", position: 'top' }) |
| | | } else { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | setTimeout(()=> { |
| | | _this.searchValue = '' |
| | | _this.getBasDevp() |
| | | },2000) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // 拣料出库 确认后回库 |
| | | pickIn() { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agv/basDevp/visualized/container/pickIn`, |
| | | data: {devNo: _this.station.devNo}, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | _this.barcode = '' |
| | | _this.reloadStation() |
| | | } else { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |