王恒
2025-09-04 616e6be49d3f64f2397cb1b1c05d2c06df3db9a3
policy/applyLook/applyLook.vue
@@ -2,7 +2,8 @@
   <view class="page-box">
      <u-sticky bgColor="white"  :offsetTop="0" style="    position: -webkit-sticky;">
         <view class="set-search">
            <u-search placeholder="请输入申请记录关键词 " @search="search" @blur="search" shape="square" :showAction="false"></u-search>
        <u-search placeholder="请输入申请记录关键词 " @search="search" @blur="search" shape="square"
          :showAction="false"></u-search>
         </view>
         <view class="border"></view>
         <u-tabs :list="list1" @click="click" :current="current" :scrollable="false" bgColor="white"></u-tabs>
@@ -10,17 +11,18 @@
      <view class="list">
         <view class="list-item" @click="goReport(item.orderId)" v-for="(item,index) in dataList" :key="index">
            <view class="top-title">
               <text>{{item.enforceReason}}</text>
               <text class="status" v-if="item.checkStatus != -1" :class="{status1: item.orderStatus == 1,status2: item.orderStatus == 2,status3: item.orderStatus == 3,status4: item.orderStatus == 4}">{{mapStatus[item.orderStatus]}}</text>
          <text>{{item.enforceReason}}<text class="together" v-if="item.orderType == 2">(综合检查)</text></text>
          <text class="status" v-if="item.checkStatus != -1"
            :class="{status1: item.orderStatus == 1,status2: item.orderStatus == 2,status3: item.orderStatus == 3,status4: item.orderStatus == 4}">{{mapStatus[item.orderStatus]}}</text>
               <text class="status status4" v-else >已拒绝</text>
            </view>
            <view class="user-info">
               <text>{{item.applyUser}}</text>
          <text>{{item.applyUser || ''}}</text>
               <!-- <view class="driver"></view> -->
            </view>
            <view class="user-info">
               <text>{{item.applyDeptName}}</text>
          <text>{{item.applyDeptName || item.applyDeptNames || ''}}</text>
            </view>
            <view class="set-line">
               <text>执法对象:</text>{{item.companyName}}
@@ -29,7 +31,7 @@
            <view class="set-flex set-start set-flex-content-between">
               <view>
                  <view class="set-line1">
                     <text>执法时间:</text>{{item.planTime}}
              <text>执法时间:</text>{{item.planTime || item.planMonth || ''}}
                  </view>
                  <view class="set-line1">
                     <text>申请时间:</text>{{item.applyTime}}
@@ -43,7 +45,9 @@
</template>
<script>
   import { commonList } from '@/api/policy.js'
  import {
    commonList
  } from '@/api/policy.js'
   export default {
      data() {
         return {
@@ -120,7 +124,10 @@
         },
         orderList() {
            const userInfo = uni.getStorageSync('userInfo')
            commonList({...this.queryParams, ...this.list1[this.current].value}).then(val => {
        commonList({
          ...this.queryParams,
          ...this.list1[this.current].value
        }).then(val => {
               this.total = val.data.total
               this.dataList = [...this.dataList,...val.data.rows]
            })
@@ -141,7 +148,14 @@
</style>
<style lang="scss" scoped>
   @import "./applyLook.scss";
   ::v-deep .u-sticky{
          position: -webkit-sticky;
   }
  .together {
    margin-left: 10rpx;
    font-size: 24rpx;
    color: #ff0000;
  }
</style>