批量审核

This commit is contained in:
wangshiming
2022-01-17 14:31:46 +08:00
parent 3a88615847
commit 2442f6c014
7 changed files with 167 additions and 32 deletions

View File

@ -213,7 +213,7 @@ resourceStatus: 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))))
.pipe(map(res => (res as any[]).map(i => ({ label: i.name, value: i.appUserId } as SFSchemaEnum))))
.toPromise();
} else {
return of([]);
@ -225,7 +225,7 @@ resourceStatus: any;
} as SFSelectWidgetSchema
},
carNo: {
plateNumber: {
title: '车牌号',
type: 'string',
ui: {
@ -274,12 +274,12 @@ resourceStatus: any;
},
} as SFSelectWidgetSchema,
},
paymentstatus: {
paymentStatus: {
title: '支付状态',
type: 'string',
ui: {
widget: 'dict-select',
params: { dictKey: 'payment:status' },
params: { dictKey: 'bill:payexpense:status' },
containAllLable:true,
visibleIf: {
_$expand: (value: boolean) => value,
@ -327,15 +327,25 @@ resourceStatus: any;
asyncData: () => this.service2.getNetworkFreightForwarder(),
},
},
goodsName: {
goodsNameId: {
type: 'string',
title: '货物名称',
ui: {
widget: 'select',
placeholder: '请选择',
errors: { required: '请选择货物类型' },
visibleIf: {
_$expand: (value: boolean) => value,
},
},
asyncData: () =>
this.service2.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: '服务类型',