车辆接口更新

This commit is contained in:
wangshiming
2022-01-19 14:37:52 +08:00
parent eca3b314df
commit 065232539e
4 changed files with 32 additions and 7 deletions

View File

@ -1,10 +1,10 @@
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-12-03 11:10:14 * @Date: 2021-12-03 11:10:14
* @LastEditTime: 2022-01-18 16:50:23 * @LastEditTime : 2022-01-19 14:36:08
* @LastEditors: Please set LastEditors * @LastEditors : Shiming
* @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\\waybill-management\\components\\bulk\\bulk.component.html
--> -->
<!-- 搜索表单 --> <!-- 搜索表单 -->
<page-header-wrapper [title]="''"> <page-header-wrapper [title]="''">
@ -43,7 +43,7 @@
<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]="'已完成('+tabs?.compolatelQuantity+')'"></nz-tab> <nz-tab [nzTitle]="'已完成('+tabs?.compolatelQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'已取消'"></nz-tab> <nz-tab [nzTitle]="'已取消('+tabs?.deltQuantity+')'"></nz-tab>
</nz-tabset> </nz-tabset>
<div style="margin-top: 15px;"> <div style="margin-top: 15px;">
<st <st

View File

@ -32,7 +32,8 @@ tabs = {
cancelQuantity: 0, cancelQuantity: 0,
receivedQuantity: 0, receivedQuantity: 0,
totalQuantity: 0, totalQuantity: 0,
compolatelQuantity: 0 compolatelQuantity: 0,
deltQuantity: 0
}; };
constructor( constructor(
public service: WaybillManagementServe, public service: WaybillManagementServe,
@ -390,6 +391,14 @@ tabs = {
this.isVisibleEvaluate = true this.isVisibleEvaluate = true
} }
getGoodsSourceStatistical() { getGoodsSourceStatistical() {
this.tabs = {
signQuantity: 0,
cancelQuantity: 0,
receivedQuantity: 0,
totalQuantity: 0,
compolatelQuantity: 0,
deltQuantity: 0
};
this.service.request(this.service.$api_get_getBulkStatistics, this.reqParams).subscribe(res => { this.service.request(this.service.$api_get_getBulkStatistics, this.reqParams).subscribe(res => {
if (res) { if (res) {
let totalCount = 0; let totalCount = 0;
@ -407,6 +416,9 @@ tabs = {
case '5': case '5':
this.tabs.compolatelQuantity = ele?.count; this.tabs.compolatelQuantity = ele?.count;
break; break;
case '6':
this.tabs.deltQuantity = ele?.count;
break;
} }
totalCount += ele.count totalCount += ele.count
}); });

View File

@ -44,7 +44,7 @@
<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]="'已完成('+tabs?.compolatelQuantity+')'"></nz-tab> <nz-tab [nzTitle]="'已完成('+tabs?.compolatelQuantity+')'"></nz-tab>
<nz-tab [nzTitle]="'已取消'"></nz-tab> <nz-tab [nzTitle]="'已取消('+tabs?.deltQuantity+')'"></nz-tab>
</nz-tabset> </nz-tabset>
<div style="margin-top: 15px;"> <div style="margin-top: 15px;">
<st #st [bordered]="true" [scroll]="{ x: '2000px' }" [data]="service.$api_get_wholePage" [columns]="columns" <st #st [bordered]="true" [scroll]="{ x: '2000px' }" [data]="service.$api_get_wholePage" [columns]="columns"

View File

@ -32,7 +32,8 @@ export class WaybillManagementVehicleComponent implements OnInit {
receivedQuantity: 0, receivedQuantity: 0,
stayQuantity: 0, stayQuantity: 0,
totalQuantity: 0, totalQuantity: 0,
compolatelQuantity: 0 compolatelQuantity: 0,
deltQuantity: 0
}; };
constructor( constructor(
public service: WaybillManagementServe, public service: WaybillManagementServe,
@ -378,6 +379,15 @@ export class WaybillManagementVehicleComponent implements OnInit {
this.isVisibleEvaluate = true; this.isVisibleEvaluate = true;
} }
getGoodsSourceStatistical() { getGoodsSourceStatistical() {
this.tabs = {
signQuantity: 0,
cancelQuantity: 0,
receivedQuantity: 0,
stayQuantity: 0,
totalQuantity: 0,
compolatelQuantity: 0,
deltQuantity: 0
};
this.service.request(this.service.$api_get_getWholeStatistics, this.reqParams).subscribe(res => { this.service.request(this.service.$api_get_getWholeStatistics, this.reqParams).subscribe(res => {
if (res) { if (res) {
let totalCount = 0; let totalCount = 0;
@ -398,6 +408,9 @@ export class WaybillManagementVehicleComponent implements OnInit {
case '5': case '5':
this.tabs.compolatelQuantity = ele?.count; this.tabs.compolatelQuantity = ele?.count;
break; break;
case '6':
this.tabs.deltQuantity = ele?.count;
break;
} }
totalCount += ele.count totalCount += ele.count
}); });