Fix Bug #494: 住院医生工作站-检查申请:"申请单名称"字段显示为通用名称,未展示具体检查项目名称
根因:提交检查申请单时,applicationListAllFilter 的 map 映射未包含 adviceName 字段, 导致 name 构造为 undefined、undefined,保存到数据库为空字符串。 修复:改为从 applicationListAll(原始数据)中按 adviceDefinitionId 查找项目名称。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -483,7 +483,10 @@ const submit = () => {
|
|||||||
encounterId: patientInfo.value.encounterId,
|
encounterId: patientInfo.value.encounterId,
|
||||||
organizationId: patientInfo.value.inHospitalOrgId,
|
organizationId: patientInfo.value.inHospitalOrgId,
|
||||||
requestFormId: '',
|
requestFormId: '',
|
||||||
name: applicationListAllFilter.map(item => item.adviceName).join('、'),
|
name: transferValue.value.map(id => {
|
||||||
|
const item = applicationListAll.value?.find(i => i.adviceDefinitionId === id);
|
||||||
|
return item?.adviceName || '';
|
||||||
|
}).filter(Boolean).join('、'),
|
||||||
descJson: JSON.stringify(submitForm),
|
descJson: JSON.stringify(submitForm),
|
||||||
categoryEnum: '2',
|
categoryEnum: '2',
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user