'fixbug'
This commit is contained in:
		| @ -179,11 +179,12 @@ export class SupplyManagementVehicleComponent implements OnInit { | ||||
|               label: '下载失败数据', | ||||
|               type: 'primary', | ||||
|               onClick: () => { | ||||
|                 this.service.request(this.service.$api_getFailUploadGoodsOperateResource, result.ids).subscribe((res: any) => { | ||||
|                   if (res) { | ||||
|                     console.log(res); | ||||
|                   } | ||||
|                 }); | ||||
|                 this.service.downloadFile(this.service.$api_getFailUploadGoodsOperateResource, result.ids); | ||||
|                 // this.service.request(this.service.$api_getFailUploadGoodsOperateResource, result.ids).subscribe((res: any) => { | ||||
|                 //   if (res) { | ||||
|                 //     console.log(res); | ||||
|                 //   } | ||||
|                 // }); | ||||
|                 console.log(111); | ||||
|               } | ||||
|             } | ||||
|  | ||||
| @ -154,13 +154,20 @@ export class SupplyManagementImportSupplyComponent implements OnInit { | ||||
|       }); | ||||
|   } | ||||
|   save(): void { | ||||
|     console.log(this?.networkTransporter) | ||||
|     console.log(this.sf.value) | ||||
|     if(!this.sf.value?.shipperAppUserId || !this?.networkTransporter || !this.sf.value?.enterpriseProjectId || !this.sf.value?.fileName) { | ||||
|       this.service.msgSrv.error('请填写必填项并上传文件!') | ||||
|       return | ||||
|     } | ||||
|     const formData : any= new FormData(); | ||||
|     this.files.forEach((file: any) => { | ||||
|     this.files?.forEach((file: any) => { | ||||
|       formData.append('file', file); | ||||
|       formData.append('shipperAppUserId', this.sf.value?.shipperAppUserId); | ||||
|       formData.append('enterpriseInfoId', this?.networkTransporter); | ||||
|       formData.append('enterpriseProjectId', this.sf.value?.enterpriseProjectId); | ||||
|     }); | ||||
|    | ||||
|     console.log(formData) | ||||
|     this.service.request(this.service.$api_goodsResourceOperateImport, formData).subscribe(res => { | ||||
|       if (res) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user