车辆对接
This commit is contained in:
		| @ -1,7 +1,7 @@ | ||||
| <!-- | ||||
|  * @Author: your name | ||||
|  * @Date: 2021-12-03 11:10:14 | ||||
|  * @LastEditTime: 2021-12-17 16:41:28 | ||||
|  * @LastEditTime: 2021-12-18 16:20:23 | ||||
|  * @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 | ||||
| @ -41,7 +41,7 @@ | ||||
|   <nz-tab [nzTitle]="'全部'"></nz-tab> | ||||
|   <nz-tab [nzTitle]="'待发车('+tabs?.receivedQuantity+')'"></nz-tab> | ||||
|   <nz-tab [nzTitle]="'运输中('+tabs?.cancelQuantity+')'"></nz-tab> | ||||
|   <nz-tab [nzTitle]="'待签收('+tabs?.cancelQuantity+')'"></nz-tab> | ||||
|   <nz-tab [nzTitle]="'待签收('+tabs?.signQuantity+')'"></nz-tab> | ||||
|   <nz-tab [nzTitle]="'已完成'"></nz-tab> | ||||
|   <nz-tab [nzTitle]="'已取消'"></nz-tab> | ||||
| </nz-tabset> | ||||
|  | ||||
| @ -50,7 +50,7 @@ export class WaybillManagementBulkComponent implements OnInit { | ||||
|    }, | ||||
| ]; | ||||
| tabs = { | ||||
|   totalQuantity: 0, | ||||
|   signQuantity: 0, | ||||
|   cancelQuantity: 0, | ||||
|   receivedQuantity: 0, | ||||
|   stayQuantity: 0 | ||||
| @ -76,6 +76,7 @@ tabs = { | ||||
|   ngOnInit(): void { | ||||
|     this.initSF(); | ||||
|     this.initST(); | ||||
|     this.getGoodsSourceStatistical() | ||||
|     this.initSTFloat(); | ||||
|     this.initSTFloatView(); | ||||
|     this.initSFView(); | ||||
| @ -90,7 +91,7 @@ tabs = { | ||||
|     this.schema = { | ||||
|       properties: { | ||||
|         _$expand: { type: 'boolean', ui: { hidden: true } }, | ||||
|         no: { | ||||
|         wayBillCode: { | ||||
|           type: 'string', | ||||
|           title: '运单号', | ||||
|         }, | ||||
| @ -577,4 +578,28 @@ tabs = { | ||||
|     console.log(item) | ||||
|     this.isVisibleEvaluate = true | ||||
|   } | ||||
|   getGoodsSourceStatistical() { | ||||
|     this.service.request(this.service.$api_get_getBulkStatistics).subscribe(res => { | ||||
|       if (res) { | ||||
|         res.forEach((ele: any) => { | ||||
|           switch(ele.wayBillStatus) { | ||||
|             case '1': | ||||
|             this.tabs.stayQuantity = ele?.count; | ||||
|             break; | ||||
|             case '2': | ||||
|               this.tabs.receivedQuantity = ele?.count; | ||||
|               break; | ||||
|             case '3': | ||||
|               this.tabs.cancelQuantity = ele?.count; | ||||
|             break; | ||||
|             case '4': | ||||
|               this.tabs.signQuantity = ele?.count; | ||||
|             break; | ||||
|        | ||||
|  | ||||
|           } | ||||
|        }); | ||||
|       } | ||||
|     }) | ||||
|   } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user