fix: 修复Bug#439领用出库总库存数量未显示

1. 保留selectRow中sourceLocationId不被清空(handleAddRow已设置)
2. 取消注释handleLocationClick调用,自动获取库存数量
This commit is contained in:
2026-04-24 15:08:29 +08:00
parent fe2a79773f
commit b53cdfa617

View File

@@ -988,10 +988,13 @@ function selectRow(rowValue, index) {
form.purchaseinventoryList[index].unitList = rowValue.unitList[0]; form.purchaseinventoryList[index].unitList = rowValue.unitList[0];
form.purchaseinventoryList[index].lotNumber = rowValue.lotNumber; form.purchaseinventoryList[index].lotNumber = rowValue.lotNumber;
form.purchaseinventoryList[index].ybNo = rowValue.ybNo; form.purchaseinventoryList[index].ybNo = rowValue.ybNo;
// #439 fix: 不清空sourceLocationId保留handleAddRow设置的仓库ID
if (!form.purchaseinventoryList[index].sourceLocationId) {
form.purchaseinventoryList[index].sourceLocationId = ''; form.purchaseinventoryList[index].sourceLocationId = '';
}
getPharmacyCabinetList().then((res) => { getPharmacyCabinetList().then((res) => {
purposeTypeListOptions.value = res.data; purposeTypeListOptions.value = res.data;
// handleLocationClick(1, row, index) handleLocationClick(1, rowValue, index)
}); });
form.purchaseinventoryList[index].itemQuantity = 0; form.purchaseinventoryList[index].itemQuantity = 0;
form.purchaseinventoryList[index].totalPrice = 0; form.purchaseinventoryList[index].totalPrice = 0;