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: {