车辆对接

This commit is contained in:
wangshiming
2021-12-24 15:36:49 +08:00
parent f45dfc4732
commit 78f4659a73
3 changed files with 25 additions and 30 deletions

View File

@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2021-12-03 11:10:14
* @LastEditTime: 2021-12-24 13:26:16
* @LastEditTime: 2021-12-24 15:36:09
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
@ -42,7 +42,7 @@
[nzTabBarExtraContent]="extraTemplate">
<nz-tab [nzTitle]="'全部'"></nz-tab>
<nz-tab [nzTitle]="'待申诉('+tabs?.stayQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'申诉中('+tabs?.stayQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'申诉中('+tabs?.underwayQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'申诉成功('+tabs?.receivedQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'申诉失败('+tabs?.cancelQuantity+')'"></nz-tab>
</nz-tabset>

View File

@ -29,7 +29,7 @@ export class OrderManagementRiskComponent implements OnInit {
@ViewChild('sfView', { static: false }) sfView!: SFComponent;
columns: STColumn[] = [];
tabs = {
totalQuantity: 0,
underwayQuantity: 0,
cancelQuantity: 0,
receivedQuantity: 0,
stayQuantity: 0
@ -66,12 +66,14 @@ export class OrderManagementRiskComponent implements OnInit {
this.service.request(this.service.$api_get_listStatisticalStatus, {}).subscribe(res => {
if (res) {
res.forEach((element: any) => {
if(element.statusLabel === '待发车') {
if(element.representationsStatusLabel === '待申述') {
this.tabs.stayQuantity = element.quantity
} else if (element.statusLabel === '待接单') {
} else if (element.representationsStatusLabel === '申诉失败') {
this.tabs.receivedQuantity = element.quantity
} else if (element.statusLabel === '待签收') {
} else if (element.representationsStatusLabel === '申述成功') {
this.tabs.cancelQuantity = element.quantity
} else if (element.representationsStatusLabel === '申诉中') {
this.tabs.underwayQuantity = element.quantity
}
});
}