fix bug
This commit is contained in:
		| @ -1025,7 +1025,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit { | |||||||
|       this.sf4data.id = res?.goodsInfoVOList[0]?.id; |       this.sf4data.id = res?.goodsInfoVOList[0]?.id; | ||||||
|     } |     } | ||||||
|        // 计算里程,时间 |        // 计算里程,时间 | ||||||
|       if (this.startInfo[0]?.area && this.endInfo[0]?.area) { |        if (this.startInfo[0]?.detailedAddress && this.endInfo[0]?.detailedAddress) { | ||||||
|         this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { |         this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { | ||||||
|           this.totalDistance = res.distance; |           this.totalDistance = res.distance; | ||||||
|           this.totalTime = res.time; |           this.totalTime = res.time; | ||||||
| @ -1104,7 +1104,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit { | |||||||
|     }); |     }); | ||||||
|  |  | ||||||
|       // 计算里程,时间 |       // 计算里程,时间 | ||||||
|     if (this.startInfo[0]?.area && this.endInfo[0]?.area) { |       if (this.startInfo[0]?.detailedAddress && this.endInfo[0]?.detailedAddress) { | ||||||
|         this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { |         this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { | ||||||
|           this.totalDistance = res.distance; |           this.totalDistance = res.distance; | ||||||
|           this.totalTime = res.time; |           this.totalTime = res.time; | ||||||
|  | |||||||
| @ -840,7 +840,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit { | |||||||
|       }); |       }); | ||||||
|    |    | ||||||
|           // 计算里程,时间 |           // 计算里程,时间 | ||||||
|       if (this.startInfo[0]?.area && this.endInfo[0]?.area) { |     if (this.startInfo[0]?.detailedAddress && this.endInfo[0]?.detailedAddress) { | ||||||
|       this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { |       this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { | ||||||
|         this.totalDistance = res.distance; |         this.totalDistance = res.distance; | ||||||
|         this.totalTime = res.time; |         this.totalTime = res.time; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user