fix:审批撤回需要提交人撤回
This commit is contained in:
parent
b6c80f3ba9
commit
aca0fd057e
|
|
@ -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,6 +334,12 @@ export default {
|
|||
});
|
||||
},
|
||||
mlogWf(row){
|
||||
let that = this;
|
||||
if(that.userId!==row.ticket_.create_by){
|
||||
this.$confirm(`需要日志提交人撤回该日志`, "提示", {
|
||||
type: "warning",
|
||||
}).then(() => {})
|
||||
}else{
|
||||
this.$confirm(`确定撤回该日志审批吗?`, "提示", {
|
||||
type: "warning",
|
||||
}).then(() => {
|
||||
|
|
@ -343,6 +347,8 @@ export default {
|
|||
that.$refs.table.refresh();
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
customMethod(row,index){
|
||||
let color = '',context = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue