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