Fix Bug #468: 住院医生工作站-检验申请列表页缺失单据状态列
在检验申请列表页"申请单号"后新增"单据状态"列,显示单据生命周期状态 (待签发/已签发/已采集/已收样/报告已出/已作废),使医生可通过列表直接获知 申请单当前执行阶段。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -78,6 +78,11 @@
|
|||||||
<el-table-column prop="name" label="申请单名称" width="140" />
|
<el-table-column prop="name" label="申请单名称" width="140" />
|
||||||
<el-table-column prop="createTime" label="创建时间" width="160" />
|
<el-table-column prop="createTime" label="创建时间" width="160" />
|
||||||
<el-table-column prop="prescriptionNo" label="申请单号" width="140" />
|
<el-table-column prop="prescriptionNo" label="申请单号" width="140" />
|
||||||
|
<el-table-column label="单据状态" width="100" align="center">
|
||||||
|
<template #default="scope">
|
||||||
|
<span>{{ parseBillStatus(scope.row.billStatus ?? scope.row.status) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="申请类型" width="100" align="center">
|
<el-table-column label="申请类型" width="100" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>{{ parsePriorityCode(scope.row.descJson) }}</span>
|
<span>{{ parsePriorityCode(scope.row.descJson) }}</span>
|
||||||
@@ -261,6 +266,23 @@ const labelMap = {
|
|||||||
attention: '注意事项',
|
attention: '注意事项',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 解析单据状态
|
||||||
|
* @param {string|number} status - 状态码
|
||||||
|
* @returns {string} 状态文本
|
||||||
|
*/
|
||||||
|
const parseBillStatus = (status) => {
|
||||||
|
const statusMap = {
|
||||||
|
'0': '待签发',
|
||||||
|
'1': '已签发',
|
||||||
|
'2': '已采集',
|
||||||
|
'3': '已收样',
|
||||||
|
'4': '报告已出',
|
||||||
|
'5': '已作废',
|
||||||
|
};
|
||||||
|
return statusMap[String(status)] || '-';
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 解析申请类型(优先级代码)
|
* 解析申请类型(优先级代码)
|
||||||
* @param {string} descJson - JSON字符串
|
* @param {string} descJson - JSON字符串
|
||||||
|
|||||||
Reference in New Issue
Block a user