|
|
@ -295,7 +295,9 @@ export default { |
|
|
|
billNoImg: null, |
|
|
|
bookImgData: [], |
|
|
|
bigImg: '', |
|
|
|
timeIndex: 0 |
|
|
|
timeIndex: 0, |
|
|
|
gridName: '', |
|
|
|
getGridToward: 1 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -364,6 +366,7 @@ export default { |
|
|
|
const dataScreenShelf = JSON.parse(localStorage.getItem('dataScreenShelf')) |
|
|
|
this.floorName = dataScreenShelf.floorName |
|
|
|
this.regionName = dataScreenShelf.regionName |
|
|
|
this.gridName = dataScreenShelf.gridName |
|
|
|
this.gridRow = dataScreenShelf.gridRow |
|
|
|
this.gridShelf = dataScreenShelf.gridShelf |
|
|
|
|
|
|
@ -439,7 +442,7 @@ export default { |
|
|
|
icon: 'el-icon-more', |
|
|
|
color: '#0bbd87' |
|
|
|
}) |
|
|
|
this.billNoImg = this.checkDateLine[0].stockBill |
|
|
|
this.billNoImg = this.checkDateLine[this.timeIndex].stockType === 0 ? this.checkDateLine[1].stockBill : this.checkDateLine[this.timeIndex].stockBill |
|
|
|
} else { |
|
|
|
this.checkDateLine = [] |
|
|
|
} |
|
|
@ -627,12 +630,26 @@ export default { |
|
|
|
changeDialogTab(index) { |
|
|
|
this.tabdialogIndex = index |
|
|
|
}, |
|
|
|
updateParts(gridName) { |
|
|
|
const parts = gridName.match(/(\d+)区(\d+)排([A-Za-z])面(\d+)架(\d+)层/) |
|
|
|
if (parts) { |
|
|
|
this.getGridShelf = parts[4] |
|
|
|
this.getGridFloor = parts[5] |
|
|
|
const toward = parts[3] |
|
|
|
if (toward === 'A') { |
|
|
|
this.getGridToward = 1 |
|
|
|
} else if (toward === 'B') { |
|
|
|
this.getGridToward = 2 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
changeShelfGetGrid(val) { |
|
|
|
this.updateParts(this.gridName) |
|
|
|
this.shelfAllGridDataLoading = true |
|
|
|
const params = { |
|
|
|
'gridShelf': '0' + val, |
|
|
|
'shelfId': this.bookShelfDetails.id, |
|
|
|
'toward': this.bookShelfDetails.toward, |
|
|
|
'toward': this.getGridToward, |
|
|
|
'floorType': this.bookShelfDetails.floorType |
|
|
|
} |
|
|
|
FetchShelfGridByShelfIdAndGridShelf(params).then(res => { |
|
|
@ -649,6 +666,8 @@ export default { |
|
|
|
handleHistory(item, index) { |
|
|
|
this.shelfAllGridDataLoading = true |
|
|
|
this.timeIndex = index |
|
|
|
|
|
|
|
this.billNoImg = this.checkDateLine[this.timeIndex].stockType === 0 ? this.checkDateLine[1].stockBill : this.checkDateLine[this.timeIndex].stockBill |
|
|
|
if (item.stockType === 0) { |
|
|
|
this.initData() |
|
|
|
setTimeout(() => { |
|
|
|