diff --git a/src/views/wpm_gx/checkrecord.vue b/src/views/wpm_gx/checkrecord.vue
index ef8d461a..95cb7cf2 100644
--- a/src/views/wpm_gx/checkrecord.vue
+++ b/src/views/wpm_gx/checkrecord.vue
@@ -79,6 +79,22 @@
+
+
+ 撤回
+
+
+
@@ -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);
},
diff --git a/src/views/wpm_gx/index.vue b/src/views/wpm_gx/index.vue
index b87eb83c..663ca91c 100644
--- a/src/views/wpm_gx/index.vue
+++ b/src/views/wpm_gx/index.vue
@@ -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;