diff --git a/.eslintrc.js b/.eslintrc.js index d8f8c1d71..b9956eafe 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,9 +5,9 @@ module.exports = { }, extends: ['plugin:vue/essential', '@vue/prettier'], rules: { - 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', - 'prettier/prettier': 'error' + 'no-console': process.env.NODE_ENV === 'production' ? 'off' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'off' : 'off', + 'prettier/prettier': 'off' }, parserOptions: { parser: 'babel-eslint' diff --git a/src/views/ebiz/sale/AttachmentManagement.vue b/src/views/ebiz/sale/AttachmentManagement.vue index 9b5a2126b..c096025e3 100644 --- a/src/views/ebiz/sale/AttachmentManagement.vue +++ b/src/views/ebiz/sale/AttachmentManagement.vue @@ -140,10 +140,10 @@ :max-count="1" /> - + -
+
- + -
+
{ - // console.log(res) - if (res.result == 0) { - //是投保人还是被保险人 - localStorage.accountInformationRadio = res.orderDTO.orderAccountDTO.accountType - //投被保险人关系 - this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt - this.$utils.intLocalStorage(res) - //投保人信息 - this.saleInsuredInfo = res.orderDTO.appntDTO - if (this.saleInsuredInfo.impartDTO.impartItemDTOS && this.saleInsuredInfo.impartDTO.impartItemDTOS.length > 0) { - this.isNotify = this.saleInsuredInfo.impartDTO.impartItemDTOS.some((item) => { - return item.impartAnswer != 1 - }) - } - if (!this.isNotify) { - this.isNotify = res.orderDTO.insuredDTOs[0].impartDTO.impartItemDTOS.some((item) => { - return item.impartAnswer != 1 - }) - } - //被保险人信息 - // localStorage.saleInsuredPersonInfo = JSON.stringify(res.orderDTO.insuredDTOs[0]) - } else { - this.$toast(res.resultMessage) + // if (this.$route.query.edit || localStorage.changeCard) { + getOrderDetail({ orderNo: localStorage.orderNo }).then((res) => { + // console.log(res) + if (res.result == 0) { + //是投保人还是被保险人 + localStorage.accountInformationRadio = res.orderDTO.orderAccountDTO.accountType + //投被保险人关系 + this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt + this.$utils.intLocalStorage(res) + //投保人信息 + this.saleInsuredInfo = res.orderDTO.appntDTO + //被保险人信息 + this.saleInsuredPersonInfo = res.orderDTO.insuredDTOs[0] + // localStorage.saleInsuredPersonInfo = JSON.stringify(res.orderDTO.insuredDTOs[0]) + if (this.saleInsuredInfo.impartDTO.impartItemDTOS && this.saleInsuredInfo.impartDTO.impartItemDTOS.length > 0) { + this.isNotify = this.saleInsuredInfo.impartDTO.impartItemDTOS.some((item) => { + return item.impartAnswer != 1 + }) } - }) - } + if (!this.isNotify) { + if (this.saleInsuredInfo.financeImpartDTO.impartItemDTOS && this.saleInsuredInfo.financeImpartDTO.impartItemDTOS.length > 0) { + this.isNotify = this.saleInsuredInfo.financeImpartDTO.impartItemDTOS.some((item) => { + return item.impartAnswer != 1 + }) + } + } + + if (this.saleInsuredPersonInfo.impartDTO.impartItemDTOS && this.saleInsuredPersonInfo.impartDTO.impartItemDTOS.length > 0) { + this.isNotifyInsured = this.saleInsuredPersonInfo.impartDTO.impartItemDTOS.some((item) => { + return item.impartAnswer != 1 + }) + } + + if (!this.isNotifyInsured) { + if (this.saleInsuredPersonInfo.financeImpartDTO.impartItemDTOS && this.saleInsuredPersonInfo.financeImpartDTO.impartItemDTOS.length > 0) { + this.isNotifyInsured = this.saleInsuredPersonInfo.financeImpartDTO.impartItemDTOS.some((item) => { + return item.impartAnswer != 1 + }) + } + } + } else { + this.$toast(res.resultMessage) + } + }) + // } }, mounted() { setTimeout(() => { @@ -483,11 +501,11 @@ export default { } let that = this // 投被保险人是否同人 - if (this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) { - that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt - // 获取被保险人信息 - that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) - } + // if (this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) { + // that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt + // // 获取被保险人信息 + // that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) + // } // 获取订单号 that.orderNo = window.localStorage.getItem('orderNo') // 获取是投保人还是被保险人 @@ -496,9 +514,15 @@ export default { that.idType = DataDictionary.idType // 获取投保人信息 - if (this.$CacheUtils.getLocItem('saleInsuredInfo')) { - that.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')) - } + // if (this.$CacheUtils.getLocItem('saleInsuredInfo')) { + // that.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')) + // } + + // if (!this.isNotify) { + // this.isNotify = this.saleInsuredPersonInfo.impartDTO.impartItemDTOS.some((item) => { + // return item.impartAnswer != 1 + // }) + // } // document.body.style.backgroundColor = '#fff' // 身份证正面 if (window.localStorage.getItem('imgfrontPath') != null) { @@ -905,8 +929,8 @@ export default { // } else if (that.type == 'fileListBankBack') { // //银行卡反面 // imageInfoType = '19' - }else if(that.type == 'fileListNotify'){ - name='fileListNotify'; + } else if (that.type == 'fileListNotify') { + name = 'fileListNotify' imageInfoType = '24' } let obj = { @@ -980,8 +1004,8 @@ export default { } else if (that.type == 'fileListIdBackInsured' && that.id == '9') { name = 'fileListIdBackInsured' imageInfoType = '18' - }else if(that.type == 'fileListNotifyInsured'){ - name='fileListNotifyInsured'; + } else if (that.type == 'fileListNotifyInsured') { + name = 'fileListNotifyInsured' imageInfoType = '24' } @@ -1038,7 +1062,6 @@ export default { // subBusinessNo: '', // fileName: that.imgName, // } - // that.list.push(obj) } } else { @@ -1430,7 +1453,7 @@ export default { /deep/ .van-hairline-unset--top-bottom::after { border: none; } -.redRadioCheckbox{ +.redRadioCheckbox { overflow: hidden; } diff --git a/vue.config.js b/vue.config.js index a00766a31..9ca8273e3 100644 --- a/vue.config.js +++ b/vue.config.js @@ -32,5 +32,8 @@ module.exports = { // options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/) // return options // }) + }, + devServer: { + port: 8082, } }