|
|
|
|
@ -244,7 +244,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//获取总行列数
|
|
|
|
|
getRowColumnCounts(){
|
|
|
|
|
|
|
|
|
|
this.updateShleveAndRowColumnCount(this.selectType)
|
|
|
|
|
if(this.streetDetail){}
|
|
|
|
|
},
|
|
|
|
|
//获取复核页面的核对信息
|
|
|
|
|
getStockInfo(row, column, shelveId) {
|
|
|
|
|
@ -299,13 +301,9 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.getStockInfo(1, 1, this.shelveId)
|
|
|
|
|
},
|
|
|
|
|
handlerType(value){
|
|
|
|
|
this.handleTypeChange(value)
|
|
|
|
|
this.getStockInfo(this.row, this.column, this.shelveId)
|
|
|
|
|
},
|
|
|
|
|
// 左右货架切换 需要更新行列数
|
|
|
|
|
handleTypeChange(value) {
|
|
|
|
|
|
|
|
|
|
this.selectType = value
|
|
|
|
|
this.updateShleveAndRowColumnCount(value)
|
|
|
|
|
this.row = 1
|
|
|
|
|
this.column = 1
|
|
|
|
|
@ -318,30 +316,38 @@ export default {
|
|
|
|
|
if (direction == 'left') {
|
|
|
|
|
this.rowCount = this.streetDetail.leftRow
|
|
|
|
|
this.columnCount = this.streetDetail.leftColumn
|
|
|
|
|
if (this.streetDetail.leftShelveId) {
|
|
|
|
|
if(this.streetDetail.leftType == 0){
|
|
|
|
|
this.shelveId = this.streetDetail.leftShelveId
|
|
|
|
|
|
|
|
|
|
} else if (this.streetDetail.leftInsideShelveId) {
|
|
|
|
|
this.shelveId = this.streetDetail.leftInsideShelveId
|
|
|
|
|
|
|
|
|
|
} else if (this.streetDetail.leftOutsideShelveId) {
|
|
|
|
|
this.shelveId = this.streetDetail.leftOutsideShelveId
|
|
|
|
|
this.selectType2 = ''
|
|
|
|
|
}else{
|
|
|
|
|
if(this.selectType2 == 'inside'){
|
|
|
|
|
this.shelveId = this.streetDetail.leftInsideShelveId
|
|
|
|
|
}else if(this.selectType2 == 'outside'){
|
|
|
|
|
this.shelveId = this.streetDetail.leftOutsideShelveId
|
|
|
|
|
}else{
|
|
|
|
|
this.selectType2 = 'inside'
|
|
|
|
|
this.shelveId = this.streetDetail.leftInsideShelveId
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else if (direction == 'right') {
|
|
|
|
|
this.rowCount = this.streetDetail.rightRow
|
|
|
|
|
this.columnCount = this.streetDetail.rightColumn
|
|
|
|
|
if (this.streetDetail.rightShelveId) {
|
|
|
|
|
if(this.streetDetail.rightType == 0){
|
|
|
|
|
this.shelveId = this.streetDetail.rightShelveId
|
|
|
|
|
} else if (this.streetDetail.rightInsideShelveId) {
|
|
|
|
|
this.shelveId = this.streetDetail.rightInsideShelveId
|
|
|
|
|
} else if (this.streetDetail.rightOutsideShelveId) {
|
|
|
|
|
this.shelveId = this.streetDetail.rightOutsideShelveId
|
|
|
|
|
this.selectType2 = ''
|
|
|
|
|
}else{
|
|
|
|
|
if(this.selectType2 == 'inside'){
|
|
|
|
|
this.shelveId = this.streetDetail.rightInsideShelveId
|
|
|
|
|
}else if(this.selectType2 == 'outside'){
|
|
|
|
|
this.shelveId = this.streetDetail.rightOutsideShelveId
|
|
|
|
|
}else{
|
|
|
|
|
this.selectType2 = 'inside'
|
|
|
|
|
this.shelveId = this.streetDetail.rightInsideShelveId
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handlerType2(value){
|
|
|
|
|
this.sideStreetChange(value)
|
|
|
|
|
this.getStockInfo(this.row, this.column, this.shelveId)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
//内外货架切换
|
|
|
|
|
sideStreetChange(value) {
|
|
|
|
|
|