|
|
|
|
|
import request from '@/utils/request.js';
|
|
|
|
|
|
|
|
|
|
|
|
// 投诉与建议 - 新增
|
|
|
|
|
|
export function createComplaintSuggestion(data) {
|
|
|
|
|
|
return request.post(
|
|
|
|
|
|
'autogencode/pmcomplaintsuggestion/save',
|
|
|
|
|
|
data,
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 投诉与建议 - 更新
|
|
|
|
|
|
export function updateComplaintSuggestion(data) {
|
|
|
|
|
|
return request.post(
|
|
|
|
|
|
'autogencode/pmcomplaintsuggestion/update',
|
|
|
|
|
|
data,
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 投诉与建议 - 列表(可根据实际需要传入查询参数,如业主ID等)
|
|
|
|
|
|
export function listComplaintSuggestion(params) {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
'autogencode/pmcomplaintsuggestion/list',
|
|
|
|
|
|
params,
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 祈愿菜单列表
|
|
|
|
|
|
export function wishMenuList(params) {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
'autogencode/pmcomplaintsuggestion/wishMenuList',
|
|
|
|
|
|
params,
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 每日菜单明细列表(支持按 menuDate 查询)
|
|
|
|
|
|
export function listDailyMenuDetails(params) {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
'autogencode/pmdailymenudtl/listByAll',
|
|
|
|
|
|
params,
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 菜单明细点赞/点踩
|
|
|
|
|
|
export function likeDailyMenuItem(data) {
|
|
|
|
|
|
return request.post(
|
|
|
|
|
|
'autogencode/pmdailymenudtllike/like',
|
|
|
|
|
|
data,
|
|
|
|
|
|
{ useAdminUrl: true },
|
|
|
|
|
|
data
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 菜单取消点赞/点踩
|
|
|
|
|
|
export function cancelLikeDailyMenuItem(data) {
|
|
|
|
|
|
return request.post(
|
|
|
|
|
|
'autogencode/pmdailymenudtllike/cancelLike',
|
|
|
|
|
|
data,
|
|
|
|
|
|
{ useAdminUrl: true },
|
|
|
|
|
|
data
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 菜品排行(点赞/点踩)
|
|
|
|
|
|
export function getDailyMenuRanking(params) {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
'autogencode/pmdailymenudtllike/ranking',
|
|
|
|
|
|
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 }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 物资列表
|
|
|
|
|
|
export function listCkstock() {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
'autogencode/ckcargostock/listCkstock',
|
|
|
|
|
|
{},
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 提交领用申请
|
|
|
|
|
|
export function quickOutBill(data) {
|
|
|
|
|
|
return request.post(
|
|
|
|
|
|
'autogencode/ckbill/quickOutBill',
|
|
|
|
|
|
data,
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取领用记录列表
|
|
|
|
|
|
export function stockPageList(params) {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
'autogencode/ckbill/stockPageList',
|
|
|
|
|
|
params,
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 取消单据
|
|
|
|
|
|
export function cancelBill(id) {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
`autogencode/ckbill/cancelBill/${id}`,
|
|
|
|
|
|
{},
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 部门树
|
|
|
|
|
|
export function getDeptTree() {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
'autogencode/sysdept/tree',
|
|
|
|
|
|
{},
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 用户列表
|
|
|
|
|
|
export function listAdmins(params) {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
'admin/system/admin/list',
|
|
|
|
|
|
params,
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 更新派单(处理)
|
|
|
|
|
|
export function updateMaintenanceDispatch(data) {
|
|
|
|
|
|
return request.post(
|
|
|
|
|
|
'autogencode/pmmaintenancedispatch/update',
|
|
|
|
|
|
data,
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取管理员账号信息
|
|
|
|
|
|
export function getAdminInfoByUid() {
|
|
|
|
|
|
return request.get(
|
|
|
|
|
|
'admin/getAdminInfoByUid',
|
|
|
|
|
|
{},
|
|
|
|
|
|
{ useAdminUrl: true }
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 绑定微信(对应后台 api/front/bindingWx)
|
|
|
|
|
|
export function bindingWx(data) {
|
|
|
|
|
|
return request.post('bindingWx', data, { useAdminUrl: true });
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 解绑微信(对应后台 api/front/unbindWx)
|
|
|
|
|
|
export function unbindWx(data) {
|
|
|
|
|
|
return request.post('unbindWx', data, { useAdminUrl: true });
|
|
|
|
|
|
}
|