5840b74d by joe

电子函对接完成

1 parent 584d3b86
...@@ -75,6 +75,8 @@ module.exports = { ...@@ -75,6 +75,8 @@ module.exports = {
75 clarmsCustomerList: "/pingan_hklife_webapi/policy/clarmsCustomerList", 75 clarmsCustomerList: "/pingan_hklife_webapi/policy/clarmsCustomerList",
76 // 理赔报案 76 // 理赔报案
77 clarmsRegisterCase: "/pingan_hklife_webapi/policy/clarmsRegisterCase", 77 clarmsRegisterCase: "/pingan_hklife_webapi/policy/clarmsRegisterCase",
78 // 用户电子函列表
79 letterRecordList: "/pingan_hklife_webapi/policy/letterRecordList",
78 80
79 81
80 // cms相关 82 // cms相关
......
...@@ -51,10 +51,10 @@ function encryptContent(obj) { ...@@ -51,10 +51,10 @@ function encryptContent(obj) {
51 // let base = COM.baseUrl; 51 // let base = COM.baseUrl;
52 // console.log(process.env); 52 // console.log(process.env);
53 let baseURL = process.env.VUE_APP_BASE_URL; 53 let baseURL = process.env.VUE_APP_BASE_URL;
54 // baseURL = "http://localhost:9101"; 54 baseURL = "http://localhost:9101";
55 if (window.location.href.indexOf("192.168") != -1) { 55 // if (window.location.href.indexOf("192.168") != -1) {
56 baseURL = "https://ow.go.qudone.com"; 56 // baseURL = "https://ow.go.qudone.com";
57 } 57 // }
58 const axios = axiosIns.create({ 58 const axios = axiosIns.create({
59 baseURL: baseURL, 59 baseURL: baseURL,
60 timeout: 10000 60 timeout: 10000
......
...@@ -744,6 +744,10 @@ module.exports = { ...@@ -744,6 +744,10 @@ module.exports = {
744 SentOutDate: "Sent Out Date", 744 SentOutDate: "Sent Out Date",
745 DownloadLink: "Download link", 745 DownloadLink: "Download link",
746 Status: "Status", 746 Status: "Status",
747 letterName : "Notice of Policy Issuance and Cooling-off Period",
748 DownloadDoc : "Download document",
749 Read : "Read",
750 UnRead : "Unread"
747 }, 751 },
748 customService: { 752 customService: {
749 name: "Customer service", 753 name: "Customer service",
......
...@@ -30,136 +30,136 @@ module.exports = { ...@@ -30,136 +30,136 @@ module.exports = {
30 name: "登入", 30 name: "登入",
31 path: "/login", 31 path: "/login",
32 list: [{ 32 list: [{
33 name: "註冊", 33 name: "註冊",
34 path: "/register", 34 path: "/register",
35 type: "noAuth", 35 type: "noAuth",
36 value: "" 36 value: ""
37 }, { 37 }, {
38 name: "登入", 38 name: "登入",
39 path: "", 39 path: "",
40 type: "noAuth", 40 type: "noAuth",
41 value: "login" 41 value: "login"
42 }, 42 },
43 // { 43 // {
44 // name: "修改密碼", 44 // name: "修改密碼",
45 // path: "/password/reset", 45 // path: "/password/reset",
46 // type: "auth", 46 // type: "auth",
47 // value: "" 47 // value: ""
48 // }, 48 // },
49 // {
50 // name: "個人信息",
51 // path: "/infomation/improve",
52 // type: "auth",
53 // value: ""
54 // },
55 {
56 name: "登出",
57 path: "",
58 type: "auth",
59 value: "logout"
60 }
61 ]
62 },
63 navList: [{
64 name: "產品介紹",
65 path: "/product/introduction",
66 list: [{
67 name: "自願醫保計劃",
68 path: "/vhis/detail"
69 },
70 {
71 name: "投資成份保險",
72 path: "/vhis?p=endowment"
73 }
74 ]
75 },
76 {
77 name: "客戶服務",
78 path: "/custom/product",
79 list: [
49 // { 80 // {
50 // name: "個人信息", 81 // name: "客戶服務導航",
51 // path: "/infomation/improve", 82 // path: "/custom/product"
52 // type: "auth",
53 // value: ""
54 // }, 83 // },
55 { 84 {
56 name: "登出", 85 name: "聯絡我們",
57 path: "", 86 path: "/custom/service?q=m1"
58 type: "auth", 87 },
59 value: "logout" 88 {
60 } 89 name: "繳付保費",
90 path: "/custom/service?q=m2"
91 },
92 {
93 name: "保單查詢",
94 path: "/custom/service?q=m3"
95 },
96 {
97 name: "保單變更",
98 path: "/custom/service?q=m41"
99 },
100 {
101 name: "理賠申請",
102 path: "/custom/service?q=m5"
103 },
104 {
105 name: "預約服務",
106 path: "/custom/service?q=m6"
107 },
108 {
109 name: "投訴受理",
110 path: "/custom/service?q=m7"
111 },
112 {
113 name: "常用表格",
114 path: "/custom/service?q=m8"
115 },
116 {
117 name: "電子通知書查詢",
118 path: "/custom/service?q=m9"
119 },
120 {
121 name: "常見問題",
122 path: "/custom/service?q=m10"
123 },
61 ] 124 ]
62 }, 125 },
63 navList: [{ 126 {
64 name: "產品介紹", 127 name: "關於我們",
65 path: "/product/introduction", 128 path: "/profile",
66 list: [{ 129 list: [{
67 name: "自願醫保計劃", 130 name: "有關平安人壽香港",
68 path: "/vhis/detail" 131 path: "/profile"
69 },
70 {
71 name: "投資成份保險",
72 path: "/vhis?p=endowment"
73 }
74 ]
75 }, 132 },
76 { 133 {
77 name: "客戶服務", 134 name: "公司活動",
78 path: "/custom/product", 135 path: "/company/events"
79 list: [ 136 }, {
80 // { 137 name: "新聞中心",
81 // name: "客戶服務導航", 138 path: "/news/list"
82 // path: "/custom/product"
83 // },
84 {
85 name: "聯絡我們",
86 path: "/custom/service?q=m1"
87 },
88 {
89 name: "繳付保費",
90 path: "/custom/service?q=m2"
91 },
92 {
93 name: "保單查詢",
94 path: "/custom/service?q=m3"
95 },
96 {
97 name: "保單變更",
98 path: "/custom/service?q=m41"
99 },
100 {
101 name: "理賠申請",
102 path: "/custom/service?q=m5"
103 },
104 {
105 name: "預約服務",
106 path: "/custom/service?q=m6"
107 },
108 {
109 name: "投訴受理",
110 path: "/custom/service?q=m7"
111 },
112 {
113 name: "常用表格",
114 path: "/custom/service?q=m8"
115 },
116 {
117 name: "電子通知書查詢",
118 path: "/custom/service?q=m9"
119 },
120 {
121 name: "常見問題",
122 path: "/custom/service?q=m10"
123 },
124 ]
125 }, 139 },
126 { 140 {
127 name: "關於我們", 141 name: "企業社會責任",
128 path: "/profile", 142 path: "/responsibility"
129 list: [{
130 name: "有關平安人壽香港",
131 path: "/profile"
132 },
133 {
134 name: "公司活動",
135 path: "/company/events"
136 }, {
137 name: "新聞中心",
138 path: "/news/list"
139 },
140 {
141 name: "企業社會責任",
142 path: "/responsibility"
143 },
144 {
145 name: "獎項殊榮",
146 path: "/awards"
147 }
148 ]
149 }, 143 },
150 { 144 {
151 name: "加入我們", 145 name: "獎項殊榮",
152 path: "/join/us", 146 path: "/awards"
153 list: [{
154 name: "企業文化",
155 path: "/corporate/culture"
156 },
157 {
158 name: "事業發展機會",
159 path: "/career/opportunities"
160 },
161 ]
162 } 147 }
148 ]
149 },
150 {
151 name: "加入我們",
152 path: "/join/us",
153 list: [{
154 name: "企業文化",
155 path: "/corporate/culture"
156 },
157 {
158 name: "事業發展機會",
159 path: "/career/opportunities"
160 },
161 ]
162 }
163 ] 163 ]
164 }, 164 },
165 footer: { 165 footer: {
...@@ -437,13 +437,13 @@ module.exports = { ...@@ -437,13 +437,13 @@ module.exports = {
437 contactPlaceholder: "香港號碼/內地號碼", 437 contactPlaceholder: "香港號碼/內地號碼",
438 reservationType: "預約類型", 438 reservationType: "預約類型",
439 reservationCandidates: [{ 439 reservationCandidates: [{
440 name: "投保諮詢", 440 name: "投保諮詢",
441 value: "投保諮詢" 441 value: "投保諮詢"
442 }, 442 },
443 { 443 {
444 name: "代辦保單變更", 444 name: "代辦保單變更",
445 value: "代办保单变更" 445 value: "代办保单变更"
446 } 446 }
447 ], 447 ],
448 reservationRemark: "預約說明", 448 reservationRemark: "預約說明",
449 reservationRemarkPlaceholder: "請簡單說明您想要咨詢的產品或業務", 449 reservationRemarkPlaceholder: "請簡單說明您想要咨詢的產品或業務",
...@@ -495,71 +495,71 @@ module.exports = { ...@@ -495,71 +495,71 @@ module.exports = {
495 head4: "附件", 495 head4: "附件",
496 download: "下載文檔", 496 download: "下載文檔",
497 form: [{ 497 form: [{
498 type: "繳費類", 498 type: "繳費類",
499 list: [{ 499 list: [{
500 name: "「電子入賬服務」及銀行戶口<br>直接付款授權申請", 500 name: "「電子入賬服務」及銀行戶口<br>直接付款授權申請",
501 desc: "申請設立「 電子入賬服務」 及銀行戶口<br>直接付款授權時須提供", 501 desc: "申請設立「 電子入賬服務」 及銀行戶口<br>直接付款授權時須提供",
502 download: "./doc/「電子入賬服務」及銀行戶口直接付款授權申請.pdf", 502 download: "./doc/「電子入賬服務」及銀行戶口直接付款授權申請.pdf",
503 }, 503 },
504 { 504 {
505 name: "信用卡戶口直接付款授權書", 505 name: "信用卡戶口直接付款授權書",
506 desc: "申請信用卡戶口直接付款授權時須提供", 506 desc: "申請信用卡戶口直接付款授權時須提供",
507 download: "./doc/信用卡戶口直接付款授權書.pdf", 507 download: "./doc/信用卡戶口直接付款授權書.pdf",
508 } 508 }
509 ] 509 ]
510 },
511 {
512 type: "保單變更類",
513 list: [{
514 name: "保險合同解除申請書",
515 desc: "退保、冷靜期退保業務適用",
516 download: "./doc/保險合同解除申請書.pdf",
517 },
518 {
519 name: "保險合同變更申請書( 保單貸款還款類)",
520 desc: "保單貸款、還款業務適用",
521 download: "./doc/保險合同變更申請書( 保單貸款還款類).pdf",
522 },
523 {
524 name: "保險合同變更申請書( 保險合同計劃變更類)",
525 desc: "加保、減保、新增附險、復效等業務適用",
526 download: "./doc/保險合同變更申請書( 保險合同計劃變更類).pdf",
510 }, 527 },
511 { 528 {
512 type: "保單變更類", 529 name: "保險合同變更申請書( 客戶信息變更類)",
513 list: [{ 530 desc: "基本資訊變更業務適用",
514 name: "保險合同解除申請書", 531 download: "./doc/保險合同變更申請書( 客戶權益變更類).pdf",
515 desc: "退保、冷靜期退保業務適用",
516 download: "./doc/保險合同解除申請書.pdf",
517 },
518 {
519 name: "保險合同變更申請書( 保單貸款還款類)",
520 desc: "保單貸款、還款業務適用",
521 download: "./doc/保險合同變更申請書( 保單貸款還款類).pdf",
522 },
523 {
524 name: "保險合同變更申請書( 保險合同計劃變更類)",
525 desc: "加保、減保、新增附險、復效等業務適用",
526 download: "./doc/保險合同變更申請書( 保險合同計劃變更類).pdf",
527 },
528 {
529 name: "保險合同變更申請書( 客戶信息變更類)",
530 desc: "基本資訊變更業務適用",
531 download: "./doc/保險合同變更申請書( 客戶權益變更類).pdf",
532 },
533 {
534 name: "保險合同變更申請書( 客戶權益變更類)",
535 desc: "交費方式、自墊選擇權變更、補發等業務適用",
536 download: "./doc/保險合同變更申請書( 客戶信息變更類).pdf",
537 },
538 {
539 name: "授權委托書",
540 desc: "委托他人代辦時須提供",
541 download: "./doc/授權委托書.pdf",
542 },
543 {
544 name: "稅收聲明",
545 desc: "CRS要求",
546 download: "./doc/稅收聲明.pdf",
547 },
548 {
549 name: "健康告知",
550 desc: "須二次核保的業務須提供",
551 download: "./doc/健康告知.pdf",
552 }
553 ]
554 }, 532 },
555 { 533 {
556 type: "理賠類", 534 name: "保險合同變更申請書( 客戶權益變更類)",
557 list: [{ 535 desc: "交費方式、自墊選擇權變更、補發等業務適用",
558 name: "理賠申請書", 536 download: "./doc/保險合同變更申請書( 客戶信息變更類).pdf",
559 desc: "紙質申請的應備文件",
560 download: "./doc/理賠申請書.pdf",
561 }]
562 }, 537 },
538 {
539 name: "授權委托書",
540 desc: "委托他人代辦時須提供",
541 download: "./doc/授權委托書.pdf",
542 },
543 {
544 name: "稅收聲明",
545 desc: "CRS要求",
546 download: "./doc/稅收聲明.pdf",
547 },
548 {
549 name: "健康告知",
550 desc: "須二次核保的業務須提供",
551 download: "./doc/健康告知.pdf",
552 }
553 ]
554 },
555 {
556 type: "理賠類",
557 list: [{
558 name: "理賠申請書",
559 desc: "紙質申請的應備文件",
560 download: "./doc/理賠申請書.pdf",
561 }]
562 },
563 ] 563 ]
564 }, 564 },
565 policyChangeGuide: { 565 policyChangeGuide: {
...@@ -573,100 +573,100 @@ module.exports = { ...@@ -573,100 +573,100 @@ module.exports = {
573 head5: "應備材料", 573 head5: "應備材料",
574 download: "下載文檔", 574 download: "下載文檔",
575 form: [{ 575 form: [{
576 project: "退保", 576 project: "退保",
577 content: "在冷靜期後解除合同,公司將退還保單現金價值或未滿期凈保費。(待產品精算確認)", 577 content: "在冷靜期後解除合同,公司將退還保單現金價值或未滿期凈保費。(待產品精算確認)",
578 applicant: "投保人", 578 applicant: "投保人",
579 receptionTime: "保單效力終止前", 579 receptionTime: "保單效力終止前",
580 materialList: [{ 580 materialList: [{
581 name: "保險單", 581 name: "保險單",
582 },
583 {
584 name: "申請書",
585 type: 1,
586 },
587 {
588 name: "投保人有效身份證件",
589 },
590 {
591 name: "存折银行卡相关",
592 }
593 ],
594 }, 582 },
595 { 583 {
596 project: "冷靜期退保", 584 name: "申請書",
597 content: "在冷靜期內提出解除合同,公司會無息退還全部保費", 585 type: 1,
598 applicant: "投保人",
599 receptionTime: "冷靜期結束前",
600 materialList: [{
601 name: "保險單",
602 },
603 {
604 name: "申請書",
605 type: 1,
606 },
607 {
608 name: "投保人有效身份證件",
609 },
610 {
611 name: "存折银行卡相关",
612 },
613 {
614 name: "首期保費發票",
615 }
616 ],
617 }, 586 },
618 { 587 {
619 project: "客戶資料變更", 588 name: "投保人有效身份證件",
620 projectType: 1,
621 path: "/custom/service",
622 query: {
623 q: "m43"
624 },
625 content: "投保人、受保人、受益人的個人信息變更",
626 applicant: "投保人",
627 receptionTime: "不限",
628 materialList: [{
629 name: "申請書",
630 type: 1,
631 },
632 {
633 name: "必要的證明材料",
634 }
635 ],
636 }, 589 },
637 { 590 {
638 project: "聯系方式變更", 591 name: "存折银行卡相关",
639 projectType: 1, 592 }
640 path: "/custom/service", 593 ],
641 query: { 594 },
642 q: "m42" 595 {
643 }, 596 project: "冷靜期退保",
644 content: "地址、電話等信息的變更", 597 content: "在冷靜期內提出解除合同,公司會無息退還全部保費",
645 applicant: "投保人", 598 applicant: "投保人",
646 receptionTime: "不限", 599 receptionTime: "冷靜期結束前",
647 materialList: [{ 600 materialList: [{
648 name: "申請書", 601 name: "保險單",
649 type: 1, 602 },
650 }, 603 {
651 { 604 name: "申請書",
652 name: "投保人有效身份證件", 605 type: 1,
653 } 606 },
654 ], 607 {
608 name: "投保人有效身份證件",
609 },
610 {
611 name: "存折银行卡相关",
612 },
613 {
614 name: "首期保費發票",
615 }
616 ],
617 },
618 {
619 project: "客戶資料變更",
620 projectType: 1,
621 path: "/custom/service",
622 query: {
623 q: "m43"
624 },
625 content: "投保人、受保人、受益人的個人信息變更",
626 applicant: "投保人",
627 receptionTime: "不限",
628 materialList: [{
629 name: "申請書",
630 type: 1,
631 },
632 {
633 name: "必要的證明材料",
634 }
635 ],
636 },
637 {
638 project: "聯系方式變更",
639 projectType: 1,
640 path: "/custom/service",
641 query: {
642 q: "m42"
643 },
644 content: "地址、電話等信息的變更",
645 applicant: "投保人",
646 receptionTime: "不限",
647 materialList: [{
648 name: "申請書",
649 type: 1,
655 }, 650 },
656 { 651 {
657 project: "交費方式變更", 652 name: "投保人有效身份證件",
658 content: "更改保單的續期交費方式或交費賬號", 653 }
659 applicant: "投保人", 654 ],
660 receptionTime: "保單交費期滿前", 655 },
661 materialList: [{ 656 {
662 name: "申請書", 657 project: "交費方式變更",
663 type: 1, 658 content: "更改保單的續期交費方式或交費賬號",
664 }, 659 applicant: "投保人",
665 { 660 receptionTime: "保單交費期滿前",
666 name: "保險單", 661 materialList: [{
667 } 662 name: "申請書",
668 ], 663 type: 1,
669 }, 664 },
665 {
666 name: "保險單",
667 }
668 ],
669 },
670 ] 670 ]
671 }, 671 },
672 policyChangeContact: { 672 policyChangeContact: {
...@@ -730,14 +730,18 @@ module.exports = { ...@@ -730,14 +730,18 @@ module.exports = {
730 } 730 }
731 }, 731 },
732 eCorrespondenceEnquiry: { 732 eCorrespondenceEnquiry: {
733 PolicyNumber:"保單號碼", 733 PolicyNumber: "保單號碼",
734 TypeOfCorrespondence:"通知書類型", 734 TypeOfCorrespondence: "通知書類型",
735 SentOutDate:"發出時間", 735 SentOutDate: "發出時間",
736 DownloadLink:"下載鏈接", 736 DownloadLink: "下載鏈接",
737 Status:"狀况", 737 Status: "狀况",
738 letterName: "保單繕發及冷靜期通知書",
739 DownloadDoc: "下載文檔",
740 Read: "已閱讀",
741 UnRead: "未閱讀"
738 }, 742 },
739 FAQ:{ 743 FAQ: {
740 title:"常見問題", 744 title: "常見問題",
741 }, 745 },
742 customService: { 746 customService: {
743 name: "客戶服務", 747 name: "客戶服務",
...@@ -888,7 +892,7 @@ module.exports = { ...@@ -888,7 +892,7 @@ module.exports = {
888 tip5: "聯絡客服", 892 tip5: "聯絡客服",
889 tip6: "保單已簽收,如需查詢保單資訊或下載電子保單可點擊", 893 tip6: "保單已簽收,如需查詢保單資訊或下載電子保單可點擊",
890 tip7: "保單查詢", 894 tip7: "保單查詢",
891 notice:"謹此確認本人/我們已收到中國平安人壽保險(香港)有限公司的保單,並已細閱保單細節內容(包括但不限於保單冷静期權益)。", 895 notice: "謹此確認本人/我們已收到中國平安人壽保險(香港)有限公司的保單,並已細閱保單細節內容(包括但不限於保單冷静期權益)。",
892 agreeTips: "請下載並细閱“保單繕發及冷靜期通知書”及“電子保單”" 896 agreeTips: "請下載並细閱“保單繕發及冷靜期通知書”及“電子保單”"
893 }, 897 },
894 clarms: { 898 clarms: {
......
...@@ -736,6 +736,10 @@ module.exports = { ...@@ -736,6 +736,10 @@ module.exports = {
736 SentOutDate: "发出时间", 736 SentOutDate: "发出时间",
737 DownloadLink: "下载链接", 737 DownloadLink: "下载链接",
738 Status: "状况", 738 Status: "状况",
739 letterName : "保单缮发及冷静期通知",
740 DownloadDoc : "下載文檔",
741 Read : "已阅读",
742 UnRead : "未阅读"
739 }, 743 },
740 FAQ: { 744 FAQ: {
741 title: "常见问题", 745 title: "常见问题",
......
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
138 138
139 for (let index = 0; index < this.policyDetail.policyAcknowledges.length; index++) { 139 for (let index = 0; index < this.policyDetail.policyAcknowledges.length; index++) {
140 let policyAcknowledge = this.policyDetail.policyAcknowledges[index]; 140 let policyAcknowledge = this.policyDetail.policyAcknowledges[index];
141 switch (policyAcknowledge.letterNo) { 141 switch (policyAcknowledge.letterType) {
142 case "1": 142 case "1":
143 this.policyDetail.letterNo1Id = policyAcknowledge.recordId; 143 this.policyDetail.letterNo1Id = policyAcknowledge.recordId;
144 break; 144 break;
......
...@@ -31,10 +31,10 @@ export default { ...@@ -31,10 +31,10 @@ export default {
31 default: "download" 31 default: "download"
32 }, 32 },
33 }, 33 },
34 name: "PolicyHeadList", 34 name: "LetterListHeader",
35 data() { 35 data() {
36 return { 36 return {
37 myPolicyList: [], 37 contentList: [],
38 maxShow: 2, 38 maxShow: 2,
39 selectPolicyCode: "", 39 selectPolicyCode: "",
40 selectPolicyCodes: {}, 40 selectPolicyCodes: {},
...@@ -45,9 +45,6 @@ export default { ...@@ -45,9 +45,6 @@ export default {
45 } 45 }
46 }, 46 },
47 computed: { 47 computed: {
48 ...mapState({
49 policyList: state => state.policyList
50 }),
51 lan() { 48 lan() {
52 return this.$i18n.locale; 49 return this.$i18n.locale;
53 }, 50 },
...@@ -56,6 +53,15 @@ export default { ...@@ -56,6 +53,15 @@ export default {
56 }, 53 },
57 }, 54 },
58 methods: { 55 methods: {
56 initData() {
57 httpPost({
58 url: api.letterRecordList,
59 sid: true
60 }).then(res => {
61 this.contentList = res;
62 this.$set(this, 'contentList', res);
63 });
64 },
59 onShowTipsOverHandler(event, item, index) { 65 onShowTipsOverHandler(event, item, index) {
60 let child = event.currentTarget.childNodes[0]; 66 let child = event.currentTarget.childNodes[0];
61 child.style.display = "block"; 67 child.style.display = "block";
...@@ -86,16 +92,16 @@ export default { ...@@ -86,16 +92,16 @@ export default {
86 case 1: 92 case 1:
87 93
88 break; 94 break;
89 // 通知书类型 95 // 通知书类型
90 case 2: 96 case 2:
91 97
92 break; 98 break;
93 // 发出时间 99 // 发出时间
94 case 3: 100 case 3:
95 101
96 break; 102 break;
97 103
98 // 状况 104 // 状况
99 case 5: 105 case 5:
100 106
101 break; 107 break;
...@@ -112,11 +118,41 @@ export default { ...@@ -112,11 +118,41 @@ export default {
112 */ 118 */
113 onCheckConfirmHandler(evt) { 119 onCheckConfirmHandler(evt) {
114 console.log("checkList evt :", evt); 120 console.log("checkList evt :", evt);
121 },
122 changeLetterType(letterNo) {
123 return this.i18n.eCorrespondenceEnquiry.LetterMap[letterNo];
124 },
125 toContactUs() {
126 this.$router.push({
127 path: "/custom/service",
128 query: {
129 q: "m1"
130 }
131 });
132 },
133 downloadPolicy(item) {
134 httpPost({
135 url: api.getDownloadPath,
136 sid: true,
137 data: {
138 policyCode: item.bizNo,
139 recordId: item.recordId
140 }
141 }).then(res => {
142 if (res) {
143 let url = requestDomain() + api.downloadPolicy + "/" + res;
144 window.open(url);
145 } else {
146 this.showDownloadError = true;
147 }
148 });
115 } 149 }
116 }, 150 },
117 components: { 151 components: {
118 Modal2Comp, 152 Modal2Comp,
119 FilterComp 153 FilterComp
120 }, 154 },
121 mounted() {}, 155 mounted() {
156 this.initData();
157 },
122 } 158 }
......
...@@ -25,30 +25,30 @@ ...@@ -25,30 +25,30 @@
25 </div> 25 </div>
26 </div> 26 </div>
27 <div class="table-content" :class="{hide : hide}"> 27 <div class="table-content" :class="{hide : hide}">
28 <template v-if="myPolicyList"> 28 <template v-if="contentList && contentList.length > 0">
29 <div v-for="(item,index) in 5" :key="index"> 29 <div v-for="(item,index) in contentList" :key="index">
30 <template v-if="index < maxShow"> 30 <template v-if="index < maxShow">
31 <div class="data-line" @click="handlePolicySelect(item,index)"> 31 <div class="data-line">
32 <div class="td w1">P388888880772</div> 32 <div class="td w1">{{item.bizNo}}</div>
33 <div class="td w1">保單繕發及冷靜期通知書</div> 33 <div class="td w1">{{$t("eCorrespondenceEnquiry.letterName")}}</div>
34 <div class="td w2">2020-3-1</div> 34 <div class="td w2">{{item.printTime.split(" ")[0]}}</div>
35 <div class="td w2 pointer"> 35 <div class="td w2 pointer" @click="downloadPolicy(item)">
36 <div class="download" @mouseover="onShowTipsOverHandler($event,item,index)" @mouseout="onShowTipsOutHandler($event,item,index)" @click="downloadPolicy(item)"> 36 <div class="download" @mouseover="onShowTipsOverHandler($event,item,index)" @mouseout="onShowTipsOutHandler($event,item,index)" >
37 <div class="download-tips"> 37 <div class="download-tips">
38 <div class="cont">{{$t('customService.insuranceQuery.downloadClick')}}</div> 38 <div class="cont">{{$t('customService.insuranceQuery.downloadClick')}}</div>
39 </div> 39 </div>
40 <img class="icon-download" src="@/assets/images/insurance-query/icon-down-load.png" alt=""> 40 <img class="icon-download" src="@/assets/images/insurance-query/icon-down-load.png" alt="">
41 </div> 41 </div>
42 下載文檔 42 {{$t("eCorrespondenceEnquiry.DownloadDoc")}}
43 </div> 43 </div>
44 <div class="td w2">已閱讀</div> 44 <div class="td w2">{{item.isRead == "N" ? $t('eCorrespondenceEnquiry.UnRead') : $t('eCorrespondenceEnquiry.Read')}}</div>
45 </div> 45 </div>
46 <div class="separator-h" v-if="index < myPolicyList.length - 1 && index < maxShow - 1"></div> 46 <div class="separator-h" v-if="index < contentList.length - 1 && index < maxShow - 1"></div>
47 </template> 47 </template>
48 </div> 48 </div>
49 <template v-if="!policyList || maxShow < policyList.length"> 49 <template v-if="maxShow < contentList.length">
50 <div class="separator-h"></div> 50 <div class="separator-h"></div>
51 <div class="data-line show-more-btn" @click="maxShow = policyList.length">{{$t('customService.insuranceQuery.showMore')}}</div> 51 <div class="data-line show-more-btn" @click="maxShow = contentList.length">{{$t('customService.insuranceQuery.showMore')}}</div>
52 </template> 52 </template>
53 </template> 53 </template>
54 54
......