From 824281c6afa945e559b3316440acdde215b30a28 Mon Sep 17 00:00:00 2001 From: duhe Date: Fri, 28 Feb 2025 17:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=89=8D=E5=8F=B0?= =?UTF-8?q?=20=E5=85=B6=E4=BB=96=E7=94=BB=E9=9D=A2bug=E4=BF=AE=E6=AD=A3=20?= =?UTF-8?q?up=20by=20dh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplier/components/supplier.js | 63 +++ .../src/views/basicmanage/supplier/index.vue | 504 ++++++++++++++++++ .../views/catalog/device/components/device.js | 1 + .../device/components/deviceDialog.vue | 14 +- .../device/components/deviceViewDialog.vue | 6 - .../src/views/catalog/device/index.vue | 10 +- .../components/diagnosisTreatmentDialog.vue | 52 +- .../diagnosisTreatmentViewDialog.vue | 6 - .../catalog/diagnosisTreatment/index.vue | 6 +- .../src/views/catalog/disease/index.vue | 6 +- .../medicine/components/medicineDialog.vue | 6 - .../components/medicineViewDialog.vue | 6 - .../src/views/catalog/medicine/index.vue | 6 +- 13 files changed, 625 insertions(+), 61 deletions(-) create mode 100644 openhis-ui-vue3/src/views/basicmanage/supplier/components/supplier.js create mode 100644 openhis-ui-vue3/src/views/basicmanage/supplier/index.vue diff --git a/openhis-ui-vue3/src/views/basicmanage/supplier/components/supplier.js b/openhis-ui-vue3/src/views/basicmanage/supplier/components/supplier.js new file mode 100644 index 00000000..c5945411 --- /dev/null +++ b/openhis-ui-vue3/src/views/basicmanage/supplier/components/supplier.js @@ -0,0 +1,63 @@ +import request from '@/utils/request' +import { parseStrEmpty } from "@/utils/openhis"; + +// 查询病种目录列表 +export function getSupplierList(query) { + return request({ + url: '/data-dictionary/supplier/get-supplier-list', + method: 'get', + params: query + }) +} + +// 查询病种目录详细 +export function getSupplierOne(id) { + return request({ + url: '/data-dictionary/supplier/get-supplier-detail/' + parseStrEmpty(id), + method: 'get' + }) +} + +// 新增病种目录 +export function addSupplier(data) { + return request({ + url: '/data-dictionary/supplier/add-supplier', + method: 'post', + data: data + }) +} + +// 修改病种目录 +export function editSupplier(data) { + return request({ + url: '/data-dictionary/supplier/edit-supplier', + method: 'put', + data: data + }) +} + +// // 删除病种目录 +// export function delUser(userId) { +// return request({ +// url: '/system/user/' + userId, +// method: 'delete' +// }) +// } + +// 停用病种目录 +export function stopSupplier(ids) { + return request({ + url: '/data-dictionary/supplier/information-stop', + method: 'put', + data: ids + }) +} + +// 启用病种目录 +export function startSupplier(ids) { + return request({ + url: '/data-dictionary/supplier/information-start', + method: 'put', + data: ids + }) +} \ No newline at end of file diff --git a/openhis-ui-vue3/src/views/basicmanage/supplier/index.vue b/openhis-ui-vue3/src/views/basicmanage/supplier/index.vue new file mode 100644 index 00000000..43a99615 --- /dev/null +++ b/openhis-ui-vue3/src/views/basicmanage/supplier/index.vue @@ -0,0 +1,504 @@ + + + + \ No newline at end of file diff --git a/openhis-ui-vue3/src/views/catalog/device/components/device.js b/openhis-ui-vue3/src/views/catalog/device/components/device.js index d48b4b78..879ec8b3 100644 --- a/openhis-ui-vue3/src/views/catalog/device/components/device.js +++ b/openhis-ui-vue3/src/views/catalog/device/components/device.js @@ -3,6 +3,7 @@ import { parseStrEmpty } from "@/utils/openhis"; // 查询器材目录列表 export function getDeviceList(query) { + console.log(query,'aaaaa') return request({ url: '/datadictionary/device/information-page', method: 'get', diff --git a/openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue b/openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue index 57415644..8fe85121 100644 --- a/openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue +++ b/openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue @@ -265,12 +265,6 @@ const emits = defineEmits(["submit"]); // 声明自定义事件 const data = reactive({ form: {}, - queryParams: { - pageNum: 1, - pageSize: 50, - diseaseName: undefined, // 疾病名称 - status: undefined, // 状态(包括 1:预置,2:启用,3:停用) - }, rules: { // busNo: [{ required: true, message: "编码不能为空", trigger: "blur" }], // name: [{ required: true, message: "名称不能为空", trigger: "blur" }], @@ -353,6 +347,8 @@ function submitForm() { // : (form.value.statusEnum = "2"); // console.log(form.value, "editDevice", form.value.statusEnum); editDevice(form.value).then((response) => { + // 触发自定义事件,并传递数据给父组件 + emits("submit"); proxy.$modal.msgSuccess("修改成功"); visible.value = false; reset(); // 重置表单数据 @@ -367,6 +363,12 @@ function submitForm() { }); } } + +/** 取消按钮 */ +function cancel() { + open.value = false; + reset(); +} defineExpose({ show, edit, diff --git a/openhis-ui-vue3/src/views/catalog/device/components/deviceViewDialog.vue b/openhis-ui-vue3/src/views/catalog/device/components/deviceViewDialog.vue index aa29e8f9..a0087d0e 100644 --- a/openhis-ui-vue3/src/views/catalog/device/components/deviceViewDialog.vue +++ b/openhis-ui-vue3/src/views/catalog/device/components/deviceViewDialog.vue @@ -304,12 +304,6 @@ const conditionDefinitionOptions = ref(undefined); const data = reactive({ form: {}, - queryParams: { - pageNum: 1, - pageSize: 50, - diseaseName: undefined, // 疾病名称 - status: undefined, // 状态(包括 1:预置,2:启用,3:停用) - }, rules: { name: [{ required: true, message: "名称不能为空", trigger: "blur" }], conditionCode: [ diff --git a/openhis-ui-vue3/src/views/catalog/device/index.vue b/openhis-ui-vue3/src/views/catalog/device/index.vue index 79e655c5..f44e1eca 100644 --- a/openhis-ui-vue3/src/views/catalog/device/index.vue +++ b/openhis-ui-vue3/src/views/catalog/device/index.vue @@ -377,7 +377,7 @@ @@ -436,7 +436,7 @@ const viewData = ref({}); const data = reactive({ form: {}, queryParams: { - pageNum: 1, + pageNo: 1, pageSize: 50, searchKey: undefined, // 品名/商品名/英文品名/编码/拼音 typeEnum: undefined, // 类型(包括 1:中药,2:成药) @@ -472,6 +472,7 @@ function getDiseaseTreatmentList() { } /** 查询器材目录列表 */ function getList() { + console.log(getList, "getList"); loading.value = true; getDeviceList(queryParams.value).then((res) => { loading.value = false; @@ -486,7 +487,7 @@ function handleNodeClick(data) { } /** 搜索按钮操作 */ function handleQuery() { - queryParams.value.pageNum = 1; + queryParams.value.pageNo = 1; getList(); } @@ -558,7 +559,8 @@ function openAddDevice() { } /** 打开编辑弹窗 */ function openEditDevice(row) { - console.log("打开新增弹窗"); + currentData.value = {} + console.log("打开编辑弹窗"); currentData.value = row; console.log(currentData.value, "currentData"); title.value = "编辑"; diff --git a/openhis-ui-vue3/src/views/catalog/diagnosisTreatment/components/diagnosisTreatmentDialog.vue b/openhis-ui-vue3/src/views/catalog/diagnosisTreatment/components/diagnosisTreatmentDialog.vue index 85399565..758803b0 100644 --- a/openhis-ui-vue3/src/views/catalog/diagnosisTreatment/components/diagnosisTreatmentDialog.vue +++ b/openhis-ui-vue3/src/views/catalog/diagnosisTreatment/components/diagnosisTreatmentDialog.vue @@ -30,7 +30,11 @@ - + @@ -59,7 +63,11 @@ - + @@ -75,7 +83,7 @@ - + @@ -94,14 +102,22 @@ - + - + @@ -109,7 +125,6 @@ - @@ -124,7 +139,7 @@ -