From 713892d17af55cd7b51b806dba8d8af9931e5506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B3=E7=BE=BD?= <关羽@gentronhealth.com> Date: Thu, 14 May 2026 09:24:36 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#452:=20=E9=A2=86=E7=94=A8=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E6=A8=A1=E5=9D=97=E9=80=89=E6=8B=A9=E8=8D=AF=E5=93=81?= =?UTF-8?q?=E6=97=B6=E6=8F=90=E7=A4=BA"=E4=BB=93=E5=BA=93=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E4=B8=BA0=EF=BC=8C=E6=97=A0=E6=B3=95=E8=B0=83?= =?UTF-8?q?=E7=94=A8"=EF=BC=8C=E4=B8=8E=E5=AE=9E=E9=99=85=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E6=95=B0=E6=8D=AE=E4=B8=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:药品目录列表中返回的lotNumber是任意仓库中的批号,但getCount查询时用该lotNumber过滤用户选择的仓库库存。若该批号在目标仓库不存在(但其他批号存在),则返回0条记录导致误报"仓库数量为0"。 修复:在领用出库的handleLocationClick中移除getCount的lotNumber参数,改为查询该药品在所选仓库的所有批号库存。 Co-Authored-By: Claude Opus 4.7 --- .../requisitionManagement/requisitionManagement/index.vue | 2 -- 1 file changed, 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 e3bd57df8..636feaaa0 100755 --- a/openhis-ui-vue3/src/views/medicationmanagement/requisitionManagement/requisitionManagement/index.vue +++ b/openhis-ui-vue3/src/views/medicationmanagement/requisitionManagement/requisitionManagement/index.vue @@ -1009,8 +1009,6 @@ function handleLocationClick(item, row, index) { getCount({ itemId: form.purchaseinventoryList[index].itemId, orgLocationId: form.purchaseinventoryList[index].sourceLocationId, - // objLocationId:purposeLocationId, - lotNumber: form.purchaseinventoryList[index].lotNumber, }).then((res) => { if (res.data && res.data.length > 0) { form.purchaseinventoryList[index].itemTable = res.data[0].itemTable || '';