车辆对接
This commit is contained in:
		| @ -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