feat(审批流程): 优化审批逻辑并添加抄送功能

重构审批条件判断逻辑,统一使用canApprove和canWithdraw计算属性控制按钮显示
为所有审批详情页添加撤回按钮功能
在审批列表页新增抄送功能,支持多选抄送人
调整提交成功后的跳转路由为/hrm/apply
仅在approverMode为template时设置tplId参数
This commit is contained in:
砂糖
2026-01-05 11:42:53 +08:00
parent a0f03c374a
commit 78b5af5143
10 changed files with 141 additions and 36 deletions

View File

@@ -408,13 +408,16 @@ export default {
bankName: this.form.bankName,
bankAccount: this.form.bankAccount,
remark: this.form.remark,
tplId: this.tplId,
// tplId: this.tplId,
manualAssigneeUserId: this.assigneeUserId
}
if (this.approverMode === 'template') {
payload.tplId = this.tplId
}
try {
await addTravelReq(payload)
this.$message.success('提交成功')
this.$router.push('/hrm/requests')
this.$router.push('/hrm/apply')
} catch (e) {
this.$message.error('提交失败,请稍后重试')
} finally {