电子函对接完成
Showing
8 changed files
with
73 additions
and
27 deletions
... | @@ -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", | ... | ... |
This diff is collapsed.
Click to expand it.
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment