Fix Bug #467: 住院医生工作站检验申请列表显示不规范

- 修复检验申请列表未合并同名申请单明细的问题:getInspectionList 中调用 mergeInspectionApplyRecords 合并数据
- 确保单据名称展示具体检验项目(多个项目用"+"拼接),而非统一显示"检验申请单"

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
赵云
2026-05-08 14:05:49 +08:00
parent 69f3a5fca1
commit 814f9561fe

View File

@@ -1373,13 +1373,13 @@ const getInspectionList = () => {
// 如果返回的是分页对象 {records: [...], total: 100}
if (Array.isArray(res.data.records)) {
// 直接使用后端返回的数据(后端已按申请单返回,无需合并)
inspectionList.value = res.data.records
inspectionList.value = mergeInspectionApplyRecords(res.data.records)
total.value = res.data.total || res.data.records.length
}
// 如果返回的是普通数组
else if (Array.isArray(res.data)) {
// 直接使用后端返回的数据
inspectionList.value = res.data
// 合并同一个申请单的明细
inspectionList.value = mergeInspectionApplyRecords(res.data)
total.value = res.data.length
}
// 如果返回的是其他对象结构