diff --git a/pages/upload/upload.vue b/pages/upload/upload.vue index 6347886..c79e8b3 100644 --- a/pages/upload/upload.vue +++ b/pages/upload/upload.vue @@ -1681,27 +1681,20 @@ export default { confirmWarehousePicker() { if (!this.popupSelectedLoc) return const wh = this.popupWarehouseList[this.popupActiveWhIndex] - if (this.pickerTargetTab === 'isbn') { - this.isbnWarehouseData = { - warehouseId: wh.id, - warehouseName: wh.name, - warehouseCode: wh.code, - locationId: this.popupSelectedLoc.id, - 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 whData = { + warehouseId: wh.id, + warehouseName: wh.name, + warehouseCode: wh.code, + locationId: this.popupSelectedLoc.id, + locationCode: this.popupSelectedLoc.code, + locationName: this.popupSelectedLoc.name } + const areaText = `${wh.name} - ${this.popupSelectedLoc.code}` + // ISBN 和无 ISBN 货区同步 + this.isbnWarehouseData = whData + this.isbnSelectedArea = areaText + this.noIsbnWarehouseData = whData + this.noIsbnSelectedArea = areaText this.showWarehousePicker = false },