//查询
async getList() {
let res = await getMonthBills(this.searchForm.vehicleType);
this.tableHeaderData = res.data.data[0].monthBillss.map(
(item) => item.handleDate
);
let temp = res.data.data.map((item) => {
const obj = {};
item.monthBillss.forEach((ele, index) => {
for (const key in ele) {
obj[key + index] = ele[key];
}
});
return { ...obj, price: item.price, model: item.model };
});
this.tableData = temp;
},