|  |  |  | 
|---|
|  |  |  | <span v-if="scope.row.type == '4'">市公司外协车卸货</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column prop="createDate" label="创建时间" min-width="150" show-overflow-tooltip /> | 
|---|
|  |  |  | <el-table-column prop="ioCreatedate" label="创建时间" min-width="150" show-overflow-tooltip /> | 
|---|
|  |  |  | <el-table-column prop="name" label="作业状态" min-width="100" show-overflow-tooltip> | 
|---|
|  |  |  | <template v-slot="scope"> | 
|---|
|  |  |  | <span>{{ statusMap[scope.row.status] }}</span> | 
|---|
|  |  |  | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | <el-table-column prop="name" label="操作" min-width="120" align="center" fixed="right" show-overflow-tooltip> | 
|---|
|  |  |  | <template v-slot="scope"> | 
|---|
|  |  |  | <el-button type="text" class="red" v-permissions="['business:platformjob:delete']" | 
|---|
|  |  |  | <el-button v-if="scope.row.status == '12'" type="text" class="red" v-permissions="['business:platformjob:delete']" | 
|---|
|  |  |  | @click="handleDel(scope.row)">删除</el-button> | 
|---|
|  |  |  | <el-button type="text" v-permissions="['business:platformjob:query']" | 
|---|
|  |  |  | @click="handleDetail(scope.row)">预约详情</el-button> | 
|---|
|  |  |  | <el-button v-if="scope.row != 12" type="text" v-permissions="['business:platformjob:query']" | 
|---|
|  |  |  | @click="handleDetail(scope.row)">运单详情</el-button> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column> | 
|---|
|  |  |  | </el-table> | 
|---|
|  |  |  | <Pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" /> | 
|---|
|  |  |  | <!--  --> | 
|---|
|  |  |  | <!--  --> | 
|---|
|  |  |  | <DriverDetail v-if="isShowDriver" ref="DriverDetailRef" /> | 
|---|
|  |  |  | <WaybillDetailRef v-if="isShowDetail" ref="WaybillDetailRef" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | import QueryForm from '@/components/common/QueryForm' | 
|---|
|  |  |  | import { platformJobPage, platformJobExport, platformJobDel } from '@/api' | 
|---|
|  |  |  | import { statusMap } from '../config' | 
|---|
|  |  |  | import DriverDetail from "@/views/task/driverDetail" | 
|---|
|  |  |  | import WaybillDetailRef from "../components/WaybillDetail.vue" | 
|---|
|  |  |  | import GlobalWindow from '@/components/common/GlobalWindow' | 
|---|
|  |  |  | import UploadFaceImg from '@/components/common/UploadFaceImg' | 
|---|
|  |  |  | import { Message } from 'element-ui' | 
|---|
|  |  |  | 
|---|
|  |  |  | components: { | 
|---|
|  |  |  | Pagination, | 
|---|
|  |  |  | QueryForm, | 
|---|
|  |  |  | DriverDetail, | 
|---|
|  |  |  | WaybillDetailRef, | 
|---|
|  |  |  | GlobalWindow, | 
|---|
|  |  |  | UploadFaceImg | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | statusMap, | 
|---|
|  |  |  | isShowDriver: false, | 
|---|
|  |  |  | isShowDetail: false, | 
|---|
|  |  |  | exLoading: false, | 
|---|
|  |  |  | loading: false, | 
|---|
|  |  |  | pagination: { | 
|---|
|  |  |  | 
|---|
|  |  |  | queryFormConfig: { | 
|---|
|  |  |  | formItems: [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | filed: 'code', | 
|---|
|  |  |  | filed: 'billCode', | 
|---|
|  |  |  | type: 'input', | 
|---|
|  |  |  | label: '运单号' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | model: { | 
|---|
|  |  |  | ...filters, | 
|---|
|  |  |  | jobType: '0', | 
|---|
|  |  |  | 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, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | capacity: pagination.pageSize, | 
|---|
|  |  |  | page: page || pagination.page, | 
|---|
|  |  |  | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleDetail(row) { | 
|---|
|  |  |  | this.isShowDriver = true | 
|---|
|  |  |  | this.isShowDetail = true | 
|---|
|  |  |  | this.$nextTick(() => { | 
|---|
|  |  |  | this.$refs.DriverDetailRef.id = row.id | 
|---|
|  |  |  | this.$refs.DriverDetailRef.type = 6 | 
|---|
|  |  |  | this.$refs.DriverDetailRef.getDetail() | 
|---|
|  |  |  | this.$refs.DriverDetailRef.isShowModal = true | 
|---|
|  |  |  | this.$refs.WaybillDetailRef.isShowModal = true | 
|---|
|  |  |  | this.$refs.WaybillDetailRef.id = row.id | 
|---|
|  |  |  | this.$refs.WaybillDetailRef.getDetail() | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleSizeChange(capacity) { | 
|---|