fix bug
This commit is contained in:
		| @ -88,6 +88,8 @@ export class OrderManagementBulkComponent implements OnInit { | ||||
|     } | ||||
|     const params: any = Object.assign({}, this.sf?.value || {}); | ||||
|     delete params._$expand; | ||||
|     console.log(params); | ||||
|  | ||||
|     if (this.sf) { | ||||
|       Object.assign(requestOptions.body, { | ||||
|         ...a, | ||||
|  | ||||
| @ -29,6 +29,7 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme | ||||
|   isVisibleEvaluate = false; | ||||
|   isVisible = false; | ||||
|   loading: boolean = true; | ||||
|   paramsList: any; | ||||
|   changeId: any; // 主页面查看运费变更记录id - 用于运费变更记录 | ||||
|   changeViewId: any; // 查看运费变更记录id - 用于查看 | ||||
|   ViewCause: any; // 变更运费查看数据 | ||||
| @ -102,31 +103,26 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme | ||||
|     return { | ||||
|       ...a, | ||||
|       ...params, | ||||
|       createTime: { | ||||
|         start: this.sf?.value?.createTime?.[0] || '', | ||||
|         end: this.sf?.value?.createTime?.[1] || '' | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|   beforeReq = (requestOptions: STRequestOptions) => { | ||||
|     const a: any = {}; | ||||
|     if (this.resourceStatus) { | ||||
|       a.billStatus = this.resourceStatus; | ||||
|       Object.assign(requestOptions.body, { | ||||
|         ...a | ||||
|       }); | ||||
|       // Object.assign(requestOptions.body, { | ||||
|       //   ...a | ||||
|       // }); | ||||
|     } | ||||
|     const params: any = Object.assign({}, this.sf?.value || {}); | ||||
|      | ||||
|     const params: any = Object.assign({}, this.sf?.value || this.paramsList); | ||||
|     console.log(this.sf?.value); | ||||
|     console.log(this.paramsList); | ||||
|     delete params._$expand; | ||||
|     if (this.sf) { | ||||
|     this.paramsList = params | ||||
|       Object.assign(requestOptions.body, { | ||||
|         ...params, | ||||
|         createTime: { | ||||
|           start: this.sf?.value?.createTime?.[0] || '', | ||||
|           end: this.sf?.value?.createTime?.[1] || '' | ||||
|         } | ||||
|         ...a, | ||||
|         ...this.paramsList, | ||||
|       }); | ||||
|     } | ||||
|     this.loading = true; | ||||
|     return requestOptions; | ||||
|   }; | ||||
| @ -282,14 +278,19 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme | ||||
|             containsAllLable: true | ||||
|           } as SFSelectWidgetSchema | ||||
|         }, | ||||
|         // createTime: { | ||||
|         //   title: '创建时间', | ||||
|         //   type: 'string', | ||||
|         //   ui: { | ||||
|         //     widget: 'date', | ||||
|         //     mode: 'range', | ||||
|         //     format: 'yyyy-MM-dd' | ||||
|         //   } as SFDateWidgetSchema | ||||
|         // }, | ||||
|         createTime: { | ||||
|           title: '创建时间', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'date', | ||||
|             mode: 'range', | ||||
|             format: 'yyyy-MM-dd' | ||||
|           } as SFDateWidgetSchema | ||||
|           title: '创建时间', | ||||
|           ui: { widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd' } as SFDateWidgetSchema, | ||||
|         }, | ||||
|         riskStatus: { | ||||
|           type: 'string', | ||||
| @ -578,7 +579,7 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme | ||||
|     this.resourceStatus = e; | ||||
|     this.initST(); | ||||
|     setTimeout(() => { | ||||
|       this.st.load(1); | ||||
|       this.st.load(); | ||||
|     }, 500); | ||||
|   } | ||||
|   /** | ||||
|  | ||||
		Reference in New Issue
	
	Block a user