doum
2 天以前 815e2cda769751dec5c1a1a71d0ff61b0d051d76
admin/src/views/platform/queueUp.vue
@@ -65,12 +65,13 @@
          <span v-if="row.status == 7" class="primaryColor">转移中</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" width="200" fixed="right">
      <el-table-column label="操作" align="center" width="250" fixed="right">
        <template slot-scope="{ row }">
          <el-button v-if="row.billCode" type="text" @click="handleDetail(row)"
            v-permissions="['business:company:update']">运单详情</el-button>
          <el-button v-else type="text" @click="subDetail(row)">预约详情</el-button>
          <el-button type="text" @click="jiaji(row.id)">加急</el-button>
          <el-button type="text" class="red" @click="backSignin(row.id)">退回签到</el-button>
        </template>
      </el-table-column>
    </el-table>
@@ -120,7 +121,8 @@
  getPlatformGroupList,
  platformLineUpPage,
  getPlatformGroupWork,
  jobUrge
  jobUrge,
  backToWatiSign
} from '@/api'
import { queryQueueUpConfig } from './config'
import WaybillDetail from './components/WaybillDetail.vue'
@@ -136,7 +138,7 @@
    WaybillDetail,
    DriverDetail
  },
  data() {
  data () {
    return {
      filters: {},
      activeGroup: {
@@ -151,18 +153,18 @@
      pagination: {
        pageSize: 10,
        page: 1,
        total: 0,
        total: 0
      },
      queryQueueUpConfig,
      isShowDetail: false, // 运单详情
      detail: {}
    }
  },
  created() {
  created () {
    this.getPlatGroupList()
  },
  methods: {
    openSign() {
    openSign () {
      this.isPlatformSign = true
      this.$nextTick(() => {
        this.$refs.PlatformSignRef.isShowModal = true
@@ -176,17 +178,34 @@
        this.$refs.PlatformSignRef.getList()
      })
    },
    jiaji(id) {
      this.$dialog.exportConfirm('确认加急吗?')
        .then(() => {
          jobUrge({ id })
            .then(res => {
              this.getPlatGroupList()
            })
        })
        .catch(() => {})
    jiaji (id) {
      this.$confirm('确认加急吗?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        jobUrge({ id })
          .then(res => {
            this.getPlatGroupList()
          })
      }).catch(() => {
      })
    },
    getPlatGroupList() {
    backSignin (id) {
      this.$confirm('确认重新签到吗?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        backToWatiSign({ id })
          .then(res => {
            this.getPlatGroupList()
          })
      }).catch(() => {
      })
    },
    getPlatGroupList () {
      getPlatformGroupList({
        queryData: 1,
        queryType: 1
@@ -204,13 +223,13 @@
        }
      })
    },
    getList() {
    getList () {
      const { activeGroup, pagination, filters } = this
      this.loading = true
      platformLineUpPage({
        model: { platformGroupId: activeGroup.id, ...filters, callType: 3 },
        capacity: pagination.pageSize,
        page: pagination.page,
        page: pagination.page
      }).then(res => {
        this.loading = false
        this.dataList = res.records || []
@@ -219,33 +238,33 @@
        this.loading = false
      })
    },
    getPlatformGroupWork() {
    getPlatformGroupWork () {
      const { activeGroup } = this
      getPlatformGroupWork(activeGroup.id).then(res => {
        this.staticParam = res || {}
      })
    },
    handleSizeChange(e) {
    handleSizeChange (e) {
      this.pagination.pageSize = e
      this.getList(1)
    },
    handlePageChange(e) {
    handlePageChange (e) {
      this.pagination.page = e
      this.getList()
    },
    platgroupClick(item) {
    platgroupClick (item) {
      this.activeGroup = { ...item }
      this.pagination.page = 1
      this.filters = {}
      this.getPlatformGroupWork()
      this.getList()
    },
    clear() {
    clear () {
      this.pagination.page = 1
      this.filters = {}
      this.getList()
    },
    subDetail(row) {
    subDetail (row) {
      this.isShowDriver = true
      this.$nextTick(() => {
        this.$refs.DriverDetailRef.id = row.bookId
@@ -254,14 +273,14 @@
        this.$refs.DriverDetailRef.isShowModal = true
      })
    },
    handleDetail(row) {
    handleDetail (row) {
      this.isShowDetail = true
      this.$nextTick(() => {
        this.$refs.WaybillDetailRef.isShowModal = true
        this.$refs.WaybillDetailRef.id = row.id
        this.$refs.WaybillDetailRef.getDetail()
      })
    },
    }
  }
}
</script>
@@ -330,7 +349,6 @@
    }
  }
}
.main_header {
  .platgroup_tabs {