var fly = require('./request.js') module.exports = { getIntelligentMessage:getIntelligentMessage, userLoginlog:userLoginlog, getToken:getToken, getResidentBaseInfo:getResidentBaseInfo, getCommunityHouse:getCommunityHouse, getStaffbasicinfo:getStaffbasicinfo, resiAdd:resiAdd, getNationDictList, getEducationDictList, getDictList, getGridoptionDict, getQuartersOptions, getBuildingoption, getUnitoption, getHouseoption, getResiDetail, getResidentResideInfo, getResidentReligion, getResidentEduInfo, getFamilyInfoDetailById, resiEdit } // 消息列表 function getIntelligentMessage(param){ return fly.get(`message/intelligentMessage/page`,param) } /** *小程序用户登录 */ function userLoginlog (para) { return fly.post('auth/gov/loginbypassword', para) } // 获取token function getToken (para) { return fly.post('auth/gov/loginwxmp/loginbywxcode', para) } // 居民查询 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":"7b6f9a9f9f38d5f9fa7ce94a93d6eb28","purpose":"addorupdate"} function getGridoptionDict (parm) { return fly.post('gov/org/customergrid/gridoption',parm) } // 居民信息(选择网格获取小区列表) 入参 {"gridId":"86f71d0e4b07b62bceebeaea46ed487f","agencyId":"7b6f9a9f9f38d5f9fa7ce94a93d6eb28"} 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":"1565599765176528897"} 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) }