王恒
2025-09-26 28ab9da809aa7c5d42e1871af5fd10c2de09ac66
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<template>
  <view class="page-box">
    <u-sticky bgColor="white">
      <view class="padding">
        <u-search placeholder="请输入申请记录关键词" v-model="queryParams.enforceReason" @clear="clean" shape="square"
          @confirm="search" :showAction="false"></u-search>
      </view>
    </u-sticky>
    <view class="list">
      <view class="list-item" @click="goReport(item.orderId)" v-for="(item,index) in list" :key="index">
        <view class="top-title">
          <text>{{item.enforceReason}}</text>
          <text class="status">已结束</text>
        </view>
        <view class="user-info">
          <text>{{item.executeUser}}</text>
          <!-- <view class="driver"></view>
                     <text>{{item.executeDeptName}}</text> -->
        </view>
        <view class="user-info">
          <!-- <text>{{item.executeUser}}</text>
                    <view class="driver"></view> -->
          <text>{{item.executeDeptName}}</text>
        </view>
        <view class="set-line">
          <text>执法对象:</text>{{item.companyName}}
        </view>
        <view class="line"></view>
        <view class="set-flex set-start set-flex-content-between">
          <view>
            <view class="set-line1">
              <text>执法时间:</text>{{item.planTime || item.planMonth || ''}}
            </view>
            <view class="set-line1">
              <text>申请时间:</text>{{item.applyTime || ''}}
            </view>
          </view>
          <!-- <view class="button" @click="goReport(item.orderId)" >
                         上报
                     </view> -->
        </view>
      </view>
      <u-empty v-if="!list.length" mode="data"></u-empty>
 
 
    </view>
  </view>
</template>
 
<script>
  import {
    executeList
  } from '@/api/policy.js'
  export default {
    data() {
      return {
        list: [],
        total: 1,
        queryParams: {
          pageNum: 1,
          pageSize: 10,
          orderStatus: 4,
          isAsc: "desc",
          orderByColumn: "execute_time"
        },
        searchContent: ''
      }
    },
    onShow() {
      this.queryParams.pageNum = 1
      this.list = []
      this.executeList()
    },
    onReachBottom() {
      if (this.list.length == this.total) {
        return
      }
      this.queryParams.pageNum++
      this.executeList()
    },
    methods: {
      clean() {
        this.queryParams.enforceReason = ""
        this.list = []
        this.executeList()
      },
      search() {
        this.queryParams.pageNum = 1
        this.list = []
        this.executeList()
      },
      goReport(order) {
        uni.navigateTo({
          url: `/policy/applyRecordDetails/applyRecordDetails?id=${order}`
        })
      },
      click() {
 
      },
      executeList() {
        executeList(this.queryParams).then(val => {
          this.list = [...this.list, ...val.data.rows]
          this.total = val.data.total
          console.log(this.total)
        })
      }
    }
  }
</script>
<style>
  page {
    background-color: #F4F4F4;
  }
</style>
<style lang="scss" scoped>
  @import "./reportRecord.scss";
</style>