feat(wms): 新增用印审批功能

- 在审批API中添加按业务ID查询审批信息的方法
- 配置用印详情页面路由,支持通过业务ID查看用印详情
- 修改待办列表,为用印类型申请隐藏同意驳回按钮
- 在待办列表数据中添加业务ID字段,完善申请类型映射
- 更新审批服务接口和实现类,添加queryByBizId方法
- 重构用印详情页面,集成审批信息加载和权限校验逻辑
- 更新领域模型中的申请类型枚举,添加用印类型支持
- 完善审批任务服务,支持用印申请详情查询和申请人姓名显示
This commit is contained in:
2026-03-19 15:30:28 +08:00
parent 2a4fc70b72
commit 1207072092
13 changed files with 166 additions and 30 deletions

View File

@@ -126,24 +126,26 @@
>
详情
</el-button>
<el-button
v-if="scope.row.taskStatus === 'pending'"
size="small"
icon="el-icon-check"
@click="handleApprove(scope.row)"
:loading="buttonLoading"
>
同意
</el-button>
<el-button
v-if="scope.row.taskStatus === 'pending'"
size="small"
icon="el-icon-close"
@click="handleReject(scope.row)"
:loading="buttonLoading"
>
驳回
</el-button>
<template v-if="scope.row.applyType !== 'seal'">
<el-button
v-if="scope.row.taskStatus === 'pending'"
size="small"
icon="el-icon-check"
@click="handleApprove(scope.row)"
:loading="buttonLoading"
>
同意
</el-button>
<el-button
v-if="scope.row.taskStatus === 'pending'"
size="small"
icon="el-icon-close"
@click="handleReject(scope.row)"
:loading="buttonLoading"
>
驳回
</el-button>
</template>
</template>
</el-table-column>
</el-table>
@@ -274,7 +276,8 @@ export default {
applyType: item.approval.applyType,
approverName: item.approval.approverName,
taskId: item.task.taskId,
...item.detail, // 合并请假/外出的详情字段
bizId: item.approval.applyId,
...item.detail,
}
})
this.total = res.total
@@ -323,7 +326,13 @@ export default {
// 查看详情
handleDetail(row) {
this.currentDetail = { ...row } // 深拷贝避免原数据被修改
if (row.applyType === 'seal') {
this.$router.push({
path: `/wms/seal/sealDetail/${row.bizId}`
})
return
}
this.currentDetail = { ...row }
this.detailDialogVisible = true
},
@@ -427,6 +436,7 @@ export default {
const textMap = {
'leave': '请假',
'out': '外出',
'seal': '用印',
}
return textMap[type] || '未知类型'
},