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
558bc780
Commit
558bc780
authored
Aug 22, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 日期选择优化;华贵生效日期修复;下单有隐藏确认购买弹框
parent
46a04a6e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
5 deletions
+46
-5
index.vue
src/views/Consultant/Question/index.vue
+2
-0
AIDetail.vue
src/views/Goods/Detail/AIDetail.vue
+1
-0
MIDetail.vue
src/views/Goods/Detail/MIDetail.vue
+1
-0
index.vue
src/views/Policy/Add/index.vue
+42
-5
No files found.
src/views/Consultant/Question/index.vue
View file @
558bc780
...
...
@@ -40,6 +40,8 @@
:max-date=
"maxDate"
@
change=
"onPickerChange('', 'birthday')"
:show-toolbar=
"false"
tem-height=
"35"
visible-item-count=
"5"
/>
<cr-radio-btn
v-model=
"formData.socialSecurity"
...
...
src/views/Goods/Detail/AIDetail.vue
View file @
558bc780
...
...
@@ -255,6 +255,7 @@ export default {
},
nextStep
()
{
this
.
generateFormData
();
this
.
goInsureState
=
false
;
this
.
generateOrder
(
"
ai
"
);
},
generateFormData
()
{
...
...
src/views/Goods/Detail/MIDetail.vue
View file @
558bc780
...
...
@@ -251,6 +251,7 @@ export default {
},
nextStep
()
{
this
.
generateFormData
();
this
.
goInsureState
=
false
;
this
.
generateOrder
(
"
mi
"
);
},
generateFormData
()
{
...
...
src/views/Policy/Add/index.vue
View file @
558bc780
...
...
@@ -399,11 +399,11 @@
</cr-cell-group>
<cr-cell-group
title=
"续费银行账户"
>
<cr-field
v-model=
"formData.holderUserInfo.bankCardN
ame"
:value=
"formData.holderUserInfo.n
ame"
name=
"insuredUserInfo_bankCardName"
disabled
label=
"持卡人"
placeholder=
"请填写持卡人姓名"
:rules=
"[{ required: true, message: '请填写持卡人姓名' }]"
/>
<cr-field
v-model=
"formData.holderUserInfo.bankCardCode"
...
...
@@ -492,13 +492,14 @@ import Stepper from "@/components/Stepper";
import
GoInsureDialog
from
"
@/views/Goods/Detail/modules/GoInsureDialog
"
;
import
detailPayMixin
from
"
@/views/Goods/Detail/modules/detailPay.mixin
"
;
import
autoSaveForm
from
"
@/mixins/autoSaveForm.mixin
"
;
import
moment
from
"
moment
"
;
import
_
from
"
lodash
"
;
import
localStorage
from
"
@/service/localStorage
"
;
import
{
mapState
,
mapActions
}
from
"
vuex
"
;
import
Detail
from
"
@/api/detail.huagui.shouxian
"
;
import
{
list
,
trail
}
from
"
@/api/product
"
;
import
{
getFamilyList
}
from
"
@/api/user
"
;
import
{
parseTime
}
from
"
@/service/utils
"
;
import
{
isIdNo
,
isChineseName
,
...
...
@@ -634,6 +635,7 @@ export default {
}
=
oldVal
.
productItem
;
let
idNoWho
=
!
relation
||
relation
===
"
1
"
?
val
.
holderUserInfo
.
idNo
:
idNo
;
let
oldidNoWho
=
!
relation
||
relation
===
"
1
"
?
oldVal
.
holderUserInfo
.
idNo
:
oldIdNo
;
this
.
setEffectiveDate
();
if
(
(
idNoWho
&&
idNoWho
.
indexOf
(
"
************
"
)
===
-
1
&&
!
isIdNo
(
idNoWho
))
||
(
idNoWho
===
oldidNoWho
&&
...
...
@@ -771,6 +773,7 @@ export default {
}
sessionStorage
.
setItem
(
"
policyFormData
"
,
JSON
.
stringify
(
this
.
subFormData
));
// this.$router.push({ path: "/goods/inform", query: { url: popupArray[1].url } });
this
.
goInsureState
=
false
;
this
.
generateOrder
(
"
li
"
);
},
relationOptionChange
(
relation
)
{
...
...
@@ -856,10 +859,44 @@ export default {
...{
amountInsured
,
policyPeriod
,
payPeriod
,
payType
}
};
}
const
nextDate
=
Date
.
parse
(
new
Date
())
+
86400000
;
this
.
formData
.
effectiveDate
=
parseTime
(
nextDate
,
"
{y}-{m}-{d} 00:00:00
"
);
this
.
$forceUpdate
();
},
getBirthDate
(
idCard
)
{
let
birthday
=
""
;
if
(
idCard
)
{
if
(
idCard
.
length
==
15
)
{
birthday
=
"
19
"
+
idCard
.
substr
(
6
,
6
);
}
else
if
(
idCard
.
length
==
18
)
{
birthday
=
idCard
.
substr
(
6
,
8
);
}
birthday
=
birthday
.
replace
(
/
(
.
{4})(
.
{2})
/
,
"
$1-$2-
"
);
}
return
birthday
;
},
setEffectiveDate
:
_
.
debounce
(
function
()
{
const
{
relation
,
userInfoSecId
:
userId
,
idNo
:
idNoMask
}
=
this
.
formData
.
insuredUserInfo
;
const
{
userInfoSecId
:
holderUserId
,
idNo
:
holderIdNoMask
}
=
this
.
formData
.
holderUserInfo
;
let
currentIdNo
=
!
relation
||
relation
===
"
1
"
?
holderIdNoMask
:
idNoMask
;
const
currentUserId
=
!
relation
||
relation
===
"
1
"
?
holderUserId
:
userId
;
if
(
!
currentIdNo
)
return
;
currentIdNo
=
currentIdNo
.
indexOf
(
"
**
"
)
>
-
1
?
this
.
familyList
.
find
(
item
=>
item
.
userInfoSecId
===
currentUserId
).
idNo
:
currentIdNo
;
const
birthday
=
this
.
getBirthDate
(
currentIdNo
);
const
birthdayArr
=
birthday
.
split
(
"
-
"
);
const
currentdayArr
=
moment
()
.
format
(
"
YYYY-MM-DD
"
)
.
split
(
"
-
"
);
const
nextDate
=
birthdayArr
[
1
]
===
currentdayArr
[
1
]
&&
+
currentdayArr
[
2
]
===
+
birthdayArr
[
2
]
-
1
?
moment
().
format
(
"
YYYY-MM-DD 00:00:00
"
)
:
moment
()
.
add
(
1
,
"
d
"
)
.
format
(
"
YYYY-MM-DD 00:00:00
"
);
this
.
formData
.
effectiveDate
=
nextDate
;
}),
async
getDetail
()
{
const
res
=
await
list
();
if
(
res
)
{
...
...
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