车辆对接

This commit is contained in:
wangshiming
2022-01-06 10:57:01 +08:00
parent a777f43a56
commit 78329f292c
12 changed files with 82 additions and 57 deletions

View File

@ -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;
});