From 32f4acdd796a8e2c265a1d18e2f93632fc135cf8 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 9 May 2024 19:18:08 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8F=90=E9=86=92?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=88=B0=E5=B1=85=E6=B0=91=E8=AF=A6=E6=83=85?= =?UTF-8?q?,=E6=88=BF=E5=B1=8B=E6=90=9C=E7=B4=A2=E6=96=87=E5=AD=97?= =?UTF-8?q?=E4=BF=AE=E6=94=B9,=E6=88=BF=E5=B1=8B=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=9A=84=E8=8E=B7=E5=8F=96=E5=B0=8F=E5=8C=BA=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 2 +- pages/resiAndHouse/resiAndHouse.wxml | 2 +- subpages/addhouse/pages/addhouse/addhouse.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index/index.js b/pages/index/index.js index 80b82dc..d0e5d4c 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -217,7 +217,7 @@ onScrollToLower(e){ this.clearOneMessage(e.currentTarget.dataset.item.id) if(e.currentTarget.dataset.item.msgType == 'resident_base_info'){ wx.navigateTo({ - url: `/subpages/addResi/pages/addResi/addResi?type=edit&resiId=${e.currentTarget.dataset.item.targetId}`, + url: `/subpages/searchResult/pages/resiInfo/resiInfo?resiId=${e.currentTarget.dataset.item.targetId}`, }) }else if(e.currentTarget.dataset.item.msgType == 'community_house'){ wx.navigateTo({ diff --git a/pages/resiAndHouse/resiAndHouse.wxml b/pages/resiAndHouse/resiAndHouse.wxml index 368f096..80aeac1 100644 --- a/pages/resiAndHouse/resiAndHouse.wxml +++ b/pages/resiAndHouse/resiAndHouse.wxml @@ -20,7 +20,7 @@ - + 搜索 diff --git a/subpages/addhouse/pages/addhouse/addhouse.js b/subpages/addhouse/pages/addhouse/addhouse.js index daa51eb..7b448a3 100644 --- a/subpages/addhouse/pages/addhouse/addhouse.js +++ b/subpages/addhouse/pages/addhouse/addhouse.js @@ -167,7 +167,7 @@ Page({ getQuartersOptions(gridId){ let parm = { gridId, - agencyId:this.data.agecyId + agencyId:app.globalData.user.agencyId } api.getQuartersOptions(parm).then(res=>{ this.setData({ From e73e7202ba22b987e591c94c2ecb93e59ec3cf57 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 10 May 2024 11:10:09 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=B0=E5=BD=95,?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../searchResult/pages/resiInfo/resiInfo.js | 185 +++++++++++++++++- .../searchResult/pages/resiInfo/resiInfo.json | 3 +- .../searchResult/pages/resiInfo/resiInfo.wxml | 50 +++++ .../searchResult/pages/resiInfo/resiInfo.wxss | 78 ++++++++ utils/api.js | 8 +- 5 files changed, 320 insertions(+), 4 deletions(-) diff --git a/subpages/searchResult/pages/resiInfo/resiInfo.js b/subpages/searchResult/pages/resiInfo/resiInfo.js index a854f38..65a8655 100644 --- a/subpages/searchResult/pages/resiInfo/resiInfo.js +++ b/subpages/searchResult/pages/resiInfo/resiInfo.js @@ -1,6 +1,7 @@ // subpages/searchResult/pages/resiInfo/resiInfo.js import api from "../../../../utils/api" +import { getComplainList, getShengList, getShequList, getshijianList, getxuqiuList, getfuwuList, getMultiLogList } from "../../../../utils/businessRecords.js"; var http = require('../../../../utils/request.js') const QQMapWX = require('../../../../utils/qqmap-wx-jssdk') const app = getApp() @@ -531,7 +532,8 @@ Page({ householdSituationArr:[], houseHolderRelArr:[] }, - password:'' + password:'', + ywData: { "12345": [], "provinceSurvey": [], "selfSurvey": [], "event": [], "need": [], "serve": [], "punchRecord": [] } }, /** @@ -549,6 +551,8 @@ Page({ }) await this.getResiInfo() + this.getChangeRecordsById() + this.getTabData() } // this.data.qqMapWX = new QQMapWX({ // key: 'CMJBZ-4DECI-JXGGN-5B4WU-QLV2H-B5BEJ' @@ -634,7 +638,9 @@ Page({ ensure_house: "保障房信息", chronic_disease: "慢病信息", base: "基本信息", - graph:"关系图谱" + graph:"关系图谱", + update:"更新记录", + business:"业务记录" }; let list = Object.entries( value @@ -649,6 +655,12 @@ Page({ list.push({ name:'关系图谱', id:"graph" + },{ + name:'业务记录', + id:"business" + },{ + name:'更新记录', + id:"update" }, ) this.setData({ @@ -774,6 +786,175 @@ Page({ console.log(err); }) }, + // 获取业务记录 + async getTabData() { + + let params1 = { + "residList": [this.data.resiId], + "eventType": "3" + } + await getComplainList(params1).then(res => { + this.data.ywData['12345'] = res.data.list.map(item => { + return { + ...item, + categorycode: item.categorycode || '--', + eventcontent: item.eventcontent || '--' + } + }); + this.setData({ + data: this.data.ywData + }) + }) + let params = { + "residList": [this.data.resiId] + } + await getShengList(params).then(res => { + if (res.data && res.data.length > 0) { + let renamedArray = []; + res.data.forEach(item => { + let renamedItem = { + categorycode: item.scope || '--', + eventcontent: item.problemDesc || '--' + }; + renamedArray.push(renamedItem); + }); + this.data.ywData['provinceSurvey'] = renamedArray; + this.setData({ + ywData: this.data.ywData + }) + } else { + this.data.ywData['provinceSurvey'] = []; + this.setData({ + ywData: this.data.ywData + }) + } + }) + await getShequList(params).then(res => { + if (res.data && res.data.length > 0) { + let renamedArray = []; + res.data.forEach(item => { + let renamedItem = { + categorycode: item.scope || '--', + eventcontent: item.problemDesc || '--' + }; + renamedArray.push(renamedItem); + }); + this.data.ywData['selfSurvey'] = renamedArray; + this.setData({ + ywData: this.data.ywData + }) + } else { + this.data.ywData['selfSurvey'] = []; + this.setData({ + ywData: this.data.ywData + }) + } + }) + await getshijianList(params).then(res => { + if (res.data && res.data.length > 0) { + let renamedArray = []; + res.data.forEach(item => { + let renamedItem = { + categorycode: item.categorycode || '--', + eventcontent: item.eventcontent || '--' + }; + renamedArray.push(renamedItem); + }); + this.data.ywData['event'] = renamedArray; + this.setData({ + ywData: this.data.ywData + }) + } else { + this.data.ywData['event'] = []; + this.setData({ + ywData: this.data.ywData + }) + } + }) + await getxuqiuList(params).then(res => { + if (res.data && res.data.length > 0) { + let renamedArray = []; + res.data.forEach(item => { + let renamedItem = { + categorycode: item.parentName || '--', + eventcontent: item.content || '--' + }; + renamedArray.push(renamedItem); + }); + this.data.ywData['need'] = renamedArray; + this.setData({ + ywData: this.data.ywData + }) + } else { + this.data.ywData['need'] = []; + this.setData({ + ywData: this.data.ywData + }) + } + }) + + await getfuwuList(params).then(res => { + if (res.data && res.data.length > 0) { + let renamedArray = []; + res.data.forEach(item => { + let renamedItem = { + categorycode: item.serviceCategoryKey || '--', + eventcontent: item.serviceName || '--' + }; + renamedArray.push(renamedItem); + }); + this.data.ywData['serve'] = renamedArray; + this.setData({ + ywData: this.data.ywData + }) + } else { + this.data.ywData['serve'] = []; + this.setData({ + ywData: this.data.ywData + }) + } + }) + + const params2 = { + "resiIdList": [this.data.resiId], + pageNo: 1, + pageSize: 1000, + } + await getMultiLogList(params2).then(res => { + if (res.data && res.data.length > 0) { + let arr = []; + res.data.forEach(item => { + item.list.forEach(item1=>{ + arr.push(item1) + }) + }) + this.data.ywData['punchRecord'] = arr; + this.setData({ + ywData: this.data.ywData, + }) + } else { + this.data.ywData['punchRecord'] = []; + this.setData({ + ywData: this.data.ywData + }) + } + }) + + this.setData({ + ywVisible: true + }) + }, + // 获取更新记录 + getChangeRecordsById() { + api.getChangeRecordsById(this.data.resiId).then(res => { + console.log(res); + this.setData({ + logs:res.data + }) + }).catch(err => { + console.log(err); + }) + }, toAddResi() { this.setData({ checkPassword:true diff --git a/subpages/searchResult/pages/resiInfo/resiInfo.json b/subpages/searchResult/pages/resiInfo/resiInfo.json index b454563..1b49899 100644 --- a/subpages/searchResult/pages/resiInfo/resiInfo.json +++ b/subpages/searchResult/pages/resiInfo/resiInfo.json @@ -1,7 +1,8 @@ { "usingComponents": { "van-dialog": "@vant/weapp/dialog/index", - "resi-graph":"./component/graph/graph" + "resi-graph":"./component/graph/graph", + "BusinessRecord": "../../../businessRecord/businessRecord" }, "navigationBarTitleText": "详情" } \ No newline at end of file diff --git a/subpages/searchResult/pages/resiInfo/resiInfo.wxml b/subpages/searchResult/pages/resiInfo/resiInfo.wxml index e6bdb89..2529ce9 100644 --- a/subpages/searchResult/pages/resiInfo/resiInfo.wxml +++ b/subpages/searchResult/pages/resiInfo/resiInfo.wxml @@ -314,6 +314,56 @@ + + + 业务记录 + + + + + + + 更新记录 + + + + + + + + {{item.typeName}}-{{item.operatorName}} + {{item.changeTime}} + + + + + 变更信息: + {{item.fieldName}} + + + 变更后: + {{item.beforeChangeName}} + + + 备注: + {{item.remark||'--'}} + + + + + 变更前: + {{item.afterChangeName}} + + + 操作人: + {{item.operatorName}} + + + + + + + - - {{communitySelfInspTop.agencyName}}{{communitySelfInspTop.monthName}}月份满意度自查 - + + + {{communitySelfInspTop.agencyName}}{{communitySelfInspTop.monthName}}月份满意度自查 + + 已提交 {{communitySelfInspTop.personQty?communitySelfInspTop.personQty:'--'}} @@ -95,10 +97,9 @@ 未创建{{curMonth}}月份满意度自查 - 进行中 - + 进行中 diff --git a/pages/index/index.wxss b/pages/index/index.wxss index d535010..6ca1af0 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1033,6 +1033,20 @@ line-height: 40rpx; transform: translateY(-50%); right: 0; } +.bg_new_box .tag{ + display: inline-block; + position: absolute; + top: 0; + right: 0; + background: #FFEFDB; + border-radius: 0rpx 10rpx 0rpx 10rpx; + padding: 10rpx 26rpx; + box-sizing: border-box; + font-size: 24rpx; + font-family: PingFang SC; + font-weight: 500; + color: #FF783C; +} .new_h2{ margin-top: 30rpx; margin-left: 30rpx; diff --git a/project.config.json b/project.config.json index 243fa51..49963e6 100644 --- a/project.config.json +++ b/project.config.json @@ -46,7 +46,8 @@ "minifyWXML": true, "showES6CompileOption": false, "useCompilerPlugins": false, - "condition": false + "condition": false, + "ignoreUploadUnusedFiles": true }, "compileType": "miniprogram", "libVersion": "2.19.4", diff --git a/subpages/communitySelfInsp/pages/synthesis/synthesis.js b/subpages/communitySelfInsp/pages/synthesis/synthesis.js index 0d4bbde..ea9fb16 100644 --- a/subpages/communitySelfInsp/pages/synthesis/synthesis.js +++ b/subpages/communitySelfInsp/pages/synthesis/synthesis.js @@ -34,6 +34,7 @@ Page({ questionnaireUrl:decodeURIComponent(options.questionnaireUrl), status:decodeURIComponent(options.status) }) + console.log(this.data.status); // 获取当前日期 const currentDate = new Date(); const currentMonth = currentDate.getMonth() + 1;