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