fix:仓库执行人查询posts__code__contains: "inm"

This commit is contained in:
shijing 2025-12-04 09:47:08 +08:00
parent 04a468ee7e
commit b2ddc57179
2 changed files with 7 additions and 3 deletions

View File

@ -295,8 +295,10 @@ export default {
}, },
getUsers(){ getUsers(){
let that = this; let that = this;
that.$API.system.user.list.req({ posts__name: "库管", page: 0 }).then((res) => { let userOption = [];
that.userOption = res; 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(){ deptChange(){

View File

@ -453,8 +453,10 @@ export default {
// //
getDeptUser() { getDeptUser() {
let that = this; let that = this;
let userOption = [];
this.$API.system.user.list.req({ page: 0, posts__code__contains: "inm" }).then((res) => { 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;
}); });
}, },
// //