From b2ddc571794c01119706e1834fe332cfe6fdf4c3 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 4 Dec 2025 09:47:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BB=93=E5=BA=93=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E4=BA=BA=E6=9F=A5=E8=AF=A2posts=5F=5Fcode=5F=5Fcontains:=20"in?= =?UTF-8?q?m"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/helpso_mioitem.vue | 6 ++++-- src/views/wpm_gx/inm_record.vue | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/inm/helpso_mioitem.vue b/src/views/inm/helpso_mioitem.vue index 62653f31..e1fc481c 100644 --- a/src/views/inm/helpso_mioitem.vue +++ b/src/views/inm/helpso_mioitem.vue @@ -295,8 +295,10 @@ export default { }, getUsers(){ let that = this; - that.$API.system.user.list.req({ posts__name: "库管", page: 0 }).then((res) => { - that.userOption = res; + let userOption = []; + that.$API.system.user.list.req({ posts__code__contains: "inm", page: 0 }).then((res) => { + userOption = Array.from(new Map(res.map(item => [item.id, item])).values()); + that.userOption = userOption; }); }, deptChange(){ diff --git a/src/views/wpm_gx/inm_record.vue b/src/views/wpm_gx/inm_record.vue index 20f9c3a7..8b33e2be 100644 --- a/src/views/wpm_gx/inm_record.vue +++ b/src/views/wpm_gx/inm_record.vue @@ -453,8 +453,10 @@ export default { //仓库人员 getDeptUser() { let that = this; + let userOption = []; this.$API.system.user.list.req({ page: 0, posts__code__contains: "inm" }).then((res) => { - that.userOption = res; + userOption = Array.from(new Map(res.map(item => [item.id, item])).values()); + that.userOption = userOption; }); }, //仓库物料