fix bug
This commit is contained in:
		| @ -149,7 +149,7 @@ export class EditPartnerComponentsAddComponent implements OnInit { | ||||
|       enterId = [this.i.id] | ||||
|     } | ||||
|     const params = { | ||||
|       ...this.sf.value, | ||||
|       ...this.sf?.value, | ||||
|       enterpriceIds: enterId, | ||||
|       settStartTime: this.sf?.value?.settStartTime + ' 00:00:00' | ||||
|     } | ||||
|  | ||||
| @ -122,7 +122,7 @@ export class EditSaleComponentsAddComponent implements OnInit { | ||||
|       nzContent: '确定提交吗?', | ||||
|       nzOnOk: () => { | ||||
|         const params = { | ||||
|           ...this.sf.value, | ||||
|           ...this.sf?.value, | ||||
|            enterpriceIds: enterId, | ||||
|  | ||||
|         } | ||||
|  | ||||
| @ -47,21 +47,21 @@ export class FreightComponentsListComponent implements OnInit { | ||||
|     Object.assign(requestOptions.body, { listSource: 1 }); | ||||
|     if (this.sf) { | ||||
|       Object.assign(requestOptions.body, { | ||||
|         ...this.sf.value | ||||
|         ...this.sf?.value | ||||
|       }); | ||||
|       if (this.sf.value.createTime) { | ||||
|       if (this.sf?.value.createTime) { | ||||
|         Object.assign(requestOptions.body, { | ||||
|           createTime: { | ||||
|             start: this.sf.value.createTime[0], | ||||
|             end: this.sf.value.createTime[1] | ||||
|             start: this.sf?.value.createTime[0], | ||||
|             end: this.sf?.value.createTime[1] | ||||
|           } | ||||
|         }); | ||||
|       } | ||||
|       if (this.sf.value.approvalTime) { | ||||
|       if (this.sf?.value.approvalTime) { | ||||
|         Object.assign(requestOptions.body, { | ||||
|           approvalTime: { | ||||
|             start: this.sf.value.approvalTime[0], | ||||
|             end: this.sf.value.approvalTime[1] | ||||
|             start: this.sf?.value.approvalTime[0], | ||||
|             end: this.sf?.value.approvalTime[1] | ||||
|           } | ||||
|         }); | ||||
|       } | ||||
| @ -555,7 +555,7 @@ export class FreightComponentsListComponent implements OnInit { | ||||
|     const params = { listSource: 1, pageSize: -1 }; | ||||
|     if (this.sf) { | ||||
|       Object.assign(params, { | ||||
|         ...this.sf.value | ||||
|         ...this.sf?.value | ||||
|       }); | ||||
|     } | ||||
|     this.service.downloadFile(this.service.$api_export_enterprise, params); | ||||
|  | ||||
| @ -107,12 +107,12 @@ export class FreightComponentsListNewComponent implements OnInit { | ||||
|         return; | ||||
|       } | ||||
|     } | ||||
|     const sfVlaue = this.sf.value; | ||||
|     const sfVlaue = this.sf?.value; | ||||
|     const params = {}; | ||||
|     Object.assign( | ||||
|       params, | ||||
|       { ...this.sf1.value }, | ||||
|       { ...this.sf.value }, | ||||
|       { ...this.sf?.value }, | ||||
|       { | ||||
|         enterpriseAddressCode: this.sf1.value.enterpriseAddressCode[2], | ||||
|         oftenUsedServices: sfVlaue.oftenUsedServices, | ||||
|  | ||||
| @ -80,7 +80,7 @@ export class ShowServiceComponent implements OnInit { | ||||
|   } | ||||
|   submitForm() { | ||||
|     const params: any = { | ||||
|       ...this.sf.value, | ||||
|       ...this.sf?.value, | ||||
|       enterpriseIdList: [this.i.id] | ||||
|     }; | ||||
|     this.service.request(this.service.$api_distributionCusService, params).subscribe(res => { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user