车辆对接

This commit is contained in:
wangshiming
2021-12-21 11:20:04 +08:00
parent f95e9336b6
commit c9906c0588
4 changed files with 35 additions and 12 deletions

View File

@ -53,7 +53,6 @@ export class OrderManagementVehicleComponent implements OnInit {
},
];
tabs = {
totalQuantity: 0,
cancelQuantity: 0,
receivedQuantity: 0,
stayQuantity: 0
@ -77,7 +76,7 @@ resourceStatus: any;
get reqParams() {
const a:any = {};
if(this.resourceStatus) {
a.billStatus = this.resourceStatus
a.billStatus = this.resourceStatus + 1;
}
return {
...a,
@ -88,13 +87,28 @@ resourceStatus: any;
return this.st?.list.filter((item) => item.checked) || [];
}
ngOnInit(): void {
this.getGoodsSourceStatistical()
this.initSF();
this.initST();
this.initSTFloat();
this.initSTFloatView();
}
getGoodsSourceStatistical() {
this.service.request(this.service.$api_statisticalStatus).subscribe(res => {
if (res) {
res.forEach((element: any) => {
if(element.statusLabel === '待发车') {
this.tabs.stayQuantity = element.quantity
} else if (element.statusLabel === '待接单') {
this.tabs.receivedQuantity = element.quantity
} else if (element.statusLabel === '待签收') {
this.tabs.cancelQuantity = element.quantity
}
});
}
})
}
/**
* 初始化查询表单