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
74e7aa0b
Commit
74e7aa0b
authored
Aug 23, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 华贵试算提示问题修复
parent
cb98ee30
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
CalInsuredFee.vue
src/views/Goods/Detail/modules/CalInsuredFee.vue
+1
-1
liCalFee.mixin.js
src/views/Goods/Detail/modules/liCalFee.mixin.js
+17
-2
index.vue
src/views/Policy/Add/index.vue
+1
-1
No files found.
src/views/Goods/Detail/modules/CalInsuredFee.vue
View file @
74e7aa0b
...
@@ -110,7 +110,7 @@ export default {
...
@@ -110,7 +110,7 @@ export default {
this
.
$emit
(
DATA_CHANGE_EVENT
,
this
.
formData
);
this
.
$emit
(
DATA_CHANGE_EVENT
,
this
.
formData
);
},
},
resetFormItemVal
(
key
,
val
)
{
resetFormItemVal
(
key
,
val
)
{
if
(
this
.
formData
.
birth
&&
this
.
formData
[
key
]
&&
!
val
)
{
if
(
this
.
formData
.
birth
&&
val
&&
this
.
formData
[
key
]
===
val
)
{
switch
(
key
)
{
switch
(
key
)
{
case
"
amountInsured
"
:
case
"
amountInsured
"
:
this
.
$notify
({
type
:
"
warning
"
,
message
:
"
已超出该年龄承保的最高保额,请重新选择
"
});
this
.
$notify
({
type
:
"
warning
"
,
message
:
"
已超出该年龄承保的最高保额,请重新选择
"
});
...
...
src/views/Goods/Detail/modules/liCalFee.mixin.js
View file @
74e7aa0b
export
default
{
export
default
{
data
()
{
return
{
ageIndexCache
:
""
,
isAgeIndexChange
:
false
};
},
computed
:
{
computed
:
{
// 场景不同暂不做整合
// 场景不同暂不做整合
// age() {
// age() {
...
@@ -16,6 +22,7 @@ export default {
...
@@ -16,6 +22,7 @@ export default {
},
},
ageIndex
()
{
ageIndex
()
{
const
{
age
}
=
this
;
const
{
age
}
=
this
;
let
_index
=
0
;
const
ageRangeList
=
[
const
ageRangeList
=
[
[
18
,
35
],
[
18
,
35
],
[
31
,
35
],
[
31
,
35
],
...
@@ -27,9 +34,17 @@ export default {
...
@@ -27,9 +34,17 @@ export default {
];
];
// 特殊情况
// 特殊情况
if
(
31
<=
age
&&
age
<=
35
)
{
if
(
31
<=
age
&&
age
<=
35
)
{
return
1
;
_index
=
1
;
}
else
{
_index
=
ageRangeList
.
findIndex
(
item
=>
item
[
0
]
<=
age
&&
age
<=
item
[
1
]);
}
if
(
this
.
ageIndexCache
!==
_index
)
{
this
.
ageIndexCache
=
_index
;
this
.
isAgeIndexChange
=
true
;
}
else
{
this
.
isAgeIndexChange
=
false
;
}
}
return
ageRangeList
.
findIndex
(
item
=>
item
[
0
]
<=
age
&&
age
<=
item
[
1
])
;
return
_index
;
},
},
amountOptions
()
{
amountOptions
()
{
const
{
ageIndex
,
countOptions
}
=
this
;
const
{
ageIndex
,
countOptions
}
=
this
;
...
...
src/views/Policy/Add/index.vue
View file @
74e7aa0b
...
@@ -919,7 +919,7 @@ export default {
...
@@ -919,7 +919,7 @@ export default {
resetFormItemVal
(
key
,
val
)
{
resetFormItemVal
(
key
,
val
)
{
const
currentIdNo
=
this
.
getRealIdNo
();
const
currentIdNo
=
this
.
getRealIdNo
();
const
birthday
=
this
.
getBirthDate
(
currentIdNo
);
const
birthday
=
this
.
getBirthDate
(
currentIdNo
);
if
(
birthday
&&
this
.
formData
.
productItem
[
key
]
&&
!
val
)
{
if
(
birthday
&&
this
.
formData
.
productItem
[
key
]
===
val
&&
val
)
{
switch
(
key
)
{
switch
(
key
)
{
case
"
amountInsured
"
:
case
"
amountInsured
"
:
this
.
$notify
({
type
:
"
warning
"
,
message
:
"
已超出该年龄承保的最高保额,请重新选择
"
});
this
.
$notify
({
type
:
"
warning
"
,
message
:
"
已超出该年龄承保的最高保额,请重新选择
"
});
...
...
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