diff --git a/miniprogram/pages/project_flowable/editTask/index.js b/miniprogram/pages/project_flowable/editTask/index.js index 45fbdfb..732b398 100644 --- a/miniprogram/pages/project_flowable/editTask/index.js +++ b/miniprogram/pages/project_flowable/editTask/index.js @@ -26,6 +26,7 @@ Page({ comment: "", taskId: "", procInsId: "", + procDefKey: "", backShow: false, targetKey: "", targetKeyList: [], @@ -47,6 +48,7 @@ Page({ subDeptScopes: [], persChange1: false, persChange2: false, + gwmxChange0: false, }, /** @@ -71,6 +73,11 @@ Page({ fbAptitude: true }) } + if(procDefKey == "flow_zxys_gzmjtys"){ + this.setData({ + gwmxChange0: true + }) + } if (procDefKey == "flow_xmglzdl_xmzbdwrybg" || procDefKey == "flow_xmglzdl_xmjldwrybg") { this.setData({ persChange1: true @@ -89,6 +96,7 @@ Page({ projectId: app.globalData.projectId, projectName, procInsId, + procDefKey, procDefName, deployId, deptName, diff --git a/miniprogram/pages/project_flowable/editTask/index.wxml b/miniprogram/pages/project_flowable/editTask/index.wxml index 9abede3..35956e6 100644 --- a/miniprogram/pages/project_flowable/editTask/index.wxml +++ b/miniprogram/pages/project_flowable/editTask/index.wxml @@ -153,6 +153,21 @@ + + + + + + + + + + + + + + + 审批内容 [仅可上传图片] diff --git a/miniprogram/pages/project_flowable/initTask/index.js b/miniprogram/pages/project_flowable/initTask/index.js index ecb2a59..bf40888 100644 --- a/miniprogram/pages/project_flowable/initTask/index.js +++ b/miniprogram/pages/project_flowable/initTask/index.js @@ -24,6 +24,7 @@ Page({ procDefId: "", approveTitle: "", deploymentId: "", + procDefKey: "", activeName: "", flowNodeList: [], flowNodes: [], @@ -44,6 +45,7 @@ Page({ subDeptApproachDate: "", persChange1: false, persChange2: false, + gwmxChange0: false, }, /** @@ -62,6 +64,11 @@ Page({ fbAptitude: true }) } + if(procDefKey == "flow_zxys_gzmjtys"){ + this.setData({ + gwmxChange0: true + }) + } if (procDefKey == "flow_xmglzdl_xmzbdwrybg" || procDefKey == "flow_xmglzdl_xmjldwrybg") { this.setData({ persChange1: true @@ -82,6 +89,7 @@ Page({ procDefId, approveTitle, deploymentId, + procDefKey, deptId: res.data.deptId, deptName: res.data.deptName, userId: res.data.userId, diff --git a/miniprogram/pages/project_flowable/initTask/index.wxml b/miniprogram/pages/project_flowable/initTask/index.wxml index cac29ba..bf1f9ab 100644 --- a/miniprogram/pages/project_flowable/initTask/index.wxml +++ b/miniprogram/pages/project_flowable/initTask/index.wxml @@ -109,6 +109,21 @@ + + + + + + + + + + + + + + + 审批内容 [仅可上传图片] diff --git a/miniprogram/pages/quality_manage/index.js b/miniprogram/pages/quality_manage/index.js index 52e94f9..9420703 100644 --- a/miniprogram/pages/quality_manage/index.js +++ b/miniprogram/pages/quality_manage/index.js @@ -37,8 +37,22 @@ Page({ type4PassRate: 100, }, //举牌验收 - checkValue: 0, - checkPassRate: 100, + checkValueData: [{ + type: 1, + typeName: '常规验收', + total: 0, + pass: 0, + passRate: 0.00 + }, + { + type: 2, + typeName: '隐蔽验收', + total: 0, + pass: 0, + passRate: 0.00 + } + ], + checkValueList: [], materialSealStatistics: [{ name: "其它", value: 0, @@ -107,6 +121,7 @@ Page({ this.getCheckDetectionData(projectId); this.getMaterialSealData(projectId); this.getCheckingData(projectId); + this.getCheckingList(projectId); }, /** @@ -289,13 +304,45 @@ Page({ success: res => { res = res.data; if (res.code == 200 && res.data) { + let dataList = this.data.checkValueData; res.data.forEach((it, idx) => { //数据绑定 - this.setData({ - checkValue: it.total, - checkPassRate: (it.pass / it.total * 100).toFixed(2), - }) + it.passRate = (it.pass / it.total * 100).toFixed(2); + if (it.type == 1) { + dataList[0] = it; + } else { + dataList[1] = it; + } }); + this.setData({ + checkValueData: dataList + }) + } + } + }) + }, + + /** + * 举牌验收详情 + */ + getCheckingList(projectId) { + wx.request({ + url: app.globalData.reqUrl + '/wechat/projectchecking/findStatisticsInfosByProjectId', + data: { + projectId: projectId + }, + method: "get", + success: res => { + res = res.data; + if (res.code == 200 && res.data) { + let list = []; + res.data.forEach((it, idx) => { + it.passRate = (it.pass / it.total * 100).toFixed(2); + list.push(it); + }); + this.setData({ + checkValueList: list + }) } } }) @@ -480,7 +527,7 @@ Page({ res = res.data; if (res.code == "200") { that.setData({ - todoDb: res.data.todo+res.data.approveLZYJ, + todoDb: res.data.todo + res.data.approveLZYJ, approveDb: res.data.approve + res.data.zlCount, aq: res.data.aqCount, zl: res.data.zlCount, diff --git a/miniprogram/pages/quality_manage/index.wxml b/miniprogram/pages/quality_manage/index.wxml index 0df1e17..aab1461 100644 --- a/miniprogram/pages/quality_manage/index.wxml +++ b/miniprogram/pages/quality_manage/index.wxml @@ -1,454 +1,486 @@ - - - - - - - - - 返回 - - - - 质量管理 - - - + + + + + + + + + 返回 + + + + 质量管理 + + + - - - - - - {{scslDb}} - {{clfyDb}} - {{jpysDb}} - {{qyfsDb}} - {{zl}} - {{gcgnDb}} - - {{item.menu_name}} - - - - - - - - - 实测实量 - 查看详情 - - - - - - - - - 质量隐患排查 - 查看详情 - - - - - 常规检查问题数 - - - 整改率 - {{securityCheck.routineRectificationRate}} % - - - - 已整改问题数 - {{securityCheck.routineProblemTotal}} - - - - - 专项检查问题数 - - - 整改率 - {{securityCheck.specialRectificationRate}} % - - - - 已整改问题数 - {{securityCheck.specialProblemTotal}} - - - - - - + + + + + + {{scslDb}} + {{clfyDb}} + {{jpysDb}} + {{qyfsDb}} + {{zl}} + {{gcgnDb}} + + {{item.menu_name}} + + + - - - 取样复试 - 查看详情 - - - - - - - - 钢筋原材料 - - - - - - - - - - - - - - - - 复试次数 - - - - {{checkDetectionData.type1Value}} - 次 - - - - - - - - - - - - 合格率 - - - - {{checkDetectionData.type1PassRate}} - % - - - - + + + 实测实量 + 查看详情 + + - - - - - - - - 钢筋试拉件 - - - - - - - - - - - - - - - - 复试次数 - - - - {{checkDetectionData.type2Value}} - 次 - - - - - - - - - - - - 合格率 - - - - {{checkDetectionData.type2PassRate}} - % - - - - - - - - - - - - - - - 混凝土试件 - - - - - - - - - - - - - - - - 复试次数 - - - - {{checkDetectionData.type3Value}} - 次 - - - - - - - - - - - - 合格率 - - - - {{checkDetectionData.type3PassRate}} - % - - - - - - - - - - - - - - - 其它复试 - - - - - - - - - - - - - - - - 复试次数 - - - - {{checkDetectionData.type4Value}} - 次 - - - - - - - - - - - - 合格率 - - - - {{checkDetectionData.type4PassRate}} - % - - - - - - - - - - - - 材料封样 - 查看详情 - - - - - - - - - 举牌验收 - 查看详情 - - - - - - - - - - - - - 验收次数 - - - - {{checkValue}} - 次 - + + + 质量隐患排查 + 查看详情 + + + + + + + 常规检查问题数 + + + 整改率 + {{securityCheck.routineRectificationRate}} % + + + + 已整改问题数 + {{securityCheck.routineProblemTotal}} - - + + + 专项检查问题数 + + + 整改率 + {{securityCheck.specialRectificationRate}} % + + + + 已整改问题数 + {{securityCheck.specialProblemTotal}} - - - 合格率 + + + + + + + + + + + 取样复试 + 查看详情 + + + + + + + + + + 钢筋原材料 + + + + + + + + + + + + - - - {{checkPassRate}} - % + + + 复试次数 + + + + {{checkDetectionData.type1Value}} + 次 + + + + + + + + + + + + 合格率 + + + + {{checkDetectionData.type1PassRate}} + % + - - - + + + + + + + + 钢筋试拉件 + + + + + + + + + + + + + + + + 复试次数 + + + + {{checkDetectionData.type2Value}} + 次 + + + + + + + + + + + + 合格率 + + + + {{checkDetectionData.type2PassRate}} + % + + + + + + + + + + + + + + + 混凝土试件 + + + + + + + + + + + + + + + + 复试次数 + + + + {{checkDetectionData.type3Value}} + 次 + + + + + + + + + + + + 合格率 + + + + {{checkDetectionData.type3PassRate}} + % + + + + + + + + + + + + + + + 其它复试 + + + + + + + + + + + + + + + + 复试次数 + + + + {{checkDetectionData.type4Value}} + 次 + + + + + + + + + + + + 合格率 + + + + {{checkDetectionData.type4PassRate}} + % + + + + + + + + + + + + + + + 材料封样 + 查看详情 + + + + + + + + + + + 举牌验收 + 查看详情 + + + + + + + 常规举牌验收 + + + 通过率 + {{checkValueData[0].passRate}} % + + + + 隐蔽举牌验收 + + + 通过率 + {{checkValueData[1].passRate}} % + + + + + + + + + + + {{item.typeName}}[常规验收] + [隐蔽验收] + + + + + + + + + + 验收次数 + + + + {{item.total}} + 次 + + + + + + + + + 合格率 + + + + {{item.passRate}} + % + + + + + + + + + + - - - - 项目概况 - + + + + 项目概况 + - - - - 安全管理 - {{aq}} - + + + + 安全管理 + {{aq}} + - - - - 质量管理 - {{approveDb}} - - - - - - 进度管理 - + + + + 质量管理 + {{approveDb}} + - - - - 更多功能 - {{todoDb}} - - + + + + 进度管理 + + + + + + 更多功能 + {{todoDb}} + + \ No newline at end of file diff --git a/miniprogram/pages/quality_manage/index.wxss b/miniprogram/pages/quality_manage/index.wxss index d378634..2de55b5 100644 --- a/miniprogram/pages/quality_manage/index.wxss +++ b/miniprogram/pages/quality_manage/index.wxss @@ -1,14 +1,16 @@ /* pages/Quality-Assurance/index.wxss */ /* 质量管理 */ -.quality{ +.quality { padding: 60rpx 40rpx 30rpx; } + /* 头部部分 */ -.quality-header{ +.quality-header { margin: 10rpx 0 50rpx; } + /* 内容部分 */ -.quality-content{ +.quality-content { width: 100%; border: 1px solid #1e2336; background-color: #1e2336; @@ -17,22 +19,26 @@ font-size: 26rpx; border-radius: 15rpx; } -.eharts_title{ + +.eharts_title { height: 40rpx; line-height: 40rpx; padding-left: 50rpx; margin-left: 20rpx; font-size: 34rpx; background: url("https://szgcwx.jhncidg.com/staticFiles/img/menu/CORE_52887EE6A33042408E11C2174974ABA1.png") no-repeat left/35rpx; - } - /* 内容部分 */ - .gangjin{ - padding:0 30rpx 40rpx 60rpx; - } - .gangjin-header{ +} + +/* 内容部分 */ +.gangjin { + padding: 0 30rpx 40rpx 60rpx; +} + +.gangjin-header { width: 100%; } -.project-title{ + +.project-title { height: 40rpx; line-height: 40rpx; padding-left: 40rpx; @@ -40,25 +46,29 @@ font-size: 26rpx; background: url("https://szgcwx.jhncidg.com/staticFiles/img/WEB_F6B0554C215E496195EA7D6FCE2C0B8E.png") no-repeat left/35rpx; } -.wanjieNum-over-bottom{ + +.wanjieNum-over-bottom { display: flex; flex-direction: column; - justify-content:space-evenly ; + justify-content: space-evenly; padding: 100rpx 0 0 0; color: #b0c3e5; } -.wanjieNum-over-bottom-top{ + +.wanjieNum-over-bottom-top { display: flex; justify-content: space-between; height: 100rpx; line-height: 100rpx; } -.wanjieNum-over-bottom-top-box{ + +.wanjieNum-over-bottom-top-box { display: flex; width: 50%; height: 100rpx; } -.wanjieNum-over-bottom-top-box-Img{ + +.wanjieNum-over-bottom-top-box-Img { display: flex; justify-content: center; align-items: center; @@ -67,7 +77,8 @@ background: url("https://szgcwx.jhncidg.com/staticFiles/img/WEB_20BAE0F4F7E14D048A818A10223B0BE1.gif") no-repeat center/100%; padding: 14rpx 0; } -.wanjieNum-over-bottom-top-box-ImgBY{ + +.wanjieNum-over-bottom-top-box-ImgBY { display: flex; justify-content: center; align-items: center; @@ -76,7 +87,8 @@ background: url("https://szgcwx.jhncidg.com/staticFiles/img/WEB_EBD7748CB73A4D2D8BD74617F84528DE.png") no-repeat center/100%; padding: 14rpx 0; } -.wanjieNum-over-bottom-top-box-Imgs{ + +.wanjieNum-over-bottom-top-box-Imgs { display: flex; justify-content: center; align-items: center; @@ -85,7 +97,8 @@ background: url("https://szgcwx.jhncidg.com/staticFiles/img/WEB_FBB7B92F89A748CCA88C2D059D67CDCD.gif") no-repeat center/100%; padding: 14rpx 0; } -.wanjieNum-over-bottom-top-box-ImgPC{ + +.wanjieNum-over-bottom-top-box-ImgPC { display: flex; justify-content: center; align-items: center; @@ -94,7 +107,8 @@ background: url("https://szgcwx.jhncidg.com/staticFiles/img/WEB_E219D45248B942248FE6561F24B536A9.png") no-repeat center/100%; padding: 14rpx 0; } -.wanjieNum-over-bottom-top-box-ImgPS{ + +.wanjieNum-over-bottom-top-box-ImgPS { display: flex; justify-content: center; align-items: center; @@ -103,54 +117,75 @@ background: url("https://szgcwx.jhncidg.com/staticFiles/img/WEB_C8E00800A80E4D41B579855E50A57F3E.png") no-repeat center/100%; padding: 14rpx 0; } -.wanjieNum-over-bottom-top-box-Img-small{ + +.wanjieNum-over-bottom-top-box-Img-small { width: 50rpx; height: 50rpx; line-height: 50rpx; } -.wanjieNum-over-bottom-top-box-Img-smallBY{ + +.wanjieNum-over-bottom-top-box-Img-smallBY { width: 50rpx; height: 50rpx; line-height: 50rpx; margin-bottom: 20rpx; } -.wanjieNum-over-bottom-top-box-title{ + +.wanjieNum-over-bottom-top-box-title { display: flex; flex-direction: column; justify-content: space-between; /* padding-left:20rpx ; */ width: 60%; - height:100rpx ; + height: 100rpx; font-size: 28rpx; } -.wanjieNum-over-bottom-top-box-title-text{ + +.wanjieNum-over-bottom-top-box-title-text { height: 50rpx; line-height: 50rpx; } + /* 钢筋拉试件 */ -.gangjinlajin{ - padding:0 30rpx 40rpx 60rpx; +.gangjinlajin { + padding: 0 30rpx 40rpx 60rpx; } -.gangjinlajin-header{ + +.gangjinlajin-header { width: 100%; } + /* 标养室监测 */ -.jupai-top{ +.jupai-top { height: 80rpx; border: 1px solid green; } -.gd_max{ - padding:10rpx 50rpx 0; - } - .gd_min{ + +.gd_max { + padding: 10rpx 50rpx 0; +} + +.gd_min { padding: 30rpx 0; text-align: center; - } - .gd_min image{ +} + +.gd_min image { width: 150rpx; height: 150rpx; - } - .gd_min view{ +} + +.gd_min view { padding: 10rpx; color: #89a4eb; - } \ No newline at end of file +} + +.cd1{ + padding-left: 15rpx; + color: #2cffbb; +} + +.cd2{ + padding-left: 15rpx; + color: #8761ff; +} \ No newline at end of file diff --git a/miniprogram/pages/safety_manage/index.js b/miniprogram/pages/safety_manage/index.js index 4a8649c..a91a559 100644 --- a/miniprogram/pages/safety_manage/index.js +++ b/miniprogram/pages/safety_manage/index.js @@ -13,13 +13,54 @@ Page({ projectName: '', projectId: '', //教育培训 - videoSurvey: [{ - name: '应急演练', + workTrainStatistics: [{ + name: '入场教育', value: 0, prop: 0 }, { - name: '专项培训', + name: '班前培训', + value: 0, + prop: 0 + }, + { + name: '专项教育', + value: 0, + prop: 0 + }, + { + name: '文件落实', + value: 0, + prop: 0 + }, + { + name: '其它培训', + value: 0, + prop: 0 + } + ], + emergencyDrillStatistics: [{ + name: '消防演练', + value: 0, + prop: 0 + }, + { + name: '防汛演练', + value: 0, + prop: 0 + }, + { + name: '高处坠落演练', + value: 0, + prop: 0 + }, + { + name: '机械伤害演练', + value: 0, + prop: 0 + }, + { + name: '受限空间演练', value: 0, prop: 0 } @@ -115,13 +156,11 @@ Page({ * 初始化项目安全管理 */ initPage(projectId) { - this.getTrainList(projectId, 0); + this.getTraining(projectId, 0); this.getSecurityCheck(projectId); this.getSpecial(projectId); - //this.getDeptWorks(projectId); this.getPojectInsurance(projectId); - //this.getTraining(projectId); - this.getTrainList(projectId, 1); + this.getTraining(projectId, 1); }, selectMenuList: function (loginName) { @@ -147,11 +186,13 @@ Page({ /** * 教育培训 */ - getTraining(projectId) { + getTraining(projectId, type) { wx.request({ - url: app.globalData.reqUrl + '/wechat/projectTrain/selectGroupCountByProjectId', + url: app.globalData.reqUrl + '/wechat/projectTrain/selectGroupCountByProjectIdV2', data: { - projectId: projectId + projectId: projectId, + trainType: type, + deptId: 0 }, method: "get", success: res => { @@ -161,18 +202,24 @@ Page({ res.data.forEach((it, idx) => { sum += it.total; }); - let videoSurvey = []; + let _workTrainList = []; res.data.forEach((it, idx) => { - videoSurvey.push({ + _workTrainList.push({ name: it.typeName, value: it.total, prop: (it.total / sum * 100).toFixed(2) }); }); //数据绑定 - this.setData({ - videoSurvey - }) + if (type == 0) { + this.setData({ + workTrainStatistics: _workTrainList + }) + } else { + this.setData({ + emergencyDrillStatistics: _workTrainList + }) + } } } }) @@ -554,7 +601,7 @@ Page({ res = res.data; if (res.code == "200") { that.setData({ - todoDb: res.data.todo+res.data.approveLZYJ, + todoDb: res.data.todo + res.data.approveLZYJ, approveDb: res.data.approve + res.data.zlCount, aq: res.data.aqCount }) diff --git a/miniprogram/pages/safety_manage/index.wxml b/miniprogram/pages/safety_manage/index.wxml index 491955a..a5fdd36 100644 --- a/miniprogram/pages/safety_manage/index.wxml +++ b/miniprogram/pages/safety_manage/index.wxml @@ -19,8 +19,8 @@ - - + + @@ -32,207 +32,175 @@ - - - - 教育培训({{trainTotal}}) - 查看详情 + + 教育培训 - 查看详情 + 查看详情 - + - --> - - - - 安全隐患排查 - 查看详情 + + + + + 安全隐患排查 + 查看详情 + - - - - 常规检查问题数 - - - 整改率 - {{securityCheck.routineRectificationRate}} % + + + + + 常规检查问题数 + + + 整改率 + {{securityCheck.routineRectificationRate}} % + + + + 已整改问题数 + {{securityCheck.routineProblemTotal}} - - - 已整改问题数 - {{securityCheck.routineProblemTotal}} - + + + + 专项检查问题数 + + + 整改率 + {{securityCheck.specialRectificationRate}} % + + + + 已整改问题数 + {{securityCheck.specialProblemTotal}} - - - 专项检查问题数 - - - 整改率 - {{securityCheck.specialRectificationRate}} % - - - - 已整改问题数 - {{securityCheck.specialProblemTotal}} - - - - - + + + - - - - 特种作业人员 - 查看详情 - - - - - - - - 项目保险 - 查看详情 - - - - - - - - - 在岗人员 - 查看详情 - - - - - - - - - 应急演练({{emergencyDrillTotal}}) - 查看详情 - - - - - - - - - - - + + + + 特种作业人员 + 查看详情 + + + + + + + + + + 项目保险 + 查看详情 + + + + + + + + + + + 在岗人员 + 查看详情 + + + + + + + + + + + 应急演练 + 查看详情 + + + + + - - - + + + 项目概况 - - + + 安全管理 {{aq}} - - + + 质量管理 {{approveDb}} - - - - - + + + + + 进度管理 - - + + 更多功能 {{todoDb}} - - - - + \ No newline at end of file diff --git a/project.config.json b/project.config.json index 67b3590..044cf06 100644 --- a/project.config.json +++ b/project.config.json @@ -277,7 +277,7 @@ "tabIndent": "auto", "tabSize": 4 }, - "libVersion": "2.12.0", + "libVersion": "3.5.1", "packOptions": { "ignore": [], "include": []