车辆接口更新

This commit is contained in:
wangshiming
2022-01-19 10:30:09 +08:00
parent f68400f42c
commit 15fafe787c
4 changed files with 20 additions and 40 deletions

View File

@ -166,8 +166,8 @@ export class OrderManagementRiskComponent implements OnInit {
type: 'string', type: 'string',
ui: { ui: {
widget: 'dict-select', widget: 'dict-select',
params: { dictKey: 'goodresourceType' }, params: { dictKey: 'freight:type' },
containAllLable: true, containsAllLable: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
} }
@ -179,7 +179,7 @@ export class OrderManagementRiskComponent implements OnInit {
ui: { ui: {
widget: 'dict-select', widget: 'dict-select',
params: { dictKey: 'BulkFreightUnitPriceType' }, params: { dictKey: 'BulkFreightUnitPriceType' },
containAllLable: true, containsAllLable: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
} }
@ -191,10 +191,10 @@ export class OrderManagementRiskComponent implements OnInit {
ui: { ui: {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
allowClear: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value,
}, },
allowClear: true,
asyncData: () => this.shipperservice.getNetworkFreightForwarder(), asyncData: () => this.shipperservice.getNetworkFreightForwarder(),
}, },
}, },
@ -205,6 +205,7 @@ export class OrderManagementRiskComponent implements OnInit {
widget: 'date', widget: 'date',
mode: 'range', mode: 'range',
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
allowClear: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
} }

View File

@ -118,6 +118,7 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
serverSearch: true, serverSearch: true,
searchDebounceTime: 300, searchDebounceTime: 300,
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
allowClear: true,
onSearch: (q: any) => { onSearch: (q: any) => {
console.log(q) console.log(q)
if (!!q) { if (!!q) {
@ -139,6 +140,7 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
title: '所属项目', title: '所属项目',
ui: { ui: {
widget: 'select', widget: 'select',
allowClear: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value,
}, },
@ -146,53 +148,23 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
this.shipperSrv.getEnterpriseProject() this.shipperSrv.getEnterpriseProject()
} as SFSelectWidgetSchema, } as SFSelectWidgetSchema,
}, },
driverId: { driverName: {
title: '承运司机', title: '承运司机',
type: 'string', type: 'string',
ui: { ui: {
widget: 'select',
serverSearch: true,
searchDebounceTime: 300,
searchLoadingText: '搜索中...',
onSearch: (q: any) => {
if (!!q) {
return this.service
.request(this.service.$api_get_getDriverInfo, { keyword: q, model: 1, type: 1 })
.pipe(map(res => (res as any[]).map(i => ({ label: i.name, value: i.id } as SFSchemaEnum))))
.toPromise();
} else {
return of([]);
}
},
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
} }
} as SFSelectWidgetSchema }
}, },
carNo: { carNo: {
title: '车牌号', title: '车牌号',
type: 'string', type: 'string',
ui: { ui: {
widget: 'select',
serverSearch: true,
searchDebounceTime: 300,
searchLoadingText: '搜索中...',
onSearch: (q: any) => {
if (!!q) {
return this.service
.request(this.service.$api_get_getCarLicenseListByCarNo, {
carNo: q
})
.pipe(map((res: any) => (res?.records as any[]).map(i => ({ label: i.carNo, value: i.carNo } as SFSchemaEnum))))
.toPromise();
} else {
return of([]);
}
},
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
} }
} as SFSelectWidgetSchema }
}, },
reportingTime: { reportingTime: {
title: '上报时间', title: '上报时间',

View File

@ -92,6 +92,7 @@ tabs = {
serverSearch: true, serverSearch: true,
searchDebounceTime: 300, searchDebounceTime: 300,
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
allowClear: true,
onSearch: (q: any) => { onSearch: (q: any) => {
console.log(q) console.log(q)
if (!!q) { if (!!q) {
@ -155,8 +156,8 @@ tabs = {
type: 'string', type: 'string',
ui: { ui: {
widget: 'dict-select', widget: 'dict-select',
params: { dictKey: 'payment:status' }, params: { dictKey: 'overall:payment:status' },
containAllLable:true, containsAllLable: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value,
}, },
@ -185,6 +186,7 @@ tabs = {
], ],
ui: { ui: {
widget: 'select', widget: 'select',
allowClear: true,
placeholder: '请选择', placeholder: '请选择',
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value,
@ -211,6 +213,7 @@ tabs = {
widget: 'date', widget: 'date',
mode: 'range', mode: 'range',
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
allowClear: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value, _$expand: (value: boolean) => value,
}, },

View File

@ -90,6 +90,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
serverSearch: true, serverSearch: true,
searchDebounceTime: 300, searchDebounceTime: 300,
searchLoadingText: '搜索中...', searchLoadingText: '搜索中...',
allowClear: true,
onSearch: (q: any) => { onSearch: (q: any) => {
console.log(q) console.log(q)
if (!!q) { if (!!q) {
@ -129,6 +130,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
}, },
allowClear: true,
asyncData: () => this.shipperservice.getEnterpriseProject() asyncData: () => this.shipperservice.getEnterpriseProject()
} as SFSelectWidgetSchema } as SFSelectWidgetSchema
}, },
@ -165,7 +167,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
ui: { ui: {
widget: 'dict-select', widget: 'dict-select',
params: { dictKey: 'overall:payment:status' }, params: { dictKey: 'overall:payment:status' },
containAllLable: true, containsAllLable: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
} }
@ -195,6 +197,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
ui: { ui: {
widget: 'select', widget: 'select',
placeholder: '请选择', placeholder: '请选择',
allowClear: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
} }
@ -220,6 +223,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
widget: 'date', widget: 'date',
mode: 'range', mode: 'range',
format: 'yyyy-MM-dd', format: 'yyyy-MM-dd',
allowClear: true,
visibleIf: { visibleIf: {
_$expand: (value: boolean) => value _$expand: (value: boolean) => value
} }