Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5840b74d
authored
2020-05-09 19:41:48 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
电子函对接完成
1 parent
584d3b86
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
83 additions
and
33 deletions
src/api/api.js
src/api/fetch-api.js
src/common/lang/en.js
src/common/lang/tc.js
src/common/lang/zh.js
src/components/vhis-modal/vhis-modal.js
src/pages/custom-service/components/e-correspondence-head-list.js
src/pages/custom-service/components/e-correspondence-head-list.vue
src/api/api.js
View file @
5840b74
...
...
@@ -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相关
...
...
src/api/fetch-api.js
View file @
5840b74
...
...
@@ -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
...
...
src/common/lang/en.js
View file @
5840b74
...
...
@@ -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"
,
...
...
src/common/lang/tc.js
View file @
5840b74
...
...
@@ -730,14 +730,18 @@ module.exports = {
}
},
eCorrespondenceEnquiry
:
{
PolicyNumber
:
"保單號碼"
,
TypeOfCorrespondence
:
"通知書類型"
,
SentOutDate
:
"發出時間"
,
DownloadLink
:
"下載鏈接"
,
Status
:
"狀况"
,
},
FAQ
:{
title
:
"常見問題"
,
PolicyNumber
:
"保單號碼"
,
TypeOfCorrespondence
:
"通知書類型"
,
SentOutDate
:
"發出時間"
,
DownloadLink
:
"下載鏈接"
,
Status
:
"狀况"
,
letterName
:
"保單繕發及冷靜期通知書"
,
DownloadDoc
:
"下載文檔"
,
Read
:
"已閱讀"
,
UnRead
:
"未閱讀"
},
FAQ
:
{
title
:
"常見問題"
,
},
customService
:
{
name
:
"客戶服務"
,
...
...
@@ -888,7 +892,7 @@ module.exports = {
tip5
:
"聯絡客服"
,
tip6
:
"保單已簽收,如需查詢保單資訊或下載電子保單可點擊"
,
tip7
:
"保單查詢"
,
notice
:
"謹此確認本人/我們已收到中國平安人壽保險(香港)有限公司的保單,並已細閱保單細節內容(包括但不限於保單冷静期權益)。"
,
notice
:
"謹此確認本人/我們已收到中國平安人壽保險(香港)有限公司的保單,並已細閱保單細節內容(包括但不限於保單冷静期權益)。"
,
agreeTips
:
"請下載並细閱“保單繕發及冷靜期通知書”及“電子保單”"
},
clarms
:
{
...
...
src/common/lang/zh.js
View file @
5840b74
...
...
@@ -736,6 +736,10 @@ module.exports = {
SentOutDate
:
"发出时间"
,
DownloadLink
:
"下载链接"
,
Status
:
"状况"
,
letterName
:
"保单缮发及冷静期通知"
,
DownloadDoc
:
"下載文檔"
,
Read
:
"已阅读"
,
UnRead
:
"未阅读"
},
FAQ
:
{
title
:
"常见问题"
,
...
...
src/components/vhis-modal/vhis-modal.js
View file @
5840b74
...
...
@@ -138,7 +138,7 @@ export default {
for
(
let
index
=
0
;
index
<
this
.
policyDetail
.
policyAcknowledges
.
length
;
index
++
)
{
let
policyAcknowledge
=
this
.
policyDetail
.
policyAcknowledges
[
index
];
switch
(
policyAcknowledge
.
letter
No
)
{
switch
(
policyAcknowledge
.
letter
Type
)
{
case
"1"
:
this
.
policyDetail
.
letterNo1Id
=
policyAcknowledge
.
recordId
;
break
;
...
...
src/pages/custom-service/components/e-correspondence-head-list.js
View file @
5840b74
...
...
@@ -31,10 +31,10 @@ export default {
default
:
"download"
},
},
name
:
"
PolicyHeadList
"
,
name
:
"
LetterListHeader
"
,
data
()
{
return
{
myPolicy
List
:
[],
content
List
:
[],
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"
;
...
...
@@ -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
();
},
}
...
...
src/pages/custom-service/components/e-correspondence-head-list.vue
View file @
5840b74
...
...
@@ -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
<
myPolicy
List
.
length
-
1
&&
index
< maxShow
-
1
"
></div>
<div
class=
"separator-h"
v-if=
"index
<
content
List
.
length
-
1
&&
index
< maxShow
-
1
"
></div>
</
template
>
</div>
<
template
v-if=
"
!policyList || maxShow < policy
List.length"
>
<
template
v-if=
"
maxShow < content
List.length"
>
<div
class=
"separator-h"
></div>
<div
class=
"data-line show-more-btn"
@
click=
"maxShow =
policy
List.length"
>
{{
$t
(
'customService.insuranceQuery.showMore'
)
}}
</div>
<div
class=
"data-line show-more-btn"
@
click=
"maxShow =
content
List.length"
>
{{
$t
(
'customService.insuranceQuery.showMore'
)
}}
</div>
</
template
>
</template>
...
...
Please
register
or
sign in
to post a comment