fix: 修复前端Bug#431 #433 #434 #435

#431 会诊申请单:标签文案修改「需要病员及会诊目的」为「简要病史及会诊目的」
#433 手术安排编辑:麻醉方法回显为代码 - 添加Number类型转换
#434 手术安排编辑:切口类型未回显 - 添加Number类型转换
#435 手术安排编辑:费用类别未回显 - 确保字段正确赋值
This commit is contained in:
2026-04-24 14:39:49 +08:00
parent 328ccbbd99
commit 22b47fcc95
2 changed files with 9 additions and 1 deletions

View File

@@ -1265,6 +1265,10 @@ function handleEdit(row) {
if (res.code === 200) {
const data = res.data
Object.assign(form, data)
// 修复#433 #434 #435确保字典字段类型与下拉选项一致Number类型
if (data.anesthesiaTypeEnum != null) form.anesMethod = Number(data.anesthesiaTypeEnum)
if (data.incisionLevel != null) form.incisionType = Number(data.incisionLevel)
if (data.feeType != null) form.feeType = data.feeType
} else {
proxy.$modal.msgError('获取手术安排详情失败')
}
@@ -1284,6 +1288,10 @@ function handleView(row) {
if (res.code === 200) {
const data = res.data
Object.assign(form, data)
// 修复#433 #434 #435确保字典字段类型与下拉选项一致Number类型
if (data.anesthesiaTypeEnum != null) form.anesMethod = Number(data.anesthesiaTypeEnum)
if (data.incisionLevel != null) form.incisionType = Number(data.incisionLevel)
if (data.feeType != null) form.feeType = data.feeType
} else {
proxy.$modal.msgError('获取手术安排详情失败')
}