diff --git a/src/app/routes/order-management/components/risk/risk.component.ts b/src/app/routes/order-management/components/risk/risk.component.ts index d7421ffc..06801109 100644 --- a/src/app/routes/order-management/components/risk/risk.component.ts +++ b/src/app/routes/order-management/components/risk/risk.component.ts @@ -45,14 +45,28 @@ export class OrderManagementRiskComponent implements OnInit { * 查询参数 */ get reqParams() { + // const a:any = {}; + // if(this.resourceStatus) { + // a.representationsStatus = this.resourceStatus + // } + // return { + // ...a, + // ...this.sf?.value, + // }; const a:any = {}; if(this.resourceStatus) { a.representationsStatus = this.resourceStatus } - return { + const params: any = Object.assign({}, this.sf?.value || {}); + delete params._$expand; + return { ...a, - ...this.sf?.value, - }; + ...params, + createTime: { + start: this.sf?.value?.createTime?.[0] || '', + end: this.sf?.value?.createTime?.[1] || '', + }, + }; } get selectedRows() { return this.st?.list.filter(item => item.checked) || []; @@ -116,48 +130,25 @@ export class OrderManagementRiskComponent implements OnInit { } } }, - // driverName: { - // type: 'string', - // title: '承运司机', - // ui: { - // visibleIf: { - // _$expand: (value: boolean) => value, - // }, - // } - // }, - driverId: { + driverName: { 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.id } as SFSchemaEnum)))) - .toPromise(); - } else { - return of([]); - } - }, - visibleIf: { - _$expand: (value: boolean) => value - } - } as SFSelectWidgetSchema - }, - no9: { - type: 'string', - title: '车牌号', ui: { visibleIf: { _$expand: (value: boolean) => value } } }, - no10: { + carNo: { + title: '车牌号', + type: 'string', + ui: { + visibleIf: { + _$expand: (value: boolean) => value + } + } + }, + payeeName: { type: 'string', title: '收款人', ui: {