bbd9844a by joe

保單新增兩個字段

1 parent aec5495f
......@@ -742,6 +742,8 @@ module.exports = {
modify: "modify",
InsurantNumber: "Policy Number",
policyState: "Policy State",
activeDate: "Active Date",
Insurant: "Insured",
InsurantName: "Policy Type",
InsurantAmount: "Sum Insured",
......
......@@ -736,6 +736,8 @@ module.exports = {
modify: "修改",
InsurantNumber: "保單號碼",
policyState: "保單狀態",
activeDate: "生效日期",
Insurant: "受保人",
InsurantName: "險種名稱",
InsurantAmount: "保額",
......
......@@ -737,6 +737,8 @@ module.exports = {
modify: "修改",
InsurantNumber: "保单号码",
policyState: "保单状态",
activeDate: "生效日期",
Insurant: "受保人",
InsurantName: "险种名称",
InsurantAmount: "保额",
......
......@@ -10,6 +10,7 @@ import {
import {
formatMoney,
getInsuredPeriod,
getInsuredState,
getPolicyName
} from "@/utils/biz.js";
import Modal2Comp from '@/components/modal2-comp/modal2-comp.vue';
......@@ -226,6 +227,9 @@ export default {
formatInsuredPeriod(t, v) {
return getInsuredPeriod(this.$i18n.locale, t, v);
},
formatInsuredState(c) {
return getInsuredState(this.$i18n.locale, c);
},
formatPolicyName(c, n) {
return getPolicyName(this.$i18n.locale, c, n);
},
......
......@@ -6,6 +6,8 @@
<div class="table-header orange">
<div class="normal-header">
<div class="td w1">{{$t('customService.insuranceQuery.InsurantNumber')}}</div>
<div class="td w2">{{$t('customService.insuranceQuery.policyState')}}</div>
<div class="td w2">{{$t('customService.insuranceQuery.activeDate')}}</div>
<div class="td w2">{{$t('customService.insuranceQuery.Insurant')}}</div>
<div class="td w1">{{$t('customService.insuranceQuery.InsurantName')}}</div>
<div class="td w2">{{$t('customService.insuranceQuery.InsurantAmount')}}</div>
......@@ -43,6 +45,9 @@
</template>
</div>
<div class="td w2">{{formatInsuredState(item.policyState)}}</div>
<div class="td w2">{{item.activeDate?item.activeDate.split(" ")[0]:""}}</div>
<div class="td w2">{{lan == 'en' ? (item.insuredNameEn ? item.insuredNameEn : item.insuredNameCn) : (item.insuredNameCn ? item.insuredNameCn : item.insuredNameEn)}}</div>
<div class="td w1">{{formatPolicyName(item.productCode, item.productName)}}</div>
<div class="td w2">{{item.moneyCode}} {{formatMoney(item.amount,0)}}</div>
......
......@@ -266,6 +266,13 @@ export default {
});
});
},
checkMobileActivity() {
this.errorTips.p1 = "";
if (!this.registerForm.mobileNo) {
return;
}
this._checkMobileLegal();
},
registerV2Handler() {
if (this.registerDisabledV2) {
return;
......@@ -573,10 +580,11 @@ export default {
watch: {
mobileNoType() {
this.mobileOptions.forEach(element => {
// this.errorTips.p1 = "";
if (element.type == this.mobileNoType) {
this.$set(this, 'mobileTip', element);
this.checkMobileActivity();
}
this.errorTips.p1 = "";
})
},
'registerForm.mobileNo': function () {
......
......@@ -147,7 +147,7 @@
</div>
<div class="ipt ipt2" :class="{err : errorTips.p1.length > 0}">
<input :placeholder="mobileTip.placeHolder" class="ipt-tel" type="text" v-model="registerForm.mobileNo">
<input :placeholder="mobileTip.placeHolder" class="ipt-tel" type="text" v-model="registerForm.mobileNo" @blur="checkMobileActivity($event)">
</div>
</div>
<div class="validator" v-if="errorTips.p1.length > 0 ">
......
......@@ -1069,16 +1069,16 @@ export function getInsuredPeriod(lan, t, v) {
let value = "";
switch (t) {
case "1":
value = lan == "zh" ? "保终身" : lan == "tc" ? "保終身" : "Cover whole life";
value = lan == "zh" ? "终身" : lan == "tc" ? "終身" : "Cover whole life";
break;
case "2":
value = lan == "zh" ? "保" + v + "年" : lan == "tc" ? "保" + v + "年" : "Cover " + v + " " + (v > 1 ? "years" : "year");
value = lan == "zh" ? v + "年" : lan == "tc" ? v + "年" : "Cover " + v + " " + (v > 1 ? "years" : "year");
break;
case "3":
value = lan == "zh" ? "至" + v + "岁" : lan == "tc" ? "至" + v + "歲" : "Cover up to " + v + " " + (v > 1 ? "years" : "year") + " old";
value = lan == "zh" ? v + "岁" : lan == "tc" ? v + "歲" : "Cover up to " + v + " " + (v > 1 ? "years" : "year") + " old";
break;
case "4":
value = lan == "zh" ? "保" + v + "月" : lan == "tc" ? "保" + v + "月" : "Cover " + v + " " + (v > 1 ? "months" : "month");
value = lan == "zh" ? v + "月" : lan == "tc" ? v + "月" : "Cover " + v + " " + (v > 1 ? "months" : "month");
break;
default:
value = lan == "zh" ? "无关" : lan == "tc" ? "無關" : "NA";
......@@ -1086,6 +1086,24 @@ export function getInsuredPeriod(lan, t, v) {
}
return value;
}
export function getInsuredState(lan, c) {
let value = "";
switch (c) {
case "1":
value = lan == "zh" ? "有效" : lan == "tc" ? "有效" : "Inforce";
break;
case "2":
value = lan == "zh" ? "失效" : lan == "tc" ? "失效" : "Lapsed";
break;
default:
value = lan == "zh" ? "终止" : lan == "tc" ? "終止" : "Terminated";
break;
}
return value;
}
export function getBenefitType(lan, t) {
let value = "";
let candidates = lan == "zh" ? relationList : lan == "tc" ? relationTcList : relationEnList;
......