ll
liukangdong
2025-03-11 6ea077ecfd9c3ed956570692600e7e55796c9bfe
admin/src/views/platform/LogisticsRecord/leaveAuth.vue
@@ -14,7 +14,7 @@
      <el-button :loading="exLoading" @click="handleEx"
        v-permissions="['business:platformjob:exportExcel']">导出</el-button>
    </div>
    <el-table class="mb20" v-loading="loading" :data="list" stripe>
    <el-table :height="tableHeightNew" v-loading="loading" :data="list" stripe>
      <el-table-column type="index" label="序号" width="70" show-overflow-tooltip />
      <el-table-column prop="billCode" label="运单号/合同号" min-width="100" show-overflow-tooltip>
        <template v-slot="scope">
@@ -25,9 +25,10 @@
      <el-table-column prop="carCodeFront" label="车牌号" min-width="100" show-overflow-tooltip />
      <el-table-column prop="carCodeBack" label="电子锁状态" min-width="100" show-overflow-tooltip>
        <template v-slot="scope">
          <span class="red" v-if="scope.row.lockStatus == 0">未上锁</span>
          <span class="red" v-if="scope.row.lockStatus == 1">部分上锁</span>
          <span v-if="scope.row.lockStatus == 2">全部上锁</span>
          <span class="red" v-if="scope.row.billCode && scope.row.lockStatus == 0">未上锁</span>
          <span class="red" v-if="scope.row.billCode && scope.row.lockStatus == 1">部分上锁</span>
          <span v-if="scope.row.billCode && scope.row.lockStatus == 2">全部上锁</span>
          <span v-if="!scope.row.billCode">-</span>
        </template>
      </el-table-column>
      <el-table-column prop="carrierName" label="运输公司" min-width="100" show-overflow-tooltip />
@@ -52,7 +53,7 @@
        <template v-slot="scope">
          <el-button v-if="scope.row.status == 6" type="text" v-permissions="['business:platformbooks:detail']"
            @click="handleAuth(scope.row)">离园授权</el-button>
            <span v-else>-</span>
          <span v-else>-</span>
        </template>
      </el-table-column>
    </el-table>
@@ -73,7 +74,9 @@
import UploadFaceImg from '@/components/common/UploadFaceImg'
import { Message } from 'element-ui'
import dayjs from 'dayjs'
import BaseComputHeight from "@/components/base/BaseComputHeight"
export default {
  extends: BaseComputHeight,
  components: {
    Pagination,
    QueryForm,
@@ -94,7 +97,9 @@
      },
      filters: {
        selDate: [],
        fastdate: 0
        fastdate: 0,
        beginDoneDateStart: '',
        beginDoneDateEnd: ''
      },
      list: [],
      queryFormConfig: {
@@ -120,10 +125,25 @@
            label: '驾驶员'
          },
          {
            filed: 'selDate',
            type: 'datetimerange',
            label: '操作时间',
            pickerOptions: {}
            filed: 'queryStatusForPower',
            type: 'select',
            label: '授权状态',
            options: [
              { value: '9,10', label: '已授权' },
              { value: '6', label: '未授权' }
            ]
          },
          // {
          //   filed: 'selDate',
          //   type: 'datetimerange',
          //   label: '作业完成时间搜索',
          //   pickerOptions: {}
          // },
          {
            filed1: 'beginDoneDateStart',
            filed2: 'beginDoneDateEnd',
            type: 'datetime',
            label: '作业完成时间搜索'
          },
          {
            type: 'slot',
@@ -142,8 +162,9 @@
  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.$set(this.filters, 'selDate', arr)
      this.getList()
      this.filters.beginDoneDateStart = arr[0]
      this.filters.beginDoneDateEnd = arr[1]
      this.getList(1)
    },
    changeForm(str) {
      if (str === 'selDate') {
@@ -157,10 +178,9 @@
      platformJobPage({
        model: {
          ...filters,
          queryStatus: '6,9,10,2,3,4',
          beginWorkDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null,
          beginWorkDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null,
          queryStatus: '6,9,10,2,3,4'
        },
        sorts: [{ direction: 'DESC', property: 'DONE_DATE' }],
        capacity: pagination.pageSize,
        page: page || pagination.page,
      }).then(res => {
@@ -193,7 +213,7 @@
          platformJobExport({
            page: this.pagination.page,
            capacity: 1000000,
            queryStatus: '6,9,10',
            queryStatus: '6,9,10,2,3,4',
            model: this.filters
          })
            .then(response => {
@@ -211,7 +231,6 @@
      this.pagination.page = 1
      this.filters = {
        selDate: [],
        fastdate: 0
      }
      this.getList()
    },
@@ -226,6 +245,7 @@
    },
    handleSizeChange(capacity) {
      this.pagination.pageSize = capacity
      this.getList(1)
    }
  }
}
@@ -237,4 +257,4 @@
  color: #000000;
  margin-bottom: 15px;
}
</style>
</style>