保單新增兩個字段
Showing
8 changed files
with
47 additions
and
6 deletions
... | @@ -742,6 +742,8 @@ module.exports = { | ... | @@ -742,6 +742,8 @@ module.exports = { |
742 | modify: "modify", | 742 | modify: "modify", |
743 | 743 | ||
744 | InsurantNumber: "Policy Number", | 744 | InsurantNumber: "Policy Number", |
745 | policyState: "Policy State", | ||
746 | activeDate: "Active Date", | ||
745 | Insurant: "Insured", | 747 | Insurant: "Insured", |
746 | InsurantName: "Policy Type", | 748 | InsurantName: "Policy Type", |
747 | InsurantAmount: "Sum Insured", | 749 | InsurantAmount: "Sum Insured", | ... | ... |
... | @@ -736,6 +736,8 @@ module.exports = { | ... | @@ -736,6 +736,8 @@ module.exports = { |
736 | modify: "修改", | 736 | modify: "修改", |
737 | 737 | ||
738 | InsurantNumber: "保單號碼", | 738 | InsurantNumber: "保單號碼", |
739 | policyState: "保單狀態", | ||
740 | activeDate: "生效日期", | ||
739 | Insurant: "受保人", | 741 | Insurant: "受保人", |
740 | InsurantName: "險種名稱", | 742 | InsurantName: "險種名稱", |
741 | InsurantAmount: "保額", | 743 | InsurantAmount: "保額", | ... | ... |
... | @@ -737,6 +737,8 @@ module.exports = { | ... | @@ -737,6 +737,8 @@ module.exports = { |
737 | modify: "修改", | 737 | modify: "修改", |
738 | 738 | ||
739 | InsurantNumber: "保单号码", | 739 | InsurantNumber: "保单号码", |
740 | policyState: "保单状态", | ||
741 | activeDate: "生效日期", | ||
740 | Insurant: "受保人", | 742 | Insurant: "受保人", |
741 | InsurantName: "险种名称", | 743 | InsurantName: "险种名称", |
742 | InsurantAmount: "保额", | 744 | InsurantAmount: "保额", | ... | ... |
... | @@ -10,6 +10,7 @@ import { | ... | @@ -10,6 +10,7 @@ import { |
10 | import { | 10 | import { |
11 | formatMoney, | 11 | formatMoney, |
12 | getInsuredPeriod, | 12 | getInsuredPeriod, |
13 | getInsuredState, | ||
13 | getPolicyName | 14 | getPolicyName |
14 | } from "@/utils/biz.js"; | 15 | } from "@/utils/biz.js"; |
15 | import Modal2Comp from '@/components/modal2-comp/modal2-comp.vue'; | 16 | import Modal2Comp from '@/components/modal2-comp/modal2-comp.vue'; |
... | @@ -226,6 +227,9 @@ export default { | ... | @@ -226,6 +227,9 @@ export default { |
226 | formatInsuredPeriod(t, v) { | 227 | formatInsuredPeriod(t, v) { |
227 | return getInsuredPeriod(this.$i18n.locale, t, v); | 228 | return getInsuredPeriod(this.$i18n.locale, t, v); |
228 | }, | 229 | }, |
230 | formatInsuredState(c) { | ||
231 | return getInsuredState(this.$i18n.locale, c); | ||
232 | }, | ||
229 | formatPolicyName(c, n) { | 233 | formatPolicyName(c, n) { |
230 | return getPolicyName(this.$i18n.locale, c, n); | 234 | return getPolicyName(this.$i18n.locale, c, n); |
231 | }, | 235 | }, | ... | ... |
... | @@ -6,6 +6,8 @@ | ... | @@ -6,6 +6,8 @@ |
6 | <div class="table-header orange"> | 6 | <div class="table-header orange"> |
7 | <div class="normal-header"> | 7 | <div class="normal-header"> |
8 | <div class="td w1">{{$t('customService.insuranceQuery.InsurantNumber')}}</div> | 8 | <div class="td w1">{{$t('customService.insuranceQuery.InsurantNumber')}}</div> |
9 | <div class="td w2">{{$t('customService.insuranceQuery.policyState')}}</div> | ||
10 | <div class="td w2">{{$t('customService.insuranceQuery.activeDate')}}</div> | ||
9 | <div class="td w2">{{$t('customService.insuranceQuery.Insurant')}}</div> | 11 | <div class="td w2">{{$t('customService.insuranceQuery.Insurant')}}</div> |
10 | <div class="td w1">{{$t('customService.insuranceQuery.InsurantName')}}</div> | 12 | <div class="td w1">{{$t('customService.insuranceQuery.InsurantName')}}</div> |
11 | <div class="td w2">{{$t('customService.insuranceQuery.InsurantAmount')}}</div> | 13 | <div class="td w2">{{$t('customService.insuranceQuery.InsurantAmount')}}</div> |
... | @@ -43,6 +45,9 @@ | ... | @@ -43,6 +45,9 @@ |
43 | </template> | 45 | </template> |
44 | </div> | 46 | </div> |
45 | 47 | ||
48 | |||
49 | <div class="td w2">{{formatInsuredState(item.policyState)}}</div> | ||
50 | <div class="td w2">{{item.activeDate?item.activeDate.split(" ")[0]:""}}</div> | ||
46 | <div class="td w2">{{lan == 'en' ? (item.insuredNameEn ? item.insuredNameEn : item.insuredNameCn) : (item.insuredNameCn ? item.insuredNameCn : item.insuredNameEn)}}</div> | 51 | <div class="td w2">{{lan == 'en' ? (item.insuredNameEn ? item.insuredNameEn : item.insuredNameCn) : (item.insuredNameCn ? item.insuredNameCn : item.insuredNameEn)}}</div> |
47 | <div class="td w1">{{formatPolicyName(item.productCode, item.productName)}}</div> | 52 | <div class="td w1">{{formatPolicyName(item.productCode, item.productName)}}</div> |
48 | <div class="td w2">{{item.moneyCode}} {{formatMoney(item.amount,0)}}</div> | 53 | <div class="td w2">{{item.moneyCode}} {{formatMoney(item.amount,0)}}</div> | ... | ... |
... | @@ -266,6 +266,13 @@ export default { | ... | @@ -266,6 +266,13 @@ export default { |
266 | }); | 266 | }); |
267 | }); | 267 | }); |
268 | }, | 268 | }, |
269 | checkMobileActivity() { | ||
270 | this.errorTips.p1 = ""; | ||
271 | if (!this.registerForm.mobileNo) { | ||
272 | return; | ||
273 | } | ||
274 | this._checkMobileLegal(); | ||
275 | }, | ||
269 | registerV2Handler() { | 276 | registerV2Handler() { |
270 | if (this.registerDisabledV2) { | 277 | if (this.registerDisabledV2) { |
271 | return; | 278 | return; |
... | @@ -573,10 +580,11 @@ export default { | ... | @@ -573,10 +580,11 @@ export default { |
573 | watch: { | 580 | watch: { |
574 | mobileNoType() { | 581 | mobileNoType() { |
575 | this.mobileOptions.forEach(element => { | 582 | this.mobileOptions.forEach(element => { |
583 | // this.errorTips.p1 = ""; | ||
576 | if (element.type == this.mobileNoType) { | 584 | if (element.type == this.mobileNoType) { |
577 | this.$set(this, 'mobileTip', element); | 585 | this.$set(this, 'mobileTip', element); |
586 | this.checkMobileActivity(); | ||
578 | } | 587 | } |
579 | this.errorTips.p1 = ""; | ||
580 | }) | 588 | }) |
581 | }, | 589 | }, |
582 | 'registerForm.mobileNo': function () { | 590 | 'registerForm.mobileNo': function () { | ... | ... |
... | @@ -147,7 +147,7 @@ | ... | @@ -147,7 +147,7 @@ |
147 | </div> | 147 | </div> |
148 | 148 | ||
149 | <div class="ipt ipt2" :class="{err : errorTips.p1.length > 0}"> | 149 | <div class="ipt ipt2" :class="{err : errorTips.p1.length > 0}"> |
150 | <input :placeholder="mobileTip.placeHolder" class="ipt-tel" type="text" v-model="registerForm.mobileNo"> | 150 | <input :placeholder="mobileTip.placeHolder" class="ipt-tel" type="text" v-model="registerForm.mobileNo" @blur="checkMobileActivity($event)"> |
151 | </div> | 151 | </div> |
152 | </div> | 152 | </div> |
153 | <div class="validator" v-if="errorTips.p1.length > 0 "> | 153 | <div class="validator" v-if="errorTips.p1.length > 0 "> | ... | ... |
... | @@ -1069,16 +1069,16 @@ export function getInsuredPeriod(lan, t, v) { | ... | @@ -1069,16 +1069,16 @@ export function getInsuredPeriod(lan, t, v) { |
1069 | let value = ""; | 1069 | let value = ""; |
1070 | switch (t) { | 1070 | switch (t) { |
1071 | case "1": | 1071 | case "1": |
1072 | value = lan == "zh" ? "保终身" : lan == "tc" ? "保終身" : "Cover whole life"; | 1072 | value = lan == "zh" ? "终身" : lan == "tc" ? "終身" : "Cover whole life"; |
1073 | break; | 1073 | break; |
1074 | case "2": | 1074 | case "2": |
1075 | value = lan == "zh" ? "保" + v + "年" : lan == "tc" ? "保" + v + "年" : "Cover " + v + " " + (v > 1 ? "years" : "year"); | 1075 | value = lan == "zh" ? v + "年" : lan == "tc" ? v + "年" : "Cover " + v + " " + (v > 1 ? "years" : "year"); |
1076 | break; | 1076 | break; |
1077 | case "3": | 1077 | case "3": |
1078 | value = lan == "zh" ? "至" + v + "岁" : lan == "tc" ? "至" + v + "歲" : "Cover up to " + v + " " + (v > 1 ? "years" : "year") + " old"; | 1078 | value = lan == "zh" ? v + "岁" : lan == "tc" ? v + "歲" : "Cover up to " + v + " " + (v > 1 ? "years" : "year") + " old"; |
1079 | break; | 1079 | break; |
1080 | case "4": | 1080 | case "4": |
1081 | value = lan == "zh" ? "保" + v + "月" : lan == "tc" ? "保" + v + "月" : "Cover " + v + " " + (v > 1 ? "months" : "month"); | 1081 | value = lan == "zh" ? v + "月" : lan == "tc" ? v + "月" : "Cover " + v + " " + (v > 1 ? "months" : "month"); |
1082 | break; | 1082 | break; |
1083 | default: | 1083 | default: |
1084 | value = lan == "zh" ? "无关" : lan == "tc" ? "無關" : "NA"; | 1084 | value = lan == "zh" ? "无关" : lan == "tc" ? "無關" : "NA"; |
... | @@ -1086,6 +1086,24 @@ export function getInsuredPeriod(lan, t, v) { | ... | @@ -1086,6 +1086,24 @@ export function getInsuredPeriod(lan, t, v) { |
1086 | } | 1086 | } |
1087 | return value; | 1087 | return value; |
1088 | } | 1088 | } |
1089 | |||
1090 | |||
1091 | export function getInsuredState(lan, c) { | ||
1092 | let value = ""; | ||
1093 | switch (c) { | ||
1094 | case "1": | ||
1095 | value = lan == "zh" ? "有效" : lan == "tc" ? "有效" : "Inforce"; | ||
1096 | break; | ||
1097 | case "2": | ||
1098 | value = lan == "zh" ? "失效" : lan == "tc" ? "失效" : "Lapsed"; | ||
1099 | break; | ||
1100 | default: | ||
1101 | value = lan == "zh" ? "终止" : lan == "tc" ? "終止" : "Terminated"; | ||
1102 | break; | ||
1103 | } | ||
1104 | return value; | ||
1105 | } | ||
1106 | |||
1089 | export function getBenefitType(lan, t) { | 1107 | export function getBenefitType(lan, t) { |
1090 | let value = ""; | 1108 | let value = ""; |
1091 | let candidates = lan == "zh" ? relationList : lan == "tc" ? relationTcList : relationEnList; | 1109 | let candidates = lan == "zh" ? relationList : lan == "tc" ? relationTcList : relationEnList; | ... | ... |
-
Please register or sign in to post a comment