From 3180f1e06265dc2bd143c08b2bf912fa4982017b Mon Sep 17 00:00:00 2001 From: duhe Date: Thu, 27 Feb 2025 18:32:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=99=A8=E6=9D=90=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E7=94=BB=E9=9D=A2=20up=20by=20dh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/catalog/device/components/device.js | 73 +++ .../device/components/deviceDialog.vue | 382 +++++++++++ .../device/components/deviceViewDialog.vue | 363 +++++++++++ .../src/views/catalog/device/index.vue | 600 ++++++++++++++++++ .../src/views/catalog/disease/index.vue | 4 +- .../catalog/medicine/components/medicine.js | 17 - .../src/views/catalog/medicine/index.vue | 40 +- 7 files changed, 1440 insertions(+), 39 deletions(-) create mode 100644 openhis-ui-vue3/src/views/catalog/device/components/device.js create mode 100644 openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue create mode 100644 openhis-ui-vue3/src/views/catalog/device/components/deviceViewDialog.vue create mode 100644 openhis-ui-vue3/src/views/catalog/device/index.vue diff --git a/openhis-ui-vue3/src/views/catalog/device/components/device.js b/openhis-ui-vue3/src/views/catalog/device/components/device.js new file mode 100644 index 00000000..d48b4b78 --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/device/components/device.js @@ -0,0 +1,73 @@ +import request from '@/utils/request' +import { parseStrEmpty } from "@/utils/openhis"; + +// 查询器材目录列表 +export function getDeviceList(query) { + return request({ + url: '/datadictionary/device/information-page', + method: 'get', + params: query + }) +} + +// 查询器材目录详细 +export function getDeviceOne(id) { + return request({ + url: '/datadictionary/device/information-one/' + parseStrEmpty(id), + method: 'get' + }) +} + +// 新增器材目录 +export function addDevice(data) { + return request({ + url: '/datadictionary/device/information', + method: 'post', + data: data + }) +} + +// 修改器材目录 +export function editDevice(data) { + return request({ + url: '/datadictionary/device/information', + method: 'put', + data: data + }) +} + +// // 删除器材目录 +// export function delUser(userId) { +// return request({ +// url: '/system/user/' + userId, +// method: 'delete' +// }) +// } + +// 器材目录分类查询 +export function getDiseaseTreatmentInit() { + return request({ + url: '/datadictionary/device/init', + method: 'get' + }) +} + +// 停用病种目录 +export function stopDevice(ids) { + console.log(ids) + return request({ + url: '/datadictionary/device/information-stop', + method: 'put', + data: ids + }) +} + +// 启用病种目录 +export function startDevice(ids) { + console.log(ids) + return request({ + url: '/datadictionary/device/information-start', + method: 'put', + data: ids + }) +} \ No newline at end of file diff --git a/openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue b/openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue new file mode 100644 index 00000000..c64dc23c --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue @@ -0,0 +1,382 @@ + + + + diff --git a/openhis-ui-vue3/src/views/catalog/device/components/deviceViewDialog.vue b/openhis-ui-vue3/src/views/catalog/device/components/deviceViewDialog.vue new file mode 100644 index 00000000..aa29e8f9 --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/device/components/deviceViewDialog.vue @@ -0,0 +1,363 @@ + + + + diff --git a/openhis-ui-vue3/src/views/catalog/device/index.vue b/openhis-ui-vue3/src/views/catalog/device/index.vue new file mode 100644 index 00000000..622f9970 --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/device/index.vue @@ -0,0 +1,600 @@ + + + + diff --git a/openhis-ui-vue3/src/views/catalog/disease/index.vue b/openhis-ui-vue3/src/views/catalog/disease/index.vue index 83c48d95..7629d794 100644 --- a/openhis-ui-vue3/src/views/catalog/disease/index.vue +++ b/openhis-ui-vue3/src/views/catalog/disease/index.vue @@ -207,7 +207,7 @@ label="停用" align="center" key="statusEnum" - rop="statusEnum" + prop="statusEnum" width="160" /> ({ ...item })); // 存储选择的行数据 - ids.value = selection.map(item => item.userId); + ids.value = selection.map(item => item.id); single.value = selection.length != 1; multiple.value = !selection.length; } 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 ec0123fb..c4a3cb0f 100644 --- a/openhis-ui-vue3/src/views/catalog/medicine/components/medicine.js +++ b/openhis-ui-vue3/src/views/catalog/medicine/components/medicine.js @@ -51,20 +51,3 @@ export function getMedicationCategory() { method: 'get' }) } - -// 修改用户个人信息 -export function updateUserProfile(data) { - return request({ - url: '/system/user/profile', - method: 'put', - data: data - }) -} - -// 查询部门下拉树结构 -export function deptTreeSelect() { - return request({ - url: '/system/user/deptTree', - method: 'get' - }) -} diff --git a/openhis-ui-vue3/src/views/catalog/medicine/index.vue b/openhis-ui-vue3/src/views/catalog/medicine/index.vue index 3a8d6bc8..ca703e7d 100644 --- a/openhis-ui-vue3/src/views/catalog/medicine/index.vue +++ b/openhis-ui-vue3/src/views/catalog/medicine/index.vue @@ -241,35 +241,35 @@ label="单价" align="center" key="statusEnum" - rop="statusEnum" + prop="statusEnum" :show-overflow-tooltip="true" /> @@ -277,7 +277,7 @@ label="医保已对码" align="center" key="ybMatchFlag" - rop="ybMatchFlag" + prop="ybMatchFlag" :show-overflow-tooltip="true" width="100" /> @@ -285,21 +285,21 @@ label="医保等级" align="center" key="statusEnum" - rop="statusEnum" + prop="statusEnum" :show-overflow-tooltip="true" /> @@ -307,7 +307,7 @@ label="限制使用范围" align="center" key="restrictedScope" - rop="restrictedScope" + prop="restrictedScope" :show-overflow-tooltip="true" width="110" /> @@ -315,14 +315,14 @@ label="目录限价" align="center" key="statusEnum" - rop="statusEnum" + prop="statusEnum" :show-overflow-tooltip="true" /> @@ -330,7 +330,7 @@ label="已发生业务" align="center" key="statusEnum" - rop="statusEnum" + prop="statusEnum" :show-overflow-tooltip="true" width="90" /> @@ -338,7 +338,7 @@ label="确认可用标记" align="center" key="statusEnum" - rop="statusEnum" + prop="statusEnum" :show-overflow-tooltip="true" width="110" /> @@ -346,14 +346,14 @@ label="停用" align="center" key="statusEnum" - rop="statusEnum" + prop="statusEnum" :show-overflow-tooltip="true" /> @@ -361,14 +361,14 @@ label="用法煎法" align="center" key="statusEnum" - rop="statusEnum" + prop="statusEnum" :show-overflow-tooltip="true" /> @@ -376,14 +376,14 @@ label="采购价" align="center" key="statusEnum" - rop="statusEnum" + prop="statusEnum" :show-overflow-tooltip="true" /> From 8d4539bf833dddfa39d0abdef9f2ab1683afbef2 Mon Sep 17 00:00:00 2001 From: liuhongrui Date: Fri, 28 Feb 2025 09:45:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E5=85=B3?= =?UTF-8?q?=E7=B3=BB=E7=B1=BB=E5=9E=8B=20=20=E6=94=B9=E4=B8=BA=20=20?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/openhis/administration/domain/Patient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Patient.java b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Patient.java index 13cd1d01..0a779d3a 100644 --- a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Patient.java +++ b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Patient.java @@ -110,7 +110,7 @@ public class Patient extends HisBaseEntity { private String linkName; /** 联系人关系 */ - private Integer linkRelationCode; + private FamilyRelationshipType linkRelationCode; /** 联系人电话 */ private String linkTelcom;