车辆对接
This commit is contained in:
@ -62,7 +62,8 @@ tabs = {
|
||||
stayQuantity: 0,
|
||||
signQuantity: 0,
|
||||
compolatelQuantity: 0,
|
||||
GoingQuantity: 0
|
||||
GoingQuantity: 0,
|
||||
totalCount: 0
|
||||
};
|
||||
constructor(
|
||||
public service: OrderManagementService,
|
||||
@ -93,9 +94,14 @@ tabs = {
|
||||
id: this.changeId
|
||||
};
|
||||
}
|
||||
search() {
|
||||
this.st?.load(1);
|
||||
this.getGoodsSourceStatistical()
|
||||
}
|
||||
getGoodsSourceStatistical() {
|
||||
this.service.request(this.service.$api_getBulkStatistical).subscribe(res => {
|
||||
if (res) {
|
||||
let totalCount = 0;
|
||||
res.forEach((element: any) => {
|
||||
if(element.billStatusLabel === '待发车') {
|
||||
this.tabs.stayQuantity = element.quantity
|
||||
@ -110,7 +116,9 @@ tabs = {
|
||||
} else if (element.billStatusLabel === '运输中') {
|
||||
this.tabs.GoingQuantity = element.quantity
|
||||
}
|
||||
totalCount += element.quantity
|
||||
});
|
||||
this.tabs.totalCount = totalCount
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -120,6 +128,8 @@ tabs = {
|
||||
this.initST();
|
||||
setTimeout(() => {
|
||||
this.st.load();
|
||||
this.getGoodsSourceStatistical()
|
||||
|
||||
}, 500);
|
||||
}
|
||||
ngOnInit(): void {
|
||||
@ -398,7 +408,7 @@ tabs = {
|
||||
},
|
||||
{
|
||||
title: '运费明细',
|
||||
width: '200px',
|
||||
width: '250px',
|
||||
className: 'text-center',
|
||||
render: 'mybidDetailInfo',
|
||||
},
|
||||
@ -517,7 +527,7 @@ tabs = {
|
||||
className: 'text-center',
|
||||
index: 'applyUserName'
|
||||
},
|
||||
{ title: '状态', index: 'handleStatus', className: 'text-center' },
|
||||
{ title: '状态', index: 'handleStatusLabel', className: 'text-center' },
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
@ -670,7 +680,12 @@ tabs = {
|
||||
nzComponentParams: { data: { ...data, billId: item.id } },
|
||||
|
||||
});
|
||||
modal.afterClose.subscribe(_ => this.st.reload(1));
|
||||
modal.afterClose.subscribe(_ =>
|
||||
{
|
||||
this.st.reload(1);
|
||||
this.getGoodsSourceStatistical();
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -690,6 +705,7 @@ tabs = {
|
||||
});
|
||||
modalRef.afterClose.subscribe((result: any) => {
|
||||
this.st.load(1);
|
||||
this.getGoodsSourceStatistical()
|
||||
});
|
||||
}
|
||||
userAction() {
|
||||
@ -702,7 +718,7 @@ tabs = {
|
||||
this.service.request(this.service.$api_get_batchSignBulkOrder, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.st.load(1);
|
||||
console.log(res);
|
||||
this.getGoodsSourceStatistical()
|
||||
} else {
|
||||
this.service.msgSrv.error(res.msg);
|
||||
}
|
||||
@ -719,9 +735,11 @@ tabs = {
|
||||
if (res === true) {
|
||||
this.service.msgSrv.success('操作成功!');
|
||||
this.st?.reload(1);
|
||||
this.getGoodsSourceStatistical()
|
||||
this.initST();
|
||||
}
|
||||
this.st?.reload(1);
|
||||
this.getGoodsSourceStatistical()
|
||||
}),
|
||||
})
|
||||
}
|
||||
@ -735,6 +753,7 @@ tabs = {
|
||||
this.service.msgSrv.success('撤销成功!')
|
||||
this.stFloat.reload()
|
||||
this.st?.reload(1);
|
||||
this.getGoodsSourceStatistical()
|
||||
} else {
|
||||
this.service.msgSrv.error(res.msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user