fix:审批撤回需要提交人撤回

This commit is contained in:
shijing 2025-07-14 08:57:07 +08:00
parent b6c80f3ba9
commit aca0fd057e
1 changed files with 17 additions and 11 deletions

View File

@ -113,9 +113,7 @@
></el-table-column>
<el-table-column label="审批单号">
<template #default="scope">
<el-icon v-if="scope.row.ticket !== null" color="green">
{{ scope.row.ticket_.sn }}
</el-icon>
<span v-if="scope.row.ticket_!==null">{{ scope.row.ticket_.sn }}</span>
</template>
</el-table-column>
<el-table-column
@ -145,7 +143,7 @@
size="small"
v-auth="'mlog.delete'"
type="danger"
v-if="scope.row.submit_time == null"
v-if="scope.row.ticket== null&&scope.row.submit_time == null"
@click.stop="table_del(scope.row, scope.$index)"
>删除</el-button>
<el-button
@ -157,7 +155,7 @@
>撤回</el-button>
<el-button
link
v-if="scope.row.ticket_!== null&&userId==scope.row.ticket_.create_by&&scope.row.ticket_.state_!==null&&scope.row.ticket_.state_.enable_retreat"
v-if="scope.row.ticket_!== null&&scope.row.ticket_.state_!==null&&scope.row.ticket_.state_.enable_retreat"
size="small"
type="danger"
@click.stop="mlogWf(scope.row)"
@ -336,13 +334,21 @@ export default {
});
},
mlogWf(row){
this.$confirm(`确定撤回该日志审批吗?`, "提示", {
type: "warning",
}).then(() => {
this.$API.wf.ticket.ticketRetreat.req(row.ticket).then(res=>{
that.$refs.table.refresh();
let that = this;
if(that.userId!==row.ticket_.create_by){
this.$confirm(`需要日志提交人撤回该日志`, "提示", {
type: "warning",
}).then(() => {})
}else{
this.$confirm(`确定撤回该日志审批吗?`, "提示", {
type: "warning",
}).then(() => {
this.$API.wf.ticket.ticketRetreat.req(row.ticket).then(res=>{
that.$refs.table.refresh();
})
})
})
}
},
customMethod(row,index){
let color = '',context = '';