Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
covid
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
Yulun Yao
covid
Commits
166a7ed6
Commit
166a7ed6
authored
Sep 04, 2021
by
levante
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git.omniview.pro:256/Oishii/covid
parents
e1dca37e
7cfa44ff
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
732 additions
and
183 deletions
+732
-183
.DS_Store
.DS_Store
+0
-0
api.js
api/api.js
+1
-1
package-lock.json
package-lock.json
+4
-4
pages.json
pages.json
+20
-0
sfInfo.vue
pages/ld/sfInfo.vue
+174
-0
sfmrld.vue
pages/ld/sfmrld.vue
+62
-166
ynInfo.vue
pages/ld/ynInfo.vue
+174
-0
ynmrld.vue
pages/ld/ynmrld.vue
+297
-12
No files found.
.DS_Store
View file @
166a7ed6
No preview for this file type
api/api.js
View file @
166a7ed6
// let baseURL1 = "http://www.rangertech.com.cn";//测试
// let baseURL1 = 'http://10.81.8.103:8181'
let
baseURL1
=
'http://10.81.8.
126
:8181'
let
baseURL1
=
'http://10.81.8.
233
:8181'
// let baseURL1 = "http://localhost:8181";
//let baseURL1 = "http://289f65x458.qicp.vip";
//let baseURL1 = "https://rysbsj.shaphc.org:30443"; //钉钉
...
...
package-lock.json
View file @
166a7ed6
...
...
@@ -4,16 +4,16 @@
"dependencies"
:
{
"dingtalk-jsapi"
:
{
"version"
:
"2.13.51"
,
"resolved"
:
"https://registry.n
pmjs.org/dingtalk-jsapi/-
/dingtalk-jsapi-2.13.51.tgz"
,
"integrity"
:
"sha
512-gm/9eLdNCUVZzOt0vLKJ2l2QoQK7CBNrYP7b86EMy9NKO6xg4QI7aYAObtde9+u6OTroF9dTsax6ngvx2fA5Gw=
="
,
"resolved"
:
"https://registry.n
lark.com/dingtalk-jsapi/download
/dingtalk-jsapi-2.13.51.tgz"
,
"integrity"
:
"sha
1-j9vXR4mcHgPeXBcFyn8Qk94Z5uI
="
,
"requires"
:
{
"promise-polyfill"
:
"^7.1.0"
}
},
"promise-polyfill"
:
{
"version"
:
"7.1.2"
,
"resolved"
:
"https://registry.npm
js.org/promise-polyfill/-/
promise-polyfill-7.1.2.tgz"
,
"integrity"
:
"sha
512-FuEc12/eKqqoRYIGBrUptCBRhobL19PS2U31vMNTfyck1FxPyMfgsXyW4Mav85y/ZN1hop3hOwRlUDok23oYfQ=
="
"resolved"
:
"https://registry.npm
.taobao.org/promise-polyfill/download/promise-polyfill-7.1.2.tgz?cache=0&sync_timestamp=1615986239062&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpromise-polyfill%2Fdownload%2F
promise-polyfill-7.1.2.tgz"
,
"integrity"
:
"sha
1-qwUwHYwoU2MBYi1pInYyJppwyjs
="
}
}
}
pages.json
View file @
166a7ed6
...
...
@@ -303,6 +303,26 @@
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/ld/ynInfo"
,
"style"
:
{
"navigationBarTitleText"
:
"填报详细信息"
,
"navigationBarBackgroundColor"
:
"#3297ff"
,
"navigationBarTextStyle"
:
"white"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/ld/sfInfo"
,
"style"
:
{
"navigationBarTitleText"
:
"填报详细信息"
,
"navigationBarBackgroundColor"
:
"#3297ff"
,
"navigationBarTextStyle"
:
"white"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/mrldgl/ldMain"
,
"style"
:
...
...
pages/ld/sfInfo.vue
0 → 100644
View file @
166a7ed6
<
template
>
<view
>
<view
class=
"grxx"
>
<view
class=
"grxxItem"
>
<view
class=
"sfzhm"
>
<view
class=
"uni-list-cell-left"
>
姓名:
</view>
<input
type=
"text"
v-model=
"name"
/>
</view>
<view
class=
"sfzhm"
>
<view
class=
"uni-list-cell-left"
>
手机号:
</view>
<view
class=
"uni-list-cell-db"
>
<input
type=
"text"
v-model=
"phone"
/>
</view>
</view>
<view
class=
"sfzhm"
>
<button
size=
"mini"
type=
"primary"
@
click=
"getList"
>
查询
</button>
</view>
</view>
</view>
<uni-table
class=
"table"
:loading=
"loading"
border
stripe
>
<!-- 表头行 -->
<uni-tr>
<uni-th
width=
"22%"
align=
"center"
>
姓名
</uni-th>
<uni-th
width=
"39%"
align=
"center"
>
手机号
</uni-th>
<uni-th
width=
"39%"
align=
"center"
>
所属公司
</uni-th>
</uni-tr>
<!-- 表格数据行 -->
<uni-tr
v-for=
"(item,index) in userList"
:key=
"index"
>
<uni-td
align=
"center"
>
{{
item
.
name
}}
</uni-td>
<uni-td
align=
"center"
>
{{
item
.
phone
}}
</uni-td>
<uni-td
align=
"center"
>
{{
item
.
officeName
}}
</uni-td>
</uni-tr>
</uni-table>
<uni-pagination
show-icon=
"true"
style=
"margin:10px"
:total=
"pagiNation.total"
@
change=
"pagi"
:current=
"pagiNation.current"
></uni-pagination>
</view>
</
template
>
<
script
>
import
{
postRequest
,
getRequest
}
from
'@/api/api.js'
export
default
{
data
()
{
return
{
userList
:
[],
loading
:
false
,
name
:
''
,
phone
:
''
,
pagiNation
:
{
current
:
1
,
size
:
10
,
total
:
0
,
},
type
:
null
,
reportNum
:
null
,
areaType
:
null
,
}
},
onLoad
(
option
)
{
let
userType
=
uni
.
getStorageSync
(
'userType'
)
const
info
=
JSON
.
parse
(
option
.
data
)
this
.
type
=
info
.
type
this
.
reportNum
=
info
.
reportNum
this
.
areaType
=
info
.
areaType
this
.
getList
()
},
methods
:
{
getList
()
{
let
data
=
{
type
:
this
.
type
,
reportNum
:
this
.
reportNum
,
areaType
:
this
.
areaType
,
name
:
this
.
name
,
phone
:
this
.
phone
,
current
:
this
.
pagiNation
.
current
,
}
this
.
userList
=
[]
postRequest
(
'/statistics/reportedResultList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'200'
&&
res
.
data
.
records
.
length
>
0
)
{
this
.
loading
=
false
;
this
.
userList
=
res
.
data
.
records
;
this
.
pagiNation
.
total
=
res
.
data
.
total
;
}
else
{
this
.
loading
=
false
;
}
})
},
pagi
(
e
)
{
console
.
log
(
e
)
this
.
pagiNation
.
current
=
e
.
current
;
this
.
getList
()
},
}
}
</
script
>
<
style
>
.grxxItem
{
border-radius
:
5px
;
padding
:
10px
;
margin
:
10px
;
box-shadow
:
0px
2px
15px
3px
rgba
(
0
,
0
,
0
,
0.1
);
}
/
deep
/
.uni-combox__input
{
font-size
:
14px
;
}
.grxxItem
.sfzhm
{
padding
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
font-size
:
84%
;
color
:
#999999
;
position
:
relative
;
}
.sfzhm
.uni-list-cell-left
{
width
:
30%
;
}
.sfzhm
image
{
width
:
28
rpx
;
height
:
30
rpx
;
}
.sfzhm
.uni-list-cell-db
{
flex
:
1
}
.sfzhm
:first-of-type
input
{
flex
:
1
;
}
.grxxItem
.sfzhm
:last-of-type
{
border
:
none
;
}
.table
{
width
:
94%
;
margin
:
0
3%
;
}
.tabButton
{
color
:
#007AFF
;
text-decoration
:
underline
;
font-size
:
14px
;
background-color
:
white
;
}
.tabButton
::after
{
border
:
0
;
}
.tab
{
font-size
:
14px
;
background-color
:
white
;
}
.tab
::after
{
border
:
0
;
}
</
style
>
pages/ld/sfmrld.vue
View file @
166a7ed6
...
...
@@ -2,76 +2,54 @@
<view>
<view
class=
"grxx"
>
<view
class=
"grxxItem"
>
<view
class=
"sfzhm"
@
click=
"picXs"
>
<text>
日期
</text>
<input
type=
"text"
v-model=
"time"
placeholder=
"请选择日期"
/>
<image
src=
"../../static/icon/rili.png"
mode=
""
></image>
<view
class=
"sfzhm"
>
<view
class=
"uni-list-cell-left"
>
日期:
</view>
<view
class=
"example-body"
>
<uni-datetime-picker
:clearIcon=
"false"
:border=
"false"
type=
"date"
:disabled=
"false"
v-model=
"time"
@
change=
"bindChange"
/>
</view>
</view>
<view
class=
"sfzhm"
>
<view
class=
"uni-list-cell-left"
>
流调名称
流调名称
:
</view>
<view
class=
"uni-list-cell-db"
>
<uni-combox
:candidates=
'numList'
v-model=
"numData"
@
input=
"numInput"
></uni-combox>
</view>
</view>
<view
class=
"sfzhm"
>
<button
type=
"primary"
@
click=
"searchData"
>
统计
</button>
<button
size=
"mini"
type=
"primary"
@
click=
"searchData"
>
统计
</button>
</view>
</view>
</view>
<uni-table
:loading=
"loading"
@
selection-change=
"selects"
border
stripe
>
<uni-table
class=
"table"
:loading=
"loading"
@
selection-change=
"selects"
border
stripe
>
<!-- 表头行 -->
<uni-tr>
<uni-th
width=
"70"
rowspan=
"2"
align=
"center"
>
机构
</uni-th>
<uni-th
align=
"center"
colspan=
"2"
>
全部
</uni-th>
<uni-th
align=
"center"
>
金山
</uni-th>
<uni-th
align=
"center"
>
市区
</uni-th>
</uni-tr>
<uni-tr>
<uni-th
width=
"80"
align=
"center"
>
待填报
</uni-th>
<uni-th
width=
"80"
align=
"center"
>
已填报
</uni-th>
<uni-th
width=
"80"
align=
"center"
>
已填报
</uni-th>
<uni-th
width=
"80"
align=
"center"
>
已填报
</uni-th>
<uni-th
width=
"20%"
align=
"center"
>
部门名称
</uni-th>
<uni-th
width=
"20%"
align=
"center"
>
金山
</uni-th>
<uni-th
width=
"20%"
align=
"center"
>
市区
</uni-th>
<uni-th
width=
"20%"
align=
"center"
>
不在院
</uni-th>
<uni-th
width=
"20%"
align=
"center"
>
体温异常
</uni-th>
</uni-tr>
<!-- 表格数据行 -->
<uni-tr
v-for=
"(item,index) in userList"
:key=
"index"
>
<uni-td
align=
"center"
>
{{
item
.
officeName
}}
</uni-td>
<uni-td
align=
"center"
>
<button
:class=
"item.
noneCount>0?'tabButton':'tab'"
@
click=
"item.noneCount>0?clickNum(item.officeId,null,0):''"
type=
"default"
>
{{
item
.
none
Count
}}
</button>
<button
:class=
"item.
jsAlreadyCount>0?'tabButton':'tab'"
@
click=
"item.jsAlreadyCount>0?clickNum(item.officeId,2,1):''"
type=
"default"
>
{{
item
.
jsAlready
Count
}}
</button>
</uni-td>
<uni-td
align=
"center"
>
<button
:class=
"item.
alreadyCount>0?'tabButton':'tab'"
@
click=
"item.alreadyCount>0?clickNum(item.officeId,null,1):''"
type=
"default"
>
{{
item
.
a
lreadyCount
}}
</button>
<button
:class=
"item.
sqAlreadyCount>0?'tabButton':'tab'"
@
click=
"item.sqAlreadyCount>0?clickNum(item.officeId,2,2):''"
type=
"default"
>
{{
item
.
sqA
lreadyCount
}}
</button>
</uni-td>
<uni-td
align=
"center"
>
<button
:class=
"item.
jsAlreadyCount>0?'tabButton':'tab'"
@
click=
"item.jsAlreadyCount>0?clickNum(item.officeId,1,1):''"
type=
"default"
>
{{
item
.
js
AlreadyCount
}}
</button>
<button
:class=
"item.
outAlreadyCount>0?'tabButton':'tab'"
@
click=
"item.outAlreadyCount>0?clickNum(item.officeId,2,3):''"
type=
"default"
>
{{
item
.
out
AlreadyCount
}}
</button>
</uni-td>
<uni-td
align=
"center"
>
<button
:class=
"item.
sqAlreadyCount>0?'tabButton':'tab'"
@
click=
"item.sqAlreadyCount>0?clickNum(item.officeId,2,1):''"
type=
"default"
>
{{
item
.
sqAlready
Count
}}
</button>
<button
:class=
"item.
abnormalCount>0?'tabButton':'tab'"
@
click=
"item.abnormalCount>0?clickNum(item.officeId,2,4):''"
type=
"default"
>
{{
item
.
abnormal
Count
}}
</button>
</uni-td>
</uni-tr>
</uni-table>
<!-- 时间选择器 -->
<view
v-show=
"picTime"
class=
"picTime"
>
<view
class=
"uni-padding-wrap"
>
<button
type=
"default"
@
click=
"picQx"
>
取消
</button>
<button
type=
"default"
@
click=
"picQd"
>
确定
</button>
</view>
<view
class=
"pickers"
>
<picker-view
v-if=
"visible"
:indicator-style=
"indicatorStyle"
:value=
"value"
@
change=
"bindChange"
class=
"picker-view"
>
<picker-view-column>
<view
class=
"item"
v-for=
"(item,index) in years"
:key=
"index"
>
{{
item
}}
年
</view>
</picker-view-column>
<picker-view-column>
<view
class=
"item"
v-for=
"(item,index) in months"
:key=
"index"
>
{{
item
}}
月
</view>
</picker-view-column>
<picker-view-column>
<view
class=
"item"
v-for=
"(item,index) in days"
:key=
"index"
>
{{
item
}}
日
</view>
</picker-view-column>
</picker-view>
</view>
</view>
</view>
</
template
>
...
...
@@ -82,30 +60,6 @@
}
from
'@/api/api.js'
export
default
{
data
()
{
const
date
=
new
Date
()
const
years
=
[]
const
year
=
date
.
getFullYear
()
const
months
=
[]
const
month
=
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
const
days
=
[]
const
day
=
date
.
getDate
()
<
10
?
'0'
+
(
date
.
getDate
())
:
date
.
getDate
()
for
(
let
i
=
date
.
getFullYear
()
-
2
;
i
<=
date
.
getFullYear
();
i
++
)
{
years
.
push
(
i
)
}
for
(
let
i
=
1
;
i
<=
12
;
i
++
)
{
if
(
i
<
10
)
{
months
.
push
(
'0'
+
i
)
}
else
{
months
.
push
(
i
)
}
}
for
(
let
i
=
1
;
i
<=
31
;
i
++
)
{
if
(
i
<
10
)
{
days
.
push
(
'0'
+
i
)
}
else
{
days
.
push
(
i
)
}
}
return
{
userList
:[],
total
:
0
,
...
...
@@ -130,41 +84,43 @@
time
:
''
,
numList
:[],
numData
:
''
,
years
,
months
,
days
,
timers
:
year
+
'-'
+
month
+
'-'
+
day
,
value
:
[
9999
,
month
-
1
,
day
-
1
],
visible
:
true
,
indicatorStyle
:
`height: 50px;`
,
}
},
mounte
d
()
{
onLoa
d
()
{
let
userType
=
uni
.
getStorageSync
(
'userType'
)
this
.
tableData
.
userType
=
userType
;
this
.
loading
=
true
;
let
date
=
new
Date
();
let
mouth
=
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
;
let
dates
=
date
.
getDate
()
<
10
?
'0'
+
(
date
.
getDate
())
:
date
.
getDate
();
let
dates
=
date
.
getDate
()
<
10
?
'0'
+
(
date
.
getDate
())
:
date
.
getDate
();
this
.
time
=
date
.
getFullYear
()
+
"-"
+
mouth
+
"-"
+
dates
;
//表示当前日期
let
data
=
{
type
:
0
,
//0:每日流调,1:临时流调,2:在院流调
createDate
:
this
.
time
}
postRequest
(
'/dailyReportNum/findListByCodeAndType'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'200'
){
let
list
=
res
.
data
;
list
.
forEach
(
item
=>
{
this
.
numList
.
push
(
item
.
num
)
})
this
.
numData
=
this
.
numList
[
0
]
this
.
getList
();
}
})
},
methods
:
{
//时间选择器变化
bindChange
:
function
(
date
)
{
this
.
time
=
date
;
this
.
postLDList
()
},
postLDList
(){
this
.
numList
=
[]
this
.
numData
=
''
this
.
userList
=
[]
let
data
=
{
type
:
0
,
//0:每日流调,1:临时流调,2:在院流调
createDate
:
this
.
time
}
postRequest
(
'/dailyReportNum/findListByCodeAndType'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'200'
){
let
list
=
res
.
data
;
list
.
forEach
(
item
=>
{
this
.
numList
.
push
(
item
.
num
)
})
this
.
getList
();
}
})
},
searchData
(){
if
(
this
.
time
==
''
){
uni
.
showModal
({
...
...
@@ -192,34 +148,13 @@
numInput
(
value
){
this
.
numData
=
value
},
//时间选择器变化
bindChange
:
function
(
e
)
{
const
val
=
e
.
detail
.
value
let
year
=
this
.
years
[
val
[
0
]]
let
month
=
this
.
months
[
val
[
1
]]
let
day
=
this
.
days
[
val
[
2
]]
let
times
=
year
+
'-'
+
month
+
'-'
+
day
;
this
.
time
=
times
;
},
//时间选择器点击取消
picQx
()
{
this
.
picTime
=
false
;
this
.
getList
();
},
picQd
(){
this
.
picTime
=
false
;
this
.
getList
();
},
//点击弹出时间选择器
picXs
()
{
this
.
picTime
=
true
},
getList
(){
let
data
=
{
schedul
:
this
.
time
,
type
:
2
,
reportNum
:
this
.
numData
}
postRequest
(
'/statistics/thirdUserReportedStatistics'
,
data
).
then
((
res
)
=>
{
this
.
userList
=
[]
postRequest
(
'/statistics/reportedResultStatistics'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'200'
&&
res
.
data
.
length
>
0
){
this
.
loading
=
false
;
this
.
userList
=
res
.
data
;
...
...
@@ -236,20 +171,14 @@
})
this
.
userIdlist
=
list
},
pagi
(
e
){
this
.
tableData
.
current
=
e
.
current
;
this
.
getList
()
},
clickNum
(
officeId
,
areaType
,
type
)
{
clickNum
(
officeId
,
type
,
areaType
)
{
let
data
=
{
officeId
,
areaType
,
type
,
schedul
:
this
.
time
,
reportNum
:
this
.
numData
}
uni
.
navigateTo
({
url
:
`/pages/l
ist/dsfList/dsfList
?data=
${
JSON
.
stringify
(
data
)}
`
url
:
`/pages/l
d/sfInfo
?data=
${
JSON
.
stringify
(
data
)}
`
})
}
}
...
...
@@ -257,24 +186,6 @@
</
script
>
<
style
>
.nav
{
padding
:
10px
;
display
:
flex
;
justify-content
:
space-evenly
;
}
.nav
button
{
width
:
32%
;
height
:
10%
;
margin
:
0
3px
;
font-size
:
13px
;
}
.butts
{
background-color
:
#007AFF
;
color
:
white
;
}
.nav
view
button
{
width
:
39%
;
}
.grxxItem
{
border-radius
:
5px
;
padding
:
10px
;
...
...
@@ -284,55 +195,40 @@
/
deep
/
.uni-combox__input
{
font-size
:
14px
;
}
.grxxItem
.ygxm
{
padding
:
10px
;
background-color
:
#3297ff
;
color
:
white
;
}
.grxxItem
.sfzhm
{
padding
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
10px
;
font-size
:
84%
;
color
:
#999999
;
position
:
relative
;
}
.sfzhm
.uni-list-cell-left
{
width
:
30%
;
}
.sfzhm
image
{
width
:
28
rpx
;
height
:
30
rpx
;
}
.sfzhm
input
{
width
:
70%
;
.sfzhm
.uni-list-cell-db
{
flex
:
1
}
.sfzhm
:first-of-type
input
{
width
:
30%
;
}
.grxxItem
.mdd
{
justify-content
:
left
;
flex
:
1
;
}
.grxxItem
.mdd
input
{
width
:
70%
;
margin-left
:
10px
;
.grxxItem
.sfzhm
:last-of-type
{
border
:
none
;
}
.hxx
{
position
:
absolute
;
color
:
red
;
left
:
3px
;
top
:
25%
;
.table
{
width
:
94%
;
margin
:
0
3%
;
}
.grxxItem
.sfzhm
:last-of-type
{
border
:
none
;
}
/* 时间选择器 */
.picTime
{
z-index
:
10
;
...
...
pages/ld/ynInfo.vue
0 → 100644
View file @
166a7ed6
<
template
>
<view
>
<view
class=
"grxx"
>
<view
class=
"grxxItem"
>
<view
class=
"sfzhm"
>
<view
class=
"uni-list-cell-left"
>
姓名:
</view>
<input
type=
"text"
v-model=
"name"
/>
</view>
<view
class=
"sfzhm"
>
<view
class=
"uni-list-cell-left"
>
手机号:
</view>
<view
class=
"uni-list-cell-db"
>
<input
type=
"text"
v-model=
"phone"
/>
</view>
</view>
<view
class=
"sfzhm"
>
<button
size=
"mini"
type=
"primary"
@
click=
"getList"
>
查询
</button>
</view>
</view>
</view>
<uni-table
class=
"table"
:loading=
"loading"
border
stripe
>
<!-- 表头行 -->
<uni-tr>
<uni-th
width=
"22%"
align=
"center"
>
姓名
</uni-th>
<uni-th
width=
"39%"
align=
"center"
>
手机号
</uni-th>
<uni-th
width=
"39%"
align=
"center"
>
所属部门
</uni-th>
</uni-tr>
<!-- 表格数据行 -->
<uni-tr
v-for=
"(item,index) in userList"
:key=
"index"
>
<uni-td
align=
"center"
>
{{
item
.
name
}}
</uni-td>
<uni-td
align=
"center"
>
{{
item
.
phone
}}
</uni-td>
<uni-td
align=
"center"
>
{{
item
.
officeName
}}
</uni-td>
</uni-tr>
</uni-table>
<uni-pagination
show-icon=
"true"
style=
"margin:10px"
:total=
"pagiNation.total"
@
change=
"pagi"
:current=
"pagiNation.current"
></uni-pagination>
</view>
</
template
>
<
script
>
import
{
postRequest
,
getRequest
}
from
'@/api/api.js'
export
default
{
data
()
{
return
{
userList
:
[],
loading
:
false
,
name
:
''
,
phone
:
''
,
pagiNation
:
{
current
:
1
,
size
:
10
,
total
:
0
,
},
type
:
null
,
reportNum
:
null
,
areaType
:
null
,
}
},
onLoad
(
option
)
{
let
userType
=
uni
.
getStorageSync
(
'userType'
)
const
info
=
JSON
.
parse
(
option
.
data
)
this
.
type
=
info
.
type
this
.
reportNum
=
info
.
reportNum
this
.
areaType
=
info
.
areaType
this
.
getList
()
},
methods
:
{
getList
()
{
let
data
=
{
type
:
this
.
type
,
reportNum
:
this
.
reportNum
,
areaType
:
this
.
areaType
,
name
:
this
.
name
,
phone
:
this
.
phone
,
current
:
this
.
pagiNation
.
current
,
}
this
.
userList
=
[]
postRequest
(
'/statistics/reportedResultList'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'200'
&&
res
.
data
.
records
.
length
>
0
)
{
this
.
loading
=
false
;
this
.
userList
=
res
.
data
.
records
;
this
.
pagiNation
.
total
=
res
.
data
.
total
;
}
else
{
this
.
loading
=
false
;
}
})
},
pagi
(
e
)
{
console
.
log
(
e
)
this
.
pagiNation
.
current
=
e
.
current
;
this
.
getList
()
},
}
}
</
script
>
<
style
>
.grxxItem
{
border-radius
:
5px
;
padding
:
10px
;
margin
:
10px
;
box-shadow
:
0px
2px
15px
3px
rgba
(
0
,
0
,
0
,
0.1
);
}
/
deep
/
.uni-combox__input
{
font-size
:
14px
;
}
.grxxItem
.sfzhm
{
padding
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
font-size
:
84%
;
color
:
#999999
;
position
:
relative
;
}
.sfzhm
.uni-list-cell-left
{
width
:
30%
;
}
.sfzhm
image
{
width
:
28
rpx
;
height
:
30
rpx
;
}
.sfzhm
.uni-list-cell-db
{
flex
:
1
}
.sfzhm
:first-of-type
input
{
flex
:
1
;
}
.grxxItem
.sfzhm
:last-of-type
{
border
:
none
;
}
.table
{
width
:
94%
;
margin
:
0
3%
;
}
.tabButton
{
color
:
#007AFF
;
text-decoration
:
underline
;
font-size
:
14px
;
background-color
:
white
;
}
.tabButton
::after
{
border
:
0
;
}
.tab
{
font-size
:
14px
;
background-color
:
white
;
}
.tab
::after
{
border
:
0
;
}
</
style
>
pages/ld/ynmrld.vue
View file @
166a7ed6
<
template
>
<view
class=
"content"
>
<view
class=
"header"
>
<image
src=
"../../static/icon/swiper.png"
mode=
""
></image>
</view>
</view>
</
template
>
<
script
>
</
script
>
<
style
>
<
template
>
<view>
<view
class=
"grxx"
>
<view
class=
"grxxItem"
>
<view
class=
"sfzhm"
>
<view
class=
"uni-list-cell-left"
>
日期:
</view>
<view
class=
"example-body"
>
<uni-datetime-picker
:clearIcon=
"false"
:border=
"false"
type=
"date"
:disabled=
"false"
v-model=
"time"
@
change=
"bindChange"
/>
</view>
</view>
<view
class=
"sfzhm"
>
<view
class=
"uni-list-cell-left"
>
流调名称:
</view>
<view
class=
"uni-list-cell-db"
>
<uni-combox
:candidates=
'numList'
v-model=
"numData"
@
input=
"numInput"
></uni-combox>
</view>
</view>
<view
class=
"sfzhm"
>
<button
size=
"mini"
type=
"primary"
@
click=
"searchData"
>
统计
</button>
</view>
</view>
</view>
<uni-table
class=
"table"
:loading=
"loading"
@
selection-change=
"selects"
border
stripe
>
<!-- 表头行 -->
<uni-tr>
<uni-th
width=
"20%"
align=
"center"
>
部门名称
</uni-th>
<uni-th
width=
"20%"
align=
"center"
>
金山
</uni-th>
<uni-th
width=
"20%"
align=
"center"
>
市区
</uni-th>
<uni-th
width=
"20%"
align=
"center"
>
不在院
</uni-th>
<uni-th
width=
"20%"
align=
"center"
>
体温异常
</uni-th>
</uni-tr>
<!-- 表格数据行 -->
<uni-tr
v-for=
"(item,index) in userList"
:key=
"index"
>
<uni-td
align=
"center"
>
{{
item
.
officeName
}}
</uni-td>
<uni-td
align=
"center"
>
<button
:class=
"item.jsAlreadyCount>0?'tabButton':'tab'"
@
click=
"item.jsAlreadyCount>0?clickNum(item.officeId,1,1):''"
type=
"default"
>
{{
item
.
jsAlreadyCount
}}
</button>
</uni-td>
<uni-td
align=
"center"
>
<button
:class=
"item.sqAlreadyCount>0?'tabButton':'tab'"
@
click=
"item.sqAlreadyCount>0?clickNum(item.officeId,1,2):''"
type=
"default"
>
{{
item
.
sqAlreadyCount
}}
</button>
</uni-td>
<uni-td
align=
"center"
>
<button
:class=
"item.outAlreadyCount>0?'tabButton':'tab'"
@
click=
"item.outAlreadyCount>0?clickNum(item.officeId,1,3):''"
type=
"default"
>
{{
item
.
outAlreadyCount
}}
</button>
</uni-td>
<uni-td
align=
"center"
>
<button
:class=
"item.abnormalCount>0?'tabButton':'tab'"
@
click=
"item.abnormalCount>0?clickNum(item.officeId,1,4):''"
type=
"default"
>
{{
item
.
abnormalCount
}}
</button>
</uni-td>
</uni-tr>
</uni-table>
</view>
</
template
>
<
script
>
import
{
postRequest
,
getRequest
}
from
'@/api/api.js'
export
default
{
data
()
{
return
{
userList
:[],
total
:
0
,
loading
:
false
,
tableData
:{
companyId
:
""
,
current
:
1
,
id
:
""
,
officeId
:
""
,
openId
:
""
,
userType
:
''
,
orders
:
[
{
asc
:
true
,
column
:
""
}
],
size
:
10
},
isnb
:
0
,
picTime
:
false
,
time
:
''
,
numList
:[],
numData
:
''
,
visible
:
true
,
indicatorStyle
:
`height: 50px;`
,
}
},
onLoad
()
{
let
userType
=
uni
.
getStorageSync
(
'userType'
)
this
.
tableData
.
userType
=
userType
;
let
date
=
new
Date
();
let
mouth
=
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
;
let
dates
=
date
.
getDate
()
<
10
?
'0'
+
(
date
.
getDate
())
:
date
.
getDate
();
this
.
time
=
date
.
getFullYear
()
+
"-"
+
mouth
+
"-"
+
dates
;
//表示当前日期
},
methods
:
{
//时间选择器变化
bindChange
:
function
(
date
)
{
this
.
time
=
date
;
this
.
postLDList
()
},
postLDList
(){
this
.
numList
=
[]
this
.
numData
=
''
this
.
userList
=
[]
let
data
=
{
type
:
0
,
//0:每日流调,1:临时流调,2:在院流调
createDate
:
this
.
time
}
postRequest
(
'/dailyReportNum/findListByCodeAndType'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'200'
){
let
list
=
res
.
data
;
list
.
forEach
(
item
=>
{
this
.
numList
.
push
(
item
.
num
)
})
this
.
getList
();
}
})
},
searchData
(){
if
(
this
.
time
==
''
){
uni
.
showModal
({
title
:
'提示'
,
showCancel
:
false
,
content
:
'时间不能为空'
,
success
:
function
(
res
)
{
}
})
}
if
(
this
.
numData
==
''
){
uni
.
showModal
({
title
:
'提示'
,
showCancel
:
false
,
content
:
'流调编号不能为空'
,
success
:
function
(
res
)
{
}
})
}
else
{
this
.
getList
();
}
},
numInput
(
value
){
this
.
numData
=
value
},
getList
(){
let
data
=
{
type
:
1
,
reportNum
:
this
.
numData
}
this
.
userList
=
[]
postRequest
(
'/statistics/reportedResultStatistics'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'200'
&&
res
.
data
.
length
>
0
){
this
.
loading
=
false
;
this
.
userList
=
res
.
data
;
}
else
{
this
.
loading
=
false
;
}
})
},
selects
(
ss
){
let
list
=
[]
let
index
=
ss
.
detail
.
index
;
index
.
forEach
(
item
=>
{
list
.
push
(
this
.
userList
[
item
].
id
)
})
this
.
userIdlist
=
list
},
clickNum
(
officeId
,
type
,
areaType
)
{
let
data
=
{
areaType
,
type
,
reportNum
:
this
.
numData
}
uni
.
navigateTo
({
url
:
`/pages/ld/ynInfo?data=
${
JSON
.
stringify
(
data
)}
`
})
}
}
}
</
script
>
<
style
>
.grxxItem
{
border-radius
:
5px
;
padding
:
10px
;
margin
:
10px
;
box-shadow
:
0px
2px
15px
3px
rgba
(
0
,
0
,
0
,
0.1
);
}
/
deep
/
.uni-combox__input
{
font-size
:
14px
;
}
.grxxItem
.sfzhm
{
padding
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
font-size
:
84%
;
color
:
#999999
;
position
:
relative
;
}
.sfzhm
.uni-list-cell-left
{
width
:
30%
;
}
.sfzhm
image
{
width
:
28
rpx
;
height
:
30
rpx
;
}
.sfzhm
.uni-list-cell-db
{
flex
:
1
}
.sfzhm
:first-of-type
input
{
flex
:
1
;
}
.grxxItem
.sfzhm
:last-of-type
{
border
:
none
;
}
.table
{
width
:
94%
;
margin
:
0
3%
;
}
/* 时间选择器 */
.picTime
{
z-index
:
10
;
height
:
100%
;
width
:
100%
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
position
:
fixed
;
bottom
:
0
;
left
:
0
;
}
.uni-padding-wrap
{
position
:
absolute
;
bottom
:
400
rpx
;
left
:
0
;
width
:
750
rpx
;
background-color
:
white
;
display
:
flex
;
justify-content
:
center
;
padding
:
10px
0
;
}
.uni-padding-wrap
button
{
height
:
30px
;
line-height
:
30px
;
font-size
:
15px
;
}
.uni-padding-wrap
button
:last-of-type
{
background-color
:
#007AFF
;
color
:
white
;
}
.pickers
{
position
:
fixed
;
bottom
:
0
;
left
:
0
;
text-align
:
center
;
width
:
750
rpx
;
height
:
400
rpx
;
margin-top
:
20
rpx
;
background-color
:
white
;
}
.pickers
.picker-view
{
width
:
750
rpx
;
height
:
400
rpx
;
margin-top
:
20
rpx
;
background-color
:
white
;
}
.tabButton
{
color
:
#007AFF
;
text-decoration
:
underline
;
font-size
:
14px
;
background-color
:
white
;
}
.tabButton
::after
{
border
:
0
;
}
.tab
{
font-size
:
14px
;
background-color
:
white
;
}
.tab
::after
{
border
:
0
;
}
</
style
>
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