jiangping
2025-01-25 48b65b8e1618852345d37674042b9923e1549080
admin/src/views/platform/LogisticsRecord/operationCity.vue
@@ -137,8 +137,8 @@
        model: {
          ...filters,
          jobType: 1,
          beginWorkDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null,
          beginWorkDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null,
          createDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null,
          createDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null,
        },
        sorts: [{ direction: 'DESC', property: 'create_date' }],
        capacity: pagination.pageSize,
@@ -149,7 +149,12 @@
        this.list.forEach(item => {
          item.inTypeTemp = item.inType == 0 ? '整托盘' : '件烟'
          item.taskOrigin = 'WMS获取'
          item.workTime = dayjs.duration(item.workTime, 'seconds').format('H时m分s秒')
          if(item.workTime && item.workTime>=24*60*60 ){
            item.workTime = dayjs.duration(item.workTime, 'seconds').format('D天H时m分s秒');
          }else{
            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
      }, () => {
@@ -168,11 +173,17 @@
      this.$dialog.exportConfirm('确认导出吗?')
        .then(() => {
          this.exLoading = true
          const { filters } = this
          platformJobExport({
            page: this.pagination.page,
            capacity: 1000000,
            model: {
              ...filters,
            jobType: 1,
            model: this.filters
              createDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null,
              createDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null
            },
            sorts: [{ direction: 'DESC', property: 'create_date' }],
            capacity: 10000,
            page: 1,
          })
            .then(response => {
              this.download(response)