Browse Source

巡检公司带搜寻

xiaowang-data
是小王呀\24601 1 year ago
parent
commit
f10caf7908
  1. 104
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.js
  2. 3
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.json
  3. 29
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml
  4. 26
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss
  5. 7
      utils/api.js
  6. 449
      utils/api_BACKUP_859.js
  7. 433
      utils/api_BASE_859.js
  8. 438
      utils/api_LOCAL_859.js
  9. 437
      utils/api_REMOTE_859.js

104
subpages/InspectionReport/pages/InspectionReport/InspectionReport.js

@ -9,13 +9,20 @@ import {
addRecord, addRecord,
securityCheckk, securityCheckk,
inspectionStaff, inspectionStaff,
showRecord showRecord,
Enterpriseambiguity
} from "../../../../utils/api" } from "../../../../utils/api"
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
orderDate:"",
inspectIf:false,
selectedEnterpriseNames:[],
EnterpriseName:[],
index: 0,
companyList:[],
showtime:false, showtime:false,
checkboxOptions:[], checkboxOptions:[],
hiddenDangeList: [], hiddenDangeList: [],
@ -29,6 +36,7 @@ Page({
pageSize: 10, pageSize: 10,
id: 0, id: 0,
addressContent: '', addressContent: '',
showqiye:false,
fmData: { fmData: {
gridId: '', gridId: '',
attachmentList: [], //图片 attachmentList: [], //图片
@ -67,7 +75,8 @@ Page({
currentDate: new Date().getTime(), currentDate: new Date().getTime(),
minDate: new Date(2020, 0, 1).getTime(), minDate: new Date(2020, 0, 1).getTime(),
maxDate: new Date(2030, 11, 31).getTime(), maxDate: new Date(2030, 11, 31).getTime(),
checkboxValue:[] checkboxValue:[],
searchKeyword:""
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
@ -87,6 +96,34 @@ Page({
this.setData({ this.setData({
showtime:true showtime:true
}) })
},
inputChange(val){
console.log(val.detail.value);
this.data.searchKeyword = val.detail.value.trim();
let parm = {
name: this.data.searchKeyword,
pageSize:this.data.pageSize,
pageNo:this.data.pageNo
}
Enterpriseambiguity(parm).then(res => {
console.log(res.data.list);
this.setData({
companyList:res.data.list,
showqiye:true
})
console.log( this.data.companyList);
let names = []
res.data.list.forEach(item=>{
names.push(item.name)
})
console.log(names);
this.data.EnterpriseName=names
})
// clearTimeout(this.data.timer);
// this.data.timer = setTimeout(() => {
// // 调用后台接口或者模拟数据获取搜索结果
// // this.pickerChange2(e);
// }, 300); // 设置延迟时间,比如300毫秒
}, },
onInputChange(e){ onInputChange(e){
const index = e.currentTarget.dataset.index; const index = e.currentTarget.dataset.index;
@ -245,17 +282,17 @@ Page({
}, },
getList() { getList() {
securityCheckk({ // securityCheckk({
pageNo: this.data.pageNo, // pageNo: this.data.pageNo,
pageSize: this.data.pageSize, // pageSize: this.data.pageSize,
}).then(({ // }).then(({
data // data
}) => { // }) => {
console.log(data.list) // console.log(data.list)
this.setData({ // this.setData({
companyList: data.list, // companyList: data.list,
}); // });
}); // });
inspectionStaff({ inspectionStaff({
orgId: App.globalData.user.agencyId, orgId: App.globalData.user.agencyId,
orgType: 'agency', orgType: 'agency',
@ -268,6 +305,7 @@ Page({
arr: data.staffList arr: data.staffList
}) })
}); });
console.log(arr,"wdsfsd");
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
@ -347,6 +385,9 @@ Page({
}, },
onClose() { onClose() {
let names = [] let names = []
this.setData({
showqiye:false
})
this.data.arr.forEach(item=>{ this.data.arr.forEach(item=>{
if(this.data.selectedOptions.findIndex(itemC=>itemC === item.staffId) != -1){ if(this.data.selectedOptions.findIndex(itemC=>itemC === item.staffId) != -1){
names.push(item.name) names.push(item.name)
@ -355,7 +396,8 @@ Page({
this.setData({ this.setData({
showPopup: false, showPopup: false,
selectedNames: names, selectedNames: names,
checkPersonsIdList:this.data.selectedOptions checkPersonsIdList:this.data.selectedOptions,
selectedEnterpriseNames:[]
}); // 关闭弹出层 }); // 关闭弹出层
}, },
onCloseTime(){ onCloseTime(){
@ -366,7 +408,39 @@ Page({
this.setData({ this.setData({
selectedOptions: event.detail selectedOptions: event.detail
}); });
console.log(this.data.selectedOptions)
},
onChange2(event) {
console.log(event);
this.setData({
selectedEnterpriseNames: event.detail,
searchKeyword:event.detail[0]
});
console.log(event.detail);
console.log(this.data.companyList);
this.data.companyList.forEach(item=>{
if(this.data.searchKeyword==item.name){
this.data.companyId=item.companyId
this.data.orderDate=item.orderDate
}
})
const currentDate = new Date();
const currentMonth = currentDate.getMonth() + 1;
const targetMonth = parseInt(this.data.orderDate.substring(5, 7), 10);
console.log(this.data.companyId,);
if (targetMonth === currentMonth) {
this.setData({
inspectIf:true
})
console.log( this.data.inspectIf);
} else {
this.setData({
inspectIf:false
})
}
this.showRecordData()
}, },
confirmSelection() { confirmSelection() {
// 点击确定按钮后触发,处理选中的复选框项 // 点击确定按钮后触发,处理选中的复选框项

3
subpages/InspectionReport/pages/InspectionReport/InspectionReport.json

@ -9,6 +9,7 @@
"van-checkbox-group": "@vant/weapp/checkbox-group/index", "van-checkbox-group": "@vant/weapp/checkbox-group/index",
"van-popup": "@vant/weapp/popup/index", "van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index", "van-picker": "@vant/weapp/picker/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index" "van-datetime-picker": "@vant/weapp/datetime-picker/index",
"van-search": "@vant/weapp/search/index"
} }
} }

29
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxml

@ -17,15 +17,19 @@
<view class="nes"> <view class="nes">
<view class="conclusion"> <view class="conclusion">
<text class="prosecutors_pre">企业名称</text> <text class="prosecutors_pre">企业名称</text>
<picker class="prosecutors_name" bindchange="pickerChange2" range-key="name" value="{{index}}" range="{{companyList}}"> <div>
<view class="{{gridNName?'':'gray'}}"> <input class="{{inspectIf ? 'search-input1' : 'search-input'}}" type="text" placeholder="请输入要查找的公司" bindconfirm="inputChange" value="{{searchKeyword}}" />
{{gridNName?gridNName:'请选择'}} <!-- <picker bindchange="pickerChange2" range-key="name" value="{{index}}" range="{{companyList}}">
</view> </picker> -->
</picker> <!-- <view class="list-container">
<view wx:for="{{ companyList }}" wx:key="index">
<text bindchange="pickerChange2" bind:tap="pickerChange2">{{ companyList[index].name }}</text>
</view> </view>
<view class="conclusion_right"> </view> -->
<image src="../../../../images/right.png" class="prosecutors_img"></image> </div>
</view></view>
</view>
</view>
</view> </view>
<view class="prosecutors" bind:tap="showPopup"> <view class="prosecutors" bind:tap="showPopup">
@ -159,6 +163,15 @@
</van-checkbox-group> </van-checkbox-group>
</view> </view>
</van-popup> </van-popup>
<!-- 企业名称 -->
<van-popup show="{{ showqiye }}" closeable close-icon="close" position="bottom" custom-style="height: 50%" bind:close="onClose" round>
<view class="popup-content">
<van-checkbox-group max="{{1}}" value="{{selectedEnterpriseNames}}" bind:change="onChange2">
<van-checkbox name="{{item.name}}" custom-class="checkbox"
wx:for="{{companyList}}" wx:key="index">{{item.name}}</van-checkbox>
</van-checkbox-group>
</view>
</van-popup>
<van-popup show="{{ showtime }}" close-icon="close" position="bottom" custom-style="height: 50%" bind:close="closePopup" round> <van-popup show="{{ showtime }}" close-icon="close" position="bottom" custom-style="height: 50%" bind:close="closePopup" round>
<van-datetime-picker <van-datetime-picker
type="datetime" type="datetime"

26
subpages/InspectionReport/pages/InspectionReport/InspectionReport.wxss

@ -14,6 +14,13 @@ page {
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
margin: 20rpx; margin: 20rpx;
} }
.search-input{
margin-left: 40rpx;
}
.search-input1{
color: #999999;
margin-left: 40rpx;
}
.prosecutors{ .prosecutors{
display: flex; display: flex;
flex-direction:row; flex-direction:row;
@ -36,6 +43,25 @@ page {
height: 50rpx; height: 50rpx;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
padding: 0;
margin: 0;
}
.custom-class{
background-color:#FFFFFF ;
padding-bottom: 20rpx;
margin: 0;
}
.input-class{
padding: 0;
background-color:#FFFFFF ;
padding-bottom: 20rpx;
margin: 0;
}
.field-class{
background-color: #FFFFFF;
padding-bottom: 20rpx;
padding: 0 10rpx 10rpx 10rpx;
} }
.conclusion1{ .conclusion1{
display: flex; display: flex;

7
utils/api.js

@ -83,7 +83,8 @@ module.exports = {
showRecord, showRecord,
inspectionStaff, inspectionStaff,
getChangeRecordsById, getChangeRecordsById,
isUpdater isUpdater,
Enterpriseambiguity
} }
// 获取公钥 // 获取公钥
@ -436,3 +437,7 @@ function isUpdater(id){
return fly.post(`actual/base/residentCategoryUpdateInfo/isUpdater/${id}`) return fly.post(`actual/base/residentCategoryUpdateInfo/isUpdater/${id}`)
} }
//企业模糊查询
function Enterpriseambiguity(parm){
return fly.post(`actual/base/companyInfo/page`,parm)
}

449
utils/api_BACKUP_859.js

@ -0,0 +1,449 @@
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,
<<<<<<< Updated upstream
isUpdater
=======
Enterpriseambiguity
>>>>>>> Stashed changes
}
// 获取公钥
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)
}
<<<<<<< Updated upstream
//两小时内输入密码无需再输入
function isUpdater(id){
return fly.post(`actual/base/residentCategoryUpdateInfo/isUpdater/${id}`)
}
=======
//企业模糊查询
function Enterpriseambiguity(parm){
return fly.post(`actual/base/companyInfo/page`,parm)
}
>>>>>>> Stashed changes

433
utils/api_BASE_859.js

@ -0,0 +1,433 @@
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)
}

438
utils/api_LOCAL_859.js

@ -0,0 +1,438 @@
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,
isUpdater
}
// 获取公钥
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)
}
//两小时内输入密码无需再输入
function isUpdater(id){
return fly.post(`actual/base/residentCategoryUpdateInfo/isUpdater/${id}`)
}

437
utils/api_REMOTE_859.js

@ -0,0 +1,437 @@
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,
Enterpriseambiguity
}
// 获取公钥
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)
}
//企业模糊查询
function Enterpriseambiguity(parm){
return fly.post(`actual/base/companyInfo/page`,parm)
}
Loading…
Cancel
Save