fix:仓库弹窗确认时ISBN与无ISBN货区同步更新
This commit is contained in:
parent
5591827c23
commit
1b7e26c2cb
@ -1681,8 +1681,7 @@ export default {
|
|||||||
confirmWarehousePicker() {
|
confirmWarehousePicker() {
|
||||||
if (!this.popupSelectedLoc) return
|
if (!this.popupSelectedLoc) return
|
||||||
const wh = this.popupWarehouseList[this.popupActiveWhIndex]
|
const wh = this.popupWarehouseList[this.popupActiveWhIndex]
|
||||||
if (this.pickerTargetTab === 'isbn') {
|
const whData = {
|
||||||
this.isbnWarehouseData = {
|
|
||||||
warehouseId: wh.id,
|
warehouseId: wh.id,
|
||||||
warehouseName: wh.name,
|
warehouseName: wh.name,
|
||||||
warehouseCode: wh.code,
|
warehouseCode: wh.code,
|
||||||
@ -1690,18 +1689,12 @@ export default {
|
|||||||
locationCode: this.popupSelectedLoc.code,
|
locationCode: this.popupSelectedLoc.code,
|
||||||
locationName: this.popupSelectedLoc.name
|
locationName: this.popupSelectedLoc.name
|
||||||
}
|
}
|
||||||
this.isbnSelectedArea = `${wh.name} - ${this.popupSelectedLoc.code}`
|
const areaText = `${wh.name} - ${this.popupSelectedLoc.code}`
|
||||||
} else {
|
// ISBN 和无 ISBN 货区同步
|
||||||
this.noIsbnWarehouseData = {
|
this.isbnWarehouseData = whData
|
||||||
warehouseId: wh.id,
|
this.isbnSelectedArea = areaText
|
||||||
warehouseName: wh.name,
|
this.noIsbnWarehouseData = whData
|
||||||
warehouseCode: wh.code,
|
this.noIsbnSelectedArea = areaText
|
||||||
locationId: this.popupSelectedLoc.id,
|
|
||||||
locationCode: this.popupSelectedLoc.code,
|
|
||||||
locationName: this.popupSelectedLoc.name
|
|
||||||
}
|
|
||||||
this.noIsbnSelectedArea = `${wh.name} - ${this.popupSelectedLoc.code}`
|
|
||||||
}
|
|
||||||
this.showWarehousePicker = false
|
this.showWarehousePicker = false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user