Fix Bug #469: [住院医生工作站-检验申请] 完善【操作】列临床业务逻辑:支持按状态动态切换修改、删除、撤回等功能

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
赵云
2026-05-16 19:04:44 +08:00
parent 96a57f1b7e
commit d89128ec54

View File

@@ -105,18 +105,18 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="requesterId_dictText" label="申请者" width="120" /> <el-table-column prop="requesterId_dictText" label="申请者" width="120" />
<el-table-column label="操作" align="center" fixed="right" width="180"> <el-table-column label="操作" align="center" fixed="right" width="220">
<template #default="scope"> <template #default="scope">
<!-- 待签发可修改删除 --> <!-- 待签发status=0或null/undefined可修改删除 -->
<template v-if="scope.row.status == 0"> <template v-if="!scope.row.status || scope.row.status == 0">
<el-button link type="primary" @click="handleEdit(scope.row)">修改</el-button> <el-button link type="primary" @click="handleEdit(scope.row)">修改</el-button>
<el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button> <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button>
</template> </template>
<!-- 已签发可撤回 --> <!-- 已签发status=1可撤回 -->
<template v-else-if="scope.row.status == 1"> <template v-else-if="scope.row.status == 1">
<el-button link type="warning" @click="handleWithdraw(scope.row)">撤回</el-button> <el-button link type="warning" @click="handleWithdraw(scope.row)">撤回</el-button>
</template> </template>
<!-- 已校对(2)待接收(3)(4)检查(6)已作废(7)仅查看详情 --> <!-- 已校对(2)待接收(3)已收(4)出报告(6)已作废(7)仅查看详情 -->
<el-button link type="primary" @click="handleViewDetail(scope.row)">详情</el-button> <el-button link type="primary" @click="handleViewDetail(scope.row)">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>