Commit 7bcba797 by yancanhua

fix: 自测问题修改

1 parent c3d04421
...@@ -25,6 +25,33 @@ ...@@ -25,6 +25,33 @@
:row-selection="{ selectedRowKeys: selectIds, onChange: onSelectChange, type: 'checkbox', preserveSelectedRowKeys: true, }"> :row-selection="{ selectedRowKeys: selectIds, onChange: onSelectChange, type: 'checkbox', preserveSelectedRowKeys: true, }">
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'carTypeName'">
<div class="carTypeNameBox">
<div class="carTypeNameBox_image">
<a-image v-if="record.vehicle?.carImages?.[0]?.fileUrl" :width="60"
style="border-radius: 4px;" :src="record.vehicle?.carImages?.[0]?.fileUrl" />
</div>
<div class="carTypeNameBox_text">
<div class="carTypeNameBox_name" :title="record.vehicle?.baseInfo?.carTypeName || '-'">
{{ record.vehicle?.baseInfo?.carTypeName || '-' }}
</div>
<div class="carTypeNameBox_vin" :title="record.vehicle?.baseInfo?.vin || '-'">VIN码:{{
record.vehicle?.baseInfo?.vin || '-' }}</div>
</div>
</div>
</template>
<template v-if="column.key === 'custodianName'">
<div class="templateName" :title="record.vehicle?.custodianInfo?.custodianName || '-'" >{{ record.vehicle?.custodianInfo?.custodianName || '-' }}</div>
<div class="templatePhone">{{ record.vehicle?.custodianInfo?.custodianPhone || '-' }}</div>
</template>
<template v-if="column.key === 'name'">
<div class="templateName" :title="record.inspector?.name || '-'" >{{ record.inspector?.name || '-' }}</div>
<div class="templatePhone">{{ record.inspector?.phone || '-' }}</div>
</template>
<template v-if="column.key === 'vehicleState'"> <template v-if="column.key === 'vehicleState'">
<vehicle-state-tag :vehicle-state="record.vehicle.vehicleState"></vehicle-state-tag> <vehicle-state-tag :vehicle-state="record.vehicle.vehicleState"></vehicle-state-tag>
</template> </template>
...@@ -136,13 +163,13 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> { ...@@ -136,13 +163,13 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
}, },
{ title: '工单单号', dataIndex: 'woId', key: 'woId', align: 'center', width: 170, resizable: true, ellipsis: true }, { title: '工单单号', dataIndex: 'woId', key: 'woId', align: 'center', width: 170, resizable: true, ellipsis: true },
{ title: '车源号', dataIndex: ['vehicle', 'baseInfo', "sourceNo"], key: 'sourceNo', align: 'center', width: 170, resizable: true, ellipsis: true }, { title: '车源号', dataIndex: ['vehicle', 'baseInfo', "sourceNo"], key: 'sourceNo', align: 'center', width: 170, resizable: true, ellipsis: true },
{ title: '车型名称', dataIndex: ['vehicle', 'baseInfo', "carTypeName"], key: 'carTypeName', align: 'center', width: 240, resizable: true, ellipsis: true }, { title: '车型名称', dataIndex: ['vehicle', 'baseInfo', "carTypeName"], key: 'carTypeName', align: 'center', width: 286, resizable: true, ellipsis: true },
{ title: '车牌号', dataIndex: ['vehicle', 'baseInfo', "licensePlate"], key: 'licensePlate', align: 'center', width: 170, resizable: true, ellipsis: true }, { title: '车牌号', dataIndex: ['vehicle', 'baseInfo', "licensePlate"], key: 'licensePlate', align: 'center', width: 170, resizable: true, ellipsis: true },
{ title: '所属门店', dataIndex: ['vehicle', 'venue', 'venueName'], key: 'venueName', align: 'center', width: 170, resizable: true, ellipsis: true }, { title: '所属门店', dataIndex: ['vehicle', 'venue', 'venueName'], key: 'venueName', align: 'center', width: 170, resizable: true, ellipsis: true },
{ title: '车辆所在地址', dataIndex: ['vehicle', 'custodianInfo', "handoverAddress"], key: 'handoverAddress', width: 240, resizable: true, ellipsis: true }, { title: '车辆所在地址', dataIndex: ['vehicle', 'custodianInfo', "handoverAddress"], key: 'handoverAddress', width: 240, resizable: true, ellipsis: true },
{ title: '车辆保管人', dataIndex: ['vehicle', 'custodianInfo', "custodianName"], key: 'custodianName', align: 'center', width: 170, resizable: true, ellipsis: true }, { title: '车辆保管人', dataIndex: ['vehicle', 'custodianInfo', "custodianName"], key: 'custodianName', align: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '车辆状态', dataIndex: ['vehicle', "vehicleState"], key: 'vehicleState', align: 'center', width: 170, resizable: true, ellipsis: true }, { title: '车辆状态', dataIndex: ['vehicle', "vehicleState"], key: 'vehicleState', align: 'center', width: 170, resizable: true, ellipsis: true },
{ title: '检测师', dataIndex: ['inspector', "name"], key: 'name', align: 'center', width: 170, resizable: true, ellipsis: true }, { title: '检测师', dataIndex: ['inspector', "name"], key: 'name', align: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '检测地址', dataIndex: 'inspectionAddress', key: 'inspectionAddress', align: 'center', width: 240, resizable: true, ellipsis: true }, { title: '检测地址', dataIndex: 'inspectionAddress', key: 'inspectionAddress', align: 'center', width: 240, resizable: true, ellipsis: true },
{ title: '检测单状态', dataIndex: 'status', key: 'status', align: 'center', width: 170, resizable: true, ellipsis: true }, { title: '检测单状态', dataIndex: 'status', key: 'status', align: 'center', width: 170, resizable: true, ellipsis: true },
{ title: '审核状态', dataIndex: 'auditStatus', key: 'auditStatus', width: 170, align: 'center', resizable: true, ellipsis: true }, { title: '审核状态', dataIndex: 'auditStatus', key: 'auditStatus', width: 170, align: 'center', resizable: true, ellipsis: true },
...@@ -272,4 +299,72 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> { ...@@ -272,4 +299,72 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
</script> </script>
<style scoped lang="less"></style> <style scoped lang="less">
.templateName {
width: 100%;
color: #2f3133;
font-size: 14px;
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: left;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.templatePhone {
color: #777c85;
font-size: 12px;
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: left;
}
.carTypeNameBox {
width: 100%;
display: flex;
}
.carTypeNameBox_image {
width: 60px;
height: 60px;
border-radius: 4px;
float: left;
}
.carTypeNameBox_text {
width: 200px;
float: left;
margin-left: 8px;
}
.carTypeNameBox_name {
width: 100%;
height: 22px;
color: #2f3133;
font-size: 14px;
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: left;
line-height: 22px;
margin-top: 9px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.carTypeNameBox_vin {
width: 100%;
height: 20px;
opacity: 1;
color: #777c85;
font-size: 12px;
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: left;
line-height: 20px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
</style>
...@@ -28,6 +28,23 @@ ...@@ -28,6 +28,23 @@
<vehicle-state-tag :vehicle-state="record.vehicle.vehicleState"></vehicle-state-tag> <vehicle-state-tag :vehicle-state="record.vehicle.vehicleState"></vehicle-state-tag>
</template> </template>
<template v-if="column.key === 'carTypeName'">
<div class="carTypeNameBox">
<div class="carTypeNameBox_image">
<a-image v-if="record.vehicle?.carImages?.[0]?.fileUrl" :width="60"
style="border-radius: 4px;" :src="record.vehicle?.carImages?.[0]?.fileUrl" />
</div>
<div class="carTypeNameBox_text">
<div class="carTypeNameBox_name" :title="record.vehicle?.baseInfo?.carTypeName || '-'">
{{ record.vehicle?.baseInfo?.carTypeName || '-' }}
</div>
<div class="carTypeNameBox_vin" :title="record.vehicle?.baseInfo?.vin || '-'">VIN码:{{
record.vehicle?.baseInfo?.vin || '-' }}</div>
</div>
</div>
</template>
<template v-if="column.key === 'bindStatus'"> <template v-if="column.key === 'bindStatus'">
<a-tag v-if="record.bindStatus == 1" color="#E8F8F2" :style="{ color: '#00AD74' }" <a-tag v-if="record.bindStatus == 1" color="#E8F8F2" :style="{ color: '#00AD74' }"
:bordered="false">已绑定</a-tag> :bordered="false">已绑定</a-tag>
...@@ -218,6 +235,56 @@ export default class DetectionReportPage extends PaginationComponent<Vehicle> { ...@@ -218,6 +235,56 @@ export default class DetectionReportPage extends PaginationComponent<Vehicle> {
<style scoped lang="less"> <style scoped lang="less">
.carTypeNameBox {
width: 100%;
display: flex;
}
.carTypeNameBox_image {
width: 60px;
height: 60px;
border-radius: 4px;
float: left;
}
.carTypeNameBox_text {
width: 200px;
float: left;
margin-left: 8px;
}
.carTypeNameBox_name {
width: 100%;
height: 22px;
color: #2f3133;
font-size: 14px;
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: left;
line-height: 22px;
margin-top: 9px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.carTypeNameBox_vin {
width: 100%;
height: 20px;
opacity: 1;
color: #777c85;
font-size: 12px;
font-weight: 400;
font-family: "HarmonyOSSansSC";
text-align: left;
line-height: 20px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.color_A { .color_A {
color: #00ad74; color: #00ad74;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!