| | |
| | | <u-icon class="ml12" name="arrow-down" color="#999999" /> |
| | | </view> |
| | | <view class="item" @click="isShowCar = true"> |
| | | <text v-if="param.carCode">{{ param.carCode }}</text> |
| | | <text v-else class="placeholder9">选择车辆</text> |
| | | <text>{{ param.carCode || '全部车辆' }}</text> |
| | | <u-icon class="ml12" name="arrow-down" color="#999999" /> |
| | | </view> |
| | | </view> |
| | |
| | | carsList: [], |
| | | param: { |
| | | queryDate: dayjs().format('YYYY-MM-DD'), |
| | | memberId: uni.getStorageSync('userInfo').memberId |
| | | // memberId: uni.getStorageSync('userInfo').memberId |
| | | }, |
| | | minDate: '', |
| | | pagination: { |
| | |
| | | param.queryStartTime = param.queryDate + ' 00:00:00' |
| | | param.queryEndTime = param.queryDate + ' 23:59:59' |
| | | } |
| | | if(param.carCode == '全部车辆'){ |
| | | param.carCode = null |
| | | param.carId = null |
| | | } |
| | | carUseBookPaiche({ |
| | | ...pagination, |
| | | model: { ...param } |
| | |
| | | }, |
| | | itemDetail(item) { |
| | | uni.navigateTo({ |
| | | url: "/pages/staff/vehicle/sendACarDetail?id=" + item.id |
| | | url: `/pages/staff/vehicle/sendACarDetail?id=${item.id}` |
| | | }) |
| | | }, |
| | | seletedCar(e) { |
| | | const item = e.value[0] |
| | | this.pagination.page = 0 |
| | | this.dataList = [] |
| | | this.$set(this.param, 'carCode', item.code) |
| | | this.$set(this.param, 'carId', item.id) |
| | | this.isShowCar = false |
| | |
| | | this.param.queryDate = dayjs(e.value).format('YYYY-MM-DD') |
| | | this.pagination.page = 0 |
| | | this.isShowDate = false |
| | | this.dataList = [] |
| | | this.getList() |
| | | }) |
| | | }, |
| | |
| | | getCarsList({ |
| | | type: 0 |
| | | }).then(res => { |
| | | this.carsList = [res.data] |
| | | this.carsList = [[{ code: '全部车辆', id: '' }, ...res.data]] |
| | | }) |
| | | }, |
| | | } |
| | |
| | | .app_header { |
| | | display: flex; |
| | | align-items: center; |
| | | margin: 0 -15rpx; |
| | | // margin: 0 -15rpx; |
| | | background-color: #fff; |
| | | .item { |
| | | width: 360rpx; |