|
|
|
@ -173,7 +173,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
userData: [],
|
|
|
|
|
userTotal: 0,
|
|
|
|
|
|
|
|
|
|
userDataList:[],
|
|
|
|
|
|
|
|
|
|
//---------------仓库添加用户-----
|
|
|
|
|
selectUserQuery: {
|
|
|
|
@ -206,25 +206,29 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
loadUserList() { //获取仓库用户列表
|
|
|
|
|
|
|
|
|
|
// if (val != null) {
|
|
|
|
|
// this.userQuery.page = val;
|
|
|
|
|
// }
|
|
|
|
|
//加载用户数据
|
|
|
|
|
warehouseUserList(this.userQuery).then((res) => {
|
|
|
|
|
|
|
|
|
|
this.userData = res.data.list;
|
|
|
|
|
this.userTotal = res.data.total;
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.$message.error("用户数据加载失败")
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
addUser() { //添加仓库关联用户弹窗
|
|
|
|
|
debugger
|
|
|
|
|
this.currentCode = this.inputQuery.code;
|
|
|
|
|
this.userFormVisible = true;
|
|
|
|
|
this.selectUserQuery.code = this.inputQuery.code;
|
|
|
|
|
this.selectUserQuery.page = 1;
|
|
|
|
|
for(var i=0;i<this.userData.length;i++){
|
|
|
|
|
this.userDataList[i]=this.userData[i].id;
|
|
|
|
|
}
|
|
|
|
|
this.selectUserQuery.listUser=this.userDataList;
|
|
|
|
|
this.getSelectUser();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -309,6 +313,7 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
this.userQuery.code = this.inputQuery.code;
|
|
|
|
|
this.loadUserList();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|