From 6e63d3c286564b36a8273f92266e1860f878428f Mon Sep 17 00:00:00 2001 From: duhe Date: Wed, 26 Mar 2025 15:52:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=AF=E5=93=81=E7=94=BB=E9=9D=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E9=87=8D=E6=96=B0=E5=AF=B9=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../catalog/medicine/components/medicine.js | 29 +- .../medicine/components/medicineDialog.vue | 331 +++++++++++------- .../src/views/catalog/medicine/index.vue | 299 ++++++++++++---- 3 files changed, 448 insertions(+), 211 deletions(-) diff --git a/openhis-ui-vue3/src/views/catalog/medicine/components/medicine.js b/openhis-ui-vue3/src/views/catalog/medicine/components/medicine.js index 0ba4330f..c5e1a74c 100644 --- a/openhis-ui-vue3/src/views/catalog/medicine/components/medicine.js +++ b/openhis-ui-vue3/src/views/catalog/medicine/components/medicine.js @@ -13,8 +13,9 @@ export function getMedicationList(query) { // 查询药品目录详细 export function getMedicationOne(id) { return request({ - url: '/data-dictionary/medication/information-one/' + parseStrEmpty(id), - method: 'get' + url: '/data-dictionary/medication/information-one', + method: 'get', + params: { id } // 确保参数正确传递 }) } @@ -53,7 +54,7 @@ export function getMedicationCategory() { } -// 停用病种目录 +// 停用药品目录 export function stopMedication(ids) { console.log(ids) return request({ @@ -63,7 +64,7 @@ export function stopMedication(ids) { }) } -// 启用病种目录 +// 启用药品目录 export function startMedication(ids) { console.log(ids) return request({ @@ -71,4 +72,22 @@ export function startMedication(ids) { method: 'put', data: ids }) -} \ No newline at end of file +} + +// 查询部门树形数据 +export function deptTreeSelect(queryParams) { + return request({ + url: '/base-data-manage/organization/organization', + method: 'get', + param: queryParams + }) +} + +// 查询地点树形数据 +export function locationTreeSelect(queryParams) { + return request({ + url: '/base-data-manage/cabinet-location/cabinet-location', + method: 'get', + param: queryParams + }) +} diff --git a/openhis-ui-vue3/src/views/catalog/medicine/components/medicineDialog.vue b/openhis-ui-vue3/src/views/catalog/medicine/components/medicineDialog.vue index 339140cb..a650482f 100644 --- a/openhis-ui-vue3/src/views/catalog/medicine/components/medicineDialog.vue +++ b/openhis-ui-vue3/src/views/catalog/medicine/components/medicineDialog.vue @@ -77,12 +77,39 @@ - + + + + + + - + - + @@ -153,15 +180,6 @@ - - - - - - + @@ -189,15 +207,15 @@ - - + - + @@ -265,27 +283,22 @@ - - + + - - + + - - + + - - - - - @@ -301,6 +314,11 @@ + + + + + @@ -412,16 +430,6 @@ - - - - - - - + @@ -452,13 +460,25 @@ - - + + - + + + @@ -469,13 +489,13 @@ - - + + - - + + @@ -485,7 +505,7 @@ - + - - + + + + + + + - + + - - + + - - - - + @@ -566,9 +580,9 @@ - + @@ -576,9 +590,9 @@ - - + @@ -587,9 +601,9 @@ - + @@ -597,9 +611,9 @@ - - + @@ -627,18 +641,6 @@ - - - - - - - (单位g) - @@ -653,22 +655,16 @@