feat:禅道414
This commit is contained in:
parent
b3c7491265
commit
18e7cef648
|
|
@ -286,9 +286,15 @@
|
|||
show-overflow-tooltip
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column width="90" v-if="cate=='do_in'|| cate=='do_out'">
|
||||
<el-table-column width="100" v-if="cate=='do_in'|| cate=='do_out'">
|
||||
<template #default="scope">
|
||||
<el-button @click="printMaterial(scope.row)" type="text">打签</el-button>
|
||||
<el-button
|
||||
link
|
||||
type="danger"
|
||||
@click="check_revert(scope.row)"
|
||||
v-auth="'mio.update'"
|
||||
>撤回</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</scTable>
|
||||
|
|
@ -590,6 +596,21 @@ export default {
|
|||
that.$refs.printmaterial.open();
|
||||
})
|
||||
},
|
||||
//撤回并删除
|
||||
check_revert(row){
|
||||
let that = this;
|
||||
that.$confirm(`该记录已提交,确定撤回吗?`, "提示", {
|
||||
type: "warning",
|
||||
}).then(() => {
|
||||
console.log('确定删除');
|
||||
that.$API.inm.mioitem.revertDel.req(row.id).then((res) => {
|
||||
that.$message.success("撤回成功");
|
||||
that.getTableData();
|
||||
}).catch((err) => {
|
||||
return err;
|
||||
});
|
||||
}).catch(() => {});
|
||||
},
|
||||
//本地更新数据
|
||||
handleSaveSuccess() {
|
||||
this.$refs.tables.refresh();
|
||||
|
|
|
|||
Loading…
Reference in New Issue