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