车辆接口更新

This commit is contained in:
wangshiming
2022-01-19 10:12:31 +08:00
parent c442051454
commit f68400f42c
16 changed files with 96 additions and 131 deletions

View File

@ -179,6 +179,7 @@ tabs = {
serverSearch: true,
searchDebounceTime: 300,
searchLoadingText: '搜索中...',
allowClear: true,
onSearch: (q: any) => {
if (!!q) {
return this.service
@ -191,6 +192,20 @@ tabs = {
},
} as SFSelectWidgetSchema,
},
enterpriseProjectId: {
type: 'string',
title: '所属项目',
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getEnterpriseProject(),
visibleIf: {
_$expand: (value: boolean) => value
}
},
default: ''
},
loadingPlace: {
type: 'string',
title: '装货地',
@ -242,7 +257,7 @@ tabs = {
ui: {
widget: 'dict-select',
params: { dictKey: 'overall:payment:status' },
containAllLable:true,
containsAllLable: true,
visibleIf: {
_$expand: (value: boolean) => value,
},
@ -255,6 +270,7 @@ tabs = {
widget: 'date',
mode: 'range',
format: 'yyyy-MM-dd',
allowClear: true,
visibleIf: {
_$expand: (value: boolean) => value
}
@ -282,33 +298,13 @@ tabs = {
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
visibleIf: {
_$expand: (value: boolean) => value,
},
allowClear: true,
asyncData: () => this.shipperservice.getNetworkFreightForwarder(),
},
},
goodsNameId: {
type: 'string',
title: '货物名称',
ui: {
widget: 'select',
placeholder: '请选择',
errors: { required: '请选择货物类型' },
visibleIf: {
_$expand: (value: boolean) => value,
},
asyncData: () =>
this.shipperservice.loadConfigByKey('goods.name.config.type').pipe(
map((data: any) => {
return data[0].children?.map((m: any) => {
return { label: m.name, value: m.id };
});
})
),
} as SFSelectWidgetSchema
},
serviceType: {
title: '服务类型',
type: 'string',
@ -316,6 +312,19 @@ tabs = {
ui: {
widget: 'dict-select',
params: { dictKey: 'service:type' },
containsAllLable: true,
visibleIf: {
_$expand: (value: boolean) => value,
},
} as SFSelectWidgetSchema,
},
settlementBasis: {
title: '结算依据',
type: 'string',
ui: {
widget: 'dict-select',
containsAllLable: true,
params: { dictKey: 'goodresource:settlement:type' },
containAllLable:true,
visibleIf: {
_$expand: (value: boolean) => value,