346149741
2024-06-22 ade1aa658df84e8b52f5d1dfa9d2971da5cdad55
qiye/record/record.vue
@@ -1,31 +1,43 @@
<template>
   <view>
      <u-sticky bgColor="white">
         <u-tabs :list="list1" @click="click" :scrollable="false" bgColor="white"></u-tabs>
         <u-tabs :list="list" @change="click" :current="current" :scrollable="false" bgColor="white"></u-tabs>
      </u-sticky>
      <view class="item">
      <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>
               <view class="r color1">
                  待评价
               </view>
               <template v-if="item.orderStatus==2">
                  <view class="r color2">
                     未执法
                  </view>
               </template>
               <template v-if="item.orderStatus>2&&item.isEva==0">
                  <view class="r color1">
                     待评价
                  </view>
               </template>
               <template v-if="item.orderStatus>2&&item.isEva==1">
                  <view class="r color3">
                     已评价
                  </view>
               </template>
            </view>
            <view class="box">
               <view class="l">
                  <p>执法单位:农业农村局</p>
                  <p>执法时间:2024-06-03 12:30:67</p>
                  <p>执法单位:{{item.executeDeptName}}</p>
                  <p>执法时间:{{item.executeTime}}</p>
               </view>
               <view class="r">
               <view class="r" @click="chakan(item.orderId)">
                  去查看
               </view>
            </view>
         </view>
      </view>
      <view class="item">
      <!-- <view class="item">
         <img src="/static/i05.png" class="img" alt="" />
         <view class="right">
            <view class="name">
@@ -68,7 +80,7 @@
               </view>
            </view>
         </view>
      </view>
      </view> -->
      <view style="height: 150rpx;"></view>
      <tabsCom :activeNumber.sync="activeNumber"></tabsCom>
@@ -77,6 +89,7 @@
<script>
   import tabsCom from '@/qiye/components/bottom.vue'
   import { companyList } from '@/api/qiye.js'
   export default {
      components: {
@@ -85,7 +98,7 @@
      data() {
         return {
            activeNumber: 1,
            list1: [{
            list: [{
               name: '全部',
            }, {
               name: '待评价',
@@ -93,12 +106,61 @@
               name: '未执法',
            }, {
               name: '已评价',
            }]
            }],
            current: 0,
            list1:[],
            queryParams: {
               pageNum: 1,
               pageSize: 10,
               companyId:'',
            },
            total: 1,
         }
      },
      onShow() {
         this.list1 = []
         this.queryParams.pageNum = 1
         this.getList()
      },
      onReachBottom() {
         if(this.list1.length == this.total) {
            return
         }
         this.queryParams.pageNum++
         this.getList()
      },
      methods: {
         click() {
      methods: {
         chakan(id){
            uni.navigateTo({
               url: `/qiye/record/details?id=${id}`
            })
         },
         getList() {
            let data = uni.getStorageSync("qiyedata")
            this.queryParams.companyId = data.companyId
            companyList({...this.queryParams}).then(val => {
               // console.log(val.data)
               this.total = val.data.total
               this.list1 = [...this.list1,...val.data.rows]
            })
         },
         click(i) {
            this.list1 = []
            this.queryParams.pageNum = 1
            console.log(i.index)
            // if(i.index==0){
            // }
            if(i.index==1){
               this.queryParams.isEva = 0
            }
            if(i.index==2){
               this.queryParams.orderStatus = 2
            }
            if(i.index==3){
               this.queryParams.isEva = 1
            }
            this.getList()
         }
      }
   }
@@ -164,13 +226,15 @@
   }
   .color1{
      color: #FE7B32;
      //cheng
   }
   .color2{
      color: #EB4746;
      
      //hong
   }
   .color3{
      color: #3EB47A;
      //lv
   }
</style>