|
|
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 listMaintenanceOrder(params) {
|
|
|
return request.get(
|
|
|
'autogencode/pmmaintenanceorder/list',
|
|
|
params,
|
|
|
{ useAdminUrl: true }
|
|
|
);
|
|
|
}
|
|
|
|
|
|
// 报修记录 - 新增(用于业主发起报修,后端可据此生成工单)
|
|
|
export function createMaintenanceOrder(data) {
|
|
|
return request.post(
|
|
|
'autogencode/pmmaintenanceorder/save',
|
|
|
data,
|
|
|
{ useAdminUrl: true }
|
|
|
);
|
|
|
}
|
|
|
|
|
|
// 报修记录 - 详情
|
|
|
export function listMaintenanceOrderDetail(id) {
|
|
|
return request.get(
|
|
|
'autogencode/pmmaintenanceorder/info/' + id,
|
|
|
{ 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 }
|
|
|
);
|
|
|
}
|
|
|
|
|
|
// 投诉与建议 - 删除
|
|
|
export function deleteComplaintSuggestion(ids) {
|
|
|
return request.post(
|
|
|
'autogencode/pmcomplaintsuggestion/delete',
|
|
|
ids,
|
|
|
{ useAdminUrl: true }
|
|
|
);
|
|
|
}
|
|
|
|
|
|
// 报修单 - 更新状态
|
|
|
export function updateMaintenanceOrderStatus(data) {
|
|
|
return request.post(
|
|
|
'autogencode/pmmaintenanceorder/updateStatusAndRemark',
|
|
|
data,
|
|
|
{ useAdminUrl: true }
|
|
|
);
|
|
|
}
|
|
|
|