|  |  |  | 
|---|
|  |  |  | <el-table-column prop="carrierName" label="运输公司" min-width="100" show-overflow-tooltip /> | 
|---|
|  |  |  | <el-table-column prop="driverName" label="司机" min-width="100" show-overflow-tooltip /> | 
|---|
|  |  |  | <el-table-column prop="drivierPhone" label="司机电话" min-width="100" show-overflow-tooltip /> | 
|---|
|  |  |  | <!--      <el-table-column prop="wmsContractNum" label="WMS合同号" min-width="100" show-overflow-tooltip > | 
|---|
|  |  |  | <template v-slot="scope"> | 
|---|
|  |  |  | <span v-if="scope.row.platformWmsJob">{{ scope.row.platformWmsJob.contractNum }}</span> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | </el-table-column>--> | 
|---|
|  |  |  | <el-table-column prop="inTypeTemp" label="作业类型" min-width="100" show-overflow-tooltip> | 
|---|
|  |  |  | <template v-slot="scope"> | 
|---|
|  |  |  | <span v-if="scope.row.type == '0'">自有车卸货</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 v-if="scope.row.status == '12'" type="text" class="red" v-permissions="['business:platformjob:delete']" | 
|---|
|  |  |  | @click="handleDel(scope.row)">删除</el-button> | 
|---|
|  |  |  | <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 v-if="scope.row != 12" type="text" v-permissions="['business:platformjob:query']" | 
|---|
|  |  |  | @click="handleDetail(scope.row)">运单详情</el-button> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | 
|---|
|  |  |  | queryFormConfig: { | 
|---|
|  |  |  | formItems: [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | filed: 'code', | 
|---|
|  |  |  | filed: 'billCode', | 
|---|
|  |  |  | type: 'input', | 
|---|
|  |  |  | label: '运单号' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | label: '驾驶员' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | filed: 'wmsContractNum', | 
|---|
|  |  |  | type: 'input', | 
|---|
|  |  |  | label: '合同号' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | filed: 'carCodeFront', | 
|---|
|  |  |  | type: 'input', | 
|---|
|  |  |  | label: '车牌号' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | filed: 'status', | 
|---|
|  |  |  | type: 'select', | 
|---|
|  |  |  | label: '作业状态', | 
|---|
|  |  |  | options: [ | 
|---|
|  |  |  | { value: 0, label: '待确认' }, | 
|---|
|  |  |  | { value: 1, label: '待签到' }, | 
|---|
|  |  |  | { value: 2, label: '等待叫号' }, | 
|---|
|  |  |  | { value: 3, label: '入园等待' }, | 
|---|
|  |  |  | { value: 4, label: '月台等待' }, | 
|---|
|  |  |  | { value: 5, label: '作业中' }, | 
|---|
|  |  |  | { value: 6, label: '作业完成' }, | 
|---|
|  |  |  | { value: 7, label: '转移中' }, | 
|---|
|  |  |  | { value: 8, label: '异常挂起' }, | 
|---|
|  |  |  | { value: 9, label: '已授权离园' }, | 
|---|
|  |  |  | { value: 10, label: '已离园' }, | 
|---|
|  |  |  | { value: 11, label: '已过号' }, | 
|---|
|  |  |  | { value: 12, label: '已取消' }, | 
|---|
|  |  |  | ] | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | { | 
|---|
|  |  |  | filed: 'selDate', | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | created() { | 
|---|
|  |  |  | this.changeRadio('0') | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | changeRadio(day) { | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleDel(row) { | 
|---|
|  |  |  | this.$dialog.exportConfirm('确认删除吗?').then(() => { | 
|---|
|  |  |  | this.$dialog.deleteConfirm('确认删除吗?').then(() => { | 
|---|
|  |  |  | platformJobDel(row.id).then(res => { | 
|---|
|  |  |  | Message.success('删除成功') | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | 
|---|
|  |  |  | 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, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then(response => { | 
|---|
|  |  |  | this.download(response) | 
|---|
|  |  |  | 
|---|
|  |  |  | this.pagination.page = 1 | 
|---|
|  |  |  | this.filters = { | 
|---|
|  |  |  | selDate: [], | 
|---|
|  |  |  | fastdate: 0 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | // this.changeRadio('0') | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleDetail(row) { | 
|---|
|  |  |  | this.isShowDetail = true | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleSizeChange(capacity) { | 
|---|
|  |  |  | this.pagination.pageSize = capacity | 
|---|
|  |  |  | this.getList() | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | color: #000000; | 
|---|
|  |  |  | margin-bottom: 15px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </style> | 
|---|
|  |  |  | </style> | 
|---|