| | |
| | | <button size="mini" type="primary" @click="allocationOut()" v-if="btnType == 'allocationOut'">调拨离场</button> |
| | | <button size="mini" type="primary" @click="allocationIn()" v-if="btnType == 'allocationIn'">调拨进场</button> |
| | | <button size="mini" type="primary" @click="empOut()" v-if="btnType == 'empOut'">空架离场</button> |
| | | <button size="mini" type="primary" @click="empIn()" v-if="btnType == 'allocationIn'">空架进场</button> |
| | | <button size="mini" type="primary" @click="empIn()" v-if="btnType == 'empIn'">空架进场</button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | }) |
| | | setInterval(()=> { |
| | | let k = utils.checkSec() |
| | | console.log(k); |
| | | // console.log(k); |
| | | if (k == 180) { |
| | | this.dis = false |
| | | this.sec = '' |
| | |
| | | if (res.code === 200) { |
| | | if (res.data.records[0].locSts == 'O') { |
| | | if (res.data.records[0].devNo.substring(0, 2) == "DB") { |
| | | _this.btnType = 'allocationIn' |
| | | if (res.data.records[0].floor != 1) { |
| | | _this.btnType = 'allocationIn' |
| | | } else { |
| | | _this.btnType = 'empIn' |
| | | } |
| | | } else { |
| | | _this.btnType = 'emptyPakin' |
| | | } |
| | |
| | | wrkMast['ioTitle'] = '调拨入库' |
| | | _this.btnType = 'null' |
| | | } else if (wrkMast.ioType == 113) { |
| | | wrkMast['ioTitle'] = '货架回流' |
| | | _this.btnType = 'empOut' |
| | | if (wrkMast.wrkSts == 212) { |
| | | wrkMast['ioTitle'] = '货架回流' |
| | | _this.btnType = 'empOut' |
| | | } |
| | | } |
| | | if (wrkMast.barcode == barcode) { |
| | | mast = wrkMast |