'添加财务告知判断'

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,6 +360,7 @@ export default {
data() { data() {
return { return {
isNotify: false, //是否有异常的健康告知 isNotify: false, //是否有异常的健康告知
isNotifyInsured: false,
// 订单号 // 订单号
orderNo: '', orderNo: '',
// 被保人异常告知 // 被保人异常告知
@@ -429,7 +430,7 @@ 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) {
@@ -440,23 +441,40 @@ export default {
this.$utils.intLocalStorage(res) this.$utils.intLocalStorage(res)
//投保人信息 //投保人信息
this.saleInsuredInfo = res.orderDTO.appntDTO 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) { if (this.saleInsuredInfo.impartDTO.impartItemDTOS && this.saleInsuredInfo.impartDTO.impartItemDTOS.length > 0) {
this.isNotify = this.saleInsuredInfo.impartDTO.impartItemDTOS.some((item) => { this.isNotify = this.saleInsuredInfo.impartDTO.impartItemDTOS.some((item) => {
return item.impartAnswer != 1 return item.impartAnswer != 1
}) })
} }
if (!this.isNotify) { if (!this.isNotify) {
this.isNotify = res.orderDTO.insuredDTOs[0].impartDTO.impartItemDTOS.some((item) => { if (this.saleInsuredInfo.financeImpartDTO.impartItemDTOS && this.saleInsuredInfo.financeImpartDTO.impartItemDTOS.length > 0) {
this.isNotify = this.saleInsuredInfo.financeImpartDTO.impartItemDTOS.some((item) => {
return item.impartAnswer != 1 return item.impartAnswer != 1
}) })
} }
//被保险人信息 }
// localStorage.saleInsuredPersonInfo = JSON.stringify(res.orderDTO.insuredDTOs[0])
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 { } else {
this.$toast(res.resultMessage) 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) {
@@ -906,7 +930,7 @@ export default {
// //银行卡反面 // //银行卡反面
// 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 = {
@@ -981,7 +1005,7 @@ export default {
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 {

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,
} }
} }