From 04fd2c48998b599127748c1b6af04e2dc3f1ccfd Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 5 Sep 2024 14:04:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=94=9F=E4=BA=A7=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E4=BB=A5mgroup=E7=AD=9B=E9=80=89=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=B7=A5=E4=BD=9C=E8=BF=9B=E5=BA=A6=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/f_mlogs_form.vue | 2 +- src/views/wpm_gx/mlog_form.vue | 16 ++++---- src/views/wpm_gx/mlogs.vue | 63 +++++++++++++++++++++++++++++-- 3 files changed, 69 insertions(+), 12 deletions(-) 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" > + + +