fix:禅道376二次超洗后的外观检验想要新增撤回修改的功能,即检验作废
This commit is contained in:
parent
80c20c222b
commit
3112462c7a
|
|
@ -79,6 +79,22 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="检验人" prop="test_user_name">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
fixed="right"
|
||||
width="80"
|
||||
v-if="mgroupName=='外观检验'"
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link size="small"
|
||||
@click="check_revert(scope.row)"
|
||||
v-auth="'ftestwork.create'"
|
||||
type="primary"
|
||||
>撤回
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</scTable>
|
||||
</el-main>
|
||||
</el-container>
|
||||
|
|
@ -128,21 +144,12 @@ export default {
|
|||
};
|
||||
},
|
||||
methods: {
|
||||
//查看
|
||||
table_detail(row) {
|
||||
let that = this;
|
||||
that.cate_type=row.type;
|
||||
that.dialog.inmRecord = true;
|
||||
that.$nextTick(() => {
|
||||
that.$refs.inmRecordDialog.open("show").setData(row,row.type);
|
||||
});
|
||||
},
|
||||
//撤销
|
||||
revert(row) {
|
||||
this.$confirm(`确定撤销该操作吗?`, "提示", {
|
||||
check_revert(row) {
|
||||
this.$confirm(`确定撤销该检验吗?`, "提示", {
|
||||
type: "warning",
|
||||
}).then(() => {
|
||||
this.$API.inm.mio.revert.req(row.id).then((res) => {
|
||||
this.$API.qm.ftestwork.revert.req(row.id).then((res) => {
|
||||
this.$message.success("撤销成功");
|
||||
this.$refs.table.refresh();
|
||||
return res;
|
||||
|
|
@ -153,26 +160,6 @@ export default {
|
|||
}).catch(() => {});
|
||||
},
|
||||
|
||||
//删除
|
||||
table_del(row) {
|
||||
this.$confirm(`确定删除吗?`, "提示", {
|
||||
type: "warning",
|
||||
})
|
||||
.then(() => {
|
||||
this.$API.inm.mio.delete
|
||||
.req(row.id)
|
||||
.then((res) => {
|
||||
this.$message.success("删除成功");
|
||||
this.$refs.table.refresh();
|
||||
return res;
|
||||
})
|
||||
.catch((err) => {
|
||||
return err;
|
||||
});
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
|
||||
handleQuery() {
|
||||
this.$refs.table.queryData(this.query);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ export default {
|
|||
that.mgroupMtype = res[0].mtype;
|
||||
that.processtype = res[0].process_type;
|
||||
that.mgroupDept = res[0].belong_dept;
|
||||
if(that.mgroupName=='黑化'||that.mgroupName=='退火'){
|
||||
if(that.mgroupName=='黑化'||that.mgroupName=='退火'||that.mgroupName=='外观检验'){
|
||||
that.options.push("检验记录")
|
||||
}
|
||||
that.componentsShow = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue