物业之前,新工作台
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<el-table v-loading="loading" border :data="parkingCostList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="车位" align="center" prop="areaId">
|
||||
<template #default="scope"> {{ scope.row.areaName }} - {{ scope.row.parkingName }} </template>
|
||||
<template #default="scope"> {{ scope.row.name }} </template>
|
||||
</el-table-column>
|
||||
<el-table-column label="收费项目" align="center" prop="chargeItem">
|
||||
<template #default="scope">
|
||||
@@ -143,6 +143,7 @@ const data = reactive<PageData<ParkingCostForm, ParkingCostQuery>>({
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
villageId: Number(localStorage.getItem('villageid')),
|
||||
areaId: undefined,
|
||||
parkingId: undefined,
|
||||
chargeItem: undefined,
|
||||
@@ -153,7 +154,6 @@ const data = reactive<PageData<ParkingCostForm, ParkingCostQuery>>({
|
||||
cost: undefined,
|
||||
payerStatus: undefined,
|
||||
payMethod: undefined,
|
||||
villageId: undefined,
|
||||
params: {}
|
||||
},
|
||||
rules: {
|
||||
@@ -162,32 +162,12 @@ const data = reactive<PageData<ParkingCostForm, ParkingCostQuery>>({
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
const Arealist = ref([]);
|
||||
const Parkinglist = ref([]);
|
||||
|
||||
/** 查询停车缴费管理列表 */
|
||||
const getList = async () => {
|
||||
loading.value = true;
|
||||
// 车位
|
||||
const rows = await listParking();
|
||||
Parkinglist.value = rows.rows;
|
||||
// 车辆区域
|
||||
const arealist = await listArea();
|
||||
Arealist.value = arealist.rows;
|
||||
// 停车缴费
|
||||
const res = await listParkingCost(queryParams.value);
|
||||
parkingCostList.value = res.rows;
|
||||
parkingCostList.value.forEach((parkingCost) => {
|
||||
const find = Parkinglist.value.find((item) => item.id === parkingCost.parkingId);
|
||||
const areaFind = Arealist.value.find((item) => item.id === parkingCost.areaId);
|
||||
if (areaFind) {
|
||||
parkingCost.areaName = `${areaFind.areaName}(${areaFind.areaCode})`;
|
||||
}
|
||||
if (find) {
|
||||
parkingCost.parkingName = find.parkingCode;
|
||||
}
|
||||
});
|
||||
total.value = res.total;
|
||||
loading.value = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user