From eb3ee61e668c68b9f25ca799b02cc2a56206ea0d Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Thu, 16 Apr 2020 19:06:03 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E3=80=90new=E3=80=91=20=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ebiz/preserve/preserve.js | 12 ++ src/config/preserve.js | 5 + src/config/urlMap.js | 3 +- src/router/ebiz/preserve.js | 12 +- src/views/ebiz/preserve/Progress.vue | 264 +++++++++++++++++++++++++++ 5 files changed, 294 insertions(+), 2 deletions(-) create mode 100644 src/config/preserve.js create mode 100644 src/views/ebiz/preserve/Progress.vue diff --git a/src/api/ebiz/preserve/preserve.js b/src/api/ebiz/preserve/preserve.js index e69de29bb..1d362ee25 100644 --- a/src/api/ebiz/preserve/preserve.js +++ b/src/api/ebiz/preserve/preserve.js @@ -0,0 +1,12 @@ +import request from '@/assets/js/utils/request' +import getUrl from '@/assets/js/utils/get-url' + +//获取海报类型 +export function progressListQuery(data) { + return request({ + url: getUrl('/edor/query/queryEdorList', 0), + method: 'post', + data + }) +} + diff --git a/src/config/preserve.js b/src/config/preserve.js new file mode 100644 index 000000000..206af0814 --- /dev/null +++ b/src/config/preserve.js @@ -0,0 +1,5 @@ +let mockBaseUrl = 'http://rap2.taobao.org:38080/app/mock/250585/' + +export default { + '/edor/query/queryEdorList': mockBaseUrl + '/edor/query/queryEdorList', +} diff --git a/src/config/urlMap.js b/src/config/urlMap.js index a75916286..6782f7e65 100644 --- a/src/config/urlMap.js +++ b/src/config/urlMap.js @@ -8,6 +8,7 @@ import sale from './sale' import customer from './customer' import my from './my' import product from './product' +import preserve from './preserve' import serve from './serve' import common from './common' import survey from './survey' @@ -18,6 +19,6 @@ let baseObj = { '/user/info': mockBaseUrl + '/223948/info', '/user/logout': mockBaseUrl + '/223948/logout' } -Object.assign(baseObj, proposal, sale, customer, my, product, serve, common, survey) +Object.assign(baseObj, proposal, sale, customer, my, product, preserve, serve, common, survey) export default baseObj diff --git a/src/router/ebiz/preserve.js b/src/router/ebiz/preserve.js index 904e25f3b..7375a2b37 100644 --- a/src/router/ebiz/preserve.js +++ b/src/router/ebiz/preserve.js @@ -12,6 +12,7 @@ const beneficiaryInfo = () => import('@/views/ebiz/preserve/BeneficiaryInfo') const beneficiaryConfirmation = () => import('@/views/ebiz/preserve/BeneficiaryConfirmation') const surrenderInfo = () => import('@/views/ebiz/preserve/SurrenderInfo') const surrenderConfirmation = () => import('@/views/ebiz/preserve/SurrenderConfirmation') +const Progress = () => import('@/views/ebiz/preserve/Progress') export default [ { @@ -130,5 +131,14 @@ export default [ title: '提交结果', index: 13 } - } + }, + { + path: '/preserve/Progress', + name: 'Progress', + component: Progress, + meta: { + title: '保全进度查询', + index: 14 + } + }, ] diff --git a/src/views/ebiz/preserve/Progress.vue b/src/views/ebiz/preserve/Progress.vue new file mode 100644 index 000000000..ac3a9fdd4 --- /dev/null +++ b/src/views/ebiz/preserve/Progress.vue @@ -0,0 +1,264 @@ + + + + + + From be6e381513b65f87ba5ae86a3e97e85ab412f5d7 Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Mon, 20 Apr 2020 14:18:32 +0800 Subject: [PATCH 2/4] =?UTF-8?q?[new]=20=E5=AE=8C=E6=88=90=E6=8A=95?= =?UTF-8?q?=E4=BF=9D=E8=BF=9B=E5=BA=A6=E6=9F=A5=E8=AF=A2=EF=BC=8C=E8=AF=A6?= =?UTF-8?q?=E6=83=85=EF=BC=88=E8=81=94=E7=B3=BB=E6=96=B9=E5=BC=8F=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=EF=BC=89=20[fix]=20=E5=AE=8C=E5=96=84=E6=8A=95?= =?UTF-8?q?=E4=BF=9D=E8=BF=9B=E5=BA=A6=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ebiz/preserve/preserve.js | 8 + src/config/preserve.js | 1 + src/router/ebiz/preserve.js | 10 + src/views/ebiz/preserve/Progress.vue | 282 +++++++++++++++--- .../ebiz/preserve/detail/Beneficiary.vue | 257 ++++++++++++++++ src/views/ebiz/preserve/detail/Contact.vue | 159 ++++++++++ src/views/ebiz/preserve/js/data-dictionary.js | 36 +++ src/views/ebiz/preserve/js/utils.js | 4 + 8 files changed, 714 insertions(+), 43 deletions(-) create mode 100644 src/views/ebiz/preserve/detail/Beneficiary.vue create mode 100644 src/views/ebiz/preserve/detail/Contact.vue create mode 100644 src/views/ebiz/preserve/js/data-dictionary.js create mode 100644 src/views/ebiz/preserve/js/utils.js diff --git a/src/api/ebiz/preserve/preserve.js b/src/api/ebiz/preserve/preserve.js index d6b635a74..0071b7de4 100644 --- a/src/api/ebiz/preserve/preserve.js +++ b/src/api/ebiz/preserve/preserve.js @@ -9,6 +9,14 @@ export function progressListQuery(data) { }) } +export function progressDetailQuery(data) { + return request({ + url: getUrl('/edor/query/queryDetails', 0), + method: 'post', + data + }) +} + export function edorChange(data) { return request({ url: getUrl('/edor/item/change', 0), diff --git a/src/config/preserve.js b/src/config/preserve.js index dcc7ce4ea..7afca6e92 100644 --- a/src/config/preserve.js +++ b/src/config/preserve.js @@ -2,6 +2,7 @@ let mockBaseUrl = 'http://rap2.taobao.org:38080/app/mock/250585/' export default { '/edor/query/queryEdorList': mockBaseUrl + '/edor/query/queryEdorList', + '/edor/query/queryDetails': mockBaseUrl + '/edor/query/queryDetails', '/edor/customer/policyList': mockBaseUrl + '/edor/customer/policyList', '/edor/customer/customerInfo': mockBaseUrl + '/edor/customer/customerInfo', '/edor/customer/customerList': mockBaseUrl + '/edor/customer/customerList', diff --git a/src/router/ebiz/preserve.js b/src/router/ebiz/preserve.js index 7375a2b37..9247290d4 100644 --- a/src/router/ebiz/preserve.js +++ b/src/router/ebiz/preserve.js @@ -13,6 +13,7 @@ const beneficiaryConfirmation = () => import('@/views/ebiz/preserve/BeneficiaryC const surrenderInfo = () => import('@/views/ebiz/preserve/SurrenderInfo') const surrenderConfirmation = () => import('@/views/ebiz/preserve/SurrenderConfirmation') const Progress = () => import('@/views/ebiz/preserve/Progress') +const Contact = () => import('@/views/ebiz/preserve/detail/Contact') export default [ { @@ -141,4 +142,13 @@ export default [ index: 14 } }, + { + path: '/preserve/detail/Contact/:surrenderId', + name: 'Contact', + component: Contact, + meta: { + title: '联系方式变更', + index: 15 + } + }, ] diff --git a/src/views/ebiz/preserve/Progress.vue b/src/views/ebiz/preserve/Progress.vue index aaa52158d..f8e7889fd 100644 --- a/src/views/ebiz/preserve/Progress.vue +++ b/src/views/ebiz/preserve/Progress.vue @@ -14,48 +14,29 @@
-
{{ item.edorapplyNo }}
+
{{ item.edorapplyNo | date }}
-
-
- 客户 -
+
客户
{{ item.customerName }}
-
-
- 状态 -
- {{item.surrenderStatus}} +
状态
+ {{ item.surrenderStatus | idToText('preserveState') }}
-
-
- 保全项 -
- {{ item.surrenderType }} +
保全项
+ {{ item.surrenderType | idToText('preserveType') }}
-
- 查看详情 + 查看详情
@@ -70,7 +51,9 @@ + 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/js/data-dictionary.js b/src/views/ebiz/preserve/js/data-dictionary.js new file mode 100644 index 000000000..f596cfec8 --- /dev/null +++ b/src/views/ebiz/preserve/js/data-dictionary.js @@ -0,0 +1,36 @@ +// 保全相关的数据字典 +export default { + preserveState: { + 0: '申请成功', + 1: '待导入核心', + 2: '保全失败', + 3: '保全申请失败待导入核心', + 4: '待打款', + 5: '保全成功', + 6: '转核' + }, + preserveType: { + 1: '联系方式变更', + 2: '受益人变更', + 3: '续期账号变更', + 4: '犹退', + 5: '退保' + }, + preserveUserType: { + 1: '联系方式变更保存的客户', + 2: '受益人变更保存的客户', + 3: '续期账号变更保存的客户', + 4: '犹退保存的客户', + 5: '退保保存的客户' + }, + preserveAccountType: { + 1: '联系方式变更保存的客户', + 2: '受益人变更保存的客户', + 3: '续期账号变更保存的客户', + 4: '犹退保存的客户', + 5: '退保保存的客户' + }, + route: { + 1: 'Contact' + } +} 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 { + +} From 0b18daab3dca26e8a2aa4fc2d67d6eaf33bf95fc Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Mon, 20 Apr 2020 16:42:33 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E3=80=90new=E3=80=91=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=20=E4=BF=9D=E5=85=A8=E8=BF=9B=E5=BA=A6=E8=AF=A6=E6=83=85?= =?UTF-8?q?=EF=BC=9A=E5=8F=97=E7=9B=8A=E4=BA=BA=E7=9B=B8=E6=83=85=E6=84=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/ebiz/preserve.js | 21 ++ .../ebiz/preserve/detail/Beneficiary.vue | 226 +++++++------- .../ebiz/preserve/detail/BeneficiaryInfo.vue | 286 ++++++++++++++++++ src/views/ebiz/preserve/js/data-dictionary.js | 3 +- src/views/ebiz/preserve/js/methods.js | 95 ++++++ src/views/ebiz/preserve/js/verification.js | 52 ++++ 6 files changed, 569 insertions(+), 114 deletions(-) create mode 100644 src/views/ebiz/preserve/detail/BeneficiaryInfo.vue create mode 100644 src/views/ebiz/preserve/js/methods.js create mode 100644 src/views/ebiz/preserve/js/verification.js diff --git a/src/router/ebiz/preserve.js b/src/router/ebiz/preserve.js index 9247290d4..ea0d1d30f 100644 --- a/src/router/ebiz/preserve.js +++ b/src/router/ebiz/preserve.js @@ -14,6 +14,8 @@ const surrenderInfo = () => import('@/views/ebiz/preserve/SurrenderInfo') const surrenderConfirmation = () => import('@/views/ebiz/preserve/SurrenderConfirmation') 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') export default [ { @@ -151,4 +153,23 @@ export default [ index: 15 } }, + { + path: '/preserve/detail/Beneficiary/:surrenderId', + name: 'Beneficiary', + component: Beneficiary, + meta: { + title: '受益人', + index: 16 + } + }, + { + path: '/preserve/detail/BeneficiaryInfo', + name: 'BeneficiaryInfoD', + component: BeneficiaryInfoD, + meta: { + title: '指定受益人信息', + index: 17 + } + }, + ] diff --git a/src/views/ebiz/preserve/detail/Beneficiary.vue b/src/views/ebiz/preserve/detail/Beneficiary.vue index 73afdc423..edb485552 100644 --- a/src/views/ebiz/preserve/detail/Beneficiary.vue +++ b/src/views/ebiz/preserve/detail/Beneficiary.vue @@ -19,7 +19,7 @@
  • -
    +
    @@ -38,7 +38,7 @@
- - + --> - 提交申请 +
@@ -85,23 +85,23 @@ export default { } }, data() { - let feachData = { - surrenderDTOList: [ - { - surrenderId: '', - edorapplyNo: '', - surrenderType: '2', - bnfDTOs: [] - } - ] - } + // let feachData = { + // surrenderDTOList: [ + // { + // surrenderId: '', + // edorapplyNo: '', + // surrenderType: '2', + // bnfDTOs: [] + // } + // ] + // } return { - show: false, // 获取短信验证码 - codeDisabled: false, // 获取验证码按钮是否禁用 - timeId: null, // 计时器ID - countDown: 60, // 倒计时 - authCode: '', // 验证码 - feachData: feachData, + // show: false, // 获取短信验证码 + // codeDisabled: false, // 获取验证码按钮是否禁用 + // timeId: null, // 计时器ID + // countDown: 60, // 倒计时 + // authCode: '', // 验证码 + // feachData: feachData, type: '', isDisType: true, policy: null, @@ -110,16 +110,16 @@ export default { } }, created() { - progressDetailQuery({ - surrenderType : 1, + surrenderType : 2, surrenderId : this.$route.params.surrenderId }) .then(res => { - console.log(res); if(res.result == '0'){ - this.customerInfo = res.content.customerInfoDTOList[0] - this.surrenderResult = res.content.surrenderResult + this.policy = res.content.policyListDTOList[0] + this.insuredName = this.policy.insuredName + this.beneficiaries = res.content.bnfDTOs + this.type = this.beneficiaries[0].bnfType } else { this.$toast(res.resultMessage) } @@ -127,7 +127,6 @@ export default { .catch( (err) => { console.log(err); }) - // 获取保单列表存储的数据 // this.policy = JSON.parse(localStorage['preserve-policy']) // this.insuredName = this.policy.insuredName @@ -137,12 +136,13 @@ export default { mounted() {}, methods: { //告知信息 - nextStep() { - this.showAuth() - }, - detail(index) { + // nextStep() { + // this.showAuth() + // }, + detail(item) { // edit=0 - let path = '/preserve/BeneficiaryInfoDetail?edit=' + index + localStorage["preserve-userInfo"] = JSON.stringify(item) + let path = '/preserve/detail/BeneficiaryInfo' this.$jump({ flag: 'h5', extra: { @@ -154,90 +154,90 @@ export default { }) }, // 显示验证码 van-dialog - showAuth() { - this.show = true - }, - // 获取短信验证码 - getAuthCode() { - this.codeDisabled = true - //倒计时 - this.timeId = setInterval(() => { - this.countDown-- - if (this.countDown <= 0) { - window.clearInterval(this.timeId) - this.codeDisabled = false - this.countDown = 60 - } - }, 1000) + // showAuth() { + // this.show = true + // }, + // // 获取短信验证码 + // getAuthCode() { + // this.codeDisabled = true + // //倒计时 + // this.timeId = setInterval(() => { + // this.countDown-- + // if (this.countDown <= 0) { + // window.clearInterval(this.timeId) + // this.codeDisabled = false + // this.countDown = 60 + // } + // }, 1000) - getAuthCode({ - operateType: 'appntInfoEntry', - sessionId: '', - validateCode: '', - operateCode: this.customerMobile, - system: '', - operateCodeType: '0' - }).then(res => { - if (res.result == 0) { - this.sessionId = res.sessionId - } else { - this.$toast({ - message: res.resultMessage, - onClose: this.showAuth - }) - } - }) - }, - // 验证码确认事件 - async authConfirm() { - //清理计时器 - this.clearTimer() - this.changeSubmit() - }, - // 清理计时器 - clearTimer() { - window.clearInterval(this.timeId) - this.timeId = null - this.countDown = 60 - this.codeDisabled = false - }, - //提交变更申请 - async changeSubmit() { - if (!this.sessionId) { - this.$toast({ - message: '请先获取验证码', - onClose: this.showAuth - }) - return - } - let res = await autchCodeCheck({ - smsId: this.sessionId, - code: this.authCode - }) - if (res.result == 0) { - this.$jump({ - flag: 'h5', - extra: { - url: location.origin + `/#/preserve/submitResult`, - backToFirst: '1' - }, - routerInfo: { - path: `/preserve/submitResult` - } - }) - } else { - this.show = false - this.$toast({ - message: res.resultMessage, - onClose: this.showAuth - }) - } - } + // getAuthCode({ + // operateType: 'appntInfoEntry', + // sessionId: '', + // validateCode: '', + // operateCode: this.customerMobile, + // system: '', + // operateCodeType: '0' + // }).then(res => { + // if (res.result == 0) { + // this.sessionId = res.sessionId + // } else { + // this.$toast({ + // message: res.resultMessage, + // onClose: this.showAuth + // }) + // } + // }) + // }, + // // 验证码确认事件 + // async authConfirm() { + // //清理计时器 + // this.clearTimer() + // this.changeSubmit() + // }, + // // 清理计时器 + // clearTimer() { + // window.clearInterval(this.timeId) + // this.timeId = null + // this.countDown = 60 + // this.codeDisabled = false + // }, + // //提交变更申请 + // async changeSubmit() { + // if (!this.sessionId) { + // this.$toast({ + // message: '请先获取验证码', + // onClose: this.showAuth + // }) + // return + // } + // let res = await autchCodeCheck({ + // smsId: this.sessionId, + // code: this.authCode + // }) + // if (res.result == 0) { + // this.$jump({ + // flag: 'h5', + // extra: { + // url: location.origin + `/#/preserve/submitResult`, + // backToFirst: '1' + // }, + // routerInfo: { + // path: `/preserve/submitResult` + // } + // }) + // } else { + // this.show = false + // this.$toast({ + // message: res.resultMessage, + // onClose: this.showAuth + // }) + // } + // } }, - beforeDestroy() { - //清理计时器 - this.clearTimer() - } + // beforeDestroy() { + // //清理计时器 + // this.clearTimer() + // } } diff --git a/src/views/ebiz/preserve/js/data-dictionary.js b/src/views/ebiz/preserve/js/data-dictionary.js index f596cfec8..3af1cc11d 100644 --- a/src/views/ebiz/preserve/js/data-dictionary.js +++ b/src/views/ebiz/preserve/js/data-dictionary.js @@ -31,6 +31,7 @@ export default { 5: '退保保存的客户' }, route: { - 1: 'Contact' + 1: 'Contact', + 2: 'Beneficiary' } } diff --git a/src/views/ebiz/preserve/js/methods.js b/src/views/ebiz/preserve/js/methods.js new file mode 100644 index 000000000..da4406408 --- /dev/null +++ b/src/views/ebiz/preserve/js/methods.js @@ -0,0 +1,95 @@ +//点击弹出组件 +export function selectComp(that, index, type = '') { + that.currentPopupIndex = index + let title = '' + if (index == 1) { + ;[that.customerShowPicker, title] = [true, '客户列表'] + } else if (index == 2) { + ;[that.occupationShowPicker, title] = [true, '职业类别'] + } else if (index == 3) { + if (type == '1') { + //投保人 + localStorage.scanFromInsured = 'true' + } else if (type == '2') { + //被保险人 + localStorage.scanFromInsured = 'false' + } + ;[that.isScan, title] = [true, '身份证扫描'] + } + + setTimeout(() => { + that.$jump({ + flag: 'navigation', + extra: { + title, + hiddenLeft: '1' + } + }) + closeBtn(that) + }, 400) +} + +// 关闭按钮的显示 +function closeBtn(that) { + that.$jump({ + flag: 'webview_right_button', + extra: { + btns: [ + { + img: that.$assetsUrl + 'images/del-close.png', + route: { flag: '', extra: {} } + } + ] + } + }) +} + +// 获取身份证扫描信息 +/** + * + * @param {*} that 上下文 + * @param {*} data 扫描数据 + * @param {*} type 1 投保人 2 被保险人 + */ +export function getIdentityInfo(that, data, type) { + console.log(data) + // 正面 + if (data.name && data.name != '待识别') { + that.userInfo.name = data.name + that.userInfo.idNo = data.idNo + that.userInfo.birthday = `${data.birthYear}-${data.birthMonth}-${data.birthDay}` + that.userInfo.sex = data.gender == '男' ? '0' : '1' + } + // 反面 + if (data.startDate && data.startDate != '待识别') { + that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(5, 2)}-${data.startDate.substr(8, 2)}` + //that.userInfo.certificateValidate = `${data.startDate.substr(0, 4)}-${data.startDate.substr(4, 2)}-${data.startDate.substr(6, 2)}` + // 是否为长期身份证 + if (data.endDate != '长期') { + that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(5, 2)}-${data.endDate.substr(8, 2)}` + // that.userInfo.certiexpiredate = `${data.endDate.substr(0, 4)}-${data.endDate.substr(4, 2)}-${data.endDate.substr(6, 2)}` + that.effectiveDateTypeAble = true + that.idLimit = false + that.isRequired = true + } else { + // 勾选长期 + that.userInfo.effectiveDateType = true + // 长期按钮不禁用 + that.effectiveDateTypeAble = false + // 证件截止日期不需要校验 + that.certiexpiredateRequired = false + //截止日期不可编辑 + that.idLimit = true + that.isRequired = false + } + } + that.isScan = false + let title = type == '1' ? '投保人信息' : '被保险人信息' + that.$jump({ + flag: 'navigation', + extra: { + title, + hiddenRight: '1' + } + }) +} diff --git a/src/views/ebiz/preserve/js/verification.js b/src/views/ebiz/preserve/js/verification.js new file mode 100644 index 000000000..b42c40b4b --- /dev/null +++ b/src/views/ebiz/preserve/js/verification.js @@ -0,0 +1,52 @@ +import changeFifteenToEighteen from '@/assets/js/utils/changeFifteenToEighteen' +import idNoCheck from '@/assets/js/utils/idNoCheck' +import utilsAge from '@/assets/js/utils/age' + +//身份证带出出生日期,性别,年龄 +export function idToData(idNo) { + //非空 + if (!idNo.trim()) { + return { + text: '证件号码不能为空' + } + } + + // 证件号码规则校验 + if (!idNoCheck.isIdno(idNo)) { + return { + text: '您填写的证件号码有误' + } + } + + //如果是15位身份证号先转为18位 + if (idNo.length == 15) { + idNo = changeFifteenToEighteen(idNo) + } + let birthday = getBirthById(idNo) + let age = utilsAge.getAge(birthday, new Date()) + let sex = getSexById(idNo) + return { + birthday, + age, + sex + } +} + +function getBirthById(idNo) { + // 获取生日 + var year = idNo.substr(6, 4) + var month = idNo.substr(10, 2) + var day = idNo.substr(12, 2) + return year + '-' + month + '-' + day +} + +function getSexById(idNo) { + // 获取性别 + if (idNo.charAt(16) >= '0' && idNo.charAt(16) <= '9') { + if (parseInt(idNo.charAt(16)) % 2 == 0) { + return '1' + } else { + return '0' + } + } +} From a66c21601bb85629a351592bfda8540fd0192aa5 Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Sun, 26 Apr 2020 16:30:24 +0800 Subject: [PATCH 4/4] =?UTF-8?q?[new]=20=E5=B0=86=E7=8A=B9=E9=80=80?= =?UTF-8?q?=E3=80=81=E9=80=80=E4=BF=9D=E3=80=81=E7=BB=AD=E6=9C=9F=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E5=8F=98=E6=9B=B4=E4=B8=89=E4=B8=AA=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=BB=8E=E5=90=84=E8=87=AA=E4=BF=9D=E5=85=A8=E7=A7=BB=E6=A4=8D?= =?UTF-8?q?=EF=BC=8C=E6=9C=AA=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/ebiz/preserve.js | 33 ++- .../detail/CoolingOffperiodSurrender.vue | 234 ++++++++++++++++ src/views/ebiz/preserve/detail/Renewal.vue | 258 ++++++++++++++++++ src/views/ebiz/preserve/detail/Surrender.vue | 234 ++++++++++++++++ src/views/ebiz/preserve/js/data-dictionary.js | 7 +- 5 files changed, 762 insertions(+), 4 deletions(-) create mode 100644 src/views/ebiz/preserve/detail/CoolingOffperiodSurrender.vue create mode 100644 src/views/ebiz/preserve/detail/Renewal.vue create mode 100644 src/views/ebiz/preserve/detail/Surrender.vue diff --git a/src/router/ebiz/preserve.js b/src/router/ebiz/preserve.js index ea0d1d30f..39f283616 100644 --- a/src/router/ebiz/preserve.js +++ b/src/router/ebiz/preserve.js @@ -16,6 +16,9 @@ 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 [ { @@ -163,7 +166,7 @@ export default [ } }, { - path: '/preserve/detail/BeneficiaryInfo', + path: '/preserve/detail/BeneficiaryInfo/:surrenderId', name: 'BeneficiaryInfoD', component: BeneficiaryInfoD, meta: { @@ -171,5 +174,31 @@ export default [ 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/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/js/data-dictionary.js b/src/views/ebiz/preserve/js/data-dictionary.js index 3af1cc11d..a2b414e6b 100644 --- a/src/views/ebiz/preserve/js/data-dictionary.js +++ b/src/views/ebiz/preserve/js/data-dictionary.js @@ -13,7 +13,7 @@ export default { 1: '联系方式变更', 2: '受益人变更', 3: '续期账号变更', - 4: '犹退', + 4: '犹豫期退保', 5: '退保' }, preserveUserType: { @@ -32,6 +32,9 @@ export default { }, route: { 1: 'Contact', - 2: 'Beneficiary' + 2: 'Beneficiary', + 3: 'Renewal', + 4: 'CoolingOffperiodSurrender', + 5: 'Surrender' } }