|
|
|
@ -829,10 +829,10 @@ export default {
|
|
|
|
|
pidData: {},
|
|
|
|
|
deleteLoading: false,
|
|
|
|
|
uploadFileUrl: null,
|
|
|
|
|
userData: null,
|
|
|
|
|
bussinessTypeData: null,
|
|
|
|
|
userList: null,
|
|
|
|
|
bussinessTypeList: null,
|
|
|
|
|
userData: [],
|
|
|
|
|
bussinessTypeData: [],
|
|
|
|
|
userList: [],
|
|
|
|
|
bussinessTypeList: [],
|
|
|
|
|
userFormVisible: false,
|
|
|
|
|
currentCode: null,
|
|
|
|
|
superRow: null,
|
|
|
|
@ -1401,13 +1401,18 @@ export default {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.userFormVisible = false;
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
let loadParam = {
|
|
|
|
|
code: this.currentCode
|
|
|
|
|
};
|
|
|
|
|
this.userQuery = {
|
|
|
|
|
code: this.currentCode,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
}
|
|
|
|
|
//重新加载数据
|
|
|
|
|
warehouseUserList(loadParam).then((res) => {
|
|
|
|
|
this.userData = res.data;
|
|
|
|
|
warehouseUserList(this.userQuery).then((res) => {
|
|
|
|
|
this.userData = res.data.list;
|
|
|
|
|
this.userTotal = res.data.total;
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.userData = [];
|
|
|
|
|
this.userTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
@ -1456,12 +1461,17 @@ export default {
|
|
|
|
|
saveWarehouseBussinessType(query).then((res) => {
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
//重新加载数据表格
|
|
|
|
|
let loadParam = {
|
|
|
|
|
code: this.currentCode
|
|
|
|
|
this.busQuery = {
|
|
|
|
|
code: this.currentCode,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10
|
|
|
|
|
}
|
|
|
|
|
warehouseBussinessTypeList(loadParam).then((res) => {
|
|
|
|
|
this.bussinessTypeData = res.data;
|
|
|
|
|
warehouseBussinessTypeList(this.busQuery).then((res) => {
|
|
|
|
|
this.bussinessTypeData = res.data.list;
|
|
|
|
|
this.busTotal = res.data.total;
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.bussinessTypeData = [];
|
|
|
|
|
this.busTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
});
|
|
|
|
|