业务单据功能提交

pro
郑明梁 2 years ago
parent 23deacf583
commit 367e61bddf

@ -115,7 +115,7 @@ import {
addMuti,
addMutiDetail,
addOrderMuti,
checkUdi, delectMutiDelect,
checkUdi, delectMutiDelect, filterMutiDetailList,
filterMutiList, getMark,
selectMutiDetailList,
updateMuti,
@ -305,20 +305,23 @@ export default {
}
},
addFromCorp() {
var query = {
mutiIdFk: this.pId,
fromCorp: this.inputQuery.fromCorp
}
addMutiDetail(query).then((response) => {
if (response.code == 20000) {
this.selectMutiDetailList();
} else {
this.$message.error(response.message);
if (this.inputQuery.fromCorp != 'true' && this.inputQuery.fromCorp != 'false') {
var query = {
mutiIdFk: this.pId,
fromCorp: this.inputQuery.fromCorp
}
})
.catch(() => {
this.$message.error("添加失败");
});
addMutiDetail(query).then((response) => {
if (response.code == 20000) {
this.selectMutiDetailList();
this.inputQuery.fromCorp = null;
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.$message.error("添加失败");
});
}
},
selectMutiDetailList() {
selectMutiDetailList({mutiIdFk: this.pId}).then((response) => {

Loading…
Cancel
Save