| | |
| | | <u-datetime-picker |
| | | mode="date" |
| | | v-model="param.queryDate" |
| | | :formatter="formatter" |
| | | :show="isShowDate" |
| | | :minDate="minDate" |
| | | closeOnClickOverlay |
| | |
| | | carsList: [], |
| | | param: { |
| | | queryDate: dayjs().format('YYYY-MM-DD'), |
| | | memberId: uni.getStorageSync('userInfo').memberId |
| | | // memberId: uni.getStorageSync('userInfo').memberId |
| | | }, |
| | | minDate: '', |
| | | pagination: { |
| | |
| | | } |
| | | }, |
| | | 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 |
| | | }, |
| | | getList() { |
| | | const { param, pagination } = this |
| | | pagination.page = pagination.page + 1 |
| | |
| | | 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) { |
| | |
| | | .app_header { |
| | | display: flex; |
| | | align-items: center; |
| | | margin: 0 -15rpx; |
| | | // margin: 0 -15rpx; |
| | | background-color: #fff; |
| | | .item { |
| | | width: 360rpx; |