| | |
| | | statusStr: '', |
| | | status: '', |
| | | warehouseLocationCode: '', |
| | | date: '', |
| | | }, |
| | | show_select_station: false, |
| | | show_select_status: false, |
| | | selecttoday: true, |
| | | columns_station: [], |
| | | status_columns: [], |
| | | show_time_picker_time: false, |
| | | tmp_picker_time: new Date(), |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | methods: { |
| | | async select_time_picker_time(e) { |
| | | console.log('select_time_picker_time', e) |
| | | var vv = e.value |
| | | // if (vv) { |
| | | // vv = vv.replace('aN:', '00:') |
| | | // } |
| | | // var time = new Date(`2023-8-21 ${vv}:00`) |
| | | this.show_time_picker_time = false |
| | | this.query.date = vv || '' |
| | | }, |
| | | changeSelecrRange() { |
| | | this.selecttoday = !this.selecttoday |
| | | |
| | | this.$nextTick(() => { |
| | | if (this.selecttoday) { |
| | | this.listApi = '/api/delivery/check/list/today' |
| | | this.query.date = '' |
| | | } else { |
| | | this.listApi = '/api/delivery/check/list' |
| | | } |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="m-t-12 m-b-12"> |
| | | <view class="m-t-12 m-b-12" class="flex"> |
| | | <view class="" v-if="!selecttoday" :class="[query.date?'':'desc-gray']" |
| | | @click="show_time_picker_time=true"> |
| | | <!-- 选择日期 --> |
| | | {{query.date || '请选择日期'}} |
| | | </view> |
| | | <view class="m-l-a m-r-20 w-fit flex"> |
| | | <radio :checked="selecttoday" @click="changeSelecrRange"></radio> |
| | | <view>只查看今日</view> |
| | |
| | | <view class="form-item-label">送达时间</view> |
| | | <view class="form-item-value">{{ item.arriveTime || '-' }}</view> |
| | | </view> --> |
| | | <view class="form-item flex1"> |
| | | <view class="form-item-label">待质检数</view> |
| | | <view class="form-item-value">{{ item.uncheckedCount || '0' }}</view> |
| | | </view> |
| | | |
| | | |
| | | <view class="line-gray"></view> |
| | |
| | | <u-picker @confirm="select_status" keyName="label" @cancel="show_select_status=false" :show="show_select_status" |
| | | :columns="status_columns"></u-picker> |
| | | |
| | | <u-datetime-picker :show="show_time_picker_time" @cancel="show_time_picker_time=false" |
| | | @confirm="select_time_picker_time" v-model="tmp_picker_time" mode="date"></u-datetime-picker> |
| | | |
| | | |
| | | </view> |
| | | </template> |