|
|
|
@ -1028,7 +1028,6 @@ export default {
|
|
|
|
|
if (response.code != 20000) {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
} else {
|
|
|
|
|
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
this.getList();
|
|
|
|
|
}
|
|
|
|
@ -1161,24 +1160,26 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
addUserData() {
|
|
|
|
|
this.userFormVisible = false;
|
|
|
|
|
let query = {
|
|
|
|
|
code: this.currentCode,
|
|
|
|
|
userList: JSON.stringify(this.selectUserList)
|
|
|
|
|
};
|
|
|
|
|
saveWarehouseUser(query).then((res) => {
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
let loadParam = {
|
|
|
|
|
code: this.currentCode
|
|
|
|
|
};
|
|
|
|
|
//重新加载数据
|
|
|
|
|
warehouseUserList(loadParam).then((res) => {
|
|
|
|
|
this.userData = res.data;
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
});
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.userFormVisible = false;
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
let loadParam = {
|
|
|
|
|
code: this.currentCode
|
|
|
|
|
};
|
|
|
|
|
//重新加载数据
|
|
|
|
|
warehouseUserList(loadParam).then((res) => {
|
|
|
|
|
this.userData = res.data;
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
this.$message.error("添加失败");
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|