From 367e61bddf5a01c7a8865f20de252e3a801f7701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Tue, 6 Jun 2023 11:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=8D=95=E6=8D=AE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inout/muti/ioOrderMutiEditDialog.vue | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) 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) => {