From b5c308d9cb392bb1460834a9028ea238cf471ea0 Mon Sep 17 00:00:00 2001 From: chenqi Date: Thu, 14 May 2026 15:54:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../requisitionManagement/index.vue | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 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 e4470e2ac..f9bacdf61 100755 --- a/openhis-ui-vue3/src/views/medicationmanagement/requisitionManagement/requisitionManagement/index.vue +++ b/openhis-ui-vue3/src/views/medicationmanagement/requisitionManagement/requisitionManagement/index.vue @@ -534,6 +534,7 @@ const userStore = useUserStore(); const openTraceNoDialog = ref(false) const rowData = ref({}) const ypName = ref('') +const currentIndex = ref(-1) const { proxy } = getCurrentInstance(); const { warehous_type, category_code, service_type_code, specialty_code, purchase_type } = @@ -1072,13 +1073,6 @@ function onHeaderWarehouseChange() { // 选择仓库 / 选药品后拉取该仓库存 function handleLocationClick(item, row, index) { - getCount({ - itemId: form.purchaseinventoryList[index].itemId, - orgLocationId: form.purchaseinventoryList[index].sourceLocationId, - }).then((res) => { - if (res.data && res.data.length > 0) { - form.purchaseinventoryList[index].itemTable = res.data[0].itemTable || ''; - form.purchaseinventoryList[index].totalQuantity = res.data[0].orgQuantity || 0; const r = form.purchaseinventoryList[index]; let orgLocationId = r.sourceLocationId || receiptHeaderForm.headerLocationId || ''; if (!orgLocationId) { @@ -1481,7 +1475,7 @@ function handleScan(row,index){ rowData.value = row rowData.value.itemType = receiptHeaderForm.medicationType ypName.value = row.name - openTraceNoDialog .value = true; + openTraceNoDialog.value = true; currentIndex.value = index } @@ -1704,6 +1698,17 @@ const exportRequiredParams = ref({ pageSize: 10, busNo: route.query.supplyBusNo }); + +// 追溯码对话框提交处理 +function submit(traceNoData) { + if (currentIndex.value >= 0 && form.purchaseinventoryList[currentIndex.value]) { + form.purchaseinventoryList[currentIndex.value].traceNo = traceNoData.traceNo; + form.purchaseinventoryList[currentIndex.value].ybNo = traceNoData.ybNo; + proxy.$message.success('追溯码保存成功'); + } + openTraceNoDialog.value = false; +} + function handleExport() { proxy.downloadGet( '/issue-manage/requisition/excel-out',