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;
});
diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue
index f5a29d2c..8490c42b 100644
--- a/src/views/wpm_gx/mlog_form.vue
+++ b/src/views/wpm_gx/mlog_form.vue
@@ -65,6 +65,7 @@
v-model="form.route"
placeholder="工艺路线"
clearable
+ filterable
style="width: 100%"
:disabled="mode == 'edit'"
>
@@ -89,6 +90,7 @@
v-model="form.equipment"
placeholder="生产设备"
clearable
+ filterable
:disabled="mode == 'edit'"
style="width: 100%"
>
@@ -97,7 +99,10 @@
:key="item.id"
:label="item.name"
:value="item.id"
- >
+ >
+ {{item.name}}
+ {{item.number}}
+
@@ -309,7 +314,7 @@ export default {
},
getEquipment() {
this.$API.em.equipment.list
- .req({ page: 0, type: 10 })
+ .req({ page: 0, type: 10,belong_dept:this.dept })
.then((res) => {
this.options = res;
});
diff --git a/src/views/wpm_gx/mlogb_check.vue b/src/views/wpm_gx/mlogb_check.vue
index 2f2e1d50..2fca83e7 100644
--- a/src/views/wpm_gx/mlogb_check.vue
+++ b/src/views/wpm_gx/mlogb_check.vue
@@ -133,6 +133,28 @@
/>
+
+
+
+
+
+
+
+
+
+
@@ -153,7 +175,21 @@ export default {
return {
loading: false,
//表单数据
- form: {},
+ form: {
+ batch: null,
+ count_real: 0,
+ count_ok: 0,
+ count_notok: 0,
+ count_n_hs: 0,
+ count_n_qp: 0,
+ count_n_swen: 0,
+ count_n_bb: 0,
+ count_n_md: 0,
+ count_n_xh: 0,
+ count_n_ps: 0,
+ count_n_qt: 0,
+ count_n_wm: 0,
+ },
//验证规则
rules: {
batch: [
@@ -197,6 +233,8 @@ export default {
this.form.count_n_bb +
this.form.count_n_md +
this.form.count_n_xh +
+ this.form.count_n_ps +
+ this.form.count_n_qt +
this.form.count_n_wm;
this.form.count_ok = this.form.count_real - this.form.count_notok;
},
@@ -214,6 +252,8 @@ export default {
this.form.count_n_bb +
this.form.count_n_md +
this.form.count_n_xh +
+ this.form.count_n_ps +
+ this.form.count_n_qt +
this.form.count_n_wm;
let sum = this.form.count_ok + this.form.count_notok;
if (sum - this.form.count_real == 0) {