From d5f177ae56c7f04d1a58d830c5b83bb808ed2329 Mon Sep 17 00:00:00 2001 From: chenqi Date: Wed, 17 Jun 2026 15:19:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor(diagnosistreatment):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=AF=8A=E6=96=AD=E6=B2=BB=E7=96=97=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E6=A1=86=E7=BB=84=E4=BB=B6=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除未使用的 title 响应式变量 - 移除未使用的下拉选项响应式变量(diagnosisCategoryOptions、statusFlagOptions、exeOrganizations、typeEnumOptions) - 简化组件初始化逻辑,直接使用 props 数据 - 清理多余的赋值操作,提高代码可读性 - 优化图标SVG路径定义,调整矩形绘制方式 --- healthlink-his-ui/src/assets/icons.svg | 7 ++++--- .../components/diagnosisTreatmentDialog.vue | 17 ----------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/healthlink-his-ui/src/assets/icons.svg b/healthlink-his-ui/src/assets/icons.svg index 815bc8555..1c59a15b2 100644 --- a/healthlink-his-ui/src/assets/icons.svg +++ b/healthlink-his-ui/src/assets/icons.svg @@ -1,6 +1,7 @@ - - - + + + + \ No newline at end of file diff --git a/healthlink-his-ui/src/views/catalog/diagnosistreatment/components/diagnosisTreatmentDialog.vue b/healthlink-his-ui/src/views/catalog/diagnosistreatment/components/diagnosisTreatmentDialog.vue index 325a3f41d..f6976cf8d 100755 --- a/healthlink-his-ui/src/views/catalog/diagnosistreatment/components/diagnosisTreatmentDialog.vue +++ b/healthlink-his-ui/src/views/catalog/diagnosistreatment/components/diagnosisTreatmentDialog.vue @@ -507,16 +507,11 @@ const { specimen_code, unit_code, med_chrgitm_type, fin_type_code, activity_cate ); const isTemplateActive = ref(true); -const title = ref(''); const visible = ref(false); const emits = defineEmits(['submit']); // 声明自定义事件 const deptOptions = ref(undefined); // 部门树选项 const bodyOptions = ref(undefined); // 身体部位树选项 const locationOptions = ref(undefined); // 地点树选项 -const diagnosisCategoryOptions = ref(undefined); -const statusFlagOptions = ref(undefined); -const exeOrganizations = ref(undefined); -const typeEnumOptions = ref(undefined); const diagnosisTreatmentList = ref([]); // 使用单位过滤后的选项 const filteredUnitCode = ref([]); @@ -639,12 +634,6 @@ function show() { filteredUnitCode.value = []; isFilteringUnitCode.value = false; - title.value = ''; - title.value = props.title; - diagnosisCategoryOptions.value = props.diagnosisCategoryOptions; - statusFlagOptions.value = props.statusFlagOptions; - exeOrganizations.value = props.exeOrganizations; - typeEnumOptions.value = props.typeEnumOptions; form.value.categoryCode = props.currentCategoryEnum; form.value.isEditInfoDisable = props.isEditInfoDisable; visible.value = true; @@ -669,8 +658,6 @@ function edit() { // 重置使用单位过滤 filteredUnitCode.value = []; isFilteringUnitCode.value = false; - title.value = ''; - title.value = props.title; form.value = props.item; form.value.chrgitmLv = form.value.chrgitmLv ? form.value.chrgitmLv.toString() : undefined; // 所属科室:如果后端无法翻译科室名称(orgId_dictText为空),则清空orgId, @@ -697,10 +684,6 @@ function edit() { form.value.permittedUnitCode = form.value.permittedUnitCode ? form.value.permittedUnitCode.toString() : undefined; - diagnosisCategoryOptions.value = props.diagnosisCategoryOptions; - statusFlagOptions.value = props.statusFlagOptions; - exeOrganizations.value = props.exeOrganizations; - typeEnumOptions.value = props.typeEnumOptions; visible.value = true; // 编辑时计算初始总价