From e4e314519b2077e09a40f5b50b1c2a51af525b3e Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Thu, 5 Jun 2025 03:11:56 +0800 Subject: [PATCH] 完成物业首页功能 --- public/img/hc_use.png | Bin 0 -> 66505 bytes src/api/community/enterCommunityApi.js | 41 +++++++++++++++++++++++++++++++++++++++++ src/api/community/roomRenovationManageApi.js | 141 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/AddRoomRenovation.vue | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/DeleteRoomRenovation.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/EditRoomRenovation.vue | 228 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/RoomDecorationAcceptance.vue | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/RoomRenovationCompleted.vue | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/RoomToExamine.vue | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/editCommunityArea.vue | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/community/uploadImageUrl.vue | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/components/index/indexRepairComplaint.vue | 2 -- src/i18n/index.js | 6 ++++++ src/router/index.js | 16 +++++++++++++--- src/src/locale/lang/community/enterCommunityLang.js | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/community/enterCommunityLang.js | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/community/enterCommunityList.vue | 153 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/community/roomRenovationManageLang.js | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/community/roomRenovationManageList.vue | 372 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 19 files changed, 1915 insertions(+), 5 deletions(-) create mode 100644 public/img/hc_use.png create mode 100644 src/api/community/enterCommunityApi.js create mode 100644 src/api/community/roomRenovationManageApi.js create mode 100644 src/components/community/AddRoomRenovation.vue create mode 100644 src/components/community/DeleteRoomRenovation.vue create mode 100644 src/components/community/EditRoomRenovation.vue create mode 100644 src/components/community/RoomDecorationAcceptance.vue create mode 100644 src/components/community/RoomRenovationCompleted.vue create mode 100644 src/components/community/RoomToExamine.vue create mode 100644 src/components/community/editCommunityArea.vue create mode 100644 src/components/community/uploadImageUrl.vue create mode 100644 src/src/locale/lang/community/enterCommunityLang.js create mode 100644 src/views/community/enterCommunityLang.js create mode 100644 src/views/community/enterCommunityList.vue create mode 100644 src/views/community/roomRenovationManageLang.js create mode 100644 src/views/community/roomRenovationManageList.vue diff --git a/public/img/hc_use.png b/public/img/hc_use.png new file mode 100644 index 0000000..0fe161a Binary files /dev/null and b/public/img/hc_use.png differ diff --git a/src/api/community/enterCommunityApi.js b/src/api/community/enterCommunityApi.js new file mode 100644 index 0000000..ed2e2be --- /dev/null +++ b/src/api/community/enterCommunityApi.js @@ -0,0 +1,41 @@ +import request from '@/utils/request' + +// 查询入驻小区列表 +export function listMyCommunity(params) { + return new Promise((resolve, reject) => { + request({ + url: '/communitys/queryStoreCommunitys', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code == 0) { + resolve(res.data) + } else { + reject(new Error(res.msg || '查询小区列表失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 更新小区信息 +export function updateCommunity(data) { + return new Promise((resolve, reject) => { + request({ + url: '/community.updateCommunity', + method: 'post', + data + }).then(response => { + const res = response.data + if (res.code == 0) { + resolve(res) + } else { + reject(new Error(res.msg || '更新小区信息失败')) + } + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/api/community/roomRenovationManageApi.js b/src/api/community/roomRenovationManageApi.js new file mode 100644 index 0000000..b9743c0 --- /dev/null +++ b/src/api/community/roomRenovationManageApi.js @@ -0,0 +1,141 @@ +import request from '@/utils/request' + +// 查询装修信息列表 +export function listRoomRenovation(params) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/queryRoomRenovation', + method: 'get', + params + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '查询装修信息失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 添加装修信息 +export function addRoomRenovation(data) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/saveRoomRenovation', + method: 'post', + data + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '添加装修信息失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 更新装修信息 +export function updateRoomRenovation(data) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/updateRoomRenovation', + method: 'post', + data + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '更新装修信息失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 删除装修信息 +export function deleteRoomRenovation(data) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/deleteRoomRenovation', + method: 'post', + data + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '删除装修信息失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 更新装修状态 +export function updateRoomRenovationState(data) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/updateRoomRenovationState', + method: 'post', + data + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '更新装修状态失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 更新装修审核状态 +export function updateRoomToExamine(data) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/updateRoomToExamine', + method: 'post', + data + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '更新审核状态失败')) + } + }).catch(error => { + reject(error) + }) + }) +} + +// 保存装修验收信息 +export function saveRoomRenovationDetail(data) { + return new Promise((resolve, reject) => { + request({ + url: '/roomRenovation/saveRoomRenovationDetail', + method: 'post', + data + }).then(response => { + const res = response.data + if (res.code === 0) { + resolve(res) + } else { + reject(new Error(res.msg || '保存验收信息失败')) + } + }).catch(error => { + reject(error) + }) + }) +} \ No newline at end of file diff --git a/src/components/community/AddRoomRenovation.vue b/src/components/community/AddRoomRenovation.vue new file mode 100644 index 0000000..83001e3 --- /dev/null +++ b/src/components/community/AddRoomRenovation.vue @@ -0,0 +1,130 @@ + + + \ No newline at end of file diff --git a/src/components/community/DeleteRoomRenovation.vue b/src/components/community/DeleteRoomRenovation.vue new file mode 100644 index 0000000..dad58ce --- /dev/null +++ b/src/components/community/DeleteRoomRenovation.vue @@ -0,0 +1,66 @@ + + + \ No newline at end of file diff --git a/src/components/community/EditRoomRenovation.vue b/src/components/community/EditRoomRenovation.vue new file mode 100644 index 0000000..7f6f5ef --- /dev/null +++ b/src/components/community/EditRoomRenovation.vue @@ -0,0 +1,228 @@ + + + \ No newline at end of file diff --git a/src/components/community/RoomDecorationAcceptance.vue b/src/components/community/RoomDecorationAcceptance.vue new file mode 100644 index 0000000..73c3704 --- /dev/null +++ b/src/components/community/RoomDecorationAcceptance.vue @@ -0,0 +1,103 @@ + + + \ No newline at end of file diff --git a/src/components/community/RoomRenovationCompleted.vue b/src/components/community/RoomRenovationCompleted.vue new file mode 100644 index 0000000..3c37200 --- /dev/null +++ b/src/components/community/RoomRenovationCompleted.vue @@ -0,0 +1,66 @@ + + + \ No newline at end of file diff --git a/src/components/community/RoomToExamine.vue b/src/components/community/RoomToExamine.vue new file mode 100644 index 0000000..a0b95cd --- /dev/null +++ b/src/components/community/RoomToExamine.vue @@ -0,0 +1,100 @@ + + + \ No newline at end of file diff --git a/src/components/community/editCommunityArea.vue b/src/components/community/editCommunityArea.vue new file mode 100644 index 0000000..1064826 --- /dev/null +++ b/src/components/community/editCommunityArea.vue @@ -0,0 +1,112 @@ + + + \ No newline at end of file diff --git a/src/components/community/uploadImageUrl.vue b/src/components/community/uploadImageUrl.vue new file mode 100644 index 0000000..6c3a6a7 --- /dev/null +++ b/src/components/community/uploadImageUrl.vue @@ -0,0 +1,122 @@ + + + + + \ No newline at end of file diff --git a/src/components/index/indexRepairComplaint.vue b/src/components/index/indexRepairComplaint.vue index 6906028..a1507c5 100644 --- a/src/components/index/indexRepairComplaint.vue +++ b/src/components/index/indexRepairComplaint.vue @@ -212,9 +212,7 @@ export default { \ No newline at end of file diff --git a/src/views/community/roomRenovationManageLang.js b/src/views/community/roomRenovationManageLang.js new file mode 100644 index 0000000..2960485 --- /dev/null +++ b/src/views/community/roomRenovationManageLang.js @@ -0,0 +1,126 @@ +export const messages = { + en: { + roomRenovationManage: { + queryCondition: "Query Condition", + hide: "Hide", + more: "More", + roomNumberPlaceholder: "Please enter room number (e.g. 1-1-101)", + contactPersonPlaceholder: "Please enter contact person", + phonePlaceholder: "Please enter phone number", + search: "Search", + reset: "Reset", + statusPlaceholder: "Please select status", + postponePlaceholder: "Please select if postponed", + renovationTimePlaceholder: "Please select renovation time", + startTimePlaceholder: "Please select start time", + endTimePlaceholder: "Please select end time", + renovationInfo: "Renovation Information", + add: "Add", + room: "Room", + contactPerson: "Contact Person", + phone: "Phone", + renovationTime: "Renovation Time", + applyTime: "Apply Time", + renovationCompany: "Renovation Company", + renovationManager: "Renovation Manager", + managerPhone: "Manager Phone", + status: "Status", + isPostponed: "Is Postponed", + postponeTime: "Postpone Time", + isViolation: "Is Violation", + violationDesc: "Violation Description", + remark: "Remark", + operation: "Operation", + fee: "Fee", + review: "Review", + completeRenovation: "Complete Renovation", + renovationAcceptance: "Renovation Acceptance", + acceptanceDetail: "Acceptance Detail", + modify: "Modify", + delete: "Delete", + trackRecord: "Track Record", + yes: "Yes", + no: "No", + confirmDelete: "Confirm Delete", + confirmDeleteMsg: "Are you sure to delete this renovation record?", + cancelDelete: "Cancel", + confirmComplete: "Confirm Complete", + confirmCompleteMsg: "Are you sure to mark this renovation as completed?", + cancelComplete: "Cancel", + save: "Save", + cancel: "Cancel", + renovationStartTime: "Renovation Start Time", + renovationEndTime: "Renovation End Time", + renovationCompanyPlaceholder: "Please enter renovation company", + renovationManagerPlaceholder: "Please enter renovation manager", + managerPhonePlaceholder: "Please enter manager phone", + remarkPlaceholder: "Optional remarks", + acceptanceOpinion: "Acceptance Opinion", + reviewOpinion: "Review Opinion", + violationPlaceholder: "Please select if violation", + violationDescPlaceholder: "Please enter violation description" + } + }, + zh: { + roomRenovationManage: { + queryCondition: "查询条件", + hide: "隐藏", + more: "更多", + roomNumberPlaceholder: "请输入房屋编号 (如1-1-101)", + contactPersonPlaceholder: "请输入联系人", + phonePlaceholder: "请输入联系电话", + search: "查询", + reset: "重置", + statusPlaceholder: "请选择状态", + postponePlaceholder: "请选择是否延期", + renovationTimePlaceholder: "请选择装修时间", + startTimePlaceholder: "请选择开始时间", + endTimePlaceholder: "请选择结束时间", + renovationInfo: "装修信息", + add: "添加", + room: "房屋", + contactPerson: "联系人", + phone: "联系电话", + renovationTime: "装修时间", + applyTime: "申请时间", + renovationCompany: "装修单位", + renovationManager: "装修负责人", + managerPhone: "负责人电话", + status: "状态", + isPostponed: "是否延期", + postponeTime: "延期时间", + isViolation: "是否违规", + violationDesc: "违规说明", + remark: "备注", + operation: "操作", + fee: "费用", + review: "审核", + completeRenovation: "装修完成", + renovationAcceptance: "装修验收", + acceptanceDetail: "验收明细", + modify: "修改", + delete: "删除", + trackRecord: "跟踪记录", + yes: "是", + no: "否", + confirmDelete: "确认删除", + confirmDeleteMsg: "确定删除该装修记录吗?", + cancelDelete: "点错了", + confirmComplete: "确认完成", + confirmCompleteMsg: "确定完成该装修记录吗?", + cancelComplete: "点错了", + save: "保存", + cancel: "取消", + renovationStartTime: "装修开始时间", + renovationEndTime: "装修结束时间", + renovationCompanyPlaceholder: "请输入装修单位", + renovationManagerPlaceholder: "请输入装修负责人", + managerPhonePlaceholder: "请输入负责人电话", + remarkPlaceholder: "选填备注", + acceptanceOpinion: "验收意见", + reviewOpinion: "审核意见", + violationPlaceholder: "请选择是否违规", + violationDescPlaceholder: "请输入违规说明" + } + } +} \ No newline at end of file diff --git a/src/views/community/roomRenovationManageList.vue b/src/views/community/roomRenovationManageList.vue new file mode 100644 index 0000000..090f91e --- /dev/null +++ b/src/views/community/roomRenovationManageList.vue @@ -0,0 +1,372 @@ + + + + + \ No newline at end of file -- libgit2 0.21.4