Compare commits

...

3 Commits

Author SHA1 Message Date
808c0305c9 Merge remote-tracking branch 'origin/develop' into develop 2026-06-17 15:19:58 +08:00
d5f177ae56 refactor(diagnosistreatment): 优化诊断治疗对话框组件结构
- 移除未使用的 title 响应式变量
- 移除未使用的下拉选项响应式变量(diagnosisCategoryOptions、statusFlagOptions、exeOrganizations、typeEnumOptions)
- 简化组件初始化逻辑,直接使用 props 数据
- 清理多余的赋值操作,提高代码可读性
- 优化图标SVG路径定义,调整矩形绘制方式
2026-06-17 15:19:33 +08:00
52b94b9df4 refactor(icons): 优化SVG图标路径结构
- 移除多余的垂直线条路径定义
- 简化为三个水平条形路径,减少重复代码
- 保持图标的视觉表现一致性

fix(device): 修复设备对话框标题和选项初始化问题

- 移除冗余的标题赋值操作
- 删除未使用的分类、状态和供应商选项属性
- 保留必要的表单重置和树形结构加载逻辑
2026-06-17 15:00:54 +08:00
2 changed files with 0 additions and 22 deletions

View File

@@ -638,13 +638,8 @@ function getLocationTree() {
// 显示弹框
function edit() {
reset();
title.value = '';
title.value = props.title;
form.value = props.item;
form.value.chrgitmLv = form.value.chrgitmLv ? form.value.chrgitmLv.toString() : undefined;
deviceCategories.value = props.deviceCategories;
statusFlagOptions.value = props.statusFlagOptions;
supplierListOptions.value = props.supplierListOptions;
getDeptTree();
getLocationTree();
// 初始化包装单位列表

View File

@@ -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;
// 编辑时计算初始总价