374 【诊疗目录】编辑项目时“所属科室”字段显示原始ID而非名称,且修改回显逻辑异常
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.openhis.workflow.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.core.common.core.domain.HisBaseEntity;
|
||||
@@ -46,9 +48,11 @@ public class ActivityDefinition extends HisBaseEntity {
|
||||
private String permittedUnitCode;
|
||||
|
||||
/** 所属科室 */
|
||||
@TableField(updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Long orgId;
|
||||
|
||||
/** 所在位置 */
|
||||
@TableField(updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Long locationId;
|
||||
|
||||
/** 医保标记 */
|
||||
|
||||
@@ -545,6 +545,11 @@ function edit() {
|
||||
title.value = props.title;
|
||||
form.value = props.item;
|
||||
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(允许划价)
|
||||
if (form.value.pricingFlag === null || form.value.pricingFlag === undefined) {
|
||||
form.value.pricingFlag = 1;
|
||||
|
||||
@@ -76,7 +76,7 @@ export function deptTreeSelect (queryParams) {
|
||||
return request ({
|
||||
url: '/base-data-manage/organization/organization',
|
||||
method: 'get',
|
||||
param: queryParams,
|
||||
params: queryParams,
|
||||
});
|
||||
}
|
||||
// 查询身体部位树形数据
|
||||
|
||||
Reference in New Issue
Block a user