领料人、入库人、供应商人员选择修改
This commit is contained in:
parent
e2e0bdc22e
commit
64d6d81279
|
|
@ -22,7 +22,7 @@ export function getMaterialListApi(data) {
|
|||
}
|
||||
export function fetchUsers(data) {
|
||||
return request({
|
||||
url: '/system/user/list',
|
||||
url: '/smart-canteen/person_setting/getList',
|
||||
method: 'get',
|
||||
headers: {
|
||||
},
|
||||
|
|
|
|||
|
|
@ -404,15 +404,15 @@ export default {
|
|||
let param = {
|
||||
pageNum:1,
|
||||
pageSize: 1000,
|
||||
roleIds: 130, // 过滤角色
|
||||
roleId: 1
|
||||
}
|
||||
fetchUsers(param).then((response) => {
|
||||
console.log(response);
|
||||
if (response.rows) {
|
||||
// 从接口返回的数据中提取用户选项
|
||||
this.contractPersonOptions = response.rows.map(user => ({
|
||||
value: user.userId, // 下拉框绑定的值
|
||||
label: user.userName, // 下拉框显示的文本
|
||||
value: user.id, // 下拉框绑定的值
|
||||
label: user.name, // 下拉框显示的文本
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -405,14 +405,14 @@ export default {
|
|||
let param = {
|
||||
pageNum:1,
|
||||
pageSize: 1000,
|
||||
roleIds: 130, // 过滤角色
|
||||
roleId: 1
|
||||
}
|
||||
fetchUsers(param).then((response) => {
|
||||
if (response.rows) {
|
||||
// 从接口返回的数据中提取用户选项
|
||||
this.contractPersonOptions = response.rows.map(user => ({
|
||||
value: user.userId, // 下拉框绑定的值
|
||||
label: user.userName, // 下拉框显示的文本
|
||||
value: user.id, // 下拉框绑定的值
|
||||
label: user.name, // 下拉框显示的文本
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -416,15 +416,15 @@ export default {
|
|||
let param = {
|
||||
pageNum:1,
|
||||
pageSize: 1000,
|
||||
roleIds: 130, // 过滤角色
|
||||
roleId: 1
|
||||
}
|
||||
fetchUsers(param).then((response) => {
|
||||
console.log(response);
|
||||
if (response.rows) {
|
||||
// 从接口返回的数据中提取用户选项
|
||||
this.contractPersonOptions = response.rows.map(user => ({
|
||||
value: user.userId+'', // 下拉框绑定的值
|
||||
label: user.userName, // 下拉框显示的文本
|
||||
value: user.id, // 下拉框绑定的值
|
||||
label: user.name, // 下拉框显示的文本
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -365,15 +365,15 @@ export default {
|
|||
let param = {
|
||||
pageNum:1,
|
||||
pageSize: 1000,
|
||||
roleIds: 130, // 过滤角色
|
||||
roleId: 1
|
||||
}
|
||||
fetchUsers(param).then((response) => {
|
||||
console.log(response);
|
||||
if (response.rows) {
|
||||
// 从接口返回的数据中提取用户选项
|
||||
this.contractPersonOptions = response.rows.map(user => ({
|
||||
value: user.userId, // 下拉框绑定的值
|
||||
label: user.userName, // 下拉框显示的文本
|
||||
value: user.id, // 下拉框绑定的值
|
||||
label: user.name, // 下拉框显示的文本
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue