doum
2025-09-11 7298d5354963a88643a543b51b90192dc9fc934c
admin/src/views/platform/LogisticsRecord/operation.vue
@@ -80,8 +80,9 @@
      filters: {
        selDate: [],
        fastdate: 0,
        createDateStart: '',
        createDateEnd: ''
        beginWorkDateStart: '',
        beginWorkDateEnd: ''
        // beginDoneDateEnd: ''
      },
      list: [],
      queryFormConfig: {
@@ -102,8 +103,8 @@
            label: '驾驶员'
          },
          {
            filed1: 'createDateStart',
            filed2: 'createDateEnd',
            filed1: 'beginWorkDateStart',
            filed2: 'beginWorkDateEnd',
            type: 'datetime',
            label: '作业时间'
          },
@@ -123,13 +124,13 @@
  methods: {
    changeRadio(day) {
      const arr = [dayjs().subtract(day, 'day').format('YYYY-MM-DD') + ' 00:00:00', dayjs().format('YYYY-MM-DD') + ' 23:59:59']
      this.filters.createDateStart = arr[0]
      this.filters.createDateEnd = arr[1]
      this.filters.beginWorkDateEnd = arr[1]
      this.filters.beginWorkDateStart = arr[0]
      this.getList(1)
    },
    changeForm(str) {
      if(this.filters.createDateStart > this.filters.createDateEnd){
        this.filters.createDateStart = this.filters.createDateEnd
      if(this.filters.beginWorkDateStart> this.filters.beginWorkDateEnd ){
        this.filters.beginWorkDateEnd = this.filters.beginWorkDateEnd
        return this.$message.error('开始时间不能大于结束时间')
      }
      this.getList()
@@ -179,7 +180,7 @@
            model: {
              ...filters,
              jobType: 0,
            },
            sorts: [{ direction: 'DESC', property: 'create_date' }],
            capacity: 10000,
@@ -214,7 +215,7 @@
    },
    handleSizeChange(capacity) {
      this.pagination.pageSize = capacity
      this.getList()
      this.getList(1)
    }
  }
}