Compare commits
No commits in common. "0a727dd5a72e016da3559c197af5989f9093f4bc" and "adef0b9b2436b459c7bfb5f00e5d9fae8adf72ac" have entirely different histories.
0a727dd5a7
...
adef0b9b24
|
|
@ -79,22 +79,6 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="检验人" prop="test_user_name">
|
<el-table-column label="检验人" prop="test_user_name">
|
||||||
</el-table-column>
|
</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>
|
</scTable>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
|
@ -144,12 +128,21 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
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);
|
||||||
|
});
|
||||||
|
},
|
||||||
//撤销
|
//撤销
|
||||||
check_revert(row) {
|
revert(row) {
|
||||||
this.$confirm(`确定撤销该检验吗?`, "提示", {
|
this.$confirm(`确定撤销该操作吗?`, "提示", {
|
||||||
type: "warning",
|
type: "warning",
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$API.qm.ftestwork.revert.req(row.id).then((res) => {
|
this.$API.inm.mio.revert.req(row.id).then((res) => {
|
||||||
this.$message.success("撤销成功");
|
this.$message.success("撤销成功");
|
||||||
this.$refs.table.refresh();
|
this.$refs.table.refresh();
|
||||||
return res;
|
return res;
|
||||||
|
|
@ -160,6 +153,26 @@ export default {
|
||||||
}).catch(() => {});
|
}).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() {
|
handleQuery() {
|
||||||
this.$refs.table.queryData(this.query);
|
this.$refs.table.queryData(this.query);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ export default {
|
||||||
that.mgroupMtype = res[0].mtype;
|
that.mgroupMtype = res[0].mtype;
|
||||||
that.processtype = res[0].process_type;
|
that.processtype = res[0].process_type;
|
||||||
that.mgroupDept = res[0].belong_dept;
|
that.mgroupDept = res[0].belong_dept;
|
||||||
if(that.mgroupName=='黑化'||that.mgroupName=='退火'||that.mgroupName=='外观检验'){
|
if(that.mgroupName=='黑化'||that.mgroupName=='退火'){
|
||||||
that.options.push("检验记录")
|
that.options.push("检验记录")
|
||||||
}
|
}
|
||||||
that.componentsShow = true;
|
that.componentsShow = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue