From b53cdfa617677e532a72e86faf5eb828ab4ddfeb Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Fri, 24 Apr 2026 15:08:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DBug#439=E9=A2=86?= =?UTF-8?q?=E7=94=A8=E5=87=BA=E5=BA=93=E6=80=BB=E5=BA=93=E5=AD=98=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E6=9C=AA=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 保留selectRow中sourceLocationId不被清空(handleAddRow已设置) 2. 取消注释handleLocationClick调用,自动获取库存数量 --- .../requisitionManagement/requisitionManagement/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;