车辆对接

This commit is contained in:
wangshiming
2021-12-16 20:28:23 +08:00
parent 7150f45b31
commit 4350fecab1
23 changed files with 494 additions and 231 deletions

View File

@ -130,7 +130,7 @@ export class VehicleComponentsAuditComponent implements OnInit {
this.columns = [
// { title: '', type: 'checkbox', className: 'text-center' },
{ title: '车牌号', className: 'text-center', index: 'carNo' },
{ title: '车牌颜色', className: 'text-center', index: 'carNoColor' },
{ title: '车牌颜色', className: 'text-center', index: 'carModelLabel' },
{ title: '车型-车长-载重', className: 'text-center', render: 'carLength' },
{ title: '是否挂靠', className: 'text-center', render: 'isSelf' },
{ title: '所有人', className: 'text-center', index: 'carOwner' },
@ -138,18 +138,15 @@ export class VehicleComponentsAuditComponent implements OnInit {
{
title: '审核状态',
className: 'text-center',
index: 'enStatusStr2',
index: 'approvalStatus',
type: 'badge',
badge: {
10: { text: '待审核', color: 'default' },
20: { text: '审核通过', color: 'success' },
30: { text: '驳回', color: 'warning' },
// { label: '未提交', value: '-1' },
// { label: '草稿', value: 0},
// { label: '待审核', value: 10 },
// { label: '审核通过', value: 20 },
// { label: '驳回', value: 30 },
// { label: '证件过期', value: 40 },
'-1': { text: '未上传', color: 'default' },
0: { text: '草稿', color: 'warning' },
10: { text: '待审核', color: 'warning' },
20: { text: '已审核', color: 'success' },
30: { text: '已驳回', color: 'error' },
40: { text: '证件过期', color: 'error' },
},
},
{ title: '申请时间', className: 'text-center', render: 'isSelf' },
@ -161,7 +158,7 @@ export class VehicleComponentsAuditComponent implements OnInit {
{
text: '查看',
click: (item) => {
this.router.navigate(['./detail', item.id], { relativeTo: this.ar });
this.router.navigate(['./detail', item.id], { relativeTo: this.ar,queryParams: { carId: item.carId } });
// this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } });
},
},
@ -170,7 +167,7 @@ export class VehicleComponentsAuditComponent implements OnInit {
];
}
daoyun(item: any) {
this.router.navigate(['./view', item.id], { relativeTo: this.ar });
this.router.navigate(['./view', item], { relativeTo: this.ar });
}
expandToggle() {
this._$expand = !this._$expand;