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
2ef2c1cf
Commit
2ef2c1cf
authored
Aug 18, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/policy_fix' into 'master'
Fix/policy fix See merge request
!45
parents
55650228
48c89560
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
25 deletions
+23
-25
LIDetail.vue
src/views/Goods/Detail/LIDetail.vue
+2
-1
index.vue
src/views/Policy/Add/index.vue
+21
-24
No files found.
src/views/Goods/Detail/LIDetail.vue
View file @
2ef2c1cf
...
@@ -214,7 +214,8 @@ export default {
...
@@ -214,7 +214,8 @@ export default {
"
policyFormData
"
,
"
policyFormData
"
,
JSON
.
stringify
(
Object
.
assign
(
this
.
formData
,
{
productNo
:
this
.
goodId
}))
JSON
.
stringify
(
Object
.
assign
(
this
.
formData
,
{
productNo
:
this
.
goodId
}))
);
);
this
.
$router
.
push
(
"
/policy/add
"
);
const
{
queryId
}
=
this
.
$route
;
this
.
$router
.
push
({
path
:
"
/policy/add
"
,
query
:
{
queryId
}
});
},
},
async
getDetail
()
{
async
getDetail
()
{
this
.
goodId
=
this
.
$route
.
query
.
id
;
this
.
goodId
=
this
.
$route
.
query
.
id
;
...
...
src/views/Policy/Add/index.vue
View file @
2ef2c1cf
...
@@ -261,13 +261,13 @@
...
@@ -261,13 +261,13 @@
</cr-cell-group>
</cr-cell-group>
<cr-cell-group
title=
"保障方案"
>
<cr-cell-group
title=
"保障方案"
>
<cr-field
<cr-field
v-model=
"formData.productItem.
insuredAmount
"
v-model=
"formData.productItem.
amountInsured
"
name=
"productItem_insuredAmount"
name=
"productItem_insuredAmount"
label=
"投保限额"
label=
"投保限额"
:rules=
"[{ required: true, message: '请选择投保限额' }]"
:rules=
"[{ required: true, message: '请选择投保限额' }]"
>
>
<
template
#input
>
<
template
#input
>
<stepper
v-model=
"formData.productItem.
insuredAmount
"
:option=
"insuredAmountOptions"
/>
<stepper
v-model=
"formData.productItem.
amountInsured
"
:option=
"insuredAmountOptions"
/>
</
template
>
</
template
>
</cr-field>
</cr-field>
<cr-field
<cr-field
...
@@ -291,16 +291,13 @@
...
@@ -291,16 +291,13 @@
</
template
>
</
template
>
</cr-field>
</cr-field>
<cr-field
<cr-field
v-model=
"formData.productItem.pay
ment
Period"
v-model=
"formData.productItem.payPeriod"
name=
"productItem_paymentPeriod"
name=
"productItem_paymentPeriod"
label=
"交费期间"
label=
"交费期间"
:rules=
"[{ required: true, message: '请选择交费期间' }]"
:rules=
"[{ required: true, message: '请选择交费期间' }]"
>
>
<
template
#input
>
<
template
#input
>
<cr-radio-btn
<cr-radio-btn
v-model=
"formData.productItem.payPeriod"
:radio-data=
"benefitOptions"
/>
v-model=
"formData.productItem.paymentPeriod"
:radio-data=
"benefitOptions"
/>
</
template
>
</
template
>
</cr-field>
</cr-field>
<cr-field
:value=
"formData.effectiveDate"
name=
"effectiveDate"
readonly
label=
"生效日期"
/>
<cr-field
:value=
"formData.effectiveDate"
name=
"effectiveDate"
readonly
label=
"生效日期"
/>
...
@@ -408,7 +405,7 @@ export default {
...
@@ -408,7 +405,7 @@ export default {
longTerm
:
"
1
"
longTerm
:
"
1
"
},
},
productItem
:
{
productItem
:
{
insuredAmount
:
"
500000
"
amountInsured
:
"
500000
"
},
},
payPeriod
:
"
1
"
payPeriod
:
"
1
"
},
},
...
@@ -524,7 +521,8 @@ export default {
...
@@ -524,7 +521,8 @@ export default {
},
},
relationChange
(
relation
=
this
.
formData
.
insuredUserInfo
.
relation
)
{
relationChange
(
relation
=
this
.
formData
.
insuredUserInfo
.
relation
)
{
this
.
formData
.
insuredUserInfo
=
{
this
.
formData
.
insuredUserInfo
=
{
relation
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
;
...
@@ -552,7 +550,17 @@ export default {
...
@@ -552,7 +550,17 @@ export default {
}
}
this
.
formData
.
insuredUserInfo
=
{
this
.
formData
.
insuredUserInfo
=
{
...
this
.
formData
.
insuredUserInfo
,
...
this
.
formData
.
insuredUserInfo
,
...{
name
,
idNo
,
userInfoSecId
,
socialSecurity
:
socialSecurity
?
"
1
"
:
"
0
"
}
...{
name
,
idNo
,
userInfoSecId
,
socialSecurity
:
typeof
socialSecurity
===
undefined
||
socialSecurity
===
""
?
""
:
socialSecurity
?
"
1
"
:
"
0
"
}
};
};
this
.
$forceUpdate
();
this
.
$forceUpdate
();
},
},
...
@@ -561,17 +569,11 @@ export default {
...
@@ -561,17 +569,11 @@ export default {
this
.
popupShow
=
true
;
this
.
popupShow
=
true
;
},
},
getParamFromSession
()
{
getParamFromSession
()
{
const
{
const
{
amountInsured
,
policyPeriod
,
payPeriod
,
payType
,
productNo
}
=
this
.
policyFormData
;
amountInsured
:
insuredAmount
,
policyPeriod
,
payPeriod
:
paymentPeriod
,
payType
,
productNo
}
=
this
.
policyFormData
;
this
.
formData
.
productNo
=
productNo
;
this
.
formData
.
productNo
=
productNo
;
this
.
formData
.
productItem
=
{
this
.
formData
.
productItem
=
{
...
this
.
formData
.
productItem
,
...
this
.
formData
.
productItem
,
...{
insuredAmount
,
policyPeriod
,
payment
Period
,
payType
}
...{
amountInsured
,
policyPeriod
,
pay
Period
,
payType
}
};
};
const
nextDate
=
Date
.
parse
(
new
Date
())
+
86400000
;
const
nextDate
=
Date
.
parse
(
new
Date
())
+
86400000
;
this
.
formData
.
effectiveDate
=
parseTime
(
nextDate
,
"
{y}-{m}-{d} 00:00:00
"
);
this
.
formData
.
effectiveDate
=
parseTime
(
nextDate
,
"
{y}-{m}-{d} 00:00:00
"
);
...
@@ -607,12 +609,7 @@ export default {
...
@@ -607,12 +609,7 @@ export default {
},
},
async
calFee
()
{
async
calFee
()
{
let
{
price
}
=
this
.
headerInfo
;
let
{
price
}
=
this
.
headerInfo
;
const
{
const
{
amountInsured
,
policyPeriod
,
payPeriod
,
payType
}
=
this
.
formData
.
productItem
;
insuredAmount
:
amountInsured
,
policyPeriod
,
paymentPeriod
:
payPeriod
,
payType
}
=
this
.
formData
.
productItem
;
let
idNo
=
""
;
let
idNo
=
""
;
let
userInfoSecId
=
undefined
;
let
userInfoSecId
=
undefined
;
const
{
socialSecurity
}
=
this
.
formData
.
insuredUserInfo
;
const
{
socialSecurity
}
=
this
.
formData
.
insuredUserInfo
;
...
...
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