车辆对接
This commit is contained in:
@ -76,20 +76,26 @@ export class VehicleComponentsAuditComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'select',
|
||||
serverSearch: true,
|
||||
searchDebounceTime: 300,
|
||||
searchDebounceTime: 250,
|
||||
searchLoadingText: '搜索中...',
|
||||
onSearch: (q: any) => {
|
||||
if (!!q) {
|
||||
return this.service
|
||||
.request(this.service.$api_get_getCarLicenseListByCarNo, {
|
||||
.request(this.service.$api_get_getCarLicenseListByCarNo_audit, {
|
||||
carNo: q
|
||||
})
|
||||
.pipe(map((res: any[]) => (res as any[]).map((i) => ({ label: i.carNo, value: i.carNo } as SFSchemaEnum))))
|
||||
.pipe(map((res: any) => (res.records as any[]).map((i) => (
|
||||
{ label: i.carNo, value: i.carNo
|
||||
} as SFSchemaEnum)
|
||||
)
|
||||
)
|
||||
)
|
||||
.toPromise();
|
||||
} else {
|
||||
return of([]);
|
||||
}
|
||||
},
|
||||
width: 250
|
||||
} as SFSelectWidgetSchema,
|
||||
},
|
||||
carNoColor: {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-11-29 15:22:34
|
||||
* @LastEditTime: 2021-12-15 16:38:35
|
||||
* @LastEditTime: 2021-12-17 17:29:51
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\usercenter\components\freight\list\list.component.html
|
||||
@ -67,6 +67,17 @@
|
||||
{{ item?.isSelf ? '是' : '否' }}
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template st-row="approvalAuditStatus" let-item let-index="index">
|
||||
<div>
|
||||
<span *ngIf="item?.auditStatusEnum === -1 || item?.auditStatusEnum === '-1' && item?.isSelf">未上传</span>
|
||||
<span *ngIf="item?.auditStatusEnum === 0 || item?.auditStatusEnum === '0' && item?.isSelf">草稿</span>
|
||||
<span *ngIf="item?.auditStatusEnum === 10 || item?.auditStatusEnum === '10' && item?.isSelf">待审核</span>
|
||||
<span *ngIf="item?.auditStatusEnum === 20 || item?.auditStatusEnum === '20' && item?.isSelf">已审核</span>
|
||||
<span *ngIf="item?.auditStatusEnum === 30 || item?.auditStatusEnum === '30' && item?.isSelf">已驳回</span>
|
||||
<span *ngIf="item?.auditStatusEnum === 40 || item?.auditStatusEnum === '40' && item?.isSelf">证件过期</span>
|
||||
<span *ngIf="!item?.isSelf">-</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template st-row="stateCol" let-item let-index="index">
|
||||
<nz-tag *ngIf="item.stateLocked" nzColor="error">冻结</nz-tag>
|
||||
<nz-tag *elseBlock nzColor="success">正常</nz-tag>
|
||||
|
||||
@ -77,7 +77,7 @@ export class VehicleComponentsListComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'select',
|
||||
serverSearch: true,
|
||||
searchDebounceTime: 300,
|
||||
searchDebounceTime: 250,
|
||||
searchLoadingText: '搜索中...',
|
||||
onSearch: (q: any) => {
|
||||
if (!!q) {
|
||||
@ -85,12 +85,18 @@ export class VehicleComponentsListComponent implements OnInit {
|
||||
.request(this.service.$api_get_getCarLicenseListByCarNo, {
|
||||
carNo: q
|
||||
})
|
||||
.pipe(map((res: any[]) => (res as any[]).map((i) => ({ label: i.carNo, value: i.carNo } as SFSchemaEnum))))
|
||||
.pipe(map((res: any) => (res.records as any[]).map((i) => (
|
||||
{ label: i.carNo, value: i.carNo
|
||||
} as SFSchemaEnum)
|
||||
)
|
||||
)
|
||||
)
|
||||
.toPromise();
|
||||
} else {
|
||||
return of([]);
|
||||
}
|
||||
},
|
||||
width: 250
|
||||
} as SFSelectWidgetSchema,
|
||||
},
|
||||
carNoColor: {
|
||||
@ -234,7 +240,7 @@ export class VehicleComponentsListComponent implements OnInit {
|
||||
},
|
||||
{ title: '所有人', className: 'text-center', index: 'carOwner' },
|
||||
{ title: '是否挂靠', className: 'text-center', render: 'isSelf', },
|
||||
{ title: '挂靠协议', className: 'text-center', index: 'carNo' },
|
||||
{ title: '挂靠协议', className: 'text-center', render: 'approvalAuditStatus' },
|
||||
|
||||
{
|
||||
title: '操作',
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-11-29 15:22:34
|
||||
* @LastEditTime: 2021-12-17 09:34:09
|
||||
* @LastEditTime: 2021-12-17 17:17:17
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\usercenter\services\usercenter.service.ts
|
||||
@ -44,8 +44,11 @@ export class VehicleService extends BaseService {
|
||||
// 上传司机挂靠协议
|
||||
$api_get_upLoadCarProtocal= `/api/mdc/cuc/carLicenseAudit/operate/upLoadCarProtocal`;
|
||||
|
||||
// 根据车牌号查询车辆信息
|
||||
$api_get_getCarLicenseListByCarNo= `/api/mdc/cuc/carLicenseAudit/operate/getCarLicenseListByCarNo`;
|
||||
// 根据车牌号查询车辆信息(车辆认证表)
|
||||
$api_get_getCarLicenseListByCarNo= `/api/mdc/cuc/carLicense/operate/findCarLicenseListByCarNo`;
|
||||
|
||||
// 根据车牌号查询车辆信息(车辆审核认证表)
|
||||
$api_get_getCarLicenseListByCarNo_audit= `/api/mdc/cuc/carLicenseAudit/operate/findCarLicenseAuditListByCarNo`;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user