''
liukangdong
2024-10-08 0adb696e7fade5eeb02396e5d4bacf9355ca5e2e
admin/src/views/statistics/platformRecord.vue
@@ -26,7 +26,7 @@
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: {
@@ -55,6 +55,7 @@
            filed: 'platformGroupId',
            type: 'select',
            label: '月台组',
            placeholder: '全部月台组',
            options: []
          },
          {
@@ -85,13 +86,14 @@
      })
    },
    getGroupList() {
      getPlatformGroupList({queryData: 0,queryType: 0}).then(res => {
      getPlatformGroupList({ queryData: 0, queryType: 0 }).then(res => {
        this.queryFormConfig.formItems[1].options = res.map(i => {
          return {
            value: i.id,
            label: i.name
          }
        })
        // this.queryFormConfig.formItems[1].options.unshift({ value: '', label: '全部月台组' })
      })
    },
    getList(page) {
@@ -104,6 +106,7 @@
          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 => {
@@ -112,7 +115,7 @@
        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
      }, () => {