fix:仓库弹窗确认时ISBN与无ISBN货区同步更新

This commit is contained in:
ShenQiLun 2026-06-26 15:34:26 +08:00
parent 5591827c23
commit 1b7e26c2cb

View File

@ -1681,8 +1681,7 @@ export default {
confirmWarehousePicker() {
if (!this.popupSelectedLoc) return
const wh = this.popupWarehouseList[this.popupActiveWhIndex]
if (this.pickerTargetTab === 'isbn') {
this.isbnWarehouseData = {
const whData = {
warehouseId: wh.id,
warehouseName: wh.name,
warehouseCode: wh.code,
@ -1690,18 +1689,12 @@ export default {
locationCode: this.popupSelectedLoc.code,
locationName: this.popupSelectedLoc.name
}
this.isbnSelectedArea = `${wh.name} - ${this.popupSelectedLoc.code}`
} else {
this.noIsbnWarehouseData = {
warehouseId: wh.id,
warehouseName: wh.name,
warehouseCode: wh.code,
locationId: this.popupSelectedLoc.id,
locationCode: this.popupSelectedLoc.code,
locationName: this.popupSelectedLoc.name
}
this.noIsbnSelectedArea = `${wh.name} - ${this.popupSelectedLoc.code}`
}
const areaText = `${wh.name} - ${this.popupSelectedLoc.code}`
// ISBN ISBN
this.isbnWarehouseData = whData
this.isbnSelectedArea = areaText
this.noIsbnWarehouseData = whData
this.noIsbnSelectedArea = areaText
this.showWarehousePicker = false
},