From a3cbe8df1e7da0cb2cd1840a3a88f733a4a88a64 Mon Sep 17 00:00:00 2001 From: zhouna Date: Mon, 4 Nov 2019 10:10:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E4=BF=9D=E9=A1=BB=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/InsuranceInformation.vue | 58 ++++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/views/ebiz/sale/InsuranceInformation.vue b/src/views/ebiz/sale/InsuranceInformation.vue index 579114d76..911589562 100644 --- a/src/views/ebiz/sale/InsuranceInformation.vue +++ b/src/views/ebiz/sale/InsuranceInformation.vue @@ -191,21 +191,15 @@ export default { message: '加载中……' }) let that = this - that.appntSign.map(item => { - if (item.documentCode == '1') { - that.appntSign.signId = item.signId - that.appntSign.documentCode = item.documentCode - that.appntSign.documentType = item.documentType - } - }) - that.insuredSign.map(item => { - if (item.documentCode == '1') { - that.insuredSign.signId = item.signId - that.insuredSign.documentCode = item.documentCode - that.insuredSign.documentType = item.documentType - } - }) + if (that.signVal == '0' || that.signVal == '2') { + that.appntSign.map(item => { + if (item.documentCode == '1') { + that.appntSign.signId = item.signId + that.appntSign.documentCode = item.documentCode + that.appntSign.documentType = item.documentType + } + }) let data = { orderType: 'SIGN_ORDER', orderDTO: { @@ -266,7 +260,13 @@ export default { message: '加载中……' }) - + that.insuredSign.map(item => { + if (item.documentCode == '1') { + that.insuredSign.signId = item.signId + that.insuredSign.documentCode = item.documentCode + that.insuredSign.documentType = item.documentType + } + }) let data = { orderType: 'SIGN_ORDER', orderDTO: { @@ -311,20 +311,6 @@ export default { } } else { let that = this - that.appntSign.map(item => { - if (item.documentCode == '1') { - that.appntSign.signId = item.signId - that.appntSign.documentCode = item.documentCode - that.appntSign.documentType = item.documentType - } - }) - that.insuredSign.map(item => { - if (item.documentCode == '1') { - that.insuredSign.signId = item.signId - that.insuredSign.documentCode = item.documentCode - that.insuredSign.documentType = item.documentType - } - }) this.$toast.loading({ duration: 0, // 持续展示 toast @@ -336,6 +322,13 @@ export default { }) // console.log('that.appntSign.signId',that.appntSign,that.appntSign.signId,that.appntSign.documentCode,that.appntSign.documentType) if (that.signVal == '0' || that.signVal == '2') { + that.appntSign.map(item => { + if (item.documentCode == '1') { + that.appntSign.signId = item.signId + that.appntSign.documentCode = item.documentCode + that.appntSign.documentType = item.documentType + } + }) let data = { orderType: 'SIGN_ORDER', orderDTO: { @@ -385,6 +378,13 @@ export default { } }) } else { + that.insuredSign.map(item => { + if (item.documentCode == '1') { + that.insuredSign.signId = item.signId + that.insuredSign.documentCode = item.documentCode + that.insuredSign.documentType = item.documentType + } + }) let data = { orderType: 'SIGN_ORDER', orderDTO: {