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.
234 lines
6.8 KiB
234 lines
6.8 KiB
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,
|
|
getDemandoption2
|
|
}
|
|
|
|
// 获取公钥
|
|
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)
|
|
}
|
|
|
|
// 获取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/residentSearch', 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 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/icEvent/add-event-resi`,parm)
|
|
}
|
|
// 上报诉求中选择居民
|
|
function getResidentBaseInfoPage (parm) {
|
|
return fly.post(`actual/base/residentBaseInfo/page`,parm)
|
|
}
|
|
// 获取需求分类树
|
|
function getDemandoption (parm) {
|
|
return fly.get(`governance/commonServiceType/selectList/0`,parm)
|
|
}
|
|
function getDemandoption2 (id) {
|
|
return fly.get(`governance/commonServiceType/selectList/${id}`)
|
|
}
|
|
|
|
// 上报诉求
|
|
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)
|
|
}
|
|
|