diff --git a/src/router/ebiz/preserve.js b/src/router/ebiz/preserve.js index 63b555074..5e819561e 100644 --- a/src/router/ebiz/preserve.js +++ b/src/router/ebiz/preserve.js @@ -6,8 +6,8 @@ const PolicyList = () => import('@/views/ebiz/preserve/common/PolicyList') const RenewalInfo = () => import('@/views/ebiz/preserve/pc/RenewalInfo') const PcImageUpload = () => import('@/views/ebiz/preserve/pc/ImageUpload') -const renewalConfirmation = () => import('@/views/ebiz/preserve/pc/RenewalConfirmation') -const autopayAuthorization = () => import('@/views/ebiz/preserve/pc/AutopayAuthorization') +const RenewalConfirmation = () => import('@/views/ebiz/preserve/pc/RenewalConfirmation') +const AutopayAuthorization = () => import('@/views/ebiz/preserve/pc/AutopayAuthorization') const contactInfo = () => import('@/views/ebiz/preserve/bb/ContactInfo') const contacAgreement = () => import('@/views/ebiz/preserve/bb/ContacAgreement') @@ -161,8 +161,8 @@ export default [ }, { path: '/preserve/pc/renewalConfirmation', - name: 'renewalConfirmation', - component: renewalConfirmation, + name: 'RenewalConfirmation', + component: RenewalConfirmation, meta: { title: '保全代办确认', index: 10 @@ -188,8 +188,8 @@ export default [ }, { path: '/preserve/pc/autopayAuthorization', - name: 'autopayAuthorization', - component: autopayAuthorization, + name: 'AutopayAuthorization', + component: AutopayAuthorization, meta: { title: '签署自动转账授权书', index: 12 diff --git a/src/views/ebiz/preserve/Progress.vue b/src/views/ebiz/preserve/Progress.vue index a0055b8f7..201255539 100644 --- a/src/views/ebiz/preserve/Progress.vue +++ b/src/views/ebiz/preserve/Progress.vue @@ -54,6 +54,8 @@ import { Divider, Tag, Row, Col, Checkbox, CheckboxGroup, List } from 'vant' import { queryEdorList } from '@/api/ebiz/preserve/preserve' import dataDic from './js/data-dictionary.js' import dateUtils from '@/assets/js/utils/date-utils' +import filters from '@/views/ebiz/preserve/filters' + export default { name: 'ProgressInfo', data() { @@ -65,15 +67,7 @@ export default { }, filters: { // 数据字典 id 转 text - idToText: function(id, type) { - let text = '' - dataDic[type].some(item => { - if (item.id == id) { - text = item.text - } - }) - return text - }, + idToText: filters.idToText, date: function(value) { let date = new Date(value) diff --git a/src/views/ebiz/preserve/bc/BeneficiaryInfoAdd.vue b/src/views/ebiz/preserve/bc/BeneficiaryInfoAdd.vue index 035db2f99..9b5f7e6b3 100644 --- a/src/views/ebiz/preserve/bc/BeneficiaryInfoAdd.vue +++ b/src/views/ebiz/preserve/bc/BeneficiaryInfoAdd.vue @@ -166,7 +166,9 @@ import { Field, CellGroup, Checkbox, Popup, Picker, Area } from 'vant' import SelectRadio from '@/components/ebiz/SelectRadio' import FieldDatePicter from '@/components/ebiz/FieldDatePicter' import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker' -import DataDictionary from '@/assets/js/utils/data-dictionary' +// import DataDictionary from '@/assets/js/utils/data-dictionary' +import dataDic from '../js/data-dictionary.js' + import areaList from '@/assets/js/utils/area' import getAreaName from '@/assets/js/utils/get-area-name' import utilsAge from '@/assets/js/utils/age' @@ -175,7 +177,9 @@ import CustomerPicker from '@/components/ebiz/customer/CustomerPicker' import idNoCheck from '@/assets/js/utils/idNoCheck' import { idToData } from '../js/verification' import { selectComp } from '../js/methods' -let relationToInsured = DataDictionary.relationToAppnt +import filters from '@/views/ebiz/preserve/filters' + +let relationToInsured = dataDic.edorRelationToAppnt export default { name: 'beneficiaryInfoAdd', @@ -299,9 +303,9 @@ export default { ;[this.popupShow, this.pickerType] = [true, pickerType] if (valueKey) this.valueKey = valueKey if (pickerType == '1') { - this.columns = DataDictionary.nativeplace + this.columns = dataDic.edorNativeplace } else if (pickerType == '2') { - this.columns = DataDictionary.idType + this.columns = dataDic.edorIdType } else if (pickerType == '7') { this.columns = relationToInsured } @@ -616,6 +620,9 @@ export default { this.effectiveDateTypeAble = false } } + }, + filters: { + idToText: filters.idToText } } diff --git a/src/views/ebiz/preserve/common/HandleResult.vue b/src/views/ebiz/preserve/common/HandleResult.vue index 4a21cc0e4..27d20e696 100644 --- a/src/views/ebiz/preserve/common/HandleResult.vue +++ b/src/views/ebiz/preserve/common/HandleResult.vue @@ -33,16 +33,16 @@ export default { // 此处处理 this.path switch (this.entry) { case 'BB': - this.path = '/preserve/ContactConfirmation?entry=BB' + this.path = `/preserve/ContactConfirmation?entry=${this.entry}` break case 'BC': - this.path = '/preserve/BeneficiaryConfirmation?entry=BC' + this.path = `/preserve/BeneficiaryConfirmation?entry=${this.entry}` break case 'PC': - this.path = '/preserve/pc/renewalConfirmation?entry=PC' + this.path = `/preserve/pc/renewalConfirmation?entry=${this.entry}` break case 'CT': - this.path = '/preserve/ct/surrenderConfirmation?entry=CT' + this.path = `/preserve/ct/surrenderConfirmation?entry=${this.entry}` break case 'WT': this.path = '' diff --git a/src/views/ebiz/preserve/ct/SurrenderConfirmation.vue b/src/views/ebiz/preserve/ct/SurrenderConfirmation.vue index f36f444a9..b4dd34f7c 100644 --- a/src/views/ebiz/preserve/ct/SurrenderConfirmation.vue +++ b/src/views/ebiz/preserve/ct/SurrenderConfirmation.vue @@ -98,7 +98,7 @@ export default { authCode: '', // 验证码 src: this.$assetsUrl + 'images/u6490.png', // 图片路径 sessionId: '', - isUnRead: false, //是否存在未阅读文档 + isUnRead: true, //是否存在未阅读文档 customerInfo: {}, policy: {}, diff --git a/src/views/ebiz/preserve/ct/SurrenderTip.vue b/src/views/ebiz/preserve/ct/SurrenderTip.vue index abf6c2b68..bd9699ac5 100644 --- a/src/views/ebiz/preserve/ct/SurrenderTip.vue +++ b/src/views/ebiz/preserve/ct/SurrenderTip.vue @@ -64,8 +64,8 @@ export default { res => { if (res.result == 0) { this.pdfList = res.content.surrenderSignList - // this.pdfUrl = config.assetsUrl + `${this.pdfList[0].policyUrl}`//待后端开发 - this.pdfUrl = config.assetsUrl + 'edor/BB_0001.pdf' //TEST测试专用,暂时将url写死后端开发完成后删除 + this.pdfUrl = config.assetsUrl + `${this.pdfList[0].policyUrl}` //待后端开发 + // this.pdfUrl = config.assetsUrl + 'edor/BB_0001.pdf' //TEST测试专用,暂时将url写死后端开发完成后删除 this.documentName = this.pdfList[0].documentName console.log('1111', this.pdfUrl) //TEST测试专用 resolve() diff --git a/src/views/ebiz/preserve/js/data-dictionary.js b/src/views/ebiz/preserve/js/data-dictionary.js index 15bc89798..389f0db71 100644 --- a/src/views/ebiz/preserve/js/data-dictionary.js +++ b/src/views/ebiz/preserve/js/data-dictionary.js @@ -121,41 +121,232 @@ export default { ], // 银行卡类型 edorBankType: [ + { id: 'ABC', text: '农业银行' }, + { id: 'BEA', text: '东亚银行' }, + { id: 'BOB', text: '北京银行' }, + { id: 'BOC', text: '中国银行' }, + { id: 'BOCOM', text: '交通银行' }, + { id: 'BOLZ', text: '柳州银行' }, + { id: 'CCB', text: '建设银行' }, + { id: 'CEB', text: '光大银行' }, + { id: 'CGB', text: '广发银行' }, + { id: 'CIB', text: '兴业银行' }, + { id: 'CITIC', text: '中信银行' }, + { id: 'CMB', text: '招商银行' }, + { id: 'CMBC', text: '民生银行' }, + { id: 'DGB', text: '东莞银行' }, + { id: 'DLCB', text: '大连银行' }, + { id: 'GBGB', text: '北部湾银行' }, + { id: 'GLBANK', text: '桂林银行' }, + { id: 'HXB', text: '华夏银行' }, + { id: 'ICBC', text: '工商银行' }, + { id: 'LZRCC', text: '农村信用合作联社' }, + { id: 'MYSH', text: '绵阳商行' }, + { id: 'NBCB', text: '宁波银行' }, + { id: 'NCB', text: '南昌银行' }, + { id: 'NJB', text: '南京银行' }, + { id: 'PAB', text: '平安银行' }, + { id: 'PSBC', text: '邮储银行' }, + { id: 'SDPB', text: '浦发银行' }, + { id: 'SHB', text: '上海银行' }, + { id: 'YQB', text: '泉州银行' }, + { id: 'ZZB', text: '郑州银行' } + ], + //证件类型 + edorIdType: [ { - id: 'ABC', - text: '农业银行' + id: 1, + text: '居民身份证' }, { - id: 'BOC', - text: '中国银行' + id: 2, + text: '户口本' }, { - id: 'BOCOM', - text: '交通银行' + id: 3, + text: '出生证' }, { - id: 'CCB', - text: '建设银行' + id: 4, + text: '外国人护照' }, { - id: 'CEB', - text: '光大银行' + id: 5, + text: '港澳居民来往内地通行证' }, { - id: 'CIB', - text: '兴业银行' + id: 6, + text: '台湾居民来往大陆通行证' }, { - id: 'ICBC', - text: '工商银行' + id: 8, + text: '外国人永久居留身份证' }, { - id: 'PSBC', - text: '邮储银行' + id: 9, + text: '港澳台居民居住证' + } + ], + //投保人/被保险人关系 + edorRelationToAppnt: [ + { + id: 1, + text: '本人' }, { - id: 'CMB', - text: '招商银行' + id: 2, + text: '配偶' + }, + { + id: 3, + text: '父母' + }, + { + id: 4, + text: '子女' + }, + { + id: 5, + text: '其他' + } + ], + //国家地区 + edorNativeplace: [ + { + id: 1, + text: '中国大陆' + }, + { + id: 2, + text: '中国香港' + }, + { + id: 3, + text: '中国澳门' + }, + { + id: 4, + text: '中国台湾' + }, + { + id: 5, + text: '英国' + }, + { + id: 6, + text: '印度' + }, + { + id: 7, + text: '意大利' + }, + { + id: 8, + text: '以色列' + }, + { + id: 9, + text: '新西兰' + }, + { + id: 10, + text: '希腊' + }, + { + id: 11, + text: '西班牙' + }, + { + id: 12, + text: '威尔士' + }, + { + id: 13, + text: '泰国' + }, + { + id: 14, + text: '苏格兰' + }, + { + id: 15, + text: '瑞士' + }, + { + id: 16, + text: '瑞典' + }, + { + id: 17, + text: '日本' + }, + { + id: 18, + text: '葡萄牙' + }, + { + id: 19, + text: '挪威' + }, + { + id: 20, + text: '尼日利亚' + }, + { + id: 21, + text: '美国' + }, + { + id: 22, + text: '加拿大' + }, + { + id: 23, + text: '荷兰' + }, + { + id: 24, + text: '韩国' + }, + { + id: 25, + text: '芬兰' + }, + { + id: 26, + text: '法国' + }, + { + id: 27, + text: '俄国' + }, + { + id: 28, + text: '德国' + }, + { + id: 29, + text: '波兰' + }, + { + id: 30, + text: '巴西' + }, + { + id: 31, + text: '澳大利亚' + }, + { + id: 32, + text: '奥地利' + }, + { + id: 33, + text: '爱尔兰' + }, + { + id: 34, + text: '埃及' } ] /* diff --git a/src/views/ebiz/preserve/pc/AutopayAuthorization.vue b/src/views/ebiz/preserve/pc/AutopayAuthorization.vue index 1b86977b7..f08b17a8c 100644 --- a/src/views/ebiz/preserve/pc/AutopayAuthorization.vue +++ b/src/views/ebiz/preserve/pc/AutopayAuthorization.vue @@ -1,92 +1,167 @@ - + diff --git a/src/views/ebiz/preserve/pc/ImageUpload.vue b/src/views/ebiz/preserve/pc/ImageUpload.vue index 5dd6c6648..6bf21873d 100644 --- a/src/views/ebiz/preserve/pc/ImageUpload.vue +++ b/src/views/ebiz/preserve/pc/ImageUpload.vue @@ -6,18 +6,20 @@
- - - -
- +
+ + + +
+ +
@@ -58,7 +60,10 @@ export default { imageInfoType: '3', // 影像类型 subBusinessType: '3', // 影像归属 0 投保人 1 被保人 2 受益人 3 代理人 realFileList: [], - popList: [] + popList: [], + isShow: true, //是否显示(是否需要上传) + min: 1, + max: 2 //限制最大张数 } ], uploadCheck: {}, @@ -142,7 +147,19 @@ export default { loadingType: 'spinner', message: '加载中……' }) - // + + let errorArr = [] + this.fileList.forEach(v => { + if (v.isShow) { + if (v.popList.length < v.min) { + errorArr.push(v.label) + } + } + }) + if (errorArr.length > 0) { + return this.$toast(`请上传${errorArr[0]}影像`) + } + let saveMediaDTO = { platformType: 'app', edorType: 'PC', diff --git a/src/views/ebiz/preserve/pc/RenewalConfirmation.vue b/src/views/ebiz/preserve/pc/RenewalConfirmation.vue index 3cd05bd52..6afc4707a 100644 --- a/src/views/ebiz/preserve/pc/RenewalConfirmation.vue +++ b/src/views/ebiz/preserve/pc/RenewalConfirmation.vue @@ -39,10 +39,13 @@

以上变更后续账号信息

-
{{ item.bankCode | idToText('edorBankType') }}
+
{{ item.bankName }}
-
{{ item.bankNo }}
+
{{ item.bankNo }}
+
+ +
{{ item.bankProvince | idToBankAdr }}
@@ -59,16 +62,31 @@

点击【开始】按钮,进行相关操作

+ + +

向此手机发送验证码确认用户身份

+

{{ customerInfo.customerMobile | mask }}

+ + + + {{ codeDisabled ? `${countDown}s后重新获取` : '获取验证码' }} + + +
+
- 开始 + 提交申请 + 开始