jiangping
2025-01-25 48b65b8e1618852345d37674042b9923e1549080
admin/src/views/platform/LogisticsRecord/operation.vue
@@ -150,7 +150,11 @@
        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秒');
          }
        })
        this.pagination.total = res.total || 0
      }, () => {
@@ -169,11 +173,17 @@
      this.$dialog.exportConfirm('确认导出吗?')
        .then(() => {
          this.exLoading = true
          const { filters } = this
          platformJobExport({
            page: this.pagination.page,
            capacity: 1000000,
            jobType: '0',
            model: this.filters
            model: {
              ...filters,
              jobType: 0,
              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)