diff --git a/src/views/em/equipment.vue b/src/views/em/equipment.vue
index 01c27bfe..f5760a78 100644
--- a/src/views/em/equipment.vue
+++ b/src/views/em/equipment.vue
@@ -75,7 +75,7 @@
-
+
巡检
@@ -97,7 +97,7 @@
@closed="dialog.save = false">
- 新增
导出
@@ -117,7 +117,7 @@
-
+
删除
@@ -310,6 +310,17 @@ export default {
this.$refs.saveDialog.open("show", 10).setData(row);
});
},
+ //删除检验
+ record_del(row) {
+ let that = this;
+ that.$API.em.einspect.delete.req(row.id).then((res) => {
+ that.$message.success("删除成功");
+ that.$refs.drawer_table.refresh();
+ that.$refs.table.refresh();
+ }).catch((err) => {
+ return err;
+ });
+ },
table_record(row) {
this.item = row;
this.form.equipment = row.id;
@@ -325,16 +336,17 @@ export default {
},
//提交巡检记录
submit() {
- this.$refs.dialogForm.validate(async (valid) => {
+ let that = this;
+ that.$refs.dialogForm.validate(async (valid) => {
if (valid) {
- this.isSaveing = true;
- this.$API.em.einspect.create.req(this.form).then(res => {
- this.visible = false;
- this.isSaveing = false;
- this.$message.success("操作成功");
- this.$refs.drawer_table.refresh();
+ that.isSaveing = true;
+ that.$API.em.einspect.create.req(that.form).then(res => {
+ that.visible = false;
+ that.isSaveing = false;
+ that.$message.success("操作成功");
+ that.$refs.drawer_table.refresh();
}).catch(() => {
- this.isSaveing = false;
+ that.isSaveing = false;
})
}
});
diff --git a/src/views/em/equipmentjl.vue b/src/views/em/equipmentjl.vue
index eee230f0..f93fe51d 100644
--- a/src/views/em/equipmentjl.vue
+++ b/src/views/em/equipmentjl.vue
@@ -60,7 +60,7 @@
+ v-auth="'echeckrecord.create'">
检定记录
@@ -109,7 +109,7 @@
-
@@ -127,7 +127,7 @@
-
+
删除
@@ -236,27 +236,29 @@ export default {
},
//提交检验
submit() {
- this.$refs.dialogForm.validate(async (valid) => {
+ let that = this;
+ that.$refs.dialogForm.validate(async (valid) => {
if (valid) {
- this.isSaveing = true;
- this.$API.em.echeckrecord.create.req(this.form).then(res => {
- this.visible = false;
- this.isSaveing = false;
- this.$message.success("操作成功");
- this.$refs.drawer_table.refresh();
- this.$refs.table.refresh();
+ that.isSaveing = true;
+ that.$API.em.echeckrecord.create.req(that.form).then(res => {
+ that.visible = false;
+ that.isSaveing = false;
+ that.$message.success("操作成功");
+ that.$refs.drawer_table.refresh();
+ that.$refs.table.refresh();
}).catch(() => {
- this.isSaveing = false;
+ that.isSaveing = false;
})
}
});
},
//删除检验
record_del(row) {
+ let that = this;
this.$API.em.echeckrecord.delete.req(row.id).then((res) => {
- this.$message.success("删除成功");
- this.$refs.drawer_table.refresh();
- this.$refs.table.refresh();
+ that.$message.success("删除成功");
+ that.$refs.drawer_table.refresh();
+ that.$refs.table.refresh();
}).catch((err) => {
return err;
});
diff --git a/src/views/wf/ticketdetail.vue b/src/views/wf/ticketdetail.vue
index 4f61558f..ded02abf 100644
--- a/src/views/wf/ticketdetail.vue
+++ b/src/views/wf/ticketdetail.vue
@@ -732,7 +732,7 @@ export default {
this.$API.mtm.routepack.item.req(this.projectId).then((res) => {
console.log("routepackitem", res);
this.$API.mtm.route.list
- .req({ page: 0, material: res.material })
+ .req({ page: 0, material: res.material,routepack:res.id})
.then((res) => {
that.routepackes = res;
});