| | |
| | | qrCodeVisible(newVal){ |
| | | if(newVal){ |
| | | // this.$message.success('扫码:打开') |
| | | this.selectList() |
| | | this.sampleCode = null |
| | | this.entrustCode = null |
| | | let input = document.getElementById('ScanCodeInfo'); |
| | |
| | | this.storageList = this.HaveJson(res.data).map(item=>{ |
| | | item.warehouseShelfList&&item.warehouseShelfList.length>0&&item.warehouseShelfList.map(m=>{ |
| | | let warehouseShelfList = []; |
| | | for (let i=1;i<m.row+1;i++){ |
| | | let warehouseShelfList0 = [] |
| | | for (let j=1;j<m.col+1;j++){ |
| | | let warehouseShelfList0 = [] |
| | | let warehouseCellList = m.warehouseCellList?m.warehouseCellList:[] |
| | | warehouseCellList.forEach(a=>{ |
| | | if(warehouseShelfList.find(n=>n.id==a.row)){ |
| | | warehouseShelfList0.push({ |
| | | name:j+' 列', |
| | | id:j, |
| | | name:a.col+'列', |
| | | id:a.col |
| | | }) |
| | | }else if(warehouseShelfList.length==0){ |
| | | warehouseShelfList.push({ |
| | | name:a.row+'层', |
| | | id:a.row |
| | | }) |
| | | warehouseShelfList0.push({ |
| | | name:a.col+'列', |
| | | id:a.col |
| | | }) |
| | | }else if(!warehouseShelfList.find(n=>n.id==a.row)){ |
| | | warehouseShelfList[warehouseShelfList.length-1].warehouseShelfList = JSON.parse(JSON.stringify(warehouseShelfList0)) |
| | | warehouseShelfList0 = [] |
| | | warehouseShelfList.push({ |
| | | name:a.row+'层', |
| | | id:a.row |
| | | }) |
| | | warehouseShelfList0.push({ |
| | | name:a.col+'列', |
| | | id:a.col |
| | | }) |
| | | } |
| | | warehouseShelfList.push({ |
| | | name:i+' 层', |
| | | id:i, |
| | | warehouseShelfList:warehouseShelfList0 |
| | | }) |
| | | } |
| | | }) |
| | | warehouseShelfList[warehouseShelfList.length-1].warehouseShelfList = JSON.parse(JSON.stringify(warehouseShelfList0)) |
| | | m.warehouseShelfList = warehouseShelfList; |
| | | return m; |
| | | }) |
| | |
| | | } |
| | | if (power[i].menuMethod == 'scanInsOrderState') { |
| | | this.selectWarehouse = true |
| | | this.selectList() |
| | | } |
| | | } |
| | | // if (!getInsProduct2) { |