Fix Bug #467: 住院医生工作站检验申请列表显示不规范
- 修复检验申请列表未合并同名申请单明细的问题:getInspectionList 中调用 mergeInspectionApplyRecords 合并数据 - 确保单据名称展示具体检验项目(多个项目用"+"拼接),而非统一显示"检验申请单" Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1373,13 +1373,13 @@ const getInspectionList = () => {
|
|||||||
// 如果返回的是分页对象 {records: [...], total: 100}
|
// 如果返回的是分页对象 {records: [...], total: 100}
|
||||||
if (Array.isArray(res.data.records)) {
|
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
|
total.value = res.data.total || res.data.records.length
|
||||||
}
|
}
|
||||||
// 如果返回的是普通数组
|
// 如果返回的是普通数组
|
||||||
else if (Array.isArray(res.data)) {
|
else if (Array.isArray(res.data)) {
|
||||||
// 直接使用后端返回的数据
|
// 合并同一个申请单的明细
|
||||||
inspectionList.value = res.data
|
inspectionList.value = mergeInspectionApplyRecords(res.data)
|
||||||
total.value = res.data.length
|
total.value = res.data.length
|
||||||
}
|
}
|
||||||
// 如果返回的是其他对象结构
|
// 如果返回的是其他对象结构
|
||||||
|
|||||||
Reference in New Issue
Block a user