diff --git a/src/assets/js/utils/data-dictionary.js b/src/assets/js/utils/data-dictionary.js index 8aa4e0c99..999af92c8 100644 --- a/src/assets/js/utils/data-dictionary.js +++ b/src/assets/js/utils/data-dictionary.js @@ -684,12 +684,52 @@ export default { { shortName: '重疾险', name: '国富人寿八桂无忧重大疾病保险(B款)', - code: 'GFRSPRO_M0001' + code: 'GFRS_M0001' }, { shortName: '年金险', name: '国富人寿国富民鑫年金保险', - code: 'GFRSPRO_M0002' + code: 'GFRS_M0002' + }, + { + shortName: '年金险', + name: '国富人寿金管家养老年金保险产品(万能型)', + code: 'GFRS_M0003' + }, + { + shortName: '年金险', + name: '国富人寿瑞利年金保险', + code: 'GFRS_M0004' + }, + { + shortName: '医疗险', + name: '国富人寿国富民惠医疗保险', + code: 'GFRS_M0005' + }, + { + shortName: '年金险', + name: '国富人寿福宝宝教育年金保险', + code: 'GFRS_M0006' + }, + { + shortName: '重疾险', + name: '国富人寿国富民安重大疾病保险', + code: 'GFRS_M0007' + }, + { + shortName: '意外险', + name: '国富人寿综合意外伤害保险', + code: 'GFRS_M0008' + }, + { + shortName: '重疾险', + name: '国富人寿国富民康重大疾病保险', + code: 'GFRS_M0009' + }, + { + shortName: '重疾险', + name: '国富人寿八桂无忧重大疾病保险', + code: 'GFRS_M0010' } ], // 职级 @@ -753,79 +793,289 @@ export default { ], // 民族 nationType: [ - { id: '01', text: '汉族' }, - { id: '02', text: '蒙古族' }, - { id: '03', text: '回族' }, - { id: '04', text: '藏族' }, - { id: '05', text: '维吾尔族' }, - { id: '06', text: '苗族' }, - { id: '07', text: '彝族' }, - { id: '08', text: '壮族' }, - { id: '09', 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: '代码', text: '民族' }, - { id: '29', text: '柯尔克孜族' }, - { id: '30', text: '土族' }, - { id: '31', text: '达斡尔族' }, - { id: '32', text: '仫佬族' }, - { id: '33', text: '羌族' }, - { id: '34', text: '布朗族' }, - { id: '35', text: '撒拉族' }, - { id: '36', text: '毛难族' }, - { id: '37', text: '仡佬族' }, - { id: '38', text: '锡伯族' }, - { id: '39', text: '阿昌族' }, - { id: '40', text: '普米族' }, - { id: '41', text: '塔吉克族' }, - { id: '42', text: '怒族' }, - { id: '43', text: '乌孜别克族' }, - { id: '44', text: '俄罗斯族' }, - { id: '45', text: '鄂温克族' }, - { id: '46', text: '崩龙族' }, - { id: '47', text: '保安族' }, - { id: '48', text: '裕固族' }, - { id: '49', text: '京族' }, - { id: '50', text: '塔塔尔族' }, - { id: '51', text: '独龙族' }, - { id: '52', text: '鄂伦春族' }, - { id: '53', text: '赫哲族' }, - { id: '54', text: '门巴族' }, - { id: '55', text: '珞巴族' }, - { id: '56', text: '基诺族' }, - { id: '97', text: '其他' }, - { id: '98', text: '外国血统' } + { + id: '01', + text: '汉族' + }, + { + id: '02', + text: '蒙古族' + }, + { + id: '03', + text: '回族' + }, + { + id: '04', + text: '藏族' + }, + { + id: '05', + text: '维吾尔族' + }, + { + id: '06', + text: '苗族' + }, + { + id: '07', + text: '彝族' + }, + { + id: '08', + text: '壮族' + }, + { + id: '09', + 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: '代码', + text: '民族' + }, + { + id: '29', + text: '柯尔克孜族' + }, + { + id: '30', + text: '土族' + }, + { + id: '31', + text: '达斡尔族' + }, + { + id: '32', + text: '仫佬族' + }, + { + id: '33', + text: '羌族' + }, + { + id: '34', + text: '布朗族' + }, + { + id: '35', + text: '撒拉族' + }, + { + id: '36', + text: '毛难族' + }, + { + id: '37', + text: '仡佬族' + }, + { + id: '38', + text: '锡伯族' + }, + { + id: '39', + text: '阿昌族' + }, + { + id: '40', + text: '普米族' + }, + { + id: '41', + text: '塔吉克族' + }, + { + id: '42', + text: '怒族' + }, + { + id: '43', + text: '乌孜别克族' + }, + { + id: '44', + text: '俄罗斯族' + }, + { + id: '45', + text: '鄂温克族' + }, + { + id: '46', + text: '崩龙族' + }, + { + id: '47', + text: '保安族' + }, + { + id: '48', + text: '裕固族' + }, + { + id: '49', + text: '京族' + }, + { + id: '50', + text: '塔塔尔族' + }, + { + id: '51', + text: '独龙族' + }, + { + id: '52', + text: '鄂伦春族' + }, + { + id: '53', + text: '赫哲族' + }, + { + id: '54', + text: '门巴族' + }, + { + id: '55', + text: '珞巴族' + }, + { + id: '56', + text: '基诺族' + }, + { + id: '97', + text: '其他' + }, + { + id: '98', + text: '外国血统' + } ], //政治面貌 politicsStatus: [ - { id: '01', text: '中共党员' }, - { id: '02', text: '中共预备党员' }, - { id: '04', text: '民革党员' }, - { id: '05', text: '民盟盟员' }, - { id: '06', text: '民建会员' }, - { id: '07', text: '民进会员' }, - { id: '08', text: '农工党党员' }, - { id: '09', text: '致公党党员' }, - { id: '10', text: '九三学社社员' }, - { id: '11', text: '台盟盟员' }, - { id: '12', text: '无党派人士' } + { + id: '01', + text: '中共党员' + }, + { + id: '02', + text: '中共预备党员' + }, + { + id: '04', + text: '民革党员' + }, + { + id: '05', + text: '民盟盟员' + }, + { + id: '06', + text: '民建会员' + }, + { + id: '07', + text: '民进会员' + }, + { + id: '08', + text: '农工党党员' + }, + { + id: '09', + text: '致公党党员' + }, + { + id: '10', + text: '九三学社社员' + }, + { + id: '11', + text: '台盟盟员' + }, + { + id: '12', + text: '无党派人士' + } ], rsIdType: [ { diff --git a/src/assets/js/utils/validator.js b/src/assets/js/utils/validator.js index 8f532603d..e8da7f9ba 100644 --- a/src/assets/js/utils/validator.js +++ b/src/assets/js/utils/validator.js @@ -1,5 +1,7 @@ import Vue from 'vue' -import VeeValidate, { Validator } from 'vee-validate' +import VeeValidate, { + Validator +} from 'vee-validate' import zh_CN from 'vee-validate/dist/locale/zh_CN' import idNoCheck from './idNoCheck' @@ -58,11 +60,11 @@ Validator.extend('age', { return value > 17 && /^\d{1,3}$/.test(value) } }) -//被保人年龄(不得小于16周岁) +//被保人年龄(不得小于18周岁) Validator.extend('appntAge', { - getMessage: () => '年龄不得小于16周岁', + getMessage: () => '年龄不得小于18周岁', validate: value => { - return value > 15 && /^\d{1,3}$/.test(value) + return value > 17 && /^\d{1,3}$/.test(value) } }) @@ -85,7 +87,7 @@ Validator.extend('bankCard', { return field + '格式不正确,请您填写正确的格式' }, validate: value => { - return /^(\d{16}|\d{19})$/.test(value) + return /^(\d{16}|\d{18}|\d{19})$/.test(value) } }) @@ -136,4 +138,4 @@ Validator.extend('avoirdupois', { validate: value => { return /^[0-9]+([.]{1}[0-9]{1})?$/.test(value) && value > 0.1 } -}) +}) \ No newline at end of file diff --git a/src/components/ebiz/sale/UploadImageFile.vue b/src/components/ebiz/sale/UploadImageFile.vue index 3150764f0..7bd52baec 100644 --- a/src/components/ebiz/sale/UploadImageFile.vue +++ b/src/components/ebiz/sale/UploadImageFile.vue @@ -35,7 +35,8 @@ export default { return { file: '', imgName: '', - fileListIdFront: [] + fileListIdFront: [], + isSuccess: false } }, components: { @@ -71,12 +72,11 @@ export default { return function(e) { let result = this.result console.info(this.result) + // 上传图片 uploadImg(formdata).then(res => { - let data = { imgData: res.path, realName: that.realName, idno: that.idno } - recognition(data).then(res => { - that.$emit('sendimage', res) - }) + let num = 0 + that.recognition(res, num) }) } })(e.target.files[0]) @@ -84,6 +84,29 @@ export default { let formdata = new FormData() formdata.append('imgPath', that.file) + }, + recognition(val, num) { + let data = {} + num++ + console.log(num) + if (window.localStorage.failedNumber == '0') { + // 第一次人脸失败传180 + data = { imgData: val.path, realName: this.realName, idno: this.idno, isFly: '270', num: num } + } else { + data = { imgData: val.path, realName: this.realName, idno: this.idno, isFly: '90', num: num } + } + recognition(data).then(res => { + if (res.result == '0' && res.content.result == '1') { + window.localStorage.failedNumber = '' + this.isSuccess = true + } else if (res.result == '0' && res.content.result == '2') { + window.localStorage.failedNumber = '0' + this.recognition(val, num) + } else { + this.$toast(res.resultMessage) + } + this.$emit('sendimage', this.isSuccess) + }) } } } diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index fd6f15ae8..293f327ea 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -50,6 +50,43 @@ @click="toSelect(index, riskFactorIndex, riskFactor.columns)" /> +
+
{{ riskFactor.name }}
+
+
+ {{ dutyItem.dutyName }}({{ dutyItem.suffix }}) +
+ + +
+
+
+
@@ -69,7 +106,7 @@
- + 首期保费(元): @@ -78,7 +115,9 @@ {{ trialList[index].prem.toFixed(2) | moneyFormat }}
- 完成 +
+ 完成 +
@@ -88,7 +127,7 @@