diff --git a/app/api/property.js b/app/api/property.js new file mode 100644 index 0000000..5c85f57 --- /dev/null +++ b/app/api/property.js @@ -0,0 +1,47 @@ +import request from '@/utils/request.js'; + +// 投诉与建议 - 新增 +export function createComplaintSuggestion(data) { + return request.post( + 'autogencode/pmcomplaintsuggestion/save', + data, + { useAdminUrl: true } + ); +} + +// 投诉与建议 - 列表(可根据实际需要传入查询参数,如业主ID等) +export function listComplaintSuggestion(params) { + return request.get( + 'autogencode/pmcomplaintsuggestion/list', + params, + { useAdminUrl: true } + ); +} + +// 报修记录 - 列表 +export function listMaintenanceDispatch(params) { + return request.get( + 'autogencode/pmmaintenancedispatch/list', + params, + { useAdminUrl: true } + ); +} + +// 报修记录 - 新增(用于业主发起报修,后端可据此生成工单) +export function createMaintenanceDispatch(data) { + return request.post( + 'autogencode/pmmaintenancedispatch/save', + data, + { useAdminUrl: true } + ); +} + +// 房屋列表(用于选择报修房屋) +export function listHouses(params) { + return request.get( + 'autogencode/pmhouse/list', + params, + { useAdminUrl: true } + ); +} + diff --git a/app/pages.json b/app/pages.json index 720f5b9..57959ae 100644 --- a/app/pages.json +++ b/app/pages.json @@ -233,6 +233,22 @@ "navigationBarBackgroundColor": "#409EFF", "navigationBarTextStyle": "white" } + }, + { + "path": "complaint/index", + "style": { + "navigationBarTitleText": "投诉与建议", + "navigationBarBackgroundColor": "#409EFF", + "navigationBarTextStyle": "white" + } + }, + { + "path": "repair/index", + "style": { + "navigationBarTitleText": "报修服务", + "navigationBarBackgroundColor": "#409EFF", + "navigationBarTextStyle": "white" + } } ] }, diff --git a/app/pages/index/index.vue b/app/pages/index/index.vue index 6991386..3200668 100644 --- a/app/pages/index/index.vue +++ b/app/pages/index/index.vue @@ -93,6 +93,18 @@ 物资领用 + + + + + 投诉与建议 + + + + + + 报修服务 + diff --git a/app/pages/supply_chain/complaint/index.vue b/app/pages/supply_chain/complaint/index.vue new file mode 100644 index 0000000..4053360 --- /dev/null +++ b/app/pages/supply_chain/complaint/index.vue @@ -0,0 +1,564 @@ +