From 4b7664296f4527416b3e1578eacef345e4903079 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 25 Sep 2024 16:51:08 +0800 Subject: [PATCH] fix:coding#495 --- src/views/wpm_gx/handover_form.vue | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index 73fc51e5..05b62e1c 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -83,6 +83,7 @@ placeholder="接收工段" clearable style="width: 100%" + :disabled="type==40" @change="getUserList2" > { - this.mgroupOptions = res; + let that = this; + that.$API.mtm.mgroup.list.req({ page: 0}).then((res) => { + that.mgroupOptions = res; + if(that.type==40){ + res.forEach(item=>{ + if(item.name=="废品库"){ + that.form.recive_mgroup = item.id; + } + }) + that.getCkUserList();//废品库接收人 + } }); }, //获取车间物料 @@ -401,6 +409,14 @@ export default { that.userList = res; }); }, + //获取仓库人员 + getCkUserList() { + let that = this; + this.$API.system.user.list.req({ page: 0, posts__name: "inm&check" }) + .then((res) => { + that.userList = res; + }); + }, //获取接收工段人员 getUserList2() { let that = this;