车辆对接

This commit is contained in:
wangshiming
2022-01-05 20:15:37 +08:00
parent c7f9874e43
commit cd0035940a
43 changed files with 906 additions and 642 deletions

View File

@ -26,6 +26,8 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
1: '抢单',
2: '指派'
}
totalObj: any;
attObj: any;
status: any = { 1: '待接单', 2: '已接单', 3: '已取消' };
totalExpensePrice = 0;
expenseColumns: STColumn[] = [
@ -67,6 +69,8 @@ export class SupplyManagementVehicleDetailComponent implements OnInit {
this.service.request(this.service.$api_get_getCompleteVehicleDetail, { id: this.id }).subscribe(res => {
const expenseList = res?.expenseList || [];
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];
expenseList.forEach((e: any) => {
this.totalExpensePrice += e?.price * e?.rate;
});