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
584d3b86
authored
2020-05-09 17:39:16 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
完成回执回销的逻辑对接
1 parent
9838660d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
9 deletions
src/components/vhis-modal/vhis-modal.js
src/components/vhis-modal/vhis-modal.js
View file @
584d3b8
...
...
@@ -85,11 +85,11 @@ export default {
sid
:
true
}).
then
(
res
=>
{
this
.
hadLoadPolicy
=
true
;
if
(
!
res
||
res
.
length
==
0
)
{}
else
{
if
(
!
res
||
res
.
length
==
0
)
{
}
else
{
this
.
$store
.
commit
(
"CACHE_POLICY_LIST"
,
res
);
this
.
checkIfShowPolicy
();
}
}).
catch
(
e
=>
{});
}).
catch
(
e
=>
{
});
}
else
{
this
.
checkIfShowPolicy
();
}
...
...
@@ -130,6 +130,24 @@ export default {
data
:
params
}).
then
(
res
=>
{
this
.
policyDetail
=
res
;
// 两份电子函的ID
this
.
policyDetail
.
agree1
=
false
;
this
.
policyDetail
.
agree2
=
false
;
this
.
policyDetail
.
letterNo1Id
=
""
;
this
.
policyDetail
.
letterNo2Id
=
""
;
for
(
let
index
=
0
;
index
<
this
.
policyDetail
.
policyAcknowledges
.
length
;
index
++
)
{
let
policyAcknowledge
=
this
.
policyDetail
.
policyAcknowledges
[
index
];
switch
(
policyAcknowledge
.
letterNo
)
{
case
"1"
:
this
.
policyDetail
.
letterNo1Id
=
policyAcknowledge
.
recordId
;
break
;
case
"2"
:
this
.
policyDetail
.
letterNo2Id
=
policyAcknowledge
.
recordId
;
break
;
}
}
this
.
policyDetail
.
ymd1
=
""
;
this
.
policyDetail
.
ymd2
=
""
;
this
.
policyDetail
.
ymd3
=
""
;
...
...
@@ -178,7 +196,8 @@ export default {
// this.checkIfShowPolicy();
let
params
=
{
policyCode
:
policyCode
policyCode
:
policyCode
,
recordIds
:
[
this
.
policyDetail
.
letterNo1Id
,
this
.
policyDetail
.
letterNo2Id
]
};
// 回销
httpPost
({
...
...
@@ -207,13 +226,14 @@ export default {
},
// 下载冷静期通知书
downloadPolicy2
()
{
this
.
agree1
=
true
;
this
.
policyDetail
.
agree2
=
true
;
if
(
this
.
policyDetail
)
{
httpPost
({
url
:
api
.
getDownloadPath
,
sid
:
true
,
data
:
{
policyCode
:
this
.
policyDetail
.
policyCode
policyCode
:
this
.
policyDetail
.
policyCode
,
recordId
:
this
.
policyDetail
.
letterNo2Id
}
}).
then
(
res
=>
{
if
(
res
)
{
...
...
@@ -225,15 +245,16 @@ export default {
});
}
},
// 下载
政策协议
// 下载
保险合约
downloadPolicy
()
{
this
.
agree2
=
true
;
this
.
policyDetail
.
agree1
=
true
;
if
(
this
.
policyDetail
)
{
httpPost
({
url
:
api
.
getDownloadPath
,
sid
:
true
,
data
:
{
policyCode
:
this
.
policyDetail
.
policyCode
policyCode
:
this
.
policyDetail
.
policyCode
,
recordId
:
this
.
policyDetail
.
letterNo1Id
}
}).
then
(
res
=>
{
if
(
res
)
{
...
...
@@ -286,7 +307,7 @@ export default {
return
this
.
userInfo
&&
this
.
userInfo
.
sid
;
},
onCheckHandler
()
{
if
(
this
.
agree1
&&
this
.
agree2
)
{
if
(
this
.
policyDetail
.
agree1
&&
this
.
policyDetail
.
agree2
)
{
this
.
checked
=
!
this
.
checked
;
this
.
errtipsVisible
=
false
;
}
else
{
...
...
Please
register
or
sign in
to post a comment