diff --git a/openhis-ui-vue3/src/views/medicationmanagement/requisitionManagement/requisitionManagement/index.vue b/openhis-ui-vue3/src/views/medicationmanagement/requisitionManagement/requisitionManagement/index.vue index 6637f311..ee5025a4 100644 --- a/openhis-ui-vue3/src/views/medicationmanagement/requisitionManagement/requisitionManagement/index.vue +++ b/openhis-ui-vue3/src/views/medicationmanagement/requisitionManagement/requisitionManagement/index.vue @@ -988,10 +988,13 @@ function selectRow(rowValue, index) { form.purchaseinventoryList[index].unitList = rowValue.unitList[0]; form.purchaseinventoryList[index].lotNumber = rowValue.lotNumber; form.purchaseinventoryList[index].ybNo = rowValue.ybNo; - form.purchaseinventoryList[index].sourceLocationId = ''; + // #439 fix: 不清空sourceLocationId,保留handleAddRow设置的仓库ID + if (!form.purchaseinventoryList[index].sourceLocationId) { + form.purchaseinventoryList[index].sourceLocationId = ''; + } getPharmacyCabinetList().then((res) => { purposeTypeListOptions.value = res.data; - // handleLocationClick(1, row, index) + handleLocationClick(1, rowValue, index) }); form.purchaseinventoryList[index].itemQuantity = 0; form.purchaseinventoryList[index].totalPrice = 0;