From 9aa6286b3c0cc0df862813b04cedb74e5de53874 Mon Sep 17 00:00:00 2001 From: duhe Date: Fri, 28 Mar 2025 15:47:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=99=A8=E6=9D=90=E7=9B=AE=E5=BD=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=AF=B9=E5=BA=94=20up=20by=20dh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/components/deviceDialog.vue | 43 +++-- .../src/views/catalog/device/index.vue | 151 +++++++++++------- .../components/diagnosisTreatmentDialog.vue | 2 +- .../medicine/components/medicineDialog.vue | 6 +- .../src/views/catalog/medicine/index.vue | 2 +- 5 files changed, 125 insertions(+), 79 deletions(-) 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 aae45d31..faf62bac 100644 --- a/openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue +++ b/openhis-ui-vue3/src/views/catalog/device/components/deviceDialog.vue @@ -5,17 +5,17 @@ - + @@ -25,9 +25,9 @@ - + - + @@ -305,9 +305,11 @@ import { } from "./device"; const { proxy } = getCurrentInstance(); -const { device_type_code, unit_code } = proxy.useDict( +const { device_type_code, unit_code,fin_type_code,yb_type } = proxy.useDict( "device_type_code", - "unit_code" + "unit_code", + "fin_type_code", + "yb_type" ); const title = ref(""); @@ -326,7 +328,7 @@ const data = reactive({ name: [{ required: true, message: "名称不能为空", trigger: "blur" }], pyStr: [{ required: true, message: "拼音不能为空", trigger: "blur" }], wbStr: [{ required: true, message: "五笔拼音不能为空", trigger: "blur" }], - categoryEnum: [ + categoryCode: [ { required: true, message: "器材分类不能为空", trigger: "blur" }, ], typeCode: [ @@ -376,6 +378,11 @@ const data = reactive({ ], orgId: [{ required: true, message: "提供部门不能为空", trigger: "blur" }], locationId: [{ required: true, message: "地点不能为空", trigger: "blur" }], + purchasePrice:[{ required: true, message: "购入价不能为空", trigger: "blur" }], + retailPrice:[{ required: true, message: "零售价不能为空", trigger: "blur" }], + maximumRetailPrice:[{ required: true, message: "最高零售价不能为空", trigger: "blur" }], + ybType:[{ required: true, message: "医保类型不能为空", trigger: "blur" }], + itemTypeCode:[{ required: true, message: "财务类型不能为空", trigger: "blur" }], }, }); @@ -402,6 +409,10 @@ const props = defineProps({ type: String, required: true, }, + supplierListOptions: { + type: Object, + required: false, + }, }); // 显示弹框 @@ -411,7 +422,8 @@ function show() { title.value = props.title; deviceCategories.value = props.deviceCategories; statusFlagOptions.value = props.statusFlagOptions; - form.value.categoryEnum = props.currentCategoryEnum; + form.value.categoryCode = props.currentCategoryEnum; + supplierListOptions.value = props.supplierListOptions; console.log(props, "22222", title.value, props.deviceCategories); getDeptTree(); getLocationTree(); @@ -440,6 +452,7 @@ function edit() { form.value = props.item; deviceCategories.value = props.deviceCategories; statusFlagOptions.value = props.statusFlagOptions; + supplierListOptions.value = props.supplierListOptions; getDeptTree(); getLocationTree(); visible.value = true; @@ -452,7 +465,7 @@ function reset() { name: undefined, // 名称 pyStr: undefined, // 拼音码 wbStr: undefined, // 五笔码 - categoryEnum: undefined, // 类别 + categoryCode: undefined, // 类别 typeCode: undefined, // 类型编码 unitCode: undefined, // 单位编码 size: undefined, // 规格 @@ -477,12 +490,12 @@ function reset() { orgId: undefined, // 科室ID locationId: undefined, // 地点ID ybType: undefined, // 医保类型 - minimalFee: undefined, // 最小收费 + itemTypeCode: undefined, // 最小收费 purchasePrice: undefined, // 购入价 retailPrice: undefined, // 零售价 maximumRetailPrice: undefined, // 最高零售价 }; - proxy.resetForm("medicationRef"); + proxy.resetForm("deviceDialogRef"); } /** 提交按钮 */ diff --git a/openhis-ui-vue3/src/views/catalog/device/index.vue b/openhis-ui-vue3/src/views/catalog/device/index.vue index ee427f4b..1d6adbed 100644 --- a/openhis-ui-vue3/src/views/catalog/device/index.vue +++ b/openhis-ui-vue3/src/views/catalog/device/index.vue @@ -27,7 +27,7 @@ label-width="68px" > - + - + - - - - - - - @@ -175,24 +159,24 @@ + + @@ -272,24 +270,32 @@ - --> + @@ -308,13 +314,6 @@ :show-overflow-tooltip="true" width="120" /> - + + + - + - +