Browse Source

修改班组人员选择

fix_bug_pro20231227
caoyizhong 1 year ago
parent
commit
d77d3f3475
  1. 7
      src/views/basicdata/team/basicdataTeamStaff.vue
  2. 4
      src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

7
src/views/basicdata/team/basicdataTeamStaff.vue

@ -220,15 +220,18 @@ export default {
this.form.id = !!id ? id : null; this.form.id = !!id ? id : null;
} }
let a = this.warehouseList.find(i => i.id == row); let a = this.warehouseList.find(i => i.id == row);
// console.log("aaa",a.department);
if(!!a){ if(!!a){
this.form.warehouseName = a.name; this.form.warehouseName = a.name;
this.form.warehouseId = a.id; this.form.warehouseId = a.id;
this.warehouId = a.id; this.warehouId = a.id;
// //
let sd = await getTeamGroupList(this.page.currentPage,this.page.pageSize,{belongTo: a.id}); let sd = await getTeamGroupList(this.page.currentPage,this.page.pageSize,{belongTo: a.id});
// console.log("sdsd",sd);
this.teamGroupList = sd.data.data.records; this.teamGroupList = sd.data.data.records;
// //
let user = await getListOwn({deptId:this.deptId}); let user = await getListOwn({deptId:a.department});
// console.log("",user);
this.staffList = user.data.data; this.staffList = user.data.data;
} }
}, },
@ -302,8 +305,10 @@ export default {
let userDept = await getListUser(); let userDept = await getListUser();
this.deptId = userDept.data.data.deptId; this.deptId = userDept.data.data.deptId;
let sole = await getUserDetail(userDept.data.data.userId); let sole = await getUserDetail(userDept.data.data.userId);
// console.log("11",sole.data.data.roleName);
if(sole.data.data.roleName == '管理员'){ if(sole.data.data.roleName == '管理员'){
let deptW = await getDeptWarehouse({tenantId: userDept.data.data.tenantId }); let deptW = await getDeptWarehouse({tenantId: userDept.data.data.tenantId });
// console.log("",deptW);
this.warehouseList = deptW.data.data; this.warehouseList = deptW.data.data;
}else{ }else{
// //

4
src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

@ -673,7 +673,7 @@ export default {
if (query) { if (query) {
// this.loading = true; // this.loading = true;
let cl = await getListCopy(this.page.currentPage, this.page.pageSize,{name:query}); let cl = await getListCopy(this.page.currentPage, this.page.pageSize,{name:query});
// console.log(">>>>",cl.data.data.records); // console.log(">>>>",cl.data.data.records);
this.store = []; this.store = [];
cl.data.data.records.forEach(i =>{ cl.data.data.records.forEach(i =>{
let st= { let st= {
@ -689,8 +689,10 @@ export default {
// }) // })
// }, 200) // }, 200)
} else { } else {
if(this.store.length === 0){
this.store = [] this.store = []
} }
}
}, },
// //
async remoteMethod(query){ async remoteMethod(query){

Loading…
Cancel
Save