812a41dc by joe

1

1 parent 0372c039
...@@ -781,11 +781,11 @@ module.exports = { ...@@ -781,11 +781,11 @@ module.exports = {
781 t5PaymentBank: "Bank", 781 t5PaymentBank: "Bank",
782 t5PaymentAccount: "Payment Account", 782 t5PaymentAccount: "Payment Account",
783 783
784 t6Title: "Payment History", 784 t6Title: "Payment Record",
785 t6PaymentPeriod: "Installment", 785 t6PaymentPeriod: "Premium Payment Term",
786 t6PaymentMethod: "Mode of Payment", 786 t6PaymentMethod: "Payment Method",
787 t6ClosingDate: "Received Date", 787 t6ClosingDate: "Premium Settlement Date",
788 t6PaymentAmount: "Amount", 788 t6PaymentAmount: "Payment Amount",
789 789
790 showMore: "Show all policies.", 790 showMore: "Show all policies.",
791 noPolicy: "You haven't bought any policy, if you have any questions please", 791 noPolicy: "You haven't bought any policy, if you have any questions please",
......
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
8 import Auth from '@components/auth/auth.vue'; 8 import Auth from '@components/auth/auth.vue';
9 import PolicyHeadList from "./policy-head-list.vue"; 9 import PolicyHeadList from "./policy-head-list.vue";
10 10
11 import { formatMoney, getInsuredPeriod, getBenefitType, getPayPeriod, getPayType, getMoneyName, getPayMode,getPolicyName } from "@/utils/biz.js"; 11 import { formatMoney, getInsuredPeriod, getBenefitType, getPayPeriod, getPayType, getMoneyName, getPayMode, getPolicyName } from "@/utils/biz.js";
12 12
13 export default { 13 export default {
14 name: "InsuranceQuery", 14 name: "InsuranceQuery",
...@@ -117,12 +117,34 @@ export default { ...@@ -117,12 +117,34 @@ export default {
117 case "tc": 117 case "tc":
118 return "第" + y + "年第" + p + "期"; 118 return "第" + y + "年第" + p + "期";
119 default: 119 default:
120 return "Year " + y + " issue " + p; 120 return this.formatNumber(p) + " payment in " + this.formatNumber(y) + " year";
121 } 121 }
122 }, 122 },
123 formatPolicyName(c, n) { 123 formatPolicyName(c, n) {
124 return getPolicyName(this.$i18n.locale, c, c); 124 return getPolicyName(this.$i18n.locale, c, c);
125 }, 125 },
126 formatNumber(p) {
127 let pmod = p % 4;
128 let pstr = p + "";
129 switch (pmod) {
130 case 0:
131 pstr += "th";
132 break;
133 case 1:
134 pstr += "st";
135 break;
136 case 2:
137 pstr += "nd";
138 break;
139 case 3:
140 pstr += "rd";
141 break;
142 default:
143 pstr += "th";
144 break;
145 }
146 return pstr;
147 },
126 userLogout() { 148 userLogout() {
127 this.showForm = false; 149 this.showForm = false;
128 }, 150 },
......