'添加财务告知判断'

This commit is contained in:
proudlx
2021-04-19 10:24:22 +08:00
parent 0337d863ad
commit 0cd7660846
3 changed files with 76 additions and 50 deletions

View File

@@ -5,9 +5,9 @@ module.exports = {
}, },
extends: ['plugin:vue/essential', '@vue/prettier'], extends: ['plugin:vue/essential', '@vue/prettier'],
rules: { rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-console': process.env.NODE_ENV === 'production' ? 'off' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'off' : 'off',
'prettier/prettier': 'error' 'prettier/prettier': 'off'
}, },
parserOptions: { parserOptions: {
parser: 'babel-eslint' parser: 'babel-eslint'

View File

@@ -140,10 +140,10 @@
:max-count="1" :max-count="1"
/> />
</div> </div>
<van-cell-group> <van-cell-group v-if="isNotify">
<van-field label="健康告知异常类资料" disabled /> <van-field label="健康告知异常类资料" disabled />
</van-cell-group> </van-cell-group>
<div @click="test('fileListNotify', saleInsuredInfo.idType)"> <div v-if="isNotify" @click="test('fileListNotify', saleInsuredInfo.idType)">
<van-uploader <van-uploader
name="fileListNotify" name="fileListNotify"
v-model="fileListNotify" v-model="fileListNotify"
@@ -227,10 +227,10 @@
</div> </div>
</div> </div>
</div> </div>
<van-cell-group> <van-cell-group v-if="isNotifyInsured">
<van-field label="健康告知异常类资料" disabled /> <van-field label="健康告知异常类资料" disabled />
</van-cell-group> </van-cell-group>
<div @click="test('fileListNotifyInsured', saleInsuredInfo.idType)"> <div v-if="isNotifyInsured" @click="test('fileListNotifyInsured', saleInsuredInfo.idType)">
<van-uploader <van-uploader
name="fileListNotifyInsured" name="fileListNotifyInsured"
v-model="fileListNotifyInsured" v-model="fileListNotifyInsured"
@@ -360,12 +360,13 @@ export default {
data() { data() {
return { return {
isNotify: false, //是否有异常的健康告知 isNotify: false, //是否有异常的健康告知
isNotifyInsured: false,
// 订单号 // 订单号
orderNo: '', orderNo: '',
// 被保人异常告知 // 被保人异常告知
fileListNotifyInsured:[], fileListNotifyInsured: [],
// 投保人异常告知 // 投保人异常告知
fileListNotify:[], fileListNotify: [],
// 身份证正面 // 身份证正面
fileListIdFront: [ fileListIdFront: [
// { url: 'https://img.yzcdn.cn/vant/cat.jpeg' } // { url: 'https://img.yzcdn.cn/vant/cat.jpeg' }
@@ -429,34 +430,51 @@ export default {
}, },
created() { created() {
//如果是从编辑进来的 //如果是从编辑进来的
if (this.$route.query.edit || localStorage.changeCard) { // if (this.$route.query.edit || localStorage.changeCard) {
getOrderDetail({ orderNo: localStorage.orderNo }).then((res) => { getOrderDetail({ orderNo: localStorage.orderNo }).then((res) => {
// console.log(res) // console.log(res)
if (res.result == 0) { if (res.result == 0) {
//是投保人还是被保险人 //是投保人还是被保险人
localStorage.accountInformationRadio = res.orderDTO.orderAccountDTO.accountType localStorage.accountInformationRadio = res.orderDTO.orderAccountDTO.accountType
//投被保险人关系 //投被保险人关系
this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt
this.$utils.intLocalStorage(res) this.$utils.intLocalStorage(res)
//投保人信息 //投保人信息
this.saleInsuredInfo = res.orderDTO.appntDTO this.saleInsuredInfo = res.orderDTO.appntDTO
if (this.saleInsuredInfo.impartDTO.impartItemDTOS && this.saleInsuredInfo.impartDTO.impartItemDTOS.length > 0) { //被保险人信息
this.isNotify = this.saleInsuredInfo.impartDTO.impartItemDTOS.some((item) => { this.saleInsuredPersonInfo = res.orderDTO.insuredDTOs[0]
return item.impartAnswer != 1 // 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) => {
if (!this.isNotify) { return item.impartAnswer != 1
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.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() { mounted() {
setTimeout(() => { setTimeout(() => {
@@ -483,11 +501,11 @@ export default {
} }
let that = this let that = this
// 投被保险人是否同人 // 投被保险人是否同人
if (this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) { // if (this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) {
that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt // that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
// 获取被保险人信息 // // 获取被保险人信息
that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) // that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
} // }
// 获取订单号 // 获取订单号
that.orderNo = window.localStorage.getItem('orderNo') that.orderNo = window.localStorage.getItem('orderNo')
// 获取是投保人还是被保险人 // 获取是投保人还是被保险人
@@ -496,9 +514,15 @@ export default {
that.idType = DataDictionary.idType that.idType = DataDictionary.idType
// 获取投保人信息 // 获取投保人信息
if (this.$CacheUtils.getLocItem('saleInsuredInfo')) { // if (this.$CacheUtils.getLocItem('saleInsuredInfo')) {
that.saleInsuredInfo = JSON.parse(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' // document.body.style.backgroundColor = '#fff'
// 身份证正面 // 身份证正面
if (window.localStorage.getItem('imgfrontPath') != null) { if (window.localStorage.getItem('imgfrontPath') != null) {
@@ -905,8 +929,8 @@ export default {
// } else if (that.type == 'fileListBankBack') { // } else if (that.type == 'fileListBankBack') {
// //银行卡反面 // //银行卡反面
// imageInfoType = '19' // imageInfoType = '19'
}else if(that.type == 'fileListNotify'){ } else if (that.type == 'fileListNotify') {
name='fileListNotify'; name = 'fileListNotify'
imageInfoType = '24' imageInfoType = '24'
} }
let obj = { let obj = {
@@ -980,8 +1004,8 @@ export default {
} else if (that.type == 'fileListIdBackInsured' && that.id == '9') { } else if (that.type == 'fileListIdBackInsured' && that.id == '9') {
name = 'fileListIdBackInsured' name = 'fileListIdBackInsured'
imageInfoType = '18' imageInfoType = '18'
}else if(that.type == 'fileListNotifyInsured'){ } else if (that.type == 'fileListNotifyInsured') {
name='fileListNotifyInsured'; name = 'fileListNotifyInsured'
imageInfoType = '24' imageInfoType = '24'
} }
@@ -1038,7 +1062,6 @@ export default {
// subBusinessNo: '', // subBusinessNo: '',
// fileName: that.imgName, // fileName: that.imgName,
// } // }
// that.list.push(obj) // that.list.push(obj)
} }
} else { } else {
@@ -1430,7 +1453,7 @@ export default {
/deep/ .van-hairline-unset--top-bottom::after { /deep/ .van-hairline-unset--top-bottom::after {
border: none; border: none;
} }
.redRadioCheckbox{ .redRadioCheckbox {
overflow: hidden; overflow: hidden;
} }
</style> </style>

View File

@@ -32,5 +32,8 @@ module.exports = {
// options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/) // options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/)
// return options // return options
// }) // })
},
devServer: {
port: 8082,
} }
} }