585 [住院医生工作站-手术申请] 手术申请历史列表缺失“手术状态”列,导致医生无法跟踪手术流转进度

This commit is contained in:
wangjian963
2026-06-02 16:02:47 +08:00
parent 578b771c56
commit 734bdc6a0d
8 changed files with 221 additions and 16 deletions

View File

@@ -675,7 +675,7 @@ getList();
}
/* 表格样式调整,移除默认的最大宽度限制 */
.table-scroll-container { :deep(.el-table) {
.table-scroll-container :deep(.el-table) {
min-width: 100%;
width: auto;
}

View File

@@ -48,31 +48,31 @@
/>
<el-option
label="待签发"
value="0"
/>
<el-option
label="已签发"
value="1"
/>
<el-option
label="已校对"
label="已签发"
value="2"
/>
<el-option
label="已执行"
label="已校对"
value="3"
/>
<el-option
label="已安排"
label="已执行"
value="4"
/>
<el-option
label="已完成"
label="已安排"
value="5"
/>
<el-option
label="已完成"
value="6"
/>
<el-option
label="已作废"
value="7"
value="10"
/>
</el-select>
</el-form-item>
@@ -118,7 +118,7 @@
/>
<el-table-column
label="手术单号"
width="160"
min-width="160"
align="center"
>
<template #default="scope">
@@ -133,25 +133,40 @@
<el-table-column
prop="patientName"
label="患者姓名"
width="120"
min-width="100"
/>
<el-table-column
prop="name"
label="申请单名称"
width="140"
min-width="140"
/>
<el-table-column
prop="createTime"
label="创建时间"
width="160"
min-width="160"
/>
<el-table-column
prop="requesterId_dictText"
label="申请者"
width="120"
min-width="100"
/>
<el-table-column
label="状态"
min-width="100"
align="center"
>
<template #default="scope">
<el-tag
:type="getStatusType(scope.row.status)"
size="small"
>
{{ getStatusText(scope.row.status) }}
</el-tag>
</template>
</el-table-column>
<el-table-column
label="操作"
min-width="100"
align="center"
fixed="right"
>
@@ -397,6 +412,25 @@ const handleRefresh = async () => {
await fetchData();
};
/** 手术申请单状态映射 (与后端 SurgeryAppStatusEnum 对齐) */
const statusMap = {
1: { text: '待签发', type: 'info' },
2: { text: '已签发', type: 'primary' },
3: { text: '已校对', type: 'success' },
4: { text: '已执行', type: 'warning' },
5: { text: '已安排', type: 'warning' },
6: { text: '已完成', type: 'success' },
10: { text: '已作废', type: 'danger' },
};
const getStatusText = (status) => {
return statusMap[status]?.text || '未知';
};
const getStatusType = (status) => {
return statusMap[status]?.type || 'info';
};
const labelMap = {
categoryType: '项目类别',
targetDepartment: '发往科室',