From 63b5d07ef6b68052f5f76a8830d5ae99923f48f9 Mon Sep 17 00:00:00 2001 From: fangjiakai <450850793@qq.com> Date: Wed, 24 Jan 2024 17:23:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E7=81=AB=E5=AE=89=E5=85=A8=E6=8E=AA?= =?UTF-8?q?=E6=96=BD=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hotwork-apply/hotwork-apply-detail.vue | 1334 +++++++++-------- .../hotwork/hotwork-detail/index.vue | 613 ++++++++ 2 files changed, 1327 insertions(+), 620 deletions(-) create mode 100644 pages/application/hotwork/hotwork-detail/index.vue diff --git a/pages/application/hotwork/hotwork-apply/hotwork-apply-detail.vue b/pages/application/hotwork/hotwork-apply/hotwork-apply-detail.vue index 0fb0812..9c8725e 100644 --- a/pages/application/hotwork/hotwork-apply/hotwork-apply-detail.vue +++ b/pages/application/hotwork/hotwork-apply/hotwork-apply-detail.vue @@ -5,618 +5,655 @@ 动火安全作业申请 - - - - 申请单位: - {{pd.APPLY_DEPARTMENT_NAME}} - + + + + 申请单位: + {{pd.APPLY_DEPARTMENT_NAME}} + - - 申请人: - {{pd.APPLY_USER_NAME}} - + + 申请人: + {{pd.APPLY_USER_NAME}} + - - 编号: - {{pd.CHECK_NO}} - + + 编号: + {{pd.CHECK_NO}} + - - 作业内容: - - + + 作业内容: + + - - 动火地点及动火部位: - - + + 动火地点及动火部位: + + - - 动火作业级别: - - - {{pd.WORK_LEVEL?pd.WORK_LEVEL:'请选择'}} - - - {{pd.WORK_LEVEL}} - + + 动火作业级别: + + + {{pd.WORK_LEVEL?pd.WORK_LEVEL:'请选择'}} + + + {{pd.WORK_LEVEL}} + - - 动火方式: - - + + 动火方式: + + - - - 动火作业 - 实施时间: - - - {{pd.WORK_START_DATE}} - - {{pd.WORK_END_DATE?pd.WORK_END_DATE : '--'}} - - - - - - 动火人及证书编号: - - - - 请选择 - - - - - - - - - - 关联的其他特殊作业及安全作业票编号 - - - - - - - - 风险辨识结果 - - - - - - - 分析人: - {{pd.ANALYZE_USER_NAME}} - - - - - - - - 安全防护措施 - - - - - - 主要安全措施 - 操作 - - - - - {{item.PROTECTIVE_MEASURES}} - - - {{item.QUESTION1}} - - - - {{item.QUESTION2}} - - - - {{item.QUESTION3}} - - - - {{item.QUESTION4}} - - - - - - - - 不涉及 - - - - 涉    及 - - - - - - - - - 其他安全措施: - - - - 作业单位: - {{ pd.CONFIRM_USER_MEASURES}} - - - - - - - - - 车间: - {{ pd.LEADER_USER_MEASURES}} - - - - 安全管理部门: - {{ pd.AUDIT_USER_MEASURES}} - - - - 审批人: - {{ pd.APPROVE_USER_MEASURES}} - - - - 班长: - {{ pd.MONITOR_USER_MEASURES}} - - - - - - - - - 监护人 - {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}} - - - - - - - - - - 安全交底人 - {{pd.CONFESS_USER_NAME}} {{pd.CONFESS_USER_SIGNER_TIME}} - - - - - - - - - - 接受交底人 - {{pd.ACCEPT_CONFESS_USER_NAME}} {{pd.ACCEPT_CONFESS_USER_SIGNER_TIME}} - - - - - {{item.ACCEPT_CONFESS_USER_SIGNER_TIME}} - - - - - - - - 分析单位 - - {{pd.ANALYZE_DEPARTMENT_NAME?pd.ANALYZE_DEPARTMENT_NAME:'请选择'}} - - - - - 分析单位负责人 - - - {{pd.ANALYZE_USER_NAME?pd.ANALYZE_USER_NAME:'请选择'}} - - - - - - - 监护人单位 - - {{pd.GUARDIAN_DEPARTMENT_NAME?pd.GUARDIAN_DEPARTMENT_NAME:'请选择'}} - - - - - 监护人 - - - {{pd.GUARDIAN_USER_NAME?pd.GUARDIAN_USER_NAME:'请选择'}} - - - - - - - 安全交底人单位 - - {{pd.CONFESS_DEPARTMENT_NAME?pd.CONFESS_DEPARTMENT_NAME:'请选择'}} - - - - - 安全交底人 - - - {{pd.CONFESS_USER_NAME?pd.CONFESS_USER_NAME:'请选择'}} - - - - - - - 接受交底人单位 - - {{pd.ACCEPT_CONFESS_DEPARTMENT_NAME?pd.ACCEPT_CONFESS_DEPARTMENT_NAME:'请选择'}} - - - - - 接受交底人 - - - {{pd.ACCEPT_CONFESS_USER_NAME?pd.ACCEPT_CONFESS_USER_NAME:'请选择'}} - - - - - - - 作业负责人单位 - - {{pd.CONFIRM_DEPARTMENT_NAME?pd.CONFIRM_DEPARTMENT_NAME:'请选择'}} - - - - - 作业负责人 - - - {{pd.CONFIRM_USER_NAME?pd.CONFIRM_USER_NAME:'请选择'}} - - - - - - - 所在单位 - - {{pd.LEADER_DEPARTMENT_NAME?pd.LEADER_DEPARTMENT_NAME:'请选择'}} + + + 动火作业 + 实施时间: - - - - 所在单位负责人 - - - {{pd.LEADER_USER_NAME?pd.LEADER_USER_NAME:'请选择'}} - - - - - - - 安全管理部门 - - {{pd.AUDIT_DEPARTMENT_NAME?pd.AUDIT_DEPARTMENT_NAME:'请选择'}} - - - - - 安全管理部门负责人 - - - {{pd.AUDIT_USER_NAME?pd.AUDIT_USER_NAME:'请选择'}} - - - - - - - 动火审批单位 - - {{pd.APPROVE_DEPARTMENT_NAME?pd.APPROVE_DEPARTMENT_NAME:'请选择'}} - - - - - 动火审批负责人 - - - {{pd.APPROVE_USER_NAME?pd.APPROVE_USER_NAME:'请选择'}} - - - - - - - 动火前在岗部门 - - {{pd.MONITOR_DEPARTMENT_NAME?pd.MONITOR_DEPARTMENT_NAME:'请选择'}} - - - - - 动火前在岗班长 - - - {{pd.MONITOR_USER_NAME?pd.MONITOR_USER_NAME:'请选择'}} - - - - + + {{pd.WORK_START_DATE}} + + {{pd.WORK_END_DATE?pd.WORK_END_DATE : '--'}} + + - - - 作业开始负责人单位 - - {{pd.WORK_START_DEPARTMENT_NAME?pd.WORK_START_DEPARTMENT_NAME:'请选择'}} - - - - - 作业开始负责人 - - - {{pd.WORK_START_USER_NAME?pd.WORK_START_USER_NAME:'请选择'}} - - - - - - - 作业结束负责人单位 - - {{pd.WORK_END_DEPARTMENT_NAME?pd.WORK_END_DEPARTMENT_NAME:'请选择'}} - - - - - 作业结束负责人 - - - {{pd.WORK_END_USER_NAME?pd.WORK_END_USER_NAME:'请选择'}} - - - - - - - 验收部门 - - {{pd.ACCEPT_DEPARTMENT_NAME?pd.ACCEPT_DEPARTMENT_NAME:'请选择'}} - - - - - 验收部门负责人 - - - {{pd.ACCEPT_USER_NAME?pd.ACCEPT_USER_NAME:'请选择'}} - - - - + + + 动火人及证书编号: + + + + 请选择 + + + + + + - - - - 作业负责人意见 - - - - - 作业负责人 - {{pd.CONFIRM_USER_NAME}} {{pd.CONFIRM_USER_SIGNER_TIME}} - - - - - - - - - 所在单位意见 - - - - - 所在单位负责人 - {{pd.LEADER_USER_NAME}} {{pd.LEADER_USER_SIGNER_TIME}} - - - - - - - - - 安全管理部门意见 - - + + + 关联的其他特殊作业及安全作业票编号 + + + + - - - 安全管理部门负责人 - {{pd.AUDIT_USER_NAME}} {{pd.AUDIT_USER_SIGNER_TIME}} - - - - - - - - - 动火审批人意见 - - + + + 风险辨识结果 + + + + + + + 分析人: + {{pd.ANALYZE_USER_NAME}} + + + + - - - 动火审批人 - {{pd.APPROVE_USER_NAME}} {{pd.APPROVE_USER_SIGNER_TIME}} - - - - - - - - - 动火前在岗班长意见 - - + + + 安全防护措施 + + + + + + 主要安全措施 + 操作 + + + + + {{item.PROTECTIVE_MEASURES}} + + + + {{item.SIGN_TIME}} + + + + + {{item.QUESTION1}} + + + + {{item.QUESTION2}} + + + + {{item.QUESTION3}} + + + + {{item.QUESTION4}} + + + + + + 不涉及 + + + 涉    及 + + + + + + + + + + + - - - 动火前在岗班长 - {{pd.MONITOR_USER_NAME}} {{pd.MONITOR_USER_SIGNER_TIME}} - - - - - - - - - - 作业开始负责人 - {{pd.WORK_START_USER_NAME}} {{pd.WORK_START_USER_SIGNER_TIME}} - - - - - - - + + + 其他安全防护措施 + + + + + 其他安全措施 + 签字 + + + + + {{item.DESCR}} + + + + + + + + + + + - - - 作业结束负责人 - {{pd.WORK_END_USER_NAME}} {{pd.WORK_END_USER_SIGNER_TIME}} - - - - - - - - - 完工验收 - - - - - 验收部门负责人 - {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - - - {{item.ACCEPT_USER_SIGNER_TIME}} - - - - - - - - - - - - - + + + 分析单位 + + {{pd.ANALYZE_DEPARTMENT_NAME?pd.ANALYZE_DEPARTMENT_NAME:'请选择'}} + + + + + 分析单位负责人 + + + {{pd.ANALYZE_USER_NAME?pd.ANALYZE_USER_NAME:'请选择'}} + + + + + + + 监护人单位 + + {{pd.GUARDIAN_DEPARTMENT_NAME?pd.GUARDIAN_DEPARTMENT_NAME:'请选择'}} + + + + + 监护人 + + + {{pd.GUARDIAN_USER_NAME?pd.GUARDIAN_USER_NAME:'请选择'}} + + + + + + + 安全交底人单位 + + {{pd.CONFESS_DEPARTMENT_NAME?pd.CONFESS_DEPARTMENT_NAME:'请选择'}} + + + + + 安全交底人 + + + {{pd.CONFESS_USER_NAME?pd.CONFESS_USER_NAME:'请选择'}} + + + + + + + 接受交底人单位 + + {{pd.ACCEPT_CONFESS_DEPARTMENT_NAME?pd.ACCEPT_CONFESS_DEPARTMENT_NAME:'请选择'}} + + + + + 接受交底人 + + + {{pd.ACCEPT_CONFESS_USER_NAME?pd.ACCEPT_CONFESS_USER_NAME:'请选择'}} + + + + + + + 作业负责人单位 + + {{pd.CONFIRM_DEPARTMENT_NAME?pd.CONFIRM_DEPARTMENT_NAME:'请选择'}} + + + + + 作业负责人 + + + {{pd.CONFIRM_USER_NAME?pd.CONFIRM_USER_NAME:'请选择'}} + + + + + + + 所在单位 + + {{pd.LEADER_DEPARTMENT_NAME?pd.LEADER_DEPARTMENT_NAME:'请选择'}} + + + + + 所在单位负责人 + + + {{pd.LEADER_USER_NAME?pd.LEADER_USER_NAME:'请选择'}} + + + + + + + 安全管理部门 + + {{pd.AUDIT_DEPARTMENT_NAME?pd.AUDIT_DEPARTMENT_NAME:'请选择'}} + + + + + 安全管理部门负责人 + + + {{pd.AUDIT_USER_NAME?pd.AUDIT_USER_NAME:'请选择'}} + + + + + + + 动火审批单位 + + {{pd.APPROVE_DEPARTMENT_NAME?pd.APPROVE_DEPARTMENT_NAME:'请选择'}} + + + + + 动火审批负责人 + + + {{pd.APPROVE_USER_NAME?pd.APPROVE_USER_NAME:'请选择'}} + + + + + + + 动火前在岗部门 + + {{pd.MONITOR_DEPARTMENT_NAME?pd.MONITOR_DEPARTMENT_NAME:'请选择'}} + + + + + 动火前在岗班长 + + + {{pd.MONITOR_USER_NAME?pd.MONITOR_USER_NAME:'请选择'}} + + + + + + + + 作业开始负责人单位 + + {{pd.WORK_START_DEPARTMENT_NAME?pd.WORK_START_DEPARTMENT_NAME:'请选择'}} + + + + + 作业开始负责人 + + + {{pd.WORK_START_USER_NAME?pd.WORK_START_USER_NAME:'请选择'}} + + + + + + + 作业结束负责人单位 + + {{pd.WORK_END_DEPARTMENT_NAME?pd.WORK_END_DEPARTMENT_NAME:'请选择'}} + + + + + 作业结束负责人 + + + {{pd.WORK_END_USER_NAME?pd.WORK_END_USER_NAME:'请选择'}} + + + + + + + 验收部门 + + {{pd.ACCEPT_DEPARTMENT_NAME?pd.ACCEPT_DEPARTMENT_NAME:'请选择'}} + + + + + 验收部门负责人 + + + {{pd.ACCEPT_USER_NAME?pd.ACCEPT_USER_NAME:'请选择'}} + + + + + + + + + + 监护人 + {{pd.GUARDIAN_USER_NAME}} + + + + + {{signs.GUARDIAN[0].SIGN_TIME[index]}} + + + + + + + + 安全交底人 + {{pd.CONFESS_USER_NAME}} + + + + + {{signs.CONFESS[0].SIGN_TIME[index]}} + + + + + + + + 接受交底人 + {{pd.ACCEPT_CONFESS_USER_NAME}} + + + + + {{signs.ACCEPT_CONFESS[0].SIGN_TIME[index]}} + + + + + + + + + + 作业负责人意见 + + + + + 作业负责人 + {{pd.CONFIRM_USER_NAME}} + + + + + {{signs.CONFIRM[0].SIGN_TIME[index]}} + + + + + + + 所在单位意见 + + + + + 所在单位负责人 + {{pd.LEADER_USER_NAME}} + + + + + {{signs.LEADER[0].SIGN_TIME[index]}} + + + + + + + 安全管理部门意见 + + + + + 安全管理部门负责人 + {{pd.AUDIT_USER_NAME}} + + + + + {{signs.AUDIT[0].SIGN_TIME[index]}} + + + + + + + + 动火审批人意见 + + + + + 动火审批人 + {{pd.APPROVE_USER_NAME}} + + + + + {{signs.APPROVE[0].SIGN_TIME[index]}} + + + + + + + + 动火前在岗班长意见 + + + + + 动火前在岗班长 + {{pd.MONITOR_USER_NAME}} + + + + + {{signs.MONITOR[0].SIGN_TIME[index]}} + + + + + + + + 作业开始负责人 + {{pd.WORK_START_USER_NAME}} + + + + + {{signs.WORK_START[0].SIGN_TIME[index]}} + + + + + + + + + 作业结束负责人 + {{pd.WORK_END_USER_NAME}} + + + + + {{signs.WORK_END[0].SIGN_TIME[index]}} + + + + + + + 完工验收 + + + + + 验收部门负责人 + {{pd.ACCEPT_USER_NAME}} + + + + + {{signs.ACCEPT[0].SIGN_TIME[index]}} + + + + + + + + + + + + + @@ -669,19 +706,18 @@ confirmindex:-1, guardianUserList:[], guardianindex:-1, - leaderUserList:[], - leaderindex:-1, + leaderUserList:[], + leaderindex:-1, auditUserList:[], auditindex:-1, approveUserList:[], approveindex:-1, - monitorUserList:[], - monitorindex:-1, - acceptUserList:[], + monitorUserList:[], + monitorindex:-1, + acceptUserList:[], acceptindex:-1, - pd:{ - OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;' - },// 数据 + pd:{},// 数据 + signs:{}, measuresList:[], rules:[ // {name:'CHECK_NO',message:'请输入编号'}, @@ -783,21 +819,22 @@ if ("success" == res.data.result) { uni.hideLoading(); _this.pd = res.data.pd; //参数map - if(_this.pd.STEP_ID == 0){ + if(_this.pd.STEP_ID === 0){ _this.forbidEdit = false; - } - this.getUserList(this.pd.ANALYZE_DEPARTMENT_ID,'analyzeUserList'); - this.getUserList(this.pd.CONFIRM_DEPARTMENT_ID,'confirmUserList'); - this.getUserList(this.pd.LEADER_DEPARTMENT_ID,'leaderUserList'); - this.getUserList(this.pd.AUDIT_DEPARTMENT_ID,'auditUserList'); - this.getUserList(this.pd.APPROVE_DEPARTMENT_ID,'approveUserList'); - this.getUserList(this.pd.MONITOR_DEPARTMENT_ID,'monitorUserList'); - this.getUserList(this.pd.ACCEPT_DEPARTMENT_ID,'acceptUserList'); - this.getUserList(this.pd.WORK_START_DEPARTMENT_ID,'workstartUserList'); - this.getUserList(this.pd.WORK_END_DEPARTMENT_ID,'workendUserList'); - this.getWorkUserList(); - - + this.getUserList(this.pd.ANALYZE_DEPARTMENT_ID,'analyzeUserList'); + this.getUserList(this.pd.CONFIRM_DEPARTMENT_ID,'confirmUserList'); + this.getUserList(this.pd.LEADER_DEPARTMENT_ID,'leaderUserList'); + this.getUserList(this.pd.AUDIT_DEPARTMENT_ID,'auditUserList'); + this.getUserList(this.pd.APPROVE_DEPARTMENT_ID,'approveUserList'); + this.getUserList(this.pd.MONITOR_DEPARTMENT_ID,'monitorUserList'); + this.getUserList(this.pd.ACCEPT_DEPARTMENT_ID,'acceptUserList'); + this.getUserList(this.pd.WORK_START_DEPARTMENT_ID,'workstartUserList'); + this.getUserList(this.pd.WORK_END_DEPARTMENT_ID,'workendUserList'); + this.getWorkUserList(); + }else{ + this.getSigns() + this.getMeasures() + } } else if ("exception" == data.result) { uni.showToast({ title: '错误', @@ -807,6 +844,63 @@ } }); }, + + getSigns(){ + var _this = this; + uni.showLoading({ + title: '请稍候' + }) + uni.request({ + url: basePath + '/app/hotwork/listSignFinished', + method: 'POST', + header: { + 'Content-type': 'application/x-www-form-urlencoded' + }, + data: { + HOTWORK_ID: _this.pd.HOTWORK_ID, + }, + success: (res) => { + if ("success" == res.data.result) { + uni.hideLoading(); + _this.signs = res.data.signs; //参数map + } else if ("exception" == data.result) { + uni.showToast({ + title: '错误', + duration: 2000 + }); + } + } + }); + }, + + getMeasures(){ + var _this = this; + uni.showLoading({ + title: '请稍候' + }) + uni.request({ + url: basePath + '/app/hotwork/listSignFinishMeasures', + method: 'POST', + header: { + 'Content-type': 'application/x-www-form-urlencoded' + }, + data: { + HOTWORK_ID: _this.pd.HOTWORK_ID, + }, + success: (res) => { + if ("success" == res.data.result) { + uni.hideLoading(); + _this.measuresList = res.data.finishMeasuresList; //参数map + } else if ("exception" == data.result) { + uni.showToast({ + title: '错误', + duration: 2000 + }); + } + } + }); + }, + ViewShowImage(url) { let files = []; files.push(url) diff --git a/pages/application/hotwork/hotwork-detail/index.vue b/pages/application/hotwork/hotwork-detail/index.vue new file mode 100644 index 0000000..526d209 --- /dev/null +++ b/pages/application/hotwork/hotwork-detail/index.vue @@ -0,0 +1,613 @@ + + + + +