车辆接口更新
This commit is contained in:
@ -175,6 +175,7 @@ resourceStatus: any;
|
||||
serverSearch: true,
|
||||
searchDebounceTime: 300,
|
||||
searchLoadingText: '搜索中...',
|
||||
allowClear: true,
|
||||
onSearch: (q: any) => {
|
||||
if (!!q) {
|
||||
return this.service
|
||||
@ -187,6 +188,20 @@ resourceStatus: any;
|
||||
},
|
||||
} 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: '装货地',
|
||||
@ -205,29 +220,6 @@ resourceStatus: any;
|
||||
}
|
||||
}
|
||||
},
|
||||
// driverId: {
|
||||
// title: '承运司机',
|
||||
// type: 'string',
|
||||
// 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.appUserId } as SFSchemaEnum))))
|
||||
// .toPromise();
|
||||
// } else {
|
||||
// return of([]);
|
||||
// }
|
||||
// },
|
||||
// visibleIf: {
|
||||
// _$expand: (value: boolean) => value
|
||||
// }
|
||||
// } as SFSelectWidgetSchema
|
||||
// },
|
||||
driverName: {
|
||||
title: '承运司机',
|
||||
type: 'string',
|
||||
@ -262,7 +254,7 @@ resourceStatus: any;
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'overall:payment:status' },
|
||||
containAllLable:true,
|
||||
containsAllLable: true,
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
@ -296,19 +288,6 @@ resourceStatus: any;
|
||||
},
|
||||
},
|
||||
},
|
||||
// riskStatus: {
|
||||
// title: '是否风险单',
|
||||
// type: 'string',
|
||||
// default: '',
|
||||
// ui: {
|
||||
// widget: 'dict-select',
|
||||
// params: { dictKey: 'bill:risk:status' },
|
||||
// containAllLable:true,
|
||||
// visibleIf: {
|
||||
// _$expand: (value: boolean) => value,
|
||||
// },
|
||||
// } as SFSelectWidgetSchema,
|
||||
// },
|
||||
enterpriseInfoId: {
|
||||
type: 'string',
|
||||
title: '网络货运人',
|
||||
@ -322,26 +301,26 @@ resourceStatus: any;
|
||||
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
|
||||
},
|
||||
// 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',
|
||||
@ -349,7 +328,7 @@ resourceStatus: any;
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'service:type' },
|
||||
containAllLable:true,
|
||||
containsAllLable: true,
|
||||
visibleIf: {
|
||||
_$expand: (value: boolean) => value,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user