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; }); }, //仓库物料