Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
voucher-h5
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
潘琦
voucher-h5
Commits
f809fc3f
Commit
f809fc3f
authored
Nov 01, 2019
by
潘琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加家庭成员添加配偶末次月经时间月日小于10需补0;
parent
4b6f631f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
addMember.vue
src/views/member/addMember.vue
+1
-1
edit.vue
src/views/member/edit.vue
+5
-1
No files found.
src/views/member/addMember.vue
View file @
f809fc3f
...
...
@@ -63,7 +63,7 @@
<div
class=
"tr"
>
<div
class=
"td label"
>
身份证号
</div>
<div
class=
"td text-right"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入子女有效身份证"
v-model=
"userData.idCardKid"
/>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入子女有效身份证
[非必填]
"
v-model=
"userData.idCardKid"
/>
<span
v-show=
"!BaseValidate.idCardKidState"
class=
"small-hint"
>
请输入子女有效身份证
</span>
</div>
</div>
...
...
src/views/member/edit.vue
View file @
f809fc3f
...
...
@@ -267,10 +267,14 @@ export default {
lastMensesTimePickerConfirm
(
date
)
{
// 末次月经日期控件“确认”事件
const
selectedDate
=
new
Date
(
date
)
let
month
=
selectedDate
.
getMonth
()
+
1
let
day
=
selectedDate
.
getDate
()
if
(
selectedDate
.
getMonth
()
+
1
<=
9
)
{
month
=
'0'
+
(
selectedDate
.
getMonth
()
+
1
)
}
this
.
userData
.
lastMensesTime
=
selectedDate
.
getFullYear
()
+
'-'
+
month
+
'-'
+
selectedDate
.
getDate
()
if
(
selectedDate
.
getDate
()
<=
9
)
{
day
=
'0'
+
selectedDate
.
getDate
()
}
this
.
userData
.
lastMensesTime
=
selectedDate
.
getFullYear
()
+
'-'
+
month
+
'-'
+
day
},
pictureChange
()
{
// 头部头像根据角色、性别不同变换头像
if
(
this
.
userData
.
role
===
1
)
{
...
...
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