Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
Project
Project
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
godwithdh
WX_h5
Commits
d7efb981
Commit
d7efb981
authored
Feb 08, 2020
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readly
parent
56fac04d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
18 deletions
+48
-18
health.js
src/router/health.js
+9
-0
punchClockDetail.vue
src/view/healthCard/punchClockDetail.vue
+39
-18
No files found.
src/router/health.js
View file @
d7efb981
...
...
@@ -65,6 +65,15 @@ module.exports = [
meta
:{
title
:
"打卡健康"
}
},
{
path
:
"/healthCard/punchClockDetail/:millisecond/:openId"
,
name
:
"punchClockDetail"
,
component
:()
=>
import
(
"@/view/healthCard/punchClockDetail.vue"
),
meta
:{
title
:
"打卡健康"
,
readOnly
:
true
}
}
]
}
...
...
src/view/healthCard/punchClockDetail.vue
View file @
d7efb981
...
...
@@ -58,16 +58,17 @@
<div
id=
"punchClockDetail"
>
<img
src=
"./image/health.jpg"
/>
<div
class=
"list"
>
<div
class=
"tip"
><span
style=
"color:red;"
>
*
</span>
1. 目前健康状况
</div>
<v-radio-group
v-model=
"value.sStatus"
>
<div
class=
"tip"
><span
style=
"color:red;"
v-if=
"!readOnly"
>
*
</span>
1. 目前健康状况
</div>
<v-radio-group
v-model=
"value.sStatus"
:disabled=
"readOnly"
>
<div><v-radio
value=
"健康"
label=
"健康"
/></div>
<div><v-radio
value=
"有发烧、咳嗽等症状"
label=
"有发烧、咳嗽等症状"
/></div>
<div><v-radio
value=
"其他"
label=
"其他"
/></div>
</v-radio-group>
</div>
<div
class=
"list"
>
<div
class=
"tip"
><span
style=
"color:red;"
>
*
</span>
2. 目前所在城市
</div>
<div
class=
"tip"
><span
style=
"color:red;"
v-if=
"!readOnly"
>
*
</span>
2. 目前所在城市
</div>
<x-address
:disabled=
"readOnly"
@
on-hide=
"logHide"
@
on-show=
"logShow"
title=
""
...
...
@@ -80,12 +81,12 @@
:show
.
sync=
"showAddress"
/>
</div>
<div
class=
"list"
>
<div
class=
"tip"
><span
style=
"color:red;"
>
*
</span>
2. 目前所在城市
</div>
<div
class=
"tip"
><span
style=
"color:red;"
v-if=
"!readOnly"
>
*
</span>
2. 目前所在城市
</div>
<span>
{{
value
.
sAddressFull
}}
</span>
</div>
<div
class=
"list"
>
<div
class=
"tip"
><span
style=
"color:red;"
>
*
</span>
3. 是否接触过疑似或确诊的新型肺炎患者
</div>
<v-radio-group
v-model=
"value.bTouch"
>
<div
class=
"tip"
><span
style=
"color:red;"
v-if=
"!readOnly"
>
*
</span>
3. 是否接触过疑似或确诊的新型肺炎患者
</div>
<v-radio-group
v-model=
"value.bTouch"
:disabled=
"readOnly"
>
<div><v-radio
:value=
"0"
label=
"否"
/></div>
<div><v-radio
:value=
"1"
label=
"是"
/></div>
</v-radio-group>
...
...
@@ -93,6 +94,7 @@
<div
class=
"list"
v-if=
"value.bTouch"
>
<div
class=
"tip"
>
4. 接触日期
</div>
<datetime
:disabled=
"readOnly"
title=
""
format=
'YYYY-MM-DD'
placeholder=
"请选择"
...
...
@@ -101,43 +103,44 @@
v-model=
"value.dTouchDate"
/>
</div>
<div
class=
"list"
>
<div
class=
"tip"
><span
style=
"color:red;"
>
*
</span>
5. 体温
</div>
<div
class=
"tip"
><span
style=
"color:red;"
v-if=
"!readOnly"
>
*
</span>
5. 体温
</div>
<xInput
title=
""
:disabled=
"readOnly"
placeholder=
"输入体温"
v-model=
"value.nTemperature"
type=
"number"
/>
</div>
<div
class=
"list"
>
<div
class=
"tip"
>
4. 是否自我隔离
</div>
<v-radio-group
v-model=
"value.bQuarantine"
>
<v-radio-group
v-model=
"value.bQuarantine"
:disabled=
"readOnly"
>
<div><v-radio
:value=
"0"
label=
"否"
/></div>
<div><v-radio
:value=
"1"
label=
"是"
/></div>
</v-radio-group>
</div>
<div
class=
"list"
>
<div
class=
"tip"
>
5. 是否就医
</div>
<v-radio-group
v-model=
"value.bHospital"
>
<v-radio-group
v-model=
"value.bHospital"
:disabled=
"readOnly"
>
<div><v-radio
:value=
"0"
label=
"否"
/></div>
<div><v-radio
:value=
"1"
label=
"是"
/></div>
</v-radio-group>
</div>
<div
class=
"list"
>
<div
class=
"tip"
><span
style=
"color:red;"
>
*
</span>
6. 是否去过疫区(湖北,武汉)
</div>
<v-radio-group
v-model=
"value.bHaveBeen"
>
<div
class=
"tip"
><span
style=
"color:red;"
v-if=
"!readOnly"
>
*
</span>
6. 是否去过疫区(湖北,武汉)
</div>
<v-radio-group
v-model=
"value.bHaveBeen"
:disabled=
"readOnly"
>
<div><v-radio
:value=
"0"
label=
"否"
/></div>
<div><v-radio
:value=
"1"
label=
"是"
/></div>
</v-radio-group>
</div>
<div
class=
"list"
>
<div
class=
"tip"
>
7. 出行明细
</div>
<textarea
placeholder=
"请输入"
autoHeight=
"true"
v-model=
"value.sHaveBeenDetail"
/>
<textarea
placeholder=
"请输入"
:disabled=
"readOnly"
autoHeight=
"true"
v-model=
"value.sHaveBeenDetail"
/>
</div>
<div
class=
"list"
>
<div
class=
"tip"
>
8. 其他情况
</div>
<textarea
placeholder=
"请输入"
autoHeight=
"true"
v-model=
"value.sRemark"
/>
<textarea
placeholder=
"请输入"
:disabled=
"readOnly"
autoHeight=
"true"
v-model=
"value.sRemark"
/>
</div>
<button
@
click=
"upData"
>
提交
</button>
<button
@
click=
"upData"
v-if=
"!readOnly"
>
提交
</button>
</div>
</
template
>
...
...
@@ -171,17 +174,35 @@ export default {
tCreateTime
:
""
,
//创建日期
sCreateAppid
:
""
,
//openID
iStatus
:
1
,
}
},
readOnly
:
false
,
//是否只读
millisecond
:
""
,
//毫秒数
}
},
created
(){
this
.
value
.
iEmploeeId
=
this
.
$route
.
params
.
id
this
.
readOnly
=
this
.
$route
.
meta
.
readOnly
this
.
value
.
sCreateAppid
=
this
.
$route
.
params
.
openId
this
.
value
.
sAddressFull
=
this
.
$route
.
params
.
address
if
(
this
.
readOnly
){
this
.
millisecond
=
this
.
$route
.
params
.
millisecond
this
.
getHealthDate
()
}
else
{
this
.
value
.
iEmploeeId
=
this
.
$route
.
params
.
id
this
.
value
.
sAddressFull
=
this
.
$route
.
params
.
address
}
this
.
value
.
dCheckDate
=
this
.
value
.
tCreateTime
=
util
.
dateFormat
(
new
Date
(),
"yyyy-MM-dd hh:mm:ss"
)
},
methods
:{
async
getHealthDate
(){
var
data
=
[
{
key
:
"url"
,
value
:
"HealthLog"
},
{
key
:
"dDate"
,
value
:
util
.
dateFormat
(
new
Date
(
this
.
millisecond
),
"yyyy-MM-dd"
)},
{
key
:
"openid"
,
value
:
this
.
value
.
sCreateAppid
}
]
var
value
=
await
this
.
request
(
"getStatisticalDetails"
,
data
)
if
()
},
logHide
(
e
){
console
.
log
(
e
)
},
...
...
@@ -196,7 +217,7 @@ export default {
var
value
=
await
this
.
request
(
"saveHealth"
,{
data
:
this
.
value
,
},
"加载中"
,{})
if
(
/^
\d
+$/
.
test
(
typeof
value
)){
if
(
/^
\d
+$/
.
test
(
value
)){
wx
.
miniProgram
.
navigateBack
()
}
else
{
this
.
$vux
.
toast
.
text
(
'保存失败!'
,
'middle'
);
...
...
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