Commit 166a7ed6 authored by levante's avatar levante

Merge branch 'master' of ssh://git.omniview.pro:256/Oishii/covid

parents e1dca37e 7cfa44ff
No preview for this file type
// let baseURL1 = "http://www.rangertech.com.cn";//测试 // let baseURL1 = "http://www.rangertech.com.cn";//测试
// let baseURL1 = 'http://10.81.8.103:8181' // 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://localhost:8181";
//let baseURL1 = "http://289f65x458.qicp.vip"; //let baseURL1 = "http://289f65x458.qicp.vip";
//let baseURL1 = "https://rysbsj.shaphc.org:30443"; //钉钉 //let baseURL1 = "https://rysbsj.shaphc.org:30443"; //钉钉
......
...@@ -4,16 +4,16 @@ ...@@ -4,16 +4,16 @@
"dependencies": { "dependencies": {
"dingtalk-jsapi": { "dingtalk-jsapi": {
"version": "2.13.51", "version": "2.13.51",
"resolved": "https://registry.npmjs.org/dingtalk-jsapi/-/dingtalk-jsapi-2.13.51.tgz", "resolved": "https://registry.nlark.com/dingtalk-jsapi/download/dingtalk-jsapi-2.13.51.tgz",
"integrity": "sha512-gm/9eLdNCUVZzOt0vLKJ2l2QoQK7CBNrYP7b86EMy9NKO6xg4QI7aYAObtde9+u6OTroF9dTsax6ngvx2fA5Gw==", "integrity": "sha1-j9vXR4mcHgPeXBcFyn8Qk94Z5uI=",
"requires": { "requires": {
"promise-polyfill": "^7.1.0" "promise-polyfill": "^7.1.0"
} }
}, },
"promise-polyfill": { "promise-polyfill": {
"version": "7.1.2", "version": "7.1.2",
"resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-7.1.2.tgz", "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%2Fpromise-polyfill-7.1.2.tgz",
"integrity": "sha512-FuEc12/eKqqoRYIGBrUptCBRhobL19PS2U31vMNTfyck1FxPyMfgsXyW4Mav85y/ZN1hop3hOwRlUDok23oYfQ==" "integrity": "sha1-qwUwHYwoU2MBYi1pInYyJppwyjs="
} }
} }
} }
...@@ -303,6 +303,26 @@ ...@@ -303,6 +303,26 @@
"enablePullDownRefresh": false "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", "path" : "pages/mrldgl/ldMain",
"style" : "style" :
......
<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: 28rpx;
height: 30rpx;
}
.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>
...@@ -2,76 +2,54 @@ ...@@ -2,76 +2,54 @@
<view> <view>
<view class="grxx"> <view class="grxx">
<view class="grxxItem"> <view class="grxxItem">
<view class="sfzhm" @click="picXs"> <view class="sfzhm" >
<text>日期</text> <view class="uni-list-cell-left">
<input type="text" v-model="time" placeholder="请选择日期" /> 日期:
<image src="../../static/icon/rili.png" mode=""></image> </view>
<view class="example-body">
<uni-datetime-picker :clearIcon="false" :border="false" type="date" :disabled="false" v-model="time" @change="bindChange" />
</view>
</view> </view>
<view class="sfzhm"> <view class="sfzhm">
<view class="uni-list-cell-left"> <view class="uni-list-cell-left">
流调名称 流调名称:
</view> </view>
<view class="uni-list-cell-db"> <view class="uni-list-cell-db">
<uni-combox :candidates='numList' v-model="numData" @input="numInput"></uni-combox> <uni-combox :candidates='numList' v-model="numData" @input="numInput"></uni-combox>
</view> </view>
</view> </view>
<view class="sfzhm"> <view class="sfzhm">
<button type="primary" @click="searchData">统计</button> <button size="mini" type="primary" @click="searchData">统计</button>
</view> </view>
</view> </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-tr>
<uni-th width="70" rowspan="2" align="center">机构</uni-th> <uni-th width="20%" align="center">部门名称</uni-th>
<uni-th align="center" colspan="2">全部</uni-th> <uni-th width="20%" align="center">金山</uni-th>
<uni-th align="center">金山</uni-th> <uni-th width="20%" align="center">市区</uni-th>
<uni-th align="center">市区</uni-th> <uni-th width="20%" align="center" >不在院</uni-th>
</uni-tr> <uni-th width="20%" align="center" >体温异常</uni-th>
<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-tr> </uni-tr>
<!-- 表格数据行 --> <!-- 表格数据行 -->
<uni-tr v-for="(item,index) in userList" :key="index"> <uni-tr v-for="(item,index) in userList" :key="index">
<uni-td align="center">{{item.officeName}}</uni-td> <uni-td align="center">{{item.officeName}}</uni-td>
<uni-td align="center"> <uni-td align="center">
<button :class="item.noneCount>0?'tabButton':'tab'" @click="item.noneCount>0?clickNum(item.officeId,null,0):''" type="default">{{item.noneCount}}</button> <button :class="item.jsAlreadyCount>0?'tabButton':'tab'" @click="item.jsAlreadyCount>0?clickNum(item.officeId,2,1):''" type="default">{{item.jsAlreadyCount}}</button>
</uni-td> </uni-td>
<uni-td align="center"> <uni-td align="center">
<button :class="item.alreadyCount>0?'tabButton':'tab'" @click="item.alreadyCount>0?clickNum(item.officeId,null,1):''" type="default">{{item.alreadyCount}}</button> <button :class="item.sqAlreadyCount>0?'tabButton':'tab'" @click="item.sqAlreadyCount>0?clickNum(item.officeId,2,2):''" type="default">{{item.sqAlreadyCount}}</button>
</uni-td> </uni-td>
<uni-td align="center"> <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> <button :class="item.outAlreadyCount>0?'tabButton':'tab'" @click="item.outAlreadyCount>0?clickNum(item.officeId,2,3):''" type="default">{{item.outAlreadyCount}}</button>
</uni-td> </uni-td>
<uni-td align="center"> <uni-td align="center">
<button :class="item.sqAlreadyCount>0?'tabButton':'tab'" @click="item.sqAlreadyCount>0?clickNum(item.officeId,2,1):''" type="default">{{item.sqAlreadyCount}}</button> <button :class="item.abnormalCount>0?'tabButton':'tab'" @click="item.abnormalCount>0?clickNum(item.officeId,2,4):''" type="default">{{item.abnormalCount}}</button>
</uni-td> </uni-td>
</uni-tr> </uni-tr>
</uni-table> </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> </view>
</template> </template>
...@@ -82,30 +60,6 @@ ...@@ -82,30 +60,6 @@
} from '@/api/api.js' } from '@/api/api.js'
export default { export default {
data() { 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 { return {
userList:[], userList:[],
total:0, total:0,
...@@ -130,41 +84,43 @@ ...@@ -130,41 +84,43 @@
time:'', time:'',
numList:[], numList:[],
numData:'', numData:'',
years,
months,
days,
timers: year + '-' + month + '-' + day,
value: [9999, month - 1, day - 1],
visible: true, visible: true,
indicatorStyle: `height: 50px;`, indicatorStyle: `height: 50px;`,
} }
}, },
mounted() { onLoad() {
let userType=uni.getStorageSync('userType') let userType=uni.getStorageSync('userType')
this.tableData.userType= userType; this.tableData.userType= userType;
this.loading=true;
let date = new Date(); let date = new Date();
let mouth = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1; 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; //表示当前日期 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: { 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(){ searchData(){
if(this.time==''){ if(this.time==''){
uni.showModal({ uni.showModal({
...@@ -192,34 +148,13 @@ ...@@ -192,34 +148,13 @@
numInput(value){ numInput(value){
this.numData = 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(){ getList(){
let data={ let data={
schedul:this.time, type:2,
reportNum:this.numData 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){ if(res.code=='200' && res.data.length>0){
this.loading=false; this.loading=false;
this.userList=res.data; this.userList=res.data;
...@@ -236,20 +171,14 @@ ...@@ -236,20 +171,14 @@
}) })
this.userIdlist=list this.userIdlist=list
}, },
pagi(e){ clickNum(officeId,type,areaType) {
this.tableData.current=e.current;
this.getList()
},
clickNum(officeId,areaType,type) {
let data={ let data={
officeId,
areaType, areaType,
type, type,
schedul:this.time,
reportNum:this.numData reportNum:this.numData
} }
uni.navigateTo({ uni.navigateTo({
url:`/pages/list/dsfList/dsfList?data=${JSON.stringify(data)}` url:`/pages/ld/sfInfo?data=${JSON.stringify(data)}`
}) })
} }
} }
...@@ -257,24 +186,6 @@ ...@@ -257,24 +186,6 @@
</script> </script>
<style> <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 { .grxxItem {
border-radius: 5px; border-radius: 5px;
padding: 10px; padding: 10px;
...@@ -284,55 +195,40 @@ ...@@ -284,55 +195,40 @@
/deep/.uni-combox__input{ /deep/.uni-combox__input{
font-size: 14px; font-size: 14px;
} }
.grxxItem .ygxm {
padding: 10px;
background-color: #3297ff;
color: white;
}
.grxxItem .sfzhm { .grxxItem .sfzhm {
padding: 10px; padding: 10px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 10px;
font-size: 84%; font-size: 84%;
color: #999999; color: #999999;
position: relative; position: relative;
} }
.sfzhm .uni-list-cell-left{
width:30%;
}
.sfzhm image { .sfzhm image {
width: 28rpx; width: 28rpx;
height: 30rpx; height: 30rpx;
} }
.sfzhm input { .sfzhm .uni-list-cell-db{
width: 70%; flex:1
} }
.sfzhm:first-of-type input { .sfzhm:first-of-type input {
width: 30%; flex:1;
}
.grxxItem .mdd {
justify-content: left;
} }
.grxxItem .mdd input { .grxxItem .sfzhm:last-of-type {
width: 70%; border: none;
margin-left: 10px;
} }
.hxx { .table {
position: absolute; width:94%;
color: red; margin: 0 3%;
left: 3px;
top: 25%;
} }
.grxxItem .sfzhm:last-of-type {
border: none;
}
/* 时间选择器 */ /* 时间选择器 */
.picTime { .picTime {
z-index: 10; z-index: 10;
......
<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: 28rpx;
height: 30rpx;
}
.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>
<template> <template>
<view class="content"> <view>
<view class="header"> <view class="grxx">
<image src="../../static/icon/swiper.png" mode=""></image> <view class="grxxItem">
</view> <view class="sfzhm" >
</view> <view class="uni-list-cell-left">
</template> 日期:
</view>
<script> <view class="example-body">
</script> <uni-datetime-picker :clearIcon="false" :border="false" type="date" :disabled="false" v-model="time" @change="bindChange" />
</view>
<style> </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: 28rpx;
height: 30rpx;
}
.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: 400rpx;
left: 0;
width: 750rpx;
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: 750rpx;
height: 400rpx;
margin-top: 20rpx;
background-color: white;
}
.pickers .picker-view {
width: 750rpx;
height: 400rpx;
margin-top: 20rpx;
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> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment