From 2c46fd77bd2956f7c929082ac8c887ac0aa8e1af Mon Sep 17 00:00:00 2001 From: wangshiming Date: Fri, 4 Mar 2022 15:08:30 +0800 Subject: [PATCH 1/2] fix bug --- .../modify-rate/modify-rate.component.html | 10 +++ .../modify-rate/modify-rate.component.ts | 15 +++- .../bulk-detail/bulk-detail.component.html | 2 +- .../onecar-publish.component.html | 17 ++-- .../onecar-publish.component.ts | 90 +++++++++++-------- .../release-publish.component.html | 16 ++-- .../release-publish.component.ts | 73 +++++++++------ .../update-price/update-price.component.html | 9 +- .../vehicle-detail.component.html | 2 +- 9 files changed, 143 insertions(+), 91 deletions(-) diff --git a/src/app/routes/order-management/modal/vehicle/modify-rate/modify-rate.component.html b/src/app/routes/order-management/modal/vehicle/modify-rate/modify-rate.component.html index fb348ad7..fa6106e2 100644 --- a/src/app/routes/order-management/modal/vehicle/modify-rate/modify-rate.component.html +++ b/src/app/routes/order-management/modal/vehicle/modify-rate/modify-rate.component.html @@ -10,6 +10,16 @@ --> + + + + {{item?.operator}}/{{item.telephone}} + +

变更日志

- - {{item?.operator}}/{{item.telephone}} diff --git a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html index 0d9643ed..9429b4ee 100644 --- a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html +++ b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html @@ -213,7 +213,7 @@ From ea95821644aa9aada1030c422a09ed1a19eb0c88 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Fri, 4 Mar 2022 15:12:13 +0800 Subject: [PATCH 2/2] fix bug --- .../bulk-publish/bulk-publish.component.ts | 18 +++++++++--------- .../bulk-release-publish.component.ts | 14 +++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/app/routes/supply-management/components/bulk-publish/bulk-publish.component.ts b/src/app/routes/supply-management/components/bulk-publish/bulk-publish.component.ts index 89fc5b4b..07b45ea3 100644 --- a/src/app/routes/supply-management/components/bulk-publish/bulk-publish.component.ts +++ b/src/app/routes/supply-management/components/bulk-publish/bulk-publish.component.ts @@ -1024,8 +1024,8 @@ export class SupplyManagementBulkPublishComponent implements OnInit { if (this.PageStatus === '大宗修改') { 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.totalDistance = res.distance; this.totalTime = res.time; @@ -1103,13 +1103,13 @@ export class SupplyManagementBulkPublishComponent implements OnInit { element.type = '2'; }); - // 计算里程,时间 - if (this.startInfo[0]?.area && this.endInfo[0]?.area) { - this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { - this.totalDistance = res.distance; - this.totalTime = res.time; - }); - } + // 计算里程,时间 + if (this.startInfo[0]?.detailedAddress && this.endInfo[0]?.detailedAddress) { + this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { + this.totalDistance = res.distance; + this.totalTime = res.time; + }); + } } getLimitvalue() { const getlimitvaluesParms = [ diff --git a/src/app/routes/supply-management/components/bulk-release-publish/bulk-release-publish.component.ts b/src/app/routes/supply-management/components/bulk-release-publish/bulk-release-publish.component.ts index 53858ad0..9804987e 100644 --- a/src/app/routes/supply-management/components/bulk-release-publish/bulk-release-publish.component.ts +++ b/src/app/routes/supply-management/components/bulk-release-publish/bulk-release-publish.component.ts @@ -839,13 +839,13 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit { element.type = '2'; }); - // 计算里程,时间 - if (this.startInfo[0]?.area && this.endInfo[0]?.area) { - this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { - this.totalDistance = res.distance; - this.totalTime = res.time; - }); - } + // 计算里程,时间 + if (this.startInfo[0]?.detailedAddress && this.endInfo[0]?.detailedAddress) { + this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => { + this.totalDistance = res.distance; + this.totalTime = res.time; + }); + } } getLimitvalue() { const getlimitvaluesParms = [