374 【诊疗目录】编辑项目时“所属科室”字段显示原始ID而非名称,且修改回显逻辑异常

This commit is contained in:
2026-04-23 16:48:55 +08:00
parent 87d4214541
commit 937b4508ae
3 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
package com.openhis.workflow.domain; package com.openhis.workflow.domain;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.core.common.core.domain.HisBaseEntity; import com.core.common.core.domain.HisBaseEntity;
@@ -46,9 +48,11 @@ public class ActivityDefinition extends HisBaseEntity {
private String permittedUnitCode; private String permittedUnitCode;
/** 所属科室 */ /** 所属科室 */
@TableField(updateStrategy = FieldStrategy.ALWAYS)
private Long orgId; private Long orgId;
/** 所在位置 */ /** 所在位置 */
@TableField(updateStrategy = FieldStrategy.ALWAYS)
private Long locationId; private Long locationId;
/** 医保标记 */ /** 医保标记 */

View File

@@ -545,6 +545,11 @@ function edit() {
title.value = props.title; title.value = props.title;
form.value = props.item; form.value = props.item;
form.value.chrgitmLv = form.value.chrgitmLv ? form.value.chrgitmLv.toString() : undefined; form.value.chrgitmLv = form.value.chrgitmLv ? form.value.chrgitmLv.toString() : undefined;
// 所属科室如果后端无法翻译科室名称orgId_dictText为空则清空orgId
// 避免el-tree-select回退显示原始数字ID而是显示"请选择..."占位符
if (!form.value.orgId_dictText) {
form.value.orgId = undefined;
}
// 划价标记编辑时若原值为null/undefined则默认为1允许划价 // 划价标记编辑时若原值为null/undefined则默认为1允许划价
if (form.value.pricingFlag === null || form.value.pricingFlag === undefined) { if (form.value.pricingFlag === null || form.value.pricingFlag === undefined) {
form.value.pricingFlag = 1; form.value.pricingFlag = 1;

View File

@@ -76,7 +76,7 @@ export function deptTreeSelect (queryParams) {
return request ({ return request ({
url: '/base-data-manage/organization/organization', url: '/base-data-manage/organization/organization',
method: 'get', method: 'get',
param: queryParams, params: queryParams,
}); });
} }
// 查询身体部位树形数据 // 查询身体部位树形数据