7/10 缴费分析,人员分析 数据对接

This commit is contained in:
Zy
2026-07-10 17:44:28 +08:00
parent 3a808750ac
commit 298f93380c
46 changed files with 1065 additions and 673 deletions

View File

@@ -220,6 +220,8 @@ const form = ref({
vx: '', //微信
houseUse: '0', //房屋用途
rentalStatus: 0, //租赁状态
buildingId: null, //楼栋id
unitNoId: null, //单元id
email: '' //邮箱
});
const userHousepath = ref<CascaderValue>([]);
@@ -257,11 +259,9 @@ async function gettreedata() {
...form.value,
...res.data
};
housedeviceslist.value = form.value.facilities.split(',').filter((item) => item);
const imgurllist = splitStringUrl(form.value.houseImageUrl);
fileList.value = imgurllist;
const arr = getHousePathById(treedata.value, form.value.houseId);
userHousepath.value = arr;
if (form.value.facilities) housedeviceslist.value = form.value.facilities.split(',').filter((item) => item);
if (form.value.houseImageUrl) fileList.value = splitStringUrl(form.value.houseImageUrl);
handleChange([form.value.buildingId, form.value.unitNoId, form.value.houseId]);
});
}
}

View File

@@ -12,7 +12,7 @@
<div class="addBuildingFormBody">
<div class="descriptionsbox">
<div class="label">房屋:</div>
<div class="value">{{ HouseInfo.house }}</div>
<div class="value">{{ HouseInfo.name }}</div>
</div>
<div class="descriptionsbox">
<div class="label">业主姓名:</div>
@@ -104,10 +104,8 @@ import { getHousePathById } from '@/utils/house';
import { listHouseFacilities } from '@/api/system/HouseFacilities';
const houseStore = useHouseStore();
const { treedata } = storeToRefs(houseStore);
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_rental_method } = toRefs<any>(proxy?.useDict('com_rental_method'));
const { com_house_rental_facilities } = toRefs<any>(proxy?.useDict('com_house_rental_facilities'));
const route = useRoute();
const router = useRouter();
@@ -145,15 +143,14 @@ async function init() {
}
const reslist = await listHouseFacilities();
housefacilities.value = reslist.rows;
await houseStore.getCurrentVilageTreeHouse();
getHouseRental(houseRentalid.value).then((res) => {
HouseInfo.value = res.data;
HouseInfo.value.facilitieslist = res.data.facilities.split(',').filter((item) => item);
HouseInfo.value.houseImageUrls = HouseInfo.value.houseImageUrl.split(',').filter((item) => item);
const arr = getHousePathById(treedata.value, HouseInfo.value.houseId, 'label');
HouseInfo.value.house = arr.join(' - ');
});
}
//.╬
init();
function handlefacilities(id: string) {