Commit 2364dd9d by yancanhua

fix: 自测问题调整

1 parent e4860026
...@@ -66,19 +66,19 @@ ...@@ -66,19 +66,19 @@
</template> </template>
<template v-if="column.key === 'dispatchedCount'"> <template v-if="column.key === 'dispatchedCount'">
<router-link :to="{ path: '/detection/order', query: { tabKey: 'DISPATCHED' } }"> <router-link :to="{ path: '/detection/order', query: {phone: record.phone, tabKey: 'DISPATCHED' } }">
<a-button type="link" size="small">{{ record.dispatchedCount }}</a-button> <a-button type="link" size="small">{{ record.dispatchedCount }}</a-button>
</router-link> </router-link>
</template> </template>
<template v-if="column.key === 'inProgressCount'"> <template v-if="column.key === 'inProgressCount'">
<router-link :to="{ path: '/detection/order', query: { 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> <a-button type="link" size="small">{{ record.inProgressCount }}</a-button>
</router-link> </router-link>
</template> </template>
<template v-if="column.key === 'completedCount'"> <template v-if="column.key === 'completedCount'">
<router-link :to="{ path: '/detection/order', query: { tabKey: 'COMPLETED' } }"> <router-link :to="{ path: '/detection/order', query: {phone: record.phone, tabKey: 'COMPLETED' } }">
<a-button type="link" size="small">{{ record.completedCount }}</a-button> <a-button type="link" size="small">{{ record.completedCount }}</a-button>
</router-link> </router-link>
</template> </template>
......
...@@ -191,12 +191,19 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> { ...@@ -191,12 +191,19 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
this.getinspectOrderCountByStatus(); this.getinspectOrderCountByStatus();
this.init(this.axios, DetectionController.PAGE_INSPECTOR_ORDER); this.init(this.axios, DetectionController.PAGE_INSPECTOR_ORDER);
this.buildQueryForm({ this.buildQueryForm({
sourceNo: [null, { label: '关键字', field: 'keyword', placeholder: '搜索工单单号、车源号、VIN码、车牌', operator: Operator.like }], keyword: [null, { label: '关键字', field: 'keyword', placeholder: '搜索工单单号、车源号、VIN码、车牌', operator: Operator.like }],
vehicleState: [null, { vehicleState: [null, {
label: '审核状态', field: 'auditStatus', type: 'select', allowClear: true, optionItems: this.auditStatusList, operator: Operator.eq label: '审核状态', field: 'auditStatus', type: 'select', allowClear: true, optionItems: this.auditStatusList, operator: Operator.eq
}], }],
woTime: [null, { label: '派单时间', field: 'woTime', operator: Operator.dateBetween, type: 'date-range' }], woTime: [null, { label: '派单时间', field: 'woTime', operator: Operator.dateBetween, type: 'date-range' }],
}); });
const routeData = this.$route.query;
if (routeData.tabKey) {
this.tabKey = routeData.tabKey || '';
this.pagination.queryForm.keyword = routeData.phone || '';
}
this.pagination.setDefaultSort('createTime', Order.desc); this.pagination.setDefaultSort('createTime', Order.desc);
this.changeTab(this.tabKey); this.changeTab(this.tabKey);
} }
......
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
<a-form-item name="inspectorId" label="检测人员" :rules="[{ required: true, message: '请选择检测人员' }]"> <a-form-item name="inspectorId" label="检测人员" :rules="[{ required: true, message: '请选择检测人员' }]">
<a-select ref="select" v-model:value="postData.inspectorId" placeholder="请选择检测人员" <a-select ref="select" v-model:value="postData.inspectorId" placeholder="请选择检测人员"
style="width: 376px;"> style="width: 376px;" show-search option-filter-prop="label">
<a-select-option v-for="item in inspectPageList" :key="item.id" :value="item.id"> <a-select-option v-for="item in inspectPageList" :key="item.id" :label="item.name" :value="item.id">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!