车辆对接
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 11:10:14
|
||||
* @LastEditTime: 2021-12-17 16:41:28
|
||||
* @LastEditTime: 2021-12-18 16:20:23
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @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
|
||||
@ -41,7 +41,7 @@
|
||||
<nz-tab [nzTitle]="'全部'"></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]="'已完成'"></nz-tab>
|
||||
<nz-tab [nzTitle]="'已取消'"></nz-tab>
|
||||
</nz-tabset>
|
||||
|
||||
@ -50,7 +50,7 @@ export class WaybillManagementBulkComponent implements OnInit {
|
||||
},
|
||||
];
|
||||
tabs = {
|
||||
totalQuantity: 0,
|
||||
signQuantity: 0,
|
||||
cancelQuantity: 0,
|
||||
receivedQuantity: 0,
|
||||
stayQuantity: 0
|
||||
@ -76,6 +76,7 @@ tabs = {
|
||||
ngOnInit(): void {
|
||||
this.initSF();
|
||||
this.initST();
|
||||
this.getGoodsSourceStatistical()
|
||||
this.initSTFloat();
|
||||
this.initSTFloatView();
|
||||
this.initSFView();
|
||||
@ -90,7 +91,7 @@ tabs = {
|
||||
this.schema = {
|
||||
properties: {
|
||||
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||
no: {
|
||||
wayBillCode: {
|
||||
type: 'string',
|
||||
title: '运单号',
|
||||
},
|
||||
@ -577,4 +578,28 @@ tabs = {
|
||||
console.log(item)
|
||||
this.isVisibleEvaluate = true
|
||||
}
|
||||
getGoodsSourceStatistical() {
|
||||
this.service.request(this.service.$api_get_getBulkStatistics).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;
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 15:31:52
|
||||
* @LastEditTime: 2021-12-17 14:56:09
|
||||
* @LastEditTime: 2021-12-20 10:12:37
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\order-management\components\vehicle-detail\vehicle-detail.component.html
|
||||
@ -96,11 +96,9 @@
|
||||
<h3>运费信息</h3>
|
||||
<div class="text-right">
|
||||
<p><label class="freigth-label">收款人:</label><span>{{i?.payee?.name}} /{{i?.payee?.phone}} / {{i?.payee?.phone}}</span></p>
|
||||
<p><label class="freigth-label">预付:</label><span>{{400 | currency: '¥' }}</span></p>
|
||||
<p><label class="freigth-label">油卡:</label><span>{{400 | currency: '¥' }}</span></p>
|
||||
<p><label class="freigth-label">到付:</label><span>{{400 | currency: '¥' }}</span></p>
|
||||
<p><label class="freigth-label">回单付:</label><span>{{400 | currency: '¥'}}</span></p>
|
||||
<p><label class="freigth-label">附加费:</label><span>{{400 | currency: '¥' }}</span></p>
|
||||
<div *ngFor="let item of i?.billExpenseDetailVOList">
|
||||
<p><label class="freigth-label">{{item?.costName}}:</label><span>{{ item?.price| currency: '¥' }}</span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<nz-divider></nz-divider>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 11:10:14
|
||||
* @LastEditTime: 2021-12-17 14:16:57
|
||||
* @LastEditTime: 2021-12-18 16:17:40
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @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
|
||||
@ -42,7 +42,7 @@
|
||||
<nz-tab [nzTitle]="'待接单('+tabs?.stayQuantity+')'"></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]="'已完成'"></nz-tab>
|
||||
<nz-tab [nzTitle]="'已取消'"></nz-tab>
|
||||
</nz-tabset>
|
||||
|
||||
@ -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