Fix Bug #452: 领用出库模块选择药品时提示仓库数量为0

选择药品时sourceLocationId未从表头仓库选择中取值,导致getCount查询库存时orgLocationId为空,
返回0条记录。修复为从receiptHeaderForm.headerLocationId获取仓库ID。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
关羽
2026-05-08 11:14:05 +08:00
parent f1a2520a87
commit e651a1abac

View File

@@ -990,7 +990,7 @@ function selectRow(rowValue, index) {
form.purchaseinventoryList[index].ybNo = rowValue.ybNo; form.purchaseinventoryList[index].ybNo = rowValue.ybNo;
// #439 fix: 不清空sourceLocationId保留handleAddRow设置的仓库ID // #439 fix: 不清空sourceLocationId保留handleAddRow设置的仓库ID
if (!form.purchaseinventoryList[index].sourceLocationId) { if (!form.purchaseinventoryList[index].sourceLocationId) {
form.purchaseinventoryList[index].sourceLocationId = ''; form.purchaseinventoryList[index].sourceLocationId = receiptHeaderForm.headerLocationId || '';
} }
getPharmacyCabinetList().then((res) => { getPharmacyCabinetList().then((res) => {
purposeTypeListOptions.value = res.data; purposeTypeListOptions.value = res.data;