车辆对接

This commit is contained in:
wangshiming
2022-01-13 16:22:30 +08:00
parent dc7d0d5e1d
commit 6ae6403750
11 changed files with 102 additions and 67 deletions

View File

@ -51,7 +51,9 @@ export class WaybillManagementVehicleComponent implements OnInit {
signQuantity: 0,
cancelQuantity: 0,
receivedQuantity: 0,
stayQuantity: 0
stayQuantity: 0,
totalQuantity: 0,
compolatelQuantity: 0
};
constructor(public service: WaybillManagementServe, private modal: NzModalService, public service2: ShipperBaseService) {}
@ -301,66 +303,66 @@ export class WaybillManagementVehicleComponent implements OnInit {
{ title: '', type: 'checkbox', width: '50px', className: 'text-center' },
{
title: '运单号',
width: '100px',
className: 'text-center',
width: '180px',
className: 'text-left',
render: 'wayBillCode'
},
{
title: '货主出价',
width: '250px',
className: 'text-center',
render: 'billExpenseDetailVOList2'
},
{
title: '货源编号',
width: '150px',
className: 'text-center',
className: 'text-left',
index: 'resourceCode'
},
{
title: '货主出价',
width: '250px',
className: 'text-left',
render: 'billExpenseDetailVOList2'
},
{
title: '费用明细',
width: '250px',
className: 'text-center',
className: 'text-left',
render: 'billExpenseDetailVOList'
},
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-center' },
{ title: '货主', index: 'shipperAppUserName', width: '150px', className: 'text-center' },
{ title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-center' },
{ title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-center' },
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-left' },
{ title: '货主', index: 'shipperAppUserName', width: '150px', className: 'text-left' },
{ title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-left' },
{ title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-left' },
{
title: '卸货地',
className: 'text-center',
className: 'text-left',
width: '180px',
index: 'dischargePlace'
},
{
title: '货物信息',
className: 'text-center',
className: 'text-left',
width: '180px',
render: 'goodsInfos'
},
{
title: '承运司机',
className: 'text-center',
className: 'text-left',
width: '120px',
index: 'driverName'
},
{
title: '收款人',
className: 'text-center',
className: 'text-left',
width: '120px',
index: 'payeeName'
},
{
title: '装卸货时间',
className: 'text-center',
className: 'text-left',
width: '200px',
render: 'loadingTime'
},
{
title: '创建时间',
width: '180px',
className: 'text-center',
className: 'text-left',
index: 'createTime'
},
{
@ -462,7 +464,10 @@ export class WaybillManagementVehicleComponent implements OnInit {
this.sf.reset();
this._$expand = false;
}
search() {
this.st?.load(1);
this.getGoodsSourceStatistical()
}
// 获取录单员
getCatalogueMember() {
const params = {};
@ -533,6 +538,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
getGoodsSourceStatistical() {
this.service.request(this.service.$api_get_getWholeStatistics).subscribe(res => {
if (res) {
let totalCount = 0;
res.forEach((ele: any) => {
switch (ele.wayBillStatus) {
case '1':
@ -547,8 +553,13 @@ export class WaybillManagementVehicleComponent implements OnInit {
case '4':
this.tabs.signQuantity = ele?.count;
break;
case '5':
this.tabs.compolatelQuantity = ele?.count;
break;
}
totalCount += ele.count
});
this.tabs.totalQuantity = totalCount
}
});
}
@ -565,6 +576,10 @@ export class WaybillManagementVehicleComponent implements OnInit {
},
nzFooter: null
});
modalRef.afterClose.subscribe((result: any) => {
this.st.load(1);
this.getGoodsSourceStatistical()
});
}
// 确认到车
sureArrive(item: any) {
@ -578,5 +593,9 @@ export class WaybillManagementVehicleComponent implements OnInit {
},
nzFooter: null
});
modalRef.afterClose.subscribe((result: any) => {
this.st.load(1);
this.getGoodsSourceStatistical()
});
}
}