批量审核

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

@ -168,7 +168,24 @@ tabs = {
},
shipperAppUserId: {
type: 'string',
title: '货主'
title: '货主',
ui: {
widget: 'select',
serverSearch: true,
searchDebounceTime: 300,
searchLoadingText: '搜索中...',
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',
@ -200,7 +217,7 @@ tabs = {
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([]);
@ -301,7 +318,7 @@ tabs = {
},
},
},
enterpriseInfoName: {
enterpriseInfoId: {
type: 'string',
title: '网络货运人',
ui: {
@ -327,7 +344,7 @@ tabs = {
// asyncData: () => this.getCatalogueMember(),
// },
// },
goodsTypeId: {
goodsNameId: {
type: 'string',
title: '货物名称',
ui: {