车辆对接

This commit is contained in:
wangshiming
2021-12-17 17:36:35 +08:00
parent 49e4042c4c
commit 17354d05ec
7 changed files with 137 additions and 164 deletions

View File

@ -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: {