| | |
| | | <u-tabs :list="list1" @click="click" :current="current" :scrollable="false" bgColor="white"></u-tabs> |
| | | </u-sticky> |
| | | <view class="list"> |
| | | <view class="list-item" @click="goReport" v-for="(item,index) in dataList" :key="index"> |
| | | <view class="list-item" @click="goReport(item.orderId)" v-for="(item,index) in dataList" :key="index"> |
| | | <view class="top-title"> |
| | | <text>24年5月突击检查消防安全</text> |
| | | <text class="status">已结束</text> |
| | | <text>{{item.enforceReason}}</text> |
| | | <text class="status">{{mapStatus[item.orderStatus]}}</text> |
| | | </view> |
| | | <view class="user-info"> |
| | | <text>王思雨</text> |
| | | <text>{{item.applyUser}}</text> |
| | | <view class="driver"></view> |
| | | <text>执法一大队</text> |
| | | <text>{{item.applyDeptName}}</text> |
| | | </view> |
| | | <view class="set-line"> |
| | | <text>执法对象:</text>河南觉醒科技有限公司 |
| | | <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>2024-05-12 12:00 |
| | | <text>执法时间:</text>{{item.planTime}} |
| | | </view> |
| | | <view class="set-line1"> |
| | | <text>申请时间:</text>2024-05-12 12:00:12 |
| | | <text>申请时间:</text>{{item.applyTime}} |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | pageSize: 10 |
| | | }, |
| | | total: 1, |
| | | dataList: [] |
| | | dataList: [], |
| | | mapStatus: { |
| | | 1: '待审批', |
| | | 2: "待执行", |
| | | 3: "待上报", |
| | | '-1':"已拒绝", |
| | | 4: "已结束" |
| | | } |
| | | } |
| | | }, |
| | | onShow() { |
| | | onLoad() { |
| | | this.orderList() |
| | | }, |
| | | onReachBottom() { |
| | | if(this.list.length == this.total) { |
| | | if(this.dataList.length == this.total) { |
| | | return |
| | | } |
| | | this.queryParams.pageNum++ |
| | | this.orderList() |
| | | }, |
| | | methods: { |
| | | goReport() { |
| | | goReport(id) { |
| | | uni.navigateTo({ |
| | | url: `/policy/applyRecordDetails/applyRecordDetails` |
| | | url: `/policy/applyRecordDetails/applyRecordDetails?id=${id}` |
| | | }) |
| | | }, |
| | | click(e) { |
| | | this.dataList = [] |
| | | this.queryParams.pageNum = 1 |
| | | this.current = e.index |
| | | this.orderList() |
| | | }, |
| | | orderList() { |
| | | orderList({...this.queryParams, orderStatus: this.list1[this.current].value}).then(val => { |
| | | // console.log(val.data) |
| | | this.total = val.data.total |
| | | this.dataList = [...this.dataList,...val.data.rows] |
| | | }) |
| | | }, |
| | | search(e){ |
| | | this.dataList = [] |
| | | this.queryParams.pageNum =1 |
| | | this.queryParams.companyName = e |
| | | this.orderList() |