车辆对接

This commit is contained in:
wangshiming
2022-01-12 14:56:09 +08:00
parent 0352cd2f08
commit c7eeba9ba9
15 changed files with 126 additions and 103 deletions

View File

@ -199,7 +199,7 @@ resourceStatus: any;
} as SFSelectWidgetSchema
},
carNo: {
carNo: {
title: '车牌号',
type: 'string',
ui: {
@ -213,17 +213,17 @@ resourceStatus: any;
.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([]);
}
},
visibleIf: {
_$expand: (value: boolean) => value,
},
} as SFSelectWidgetSchema,
},
_$expand: (value: boolean) => value
}
} as SFSelectWidgetSchema
},
payeeId: {
title: '车队长',
type: 'string',