diff --git a/src/api/ebiz/preserve/preserve.js b/src/api/ebiz/preserve/preserve.js index f69680adb..9ef20732c 100644 --- a/src/api/ebiz/preserve/preserve.js +++ b/src/api/ebiz/preserve/preserve.js @@ -1,53 +1,69 @@ import request from '@/assets/js/utils/request' import getUrl from '@/assets/js/utils/get-url' -export function edorChange(data) { - return request({ - url: getUrl('/edor/item/change', 0), - method: 'post', - data - }) -} //搜索客户 export function customerList(data) { return request({ - url: getUrl('/edor/customer/customerList', 0), + url: getUrl('/edor/customer/customerList', 1), method: 'post', data }) } - -export function edorSignSave(data) { - return request({ - url: getUrl('/edor/sign/save', 0), - method: 'post', - data - }) -} - -//客户详情 -export function customerInfo(data) { - return request({ - url: getUrl('/edor/customer/customerInfo', 0), - method: 'post', - data - }) -} - -//客户详情 -// export function customerInfo(data) { -// return request({ -// url: getUrl('/edor/customer/customerInfo', 0), -// method: 'post', -// data -// }) -// } - //保单列表 export function policyList(data) { return request({ - url: getUrl('/edor/customer/policyList', 0), + url: getUrl('/edor/policy/policyList', 1), method: 'post', data }) -} \ No newline at end of file +} +//保全初始页信息查询(除续期账号变更外) +export function policyInfo(data) { + return request({ + url: getUrl('/edor/policy/policyInfo', 1), + method: 'post', + data + }) +} +//保全初始页信息查询-续期账号变更 +export function pcPolicyInfo(data) { + return request({ + url: getUrl('/edor/policy/pcPolicyInfo', 1), + method: 'post', + data + }) +} + +//变更提交/保全确认 +export function changeEdor(data) { + return request({ + url: getUrl('/edor/edor/changeEdor', 1), + method: 'post', + data + }) +} + +//保全进度查询列表 +export function queryEdorList(data) { + return request({ + url: getUrl('/edor/edor/queryEdorList', 1), + method: 'post', + data + }) +} +//保全试算 +export function trial(data) { + return request({ + url: getUrl('/edor/edor/trial', 1), + method: 'post', + data + }) +} +//保全详情查询 +export function queryConfirmDetail(data) { + return request({ + url: getUrl('/edor/edor/queryConfirmDetail', 1), + method: 'post', + data + }) +} diff --git a/src/assets/js/utils/request.js b/src/assets/js/utils/request.js index 5f7c663b9..d97a3306c 100644 --- a/src/assets/js/utils/request.js +++ b/src/assets/js/utils/request.js @@ -76,7 +76,15 @@ let cardList = [] let renewalManage = [ '/renewal/getRenewalList' //续期列表查询 ] -let whiteList = ['/customer/agent/getCustomersList', ...proposal, ...sale, ...agentEnter, ...claims, ...survey, ...manpower, ...renewalManage] + +//保全 +let preserve = [ + '/edor/customer/customerList', //客户搜索 + '/edor/policy/policyList', //保单列表 + '/edor/edor/queryEdorList' //保全进度查询 +] + +let whiteList = ['/customer/agent/getCustomersList', ...proposal, ...sale, ...agentEnter, ...claims, ...survey, ...manpower, ...renewalManage, ...preserve] // let whiteList = ['/customer/agent/getCustomersList', ...proposal, ...sale] diff --git a/src/assets/sass/vant-ui.scss b/src/assets/sass/vant-ui.scss index 7e80e9783..f3b207762 100644 --- a/src/assets/sass/vant-ui.scss +++ b/src/assets/sass/vant-ui.scss @@ -75,31 +75,6 @@ margin-right: 20px; } - .van-hairline--top::after { - border: none; - } -} - - -.dialog-alert { - // width: 255px; - - .van-dialog__header { - padding-top: 20px; - margin-bottom: 8px; - color: #E9332E; - } - - .van-dialog__message { - font-size: 14px; - color: #333; - padding-bottom: 30px; - } - - .van-dialog__confirm { - background: #E9332E; - } - .van-hairline--top::after { border: none; } diff --git a/src/config/preserve.js b/src/config/preserve.js index 5d609dd4d..c7ccc6039 100644 --- a/src/config/preserve.js +++ b/src/config/preserve.js @@ -1,10 +1,9 @@ // 保全 let mockBaseUrl = 'http://rap2.taobao.org:38080/app/mock/250585/' - export default { + '/edor/customer/customerList': mockBaseUrl + '/edor/customer/customerList', //客户搜索 '/edor/customer/policyList': mockBaseUrl + '/edor/customer/policyList', - '/edor/customer/customerInfo': mockBaseUrl + '/edor/customer/customerInfo', - '/edor/customer/customerList': mockBaseUrl + '/edor/customer/customerList', '/edor/item/change': mockBaseUrl + '/edor/item/change', '/edor/sign/save': mockBaseUrl + '/edor/sign/save', + '/edor/query/queryDetails': mockBaseUrl + '/edor/query/queryDetails' } diff --git a/src/router/ebiz/index.js b/src/router/ebiz/index.js index b1a4f709a..dc3d6d888 100644 --- a/src/router/ebiz/index.js +++ b/src/router/ebiz/index.js @@ -26,6 +26,7 @@ export default [ ...serve, ...common, ...product, + ...cardList, ...agentEenter, ...milestone, ...poster, @@ -37,5 +38,6 @@ export default [ ...cardList, ...renewalManage, ...preserve, - ...exercising + ...exercising, + ...manpower ] //根据需要进行删减 diff --git a/src/router/ebiz/preserve.js b/src/router/ebiz/preserve.js index d57f16cb4..937f4305b 100644 --- a/src/router/ebiz/preserve.js +++ b/src/router/ebiz/preserve.js @@ -1,43 +1,56 @@ //保全 定义相关组件 -const search = () => import('@/views/ebiz/preserve/Search') -const imageUpload = () => import('@/views/ebiz/preserve/ImageUpload') -const handleResult = () => import('@/views/ebiz/preserve/HandleResult') -const submitResult = () => import('@/views/ebiz/preserve/SubmitResult') -const policyList = () => import('@/views/ebiz/preserve/PolicyList') -const renewalInfo = () => import('@/views/ebiz/preserve/RenewalInfo') -const renewalConfirmation = () => import('@/views/ebiz/preserve/RenewalConfirmation') -const contactInfo = () => import('@/views/ebiz/preserve/ContactInfo') -const contacAgreement = () => import('@/views/ebiz/preserve/ContacAgreement') -const contactConfirmation = () => import('@/views/ebiz/preserve/ContactConfirmation') -const beneficiaryInfo = () => import('@/views/ebiz/preserve/BeneficiaryInfo') -const beneficiaryInfoAdd = () => import('@/views/ebiz/preserve/BeneficiaryInfoAdd') -const beneficiaryInfoDetail = () => import('@/views/ebiz/preserve/BeneficiaryInfoDetail') -const beneficiaryConfirmation = () => import('@/views/ebiz/preserve/BeneficiaryConfirmation') -const surrenderInfo = () => import('@/views/ebiz/preserve/SurrenderInfo') -const surrenderConfirmation = () => import('@/views/ebiz/preserve/SurrenderConfirmation') -const autopayAuthorization = () => import('@/views/ebiz/preserve/AutopayAuthorization') +const Search = () => import('@/views/ebiz/preserve/common/Search') +const HandleResult = () => import('@/views/ebiz/preserve/common/HandleResult') +const SubmitResult = () => import('@/views/ebiz/preserve/common/SubmitResult') +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 contactInfo = () => import('@/views/ebiz/preserve/bb/ContactInfo') +const contacAgreement = () => import('@/views/ebiz/preserve/bb/ContacAgreement') +const contactConfirmation = () => import('@/views/ebiz/preserve/bb/ContactConfirmation') + +const BeneficiaryInfo = () => import('@/views/ebiz/preserve/bc/BeneficiaryInfo') +const bcImageUpload = () => import('@/views/ebiz/preserve/bc/ImageUpload') +const beneficiaryInfoAdd = () => import('@/views/ebiz/preserve/bc/BeneficiaryInfoAdd') +const beneficiaryInfoDetail = () => import('@/views/ebiz/preserve/bc/BeneficiaryInfoDetail') +const beneficiaryConfirmation = () => import('@/views/ebiz/preserve/bc/BeneficiaryConfirmation') + +const SurrenderInfo = () => import('@/views/ebiz/preserve/ct/SurrenderInfo') +const SurrenderConfirmation = () => import('@/views/ebiz/preserve/ct/SurrenderConfirmation') +const SurrenderTip = () => import('@/views/ebiz/preserve/ct/SurrenderTip') +const CtImageUpload = () => import('@/views/ebiz/preserve/ct/ImageUpload') + +const Progress = () => import('@/views/ebiz/preserve/Progress') +const Contact = () => import('@/views/ebiz/preserve/detail/Contact') +const Beneficiary = () => import('@/views/ebiz/preserve/detail/Beneficiary') +const BeneficiaryInfoD = () => import('@/views/ebiz/preserve/detail/BeneficiaryInfo') +const Renewal = () => import('@/views/ebiz/preserve/detail/Renewal') +const CoolingOffperiodSurrender = () => import('@/views/ebiz/preserve/detail/CoolingOffperiodSurrender') +const Surrender = () => import('@/views/ebiz/preserve/detail/Surrender') export default [ { - path: '/preserve/search', - name: 'search', - component: search, + path: '/preserve/common/search', + name: 'Search', + component: Search, meta: { title: '搜索客户', index: 1 } }, { - path: '/preserve/policyList', - name: 'policyList', - component: policyList, + path: '/preserve/common/policyList', + name: 'PolicyList', + component: PolicyList, meta: { title: '选择保单', index: 2 } }, { - path: '/preserve/contactInfo', + path: '/preserve/bb/contactInfo', name: 'contactInfo', component: contactInfo, meta: { @@ -46,7 +59,7 @@ export default [ } }, { - path: '/preserve/contacAgreement', + path: '/preserve/bb/contacAgreement', name: 'contacAgreement', component: contacAgreement, meta: { @@ -55,25 +68,34 @@ export default [ } }, { - path: '/preserve/renewalInfo', - name: 'renewalInfo', - component: renewalInfo, + path: '/preserve/pc/renewalInfo', + name: 'RenewalInfo', + component: RenewalInfo, meta: { title: '续期账号变更', index: 4 } }, { - path: '/preserve/beneficiaryInfo', - name: 'beneficiaryInfo', - component: beneficiaryInfo, + path: '/preserve/pc/imageUpload', + name: 'pcImageUpload', + component: pcImageUpload, + meta: { + title: '续期账号图片上传', + index: 41 + } + }, + { + path: '/preserve/bc/beneficiaryInfo', + name: 'BeneficiaryInfo', + component: BeneficiaryInfo, meta: { title: '受益人变更', index: 5 } }, { - path: '/preserve/beneficiaryInfoAdd', + path: '/preserve/bc/beneficiaryInfoAdd', name: 'beneficiaryInfoAdd', component: beneficiaryInfoAdd, meta: { @@ -82,7 +104,7 @@ export default [ } }, { - path: '/preserve/beneficiaryInfoDetail', + path: '/preserve/bc/beneficiaryInfoDetail', name: 'beneficiaryInfoDetail', component: beneficiaryInfoDetail, meta: { @@ -91,34 +113,43 @@ export default [ } }, { - path: '/preserve/surrenderInfo', - name: 'surrenderInfo', - component: surrenderInfo, + path: '/preserve/ct/surrenderInfo', + name: 'SurrenderInfo', + component: SurrenderInfo, meta: { title: '退保', index: 6 } }, { - path: '/preserve/imageUpload', - name: 'imageUpload', - component: imageUpload, + path: '/preserve/bc/imageUpload', + name: 'bcImageUpload', + component: bcImageUpload, meta: { - title: '影像上传', + title: '上传影像资料', index: 7 } }, { - path: '/preserve/handleResult', - name: 'handleResult', - component: handleResult, + path: '/preserve/ct/imageUpload', + name: 'CtImageUpload', + component: CtImageUpload, + meta: { + title: '上传影像资料', + index: 7 + } + }, + { + path: '/preserve/common/handleResult', + name: 'HandleResult', + component: HandleResult, meta: { title: '操作结果', index: 8 } }, { - path: '/preserve/beneficiaryConfirmation', + path: '/preserve/bc/beneficiaryConfirmation', name: 'beneficiaryConfirmation', component: beneficiaryConfirmation, meta: { @@ -127,7 +158,7 @@ export default [ } }, { - path: '/preserve/renewalConfirmation', + path: '/preserve/pc/renewalConfirmation', name: 'renewalConfirmation', component: renewalConfirmation, meta: { @@ -136,7 +167,7 @@ export default [ } }, { - path: '/preserve/contactConfirmation', + path: '/preserve/bb/contactConfirmation', name: 'contactConfirmation', component: contactConfirmation, meta: { @@ -145,16 +176,16 @@ export default [ } }, { - path: '/preserve/surrenderConfirmation', - name: 'surrenderConfirmation', - component: surrenderConfirmation, + path: '/preserve/ct/surrenderConfirmation', + name: 'SurrenderConfirmation', + component: SurrenderConfirmation, meta: { title: '保全代办确认', index: 12 } }, { - path: '/preserve/autopayAuthorization', + path: '/preserve/pc/autopayAuthorization', name: 'autopayAuthorization', component: autopayAuthorization, meta: { @@ -163,12 +194,84 @@ export default [ } }, { - path: '/preserve/submitResult', - name: 'submitResult', - component: submitResult, + path: '/preserve/ct/surrenderTip', + name: 'SurrenderTip', + component: SurrenderTip, + meta: { + title: '退保协议', + index: 12 + } + }, + { + path: '/preserve/common/submitResult', + name: 'SubmitResult', + component: SubmitResult, meta: { title: '提交结果', index: 13 } + }, + { + path: '/preserve/Progress', + name: 'Progress', + component: Progress, + meta: { + title: '保全进度查询', + index: 14 + } + }, + { + path: '/preserve/detail/Contact/:surrenderId', + name: 'Contact', + component: Contact, + meta: { + title: '联系方式变更', + index: 15 + } + }, + { + path: '/preserve/detail/Beneficiary/:surrenderId', + name: 'Beneficiary', + component: Beneficiary, + meta: { + title: '受益人', + index: 16 + } + }, + { + path: '/preserve/detail/BeneficiaryInfo/:surrenderId', + name: 'BeneficiaryInfoD', + component: BeneficiaryInfoD, + meta: { + title: '指定受益人信息', + index: 17 + } + }, + { + path: '/preserve/detail/CoolingOffperiodSurrender/:surrenderId', + name: 'CoolingOffperiodSurrender', + component: CoolingOffperiodSurrender, + meta: { + title: '犹豫期退保', + index: 18 + } + }, + { + path: '/preserve/detail/Surrender/:surrenderId', + name: 'Surrender', + component: Surrender, + meta: { + title: '退保', + index: 19 + } + }, + { + path: '/preserve/detail/Renewal/:surrenderId', + name: 'Renewal', + component: Renewal, + meta: { + title: '续期账号变更', + index: 20 + } } ] diff --git a/src/store/index.js b/src/store/index.js index 07eef0a9f..c65621537 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -14,7 +14,9 @@ export default new Vuex.Store({ agentEnterApplyMobil: '', //自助入司-新的被增员人填好的基础信息里的电话号码 agentEnterApplyIdNo: '', //自助入司-新的被增员人填好的基础信息里的证件号码 refusalCause: '', //自助入司-查看审批流程-审批拒绝的原因 - renewalMsgParam: {} //续期管理-发送短信,请求参数 + renewalMsgParam: {}, //续期管理-发送短信,请求参数 + surrenderId: '', //保全-保全主表id + eodrApplyNo: '' //保全-保全受理号 }, mutations: { //更新 理赔申请-区分被保险人/申请人页面flag @@ -33,6 +35,14 @@ export default new Vuex.Store({ //更新 续期管理-发送短信,请求参数 updateRenewalMsgParam(state, val) { state.renewalMsgParam = val + }, + //更新 保全-保全主表id + updatePreserveSurrendId(state, val) { + state.surrenderId = val + }, + //更新 保全-保全受理号 + updatePreserveEodrApplyNo(state, val) { + state.eodrApplyNo = val } }, getters: { @@ -47,6 +57,12 @@ export default new Vuex.Store({ }, getRenewalMsgParam(state) { return state.renewalMsgParam + }, + getPreserveSurrendId(state) { + return state.surrenderId + }, + getPreserveEodrApplyNo(state) { + return state.eodrApplyNo } } }) diff --git a/src/views/app/Home.vue b/src/views/app/Home.vue index f20da11e4..fb73ddeb7 100644 --- a/src/views/app/Home.vue +++ b/src/views/app/Home.vue @@ -30,6 +30,13 @@
  • 入司审批列表
  • 问卷调查
  • 续期管理列表
  • +
  • nbs列表
  • +
  • DISC性格分析
  • +
  • 保全-搜索-联系方式变更
  • +
  • 保全-搜索-受益人变更
  • +
  • 保全-搜索-续期账户变更
  • +
  • 保全-搜索-退保
  • +
  • DISC性格分析
  • @@ -67,7 +74,6 @@ - 首页 diff --git a/src/views/ebiz/preserve/AutopayAuthorization.vue b/src/views/ebiz/preserve/AutopayAuthorization.vue deleted file mode 100644 index f37f03046..000000000 --- a/src/views/ebiz/preserve/AutopayAuthorization.vue +++ /dev/null @@ -1,4 +0,0 @@ - - diff --git a/src/views/ebiz/preserve/ImageUpload.vue b/src/views/ebiz/preserve/ImageUpload.vue deleted file mode 100644 index fd090439d..000000000 --- a/src/views/ebiz/preserve/ImageUpload.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/views/ebiz/preserve/Progress.vue b/src/views/ebiz/preserve/Progress.vue new file mode 100644 index 000000000..a0055b8f7 --- /dev/null +++ b/src/views/ebiz/preserve/Progress.vue @@ -0,0 +1,135 @@ + + + + + + diff --git a/src/views/ebiz/preserve/README.md b/src/views/ebiz/preserve/README.md new file mode 100644 index 000000000..2da000841 --- /dev/null +++ b/src/views/ebiz/preserve/README.md @@ -0,0 +1,96 @@ +# ebiz-h5-preserve + +## 介绍 + +## 保全项枚举(各个保全项文件夹也以此枚举命名) + +detail (保全进度查询,前端文件夹名称) +AA("AA","增加保险金额","AA","G"), +AC("AC","投保人资料变更","AC","U"), +AM("AM","投保人变更","AM","U"), +AP("AP","宽末处理方式变更","AP","U"), +AR("AR","保单账户部分领取","AR","P"), +AT("AT","年金险解除合同","AT","P"), +AX("AX","年金险协议减人","AX","U"), +AZ("AZ","年金险减人","AZ","U"), +BB("BB","客户基本资料变更","BB","U"), +BC("BC","受益人变更","BC","U"), +BE("BE","被保险人复效","BE","Q"), +BI("BI","银行信息变更","BI","U"), +BM("BM","红利领取方式变更","BM","U"), +BR("BR","保险期间恢复","BR","U"), +BS("BS","保险期间中断","BS","U"), +BZ("BZ","建工险保单中止","BZ","U"), +CA("CA","帐户金额转移","CA","P"), +CB("CB","退保回退","CB","G"), +CC("CC","建工险工程面积造价变更","CC","U"), +CD("CD","客户地址信息变更","CD","U"), +CM("CM","客户重要资料变更","CM","U"), +CS("CS","签名变更","CS","U"), +CT("CT","退保","CT","P"), +DA("DA","增加附加特约责任","DA","U"), +DB("DB","红利领取","DB","P"), +DT("DT","附加特约责任终止","DT","U"), +EB("EB","差错回退","EB","U"), +EF("EF","终止附加险","EF","P"), +EI("EI","延长保险期间","EI","G"), +EN("EN","续保方式变更","EN","U"), +ER("ER","满期降低保额续保","ER","G"), +ES("ES","终止险种","ES","P"), +FM("FM","交费期间变更","FM","U"), +GA("GA","年金转换","GA","U"), +GB("GB","领取年龄变更","GB","U"), +GC("GC","生存给付转账授权","GC","U"), +GM("GM","领取方式变更","GM","U"), +HI("HI","补充告知","HI","U"), +HJ("HJ","万能缓缴期","HJ","U"), +IC("IC","客户重要资料变更(保单层","IC","U"), +IG("IG","投连险提前通知领取","IG","P"), +IO("IO","职业变更","IO","U"), +IP("IP","追加保费","IP","G"), +IR("IR","更换被保险人","IR","U"), +IT("IT","投连险退保","IT","P"), +JB("JB","减保选择权","JB","U"), +LG("LG","生存给付柜面领取","LG","P"), +LN("LN","保单质押贷款","LN","P"), +LR("LR","保单遗失补发","LR","G"), +MF("MF","长险费用变更","MF","U"), +MR("MR","主险续保","MR","G"), +NC("NC","新增保险方案","NC","G"), +NI("NI","新增被保险人","NI","G"), +NP("NP","保单新增险种","NP","G"), +NR("NR","被保人增加险种","NR","G"), +NS("NS","新增附加险","NS","G"), +OP("OP","万能险部分领取","OP","G"), +PA("PA","投资计划变更","PA","U"), +PC("PC","续期交费信息变更","PC","U"), +PF("PF","保单冻结及解冻","PF","U"), +PG("PG","投连险随时领取","PG","G"), +PL("PL","保单挂失、解挂","PL","U"), +PM("PM","缴费频率变更","PM","U"), +PR("PR","保单迁移","PR","U"), +PT("PT","减少保险金额","PT","P"), +PU("PU","减额缴清","PU","G"), +RB("RB","保全回退","RB","G"), +RC("RC","交费提醒方式变更","RC","U"), +RD("RD","部分领取","RD","P"), +RE("RE","保单复效","RE","Q"), +RF("RF","贷款清偿","RF","G"), +RG("RG","满期领取","RG","P"), +RN("RN","不定期缴费","RN","P"), +RR("RR","无名单实名化","RR","U"), +SA("SA","建工险保单延期","SA","U"), +SC("SC","特约变更","SC","U"), +SF("SF","公共保额收付费","SF","G"), +SM("SM","服务类维护","SM","U"), +TA("TA","转养老金","TA","U"), +TI("TI","投连账户转换","TI","U"), +TR("TR","保费自垫清偿","TR","G"), +TS("TS","投连复缴","TS","G"), +VC("VC","保单归属规则维护","VC","U"), +VR("VR","被保险人归属规则变更","VR","U"), +WP("WP","万能追加保费","WP","G"), +WT("WT","犹豫期退保","WT","P"), +XS("XS","协议减保","XS","U"), +XT("XT","协议退保","XT","P"), +ZT("ZT","减少被保险人","ZT","P"); diff --git a/src/views/ebiz/preserve/RenewalConfirmation.vue b/src/views/ebiz/preserve/RenewalConfirmation.vue deleted file mode 100644 index 814c4f807..000000000 --- a/src/views/ebiz/preserve/RenewalConfirmation.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/views/ebiz/preserve/RenewalInfo.vue b/src/views/ebiz/preserve/RenewalInfo.vue deleted file mode 100644 index a7ca40faf..000000000 --- a/src/views/ebiz/preserve/RenewalInfo.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/views/ebiz/preserve/SubmitResult.vue b/src/views/ebiz/preserve/SubmitResult.vue deleted file mode 100644 index 99f278085..000000000 --- a/src/views/ebiz/preserve/SubmitResult.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - diff --git a/src/views/ebiz/preserve/SurrenderConfirmation.vue b/src/views/ebiz/preserve/SurrenderConfirmation.vue deleted file mode 100644 index e2bece42b..000000000 --- a/src/views/ebiz/preserve/SurrenderConfirmation.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/views/ebiz/preserve/SurrenderInfo.vue b/src/views/ebiz/preserve/SurrenderInfo.vue deleted file mode 100644 index c185277aa..000000000 --- a/src/views/ebiz/preserve/SurrenderInfo.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/views/ebiz/preserve/ContacAgreement.vue b/src/views/ebiz/preserve/bb/ContacAgreement.vue similarity index 97% rename from src/views/ebiz/preserve/ContacAgreement.vue rename to src/views/ebiz/preserve/bb/ContacAgreement.vue index 3c3311ab6..fc34d200b 100644 --- a/src/views/ebiz/preserve/ContacAgreement.vue +++ b/src/views/ebiz/preserve/bb/ContacAgreement.vue @@ -6,7 +6,7 @@ 本人确认已阅读 - 《国富人寿人身保险联系方式变更协议》 + 《国富人寿人身保险联系方式变更协议》
    diff --git a/src/views/ebiz/preserve/ContactConfirmation.vue b/src/views/ebiz/preserve/bb/ContactConfirmation.vue similarity index 78% rename from src/views/ebiz/preserve/ContactConfirmation.vue rename to src/views/ebiz/preserve/bb/ContactConfirmation.vue index 030a6279a..836458523 100644 --- a/src/views/ebiz/preserve/ContactConfirmation.vue +++ b/src/views/ebiz/preserve/bb/ContactConfirmation.vue @@ -33,7 +33,7 @@
    {{ customerInfo.address }}
    -
    {{ customerInfo.zipCode }}
    +
    {{ customerInfo.homeZip }}
    {{ customerInfo.customerEmail }}
    @@ -82,6 +82,7 @@ import { Field, CellGroup, Checkbox, Popup, Picker, Area, RadioGroup, Radio, Dialog } from 'vant' import getAreaName from '@/assets/js/utils/get-area-name' import { getAuthCode, autchCodeCheck } from '@/api/ebiz/sale/sale' +import { queryDetails } from '@/api/ebiz/preserve/preserve' export default { name: 'basicConfirmation', @@ -121,32 +122,72 @@ export default { signInvalid: '', customerMobile: '', submitForbidden: false, - read: false + read: false, + province: '', + city: '', + area: '' } }, async created() { this.read = this.$route.query.read + await this.queryDetails() await this.init() }, methods: { // 初始化数据 init() { - // 初始化内容 - this.customerInfo = JSON.parse(localStorage['preserve-customerInfo']) - this.customerInfoOld = JSON.parse(localStorage['preserve-customerInfo-old']) - // 判断 内容是否变化 - let keys = Object.keys(this.customerInfo) - for (let item of keys) { - this.changeInfo[item] = this.customerInfo[item] != this.customerInfoOld[item] - } - //地址特殊处理 - if (this.customerInfo.province && this.customerInfo.city && this.customerInfo.area) { - let tempHomeAdress = getAreaName([{ code: this.customerInfo.province }, { code: this.customerInfo.city }, { code: this.customerInfo.area }]).split('-') - this.province = tempHomeAdress[0] - this.city = tempHomeAdress[1] - this.area = tempHomeAdress[2] - } + return new Promise((resolve, reject) => { + // 初始化内容 + // this.customerInfo = JSON.parse(localStorage['preserve-customerInfo']) + // this.customerInfoOld = JSON.parse(localStorage['preserve-customerInfo-old']) + // 判断 内容是否变化 + let keys = Object.keys(this.customerInfo) + for (let item of keys) { + this.changeInfo[item] = this.customerInfo[item] != this.customerInfoOld[item] + } + //地址特殊处理 + if (this.customerInfo.province && this.customerInfo.city && this.customerInfo.area) { + let tempHomeAdress = getAreaName([{ code: this.customerInfo.province }, { code: this.customerInfo.city }, { code: this.customerInfo.area }]).split( + '-' + ) + this.province = tempHomeAdress[0] + this.city = tempHomeAdress[1] + this.area = tempHomeAdress[2] + } + resolve() + }) }, + + //保全详情查询 + queryDetails() { + return new Promise((resolve, reject) => { + let { surrenderId, eodrApplyNo } = this.getInfo() + queryDetails({ surrenderId, eodrApplyNo }).then(res => { + if (res.result == 0) { + let resData = res.content.content + console.log('11', resData) + resData.map(v => { + //isNewInfo-是否变更后信息 0-是 1-否 + if (v.isNewInfo == '0') { + this.customerInfo = v + } else { + this.customerInfoOld = v + } + }) + resolve() + } else { + this.$toast(res.resultMessage) + reject() + } + }) + }) + }, + + //获取保全主表id及保全受理号 + getInfo() { + return { surrenderId: this.$store.getters.getPreserveSurrendId, eodrApplyNo: this.$store.getters.getPreserveEodrApplyNo } + }, + // 显示验证码 van-dialog showAuth() { this.show = true diff --git a/src/views/ebiz/preserve/ContactInfo.vue b/src/views/ebiz/preserve/bb/ContactInfo.vue similarity index 93% rename from src/views/ebiz/preserve/ContactInfo.vue rename to src/views/ebiz/preserve/bb/ContactInfo.vue index 03bc2abb2..5fd9e6c89 100644 --- a/src/views/ebiz/preserve/ContactInfo.vue +++ b/src/views/ebiz/preserve/bb/ContactInfo.vue @@ -90,7 +90,7 @@ export default { homePhone: '', isNewInfo: '' } - feachData.surrenderDTOList[0].customerInfoDTOList.push(customerInfo) + // feachData.surrenderDTOList[0].customerInfoDTOList.push(customerInfo) return { homeName: '', homeShow: false, @@ -130,11 +130,14 @@ export default { //表单校验 this.$validator.validate().then(valid => { if (true == valid) { + this.feachData.surrenderDTOList[0].customerInfoDTOList.push(this.customerInfo) edorChange(this.feachData) .then(res => { if (res.result == 0) { localStorage['preserve-customerInfo-old'] = localStorage['preserve-customerInfo'] localStorage['preserve-customerInfo'] = JSON.stringify(this.customerInfo) + this.$store.commit('updatePreserveSurrendId', res.content.surrenderId) + this.$store.commit('updatePreserveEodrApplyNo', res.content.eodrApplyNo) this.$jump({ flag: 'h5', extra: { diff --git a/src/views/ebiz/preserve/BeneficiaryConfirmation.vue b/src/views/ebiz/preserve/bc/BeneficiaryConfirmation.vue similarity index 100% rename from src/views/ebiz/preserve/BeneficiaryConfirmation.vue rename to src/views/ebiz/preserve/bc/BeneficiaryConfirmation.vue diff --git a/src/views/ebiz/preserve/BeneficiaryInfo.vue b/src/views/ebiz/preserve/bc/BeneficiaryInfo.vue similarity index 63% rename from src/views/ebiz/preserve/BeneficiaryInfo.vue rename to src/views/ebiz/preserve/bc/BeneficiaryInfo.vue index df097ccbd..461026e21 100644 --- a/src/views/ebiz/preserve/BeneficiaryInfo.vue +++ b/src/views/ebiz/preserve/bc/BeneficiaryInfo.vue @@ -18,8 +18,8 @@
      -
    • -
      +
    • +
      @@ -49,7 +49,7 @@ + + diff --git a/src/views/ebiz/preserve/HandleResult.vue b/src/views/ebiz/preserve/common/HandleResult.vue similarity index 68% rename from src/views/ebiz/preserve/HandleResult.vue rename to src/views/ebiz/preserve/common/HandleResult.vue index 2bc5e667d..4a21cc0e4 100644 --- a/src/views/ebiz/preserve/HandleResult.vue +++ b/src/views/ebiz/preserve/common/HandleResult.vue @@ -14,9 +14,10 @@ + + diff --git a/src/views/ebiz/preserve/components/Search.vue b/src/views/ebiz/preserve/components/Search.vue new file mode 100644 index 000000000..e5e6a79dc --- /dev/null +++ b/src/views/ebiz/preserve/components/Search.vue @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/src/views/ebiz/preserve/ct/ImageUpload.vue b/src/views/ebiz/preserve/ct/ImageUpload.vue new file mode 100644 index 000000000..cc6d91234 --- /dev/null +++ b/src/views/ebiz/preserve/ct/ImageUpload.vue @@ -0,0 +1,248 @@ + + + + + + diff --git a/src/views/ebiz/preserve/ct/SurrenderConfirmation.vue b/src/views/ebiz/preserve/ct/SurrenderConfirmation.vue new file mode 100644 index 000000000..66e2fbd7a --- /dev/null +++ b/src/views/ebiz/preserve/ct/SurrenderConfirmation.vue @@ -0,0 +1,289 @@ + + + + + + diff --git a/src/views/ebiz/preserve/ct/SurrenderInfo.vue b/src/views/ebiz/preserve/ct/SurrenderInfo.vue new file mode 100644 index 000000000..bde28a19f --- /dev/null +++ b/src/views/ebiz/preserve/ct/SurrenderInfo.vue @@ -0,0 +1,486 @@ + + + + + + diff --git a/src/views/ebiz/preserve/ct/SurrenderTip.vue b/src/views/ebiz/preserve/ct/SurrenderTip.vue new file mode 100644 index 000000000..622e980ae --- /dev/null +++ b/src/views/ebiz/preserve/ct/SurrenderTip.vue @@ -0,0 +1,170 @@ + + + + diff --git a/src/views/ebiz/preserve/detail/Beneficiary.vue b/src/views/ebiz/preserve/detail/Beneficiary.vue new file mode 100644 index 000000000..edb485552 --- /dev/null +++ b/src/views/ebiz/preserve/detail/Beneficiary.vue @@ -0,0 +1,257 @@ + + + + + diff --git a/src/views/ebiz/preserve/detail/BeneficiaryInfo.vue b/src/views/ebiz/preserve/detail/BeneficiaryInfo.vue new file mode 100644 index 000000000..67a5feaaa --- /dev/null +++ b/src/views/ebiz/preserve/detail/BeneficiaryInfo.vue @@ -0,0 +1,286 @@ + + + + diff --git a/src/views/ebiz/preserve/detail/Contact.vue b/src/views/ebiz/preserve/detail/Contact.vue new file mode 100644 index 000000000..096fc9d14 --- /dev/null +++ b/src/views/ebiz/preserve/detail/Contact.vue @@ -0,0 +1,159 @@ + + + + + + diff --git a/src/views/ebiz/preserve/detail/CoolingOffperiodSurrender.vue b/src/views/ebiz/preserve/detail/CoolingOffperiodSurrender.vue new file mode 100644 index 000000000..e3ecc24df --- /dev/null +++ b/src/views/ebiz/preserve/detail/CoolingOffperiodSurrender.vue @@ -0,0 +1,234 @@ + + + + + + diff --git a/src/views/ebiz/preserve/detail/Renewal.vue b/src/views/ebiz/preserve/detail/Renewal.vue new file mode 100644 index 000000000..4366c1b0f --- /dev/null +++ b/src/views/ebiz/preserve/detail/Renewal.vue @@ -0,0 +1,258 @@ + + + + + + diff --git a/src/views/ebiz/preserve/detail/Surrender.vue b/src/views/ebiz/preserve/detail/Surrender.vue new file mode 100644 index 000000000..e3ecc24df --- /dev/null +++ b/src/views/ebiz/preserve/detail/Surrender.vue @@ -0,0 +1,234 @@ + + + + + + diff --git a/src/views/ebiz/preserve/filters/index.js b/src/views/ebiz/preserve/filters/index.js new file mode 100644 index 000000000..4309e2f90 --- /dev/null +++ b/src/views/ebiz/preserve/filters/index.js @@ -0,0 +1,165 @@ +import Common from '@/assets/js/common' +import dataDic from '@/views/ebiz/preserve/js/data-dictionary' + +/* + * 把其他filter放到index.js里面一起引入 + */ +export default { + m2km(value) { + return Common.m2km(value) + }, + + /** + * 除法 + * @param {Number} dividend 被除数 + * @param {Number} divisor 除数 + * @return {Number} 值 + */ + divide(dividend, divisor) { + return Common.divide(dividend, divisor) + }, + + /** + * 保留小数位,替代Number.toFixed()方法,针对于某些数据(16.455)不能做到四舍五入 + * @param {[type]} value 数值 + * @param {[type]} num 几位小数 + * @return {[type]} 值 + */ + toFixed(value, num) { + return Common.toFixed(value, num) + }, + + /** + * 如果是小数则保留小数位,默认两位 + * @param {[type]} value 数值 + * @param {Number} num 几位小数 + * @return {[type]} 值 + */ + toFloatFixed(value, num) { + Common.toFloatFixed(value, num) + }, + + /** + * 转化成工作时间 + * @param {[type]} value 值 + * @return {[type]} [description] + */ + businessHour(value) { + let time = '' + if (value) { + const arr = value.split(';') + time = + '星期' + + Common.getWeek(arr[0]) + + ' ~ 星期' + + Common.getWeek(arr[1]) + + ' ' + + Common.getTime(arr[2]) + + ':' + + Common.getTime(arr[3]) + + ' ~ ' + + Common.getTime(arr[4]) + + ':' + + Common.getTime(arr[5]) + } + return time + }, + + isEmptyObject(o) { + return Common.isEmptyObject(o) + }, + wan(value) { + const isNumber = typeof value === 'number' + return isNumber && value / 10000 + }, + // 除以100保留小数位 + divide100(value, num = 2, isFill) { + let values = Number(value) + const regular = /^\d+\.\d+/ + if (values) { + values = values / 100 + if (regular.test(values)) { + return Common.toFixed(values, num) + } else { + return Common.toFixed(values) + } + } else { + if (isFill) { + // 是否需要填充 + value = 0 + } + } + return value + }, + discount(value, position = 0) { + let ret = value.split('.') + if (position == 0) { + ret = ret[0] + } else if (position == 1) { + ret = ret[1] + } + return ret + }, + // 数据字典 id 转 text + idToText(id, type) { + let text = '' + dataDic[type].some(item => { + if (item.id == id) { + text = item.text + } + }) + return text + }, + /** + * 处理千分位并保留两位小数 + * @param {[type]} moneyStr 钱 + * @param {Boolean} flag 是否保留两位小数 + * @return {[type]} 值 + */ + // 处理钱的格式 + moneyFormat(moneyStr, flag = false) { + // let str = (Math.round(moneyStr * 100) / 100).toString() + // let pointIdx = str.indexOf('.') + // if (pointIdx < 0) { + // str = str.replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') + // pointIdx = str.length + // str += '.' + // } else { + // let int = str.substr(0, pointIdx) + // int.replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') + // } + // while (str.length <= pointIdx + 2) { + // str += '0' + // } + + // return str + + //摘自国富群:这个在报文转换的时候,核心返回“—”的时候,直接返回空。 @于维琦(于维琦) 前端如果保额为空,直接展示“—”@皮伟(皮伟) 你跟她碰一下怎么改 + if (moneyStr === null) { + return '—' + } + let str = '' + if (flag) { + str = (moneyStr + '').replace(/\d{1,3}(?=(\d{3})+$)/g, '$&,') + } else { + str = parseFloat(moneyStr) + .toFixed(2) + .replace(/(\d)(?=(\d{3})+\.)/g, '$1,') + } + return str + }, + // 处理保额的格式化 + amtFormat(moneyStr) { + let str = '' + str = (moneyStr + '').replace(/\d{1,3}(?=(\d{3})+$)/g, '$&,') + return str + }, + //手机号加密显示 + mask(value) { + if (value) { + return value.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') + } else { + return '' + } + } +} diff --git a/src/views/ebiz/preserve/js/data-dictionary.js b/src/views/ebiz/preserve/js/data-dictionary.js new file mode 100644 index 000000000..490d9dd2d --- /dev/null +++ b/src/views/ebiz/preserve/js/data-dictionary.js @@ -0,0 +1,184 @@ +// 保全相关的数据字典 +export default { + //保全类型 + preserveType: [ + { + id: 'BB', + text: '客户基本资料变更' + }, + { + id: 'BC', + text: '受益人变更' + }, + { + id: 'CT', + text: '退保' + }, + { + id: 'PC', + text: '续期账号变更' + }, + { + id: 'WT', + text: '犹豫期退保' + } + ], + preserveState: [ + { + id: '0', + text: '确认生效' + }, + { + 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: 'a', + text: '审批通过' + }, + { + id: 'b', + text: '保全回退' + }, + { + id: 'c', + text: '保全终止' + }, + { + id: 'd', + text: '强制终止' + } + ], + //退款账户列表 + accountList: [{ id: '1', text: '原银行账户' }, { id: '2', text: '新银行账户' }], + //退款原因列表 + surrenderReasonList: [ + { id: '1', text: '个人经济原因,无力负担保费' }, + { id: '2', text: '对险种不满意' }, + { id: '3', text: '对业务员不满意' }, + { id: '4', text: '对公司服务不满意' }, + { id: '5', text: '人情投保' }, + { id: '6', text: '其他' } + ], + // 续期缴费方式 1-现金、4-银行自动转账、8-银行回单 A-支付宝 W-微信 P-POS收费 + pcPayMode: [ + { + label: '现金', + type: '1' + }, + { + label: '银行自动转账', + id: '4' + }, + { + label: '银行回单', + id: '8' + }, + { + label: '支付宝', + id: 'A' + }, + { + label: '微信', + id: 'W' + }, + { + label: 'POS收费', + id: 'P' + } + ], + // 银行卡类型 + edorBankType: [ + { + id: 'ABC', + text: '农业银行' + }, + { + id: 'BOC', + text: '中国银行' + }, + { + id: 'BOCOM', + text: '交通银行' + }, + { + id: 'CCB', + text: '建设银行' + }, + { + id: 'CEB', + text: '光大银行' + }, + { + id: 'CIB', + text: '兴业银行' + }, + { + id: 'ICBC', + text: '工商银行' + }, + { + id: 'PSBC', + text: '邮储银行' + }, + { + id: 'CMB', + text: '招商银行' + } + ] + /* + preserveUserType: { + 1: '联系方式变更保存的客户', + 2: '受益人变更保存的客户', + 3: '续期账号变更保存的客户', + 4: '犹退保存的客户', + 5: '退保保存的客户' + }, + preserveAccountType: { + 1: '联系方式变更保存的客户', + 2: '受益人变更保存的客户', + 3: '续期账号变更保存的客户', + 4: '犹退保存的客户', + 5: '退保保存的客户' + }, + route: { + 1: 'Contact', + 2: 'Beneficiary', + 3: 'Renewal', + 4: 'CoolingOffperiodSurrender', + 5: 'Surrender' + } + */ +} diff --git a/src/views/ebiz/preserve/js/methods.js b/src/views/ebiz/preserve/js/methods.js index da4406408..b835a6d7a 100644 --- a/src/views/ebiz/preserve/js/methods.js +++ b/src/views/ebiz/preserve/js/methods.js @@ -1,4 +1,6 @@ //点击弹出组件 +import DataDictionary from '@/assets/js/utils/data-dictionary' + export function selectComp(that, index, type = '') { that.currentPopupIndex = index let title = '' @@ -93,3 +95,28 @@ export function getIdentityInfo(that, data, type) { } }) } + +// 数据字典 id 转 text +// eslint-disable-next-line no-unused-vars +function idToTextEdor(id, type) { + let text = '' + DataDictionary[type].some(item => { + if (item.id == id) { + text = item.label + } + }) + return text +} + +//json 数组分组 +function groupBy(array, f) { + const groups = {} + array.forEach(function(o) { + const group = JSON.stringify(f(o)) + groups[group] = groups[group] || [] + groups[group].push(o) + }) + return Object.keys(groups).map(function (group) { + return groups[group] + }) +} diff --git a/src/views/ebiz/preserve/js/utils.js b/src/views/ebiz/preserve/js/utils.js new file mode 100644 index 000000000..7d615c50b --- /dev/null +++ b/src/views/ebiz/preserve/js/utils.js @@ -0,0 +1,4 @@ + +export default { + +} diff --git a/src/views/ebiz/preserve/pc/AutopayAuthorization.vue b/src/views/ebiz/preserve/pc/AutopayAuthorization.vue new file mode 100644 index 000000000..85df3f4ed --- /dev/null +++ b/src/views/ebiz/preserve/pc/AutopayAuthorization.vue @@ -0,0 +1,104 @@ + + + + diff --git a/src/views/ebiz/preserve/pc/ImageUpload.vue b/src/views/ebiz/preserve/pc/ImageUpload.vue new file mode 100644 index 000000000..5dd6c6648 --- /dev/null +++ b/src/views/ebiz/preserve/pc/ImageUpload.vue @@ -0,0 +1,200 @@ + + + + + + diff --git a/src/views/ebiz/preserve/pc/RenewalConfirmation.vue b/src/views/ebiz/preserve/pc/RenewalConfirmation.vue new file mode 100644 index 000000000..3cd05bd52 --- /dev/null +++ b/src/views/ebiz/preserve/pc/RenewalConfirmation.vue @@ -0,0 +1,162 @@ + + + + + + diff --git a/src/views/ebiz/preserve/pc/RenewalInfo.vue b/src/views/ebiz/preserve/pc/RenewalInfo.vue new file mode 100644 index 000000000..a08d94de8 --- /dev/null +++ b/src/views/ebiz/preserve/pc/RenewalInfo.vue @@ -0,0 +1,310 @@ + + + + + diff --git a/src/views/ebiz/preserve/wt/ImageUpload.vue b/src/views/ebiz/preserve/wt/ImageUpload.vue new file mode 100644 index 000000000..5779885fd --- /dev/null +++ b/src/views/ebiz/preserve/wt/ImageUpload.vue @@ -0,0 +1,447 @@ + + + + + +