|
|
@ -599,9 +599,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
busTotal: 0,
|
|
|
|
busTotal: 0,
|
|
|
|
addUserQuery: {
|
|
|
|
addUserQuery: {
|
|
|
|
customerId: this.$store.getters.customerId,
|
|
|
|
customerId: this.$store.getters.customerId
|
|
|
|
page: 1,
|
|
|
|
|
|
|
|
limit: 10
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addUserTotal: 0,
|
|
|
|
addUserTotal: 0,
|
|
|
|
bussinessTypeQuery: {
|
|
|
|
bussinessTypeQuery: {
|
|
|
@ -908,10 +906,6 @@ export default {
|
|
|
|
if (this.currentCode == null || this.currentCode == "") {
|
|
|
|
if (this.currentCode == null || this.currentCode == "") {
|
|
|
|
this.$message.error("请先选择仓库");
|
|
|
|
this.$message.error("请先选择仓库");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (val === null || val === undefined) {
|
|
|
|
|
|
|
|
this.addUserQuery.page = 1;
|
|
|
|
|
|
|
|
this.addUserTotal = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.userFormVisible = true;
|
|
|
|
this.userFormVisible = true;
|
|
|
|
this.getAddUserList();
|
|
|
|
this.getAddUserList();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -986,19 +980,26 @@ export default {
|
|
|
|
this.bussinessTypeList = res.data.list || [];
|
|
|
|
this.bussinessTypeList = res.data.list || [];
|
|
|
|
this.bussinessTypeTotal = res.data.total || 0;
|
|
|
|
this.bussinessTypeTotal = res.data.total || 0;
|
|
|
|
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
let busDataList = []; //仓库关联的单据类型列表
|
|
|
|
that.$nextTick(() => {
|
|
|
|
warehouseBussinessTypeList({code: this.currentCode}).then((res) => {
|
|
|
|
if (that.$refs.typeList) {
|
|
|
|
busDataList = res.data.list;
|
|
|
|
that.$refs.typeList.clearSelection();
|
|
|
|
|
|
|
|
}
|
|
|
|
var that = this;
|
|
|
|
that.bussinessTypeList.forEach(row => {
|
|
|
|
that.$nextTick(() => {
|
|
|
|
for (let j in that.bussinessTypeData) {
|
|
|
|
if (that.$refs.typeList) {
|
|
|
|
if (row.action == that.bussinessTypeData[j].action) {
|
|
|
|
that.$refs.typeList.clearSelection();
|
|
|
|
that.$refs.typeList.toggleRowSelection(row, true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.bussinessTypeList.forEach(row => {
|
|
|
|
|
|
|
|
for (let j in busDataList) {
|
|
|
|
|
|
|
|
if (row.action === busDataList[j].action) {
|
|
|
|
|
|
|
|
that.$refs.typeList.toggleRowSelection(row, true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|