Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
epidemic
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
史锦峰
epidemic
Commits
fbfe310d
Commit
fbfe310d
authored
5 years ago
by
lrw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文案修改
parent
89c51f10
master
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
315 deletions
+90
-315
fillIn.vue
pages/fillIn/fillIn.vue
+51
-306
fillInDay.vue
pages/fillInDay/fillInDay.vue
+39
-9
No files found.
pages/fillIn/fillIn.vue
View file @
fbfe310d
...
...
@@ -61,7 +61,7 @@
<view
class=
"cu-form-group margin-top padding-rl"
v-show=
"!item.hidden"
:key=
"item.value"
>
<view
:class=
"item.titleClass"
><span
style=
"color:red;display: inline-block; vertical-align:inherit;margin-right:4upx"
:style=
"
{opacity: item.required ? 1 : 0}">*
</span>
{{
item
.
label
}}
</view>
<picker
mode=
"date"
:value=
"
date
"
start=
"2015-09-01"
end=
"2020-09-01"
@
change=
"updatePickerVal($event,item)"
>
<picker
mode=
"date"
:value=
"
form[item.value]
"
start=
"2015-09-01"
end=
"2020-09-01"
@
change=
"updatePickerVal($event,item)"
>
<view
class=
"picker"
>
{{
form
[
item
.
value
]?
form
[
item
.
value
]:
'
请选择
'
}}
</view>
...
...
@@ -98,14 +98,14 @@
</view>
</template>
<view
class=
"cu-form-group margin-top-sm"
>
<view
class=
"cu-form-group margin-top-sm"
v-show=
"!isRead"
>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view
class=
"padding-top padding-bottom"
>
<checkbox-group
@
click=
"openModal"
>
<label>
<checkbox
value=
"A"
:checked=
"form.agree ==
'1'
"
class=
"fl"
style=
"margin-top:4upx"
/>
<checkbox
value=
"A"
:checked=
"form.agree ==
1
"
class=
"fl"
style=
"margin-top:4upx"
/>
<view
style=
"padding-left:60upx;padding-top:6upx"
>
我已阅读
理解了全部情况,我同意参加
我已阅读
并认可
<span
style=
"color:#0081FF"
@
click.stop=
"modalName = true"
>
《知情同意书》
</span>
,承诺如实填报。
</view>
</label>
</checkbox-group>
...
...
@@ -151,7 +151,7 @@
</view>
</view>
</view>
<view
class=
"padding"
>
<view
class=
"padding"
v-show=
"!isRead"
>
<button
form-type=
"submit"
class=
"cu-btn block bg-blue margin-tb-sm lg"
>
提 交
</button>
</view>
</form>
...
...
@@ -170,294 +170,7 @@
data
()
{
return
{
modalName
:
false
,
id
:
''
,
radio
:
[],
shanghaiList
:
[{
label
:
'
是否离沪
'
,
required
:
true
,
value
:
'
left
'
,
titleClass
:
'
title
'
,
type
:
'
picker
'
,
opts
:
[{
value
:
'
a
'
,
label
:
'
是
'
},
{
value
:
'
b
'
,
label
:
'
否
'
}]
},
{
label
:
'
离沪原因
'
,
required
:
true
,
value
:
'
leftReason
'
,
titleClass
:
'
title
'
,
type
:
'
picker
'
,
opts
:
[{
value
:
'
a
'
,
label
:
'
探亲
'
},
{
value
:
'
b
'
,
label
:
'
出差
'
},
{
value
:
'
b
'
,
label
:
'
旅游
'
},
{
value
:
'
b
'
,
label
:
'
其他
'
}]
},
{
label
:
'
离沪出发日期
'
,
required
:
true
,
value
:
'
leftDate
'
,
titleClass
:
'
title
'
,
type
:
'
date
'
,
},
{
label
:
'
离沪方式
'
,
required
:
true
,
value
:
'
leftVehicle
'
,
titleClass
:
'
title
'
,
type
:
'
date
'
,
opts
:
[{
value
:
'
a
'
,
label
:
'
火车
'
},
{
value
:
'
飞机
'
,
label
:
'
否
'
},
{
value
:
'
客车
'
,
label
:
'
否
'
},
{
value
:
'
自驾
'
,
label
:
'
否
'
}]
},
{
label
:
'
离沪车次/航班
'
,
required
:
true
,
value
:
'
leftVehicleNum
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入地址
'
,
type
:
'
input
'
,
},
{
label
:
'
离沪到达日期
'
,
required
:
true
,
value
:
'
leftReachDate
'
,
titleClass
:
'
title
'
,
type
:
'
date
'
,
},
{
label
:
'
离沪目的地
'
,
required
:
true
,
value
:
'
leftTarget
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入地址
'
,
type
:
'
input
'
,
},
{
label
:
'
离沪具体地址
'
,
required
:
true
,
value
:
'
leftAddress
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入地址
'
,
type
:
'
input
'
,
},
{
label
:
'
离沪同行者姓名(没有填无)
'
,
required
:
true
,
value
:
'
leftDependentNames
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入
'
,
type
:
'
input
'
,
},
{
label
:
'
离沪同行者联系方式(没有填无)
'
,
required
:
true
,
value
:
'
leftDependentPhones
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入
'
,
type
:
'
input
'
,
},
{
label
:
'
是否返沪
'
,
required
:
true
,
value
:
'
backed
'
,
titleClass
:
'
title
'
,
type
:
'
picker
'
,
opts
:
[{
value
:
'
a
'
,
label
:
'
是
'
},
{
value
:
'
b
'
,
label
:
'
否
'
}]
},
{
label
:
'
返沪出发地
'
,
required
:
true
,
value
:
'
backFrom
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入
'
,
type
:
'
input
'
,
},
{
label
:
'
返沪出发日期
'
,
required
:
true
,
value
:
'
backDate
'
,
titleClass
:
'
title
'
,
type
:
'
date
'
,
},
{
label
:
'
返沪方式
'
,
required
:
true
,
value
:
'
backVehicle
'
,
titleClass
:
'
title
'
,
type
:
'
picker
'
,
opts
:
[{
value
:
'
a
'
,
label
:
'
火车
'
},
{
value
:
'
飞机
'
,
label
:
'
否
'
},
{
value
:
'
客车
'
,
label
:
'
否
'
},
{
value
:
'
自驾
'
,
label
:
'
否
'
}]
},
{
label
:
'
返沪车次/航班
'
,
required
:
true
,
value
:
'
backVehicleNum
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入地址
'
,
type
:
'
input
'
,
},
{
label
:
'
返沪到达日期
'
,
required
:
true
,
value
:
'
backReachedDate
'
,
titleClass
:
'
title
'
,
type
:
'
date
'
,
},
{
label
:
'
返沪同行者姓名(没有填无)
'
,
required
:
true
,
value
:
'
backDependentNames
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入
'
,
type
:
'
input
'
,
},
{
label
:
'
返沪同行者联系方式(没有填无)
'
,
required
:
true
,
value
:
'
backDependentPhones
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入
'
,
type
:
'
input
'
,
},
{
label
:
'
当前状况
'
,
required
:
true
,
value
:
'
currentStatus
'
,
titleClass
:
'
title
'
,
type
:
'
picker
'
,
opts
:
[{
value
:
'
a
'
,
label
:
'
已经确诊
'
},
{
value
:
'
b
'
,
label
:
'
疑似诊断
'
},
{
value
:
'
b
'
,
label
:
'
亲密接触者
'
},
{
value
:
'
b
'
,
label
:
'
正在接受集中医学观察
'
},
{
value
:
'
b
'
,
label
:
'
居家观察
'
},
{
value
:
'
b
'
,
label
:
'
已解除集中医学观察
'
},
{
value
:
'
b
'
,
label
:
'
无上述情况
'
}]
},
{
label
:
'
症状
'
,
required
:
true
,
value
:
'
symptom
'
,
titleClass
:
'
title
'
,
type
:
'
pickerMore
'
,
opts
:
[{
value
:
'
发热
'
,
label
:
'
发热
'
},
{
value
:
'
咳嗽
'
,
label
:
'
咳嗽
'
},
{
value
:
'
流涕
'
,
label
:
'
流涕
'
},
{
value
:
'
咽痛
'
,
label
:
'
咽痛
'
},
{
value
:
'
咳痰
'
,
label
:
'
咳痰
'
},
{
value
:
'
胸痛
'
,
label
:
'
胸痛
'
},
{
value
:
'
肌肉酸痛/关节痛
'
,
label
:
'
肌肉酸痛/关节痛
'
},
{
value
:
'
气促
'
,
label
:
'
气促
'
},
{
value
:
'
腹泻
'
,
label
:
'
腹泻
'
},
{
value
:
'
无上述症状
'
,
label
:
'
无上述症状
'
}]
},
{
label
:
'
湖北接触史
'
,
required
:
true
,
value
:
'
relativesGastricCount
'
,
titleClass
:
'
title
'
,
type
:
'
picker
'
,
opts
:
[{
value
:
'
a
'
,
label
:
'
已经确诊
'
},
{
value
:
'
b
'
,
label
:
'
疑似诊断
'
},
{
value
:
'
b
'
,
label
:
'
亲密接触者
'
},
{
value
:
'
b
'
,
label
:
'
正在接受集中医学观察
'
},
{
value
:
'
b
'
,
label
:
'
居家观察
'
},
{
value
:
'
b
'
,
label
:
'
已解除集中医学观察
'
},
{
value
:
'
b
'
,
label
:
'
无上述情况
'
}]
}
],
isRead
:
false
,
list
:
[{
label
:
'
单位名称
'
,
required
:
true
,
...
...
@@ -467,14 +180,14 @@
opts
:
[]
},
{
label
:
'
所在部门
'
,
label
:
'
所在部门
(选填)
'
,
value
:
'
department
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入所在部门
'
,
type
:
'
input
'
,
},
{
label
:
'
职务
'
,
label
:
'
职务
(选填)
'
,
value
:
'
position
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入职务
'
,
...
...
@@ -493,7 +206,7 @@
required
:
true
,
value
:
'
phone
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入
联系方式
'
,
placeholder
:
'
请输入
11位数字手机号
'
,
type
:
'
input
'
,
validator
:
validate
.
isPhone
},
...
...
@@ -1330,7 +1043,7 @@
required
:
true
,
value
:
'
householdAddress
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入户籍地址
'
,
placeholder
:
'
例:**路**号**小区**号楼**室
'
,
type
:
'
input
'
,
num
:
8
,
hidden
:
true
,
...
...
@@ -1340,7 +1053,7 @@
required
:
true
,
value
:
'
residenceAddress
'
,
titleClass
:
'
title
'
,
placeholder
:
'
请输入地址
'
,
placeholder
:
'
例:**路**号**小区**号楼**室
'
,
type
:
'
input
'
,
},
{
...
...
@@ -1874,7 +1587,7 @@
hidden
:
true
},
{
label
:
'
症状
'
,
label
:
'
当日
症状
'
,
required
:
true
,
value
:
'
symptom
'
,
titleClass
:
'
title
'
,
...
...
@@ -1932,14 +1645,14 @@
onLoad
(
option
)
{
this
.
getOrg
()
this
.
getInfo
()
},
methods
:
{
openModal
()
{
if
(
!
this
.
form
.
agree
)
{
this
.
form
.
agree
=
'
1
'
this
.
modalName
=
true
this
.
form
.
agree
=
1
}
else
{
this
.
form
.
agree
=
0
}
...
...
@@ -1969,8 +1682,40 @@
})
},
// 获取信息
getInfo
(
id
)
{
getInfo
()
{
this
.
$http
.
get
(
`/sict-ncov/report`
,
this
.
form
).
then
(
res
=>
{
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
this
.
isRead
=
true
const
data
=
d
.
object
.
reportContent
||
{}
this
.
form
=
data
// 赋值
for
(
let
k
in
data
)
{
const
val
=
data
[
k
]
if
(
val
)
{
const
item
=
this
.
list
.
find
(
child
=>
child
.
value
==
k
)
if
(
item
)
{
this
.
showChange
({
value
:
val
},
item
)
if
(
item
.
type
==
"
pickerMore
"
)
{
console
.
log
(
1
,
22
)
item
.
opts
.
forEach
(
opt
=>
{
val
.
split
(
'
,
'
).
forEach
(
v
=>
{
if
(
v
===
opt
.
label
)
{
console
.
log
(
opt
)
this
.
$set
(
opt
,
'
checked
'
,
true
)
}
})
})
}
}
}
}
}
})
},
// 更新复选框绑定的表单内容
checkboxChange
(
index
,
obj
,
item
)
{
...
...
@@ -2010,7 +1755,7 @@
const
prop
=
item
.
value
const
type
=
item
.
type
if
(
type
===
'
radio
'
)
{
const
val
=
evt
.
target
.
value
const
val
=
evt
.
value
||
evt
.
target
.
value
this
.
$set
(
this
.
form
,
prop
,
val
)
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
const
current
=
this
.
list
[
i
]
...
...
@@ -2028,7 +1773,7 @@
}
// 复选框展示和隐藏
if
(
type
===
'
pickerMore
'
)
{
let
val
=
evt
.
detail
.
value
;
let
val
=
evt
.
value
||
evt
.
detail
.
value
;
const
showList
=
item
.
showList
if
(
showList
&&
showList
.
length
>
0
)
{
showList
.
forEach
(
item
=>
{
...
...
@@ -2045,7 +1790,7 @@
}
if
(
type
===
'
picker
'
)
{
let
val
=
item
.
opts
[
evt
.
detail
.
value
].
value
;
let
val
=
evt
.
value
||
item
.
opts
[
evt
.
detail
.
value
].
value
;
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
const
current
=
this
.
list
[
i
]
if
(
current
.
value
==
prop
&&
current
.
show
)
{
...
...
This diff is collapsed.
Click to expand it.
pages/fillInDay/fillInDay.vue
View file @
fbfe310d
<
template
>
<view
class=
"questionnaire"
>
<form
@
submit=
"formSubmit"
>
...
...
@@ -395,7 +394,7 @@
hidden
:
true
},
{
label
:
'
症状
'
,
label
:
'
当日
症状
'
,
required
:
true
,
value
:
'
symptom
'
,
titleClass
:
'
title
'
,
...
...
@@ -668,7 +667,38 @@
}
},
onLoad
(
option
)
{},
onLoad
(
option
)
{
// 获取信息
this
.
$http
.
post
(
`/sict-ncov/report`
,
this
.
form
).
then
(
res
=>
{
console
.
log
(
res
)
})
const
data
=
{
currentStatus
:
'
亲密接触者
'
}
for
(
let
k
in
data
)
{
const
val
=
data
[
k
]
if
(
val
)
{
const
item
=
this
.
list
.
find
(
child
=>
child
.
value
==
k
)
if
(
item
)
{
this
.
showChange
({
value
:
val
},
item
)
if
(
item
.
type
==
"
pickerMore
"
)
{
console
.
log
(
1
,
22
)
item
.
opts
.
forEach
(
opt
=>
{
val
.
split
(
'
,
'
).
forEach
(
v
=>
{
if
(
v
===
opt
.
label
)
{
console
.
log
(
opt
)
this
.
$set
(
opt
,
'
checked
'
,
true
)
}
})
})
}
}
}
}
},
methods
:
{
...
...
@@ -710,7 +740,7 @@
const
prop
=
item
.
value
const
type
=
item
.
type
if
(
type
===
'
radio
'
)
{
const
val
=
evt
.
target
.
value
const
val
=
evt
.
value
||
evt
.
target
.
value
this
.
$set
(
this
.
form
,
prop
,
val
)
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
const
current
=
this
.
list
[
i
]
...
...
@@ -727,7 +757,7 @@
}
// 复选框展示和隐藏
if
(
type
===
'
pickerMore
'
)
{
let
val
=
evt
.
detail
.
value
;
let
val
=
evt
.
value
||
evt
.
detail
.
value
;
const
showList
=
item
.
showList
if
(
showList
&&
showList
.
length
>
0
)
{
showList
.
forEach
(
item
=>
{
...
...
@@ -799,7 +829,7 @@
uni
.
navigateBack
()
uni
.
showToast
({
icon
:
'
success
'
,
title
:
'
提交成功
'
title
:
'
提交成功
'
})
}
else
{
uni
.
showToast
({
...
...
This diff is collapsed.
Click to expand it.
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