diff --git a/src/views/inout/muti/ioOrderMutiEditDialog.vue b/src/views/inout/muti/ioOrderMutiEditDialog.vue index d1031565..ea942bd8 100644 --- a/src/views/inout/muti/ioOrderMutiEditDialog.vue +++ b/src/views/inout/muti/ioOrderMutiEditDialog.vue @@ -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) => {