|  |  |  | 
|---|
|  |  |  | :key="index" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <view class="box_list_item_head"> | 
|---|
|  |  |  | <text>{{ item.name }}的劳务入厂申请</text> | 
|---|
|  |  |  | <text class="loading">{{ statusMap[item.status] }}</text> | 
|---|
|  |  |  | <text>{{ item.name }}提交的访客申请</text> | 
|---|
|  |  |  | <text class="loading" :class="{error: item.status == 3}">{{ statusMap[item.status] }}</text> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="box_list_item_nr"> | 
|---|
|  |  |  | <view class="box_list_item_nr_item"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="box_list_item_nr_item"> | 
|---|
|  |  |  | <text>进厂时间:</text> | 
|---|
|  |  |  | <text>{{ item.starttime }}</text> | 
|---|
|  |  |  | <text v-if="item.starttime">{{ item.starttime.slice(5, 16) }}</text> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="box_list_item_nr_item"> | 
|---|
|  |  |  | <text>离厂时间:</text> | 
|---|
|  |  |  | <text>{{ item.endtime }}</text> | 
|---|
|  |  |  | <text>离园时间:</text> | 
|---|
|  |  |  | <text v-if="item.endtime">{{ item.endtime.slice(5, 16) }}</text> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="box_list_item_nr_item"> | 
|---|
|  |  |  | <text>来访事由:</text> | 
|---|
|  |  |  | <text>{{ item.reason }}</text> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="box_list_item_nr_x"></view> | 
|---|
|  |  |  | <view class="box_list_item_nr_text">{{ item.createDate }} 提交</view> | 
|---|
|  |  |  | <view v-if="item.createDate" class="box_list_item_nr_text">{{ item.createDate.slice(0, 16) }} 提交</view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view v-if="list.length === 0" style="text-align: center"> | 
|---|
|  |  |  | <image | 
|---|
|  |  |  | src="@/static/empty.png" | 
|---|
|  |  |  | style="width: 320rpx; margin: 120rpx auto 0" | 
|---|
|  |  |  | mode="widthFix" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <view class="placeholder9 fs24">暂无数据</view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | 
|---|
|  |  |  | status: '', | 
|---|
|  |  |  |  | 
|---|
|  |  |  | statusMap: { | 
|---|
|  |  |  | 0: '待审核', | 
|---|
|  |  |  | 1: '已提交', | 
|---|
|  |  |  | 0: '待审批', | 
|---|
|  |  |  | 1: '审批中', | 
|---|
|  |  |  | 2: '审核通过', | 
|---|
|  |  |  | 3: '审核不通过', | 
|---|
|  |  |  | 3: '审核驳回', | 
|---|
|  |  |  | 4: '取消', | 
|---|
|  |  |  | 5: '下发成功', | 
|---|
|  |  |  | 6: '下发失败', | 
|---|
|  |  |  | 7: '拜访中', | 
|---|
|  |  |  | 8: '已签离', | 
|---|
|  |  |  | 9: '已失效', | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onLoad() { | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | onShow() { | 
|---|
|  |  |  | this.pagination.page = 0 | 
|---|
|  |  |  | this.list = [] | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onReachBottom() { | 
|---|
|  |  |  | if (this.total > 10) { | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | } | 
|---|
|  |  |  | const { | 
|---|
|  |  |  | total, | 
|---|
|  |  |  | list | 
|---|
|  |  |  | } = this | 
|---|
|  |  |  | if (list.length < total) { | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.showToast('暂无更多数据') | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | handleDetail(id) { | 
|---|
|  |  |  | uni.navigateTo({ | 
|---|
|  |  |  | url: "/pages/appointmentDetails/appointmentDetails?id=" + id | 
|---|
|  |  |  | url: "/pages/appointmentDetails/appointmentDetails?detail=1&id=" + id | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | tabsClick(val) { | 
|---|
|  |  |  | this.pagination.page = 0 | 
|---|
|  |  |  | this.list = [] | 
|---|
|  |  |  | this.status = val | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }).then(res => { | 
|---|
|  |  |  | if (res.data.records.length > 0) { | 
|---|
|  |  |  | if(pagination.page === 1){ | 
|---|
|  |  |  | if (pagination.page === 1) { | 
|---|
|  |  |  | this.list = res.data.records | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.list = [...list, ...res.data.records] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.total = res.data.total | 
|---|
|  |  |  | 
|---|
|  |  |  | height: 100%; | 
|---|
|  |  |  | display: flex; | 
|---|
|  |  |  | align-items: center; | 
|---|
|  |  |  | justify-content: space-between; | 
|---|
|  |  |  | .active { | 
|---|
|  |  |  | border: 1rpx solid $uni-color-primary !important; | 
|---|
|  |  |  | border: 2rpx solid $uni-color-primary !important; | 
|---|
|  |  |  | color: $uni-color-primary !important; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .box_head_item { | 
|---|
|  |  |  | padding: 0 30rpx; | 
|---|
|  |  |  | width: 156rpx; | 
|---|
|  |  |  | text-align: center; | 
|---|
|  |  |  | height: 60rpx; | 
|---|
|  |  |  | line-height: 60rpx; | 
|---|
|  |  |  | box-sizing: border-box; | 
|---|
|  |  |  | display: flex; | 
|---|
|  |  |  | align-items: center; | 
|---|
|  |  |  | justify-content: center; | 
|---|
|  |  |  | border-radius: 30rpx; | 
|---|
|  |  |  | border: 1rpx solid #999999; | 
|---|
|  |  |  | border: 2rpx solid #999999; | 
|---|
|  |  |  | font-size: 26rpx; | 
|---|
|  |  |  | font-weight: 400; | 
|---|
|  |  |  | color: #333333; | 
|---|
|  |  |  | margin-right: 20rpx; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | text { | 
|---|
|  |  |  | &:nth-child(1) { | 
|---|
|  |  |  | font-size: 32rpx; | 
|---|
|  |  |  | font-weight: 500; | 
|---|
|  |  |  | font-weight: 600; | 
|---|
|  |  |  | color: #222222; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | &:nth-child(2) { | 
|---|
|  |  |  | 
|---|
|  |  |  | width: 100%; | 
|---|
|  |  |  | box-sizing: border-box; | 
|---|
|  |  |  | background-color: #ffffff; | 
|---|
|  |  |  | .box_list_item_nr_x { | 
|---|
|  |  |  | /* .box_list_item_nr_x { | 
|---|
|  |  |  | width: 100%; | 
|---|
|  |  |  | height: 1rpx; | 
|---|
|  |  |  | background-color: #e5e5e5; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } */ | 
|---|
|  |  |  | .box_list_item_nr_text { | 
|---|
|  |  |  | width: 100%; | 
|---|
|  |  |  | font-size: 26rpx; | 
|---|
|  |  |  | font-weight: 400; | 
|---|
|  |  |  | color: #999999; | 
|---|
|  |  |  | margin-top: 32rpx; | 
|---|
|  |  |  | /* margin-top: 32rpx; */ | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .box_list_item_nr_item { | 
|---|
|  |  |  | width: 100%; | 
|---|