<template>
|
<view>
|
<u-sticky bgColor="white">
|
<view class="set-search">
|
<u-search placeholder="请输入" @search="search" @blur="search" shape="square" :showAction="false"></u-search>
|
</view>
|
<view class="border"></view>
|
<u-tabs :list="list" @change="click" :current="current" :scrollable="false" bgColor="white"></u-tabs>
|
</u-sticky>
|
<view class="item" v-for="(item,index) in list1">
|
<img src="/static/i05.png" class="img" alt="" />
|
<view class="right">
|
<view class="name">
|
<view class="l">
|
{{item.companyName}}
|
</view>
|
<template v-if="item.complaintStatus==0">
|
<view class="r color2">
|
待响应
|
</view>
|
</template>
|
<template v-if="item.complaintStatus==1">
|
<view class="r color1">
|
处理中
|
</view>
|
</template>
|
<template v-if="item.complaintStatus==2">
|
<view class="r color3">
|
已办结
|
</view>
|
</template>
|
<!-- <view class="r color1">
|
待评价
|
</view> -->
|
<template v-if="item.complaintStatus==-1">
|
<view class="r color4">
|
已驳回
|
</view>
|
</template>
|
</view>
|
<view class="box">
|
<view class="l">
|
<p>执法单位:{{item.executeDeptName}}</p>
|
<p>投诉时间:{{item.complaintTime}}</p>
|
</view>
|
<view class="r" @click="chakan(item.id, item.orderId)">
|
去查看
|
</view>
|
</view>
|
</view>
|
</view>
|
<u-empty v-if="!list1.length"></u-empty>
|
<!-- <view class="item">
|
<img src="/static/i05.png" class="img" alt="" />
|
<view class="right">
|
<view class="name">
|
<view class="l">
|
北京尚策互动科技有限公司北京尚策互动科技有限公司北京尚策互动科技有限公司北京尚策互动科技有限公司北京尚策互动科技有限公司
|
</view>
|
<view class="r color2">
|
待评价
|
</view>
|
</view>
|
<view class="box">
|
<view class="l">
|
<p>执法单位:农业农村局农业农村局农业农村局农业农村局农业农村局农业农村局s</p>
|
<p>执法时间:2024-06-03 12:30:67</p>
|
</view>
|
<view class="r">
|
去查看
|
</view>
|
</view>
|
</view>
|
</view>
|
<view class="item">
|
<img src="/static/i05.png" class="img" alt="" />
|
<view class="right">
|
<view class="name">
|
<view class="l">
|
北京尚策互动科技有限公司北京尚策互动科技有限公司北京尚策互动科技有限公司北京尚策互动科技有限公司北京尚策互动科技有限公司
|
</view>
|
<view class="r color3">
|
待评价
|
</view>
|
</view>
|
<view class="box">
|
<view class="l">
|
<p>执法单位:农业农村局</p>
|
<p>执法时间:2024-06-03 12:30:67</p>
|
</view>
|
<view class="r">
|
去查看
|
</view>
|
</view>
|
</view>
|
</view> -->
|
<view style="height: 50rpx;"></view>
|
|
</view>
|
</template>
|
|
<script>
|
import { logList } from '@/api/qiye.js'
|
|
export default {
|
data() {
|
return {
|
current: 0,
|
list: [{
|
name: '全部',
|
value: ''
|
}, {
|
name: '待响应',
|
value: 0
|
}, {
|
name: '处理中',
|
value: 1
|
}, {
|
name: '已办结',
|
value: 2
|
}],
|
list1:[],
|
queryParams: {
|
pageNum: 1,
|
pageSize: 10,
|
companyId:'',
|
},
|
total: 1,
|
}
|
},
|
onLoad() {
|
this.list1 = []
|
this.queryParams.pageNum = 1
|
this.getList()
|
},
|
onReachBottom() {
|
if(this.list1.length == this.total) {
|
return
|
}
|
this.queryParams.pageNum++
|
this.getList()
|
},
|
methods: {
|
chakan(id,orderId){
|
uni.navigateTo({
|
url: `/qiye/complaint/details?id=${id}&orderId=${orderId}`
|
})
|
},
|
getList() {
|
let data = uni.getStorageSync("qiyedata")
|
this.queryParams.companyId = data.companyId
|
logList({...this.queryParams}).then(val => {
|
console.log(val.data)
|
this.total = val.data.total
|
this.list1 = [...this.list1,...val.data.rows]
|
})
|
},
|
search(e){
|
this.list1 = []
|
this.queryParams.pageNum =1
|
this.queryParams.companyName = e
|
this.getList()
|
},
|
click(i) {
|
this.list1 = []
|
this.queryParams.pageNum = 1
|
this.queryParams.complaintStatus = this.list[i.index].value
|
|
this.getList()
|
}
|
}
|
}
|
</script>
|
|
<style>
|
page {
|
background-color: #F4F4F4;
|
}
|
</style>
|
<style lang="scss" scoped>
|
.set-search{
|
margin: 0 32rpx 0;
|
padding-top: 26rpx;
|
|
}
|
.border{
|
border-bottom: 2rpx solid #F6F6F6;
|
margin: 20rpx 0 0;
|
}
|
|
.item{
|
background: #fff;
|
border-radius: 5px;
|
padding: 24rpx;
|
box-sizing: border-box;
|
margin: 20rpx 32rpx;
|
display: flex;
|
.img{
|
width: 56rpx;
|
height: 56rpx;
|
}
|
.right{
|
width: 90%;
|
.name{
|
display: flex;
|
justify-content: space-between;
|
.l{
|
color: #202d44;
|
font-size: 32rpx;
|
line-height: 44rpx;
|
margin-bottom: 24rpx;
|
width: 80%;
|
}
|
.r{
|
font-size: 28rpx;
|
width: 20%;
|
text-align: right;
|
}
|
}
|
.box{
|
display: flex;
|
justify-content: space-between;
|
.l{
|
font-size: 26rpx;
|
color: #7e8593;
|
max-width: 80%;
|
}
|
.r{
|
width: 132rpx;
|
height: 64rpx;
|
line-height: 64rpx;
|
border-radius: 5px;
|
border: 1px solid #ABD2FF;
|
background: #F0F8FF;
|
color: #1171e0;
|
text-align: center;
|
font-size: 30rpx;
|
}
|
}
|
}
|
}
|
.color1{
|
color: #FE7B32;
|
}
|
.color2{
|
color: #EB4746;
|
|
}
|
.color3{
|
color: #3EB47A;
|
|
}
|
.color4{
|
color: gray;
|
}
|
</style>
|