车辆对接
This commit is contained in:
@ -63,14 +63,19 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
|
||||
|
||||
ngOnInit(): void {
|
||||
this.getGoodsSourceDetail()
|
||||
console.log('4444')
|
||||
}
|
||||
|
||||
getGoodsSourceDetail() {
|
||||
this.service.request(this.service.$api_get_getCompleteVehicleDetail, { id: this.id }).subscribe(res => {
|
||||
const expenseList = res?.expenseList || [];
|
||||
console.log('888')
|
||||
console.log(this.i)
|
||||
const expenseList = res?.expenseVOList || [];
|
||||
this.totalExpensePrice = 0;
|
||||
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.attObj = res?.expenseVOList?.filter((data: any) => data.expenseCode === 'ATT')[0];
|
||||
this.totalObj = res?.expenseVOList?.filter((data: any) => data.expenseCode === 'TOTAL')[0];
|
||||
console.log(this.attObj)
|
||||
console.log(this.totalObj)
|
||||
expenseList.forEach((e: any) => {
|
||||
this.totalExpensePrice += e?.price * e?.rate;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user