From eb783b95f1f60f4e7d3f87484f4f5a5b2d2e7c6c Mon Sep 17 00:00:00 2001 From: wangshiming Date: Fri, 14 Jan 2022 14:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/bulk/bulk.component.ts | 11 +- .../complaint/complaint.component.html | 4 +- .../components/vehicle/vehicle.component.html | 21 +-- .../components/vehicle/vehicle.component.ts | 12 +- .../components/bulk/bulk.component.ts | 8 +- .../components/vehicle/vehicle.component.ts | 8 +- .../network-freight.component.html | 13 +- .../network-freight.component.ts | 162 +++++++++++++++++- .../sys-setting/services/system.service.ts | 12 +- .../driver/detail/detail.component.ts | 1 + .../freight/list/detail/detail.component.ts | 1 + src/assets/mocks/menu-data.json | 2 +- 12 files changed, 224 insertions(+), 31 deletions(-) diff --git a/src/app/routes/order-management/components/bulk/bulk.component.ts b/src/app/routes/order-management/components/bulk/bulk.component.ts index f0daa813..2b53e9d1 100644 --- a/src/app/routes/order-management/components/bulk/bulk.component.ts +++ b/src/app/routes/order-management/components/bulk/bulk.component.ts @@ -99,7 +99,16 @@ tabs = { this.getGoodsSourceStatistical() } getGoodsSourceStatistical() { - this.service.request(this.service.$api_getBulkStatistical).subscribe(res => { + this.tabs = { + cancelQuantity: 0, + receivedQuantity: 0, + stayQuantity: 0, + signQuantity: 0, + compolatelQuantity: 0, + GoingQuantity: 0, + totalCount: 0 + }; + this.service.request(this.service.$api_getBulkStatistical, {...this.reqParams}).subscribe(res => { if (res) { let totalCount = 0; res.forEach((element: any) => { diff --git a/src/app/routes/order-management/components/complaint/complaint.component.html b/src/app/routes/order-management/components/complaint/complaint.component.html index 02cffe43..f55df62d 100644 --- a/src/app/routes/order-management/components/complaint/complaint.component.html +++ b/src/app/routes/order-management/components/complaint/complaint.component.html @@ -1,7 +1,7 @@ - - diff --git a/src/app/routes/order-management/components/vehicle/vehicle.component.ts b/src/app/routes/order-management/components/vehicle/vehicle.component.ts index c5821a87..21abb59d 100644 --- a/src/app/routes/order-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/order-management/components/vehicle/vehicle.component.ts @@ -112,7 +112,17 @@ resourceStatus: any; this.getGoodsSourceStatistical() } getGoodsSourceStatistical() { - this.service.request(this.service.$api_statisticalStatus).subscribe(res => { + this.tabs = { + cancelQuantity: 0, + receivedQuantity: 0, + stayQuantity: 0, + signQuantity: 0, + compolatelQuantity: 0, + GoingQuantity: 0, + totalCount: 0 + }; + console.log(this.tabs) + this.service.request(this.service.$api_statisticalStatus,{...this.reqParams}).subscribe(res => { if (res) { let totalCount = 0; res.forEach((element: any) => { diff --git a/src/app/routes/supply-management/components/bulk/bulk.component.ts b/src/app/routes/supply-management/components/bulk/bulk.component.ts index 4a807c4e..a52bf0b5 100644 --- a/src/app/routes/supply-management/components/bulk/bulk.component.ts +++ b/src/app/routes/supply-management/components/bulk/bulk.component.ts @@ -488,7 +488,13 @@ export class SupplyManagementBulkComponent implements OnInit { } // 获取货源状态统计 getGoodsSourceStatistical() { - this.service.request(this.service.$api_get_goods_resource_statistical, { resourceType: 2 }).subscribe(res => { + this.tabs = { + totalQuantity: 0, + cancelQuantity: 0, + receivedQuantity: 0, + stayQuantity: 0 + }; + this.service.request(this.service.$api_get_goods_resource_statistical, { resourceType: 2, ...this.reqParams }).subscribe(res => { if (res) { console.log(res) this.tabs = res; diff --git a/src/app/routes/supply-management/components/vehicle/vehicle.component.ts b/src/app/routes/supply-management/components/vehicle/vehicle.component.ts index 362afc5f..3ddd9415 100644 --- a/src/app/routes/supply-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/supply-management/components/vehicle/vehicle.component.ts @@ -245,7 +245,13 @@ export class SupplyManagementVehicleComponent implements OnInit { } // 获取货源状态统计 getGoodsSourceStatistical() { - this.service.request(this.service.$api_get_goods_resource_statistical, { resourceType: 1 }).subscribe(res => { + this.tabs = { + totalQuantity: 0, + cancelQuantity: 0, + receivedQuantity: 0, + stayQuantity: 0 + }; + this.service.request(this.service.$api_get_goods_resource_statistical, { resourceType: 1, ...this.reqParams }).subscribe(res => { if (res) { console.log(res); this.tabs = res; diff --git a/src/app/routes/sys-setting/components/network-freight/network-freight.component.html b/src/app/routes/sys-setting/components/network-freight/network-freight.component.html index ea55c8e2..64a6023b 100644 --- a/src/app/routes/sys-setting/components/network-freight/network-freight.component.html +++ b/src/app/routes/sys-setting/components/network-freight/network-freight.component.html @@ -1,7 +1,7 @@