| | |
| | | > |
| | | <view class="box_list_item_head"> |
| | | <view class="df_ac"> |
| | | <text v-if="item.readed == 0" class="readed"></text> |
| | | <text v-if="item.readed == 0 && search.queryType === 3" class="readed"></text> |
| | | <text class="tt">{{ item.title }}</text> |
| | | </view> |
| | | <view class="info loading">{{ item.info }}</view> |
| | | <view class="info" :class="{ loading: search.queryType === 0 }">{{ item.info }}</view> |
| | | </view> |
| | | <view class="box_list_item_nr"> |
| | | <view v-if="item.param1.arriveDate" class="box_list_item_nr_item"> |
| | | <text></text> |
| | | <text>{{ item.param1.arriveDate }}</text> |
| | | </view> |
| | | <view v-if="item.param1.inType" class="box_list_item_nr_item"> |
| | | <text></text> |
| | | <text>{{ item.param1.inType }}</text> |
| | | </view> |
| | | <view v-if="item.param1.totalNum" class="box_list_item_nr_item"> |
| | | <text></text> |
| | | <text>{{ item.param1.totalNum }}</text> |
| | | </view> |
| | | <view v-if="item.param1.carNum" class="box_list_item_nr_item"> |
| | | <text></text> |
| | | <text>{{ item.param1.carNum }}</text> |
| | | </view> |
| | | |
| | | <view v-if="item.param1.name" class="box_list_item_nr_item"> |
| | | <text></text> |
| | | <text>{{ item.param1.name }}</text> |
| | |
| | | <view class="box_list_item_nr_x"></view> |
| | | <view class="box_list_item_nr_text"> |
| | | <text class="time">{{ item.createDate }}提交</text> |
| | | <text v-if="item.param2 == '0'" class="btn">去处理</text> |
| | | <text v-if="search.queryType === 0" class="btn">去处理</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | :show="tiemShow" |
| | | v-model="startDate" |
| | | mode="date" |
| | | :formatter="formatter" |
| | | @confirm="confirmLeft" |
| | | @cancel="tiemShow = false" |
| | | ></u-datetime-picker> |
| | |
| | | " |
| | | v-model="startDate" |
| | | mode="date" |
| | | :formatter="formatter" |
| | | @confirm="confirmRight" |
| | | @cancel="tiemShow1 = false" |
| | | ></u-datetime-picker> |
| | |
| | | }, |
| | | headData: {}, |
| | | dataList: [], |
| | | total: 0, |
| | | cateList: [ |
| | | { name: '访客申请', id: 0 }, |
| | | { name: '访客报备', id: 1 }, |
| | | { name: '用车申请', id: 2 }, |
| | | { name: '隐患随手拍', id: 3 }, |
| | | { name: '物流车申请', id: 4 }, |
| | | { name: '物流车申请', id: 6 }, |
| | | { name: '考勤代办', id: 7 }, |
| | | ], |
| | | startDate: dayjs().format('YYYY-MM-DD'), |
| | | } |
| | |
| | | // this.getList() |
| | | // }, |
| | | onReachBottom() { |
| | | // this.pagination.page = 0 |
| | | // this.dataList = [] |
| | | this.getList() |
| | | const { total, dataList} = this |
| | | if(dataList.length < total){ |
| | | this.getList() |
| | | } else { |
| | | this.showToast('暂无更多数据') |
| | | } |
| | | }, |
| | | onBackPress(options) { |
| | | setTimeout(()=>{ |
| | |
| | | onShow() { |
| | | this.pagination.page = 0 |
| | | this.dataList = [] |
| | | this.getHeadList() |
| | | this.getList() |
| | | this.getHeadList() |
| | | }, |
| | | methods: { |
| | | formatter(type, value) { |
| | | if (type === 'year') { |
| | | return `${value}年` |
| | | } |
| | | if (type === 'month') { |
| | | return `${value}月` |
| | | } |
| | | if (type === 'day') { |
| | | return `${value}日` |
| | | } |
| | | if (type === 'hour') { |
| | | return `${value}时` |
| | | } |
| | | if (type === 'minute') { |
| | | return `${value}分` |
| | | } |
| | | return value |
| | | }, |
| | | statusClick(val) { |
| | | this.pagination.page = 0 |
| | | this.dataList = [] |
| | |
| | | }, |
| | | modalReset() { |
| | | this.modelParam = {} |
| | | this.search = { |
| | | queryType: 0 |
| | | } |
| | | this.pagination.page = 0 |
| | | this.dataList = [] |
| | | this.showFilter = false |
| | |
| | | ...search |
| | | } |
| | | }).then(res => { |
| | | if(res.data && res.data.records){ |
| | | res.data.records.forEach(i => { |
| | | if (i.param1) { |
| | | i.param1 = JSON.parse(i.param1) |
| | | } |
| | | }) |
| | | } |
| | | this.dataList = [...this.dataList, ...res.data.records] |
| | | this.dataList.forEach(i => { |
| | | if (i.param1) { |
| | | i.param1 = JSON.parse(i.param1) |
| | | } |
| | | }) |
| | | this.total = res.data.total |
| | | |
| | | }) |
| | | }, |
| | | getHeadList() { |
| | |
| | | isDetail: '1' |
| | | }).then(res => { |
| | | this.headData = res.data |
| | | this.getList() |
| | | }) |
| | | }, |
| | | handleReady() { |
| | |
| | | }) |
| | | }, |
| | | handleAppr(item) { |
| | | const { objType, objId } = item |
| | | if (this.search.queryType === 3) { |
| | | const { objType, objId, info, readed } = item |
| | | if (readed === 0) { |
| | | signReadTask({ |
| | | noticesId: item.id, |
| | | signType: 0 |
| | |
| | | this.getHeadList() |
| | | }) |
| | | } |
| | | if (item.type == 7) { |
| | | window.open('https://atwl.ahzyssl.com/dps/web/wxAuth/loginV2?oaId=atwl&redirectId=index') |
| | | return |
| | | } |
| | | if (objType === 2) { |
| | | uni.navigateTo({ |
| | | url: `/pages/staff/vehicle/sendACarDetail?id=${objId}&appr=1` |
| | | url: `/pages/staff/vehicle/sendACarDetail?id=${objId}&info=${info}` |
| | | }) |
| | | } else if (objType === 1) { |
| | | uni.navigateTo({ |
| | | url: `/pages/staff/task/visitorReport?id=${objId}&objType=${objType}` |
| | | url: `/pages/staff/task/visitorReport?id=${objId}&objType=${objType}&info=${info}` |
| | | }) |
| | | } else if (objType === 3) { |
| | | uni.navigateTo({ |
| | | url: `/pages/staff/task/vDangetAppr?id=${objId}&objType=${objType}` |
| | | url: `/pages/staff/task/vDangetAppr?id=${objId}&objType=${objType}&info=${info}` |
| | | }) |
| | | } else { |
| | | }else if (objType === 6 || objType === 5) { |
| | | uni.navigateTo({ |
| | | url: `/pages/staff/task/visitorApprove?id=${objId}&objType=${objType}` |
| | | url: `/pages/staff/task/driver?id=${objId}&objType=${objType}&info=${info}` |
| | | }) |
| | | }else { |
| | | uni.navigateTo({ |
| | | url: `/pages/staff/task/visitorApprove?id=${objId}&objType=${objType}&info=${info}` |
| | | }) |
| | | } |
| | | }, |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | .readed { |
| | | width: 12rpx; |
| | | height: 12rpx; |
| | | width: 16rpx; |
| | | height: 16rpx; |
| | | border-radius: 50%; |
| | | background-color: #e0312a; |
| | | margin-right: 16rpx; |
| | | } |
| | | .info { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #999999; |
| | | width: 120rpx; |
| | | text-align: right; |
| | | } |
| | | .loading { |
| | | color: #4c99a8; |
| | | color: $uni-color-primary; |
| | | } |
| | | .success { |
| | | color: #03c68f; |
| | |
| | | font-size: 32rpx; |
| | | font-weight: 600; |
| | | color: #222222; |
| | | } |
| | | .info { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | } |
| | | } |
| | | .box_list_item_nr { |