Commit c9f285e5 by yancanhua

fix: 测试问题修改

1 parent 296d31f0
......@@ -66,19 +66,22 @@
</template>
<template v-if="column.key === 'dispatchedCount'">
<router-link :to="{ path: '/detection/order', query: {phone: record.phone, tabKey: 'DISPATCHED' } }">
<router-link
:to="{ path: '/detection/order', query: { phone: record.phone, tabKey: 'DISPATCHED' } }">
<a-button type="link" size="small">{{ record.dispatchedCount }}</a-button>
</router-link>
</template>
<template v-if="column.key === 'inProgressCount'">
<router-link :to="{ path: '/detection/order', query: {phone: record.phone, tabKey: 'IN_PROGRESS' } }">
<router-link
:to="{ path: '/detection/order', query: { phone: record.phone, tabKey: 'IN_PROGRESS' } }">
<a-button type="link" size="small">{{ record.inProgressCount }}</a-button>
</router-link>
</template>
<template v-if="column.key === 'completedCount'">
<router-link :to="{ path: '/detection/order', query: {phone: record.phone, tabKey: 'COMPLETED' } }">
<router-link
:to="{ path: '/detection/order', query: { phone: record.phone, tabKey: 'COMPLETED' } }">
<a-button type="link" size="small">{{ record.completedCount }}</a-button>
</router-link>
</template>
......@@ -248,7 +251,7 @@ export default class DetectionInspectorPage extends PaginationComponent<Vehicle>
}
DetectionController.inspectExport(this.axios, paramsData, { responseType: 'blob' }).then(response => {
message.success('导出任务已创建,请稍后在浏览器下载列表中查看');
ExportUtil.downloadExcelFile(response.data, '检测师列表' + this.getNewTime());
ExportUtil.downloadExcelFile(response.data, this.getNewTime() + '-检测师管理');
}).catch(error => {
console.error('Error downloading Word file:', error);
}).finally(() => {
......
......@@ -63,11 +63,21 @@
<div style="width: 100%;float: left;">
<a-descriptions :column="1" size="small" layout="vertical">
<template #title>
<div>
<div>
<title-tip-icon></title-tip-icon>
操作日志
</div>
<div @click="handleFold(false)" v-if="isShowFold" class="foldBox">收起
<DoubleLeftOutlined color="#666666" font-size="13px;" style="transform: rotate(90deg);" />
</div>
<div @click="handleFold(true)" v-else class="foldBox">展开
<DoubleLeftOutlined color="#666666" font-size="13px;" style="transform: rotate(270deg);" />
</div>
</div>
<div class="title-line"></div>
</template>
<a-descriptions-item label="">
<a-descriptions-item v-if="isShowFold" label="">
<OperationLog ref="operationLogRef" :operationLogData="pageData" />
</a-descriptions-item>
</a-descriptions>
......@@ -91,9 +101,11 @@ import TitleTipIcon from "@/components/icons/TitleTipIcon.vue";
import InspectorAddForm from "@/views/detection/inspector/components/InspectorAddForm.vue";
import OperationLog from "@/views/detection/inspector/components/OperationLog.vue";
import TicketList from "@/views/detection/inspector/components/ticketList.vue";
import { DoubleLeftOutlined } from '@ant-design/icons-vue';
@Component({
components: { TitleDivider, TitleTipIcon, InspectorAddForm, OperationLog, TicketList }
components: { TitleDivider, TitleTipIcon, InspectorAddForm, OperationLog, TicketList, DoubleLeftOutlined }
})
......@@ -106,6 +118,8 @@ export default class DetectionInspectorView extends PaginationComponent<Vehicle>
pageData: any = {};
isShowFold: boolean = true;
created(): void {
this.routeData = this.$route.query;
this.getDetailData();
......@@ -125,6 +139,10 @@ export default class DetectionInspectorView extends PaginationComponent<Vehicle>
this.$router.back();
}
handleFold(isFold: boolean) {
this.isShowFold = isFold;
}
//秒转换为时分秒
convertToHourMinuteSecond(seconds: number) {
const hours = Math.floor(seconds / 3600);
......@@ -189,4 +207,14 @@ export default class DetectionInspectorView extends PaginationComponent<Vehicle>
background-color: #F2F4F7;
margin-top: 10px;
}
.foldBox {
float: right;
color: #666666;
font-size: 13px;
font-weight: 400;
margin-top: -16px;
cursor: pointer;
}
</style>
......@@ -78,9 +78,9 @@
<a-tag v-else-if="record.auditStatus == 2" color="#E7F2FE" :style="{ color: '#288BFA' }"
:bordered="false">审核中</a-tag>
<a-tag v-else-if="record.auditStatus == 3" color="#E8F8F2" :style="{ color: '#00AD74' }"
:bordered="false">审批通过</a-tag>
:bordered="false">已通过</a-tag>
<a-tag v-else-if="record.auditStatus == 4" color="#FFEDED" :style="{ color: '#EB2F2F' }"
:bordered="false">审批驳回</a-tag>
:bordered="false">已驳回</a-tag>
</template>
<template v-if="column.key === 'action'">
......@@ -152,8 +152,8 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
auditStatusList = [
{ label: '待审核', value: 1 },
// { label: '审核中', value: 2 },
{ label: '审批通过', value: 3 },
{ label: '审批驳回', value: 4 },
{ label: '已通过', value: 3 },
{ label: '已驳回', value: 4 },
];
tabKey = "";
......@@ -162,14 +162,14 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
*/
columns: TableColumnsType = [
{
title: '序号', key: 'index', width: 70, align: 'center', sorter: false,
title: '序号', key: 'index', width: 70, align: 'center', fixed: 'left', sorter: false,
customRender: ({ index }) => {
return (this.getPagination().pageIndex - 1) * this.getPagination().pageSize + index + 1;
},
},
{ 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', "carTypeName"], key: 'carTypeName', align: 'left', width: 286, resizable: true, ellipsis: true },
{ title: '工单单号', dataIndex: 'woId', key: 'woId', align: 'center', fixed: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '车源号', dataIndex: ['vehicle', 'baseInfo', "sourceNo"], key: 'sourceNo', fixed: 'left', align: 'center', width: 170, resizable: true, ellipsis: true },
{ title: '车型名称', dataIndex: ['vehicle', 'baseInfo', "carTypeName"], key: 'carTypeName', align: 'left', fixed: 'left', width: 286, 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', 'custodianInfo', "handoverAddress"], key: 'handoverAddress', width: 240, resizable: true, ellipsis: true },
......@@ -177,7 +177,7 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
{ title: '车辆状态', dataIndex: ['vehicle', "vehicleState"], key: 'vehicleState', 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: '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: 'createTime', key: 'createTime', align: 'center', width: 170, resizable: true, ellipsis: true, sorter: true },
{ title: '完成检测时间', dataIndex: 'inspectionCompletedTime', key: 'inspectionCompletedTime', align: 'center', width: 170, resizable: true, ellipsis: true, sorter: true },
......@@ -301,7 +301,7 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
}
DetectionController.inspectOrderExport(this.axios, paramsData, { responseType: 'blob' }).then(response => {
message.success('导出任务已创建,请在下载中心查看');
ExportUtil.downloadExcelFile(response.data, '检测订单管理列表' + this.getNewTime());
ExportUtil.downloadExcelFile(response.data, + this.getNewTime() + '-检测工单管理');
}).catch(error => {
console.error('Error downloading Word file:', error);
}).finally(() => {
......
......@@ -29,11 +29,23 @@
<div style="width: 100%;float: left;margin-top: 16px;">
<a-descriptions :column="1" size="small" layout="vertical">
<template #title>
<div>
<div>
<title-tip-icon></title-tip-icon>
操作日志
</div>
<div @click="handleFold(false)" v-if="isShowFold" class="foldBox">收起
<DoubleLeftOutlined color="#666666" font-size="13px;"
style="transform: rotate(90deg);" />
</div>
<div @click="handleFold(true)" v-else class="foldBox">展开
<DoubleLeftOutlined color="#666666" font-size="13px;"
style="transform: rotate(270deg);" />
</div>
</div>
<div class="title-line"></div>
</template>
<a-descriptions-item label="">
<a-descriptions-item v-if="isShowFold" label="">
<OperationLog ref="operationLogRef" :operationLogData="pageData" />
</a-descriptions-item>
</a-descriptions>
......@@ -49,19 +61,18 @@
import { Component } from 'vue-facing-decorator';
import { PaginationComponent } from "@/components/PaginationComponent";
import { Vehicle } from "lib/src/entity/vehicle/entity/Vehicle";
import { DetectionController } from "@/api/DetectionController";
import TitleDivider from "@/components/TitleDivider.vue";
import TitleTipIcon from "@/components/icons/TitleTipIcon.vue";
import OperationLog from "@/views/detection/order/components/OperationLog.vue";
import orderReport from "@/views/detection/order/components/orderReport.vue";
import orderDetails from "@/views/detection/order/components/orderDetails.vue";
import reviewDialog from "@/views/detection/order/components/reviewDialog.vue";
import { DoubleLeftOutlined } from '@ant-design/icons-vue';
@Component({
components: { TitleDivider, TitleTipIcon, OperationLog, orderReport, orderDetails, reviewDialog }
components: { TitleDivider, TitleTipIcon, OperationLog, orderReport, orderDetails, reviewDialog, DoubleLeftOutlined }
})
......@@ -78,6 +89,8 @@ export default class DetectionOrderView extends PaginationComponent<Vehicle> {
pageData: any = {};
isShowFold: boolean = true;
get tabs() {
let tabs = [
{ key: "REPORT", tab: "检测报告" },
......@@ -110,6 +123,10 @@ export default class DetectionOrderView extends PaginationComponent<Vehicle> {
this.$refs.reviewDialogRef.showVisible({ ...this.pageData, status });
}
handleFold(isFold: boolean) {
this.isShowFold = isFold;
}
handleBack() {
this.$router.back();
}
......@@ -137,4 +154,13 @@ export default class DetectionOrderView extends PaginationComponent<Vehicle> {
margin-top: 16px;
margin-bottom: 16px;
}
.foldBox {
float: right;
color: #666666;
font-size: 13px;
font-weight: 400;
margin-top: -16px;
cursor: pointer;
}
</style>
\ No newline at end of file
......@@ -12,7 +12,7 @@
<a-form layout="vertical" :model="postData" :label-col="labelCol" :wrapper-col="wrapperCol"
ref="formRef">
<a-form-item name="vehicleId" style="width: 100%;" label="车辆信息"
:rules="[{ required: true, message: '请选择车辆' },]">
:rules="[{ required: true, message: '请选择车辆' }]">
<a-button v-if="!postData.vehicleId" @click="addVehicle()">选择车辆</a-button>
<div v-if="postData.vehicleId" class="vehicleData">
<div v-if="!postData.id" class="vehicleDelete">
......@@ -47,7 +47,8 @@
<a-form-item name="inspectorId" label="检测人员" :rules="[{ required: true, message: '请选择检测人员' }]">
<a-select ref="select" v-model:value="postData.inspectorId" placeholder="请选择检测人员"
style="width: 376px;" show-search option-filter-prop="label">
<a-select-option v-for="item in inspectPageList" :key="item.id" :label="item.name" :value="item.id">
<a-select-option v-for="item in inspectPageList" :key="item.id" :label="item.name"
:value="item.id">
{{ item.name }}
</a-select-option>
</a-select>
......@@ -127,7 +128,10 @@ export default class OrderAddForm extends EnhanceFormComponent<User> {
this.inspectorData.custodianName = data?.vehicle?.custodianInfo?.custodianName || "";
this.inspectorData.custodianPhone = data?.vehicle?.custodianInfo?.custodianPhone || "";
this.inspectorData.handoverAddress = data?.vehicle?.custodianInfo?.handoverAddress || "";
//重置表单
setTimeout(() => {
this.$refs.formRef.resetFields()
}, 500);
this.dialogVisible = true;
}
......
......@@ -220,7 +220,7 @@ export default class DetectionReportPage extends PaginationComponent<Vehicle> {
this.exporting = true;
DetectionController.inspectReportExport(this.axios, this.pagination.requestParams, { responseType: 'blob' }).then(response => {
message.success('导出任务已创建,请稍后在浏览器下载列表中查看');
ExportUtil.downloadExcelFile(response.data, '检测报告管理列表' + this.getNewTime());
ExportUtil.downloadExcelFile(response.data, this.getNewTime() + '-检测报告管理');
}).catch(error => {
console.error('Error downloading Word file:', error);
}).finally(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!