城阳工作端uniH5前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

444 lines
13 KiB

10 months ago
var fly = require('./request.js');
module.exports = {
getIntelligentMessage,
userLoginlog: userLoginlog,
getToken: getToken,
getResidentBaseInfo,
getCommunityHouse,
getStaffbasicinfo,
resiAdd: resiAdd,
getNationDictList,
getEducationDictList,
getDictList,
getGridoptionDict,
getQuartersOptions,
getBuildingoption,
getUnitoption,
getHouseoption,
getResiDetail,
getResidentResideInfo,
getResidentReligion,
getResidentEduInfo,
getFamilyInfoDetailById,
resiEdit,
getSituation,
getHouseCoding,
saveCommunityHouse,
updateCommunityHouse,
getClearHouseDeatilById,
getCollect,
clearMessage,
getInspRecord,
getSynthesis,
getInspResult,
getFollowUpList,
followUpSave,
followUpDelete,
logout,
getAgencygridtree,
addEvent,
getResidentBaseInfoPage,
getDemandoption,
addMeasure,
getFollowUpDetail,
clockRecords,
clearOneMessage,
getPubKey,
changePassword,
getCheckLogList,
getLastLog,
getResiUserInfo,
getPersonalFile,
getFamilyRelationshipList,
provincialSatisfactionPageList,
communitySatisfactionPageList,
eventPageList,
recorHistory,
serviceNumber,
getMyTroubleshootDemand,
getIcEventOld,
getDemandDetail,
updateMeasure,
userDemandCance,
icEventOldDelete,
updateEvent,
submitResi,
getAllOrgCategoryCount,
getResiInfo,
userXiangQ,
getTopTree,
getNextTree,
houseSearch,
allOrgHouseInfo,
getLogList,
updatetResi,
getResiList,
houseResidentChangeRecord,
waitCollectHouseList,
nonIntResiList,
securityCheckk,
overView,
getFamilyRelationshipListByHouseId,
addRecord,
showRecord,
inspectionStaff,
getChangeRecordsById
};
// 获取公钥
function getPubKey() {
return fly.post(`auth/govweb/getKey`);
}
function changePassword(parm) {
return fly.post(`epmetuser/customerstaff/changePassword`, parm);
}
// 消息列表
function getIntelligentMessage(param) {
return fly.get(`message/intelligentMessage/page`, param);
}
function clearOneMessage(parm) {
return fly.post(`message/intelligentMessage/msg/clearOne/?msgId=${parm.msgId}`);
}
function clearMessage() {
return fly.post('message/intelligentMessage/msg/clear');
}
/**
*小程序用户登录
*/
function userLoginlog(para) {
return fly.post('auth/gov/loginbypassword', para);
}
/**
*人员详情
*/
function userXiangQ(id) {
// return fly.get('actual/base/residentIntegratedInfo/detail/masked/${id}', para)
return fly.get(`actual/base/residentIntegratedInfo/detail/masked/${id}`);
}
// 获取token
function getToken(para) {
return fly.post('auth/gov/loginwxmp/loginbywxcode', para);
}
// 退出登录
function logout() {
return fly.post('auth/login/logout');
}
// 居民查询
function getResidentBaseInfo(para) {
return fly.post('actual/base/residentBaseInfo/residentSearchMP', para);
}
// 房屋查询
function getCommunityHouse(para) {
return fly.post('actual/base/communityHouse/houseSearch', para);
}
// 获取用户信息
function getStaffbasicinfo(para) {
return fly.post('epmetuser/customerstaff/staffbasicinfo', para);
}
// 新增居民
function resiAdd(para) {
return fly.post('actual/base/residentBaseInfo/save', para);
}
//居民详情
function getResiInfo(resiId) {
return fly.get(`actual/base/residentIntegratedInfo/detail/masked/${resiId}`);
}
// 民族字典
function getNationDictList() {
return fly.post('sys/dict/data/nation', {
formCode: 'resi_base_info'
});
}
// 文化程度字典
function getEducationDictList() {
return fly.post('sys/dict/data/education', {
formCode: 'resi_base_info'
});
}
// 居民信息(根据当前用户组织id获取下级网格){"agencyId":"","purpose":""}
function getGridoptionDict(parm) {
return fly.post('gov/org/customergrid/gridoption', parm);
}
// 居民信息(选择网格获取小区列表) 入参 {"gridId":"","agencyId":""}
function getQuartersOptions(parm) {
return fly.post('actual/base/communityQuarters/listQuartersOptions', parm);
}
// 居民信息(选择小区获取楼栋列表) 入参 {"quartersId":"1565599579037511681"}
function getBuildingoption(id) {
return fly.post('actual/base/communityBuilding/buildingoption', {
quartersId: id
});
}
// 居民信息(选择楼栋获取单元列表) 入参 {"buildingId":""}
function getUnitoption(id) {
return fly.post('actual/base/communityBuildingUnit/unitoption', {
buildingId: id
});
}
// 居民信息(选择单元获取房屋列表) 入参{"unitId":""}
function getHouseoption(id) {
return fly.post('actual/base/communityHouse/houseoption', {
unitId: id
});
}
// 运营端统一配置字典
function getDictList(code) {
return fly.post('sys/dict/data/dictlist', {
dictType: code
});
}
function getResiDetail(id) {
return fly.post(`actual/base/residentBaseInfo/detail/${id}`);
}
// 获取居住地详情
function getResidentResideInfo(id) {
return fly.post(`actual/base/residentResideInfo/getResideInfoDetailById/${id}`);
}
// 获取宗教信仰详情
function getResidentReligion(id) {
return fly.get(`actual/base/residentReligion/detail/${id}`);
}
// 获取教育详情
function getResidentEduInfo(id) {
return fly.get(`actual/base/residentEduInfo/detail/${id}`);
}
// 获取家庭详情
function getFamilyInfoDetailById(id) {
return fly.post(`actual/base/residentFamilyInfo/getFamilyInfoDetailById/${id}`);
}
// 居民修改
function resiEdit(parm) {
return fly.post(`actual/base/residentBaseInfo/update`, parm);
}
// 工作页面信息采集面板
function getSituation() {
return fly.get(`actual/base/wxcollect/situation`);
}
// 生成房屋码
function getHouseCoding(id) {
return fly.post(`actual/base/communityHouse/getHouseCoding/${id}`);
}
// 房屋新增
function saveCommunityHouse(parm) {
return fly.post(`actual/base/communityHouse/saveCommunityHouse`, parm);
}
// 房屋详情
function getClearHouseDeatilById(id) {
return fly.post(`actual/base/communityHouse/getClearHouseDeatilById/${id}`);
}
// 房屋编辑
function updateCommunityHouse(parm) {
return fly.post(`actual/base/communityHouse/updateCommunityHouse`, parm);
}
// 采集信息列表
function getCollect(parm) {
return fly.post(`message/intelligentMessage/collect/page`, parm);
}
// 自查记录列表
function getInspRecord(parm) {
return fly.get(`governance/satisfaction/communitySelfInsp/inspRecord/list`, parm);
}
// 自查统计
function getSynthesis(parm) {
return fly.get(`governance/satisfaction/communitySelfInsp/stats/synthesis`, parm);
}
// 不满意结果列表
function getInspResult(parm) {
return fly.get(`governance/satisfaction/communitySelfInsp/inspResult/list`, parm);
}
// 回访记录列表
function getFollowUpList(parm) {
return fly.get(`governance/satisfaction/communitySelfInsp/followUp/list`, parm);
}
// 回访记录新增/修改
function followUpSave(parm) {
return fly.post(`governance/satisfaction/communitySelfInsp/followUp/save`, parm);
}
// 回访记录删除
function followUpDelete(parm) {
return fly.post(`governance/satisfaction/communitySelfInsp/followUp/delete/${parm}`);
}
// 获取组织树
function getAgencygridtree() {
return fly.post(`gov/org/customeragency/agencygridtree`);
}
// 上报事件
function addEvent(parm) {
return fly.post(`governance/icEventOld/add-event-resi`, parm);
}
// 上报诉求中选择居民
function getResidentBaseInfoPage(parm) {
return fly.post(`actual/base/residentBaseInfo/page`, parm);
}
// 获取需求分类树
function getDemandoption(parm) {
return fly.post(`governance/icresidemanddict/demandoption`, parm);
}
// 上报诉求
function addMeasure(parm) {
return fly.post(`governance/userdemand/add`, parm);
}
// 获取不满意原因
function getFollowUpDetail(id) {
return fly.get(`governance/satisfaction/communitySelfInsp/followUp/detail/${id}`);
}
// 打卡
function clockRecords(parm) {
return fly.post(`actual/base/clockRecords/save`, parm);
}
// 打卡记录
function getCheckLogList(parm) {
return fly.get(`actual/base/clockRecords/logList`, parm);
}
// 打卡记录
function getLastLog(parm) {
return fly.get(`actual/base/clockRecords/lastLog`, parm);
}
// 获取居民脱敏信息
function getResiUserInfo(id, parm) {
return fly.post(`actual/base/residentBaseInfo/getResiUserInfo/${id}`, parm);
}
/// 获取居民档案
function getPersonalFile(parm) {
return fly.post(`actual/base/peopleRoomOverview/getPersonalFile?resid=` + parm.resid);
}
// 获取家庭关系(居民)
function getFamilyRelationshipList(parm) {
return fly.post(`actual/base/peopleRoomOverview/getFamilyRelationshipList?type=${parm.type}&resid=` + parm.id);
}
// 获取家庭关系(房屋)
function getFamilyRelationshipListByHouseId(parm) {
return fly.post(`actual/base/peopleRoomOverview/getFamilyRelationshipListByHouseId?type=0&houseId=` + parm.id);
}
// 省满意度
function provincialSatisfactionPageList(parm) {
return fly.post(`actual/base/peopleRoomOverview/provincialSatisfactionPageList`, parm);
}
// 社区满意度
function communitySatisfactionPageList(parm) {
return fly.post(`actual/base/peopleRoomOverview/communitySatisfactionPageList`, parm);
}
// 12345
function eventPageList(parm) {
return fly.post(`actual/base/peopleRoomOverview/eventPageList`, parm);
}
// 积分记录
function recorHistory(parm) {
return fly.get(`actual/base/peopleRoomOverview/recorHistory`, parm);
}
// 享受服务次数统计
function serviceNumber(parm) {
return fly.get(`actual/base/peopleRoomOverview/serviceNumber`, parm);
}
//获取我的诉求摸排
function getMyTroubleshootDemand(parm) {
return fly.get(`governance/demandCollect/my/collects`, parm);
}
// 过去事件详情
function getIcEventOld(parm) {
return fly.post(`governance/icEventOld/detail`, parm);
}
//获取需求详情
function getDemandDetail(parm) {
return fly.post(`governance/userdemand/demandDetail`, parm);
}
// 更新需求
function updateMeasure(parm) {
return fly.post(`governance/userdemand/update`, parm);
}
// 取消需求
function userDemandCance(parm) {
return fly.post(`governance/userdemand/cancel`, parm);
}
// 删除事件
function icEventOldDelete(parm) {
return fly.post(`governance/icEventOld/delete`, parm);
}
// 更新事件
function updateEvent(parm) {
return fly.post(`governance/icEventOld/update`, parm);
}
// 居民新增
function submitResi(parm) {
return fly.post(`actual/base/residentBaseInfo/save`, parm);
}
function getAllOrgCategoryCount(parm) {
return fly.get(`actual/base/streetOverview/allOrgCategoryCount`, parm);
}
// 居民编辑
function updatetResi(parm) {
return fly.post(`actual/base/residentBaseInfo/update`, parm);
}
// 社区查询-房屋查询
function houseSearch(parm) {
return fly.post(`actual/base/communityHouse/houseSearch`, parm);
}
// 社区查询-房屋概览查询
function allOrgHouseInfo(parm) {
return fly.get(`actual/base/streetOverview/allOrgHouseInfo`, parm);
}
// 懒加载树状一级
function getTopTree(parm) {
return fly.get(`actual/base/communityBuilding/tree/initTree`, parm);
}
// 懒加载树状多层下级
function getNextTree(parm) {
return fly.get(`actual/base/communityBuilding/tree/nextTreeNode`, parm);
}
// 获取打卡记录
function getLogList(parm) {
return fly.get(`actual/base/clockRecords/logList`, parm);
}
// 获取房屋居民id
function getResiList(parm) {
return fly.post(`actual/base/residentBaseInfo/page`, parm);
}
// 获取更新记录
function houseResidentChangeRecord(parm) {
return fly.get(`actual/base/peopleRoomOverview/houseResidentChangeRecord`, parm);
}
//获取待采集房屋列表
function waitCollectHouseList(parm) {
return fly.get(`actual/base/communityHouse/resiAndHouseCollect/waitCollectHouseList`, parm);
}
//信息不完整居民列表
function nonIntResiList(parm) {
return fly.get(`actual/base/residentIntegrity/resiCategoryStats/nonIntResiList`, parm);
}
//安检巡查分页查询
function securityCheckk(parm) {
return fly.post(`actual/base/companyInfo/page`, parm);
}
//
function overView(parm) {
return fly.get(`actual/base/communityHouse/resiAndHouseCollect/overview`, parm);
}
// 获取更新记录
function getChangeRecordsById(id) {
return fly.post(`actual/base/residentChangeRecord/getChangeRecordsById/${id}`);
}
//巡查记录--新增
function addRecord(parm) {
return fly.post(`actual/base/companyInfo/addRecord`, parm);
}
//巡查记录--展示
function showRecord(parm) {
return fly.post(`actual/base/companyInfo/showRecord`, parm);
}
//检查人员
function inspectionStaff(parm) {
return fly.post(`data/aggregator/org/stafflist`, parm);
}