车辆对接

This commit is contained in:
wangshiming
2022-01-12 13:35:52 +08:00
parent eaef5be8ff
commit 4c544cbcd0
6 changed files with 55 additions and 24 deletions

View File

@ -86,7 +86,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
this.schema = {
properties: {
_$expand: { type: 'boolean', ui: { hidden: true } },
wayBillCodeno: {
wayBillCode: {
type: 'string',
title: '运单号'
},
@ -94,9 +94,29 @@ export class WaybillManagementVehicleComponent implements OnInit {
type: 'string',
title: '货源编号'
},
no1: {
shipperAppUserId: {
type: 'string',
title: '货主'
title: '货主',
ui: {
widget: 'select',
serverSearch: true,
searchDebounceTime: 300,
searchLoadingText: '搜索中...',
visibleIf: {
_$expand: (value: boolean) => value
},
onSearch: (q: any) => {
console.log(q)
if (!!q) {
return this.service
.request(this.service.$api_enterpriceList, { enterpriseName: q})
.pipe(map((res: any) => (res as any[]).map((i) => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum))))
.toPromise();
} else {
return of([]);
}
},
} as SFSelectWidgetSchema,
},
loadingPlace: {
type: 'string',