fix(doctorstation): 解决医嘱签发时关键字段缺失问题 bug#181
- 处理前端体征字段中的 null 值转换为空字符串 - 移除后端保存和签发逻辑中的条件判断,确保关键字段始终被设置 - 修复 BUG #181 中医嘱签发时缺少必要业务字段的问题 - 统一保存和签发流程中的字段赋值逻辑 - 保持业务编号在签发时的一致性处理
This commit is contained in:
@@ -575,7 +575,8 @@ const handleSubmit = async () => {
|
||||
const vitalSignFields = ['height', 'weight', 'temperature', 'hertRate', 'pulse', 'endBloodPressure', 'highBloodPressure'];
|
||||
if (vitalSignFields.includes(key)) {
|
||||
// 体征字段:提交所有值,包括空字符串(用于清除数据)
|
||||
formData[key] = value === undefined ? '' : value;
|
||||
// 处理 undefined 和 null 都转为空字符串
|
||||
formData[key] = (value === undefined || value === null) ? '' : String(value);
|
||||
} else if (value !== '' && value !== null && value !== undefined) {
|
||||
// 其他字段:只保留非空值
|
||||
formData[key] = value;
|
||||
|
||||
Reference in New Issue
Block a user