123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <template>
- <view>
- <u-navbar
- :title="title"
- title-color="#fff"
- :is-back="true"
- :custom-back="customBack"
- :border-bottom="false"
- back-icon-color="#CCE8FF"
- :background="{background: 'linear-gradient(99deg, #7A4398 0%, #5A5DB9 100%)' }">
- <view class="navbar-right" slot="right" @click="handleReport">
- <text>登记</text>
- </view>
- </u-navbar>
- <mescroll-uni ref="mescrollRef01" @init="mescrollInit" :top="config.platform=='h5'?100:180" :down="downOption" @down="downCallback" :up="upOption" @up="upCallback" @emptyclick="emptyClick">
- <view class="report-list">
- <view class="report-list-item" :class="{'arrearage':item.vehicleNoStatus}" v-for="item in dataList" :key="item.id"
- @click="goDetails(item.id)">
- <view class="u-flex u-row-between u-m-b-20">
- <text>路段/停车场{{item.roadName}}</text>
- <text class="u-tips-color">{{$u.timeFormat(item.createTime, 'mm月dd日hh:MM')}}</text>
- </view>
- <view class="u-flex u-row-between u-m-b-20">
- <text class="u-line-1">收费员:{{item.payeeName}}</text>
- <u-icon name="arrow-right" color="#ddd" size="28"></u-icon>
- </view>
- <view class="u-flex u-row-between">
- <text class="u-line-1">问题类型:{{item.payeeExceptionTypeName}}</text>
- </view>
- </view>
- </view>
- </mescroll-uni>
- </view>
- </template>
- <script>
- import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
- export default{
- mixins: [MescrollMixin],
- components:{
-
- },
- data(){
- return{
- title:"巡查收费员",
- downOption:{
- auto:false
- },
- upOption:{
- page: {
- size: 10
- },
- auto:true,
-
- noMoreSize: 4,
- empty:{
- tip: '~ 暂无数据 ~',
-
- }
- },
- dataList:[],
- }
- },
- onLoad(page){
- console.log('page',page);
- },
- onShow(){
- },
- methods:{
- customBack(){
- this.$u.route({
- url: 'pages/index/index',
- type:'switchTab'
- })
- },
- openPage(path,id) {
- this.$u.route({
- url: path,
- params:{
- id:id
- }
- })
- },
- goDetails(id){
- this.$u.route({
- url: 'pages/report/payeeReport/details',
- params:{
- id:id
- }
- })
- },
-
- upCallback(page) {
-
- let params ={
- pageNum:page.num,
- pageSize:page.size
- };
- this.$u.api.payeeReportList(params).then(curPageData=>{
-
- console.log('curPageData',curPageData);
-
- this.mescroll.endSuccess(curPageData.data.total);
- this.mescroll.endBySize(curPageData.data.rows.length, curPageData.data.total);
-
- if(page.num == 1) this.dataList = [];
- this.dataList=this.dataList.concat(curPageData.data.rows);
- console.log('this.dataList',this.dataList);
- }).catch(()=>{
- console.log('catch');
-
- this.mescroll.endErr();
- })
- },
-
- emptyClick(){
- uni.showToast({
- title:'点击了按钮,具体逻辑自行实现'
- })
- },
- refresh(){
- this.mescroll.resetUpScroll( );
- },
- handleReport(){
- console.log('handleReport');
- this.$u.route({
- url: 'pages/report/payeeReport/report',
-
- })
- }
- }
- }
- </script>
- <style>
- page{background-color: #F3F3F3;}
- </style>
- <style lang="scss" scoped>
- @import '../report.scss'
- </style>
|