From 2ae16dce5c6f19b495d6d93f15dd17e3abf8f95b Mon Sep 17 00:00:00 2001 From: wangshiming Date: Mon, 21 Mar 2022 15:27:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E4=BD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/risk/risk.component.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/app/routes/order-management/components/risk/risk.component.ts b/src/app/routes/order-management/components/risk/risk.component.ts index 55e6f00b..f863f622 100644 --- a/src/app/routes/order-management/components/risk/risk.component.ts +++ b/src/app/routes/order-management/components/risk/risk.component.ts @@ -85,16 +85,18 @@ export class OrderManagementRiskComponent implements OnInit { this.service.request(this.service.$api_get_listStatisticalStatus, this.reqParams).subscribe(res => { if (res) { res.forEach((element: any) => { - if(element.representationsStatusLabel === '待申述') { + console.log(element.representationsStatus); + if(element.representationsStatus === '1') { this.tabs.stayQuantity = element.quantity - } else if (element.representationsStatusLabel === '申诉失败') { - this.tabs.receivedQuantity = element.quantity - } else if (element.representationsStatusLabel === '申述成功') { + } else if (element.representationsStatus == '4') { this.tabs.cancelQuantity = element.quantity - } else if (element.representationsStatusLabel === '申诉中') { + } else if (element.representationsStatus == '3') { + this.tabs.receivedQuantity = element.quantity + }else if (element.representationsStatus == '2') { this.tabs.underwayQuantity = element.quantity - } + } }); + console.log(this.tabs) } }) } @@ -234,7 +236,7 @@ export class OrderManagementRiskComponent implements OnInit { title: '申诉状态', width: '100px', className: 'text-left', - index: 'representationsStatusLabel' + index: 'representationsStatus' }, { title: '货源编号',