mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 16:36:44 +08:00
'添加财务告知判断'
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -140,10 +140,10 @@
|
||||
:max-count="1"
|
||||
/>
|
||||
</div>
|
||||
<van-cell-group>
|
||||
<van-cell-group v-if="isNotify">
|
||||
<van-field label="健康告知异常类资料" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListNotify', saleInsuredInfo.idType)">
|
||||
<div v-if="isNotify" @click="test('fileListNotify', saleInsuredInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListNotify"
|
||||
v-model="fileListNotify"
|
||||
@@ -227,10 +227,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<van-cell-group>
|
||||
<van-cell-group v-if="isNotifyInsured">
|
||||
<van-field label="健康告知异常类资料" disabled />
|
||||
</van-cell-group>
|
||||
<div @click="test('fileListNotifyInsured', saleInsuredInfo.idType)">
|
||||
<div v-if="isNotifyInsured" @click="test('fileListNotifyInsured', saleInsuredInfo.idType)">
|
||||
<van-uploader
|
||||
name="fileListNotifyInsured"
|
||||
v-model="fileListNotifyInsured"
|
||||
@@ -360,12 +360,13 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
isNotify: false, //是否有异常的健康告知
|
||||
isNotifyInsured: false,
|
||||
// 订单号
|
||||
orderNo: '',
|
||||
// 被保人异常告知
|
||||
fileListNotifyInsured:[],
|
||||
fileListNotifyInsured: [],
|
||||
// 投保人异常告知
|
||||
fileListNotify:[],
|
||||
fileListNotify: [],
|
||||
// 身份证正面
|
||||
fileListIdFront: [
|
||||
// { url: 'https://img.yzcdn.cn/vant/cat.jpeg' }
|
||||
@@ -429,7 +430,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
//如果是从编辑进来的
|
||||
if (this.$route.query.edit || localStorage.changeCard) {
|
||||
// if (this.$route.query.edit || localStorage.changeCard) {
|
||||
getOrderDetail({ orderNo: localStorage.orderNo }).then((res) => {
|
||||
// console.log(res)
|
||||
if (res.result == 0) {
|
||||
@@ -440,23 +441,40 @@ export default {
|
||||
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) {
|
||||
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
|
||||
})
|
||||
}
|
||||
//被保险人信息
|
||||
// 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 {
|
||||
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;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -32,5 +32,8 @@ module.exports = {
|
||||
// options[0].fileBlacklist.push(/myasyncRoute(.)+?\.js$/)
|
||||
// return options
|
||||
// })
|
||||
},
|
||||
devServer: {
|
||||
port: 8082,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user