This commit is contained in:
wangshiming
2022-03-02 11:15:59 +08:00
parent e2aeba236f
commit ad13d4b11f
4 changed files with 16 additions and 19 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2021-12-28 14:42:03
* @LastEditors : Shiming
* @LastEditTime : 2022-03-02 11:02:35
* @LastEditTime : 2022-03-02 11:11:05
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail\\vehicle-detail.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@ -23,13 +23,14 @@ import { OrderManagementService } from '../../services/order-management.service'
})
export class OrderManagementVehicleDetailComponent implements OnInit {
id = this.route.snapshot.params.id;
MapList: any;
MapList: any[]=[];
i: any = {
unLoadingPlaceList: [],
billExpenseDetails: [],
goodsInfoList: [],
goodsResource: []
};
billExpenses: any[] = []; //运费信息表格信息
imges: any;
attObj: any;
totalObj: any;
@ -75,14 +76,7 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
this.service.request(this.service.$api_get_getWholeBillDetail, { id: this.id }).subscribe(res => {
if (res) {
this.i = res;
this.approvalLsit = res.scheduleVOList;
this.attObj = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'ATT')[0];
this.totalObj = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'TOTAL')[0];
this.approvalLsit.map((item: any, key: any) => {
if (item.displayStatus === 'HIDE') {
delete this.approvalLsit[key];
}
});
this.billExpenses = this.i?.billExpenseDetails?.filter((data:any)=>data.expenseCode ==="PRE" || data.expenseCode ==="RECE" ||data.expenseCode ==="BACK" )
this.i.scheduleVOList = this.i?.scheduleVOList?.filter((data:any)=>data.displayStatus !=="HIDE");
}
});