diff --git a/pages/application/gf-eight-work/high-work/home.vue b/pages/application/gf-eight-work/high-work/home.vue index d39954e..9e395b0 100644 --- a/pages/application/gf-eight-work/high-work/home.vue +++ b/pages/application/gf-eight-work/high-work/home.vue @@ -181,7 +181,6 @@ if ("success" == res.data.result) { _this.count = res.data.count; } - } }) }, diff --git a/pages/application/high-risk-work/home.vue b/pages/application/high-risk-work/home.vue index cd1a62e..14d2d1f 100644 --- a/pages/application/high-risk-work/home.vue +++ b/pages/application/high-risk-work/home.vue @@ -10,6 +10,12 @@ + {{ item.hotWorkCount }} + {{ item.hightWorkCount }} + {{ item.blindBoardCount }} + {{ item.HoistingCount }} + {{ item.confinedSpaceCount }} + {{ item.electricityCount }} {{ item.title }} @@ -22,51 +28,126 @@ diff --git a/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-alldetail.vue b/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-alldetail.vue index ae51c24..9ba82bb 100644 --- a/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-alldetail.vue @@ -454,7 +454,7 @@ - + 项目主管部门负责意见 diff --git a/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-detail.vue b/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-detail.vue index b5305b4..b39339e 100644 --- a/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-detail.vue @@ -101,10 +101,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{item.PROTECTIVE_MEASURES}} @@ -253,11 +255,11 @@ - - - 作业负责人意见 - - + + + 作业负责人意见 + + 作业负责人 @@ -267,10 +269,11 @@ - + + - 项目主管部门负责人意见 - + 项目主管部门负责意见 + @@ -281,26 +284,27 @@ - - - - 属地监管单位意见 - - - - - 属地监管单位负责人 - {{pd.LEADER_USER_NAME}} {{pd.LEADER_USER_SIGNER_TIME}} - - - - - + + + + 属地监管单位意见 + + + + + 属地监管单位负责人 + {{pd.LEADER_USER_NAME}} {{pd.LEADER_USER_SIGNER_TIME}} + + + + + + - - 安全管理部门意见 - - + + 安全管理部门意见 + + 安全管理部门负责人 @@ -312,10 +316,10 @@ - - 动火审批人意见 - - + + 动火审批人意见 + + 动火审批人 @@ -326,10 +330,10 @@ - - 动火前验票负责人意见 - - + + 动火前验票负责人意见 + + 动火前验票负责人 @@ -340,6 +344,27 @@ + + 动火已完成: + + + + + + + 作业现场已清理: + + + + + + + 无遗留火种: + + + + + 完工验收 @@ -382,735 +407,769 @@ diff --git a/pages/application/hotwork_cfd/hotwork-acceptconfess/hotwork-acceptconfess-detail.vue b/pages/application/hotwork_cfd/hotwork-acceptconfess/hotwork-acceptconfess-detail.vue index 815b8a1..244f590 100644 --- a/pages/application/hotwork_cfd/hotwork-acceptconfess/hotwork-acceptconfess-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-acceptconfess/hotwork-acceptconfess-detail.vue @@ -88,10 +88,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{item.PROTECTIVE_MEASURES}} diff --git a/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-alldetail.vue b/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-alldetail.vue index 53d7c51..9da69f4 100644 --- a/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-alldetail.vue @@ -446,7 +446,7 @@ - + 项目主管部门负责意见 diff --git a/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-detail.vue b/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-detail.vue index 46f55fe..e549ab6 100644 --- a/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-detail.vue @@ -107,10 +107,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{item.PROTECTIVE_MEASURES}} @@ -247,10 +249,10 @@ - - 作业负责人意见 - - + + 作业负责人意见 + + 作业负责人 @@ -260,11 +262,22 @@ - - - 属地监管单位意见 - - + + + + 项目主管部门负责意见 + + + + + 项目主管部门负责人 + {{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}} + + + + 属地监管单位意见 + + 属地监管单位负责人 @@ -275,10 +288,10 @@ - - 安全管理部门意见 - - + + 安全管理部门意见 + + 安全管理部门负责人 @@ -409,6 +422,20 @@ imgList:[], } }, + computed: { + formattedConfirmContent() { + return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意'; + }, + formattedExamineApprovalOpinions() { + return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意'; + }, + formattedLeaderContent() { + return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意'; + }, + formattedAuditContent() { + return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意'; + } + }, onLoad(event){ this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.pd.HOTWORK_ID = event.HOTWORK_ID; diff --git a/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-alldetail.vue b/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-alldetail.vue index 4f879ca..e236682 100644 --- a/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-alldetail.vue @@ -454,7 +454,7 @@ - + 项目主管部门负责意见 diff --git a/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-detail.vue b/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-detail.vue index 8f7ba0a..f3d7fe6 100644 --- a/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-detail.vue @@ -131,10 +131,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{item.PROTECTIVE_MEASURES}} @@ -269,10 +271,10 @@ - - 作业负责人意见 - - + + 作业负责人意见 + + @@ -295,11 +297,23 @@ - - - 属地监管单位意见 - - + + + + 项目主管部门负责意见 + + + + + 项目主管部门负责人 + {{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}} + + + + + 属地监管单位意见 + + @@ -313,7 +327,7 @@ - + 安全管理部门意见 @@ -432,6 +446,17 @@ imgList:[], } }, + computed: { + formattedConfirmContent() { + return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意'; + }, + formattedExamineApprovalOpinions() { + return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意'; + }, + formattedLeaderContent() { + return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意'; + } + }, onLoad(event){ this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.pd.HOTWORK_ID = event.HOTWORK_ID; diff --git a/pages/application/hotwork_cfd/hotwork-confess/hotwork-confess-detail.vue b/pages/application/hotwork_cfd/hotwork-confess/hotwork-confess-detail.vue index 289e240..082f76c 100644 --- a/pages/application/hotwork_cfd/hotwork-confess/hotwork-confess-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-confess/hotwork-confess-detail.vue @@ -131,10 +131,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{item.PROTECTIVE_MEASURES}} diff --git a/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-alldetail.vue b/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-alldetail.vue index 861643c..0fa6bc8 100644 --- a/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-alldetail.vue @@ -442,7 +442,7 @@ - + 项目主管部门负责意见 diff --git a/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-detail.vue b/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-detail.vue index ec275a2..2b1fadf 100644 --- a/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-detail.vue @@ -102,10 +102,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{item.PROTECTIVE_MEASURES}} diff --git a/pages/application/hotwork_cfd/hotwork-guardian/hotwork-guardian-detail.vue b/pages/application/hotwork_cfd/hotwork-guardian/hotwork-guardian-detail.vue index b1940e0..8033222 100644 --- a/pages/application/hotwork_cfd/hotwork-guardian/hotwork-guardian-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-guardian/hotwork-guardian-detail.vue @@ -107,10 +107,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{item.PROTECTIVE_MEASURES}} diff --git a/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-alldetail.vue b/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-alldetail.vue index 8053f0e..d9b4d2a 100644 --- a/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-alldetail.vue @@ -659,7 +659,7 @@ return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意'; }, formattedAuditContent() { - return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意'; + return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意'; }, formattedApproveContent() { return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意'; diff --git a/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-detail.vue b/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-detail.vue index 6868f17..1e6a20d 100644 --- a/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-detail.vue @@ -102,10 +102,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{item.PROTECTIVE_MEASURES}} @@ -264,10 +266,9 @@ - 作业负责人意见 - + @@ -278,9 +279,11 @@ - - 项目主管部门负责人意见 - + + + 项目主管部门负责意见 + + @@ -410,6 +413,14 @@ imgList:[], } }, + computed: { + formattedConfirmContent() { + return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意'; + }, + formattedExamineApprovalOpinions() { + return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意'; + } + }, onLoad(event){ this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.pd.HOTWORK_ID = event.HOTWORK_ID; diff --git a/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-alldetail.vue b/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-alldetail.vue index be85b84..286a428 100644 --- a/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-alldetail.vue @@ -136,10 +136,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{item.PROTECTIVE_MEASURES}} @@ -452,7 +454,7 @@ - + 项目主管部门负责意见 diff --git a/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-detail.vue b/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-detail.vue index ff380e5..d980720 100644 --- a/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-detail.vue @@ -262,10 +262,10 @@ - - 作业负责人意见 - - + + 作业负责人意见 + + 作业负责人 @@ -276,24 +276,23 @@ - - 项目主管部门负责人意见 - - - + + + + 项目主管部门负责意见 + + + 项目主管部门负责人 - {{pd.BELONGING_USER_NAME}} {{pd.BELONGING_SIGNATURE_TIME}} - - - + {{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}} - - - 属地监管单位意见 - - + + + 属地监管单位意见 + + 属地监管单位负责人 @@ -303,11 +302,12 @@ + - - 安全管理部门意见 - - + + 安全管理部门意见 + + 安全管理部门负责人 @@ -319,10 +319,10 @@ - - 动火审批意见 - - + + 动火审批人意见 + + 动火审批人 @@ -453,6 +453,23 @@ imgList:[], } }, + computed: { + formattedConfirmContent() { + return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意'; + }, + formattedExamineApprovalOpinions() { + return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意'; + }, + formattedLeaderContent() { + return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意'; + }, + formattedAuditContent() { + return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意'; + }, + formattedApproveContent() { + return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意'; + } + }, onLoad(event){ this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.pd.HOTWORK_ID = event.HOTWORK_ID; diff --git a/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-alldetail.vue b/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-alldetail.vue index 26fe6db..4151fee 100644 --- a/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-alldetail.vue @@ -446,7 +446,7 @@ - + 项目主管部门负责意见 @@ -659,7 +659,7 @@ return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意'; }, formattedAuditContent() { - return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意'; + return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意'; }, formattedApproveContent() { return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意'; diff --git a/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-detail.vue b/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-detail.vue index 2b5bc41..6b8f499 100644 --- a/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-detail.vue @@ -102,10 +102,12 @@ + 序 号 主要安全措施 操作 + {{ index + 1 }} {{ item.PROTECTIVE_MEASURES }} @@ -274,7 +276,7 @@ 作业负责人意见 - + @@ -409,6 +411,11 @@ export default { imgList: [], } }, + computed: { + formattedConfirmContent() { + return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意'; + } + }, onLoad(event) { this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.pd.HOTWORK_ID = event.HOTWORK_ID; diff --git a/pages/basics/home.vue b/pages/basics/home.vue index 63e4ff8..2063235 100644 --- a/pages/basics/home.vue +++ b/pages/basics/home.vue @@ -20,6 +20,7 @@ + {{ totalUnreadCount }} {{ item.title }} @@ -274,6 +275,7 @@ mixins: [MescrollMixin], // 使用mixin (在main.js注册全局组件) data() { return { + totalUnreadCount: 0, girdList:[ { title:'基本资料', @@ -398,6 +400,7 @@ this.getData() this.getHiddenData() this.getSafetyEnvironmentalCount() + this.getSumCount(); // this.getListData() console.info(loginUser) // this._freshing = false; @@ -603,6 +606,42 @@ // } // }); }, + async getSumCount() { + const hotWorkCount = await this.getCount('/app/hotwork/cfd/countCheck'); + const highWorkCount = await this.getCount('/app/gfHighwork/countCheck'); + const blindBoardCount = await this.getCount('/app/gfBlindBoard/countCheck'); + const hoistingCount = await this.getCount('/app/gfHoisting/countCheck'); + const confinedSpaceCount = await this.getCount('/app/gfConfinedSpace/countCheck'); + const electricityCount = await this.getCount('/app/gfElectricity/countCheck'); + + this.totalUnreadCount = hotWorkCount + highWorkCount + blindBoardCount + hoistingCount + confinedSpaceCount + electricityCount; + }, + getCount(url) { + return new Promise((resolve, reject) => { + uni.request({ + url: basePath + url, + method: 'POST', + dataType: 'json', + header: { 'Content-type': 'application/x-www-form-urlencoded' }, + data: { + tm: new Date().getTime(), + CORPINFO_ID: loginUser.CORPINFO_ID, + USER_ID: loginUser.USER_ID, + }, + success: (res) => { + if (res.data.result === "success") { + resolve(res.data.count.SUMCOUNT || 0); + } else { + resolve(0); + } + }, + fail: (err) => { + console.error(err); + resolve(0); + }, + }); + }); + }, // 隐患播报 getHiddenData() { return new Promise((resolve, reject) => { @@ -812,17 +851,17 @@