From 9645412534fa84c90bd4897d9344c5fc3051cd3e Mon Sep 17 00:00:00 2001 From: Zy <1448159279@qq.com> Date: Thu, 14 May 2026 17:57:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E8=AF=A6=E6=83=85=E5=BE=85?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/system/house/index.ts | 66 +++++++ src/api/system/house/type.ts | 2 + src/api/system/parking/index.ts | 17 +- src/api/system/storeroom/index.ts | 23 +++ src/components/LicensePlateInput/index.vue | 1 - src/utils/request.ts | 1 + src/utils/weather.ts | 2 +- src/views/system/house/AddHouse.vue | 120 +++++++++--- src/views/system/house/HouseDetails.vue | 182 +++++++++++++----- .../house/components/components/table.vue | 9 +- src/views/system/house/types.ts | 57 ++++++ src/views/system/menu/index.vue | 12 +- src/views/system/parking/index.vue | 8 +- src/views/system/parking/parkMain.vue | 65 ++++++- src/views/workbench/index2.vue | 178 ++++++++++------- 16 files changed, 562 insertions(+), 185 deletions(-) diff --git a/.env.development b/.env.development index e09aa48..b9502a1 100644 --- a/.env.development +++ b/.env.development @@ -9,9 +9,9 @@ VITE_APP_ENV = 'development' # 开发环境 VITE_APP_BASE_API = '/dev-api' # # 开发环境 接口代理地址 -# VITE_APP_PROXY_API = 'http://192.168.1.222:8080' +VITE_APP_PROXY_API = 'http://192.168.1.222:8080' # 开发环境 接口代理地址 -VITE_APP_PROXY_API = 'http://192.168.0.239:8080' +# VITE_APP_PROXY_API = 'http://192.168.0.239:8080' # 图片基础地址 VITE_IMG_URL = 'http://192.168.1.222:8080' diff --git a/src/api/system/house/index.ts b/src/api/system/house/index.ts index 4753f1f..a0a3746 100644 --- a/src/api/system/house/index.ts +++ b/src/api/system/house/index.ts @@ -100,3 +100,69 @@ export function getVillageTree(id: string) { method: 'GET' }); } + +/** 根据小区id,获取当前小区的树状结构 */ +export function getHouseMain(id: string): Promise { + return request({ + url: `/house/ByIdList?houseId=` + id, + method: 'GET' + }); +} + +export interface Response { + code: number; + data: Data; + msg: string; +} + +export interface Data { + billResidentList: BillResidentList[]; + chargeItemList: string[]; + house: House; + parking: null; + residentList: ResidentList[]; + storeroom: Storeroom; +} + +export interface BillResidentList { + billCode: string; + billName: string; + chargeItemId: string; + chargeTypeName: string; + money: string; + payStatus: string; + useCount: string; +} + +export interface House { + buildingName: string; + floorNo: number; + houseArea: string; + houseId: number; + houseNo: string; + houseType: string; + internalArea: string; + shareArea: string; + unitNo: number; + villageName: string; +} + +export interface ResidentList { + gender: string; + ownerRelationship: string; + phone: string; + residentId: string; + residentName: string; + residentStatus: string; + residentType: string; +} + +export interface Storeroom { + buildingName: string; + houseArea: string; + internalArea: string; + shareArea: string; + storeroomId: number; + storeroomNo: string; + unitNo: number; +} diff --git a/src/api/system/house/type.ts b/src/api/system/house/type.ts index 9d6c56e..51e1ff1 100644 --- a/src/api/system/house/type.ts +++ b/src/api/system/house/type.ts @@ -87,4 +87,6 @@ export interface addHouseType { 'internalArea': string; 'shareArea': string; 'houseType': string; + 'storeroomId': string; + 'parkingId': string; } diff --git a/src/api/system/parking/index.ts b/src/api/system/parking/index.ts index 22c9f48..5cc0911 100644 --- a/src/api/system/parking/index.ts +++ b/src/api/system/parking/index.ts @@ -65,10 +65,11 @@ export const delParking = (id: string | number | Array) => { * 改变车位审核装填 * @param id */ -export const getParkingReview = (id: string) => { +export const getParkingReview = (data: { id: string; propertyReviewFeedback: string; propertyStatus: number }) => { return request({ url: '/parkingReview/checkStatus', - method: 'POST' + method: 'POST', + data }); }; /** @@ -84,3 +85,15 @@ export const getParkingReviewInfo = (id: string) => { } }); }; +/** + * 查询小区内车位列表 + * @param { string } villageid + * @returns {*} + */ + +export const GetVillageListParking = (villageid?: string): AxiosPromise => { + return request({ + url: `/parking/getList/${villageid}`, + method: 'GET' + }); +}; diff --git a/src/api/system/storeroom/index.ts b/src/api/system/storeroom/index.ts index 5c1f0f1..27aada8 100644 --- a/src/api/system/storeroom/index.ts +++ b/src/api/system/storeroom/index.ts @@ -61,3 +61,26 @@ export const delStoreroom = (id: string | number | Array) => { method: 'delete' }); }; +/** + * 查询小区内储藏室管理列表 + * @param query + * @returns {*} + */ + +export const GetVillagelistStoreroom = ( + data: { villageid: string; unitNo: string; buildingId: string } = { + villageid: null, + buildingId: null, + unitNo: null + } +): AxiosPromise => { + return request({ + url: `/storeroom/getList`, + method: 'POST', + data: { + villageId: data.villageid, + buildingId: data.buildingId, + unitNo: data.unitNo + } + }); +}; diff --git a/src/components/LicensePlateInput/index.vue b/src/components/LicensePlateInput/index.vue index dddd25e..c81a73d 100644 --- a/src/components/LicensePlateInput/index.vue +++ b/src/components/LicensePlateInput/index.vue @@ -26,7 +26,6 @@ -
{{ errorMessage }}
diff --git a/src/utils/request.ts b/src/utils/request.ts index 5a6cf23..5dc7c77 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -43,6 +43,7 @@ const whiteVillageId = [ '/payRecordList/payRecordList/list', '/warehouse/*' + // '/storeroom/getList/*' // 以后直接在这里加新地址,支持 /xxx/*、/xxx/xxx 写法 ]; diff --git a/src/utils/weather.ts b/src/utils/weather.ts index 1cf3731..17bd097 100644 --- a/src/utils/weather.ts +++ b/src/utils/weather.ts @@ -194,5 +194,5 @@ const weatherIcons: Record = { }; export const getWeatherIcon = (weatherCode: string): string => { - return weatherIcons[weatherCode] || weatherIcons[999]; + return weatherIcons[weatherCode] || weatherIcons[100]; }; diff --git a/src/views/system/house/AddHouse.vue b/src/views/system/house/AddHouse.vue index 44302dc..abb29cb 100644 --- a/src/views/system/house/AddHouse.vue +++ b/src/views/system/house/AddHouse.vue @@ -1,6 +1,6 @@