5840b74d by joe

电子函对接完成

1 parent 584d3b86
......@@ -75,6 +75,8 @@ module.exports = {
clarmsCustomerList: "/pingan_hklife_webapi/policy/clarmsCustomerList",
// 理赔报案
clarmsRegisterCase: "/pingan_hklife_webapi/policy/clarmsRegisterCase",
// 用户电子函列表
letterRecordList: "/pingan_hklife_webapi/policy/letterRecordList",
// cms相关
......
......@@ -51,10 +51,10 @@ function encryptContent(obj) {
// let base = COM.baseUrl;
// console.log(process.env);
let baseURL = process.env.VUE_APP_BASE_URL;
// baseURL = "http://localhost:9101";
if (window.location.href.indexOf("192.168") != -1) {
baseURL = "https://ow.go.qudone.com";
}
baseURL = "http://localhost:9101";
// if (window.location.href.indexOf("192.168") != -1) {
// baseURL = "https://ow.go.qudone.com";
// }
const axios = axiosIns.create({
baseURL: baseURL,
timeout: 10000
......
......@@ -744,6 +744,10 @@ module.exports = {
SentOutDate: "Sent Out Date",
DownloadLink: "Download link",
Status: "Status",
letterName : "Notice of Policy Issuance and Cooling-off Period",
DownloadDoc : "Download document",
Read : "Read",
UnRead : "Unread"
},
customService: {
name: "Customer service",
......
......@@ -30,136 +30,136 @@ module.exports = {
name: "登入",
path: "/login",
list: [{
name: "註冊",
path: "/register",
type: "noAuth",
value: ""
}, {
name: "登入",
path: "",
type: "noAuth",
value: "login"
},
// {
// name: "修改密碼",
// path: "/password/reset",
// type: "auth",
// value: ""
// },
name: "註冊",
path: "/register",
type: "noAuth",
value: ""
}, {
name: "登入",
path: "",
type: "noAuth",
value: "login"
},
// {
// name: "修改密碼",
// path: "/password/reset",
// type: "auth",
// value: ""
// },
// {
// name: "個人信息",
// path: "/infomation/improve",
// type: "auth",
// value: ""
// },
{
name: "登出",
path: "",
type: "auth",
value: "logout"
}
]
},
navList: [{
name: "產品介紹",
path: "/product/introduction",
list: [{
name: "自願醫保計劃",
path: "/vhis/detail"
},
{
name: "投資成份保險",
path: "/vhis?p=endowment"
}
]
},
{
name: "客戶服務",
path: "/custom/product",
list: [
// {
// name: "個人信息",
// path: "/infomation/improve",
// type: "auth",
// value: ""
// name: "客戶服務導航",
// path: "/custom/product"
// },
{
name: "登出",
path: "",
type: "auth",
value: "logout"
}
name: "聯絡我們",
path: "/custom/service?q=m1"
},
{
name: "繳付保費",
path: "/custom/service?q=m2"
},
{
name: "保單查詢",
path: "/custom/service?q=m3"
},
{
name: "保單變更",
path: "/custom/service?q=m41"
},
{
name: "理賠申請",
path: "/custom/service?q=m5"
},
{
name: "預約服務",
path: "/custom/service?q=m6"
},
{
name: "投訴受理",
path: "/custom/service?q=m7"
},
{
name: "常用表格",
path: "/custom/service?q=m8"
},
{
name: "電子通知書查詢",
path: "/custom/service?q=m9"
},
{
name: "常見問題",
path: "/custom/service?q=m10"
},
]
},
navList: [{
name: "產品介紹",
path: "/product/introduction",
list: [{
name: "自願醫保計劃",
path: "/vhis/detail"
},
{
name: "投資成份保險",
path: "/vhis?p=endowment"
}
]
{
name: "關於我們",
path: "/profile",
list: [{
name: "有關平安人壽香港",
path: "/profile"
},
{
name: "客戶服務",
path: "/custom/product",
list: [
// {
// name: "客戶服務導航",
// path: "/custom/product"
// },
{
name: "聯絡我們",
path: "/custom/service?q=m1"
},
{
name: "繳付保費",
path: "/custom/service?q=m2"
},
{
name: "保單查詢",
path: "/custom/service?q=m3"
},
{
name: "保單變更",
path: "/custom/service?q=m41"
},
{
name: "理賠申請",
path: "/custom/service?q=m5"
},
{
name: "預約服務",
path: "/custom/service?q=m6"
},
{
name: "投訴受理",
path: "/custom/service?q=m7"
},
{
name: "常用表格",
path: "/custom/service?q=m8"
},
{
name: "電子通知書查詢",
path: "/custom/service?q=m9"
},
{
name: "常見問題",
path: "/custom/service?q=m10"
},
]
name: "公司活動",
path: "/company/events"
}, {
name: "新聞中心",
path: "/news/list"
},
{
name: "關於我們",
path: "/profile",
list: [{
name: "有關平安人壽香港",
path: "/profile"
},
{
name: "公司活動",
path: "/company/events"
}, {
name: "新聞中心",
path: "/news/list"
},
{
name: "企業社會責任",
path: "/responsibility"
},
{
name: "獎項殊榮",
path: "/awards"
}
]
name: "企業社會責任",
path: "/responsibility"
},
{
name: "加入我們",
path: "/join/us",
list: [{
name: "企業文化",
path: "/corporate/culture"
},
{
name: "事業發展機會",
path: "/career/opportunities"
},
]
name: "獎項殊榮",
path: "/awards"
}
]
},
{
name: "加入我們",
path: "/join/us",
list: [{
name: "企業文化",
path: "/corporate/culture"
},
{
name: "事業發展機會",
path: "/career/opportunities"
},
]
}
]
},
footer: {
......@@ -437,13 +437,13 @@ module.exports = {
contactPlaceholder: "香港號碼/內地號碼",
reservationType: "預約類型",
reservationCandidates: [{
name: "投保諮詢",
value: "投保諮詢"
},
{
name: "代辦保單變更",
value: "代办保单变更"
}
name: "投保諮詢",
value: "投保諮詢"
},
{
name: "代辦保單變更",
value: "代办保单变更"
}
],
reservationRemark: "預約說明",
reservationRemarkPlaceholder: "請簡單說明您想要咨詢的產品或業務",
......@@ -495,71 +495,71 @@ module.exports = {
head4: "附件",
download: "下載文檔",
form: [{
type: "繳費類",
list: [{
name: "「電子入賬服務」及銀行戶口<br>直接付款授權申請",
desc: "申請設立「 電子入賬服務」 及銀行戶口<br>直接付款授權時須提供",
download: "./doc/「電子入賬服務」及銀行戶口直接付款授權申請.pdf",
},
{
name: "信用卡戶口直接付款授權書",
desc: "申請信用卡戶口直接付款授權時須提供",
download: "./doc/信用卡戶口直接付款授權書.pdf",
}
]
type: "繳費類",
list: [{
name: "「電子入賬服務」及銀行戶口<br>直接付款授權申請",
desc: "申請設立「 電子入賬服務」 及銀行戶口<br>直接付款授權時須提供",
download: "./doc/「電子入賬服務」及銀行戶口直接付款授權申請.pdf",
},
{
name: "信用卡戶口直接付款授權書",
desc: "申請信用卡戶口直接付款授權時須提供",
download: "./doc/信用卡戶口直接付款授權書.pdf",
}
]
},
{
type: "保單變更類",
list: [{
name: "保險合同解除申請書",
desc: "退保、冷靜期退保業務適用",
download: "./doc/保險合同解除申請書.pdf",
},
{
name: "保險合同變更申請書( 保單貸款還款類)",
desc: "保單貸款、還款業務適用",
download: "./doc/保險合同變更申請書( 保單貸款還款類).pdf",
},
{
name: "保險合同變更申請書( 保險合同計劃變更類)",
desc: "加保、減保、新增附險、復效等業務適用",
download: "./doc/保險合同變更申請書( 保險合同計劃變更類).pdf",
},
{
type: "保單變更類",
list: [{
name: "保險合同解除申請書",
desc: "退保、冷靜期退保業務適用",
download: "./doc/保險合同解除申請書.pdf",
},
{
name: "保險合同變更申請書( 保單貸款還款類)",
desc: "保單貸款、還款業務適用",
download: "./doc/保險合同變更申請書( 保單貸款還款類).pdf",
},
{
name: "保險合同變更申請書( 保險合同計劃變更類)",
desc: "加保、減保、新增附險、復效等業務適用",
download: "./doc/保險合同變更申請書( 保險合同計劃變更類).pdf",
},
{
name: "保險合同變更申請書( 客戶信息變更類)",
desc: "基本資訊變更業務適用",
download: "./doc/保險合同變更申請書( 客戶權益變更類).pdf",
},
{
name: "保險合同變更申請書( 客戶權益變更類)",
desc: "交費方式、自墊選擇權變更、補發等業務適用",
download: "./doc/保險合同變更申請書( 客戶信息變更類).pdf",
},
{
name: "授權委托書",
desc: "委托他人代辦時須提供",
download: "./doc/授權委托書.pdf",
},
{
name: "稅收聲明",
desc: "CRS要求",
download: "./doc/稅收聲明.pdf",
},
{
name: "健康告知",
desc: "須二次核保的業務須提供",
download: "./doc/健康告知.pdf",
}
]
name: "保險合同變更申請書( 客戶信息變更類)",
desc: "基本資訊變更業務適用",
download: "./doc/保險合同變更申請書( 客戶權益變更類).pdf",
},
{
type: "理賠類",
list: [{
name: "理賠申請書",
desc: "紙質申請的應備文件",
download: "./doc/理賠申請書.pdf",
}]
name: "保險合同變更申請書( 客戶權益變更類)",
desc: "交費方式、自墊選擇權變更、補發等業務適用",
download: "./doc/保險合同變更申請書( 客戶信息變更類).pdf",
},
{
name: "授權委托書",
desc: "委托他人代辦時須提供",
download: "./doc/授權委托書.pdf",
},
{
name: "稅收聲明",
desc: "CRS要求",
download: "./doc/稅收聲明.pdf",
},
{
name: "健康告知",
desc: "須二次核保的業務須提供",
download: "./doc/健康告知.pdf",
}
]
},
{
type: "理賠類",
list: [{
name: "理賠申請書",
desc: "紙質申請的應備文件",
download: "./doc/理賠申請書.pdf",
}]
},
]
},
policyChangeGuide: {
......@@ -573,100 +573,100 @@ module.exports = {
head5: "應備材料",
download: "下載文檔",
form: [{
project: "退保",
content: "在冷靜期後解除合同,公司將退還保單現金價值或未滿期凈保費。(待產品精算確認)",
applicant: "投保人",
receptionTime: "保單效力終止前",
materialList: [{
name: "保險單",
},
{
name: "申請書",
type: 1,
},
{
name: "投保人有效身份證件",
},
{
name: "存折银行卡相关",
}
],
project: "退保",
content: "在冷靜期後解除合同,公司將退還保單現金價值或未滿期凈保費。(待產品精算確認)",
applicant: "投保人",
receptionTime: "保單效力終止前",
materialList: [{
name: "保險單",
},
{
project: "冷靜期退保",
content: "在冷靜期內提出解除合同,公司會無息退還全部保費",
applicant: "投保人",
receptionTime: "冷靜期結束前",
materialList: [{
name: "保險單",
},
{
name: "申請書",
type: 1,
},
{
name: "投保人有效身份證件",
},
{
name: "存折银行卡相关",
},
{
name: "首期保費發票",
}
],
name: "申請書",
type: 1,
},
{
project: "客戶資料變更",
projectType: 1,
path: "/custom/service",
query: {
q: "m43"
},
content: "投保人、受保人、受益人的個人信息變更",
applicant: "投保人",
receptionTime: "不限",
materialList: [{
name: "申請書",
type: 1,
},
{
name: "必要的證明材料",
}
],
name: "投保人有效身份證件",
},
{
project: "聯系方式變更",
projectType: 1,
path: "/custom/service",
query: {
q: "m42"
},
content: "地址、電話等信息的變更",
applicant: "投保人",
receptionTime: "不限",
materialList: [{
name: "申請書",
type: 1,
},
{
name: "投保人有效身份證件",
}
],
name: "存折银行卡相关",
}
],
},
{
project: "冷靜期退保",
content: "在冷靜期內提出解除合同,公司會無息退還全部保費",
applicant: "投保人",
receptionTime: "冷靜期結束前",
materialList: [{
name: "保險單",
},
{
name: "申請書",
type: 1,
},
{
name: "投保人有效身份證件",
},
{
name: "存折银行卡相关",
},
{
name: "首期保費發票",
}
],
},
{
project: "客戶資料變更",
projectType: 1,
path: "/custom/service",
query: {
q: "m43"
},
content: "投保人、受保人、受益人的個人信息變更",
applicant: "投保人",
receptionTime: "不限",
materialList: [{
name: "申請書",
type: 1,
},
{
name: "必要的證明材料",
}
],
},
{
project: "聯系方式變更",
projectType: 1,
path: "/custom/service",
query: {
q: "m42"
},
content: "地址、電話等信息的變更",
applicant: "投保人",
receptionTime: "不限",
materialList: [{
name: "申請書",
type: 1,
},
{
project: "交費方式變更",
content: "更改保單的續期交費方式或交費賬號",
applicant: "投保人",
receptionTime: "保單交費期滿前",
materialList: [{
name: "申請書",
type: 1,
},
{
name: "保險單",
}
],
name: "投保人有效身份證件",
}
],
},
{
project: "交費方式變更",
content: "更改保單的續期交費方式或交費賬號",
applicant: "投保人",
receptionTime: "保單交費期滿前",
materialList: [{
name: "申請書",
type: 1,
},
{
name: "保險單",
}
],
},
]
},
policyChangeContact: {
......@@ -730,14 +730,18 @@ module.exports = {
}
},
eCorrespondenceEnquiry: {
PolicyNumber:"保單號碼",
TypeOfCorrespondence:"通知書類型",
SentOutDate:"發出時間",
DownloadLink:"下載鏈接",
Status:"狀况",
PolicyNumber: "保單號碼",
TypeOfCorrespondence: "通知書類型",
SentOutDate: "發出時間",
DownloadLink: "下載鏈接",
Status: "狀况",
letterName: "保單繕發及冷靜期通知書",
DownloadDoc: "下載文檔",
Read: "已閱讀",
UnRead: "未閱讀"
},
FAQ:{
title:"常見問題",
FAQ: {
title: "常見問題",
},
customService: {
name: "客戶服務",
......@@ -888,7 +892,7 @@ module.exports = {
tip5: "聯絡客服",
tip6: "保單已簽收,如需查詢保單資訊或下載電子保單可點擊",
tip7: "保單查詢",
notice:"謹此確認本人/我們已收到中國平安人壽保險(香港)有限公司的保單,並已細閱保單細節內容(包括但不限於保單冷静期權益)。",
notice: "謹此確認本人/我們已收到中國平安人壽保險(香港)有限公司的保單,並已細閱保單細節內容(包括但不限於保單冷静期權益)。",
agreeTips: "請下載並细閱“保單繕發及冷靜期通知書”及“電子保單”"
},
clarms: {
......
......@@ -736,6 +736,10 @@ module.exports = {
SentOutDate: "发出时间",
DownloadLink: "下载链接",
Status: "状况",
letterName : "保单缮发及冷静期通知",
DownloadDoc : "下載文檔",
Read : "已阅读",
UnRead : "未阅读"
},
FAQ: {
title: "常见问题",
......
......@@ -138,7 +138,7 @@ export default {
for (let index = 0; index < this.policyDetail.policyAcknowledges.length; index++) {
let policyAcknowledge = this.policyDetail.policyAcknowledges[index];
switch (policyAcknowledge.letterNo) {
switch (policyAcknowledge.letterType) {
case "1":
this.policyDetail.letterNo1Id = policyAcknowledge.recordId;
break;
......
......@@ -31,10 +31,10 @@ export default {
default: "download"
},
},
name: "PolicyHeadList",
name: "LetterListHeader",
data() {
return {
myPolicyList: [],
contentList: [],
maxShow: 2,
selectPolicyCode: "",
selectPolicyCodes: {},
......@@ -45,9 +45,6 @@ export default {
}
},
computed: {
...mapState({
policyList: state => state.policyList
}),
lan() {
return this.$i18n.locale;
},
......@@ -56,6 +53,15 @@ export default {
},
},
methods: {
initData() {
httpPost({
url: api.letterRecordList,
sid: true
}).then(res => {
this.contentList = res;
this.$set(this, 'contentList', res);
});
},
onShowTipsOverHandler(event, item, index) {
let child = event.currentTarget.childNodes[0];
child.style.display = "block";
......@@ -86,16 +92,16 @@ export default {
case 1:
break;
// 通知书类型
// 通知书类型
case 2:
break;
// 发出时间
// 发出时间
case 3:
break;
// 状况
// 状况
case 5:
break;
......@@ -112,11 +118,41 @@ export default {
*/
onCheckConfirmHandler(evt) {
console.log("checkList evt :", evt);
},
changeLetterType(letterNo) {
return this.i18n.eCorrespondenceEnquiry.LetterMap[letterNo];
},
toContactUs() {
this.$router.push({
path: "/custom/service",
query: {
q: "m1"
}
});
},
downloadPolicy(item) {
httpPost({
url: api.getDownloadPath,
sid: true,
data: {
policyCode: item.bizNo,
recordId: item.recordId
}
}).then(res => {
if (res) {
let url = requestDomain() + api.downloadPolicy + "/" + res;
window.open(url);
} else {
this.showDownloadError = true;
}
});
}
},
components: {
Modal2Comp,
FilterComp
},
mounted() {},
mounted() {
this.initData();
},
}
......
......@@ -25,30 +25,30 @@
</div>
</div>
<div class="table-content" :class="{hide : hide}">
<template v-if="myPolicyList">
<div v-for="(item,index) in 5" :key="index">
<template v-if="contentList && contentList.length > 0">
<div v-for="(item,index) in contentList" :key="index">
<template v-if="index < maxShow">
<div class="data-line" @click="handlePolicySelect(item,index)">
<div class="td w1">P388888880772</div>
<div class="td w1">保單繕發及冷靜期通知書</div>
<div class="td w2">2020-3-1</div>
<div class="td w2 pointer">
<div class="download" @mouseover="onShowTipsOverHandler($event,item,index)" @mouseout="onShowTipsOutHandler($event,item,index)" @click="downloadPolicy(item)">
<div class="data-line">
<div class="td w1">{{item.bizNo}}</div>
<div class="td w1">{{$t("eCorrespondenceEnquiry.letterName")}}</div>
<div class="td w2">{{item.printTime.split(" ")[0]}}</div>
<div class="td w2 pointer" @click="downloadPolicy(item)">
<div class="download" @mouseover="onShowTipsOverHandler($event,item,index)" @mouseout="onShowTipsOutHandler($event,item,index)" >
<div class="download-tips">
<div class="cont">{{$t('customService.insuranceQuery.downloadClick')}}</div>
</div>
<img class="icon-download" src="@/assets/images/insurance-query/icon-down-load.png" alt="">
</div>
下載文檔
{{$t("eCorrespondenceEnquiry.DownloadDoc")}}
</div>
<div class="td w2">已閱讀</div>
<div class="td w2">{{item.isRead == "N" ? $t('eCorrespondenceEnquiry.UnRead') : $t('eCorrespondenceEnquiry.Read')}}</div>
</div>
<div class="separator-h" v-if="index < myPolicyList.length - 1 && index < maxShow - 1"></div>
<div class="separator-h" v-if="index < contentList.length - 1 && index < maxShow - 1"></div>
</template>
</div>
<template v-if="!policyList || maxShow < policyList.length">
<template v-if="maxShow < contentList.length">
<div class="separator-h"></div>
<div class="data-line show-more-btn" @click="maxShow = policyList.length">{{$t('customService.insuranceQuery.showMore')}}</div>
<div class="data-line show-more-btn" @click="maxShow = contentList.length">{{$t('customService.insuranceQuery.showMore')}}</div>
</template>
</template>
......