车辆对接
This commit is contained in:
@ -46,7 +46,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
||||
},
|
||||
];
|
||||
tabs = {
|
||||
totalQuantity: 0,
|
||||
signQuantity: 0,
|
||||
cancelQuantity: 0,
|
||||
receivedQuantity: 0,
|
||||
stayQuantity: 0
|
||||
@ -72,6 +72,7 @@ tabs = {
|
||||
ngOnInit(): void {
|
||||
this.initSF();
|
||||
this.initST();
|
||||
this.getGoodsSourceStatistical()
|
||||
this.initSTFloat();
|
||||
this.initSTFloatView();
|
||||
}
|
||||
@ -85,7 +86,7 @@ tabs = {
|
||||
this.schema = {
|
||||
properties: {
|
||||
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||
no: {
|
||||
wayBillCodeno: {
|
||||
type: 'string',
|
||||
title: '运单号',
|
||||
},
|
||||
@ -486,4 +487,28 @@ tabs = {
|
||||
console.log(item)
|
||||
this.isVisibleEvaluate = true
|
||||
}
|
||||
getGoodsSourceStatistical() {
|
||||
this.service.request(this.service.$api_get_getWholeStatistics).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