| | |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import dayjs from 'dayjs' |
| | | import duration from 'dayjs/plugin/duration' |
| | | dayjs.extend(duration); |
| | | dayjs.extend(duration) |
| | | import { platformJobPage, getPlatformGroupList } from '@/api' |
| | | export default { |
| | | components: { |
| | |
| | | beginWorkDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null, |
| | | beginWorkDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null, |
| | | }, |
| | | sorts: [{ direction: 'DESC', property: 'START_DATE' }], |
| | | capacity: pagination.pageSize, |
| | | page: page || pagination.page, |
| | | }).then(res => { |
| | |
| | | this.list.forEach(item => { |
| | | item.inTypeTemp = item.inType == 0 ? '整托盘' : '件烟' |
| | | item.taskOrigin = 'WMS获取' |
| | | item.workTime = dayjs.duration(item.workTime, 'seconds').format('H时m分s秒'); |
| | | item.workTime = dayjs.duration(item.workTime, 'seconds').format('H时m分s秒') |
| | | }) |
| | | this.pagination.total = res.total || 0 |
| | | }, () => { |