wjt
2024-06-25 244d89b41c0e0e995d38f635a126a0959b9ba25b
qiye/record/record.vue
@@ -1,6 +1,10 @@
<template>
   <view>
      <u-sticky bgColor="white">
         <u-navbar title="执法记录" :autoBack="true" placeholder>
            <view slot="left"></view>
         </u-navbar>
         <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">
@@ -28,8 +32,8 @@
            </view>
            <view class="box">
               <view class="l">
                  <p>执法单位:{{item.executeDeptName}}</p>
                  <p>执法时间:{{item.executeTime}}</p>
                  <p>执法单位:{{item.executeDeptName|| item.applyDeptName}}</p>
                  <p>执法时间:{{item.inTime || item.planTime}}</p>
               </view>
               <view class="r" @click="chakan(item.orderId)">
                  去查看
@@ -37,6 +41,7 @@
            </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">
@@ -89,7 +94,9 @@
<script>
   import tabsCom from '@/qiye/components/bottom.vue'
   import { companyList } from '@/api/qiye.js'
   import {
      companyList
   } from '@/api/qiye.js'
   export default {
      components: {
@@ -100,12 +107,24 @@
            activeNumber: 1,
            list: [{
               name: '全部',
               value: {
               }
            }, {
               name: '待评价',
               value: {
                  isEva: 0
               }
            }, {
               name: '未执法',
               value: {
                  orderStatus: 2
               }
            }, {
               name: '已评价',
               value: {
                  isEva: 1
               }
            }],
            current: 0,
            list1:[],
@@ -138,7 +157,10 @@
         getList() {
            let data = uni.getStorageSync("qiyedata")
            this.queryParams.companyId = data.companyId
            companyList({...this.queryParams}).then(val => {
            companyList({
               ...this.queryParams,
               ...this.list[this.current].value
            }).then(val => {
               // console.log(val.data)
               this.total = val.data.total
               this.list1 = [...this.list1,...val.data.rows]
@@ -147,19 +169,18 @@
         click(i) {
            this.list1 = []
            this.queryParams.pageNum = 1
            console.log(i.index)
            // if(i.index==0){
            this.current = i.index
            // console.log(i.index)
               
            // if(i.index==1){
            //    this.queryParams.isEva = 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
            }
            // if(i.index==2){
            //    this.queryParams.orderStatus = 2
            // }
            // if(i.index==3){
            //    this.queryParams.isEva = 1
            // }
            this.getList()
         }
      }
@@ -172,7 +193,6 @@
   }
</style>
<style lang="scss" scoped>
   .item{
      background: #fff;
      border-radius: 5px;
@@ -180,15 +200,19 @@
      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;
@@ -196,20 +220,24 @@
               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;
@@ -224,15 +252,18 @@
         }
      }
   }
   .color1{
      color: #FE7B32;
      //cheng
   }
   .color2{
      color: #EB4746;
      
      //hong
   }
   .color3{
      color: #3EB47A;
      //lv