车辆对接
This commit is contained in:
@ -2,7 +2,7 @@ import { preloaderFinished } from '@delon/theme';
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-14 14:03:07
|
* @Date: 2021-12-14 14:03:07
|
||||||
* @LastEditTime: 2022-01-12 14:01:08
|
* @LastEditTime: 2022-01-13 16:19:28
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\order-management\modal\bulk\update-freight\update-freight.component.ts
|
* @FilePath: \tms-obc-web\src\app\routes\order-management\modal\bulk\update-freight\update-freight.component.ts
|
||||||
@ -75,7 +75,7 @@ export class ConfirReceiptComponent implements OnInit {
|
|||||||
console.log(res.success)
|
console.log(res.success)
|
||||||
if(res) {
|
if(res) {
|
||||||
this.service.msgSrv.success('确认签收成功!')
|
this.service.msgSrv.success('确认签收成功!')
|
||||||
this.modal.destroy();
|
this.modal.destroy(true);
|
||||||
} else {
|
} else {
|
||||||
this.service.msgSrv.error(res.msg)
|
this.service.msgSrv.error(res.msg)
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ export class ConfirReceiptComponent implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
close(): void {
|
close(): void {
|
||||||
this.modal.destroy();
|
this.modal.destroy(true);
|
||||||
}
|
}
|
||||||
userAction() {
|
userAction() {
|
||||||
|
|
||||||
|
|||||||
@ -195,7 +195,7 @@ export class SureDepartComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close(): void {
|
close(): void {
|
||||||
this.modal.destroy();
|
this.modal.destroy(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -437,7 +437,7 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe((res) => {
|
||||||
if(res) {
|
if(res) {
|
||||||
this.service.msgSrv.success('确认到车成功!')
|
this.service.msgSrv.success('确认到车成功!')
|
||||||
this.modal.destroy();
|
this.modal.destroy(true);
|
||||||
} else{
|
} else{
|
||||||
this.service.msgSrv.error(res.msg)
|
this.service.msgSrv.error(res.msg)
|
||||||
}
|
}
|
||||||
@ -462,7 +462,7 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
this.service.request(this.service.$api_get_insertBulkUnloadCarInfo, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_insertBulkUnloadCarInfo, params).subscribe((res) => {
|
||||||
if(res) {
|
if(res) {
|
||||||
this.service.msgSrv.success('确认到车成功!')
|
this.service.msgSrv.success('确认到车成功!')
|
||||||
this.modal.destroy();
|
this.modal.destroy(true);
|
||||||
} else{
|
} else{
|
||||||
this.service.msgSrv.error(res.msg)
|
this.service.msgSrv.error(res.msg)
|
||||||
}
|
}
|
||||||
@ -503,7 +503,7 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
close(): void {
|
close(): void {
|
||||||
this.modal.destroy();
|
this.modal.destroy(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -282,7 +282,7 @@ export class VehicleSureDepartComponent implements OnInit {
|
|||||||
this.service.request(this.service.$api_get_insertWholeStartCarInfo, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_insertWholeStartCarInfo, params).subscribe((res) => {
|
||||||
if(res) {
|
if(res) {
|
||||||
this.service.msgSrv.success('确认发车成功!')
|
this.service.msgSrv.success('确认发车成功!')
|
||||||
this.modal.destroy();
|
this.modal.destroy(true);
|
||||||
} else{
|
} else{
|
||||||
this.service.msgSrv.error(res.msg)
|
this.service.msgSrv.error(res.msg)
|
||||||
}
|
}
|
||||||
@ -305,7 +305,7 @@ export class VehicleSureDepartComponent implements OnInit {
|
|||||||
this.service.request(this.service.$api_get_insertBulkStartCarInfo, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_insertBulkStartCarInfo, params).subscribe((res) => {
|
||||||
if(res) {
|
if(res) {
|
||||||
this.service.msgSrv.success('确认发车成功!')
|
this.service.msgSrv.success('确认发车成功!')
|
||||||
this.modal.destroy();
|
this.modal.destroy(true);
|
||||||
} else{
|
} else{
|
||||||
this.service.msgSrv.error(res.msg)
|
this.service.msgSrv.error(res.msg)
|
||||||
}
|
}
|
||||||
@ -315,7 +315,7 @@ export class VehicleSureDepartComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close(): void {
|
close(): void {
|
||||||
this.modal.destroy();
|
this.modal.destroy(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 11:10:14
|
* @Date: 2021-12-03 11:10:14
|
||||||
* @LastEditTime: 2022-01-13 15:16:07
|
* @LastEditTime: 2022-01-13 16:02:08
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\bulk\bulk.component.html
|
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\bulk\bulk.component.html
|
||||||
@ -41,10 +41,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<!-- <nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate">
|
|
||||||
<nz-tab *ngFor="let tab of tabs; let i = index" [nzTitle]="tab.name + ' (' + tab.count + ') '" (nzClick)="tabChange(i)">
|
|
||||||
</nz-tab>
|
|
||||||
</nz-tabset> -->
|
|
||||||
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate">
|
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate">
|
||||||
<nz-tab [nzTitle]="'全部('+tabs?.totalQuantity+')'"></nz-tab>
|
<nz-tab [nzTitle]="'全部('+tabs?.totalQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'进行中('+tabs?.stayQuantity+')'"></nz-tab>
|
<nz-tab [nzTitle]="'进行中('+tabs?.stayQuantity+')'"></nz-tab>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 11:10:14
|
* @Date: 2021-12-03 11:10:14
|
||||||
* @LastEditTime: 2022-01-12 14:53:26
|
* @LastEditTime: 2022-01-13 16:14:43
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||||
@ -24,7 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
||||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading"
|
<button nz-button nzType="primary" [nzLoading]="service.http.loading"
|
||||||
(click)="st?.load(1)">查询</button>
|
(click)="search()">查询</button>
|
||||||
<button nz-button nzType="primary" [disabled]="service.http.loading">导出</button>
|
<button nz-button nzType="primary" [disabled]="service.http.loading">导出</button>
|
||||||
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
|
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
@ -38,11 +38,11 @@
|
|||||||
|
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" >
|
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" >
|
||||||
<nz-tab [nzTitle]="'全部'"></nz-tab>
|
<nz-tab [nzTitle]="'全部('+tabs?.totalQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'待发车('+tabs?.receivedQuantity+')'"></nz-tab>
|
<nz-tab [nzTitle]="'待发车('+tabs?.receivedQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'运输中('+tabs?.cancelQuantity+')'"></nz-tab>
|
<nz-tab [nzTitle]="'运输中('+tabs?.cancelQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'待签收('+tabs?.signQuantity+')'"></nz-tab>
|
<nz-tab [nzTitle]="'待签收('+tabs?.signQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'已完成'"></nz-tab>
|
<nz-tab [nzTitle]="'已完成('+tabs?.compolatelQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'已取消'"></nz-tab>
|
<nz-tab [nzTitle]="'已取消'"></nz-tab>
|
||||||
</nz-tabset>
|
</nz-tabset>
|
||||||
<div style="margin-top: 15px;">
|
<div style="margin-top: 15px;">
|
||||||
|
|||||||
@ -3,6 +3,9 @@
|
|||||||
::ng-deep nz-range-picker{
|
::ng-deep nz-range-picker{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
p{
|
||||||
|
margin-bottom: 0
|
||||||
|
}
|
||||||
.left_btn {
|
.left_btn {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
|
|||||||
@ -55,7 +55,8 @@ tabs = {
|
|||||||
signQuantity: 0,
|
signQuantity: 0,
|
||||||
cancelQuantity: 0,
|
cancelQuantity: 0,
|
||||||
receivedQuantity: 0,
|
receivedQuantity: 0,
|
||||||
stayQuantity: 0
|
totalQuantity: 0,
|
||||||
|
compolatelQuantity: 0
|
||||||
};
|
};
|
||||||
constructor(public service: WaybillManagementServe, private modal: NzModalService, public service2: ShipperBaseService) { }
|
constructor(public service: WaybillManagementServe, private modal: NzModalService, public service2: ShipperBaseService) { }
|
||||||
|
|
||||||
@ -351,73 +352,73 @@ tabs = {
|
|||||||
{
|
{
|
||||||
title: '运单号',
|
title: '运单号',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
render: 'wayBillCode'
|
render: 'wayBillCode'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '运费明细',
|
title: '运费明细',
|
||||||
width: '150px',
|
width: '150px',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
render: 'billExpenseDetailVOList'
|
render: 'billExpenseDetailVOList'
|
||||||
},
|
},
|
||||||
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-center' },
|
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-left' },
|
||||||
{ title: '货主', index: 'shipperAppUserName', width: '180px', className: 'text-center' },
|
{ title: '货主', index: 'shipperAppUserName', width: '180px', className: 'text-left' },
|
||||||
{ title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-center' },
|
{ title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-left' },
|
||||||
{ title: '货源编号', index: 'resourceCode', width: '180px', className: 'text-center' },
|
{ title: '货源编号', index: 'resourceCode', width: '180px', className: 'text-left' },
|
||||||
{ title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-center' },
|
{ title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-left' },
|
||||||
{
|
{
|
||||||
title: '卸货地',
|
title: '卸货地',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
index: 'dischargePlace'
|
index: 'dischargePlace'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '货物信息',
|
title: '货物信息',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
render: 'goodsInfos'
|
render: 'goodsInfos'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '运费单价',
|
title: '运费单价',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
index: 'freightPrice'
|
index: 'freightPrice'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '接单数量',
|
title: '接单数量',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
index: 'orderReceivingQuantity'
|
index: 'orderReceivingQuantity'
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '结算重量',
|
title: '结算重量',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '200px',
|
width: '200px',
|
||||||
index: 'settlementWeight'
|
index: 'settlementWeight'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '承运司机',
|
title: '承运司机',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '200px',
|
width: '200px',
|
||||||
index: 'driverName'
|
index: 'driverName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '收款人',
|
title: '收款人',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
index: 'payeeName'
|
index: 'payeeName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '装卸货时间',
|
title: '装卸货时间',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '200px',
|
width: '200px',
|
||||||
render: 'loadingTime'
|
render: 'loadingTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
index: 'createTime',
|
index: 'createTime',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -496,6 +497,10 @@ tabs = {
|
|||||||
{ title: '变更后', index: 'externalSn', width: '120px', className: 'text-center' }
|
{ title: '变更后', index: 'externalSn', width: '120px', className: 'text-center' }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
search() {
|
||||||
|
this.st?.load(1);
|
||||||
|
this.getGoodsSourceStatistical()
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 查询字段个数
|
* 查询字段个数
|
||||||
*/
|
*/
|
||||||
@ -599,11 +604,9 @@ tabs = {
|
|||||||
getGoodsSourceStatistical() {
|
getGoodsSourceStatistical() {
|
||||||
this.service.request(this.service.$api_get_getBulkStatistics).subscribe(res => {
|
this.service.request(this.service.$api_get_getBulkStatistics).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
|
let totalCount = 0;
|
||||||
res.forEach((ele: any) => {
|
res.forEach((ele: any) => {
|
||||||
switch(ele.wayBillStatus) {
|
switch(ele.wayBillStatus) {
|
||||||
case '1':
|
|
||||||
this.tabs.stayQuantity = ele?.count;
|
|
||||||
break;
|
|
||||||
case '2':
|
case '2':
|
||||||
this.tabs.receivedQuantity = ele?.count;
|
this.tabs.receivedQuantity = ele?.count;
|
||||||
break;
|
break;
|
||||||
@ -613,10 +616,13 @@ tabs = {
|
|||||||
case '4':
|
case '4':
|
||||||
this.tabs.signQuantity = ele?.count;
|
this.tabs.signQuantity = ele?.count;
|
||||||
break;
|
break;
|
||||||
|
case '5':
|
||||||
|
this.tabs.compolatelQuantity = ele?.count;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
totalCount += ele.count
|
||||||
});
|
});
|
||||||
|
this.tabs.totalQuantity = totalCount
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -633,6 +639,10 @@ tabs = {
|
|||||||
},
|
},
|
||||||
nzFooter: null
|
nzFooter: null
|
||||||
});
|
});
|
||||||
|
modalRef.afterClose.subscribe((result: any) => {
|
||||||
|
this.st.load(1);
|
||||||
|
this.getGoodsSourceStatistical()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
// 确认到车
|
// 确认到车
|
||||||
sureArrive(item: any) {
|
sureArrive(item: any) {
|
||||||
@ -646,5 +656,9 @@ tabs = {
|
|||||||
},
|
},
|
||||||
nzFooter: null
|
nzFooter: null
|
||||||
});
|
});
|
||||||
|
modalRef.afterClose.subscribe((result: any) => {
|
||||||
|
this.st.load(1);
|
||||||
|
this.getGoodsSourceStatistical()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 11:10:14
|
* @Date: 2021-12-03 11:10:14
|
||||||
* @LastEditTime: 2022-01-12 14:51:05
|
* @LastEditTime: 2022-01-13 16:14:58
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||||
@ -24,7 +24,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.expend-options]="_$expand" class="text-right">
|
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.expend-options]="_$expand" class="text-right">
|
||||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading"
|
<button nz-button nzType="primary" [nzLoading]="service.http.loading"
|
||||||
(click)="st?.load(1)">查询</button>
|
(click)="search()">查询</button>
|
||||||
<button nz-button nzType="primary" [disabled]="service.http.loading">导出</button>
|
<button nz-button nzType="primary" [disabled]="service.http.loading">导出</button>
|
||||||
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
|
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
@ -38,12 +38,12 @@
|
|||||||
|
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<nz-tabset (nzSelectedIndexChange)="selectChange($event)">
|
<nz-tabset (nzSelectedIndexChange)="selectChange($event)">
|
||||||
<nz-tab [nzTitle]="'全部'"></nz-tab>
|
<nz-tab [nzTitle]="'全部('+tabs?.totalQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'待接单('+tabs?.stayQuantity+')'"></nz-tab>
|
<nz-tab [nzTitle]="'待接单('+tabs?.stayQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'待发车('+tabs?.receivedQuantity+')'"></nz-tab>
|
<nz-tab [nzTitle]="'待发车('+tabs?.receivedQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'运输中('+tabs?.cancelQuantity+')'"></nz-tab>
|
<nz-tab [nzTitle]="'运输中('+tabs?.cancelQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'待签收('+tabs?.signQuantity+')'"></nz-tab>
|
<nz-tab [nzTitle]="'待签收('+tabs?.signQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'已完成'"></nz-tab>
|
<nz-tab [nzTitle]="'已完成('+tabs?.compolatelQuantity+')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'已取消'"></nz-tab>
|
<nz-tab [nzTitle]="'已取消'"></nz-tab>
|
||||||
</nz-tabset>
|
</nz-tabset>
|
||||||
<div style="margin-top: 15px;">
|
<div style="margin-top: 15px;">
|
||||||
|
|||||||
@ -1,4 +1,7 @@
|
|||||||
:host ::ng-deep{
|
:host ::ng-deep{
|
||||||
|
p{
|
||||||
|
margin-bottom: 0
|
||||||
|
}
|
||||||
::ng-deep nz-range-picker{
|
::ng-deep nz-range-picker{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,7 +51,9 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
signQuantity: 0,
|
signQuantity: 0,
|
||||||
cancelQuantity: 0,
|
cancelQuantity: 0,
|
||||||
receivedQuantity: 0,
|
receivedQuantity: 0,
|
||||||
stayQuantity: 0
|
stayQuantity: 0,
|
||||||
|
totalQuantity: 0,
|
||||||
|
compolatelQuantity: 0
|
||||||
};
|
};
|
||||||
constructor(public service: WaybillManagementServe, private modal: NzModalService, public service2: ShipperBaseService) {}
|
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: '', type: 'checkbox', width: '50px', className: 'text-center' },
|
||||||
{
|
{
|
||||||
title: '运单号',
|
title: '运单号',
|
||||||
width: '100px',
|
width: '180px',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
render: 'wayBillCode'
|
render: 'wayBillCode'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '货主出价',
|
|
||||||
width: '250px',
|
|
||||||
className: 'text-center',
|
|
||||||
render: 'billExpenseDetailVOList2'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '货源编号',
|
title: '货源编号',
|
||||||
width: '150px',
|
width: '150px',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
index: 'resourceCode'
|
index: 'resourceCode'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '货主出价',
|
||||||
|
width: '250px',
|
||||||
|
className: 'text-left',
|
||||||
|
render: 'billExpenseDetailVOList2'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '费用明细',
|
title: '费用明细',
|
||||||
width: '250px',
|
width: '250px',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
render: 'billExpenseDetailVOList'
|
render: 'billExpenseDetailVOList'
|
||||||
},
|
},
|
||||||
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-center' },
|
{ title: '网络货运人', index: 'enterpriseInfoName', width: '180px', className: 'text-left' },
|
||||||
{ title: '货主', index: 'shipperAppUserName', width: '150px', className: 'text-center' },
|
{ title: '货主', index: 'shipperAppUserName', width: '150px', className: 'text-left' },
|
||||||
{ title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-center' },
|
{ title: '关联订单号', render: 'wayBill', width: '180px', className: 'text-left' },
|
||||||
{ title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-center' },
|
{ title: '装货地', index: 'loadingPlace', width: '180px', className: 'text-left' },
|
||||||
{
|
{
|
||||||
title: '卸货地',
|
title: '卸货地',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
index: 'dischargePlace'
|
index: 'dischargePlace'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '货物信息',
|
title: '货物信息',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
render: 'goodsInfos'
|
render: 'goodsInfos'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '承运司机',
|
title: '承运司机',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
index: 'driverName'
|
index: 'driverName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '收款人',
|
title: '收款人',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '120px',
|
width: '120px',
|
||||||
index: 'payeeName'
|
index: 'payeeName'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '装卸货时间',
|
title: '装卸货时间',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
width: '200px',
|
width: '200px',
|
||||||
render: 'loadingTime'
|
render: 'loadingTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
width: '180px',
|
width: '180px',
|
||||||
className: 'text-center',
|
className: 'text-left',
|
||||||
index: 'createTime'
|
index: 'createTime'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -462,7 +464,10 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
this.sf.reset();
|
this.sf.reset();
|
||||||
this._$expand = false;
|
this._$expand = false;
|
||||||
}
|
}
|
||||||
|
search() {
|
||||||
|
this.st?.load(1);
|
||||||
|
this.getGoodsSourceStatistical()
|
||||||
|
}
|
||||||
// 获取录单员
|
// 获取录单员
|
||||||
getCatalogueMember() {
|
getCatalogueMember() {
|
||||||
const params = {};
|
const params = {};
|
||||||
@ -533,6 +538,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
getGoodsSourceStatistical() {
|
getGoodsSourceStatistical() {
|
||||||
this.service.request(this.service.$api_get_getWholeStatistics).subscribe(res => {
|
this.service.request(this.service.$api_get_getWholeStatistics).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
|
let totalCount = 0;
|
||||||
res.forEach((ele: any) => {
|
res.forEach((ele: any) => {
|
||||||
switch (ele.wayBillStatus) {
|
switch (ele.wayBillStatus) {
|
||||||
case '1':
|
case '1':
|
||||||
@ -547,8 +553,13 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
case '4':
|
case '4':
|
||||||
this.tabs.signQuantity = ele?.count;
|
this.tabs.signQuantity = ele?.count;
|
||||||
break;
|
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
|
nzFooter: null
|
||||||
});
|
});
|
||||||
|
modalRef.afterClose.subscribe((result: any) => {
|
||||||
|
this.st.load(1);
|
||||||
|
this.getGoodsSourceStatistical()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
// 确认到车
|
// 确认到车
|
||||||
sureArrive(item: any) {
|
sureArrive(item: any) {
|
||||||
@ -578,5 +593,9 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
nzFooter: null
|
nzFooter: null
|
||||||
});
|
});
|
||||||
|
modalRef.afterClose.subscribe((result: any) => {
|
||||||
|
this.st.load(1);
|
||||||
|
this.getGoodsSourceStatistical()
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user