diff --git a/src/views/wpm_gx/f_mlogs_form.vue b/src/views/wpm_gx/f_mlogs_form.vue index 0d259f76..132009a9 100644 --- a/src/views/wpm_gx/f_mlogs_form.vue +++ b/src/views/wpm_gx/f_mlogs_form.vue @@ -449,7 +449,7 @@ export default { }, getEquipment() { let that = this; - that.$API.em.equipment.list.req({ page: 0, type: 10,belong_dept:that.deptId }).then((res) => { + that.$API.em.equipment.list.req({ page: 0, type: 10,mgroup:that.mgroup }).then((res) => { that.options = res; }); }, diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index e3bf86bb..1d0bc810 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -72,7 +72,7 @@ { - this.options = res; - }); + this.$API.em.equipment.list.req({ page: 0, type: 10,mgroup:that.mgroup}).then((res) => { + this.options = res; + }); }, getSupplier() { let that = this; @@ -369,6 +367,8 @@ export default { that.$emit("success"); that.visible = false; that.$message.success("操作成功"); + }).catch(()=>{ + that.isSaveing = false; }); } else { let obj = {}; @@ -383,6 +383,8 @@ export default { that.$emit("success"); that.visible = false; that.$message.success("操作成功"); + }).catch(()=>{ + that.isSaveing = false; }); } } diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue index 7237c35b..ad01a94b 100644 --- a/src/views/wpm_gx/mlogs.vue +++ b/src/views/wpm_gx/mlogs.vue @@ -54,6 +54,11 @@ prop="equipment_name" min-width="150" > + + +