fix:光芯生产执行中的检验记录可以撤回并删除
This commit is contained in:
parent
9c302b215b
commit
f3a92cb296
|
|
@ -87,12 +87,21 @@
|
|||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
v-if="scope.row.submit_time!==null"
|
||||
link size="small"
|
||||
@click="check_revert(scope.row)"
|
||||
v-auth="'ftestwork.create'"
|
||||
type="primary"
|
||||
>撤回
|
||||
</el-button>
|
||||
<el-button
|
||||
v-else
|
||||
link size="small"
|
||||
@click="check_delete(scope.row)"
|
||||
v-auth="'ftestwork.create'"
|
||||
type="danger"
|
||||
>删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</scTable>
|
||||
|
|
@ -159,7 +168,17 @@ export default {
|
|||
});
|
||||
}).catch(() => {});
|
||||
},
|
||||
|
||||
check_delete(row){
|
||||
let that = this;
|
||||
this.$confirm(`确定删除该检验吗?`, "提示", {
|
||||
type: "warning",
|
||||
}).then(() => {
|
||||
that.$API.qm.ftestwork.delete.req(row.id).then((res) => {
|
||||
this.$refs.table.refresh();
|
||||
})
|
||||
})
|
||||
|
||||
},
|
||||
handleQuery() {
|
||||
this.$refs.table.queryData(this.query);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue