车辆对接
This commit is contained in:
@ -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: 2021-12-21 10:37:32
|
* @LastEditTime: 2021-12-21 11:19:15
|
||||||
* @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
|
||||||
|
|||||||
@ -54,7 +54,6 @@ export class OrderManagementBulkComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
tabs = {
|
tabs = {
|
||||||
totalQuantity: 0,
|
|
||||||
cancelQuantity: 0,
|
cancelQuantity: 0,
|
||||||
receivedQuantity: 0,
|
receivedQuantity: 0,
|
||||||
stayQuantity: 0
|
stayQuantity: 0
|
||||||
@ -67,7 +66,7 @@ tabs = {
|
|||||||
get reqParams() {
|
get reqParams() {
|
||||||
const a:any = {};
|
const a:any = {};
|
||||||
if(this.resourceStatus) {
|
if(this.resourceStatus) {
|
||||||
a.billStatus = this.resourceStatus
|
a.billStatus = this.resourceStatus + 1;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...a,
|
...a,
|
||||||
@ -78,10 +77,17 @@ tabs = {
|
|||||||
return this.st?.list.filter((item) => item.checked) || [];
|
return this.st?.list.filter((item) => item.checked) || [];
|
||||||
}
|
}
|
||||||
getGoodsSourceStatistical() {
|
getGoodsSourceStatistical() {
|
||||||
this.service.request(this.service.$api_statisticalStatus, { resourceType: 2 }).subscribe(res => {
|
this.service.request(this.service.$api_getBulkStatistical).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
console.log(res)
|
res.forEach((element: any) => {
|
||||||
this.tabs = res;
|
if(element.statusLabel === '待发车') {
|
||||||
|
this.tabs.stayQuantity = element.quantity
|
||||||
|
} else if (element.statusLabel === '待接单') {
|
||||||
|
this.tabs.receivedQuantity = element.quantity
|
||||||
|
} else if (element.statusLabel === '待签收') {
|
||||||
|
this.tabs.cancelQuantity = element.quantity
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -94,6 +100,7 @@ tabs = {
|
|||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
this.getGoodsSourceStatistical()
|
||||||
this.initSF();
|
this.initSF();
|
||||||
this.initST();
|
this.initST();
|
||||||
this.initSTFloat();
|
this.initSTFloat();
|
||||||
|
|||||||
@ -53,7 +53,6 @@ export class OrderManagementVehicleComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
tabs = {
|
tabs = {
|
||||||
totalQuantity: 0,
|
|
||||||
cancelQuantity: 0,
|
cancelQuantity: 0,
|
||||||
receivedQuantity: 0,
|
receivedQuantity: 0,
|
||||||
stayQuantity: 0
|
stayQuantity: 0
|
||||||
@ -77,7 +76,7 @@ resourceStatus: any;
|
|||||||
get reqParams() {
|
get reqParams() {
|
||||||
const a:any = {};
|
const a:any = {};
|
||||||
if(this.resourceStatus) {
|
if(this.resourceStatus) {
|
||||||
a.billStatus = this.resourceStatus
|
a.billStatus = this.resourceStatus + 1;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...a,
|
...a,
|
||||||
@ -88,13 +87,28 @@ resourceStatus: any;
|
|||||||
return this.st?.list.filter((item) => item.checked) || [];
|
return this.st?.list.filter((item) => item.checked) || [];
|
||||||
}
|
}
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
this.getGoodsSourceStatistical()
|
||||||
this.initSF();
|
this.initSF();
|
||||||
this.initST();
|
this.initST();
|
||||||
this.initSTFloat();
|
this.initSTFloat();
|
||||||
this.initSTFloatView();
|
this.initSTFloatView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getGoodsSourceStatistical() {
|
||||||
|
this.service.request(this.service.$api_statisticalStatus).subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
res.forEach((element: any) => {
|
||||||
|
if(element.statusLabel === '待发车') {
|
||||||
|
this.tabs.stayQuantity = element.quantity
|
||||||
|
} else if (element.statusLabel === '待接单') {
|
||||||
|
this.tabs.receivedQuantity = element.quantity
|
||||||
|
} else if (element.statusLabel === '待签收') {
|
||||||
|
this.tabs.cancelQuantity = element.quantity
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 初始化查询表单
|
* 初始化查询表单
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 15:31:52
|
* @Date: 2021-12-03 15:31:52
|
||||||
* @LastEditTime: 2021-12-21 09:37:07
|
* @LastEditTime: 2021-12-21 11:13:19
|
||||||
* @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\services\order-management.service.ts
|
* @FilePath: \tms-obc-web\src\app\routes\order-management\services\order-management.service.ts
|
||||||
@ -67,8 +67,10 @@ export class OrderManagementService extends BaseService {
|
|||||||
public $api_getUserDetailByAppUserId = `/cuc/user/getUserDetailByAppUserId`;
|
public $api_getUserDetailByAppUserId = `/cuc/user/getUserDetailByAppUserId`;
|
||||||
// 根据车辆id查车辆信息
|
// 根据车辆id查车辆信息
|
||||||
public $api_getCarLicenseByIds = `/cuc/carLicense/getCarLicenseByIds`;
|
public $api_getCarLicenseByIds = `/cuc/carLicense/getCarLicenseByIds`;
|
||||||
// 统计货源状态数量
|
// 统计【整车】订单状态数量
|
||||||
public $api_statisticalStatus = `/api/sdc/billOperate/statisticalStatus`;
|
public $api_statisticalStatus = `/api/sdc/billOperate/getWholeStatistical`;
|
||||||
|
// 统计【大宗】订单状态数量
|
||||||
|
public $api_getBulkStatistical = `/api/sdc/billOperate/getBulkStatistical`;
|
||||||
constructor(public injector: Injector) {
|
constructor(public injector: Injector) {
|
||||||
super(injector)
|
super(injector)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user