Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mongo-ui
Commits
8544fe6d
Commit
8544fe6d
authored
Aug 19, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 华贵保单填写回显
parent
dbb1e9d7
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
147 additions
and
64 deletions
+147
-64
settings.js
src/api/settings.js
+1
-1
qrcode-demo.png
src/assets/images/consultant/qrcode-demo.png
+0
-0
PopupDatePicker.vue
src/components/PopupDatePicker.vue
+23
-10
PopupPicker.vue
src/components/PopupPicker.vue
+12
-1
popupPicker.mixin.js
src/mixins/popupPicker.mixin.js
+6
-4
AIDetail.vue
src/views/Goods/Detail/AIDetail.vue
+11
-6
CIIDetail.vue
src/views/Goods/Detail/CIIDetail.vue
+32
-9
LIDetail.vue
src/views/Goods/Detail/LIDetail.vue
+1
-0
MIDetail.vue
src/views/Goods/Detail/MIDetail.vue
+12
-9
index.vue
src/views/Policy/Add/index.vue
+49
-24
No files found.
src/api/settings.js
View file @
8544fe6d
...
@@ -13,7 +13,7 @@ export default {
...
@@ -13,7 +13,7 @@ export default {
avator
:
""
,
avator
:
""
,
serveNum
:
"
-
"
,
serveNum
:
"
-
"
,
rate
:
"
-%
"
,
rate
:
"
-%
"
,
tel
:
"
1
3888888888
"
,
tel
:
"
1
6710080673
"
,
date
:
"
9:00 ~ 21:00
"
date
:
"
9:00 ~ 21:00
"
}
}
};
};
src/assets/images/consultant/qrcode-demo.png
View replaced file @
dbb1e9d7
View file @
8544fe6d
32.5 KB
|
W:
|
H:
20.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/PopupDatePicker.vue
View file @
8544fe6d
...
@@ -20,10 +20,6 @@
...
@@ -20,10 +20,6 @@
<
script
>
<
script
>
import
popupPickerMixin
from
"
../mixins/popupPicker.mixin.js
"
;
import
popupPickerMixin
from
"
../mixins/popupPicker.mixin.js
"
;
import
{
parseTime
}
from
"
@/service/utils
"
;
import
{
parseTime
}
from
"
@/service/utils
"
;
const
CURRENT_TIME
=
new
Date
();
const
CURRENT_YEAR
=
CURRENT_TIME
.
getFullYear
();
// const START_YEAR = 1949;
const
END_YEAR
=
CURRENT_YEAR
;
export
default
{
export
default
{
name
:
"
PopupDatePicker
"
,
name
:
"
PopupDatePicker
"
,
mixins
:
[
popupPickerMixin
],
mixins
:
[
popupPickerMixin
],
...
@@ -34,24 +30,41 @@ export default {
...
@@ -34,24 +30,41 @@ export default {
return
100
;
return
100
;
}
}
},
},
needInit
:
{
type
:
Boolean
,
default
:
true
},
later
:
{
later
:
{
type
:
Number
,
type
:
Number
,
default
()
{
default
()
{
return
END_YEAR
-
CURRENT_YEAR
;
return
60
;
}
}
}
}
},
},
data
()
{
data
()
{
return
{
return
{
refName
:
"
datepicker
"
,
refName
:
"
datepicker
"
,
initVal
:
parseTime
(
""
,
"
{y}-{m}-{d}
"
)
initVal
:
""
};
};
},
},
watch
:
{
watch
:
{
value
(
val
)
{
value
:
{
if
(
val
)
{
immediate
:
true
,
this
.
initVal
=
val
;
handler
(
val
)
{
this
.
handleResult
(
val
);
if
(
val
)
{
this
.
initVal
=
val
;
this
.
handleResult
(
val
);
}
}
},
needInit
:
{
immediate
:
true
,
handler
(
val
)
{
if
(
!
val
)
{
this
.
initVal
=
""
;
}
else
{
this
.
initVal
=
parseTime
(
""
,
"
{y}-{m}-{d}
"
);
}
}
}
}
}
},
},
...
...
src/components/PopupPicker.vue
View file @
8544fe6d
...
@@ -23,6 +23,14 @@ import popupPickerMixin from "../mixins/popupPicker.mixin.js";
...
@@ -23,6 +23,14 @@ import popupPickerMixin from "../mixins/popupPicker.mixin.js";
export
default
{
export
default
{
name
:
"
PopupPicker
"
,
name
:
"
PopupPicker
"
,
mixins
:
[
popupPickerMixin
],
mixins
:
[
popupPickerMixin
],
watch
:
{
value
(
val
)
{
if
(
val
)
{
this
.
setDefaultVal
();
this
.
handleResult
([
this
.
pickerData
.
find
(
item
=>
item
.
value
===
this
.
value
)]);
}
}
},
methods
:
{
methods
:
{
handleResult
(
res
)
{
handleResult
(
res
)
{
this
.
pickerValShow
=
res
[
0
].
title
;
this
.
pickerValShow
=
res
[
0
].
title
;
...
@@ -31,7 +39,10 @@ export default {
...
@@ -31,7 +39,10 @@ export default {
setDefaultVal
()
{
setDefaultVal
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
const
$picker
=
this
.
$refs
.
picker
;
const
$picker
=
this
.
$refs
.
picker
;
$picker
.
setColumnIndex
(
0
,
this
.
pickerData
.
indexOf
(
this
.
value
));
$picker
.
setColumnIndex
(
0
,
this
.
pickerData
.
findIndex
(
item
=>
item
.
value
===
this
.
value
)
);
});
});
}
}
}
}
...
...
src/mixins/popupPicker.mixin.js
View file @
8544fe6d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Description: PopupPicker mixin
* @Description: PopupPicker mixin
* @Date: 2020-07-28 19:46:31
* @Date: 2020-07-28 19:46:31
* @LastEditors: gzw
* @LastEditors: gzw
* @LastEditTime: 2020-08-1
7 16:52:26
* @LastEditTime: 2020-08-1
9 18:08:05
*/
*/
// TODO 默认值需要处理
// TODO 默认值需要处理
...
@@ -34,9 +34,11 @@ export default {
...
@@ -34,9 +34,11 @@ export default {
watch
:
{
watch
:
{
show
(
val
)
{
show
(
val
)
{
if
(
val
&&
!
this
.
refreshed
&&
this
.
$refs
[
this
.
refName
])
{
if
(
val
&&
!
this
.
refreshed
&&
this
.
$refs
[
this
.
refName
])
{
this
.
refreshed
=
true
;
setTimeout
(()
=>
{
this
.
$refs
[
this
.
refName
].
refreshColumns
();
this
.
refreshed
=
true
;
this
.
setDefaultVal
();
this
.
$refs
[
this
.
refName
].
refreshColumns
();
this
.
setDefaultVal
();
},
500
);
}
}
}
}
// value: {
// value: {
...
...
src/views/Goods/Detail/AIDetail.vue
View file @
8544fe6d
...
@@ -165,9 +165,13 @@ export default {
...
@@ -165,9 +165,13 @@ export default {
if
(
this
.
calTimer
)
{
if
(
this
.
calTimer
)
{
clearTimeout
(
this
.
calTimer
);
clearTimeout
(
this
.
calTimer
);
}
}
const
{
idNo
,
amountInsured
}
=
val
;
const
{
idNo
,
amountInsured
,
relation
,
selfIdNo
}
=
val
;
const
{
idNo
:
oldidNo
,
amountInsured
:
oldamountInsured
}
=
oldVal
;
const
{
idNo
:
oldidNo
,
amountInsured
:
oldamountInsured
,
selfIdNo
:
oldselfIdNo
}
=
oldVal
;
if
(
!
isIdNo
(
idNo
)
&&
idNo
===
oldidNo
&&
amountInsured
===
oldamountInsured
)
return
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
let
oldidNoWho
=
!
relation
||
relation
===
"
1
"
?
oldselfIdNo
:
oldidNo
;
if
(
!
isIdNo
(
idNoWho
)
&&
idNoWho
===
oldidNoWho
&&
amountInsured
===
oldamountInsured
)
{
return
;
}
this
.
calTimer
=
setTimeout
(()
=>
{
this
.
calTimer
=
setTimeout
(()
=>
{
this
.
calFee
();
this
.
calFee
();
},
1000
);
},
1000
);
...
@@ -297,13 +301,14 @@ export default {
...
@@ -297,13 +301,14 @@ export default {
},
},
async
calFee
()
{
async
calFee
()
{
let
{
price
}
=
this
.
headerInfo
;
let
{
price
}
=
this
.
headerInfo
;
const
{
idNo
,
amountInsured
,
userInfoSecId
}
=
this
.
formData
;
const
{
idNo
,
selfIdNo
,
relation
,
amountInsured
,
userInfoSecId
}
=
this
.
formData
;
if
(
!
idNo
||
!
amountInsured
)
return
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
if
(
!
idNoWho
||
!
amountInsured
)
return
;
const
_param
=
{
const
_param
=
{
productNo
:
this
.
goodId
,
productNo
:
this
.
goodId
,
productUserInfo
:
{
productUserInfo
:
{
insuredUserInfo
:
{
insuredUserInfo
:
{
idNo
,
idNo
:
idNoWho
,
userInfoSecId
:
userInfoSecId
?
userInfoSecId
:
undefined
userInfoSecId
:
userInfoSecId
?
userInfoSecId
:
undefined
},
},
productItem
:
{
productItem
:
{
...
...
src/views/Goods/Detail/CIIDetail.vue
View file @
8544fe6d
...
@@ -138,7 +138,7 @@ export default {
...
@@ -138,7 +138,7 @@ export default {
name
:
""
,
name
:
""
,
idNo
:
""
,
idNo
:
""
,
relation
:
""
,
relation
:
""
,
payType
:
""
,
payType
:
"
2
"
,
amountInsured
:
"
300000
"
,
amountInsured
:
"
300000
"
,
autoRenewPolicy
:
false
,
autoRenewPolicy
:
false
,
read
:
true
read
:
true
...
@@ -168,8 +168,22 @@ export default {
...
@@ -168,8 +168,22 @@ export default {
if
(
this
.
calTimer
)
{
if
(
this
.
calTimer
)
{
clearTimeout
(
this
.
calTimer
);
clearTimeout
(
this
.
calTimer
);
}
}
const
{
idNo
,
payType
,
amountInsured
}
=
val
;
const
{
idNo
,
payType
,
amountInsured
,
relation
,
selfIdNo
}
=
val
;
const
{
idNo
:
oldidNo
,
payType
:
oldpayType
,
amountInsured
:
oldamountInsured
}
=
oldVal
;
const
{
idNo
:
oldidNo
,
payType
:
oldpayType
,
amountInsured
:
oldamountInsured
,
selfIdNo
:
oldselfIdNo
}
=
oldVal
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
let
oldidNoWho
=
!
relation
||
relation
===
"
1
"
?
oldselfIdNo
:
oldidNo
;
if
(
!
relation
&&
relation
===
"
1
"
)
{
idNoWho
=
selfIdNo
;
oldidNoWho
=
oldselfIdNo
;
}
else
{
idNoWho
=
idNo
;
oldidNoWho
=
oldidNo
;
}
if
(
this
.
goInsureState
)
{
if
(
this
.
goInsureState
)
{
sessionStorage
.
setItem
(
sessionStorage
.
setItem
(
"
policyFormData
"
,
"
policyFormData
"
,
...
@@ -177,8 +191,8 @@ export default {
...
@@ -177,8 +191,8 @@ export default {
);
);
}
}
if
(
if
(
!
isIdNo
(
idNo
)
&&
!
isIdNo
(
idNo
Who
)
&&
idNo
===
oldidN
o
&&
idNo
Who
===
oldidNoWh
o
&&
payType
===
oldpayType
&&
payType
===
oldpayType
&&
amountInsured
===
oldamountInsured
amountInsured
===
oldamountInsured
)
)
...
@@ -275,18 +289,27 @@ export default {
...
@@ -275,18 +289,27 @@ export default {
},
},
async
calFee
()
{
async
calFee
()
{
let
{
price
,
subPrice
}
=
this
.
headerInfo
;
let
{
price
,
subPrice
}
=
this
.
headerInfo
;
const
{
idNo
,
socialSecurity
,
payType
,
amountInsured
,
userInfoSecId
}
=
this
.
formData
;
const
{
if
(
!
idNo
)
return
;
idNo
,
socialSecurity
,
relation
,
selfIdNo
,
payType
,
amountInsured
,
userInfoSecId
}
=
this
.
formData
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
if
(
!
idNoWho
||
!
socialSecurity
||
!
payType
)
return
;
const
_param
=
{
const
_param
=
{
productNo
:
this
.
goodId
,
productNo
:
this
.
goodId
,
productUserInfo
:
{
productUserInfo
:
{
insuredUserInfo
:
{
insuredUserInfo
:
{
idNo
,
idNo
,
socialSecurity
:
socialSecurity
?
!!
Number
(
socialSecurity
)
:
true
,
socialSecurity
:
socialSecurity
?
!!
Number
(
socialSecurity
)
:
undefined
,
userInfoSecId
:
userInfoSecId
?
userInfoSecId
:
undefined
userInfoSecId
:
userInfoSecId
?
userInfoSecId
:
undefined
},
},
productItem
:
{
productItem
:
{
payType
:
payType
||
"
2
"
,
payType
:
payType
||
undefined
,
amountInsured
amountInsured
}
}
}
}
...
...
src/views/Goods/Detail/LIDetail.vue
View file @
8544fe6d
...
@@ -222,6 +222,7 @@ export default {
...
@@ -222,6 +222,7 @@ export default {
},
},
onSubmit
()
{
onSubmit
()
{
this
.
showLoginPopup
();
this
.
showLoginPopup
();
this
.
popupShow
=
false
;
},
},
onFailed
(
errorInfo
)
{
onFailed
(
errorInfo
)
{
const
{
errors
}
=
errorInfo
;
const
{
errors
}
=
errorInfo
;
...
...
src/views/Goods/Detail/MIDetail.vue
View file @
8544fe6d
...
@@ -140,7 +140,7 @@ export default {
...
@@ -140,7 +140,7 @@ export default {
idNo
:
""
,
idNo
:
""
,
socialSecurity
:
""
,
socialSecurity
:
""
,
relation
:
""
,
relation
:
""
,
payType
:
""
,
payType
:
"
2
"
,
planValue
:
"
3
"
,
planValue
:
"
3
"
,
autoRenewPolicy
:
false
,
autoRenewPolicy
:
false
,
read
:
true
read
:
true
...
@@ -171,9 +171,11 @@ export default {
...
@@ -171,9 +171,11 @@ export default {
if
(
this
.
calTimer
)
{
if
(
this
.
calTimer
)
{
clearTimeout
(
this
.
calTimer
);
clearTimeout
(
this
.
calTimer
);
}
}
const
{
idNo
}
=
val
;
const
{
idNo
,
relation
,
selfIdNo
}
=
val
;
const
{
idNo
:
oldidNo
}
=
oldVal
;
const
{
idNo
:
oldidNo
,
selfIdNo
:
oldselfIdNo
}
=
oldVal
;
if
(
!
isIdNo
(
idNo
)
&&
idNo
===
oldidNo
)
return
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
let
oldidNoWho
=
!
relation
||
relation
===
"
1
"
?
oldselfIdNo
:
oldidNo
;
if
(
!
isIdNo
(
idNoWho
)
&&
idNoWho
===
oldidNoWho
)
return
;
this
.
calTimer
=
setTimeout
(()
=>
{
this
.
calTimer
=
setTimeout
(()
=>
{
this
.
calFee
();
this
.
calFee
();
},
1000
);
},
1000
);
...
@@ -301,19 +303,20 @@ export default {
...
@@ -301,19 +303,20 @@ export default {
},
},
async
calFee
()
{
async
calFee
()
{
let
{
price
,
subPrice
}
=
this
.
headerInfo
;
let
{
price
,
subPrice
}
=
this
.
headerInfo
;
const
{
idNo
,
socialSecurity
,
payType
,
userInfoSecId
}
=
this
.
formData
;
const
{
idNo
,
socialSecurity
,
payType
,
userInfoSecId
,
relation
,
selfIdNo
}
=
this
.
formData
;
if
(
!
idNo
)
return
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
selfIdNo
:
idNo
;
if
(
!
idNoWho
||
!
payType
||
!
socialSecurity
)
return
;
const
_param
=
{
const
_param
=
{
productNo
:
this
.
goodId
,
productNo
:
this
.
goodId
,
productUserInfo
:
{
productUserInfo
:
{
insuredUserInfo
:
{
insuredUserInfo
:
{
idNo
,
idNo
,
socialSecurity
:
socialSecurity
?
!!
Number
(
socialSecurity
)
:
true
,
socialSecurity
:
socialSecurity
?
!!
Number
(
socialSecurity
)
:
undefined
,
userInfoSecId
:
userInfoSecId
?
userInfoSecId
:
undefined
userInfoSecId
:
userInfoSecId
?
userInfoSecId
:
undefined
},
},
productItem
:
{
productItem
:
{
payType
:
payType
||
"
2
"
,
payType
:
payType
||
undefined
,
socialSecurity
:
socialSecurity
?
!!
Number
(
socialSecurity
)
:
true
socialSecurity
:
socialSecurity
?
!!
Number
(
socialSecurity
)
:
undefined
}
}
}
}
};
};
...
...
src/views/Policy/Add/index.vue
View file @
8544fe6d
...
@@ -111,6 +111,7 @@
...
@@ -111,6 +111,7 @@
<
template
#input
>
<
template
#input
>
<popup-date-picker
<popup-date-picker
v-model=
"formData.holderUserInfo.validEnd"
v-model=
"formData.holderUserInfo.validEnd"
:later=
"100"
placeholder=
"请选择您的证件有效止期"
placeholder=
"请选择您的证件有效止期"
/>
/>
</
template
>
</
template
>
...
@@ -125,7 +126,7 @@
...
@@ -125,7 +126,7 @@
<
template
#input
>
<
template
#input
>
<cr-radio-btn
<cr-radio-btn
v-model=
"formData.insuredUserInfo.relation"
v-model=
"formData.insuredUserInfo.relation"
@
input=
"relationChange"
@
input=
"relation
Option
Change"
:radio-data=
"insuredOptions"
:radio-data=
"insuredOptions"
/>
/>
</
template
>
</
template
>
...
@@ -253,6 +254,7 @@
...
@@ -253,6 +254,7 @@
<
template
#input
>
<
template
#input
>
<popup-date-picker
<popup-date-picker
v-model=
"formData.insuredUserInfo.validEnd"
v-model=
"formData.insuredUserInfo.validEnd"
:later=
"100"
placeholder=
"请选择您的证件有效止期"
placeholder=
"请选择您的证件有效止期"
/>
/>
</
template
>
</
template
>
...
@@ -424,6 +426,7 @@ export default {
...
@@ -424,6 +426,7 @@ export default {
popupArray
,
popupArray
,
headerInfo
,
headerInfo
,
calTimer
:
null
,
calTimer
:
null
,
clearInsured
:
false
,
goInsureState
:
false
,
goInsureState
:
false
,
popupShow
:
false
,
popupShow
:
false
,
currentPupopIndex
:
null
,
currentPupopIndex
:
null
,
...
@@ -440,7 +443,8 @@ export default {
...
@@ -440,7 +443,8 @@ export default {
longTerm
:
"
1
"
longTerm
:
"
1
"
},
},
productItem
:
{
productItem
:
{
amountInsured
:
"
500000
"
amountInsured
:
"
500000
"
,
payType
:
"
1
"
},
},
payPeriod
:
"
1
"
payPeriod
:
"
1
"
},
},
...
@@ -489,18 +493,26 @@ export default {
...
@@ -489,18 +493,26 @@ export default {
clearTimeout
(
this
.
calTimer
);
clearTimeout
(
this
.
calTimer
);
}
}
const
{
relation
,
idNo
}
=
val
.
insuredUserInfo
;
const
{
relation
,
idNo
}
=
val
.
insuredUserInfo
;
const
{
amountInsured
,
policyPeriod
,
payPeriod
,
payType
}
=
val
.
productItem
;
const
{
idNo
:
oldIdNo
}
=
oldVal
.
insuredUserInfo
;
const
{
idNo
:
oldIdNo
}
=
oldVal
.
insuredUserInfo
;
if
(
relation
===
"
1
"
)
{
const
{
const
{
idNo
:
holderIdNo
}
=
val
.
holderUserInfo
;
amountInsured
:
oldamountInsured
,
const
{
idNo
:
oldHolderIdNo
}
=
oldVal
.
holderUserInfo
;
policyPeriod
:
oldpolicyPeriod
,
if
(
!
isIdNo
(
holderIdNo
)
||
holderIdNo
===
oldHolderIdNo
)
{
payPeriod
:
oldpayPeriod
,
return
;
payType
:
oldpayType
}
}
=
val
.
productItem
;
}
else
{
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
val
.
holderUserInfo
.
idNo
:
idNo
;
if
(
!
isIdNo
(
idNo
)
||
idNo
===
oldIdNo
)
{
let
oldidNoWho
=
!
relation
||
relation
===
"
1
"
?
oldVal
.
holderUserInfo
.
idNo
:
oldIdNo
;
return
;
if
(
}
!
isIdNo
(
idNoWho
)
||
}
(
idNoWho
===
oldidNoWho
&&
amountInsured
===
oldamountInsured
&&
policyPeriod
===
oldpolicyPeriod
&&
payPeriod
===
oldpayPeriod
&&
payType
===
oldpayType
)
)
return
;
this
.
calTimer
=
setTimeout
(()
=>
{
this
.
calTimer
=
setTimeout
(()
=>
{
this
.
calFee
();
this
.
calFee
();
},
1000
);
},
1000
);
...
@@ -571,11 +583,19 @@ export default {
...
@@ -571,11 +583,19 @@ export default {
}
}
this
.
generateOrder
();
this
.
generateOrder
();
},
},
relationChange
(
relation
=
this
.
formData
.
insuredUserInfo
.
relation
)
{
relationOptionChange
(
relation
)
{
this
.
formData
.
insuredUserInfo
=
{
this
.
relationChange
(
relation
,
this
.
clearInsured
);
relation
,
setTimeout
(()
=>
{
longTerm
:
"
1
"
this
.
clearInsured
=
true
;
};
},
1000
);
},
relationChange
(
relation
=
this
.
formData
.
insuredUserInfo
.
relation
,
clear
=
false
)
{
if
(
clear
)
{
this
.
formData
.
insuredUserInfo
=
{
relation
,
longTerm
:
"
1
"
};
}
this
.
familyList
.
forEach
(
item
=>
{
this
.
familyList
.
forEach
(
item
=>
{
const
{
relation
,
nameMask
:
name
,
idNoMask
:
idNo
,
userInfoSecId
}
=
item
;
const
{
relation
,
nameMask
:
name
,
idNoMask
:
idNo
,
userInfoSecId
}
=
item
;
if
(
+
relation
===
1
)
{
if
(
+
relation
===
1
)
{
...
@@ -658,22 +678,27 @@ export default {
...
@@ -658,22 +678,27 @@ export default {
if
(
queryId
)
{
if
(
queryId
)
{
relation
=
this
.
familyList
.
filter
(
item
=>
item
.
userInfoSecId
===
queryId
)[
0
].
relation
;
relation
=
this
.
familyList
.
filter
(
item
=>
item
.
userInfoSecId
===
queryId
)[
0
].
relation
;
}
}
(
this
.
showAuthXyqb
||
this
.
mongoToken
)
&&
this
.
relationChange
(
relation
);
(
this
.
showAuthXyqb
||
this
.
mongoToken
)
&&
this
.
relationChange
(
relation
,
false
);
}
}
}
}
},
},
async
calFee
()
{
async
calFee
()
{
let
{
price
}
=
this
.
headerInfo
;
let
{
price
}
=
this
.
headerInfo
;
const
{
amountInsured
,
policyPeriod
,
payPeriod
,
payType
}
=
this
.
formData
.
productItem
;
const
{
amountInsured
,
policyPeriod
,
payPeriod
,
payType
}
=
this
.
formData
.
productItem
;
const
{
relation
,
userInfoSecId
:
insureidId
,
idNo
:
insureidNo
,
socialSecurity
}
=
this
.
formData
.
insuredUserInfo
;
let
idNo
=
""
;
let
idNo
=
""
;
let
userInfoSecId
=
undefined
;
let
userInfoSecId
=
undefined
;
const
{
socialSecurity
}
=
this
.
formData
.
insuredUserInfo
;
if
(
!
relation
||
relation
===
"
1
"
)
{
if
(
this
.
formData
.
insuredUserInfo
.
relation
!==
"
1
"
)
{
userInfoSecId
=
this
.
formData
.
insuredUserInfo
.
userInfoSecId
;
idNo
=
this
.
formData
.
insuredUserInfo
.
idNo
;
}
else
{
userInfoSecId
=
this
.
formData
.
holderUserInfo
.
userInfoSecId
;
userInfoSecId
=
this
.
formData
.
holderUserInfo
.
userInfoSecId
;
idNo
=
this
.
formData
.
holderUserInfo
.
idNo
;
idNo
=
this
.
formData
.
holderUserInfo
.
idNo
;
}
else
{
userInfoSecId
=
insureidId
;
idNo
=
insureidNo
;
}
}
if
(
!
amountInsured
||
!
policyPeriod
||
!
payPeriod
||
!
payType
||
!
idNo
)
return
;
if
(
!
amountInsured
||
!
policyPeriod
||
!
payPeriod
||
!
payType
||
!
idNo
)
return
;
const
_param
=
{
const
_param
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment