Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
ShanghaiGongwei
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
ShanghaiGongwei
Commits
469da24a
Commit
469da24a
authored
Mar 28, 2022
by
nlp97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字段名称
parent
ae903e89
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
12 deletions
+57
-12
src/components/ind.js
+3
-3
src/components/index.vue
+2
-1
src/components/page4.vue
+46
-2
src/components/page5.vue
+3
-3
src/components/page6.vue
+3
-3
No files found.
src/components/ind.js
View file @
469da24a
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2022-03-20 15:10:37
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-2
3 14:21:01
* @LastEditTime: 2022-03-2
4 11:46:05
* @Description:
*/
...
...
@@ -15,8 +15,8 @@
orNotByEntry
//是否由国外入境 (是/否)
//
orNotByEntry //是否由国外入境 (是/否)
beforeIsolationPoint
//之前隔离点
//
beforeIsolationPoint //之前隔离点
src/components/index.vue
View file @
469da24a
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-2
3 14:29:44
* @LastEditTime: 2022-03-2
4 19:28:30
* @Description:
-->
<
template
>
...
...
@@ -145,6 +145,7 @@ export default {
"gestationalWeeks"
,
//怀孕周期
"occupation"
,
//职业
"contactInformation"
,
//联系方式
"FamilyMembersPhone"
,
//家属联系方式
"Registeredresidence"
,
//籍贯 (包括省市)
"address"
,
"idCard"
,
...
...
src/components/page4.vue
View file @
469da24a
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-2
3 15:09:49
* @LastEditTime: 2022-03-2
7 19:43:01
* @Description:
-->
<
template
>
...
...
@@ -273,6 +273,16 @@
@
blur=
"setLocalStorge('contactInformation')"
:rules=
"[{ required: true, message: '请填写联系方式' }]"
></van-field>
<van-field
colon
clearable
v-model=
"FamilyMembersPhone"
name=
"FamilyMembersPhone"
label=
"家属联系方式"
placeholder=
"家属联系方式"
@
blur=
"setLocalStorge('FamilyMembersPhone')"
:rules=
"[{ required: true, message: '请填写家属联系方式' }]"
></van-field>
<van-field
colon
...
...
@@ -417,6 +427,7 @@ export default {
gestationalWeeks
:
""
,
//怀孕周期
occupation
:
""
,
//职业
contactInformation
:
""
,
//联系方式
FamilyMembersPhone
:
""
,
//家属联系方式
workOrNotCovid
:
"否"
,
Registeredresidence
:
""
,
//籍贯 (包括省市)
province
:
""
,
//籍贯 (省)
...
...
@@ -461,6 +472,7 @@ export default {
"gestationalWeeks"
,
//怀孕周期
"occupation"
,
//职业
"contactInformation"
,
//联系方式
"FamilyMembersPhone"
,
//家属联系方式
"Registeredresidence"
,
//籍贯 (包括省市)
"province"
,
//籍贯 (省)
"city"
,
//籍贯 (市)
...
...
@@ -610,11 +622,43 @@ export default {
onbirthday
(
date
)
{
this
.
birthday
=
formatDate
(
date
,
"yyyy-MM-dd "
);
console
.
log
(
"🚀 ~ file: page4.vue ~ line 630 ~ onbirthday ~ this.birthday"
,
this
.
birthday
);
this
.
setLocalStorge
(
"birthday"
);
this
.
getdate
();
// this.getdate();
this
.
age
=
this
.
ages
(
formatDate
(
date
,
"yyyy-MM-dd "
));
this
.
showbirthday
=
false
;
},
ages
(
birth
)
{
birth
=
birth
.
replace
(
/-/g
,
"/"
);
//把格式中的"-"替换为"/"
birth
=
new
Date
(
birth
);
//替换后转为Date类型
var
now
=
new
Date
();
//获取当前日期
var
nowYear
=
now
.
getFullYear
();
//当前日期的年份
var
nowMonth
=
now
.
getMonth
();
var
nowDay
=
now
.
getDay
();
var
birthYear
=
birth
.
getFullYear
();
var
birthMonth
=
birth
.
getMonth
();
var
birthDay
=
birth
.
getDay
();
//出生日期的日数
var
age
;
if
(
birth
>
now
)
{
return
false
;
}
else
if
(
nowYear
==
birthYear
||
(
nowYear
>
birthYear
&&
nowMonth
>=
birthMonth
&&
nowDay
>=
birthDay
)
)
{
age
=
nowYear
-
birthYear
;
}
else
{
age
=
nowYear
-
birthYear
-
1
;
//简而言之,没过生日岁数不能+1
}
return
age
;
},
formatter
(
type
,
val
)
{
if
(
type
===
"year"
)
{
return
`
${
val
}
年`
;
...
...
src/components/page5.vue
View file @
469da24a
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-2
3 14:40:21
* @LastEditTime: 2022-03-2
4 16:09:32
* @Description:
-->
<
template
>
...
...
@@ -52,7 +52,7 @@
clearable
name=
"thirtyDays"
label-width=
"130px"
label=
"近
30天
是否离开过上海"
label=
"近
两月
是否离开过上海"
>
<
template
#
input
>
<van-radio-group
...
...
@@ -479,7 +479,7 @@ export default {
},
validator
(
val
)
{
return
val
<
30
||
val
==
30
;
return
val
<
61
||
val
==
61
;
},
getResource
()
{
...
...
src/components/page6.vue
View file @
469da24a
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-2
1 18:32:17
* @LastEditTime: 2022-03-2
4 14:38:02
* @Description:
-->
<
template
>
...
...
@@ -280,7 +280,7 @@
clearable
name=
"ChestCT"
label-width=
"125px"
label=
"
有无新冠肺炎
"
label=
"
CT有无病毒性肺炎表现
"
>
<
template
#
input
>
<van-radio-group
...
...
@@ -299,7 +299,7 @@
</van-field>
<van-field
v-if=
"
ChestCT
== '有'"
v-if=
"
yesOrNoCt
== '有'"
colon
clearable
readonly
...
...
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