|
@@ -37,21 +37,34 @@
|
|
<el-table-column label="司机姓名" prop="waybill.driverName" width="120" align="center"></el-table-column>
|
|
<el-table-column label="司机姓名" prop="waybill.driverName" width="120" align="center"></el-table-column>
|
|
<el-table-column label="司机手机号" prop="waybill.driverPhone" width="120" align="center"></el-table-column>
|
|
<el-table-column label="司机手机号" prop="waybill.driverPhone" width="120" align="center"></el-table-column>
|
|
<el-table-column label="车牌" prop="waybill.plateNumber" width="120" align="center"></el-table-column>
|
|
<el-table-column label="车牌" prop="waybill.plateNumber" width="120" align="center"></el-table-column>
|
|
|
|
+ <el-table-column label="车辆颜色" align="center" width="100">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <span>{{ plateColorFilter(scope.row.waybill.plateColor)}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="状态" align="center" width="100">
|
|
<el-table-column label="状态" align="center" width="100">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<Tag color="green" v-if="scope.row.status == 'NORMAL'">正常</Tag>
|
|
<Tag color="green" v-if="scope.row.status == 'NORMAL'">正常</Tag>
|
|
<Tag color="red" v-if="scope.row.status == 'ABNORMAL'">异常</Tag>
|
|
<Tag color="red" v-if="scope.row.status == 'ABNORMAL'">异常</Tag>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="关联单号" prop="waybill.orderNum" width="220" align="center"></el-table-column>
|
|
|
|
- <el-table-column label="添加时间" width="160" align="center">
|
|
|
|
|
|
+ <el-table-column label="运输发货时间" width="160" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- {{ moment(scope.row.addTime).format('yyyy-MM-DD hh:mm:ss') || '暂无'}}
|
|
|
|
|
|
+ {{ moment(scope.row.startTime).format('yyyy-MM-DD hh:mm:ss') || '暂无'}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="运输到货时间" width="160" align="center">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ {{ moment(scope.row.endTime).format('yyyy-MM-DD hh:mm:ss') || '暂无'}}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="订单号" prop="waybill.orderInfo.orderNum" width="220" align="center"></el-table-column>
|
|
|
|
+ <el-table-column label="物料名称" prop="waybill.orderInfo.name" width="150" align="center"></el-table-column>
|
|
|
|
+ <el-table-column label="供应商名称" prop="waybill.orderInfo.company" width="180" align="center"></el-table-column>
|
|
|
|
+ <el-table-column label="牧场名称" prop="waybill.orderInfo.orgName" width="180" align="center"></el-table-column>
|
|
<el-table-column label="操作" width="180" fixed="right" align="center">
|
|
<el-table-column label="操作" width="180" fixed="right" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <Button class="opt_btn" size="small" type="primary" ghost @click="lookTrack(scope.row.id)">查看轨迹</Button>
|
|
|
|
|
|
+ <Button class="opt_btn" size="small" type="primary" ghost @click="lookTrack(scope.row)">查看轨迹</Button>
|
|
<Button class="opt_btn" size="small" type="warning" @click="lookInfo(scope.row.exceptionInfo)">查看异常</Button>
|
|
<Button class="opt_btn" size="small" type="warning" @click="lookInfo(scope.row.exceptionInfo)">查看异常</Button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -63,7 +76,7 @@
|
|
</Card>
|
|
</Card>
|
|
<!-- 查看轨迹 -->
|
|
<!-- 查看轨迹 -->
|
|
<Modal v-model="showModal" width="75%" title="查看轨迹">
|
|
<Modal v-model="showModal" width="75%" title="查看轨迹">
|
|
- <mapTrack></mapTrack>
|
|
|
|
|
|
+ <mapTrack :waybillNum="waybillNum" v-if="showModal"></mapTrack>
|
|
</Modal>
|
|
</Modal>
|
|
<!-- 查看异常 -->
|
|
<!-- 查看异常 -->
|
|
<Modal v-model="showInfo" width="60%" title="查看异常">
|
|
<Modal v-model="showInfo" width="60%" title="查看异常">
|
|
@@ -89,6 +102,7 @@ import { Message,Modal,Spin,Input } from 'view-ui-plus'
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
import {useRoute} from 'vue-router'
|
|
import {useRoute} from 'vue-router'
|
|
import mapTrack from "./mapTrack.vue"
|
|
import mapTrack from "./mapTrack.vue"
|
|
|
|
+import {plateColorFilter} from '@/utils/system/filters'
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components:{
|
|
components:{
|
|
mapTrack
|
|
mapTrack
|
|
@@ -165,10 +179,13 @@ export default defineComponent({
|
|
}
|
|
}
|
|
|
|
|
|
const showModal = ref(false)
|
|
const showModal = ref(false)
|
|
|
|
+ let waybillNum = ref('')
|
|
// 查看详情
|
|
// 查看详情
|
|
- function lookTrack(){
|
|
|
|
|
|
+ function lookTrack(data){
|
|
|
|
+ waybillNum.value = data.waybillNum
|
|
showModal.value = true
|
|
showModal.value = true
|
|
}
|
|
}
|
|
|
|
+
|
|
const showInfo = ref(false)
|
|
const showInfo = ref(false)
|
|
const exceptionInfo = ref({})
|
|
const exceptionInfo = ref({})
|
|
//查看异常
|
|
//查看异常
|
|
@@ -182,7 +199,7 @@ export default defineComponent({
|
|
|
|
|
|
return {
|
|
return {
|
|
handleSelectionChange,getData,changePage,moment,deleteInfo,TabData,filtInfoData,
|
|
handleSelectionChange,getData,changePage,moment,deleteInfo,TabData,filtInfoData,
|
|
- loading,batchOperation,resetData,exceptionInfo,showInfo,lookInfo,lookTrack,showModal
|
|
|
|
|
|
+ loading,batchOperation,resetData,exceptionInfo,showInfo,lookInfo,lookTrack,showModal,plateColorFilter,waybillNum
|
|
}
|
|
}
|
|
},
|
|
},
|
|
})
|
|
})
|