Ver código fonte

EOEG SAI - “不安全状态”/“不安全行为”Radio Button不显示问题
EOEG SAI - 测试中其它功能优化
上岗证/作业证书 - 岗位对应上岗证类型相关校验修改

wangggziwen 1 mês atrás
pai
commit
1030d36c59

+ 10 - 0
master/src/main/java/com/ruoyi/project/production/controller/vo/EoegSaiApplyQueryVO.java

@@ -134,6 +134,8 @@ public class EoegSaiApplyQueryVO extends BaseEntity {
     /** 不安全行为 */
     private Long unsafeAction;
 
+    private String unsafeChoice;
+
     /** 任务编号 */
     private String taskId;
 
@@ -161,6 +163,14 @@ public class EoegSaiApplyQueryVO extends BaseEntity {
     /** 备注(执行阶段) */
     private String remarksExecute;
 
+    public String getUnsafeChoice() {
+        return unsafeChoice;
+    }
+
+    public void setUnsafeChoice(String unsafeChoice) {
+        this.unsafeChoice = unsafeChoice;
+    }
+
     public String getTpmStatus() {
         return tpmStatus;
     }

+ 10 - 1
master/src/main/java/com/ruoyi/project/production/domain/TEoegSaiApply.java

@@ -7,7 +7,6 @@ import com.baomidou.mybatisplus.annotation.TableField;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.ruoyi.framework.aspectj.lang.annotation.Excel;
 import com.ruoyi.framework.web.domain.BaseEntity;
-import com.ruoyi.project.sems.domain.TApproverFile;
 import org.apache.commons.lang3.builder.ToStringBuilder;
 import org.apache.commons.lang3.builder.ToStringStyle;
 
@@ -121,6 +120,8 @@ public class TEoegSaiApply extends BaseEntity
     /** 不安全行为 */
     private Long unsafeAction;
 
+    private String unsafeChoice;
+
     /** 任务编号 */
     private String taskId;
 
@@ -148,6 +149,14 @@ public class TEoegSaiApply extends BaseEntity
     /** 备注(执行阶段) */
     private String remarksExecute;
 
+    public String getUnsafeChoice() {
+        return unsafeChoice;
+    }
+
+    public void setUnsafeChoice(String unsafeChoice) {
+        this.unsafeChoice = unsafeChoice;
+    }
+
     public String getTpmStatus() {
         return tpmStatus;
     }

+ 3 - 3
master/src/main/java/com/ruoyi/project/training/controller/TWorklicenseCertificateController.java

@@ -375,14 +375,14 @@ public class TWorklicenseCertificateController extends BaseController
             if ("1".equals(hotarea)) {
                 if (worklicenseCertificate.getContainer() == null
                         || worklicenseCertificate.getPipe() == null
-                        || worklicenseCertificate.getCrackingid() == null) {
+                        || worklicenseCertificate.getHydrogenation() == null) {
                     worklicenseCertificate.setIsHighlight(1);
                 }
             }
             if ("1".equals(coldarea)) {
                 if (worklicenseCertificate.getContainer() == null
                         || worklicenseCertificate.getPipe() == null
-                        || worklicenseCertificate.getCrackingid() == null
+                        || worklicenseCertificate.getHydrogenation() == null
                         || worklicenseCertificate.getRefrigeration() == null) {
                     worklicenseCertificate.setIsHighlight(1);
                 }
@@ -390,7 +390,7 @@ public class TWorklicenseCertificateController extends BaseController
             if ("1".equals(aromatic)) {
                 if (worklicenseCertificate.getContainer() == null
                         || worklicenseCertificate.getPipe() == null
-                        || worklicenseCertificate.getCrackingid() == null) {
+                        || worklicenseCertificate.getHydrogenation() == null) {
                     worklicenseCertificate.setIsHighlight(1);
                 }
             }

+ 7 - 1
master/src/main/resources/mybatis/production/TEoegSaiApplyMapper.xml

@@ -27,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="description"    column="description"    />
         <result property="unsafeStatus"    column="unsafe_status"    />
         <result property="unsafeAction"    column="unsafe_action"    />
+        <result property="unsafeChoice"    column="unsafe_choice"    />
         <result property="applyDate"    column="apply_date"    />
         <result property="taskId"    column="task_id"    />
         <result property="taskName"    column="task_name"    />
@@ -66,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         d.applicant, d.assessor, d.executor, d.inspectors, d.applicant_dept, d.applicant_team, d.description,
         d.unsafe_status, d.unsafe_action, d.apply_date, d.task_id, d.task_name,d.remarks, d.ve_item_other,
         d.handler, d.estimate_finish_date, d.actual_finish_date, d.reaction, d.ve_result,
-        d.sai_level, d.category, d.remarks_assess, d.remarks_execute, d.work_area, d.sai_type, d.tpm_status
+        d.sai_level, d.category, d.remarks_assess, d.remarks_execute, d.work_area, d.sai_type, d.tpm_status, d.unsafe_choice
         from t_eoeg_sai_apply d
         left join sys_dept s on s.dept_id = d.dept_id
     </sql>
@@ -80,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 and handler like concat(concat('%', #{currentUser}), '%')
                 and apply_status != 4
                 and apply_status != 5
+                and tpm_status != '现场已完成'
             </if>
             <if test="tab == 2">
                 and (handler like concat(concat('%', #{currentUser}), '%')
@@ -113,6 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="description != null  and description != ''"> and description like concat(concat('%', #{description}), '%') </if>
             <if test="unsafeStatus != null "> and unsafe_status = #{unsafeStatus}</if>
             <if test="unsafeAction != null "> and unsafe_action = #{unsafeAction}</if>
+            <if test="unsafeChoice != null "> and unsafe_choice = #{unsafeChoice}</if>
             <if test="applyDate != null "> and apply_date = #{applyDate}</if>
             <if test="taskId != null  and taskId != ''"> and task_id = #{taskId}</if>
             <if test="taskName != null  and taskName != ''"> and task_name like concat(concat('%', #{taskName}), '%')</if>
@@ -172,6 +175,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="description != null">description,</if>
             <if test="unsafeStatus != null">unsafe_status,</if>
             <if test="unsafeAction != null">unsafe_action,</if>
+            <if test="unsafeChoice != null">unsafe_choice,</if>
             <if test="applyDate != null">apply_date,</if>
             <if test="taskId != null">task_id,</if>
             <if test="taskName != null">task_name,</if>
@@ -210,6 +214,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="description != null">#{description},</if>
             <if test="unsafeStatus != null">#{unsafeStatus},</if>
             <if test="unsafeAction != null">#{unsafeAction},</if>
+            <if test="unsafeChoice != null">#{unsafeChoice},</if>
             <if test="applyDate != null">#{applyDate},</if>
             <if test="taskId != null">#{taskId},</if>
             <if test="taskName != null">#{taskName},</if>
@@ -253,6 +258,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="unsafeStatus == null">unsafe_status = null,</if>
             <if test="unsafeAction != null">unsafe_action = #{unsafeAction},</if>
             <if test="unsafeAction == null">unsafe_action = null,</if>
+            <if test="unsafeChoice != null">unsafe_choice = #{unsafeChoice},</if>
             <if test="applyDate != null">apply_date = #{applyDate},</if>
             <if test="taskId != null">task_id = #{taskId},</if>
             <if test="taskId == null">task_id = null,</if>

+ 10 - 10
ui/src/views/approve/approveDetail/eoeg-sai-apply-detail.vue

@@ -184,7 +184,7 @@
             </el-table>
           </el-descriptions-item>
           <el-descriptions-item label="隐患" :span="3" v-if="dataForm.saiType == 'SAI'">
-            <el-radio v-model="unsafeChoice" label="1" style="margin-right: 10px;" :disabled="applyDisabled" @change="handleUnsafeChoiceChange">不安全状态</el-radio>
+            <el-radio v-model="dataForm.unsafeChoice" label="1" style="margin-right: 10px;" :disabled="applyDisabled" @change="handleUnsafeChoiceChange">不安全状态</el-radio>
             <!--<el-form-item prop="unsafeStatus" style="display: inline-block;">-->
               <!--<el-select :disabled="applyDisabled" v-model="dataForm.unsafeStatus" placeholder="请选择不安全状态" style="margin-right: 20px;" clearable>-->
                 <!--<el-option-->
@@ -195,7 +195,7 @@
                 <!--&gt;</el-option>-->
               <!--</el-select>-->
             <!--</el-form-item>-->
-            <el-radio v-model="unsafeChoice" label="2" style="margin-right: 10px;" :disabled="applyDisabled" @change="handleUnsafeChoiceChange">不安全行为</el-radio>
+            <el-radio v-model="dataForm.unsafeChoice" label="2" style="margin-right: 10px;" :disabled="applyDisabled" @change="handleUnsafeChoiceChange">不安全行为</el-radio>
             <!--<el-form-item prop="unsafeAction" style="display: inline-block;">-->
               <!--<el-select :disabled="applyDisabled" v-model="dataForm.unsafeAction" placeholder="请选择不安全行为" clearable>-->
                 <!--<el-option-->
@@ -684,14 +684,14 @@ export default {
         // // 加载登记人列表
         this.listStaffmgrByDeptAndTeam('38', null);
         this.handleUnsafeChoiceChange();
-        if (this.dataForm.unsafeStatus != null && this.dataForm.unsafeStatus != "") {
-          this.unsafeChoice = '1';
-          this.dataForm.unsafeStatus = this.dataForm.unsafeStatus.toString();
-        }
-        if (this.dataForm.unsafeAction != null && this.dataForm.unsafeAction != "") {
-          this.unsafeChoice = '2';
-          this.dataForm.unsafeAction = this.dataForm.unsafeAction.toString();
-        }
+        // if (this.dataForm.unsafeStatus != null && this.dataForm.unsafeStatus != "") {
+        //   this.unsafeChoice = '1';
+        //   this.dataForm.unsafeStatus = this.dataForm.unsafeStatus.toString();
+        // }
+        // if (this.dataForm.unsafeAction != null && this.dataForm.unsafeAction != "") {
+        //   this.unsafeChoice = '2';
+        //   this.dataForm.unsafeAction = this.dataForm.unsafeAction.toString();
+        // }
         if (this.dataForm.category != null && this.dataForm.category != "") {
           this.dataForm.category = Number(this.dataForm.category);
         }

+ 2 - 3
ui/src/views/production/eoegapply/all/index.vue

@@ -273,7 +273,6 @@
             type="text"
             icon="el-icon-view"
             @click="handleDetail(scope.row)"
-            v-if="scope.row.applyStatus == 4 || scope.row.applyStatus == 5"
           >详情</el-button>
           <el-button
             size="mini"
@@ -451,7 +450,8 @@
             </el-form-item>
           </el-descriptions-item>
           <el-descriptions-item label="隐患" :span="3" v-if="form.saiType == 'SAI'">
-            <el-radio v-model="unsafeChoice" label="1" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全状态</el-radio>
+            <el-radio v-model="form.unsafeChoice" label="1" style="margin-right: 10px;">不安全状态</el-radio>
+            <el-radio v-model="form.unsafeChoice" label="2" style="margin-right: 10px;">不安全行为</el-radio>
             <!--<el-form-item prop="unsafeStatus" style="display: inline-block;">-->
               <!--<el-select v-model="form.unsafeStatus" filterable placeholder="请选择不安全状态" :disabled="unsafeStatusDisabled" style="margin-right: 20px;" clearable>-->
                 <!--<el-option-->
@@ -462,7 +462,6 @@
                 <!--&gt;</el-option>-->
               <!--</el-select>-->
             <!--</el-form-item>-->
-            <el-radio v-model="unsafeChoice" label="2" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全行为</el-radio>
             <!--<el-form-item prop="unsafeAction" style="display: inline-block;">-->
               <!--<el-select v-model="form.unsafeAction" filterable placeholder="请选择不安全行为" :disabled="unsafeActionDisabled" clearable>-->
                 <!--<el-option-->

+ 2 - 3
ui/src/views/production/eoegapply/mine/index.vue

@@ -266,7 +266,6 @@
             type="text"
             icon="el-icon-view"
             @click="handleDetail(scope.row)"
-            v-if="scope.row.applyStatus == 4 || scope.row.applyStatus == 5"
           >详情</el-button>
           <el-button
             size="mini"
@@ -444,7 +443,7 @@
             </el-form-item>
           </el-descriptions-item>
           <el-descriptions-item label="隐患" :span="3" v-if="form.saiType == 'SAI'">
-            <el-radio v-model="unsafeChoice" label="1" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全状态</el-radio>
+            <el-radio v-model="form.unsafeChoice" label="1" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全状态</el-radio>
             <!--<el-form-item prop="unsafeStatus" style="display: inline-block;">-->
               <!--<el-select v-model="form.unsafeStatus" filterable placeholder="请选择不安全状态" :disabled="unsafeStatusDisabled" style="margin-right: 20px;" clearable>-->
                 <!--<el-option-->
@@ -455,7 +454,7 @@
                 <!--&gt;</el-option>-->
               <!--</el-select>-->
             <!--</el-form-item>-->
-            <el-radio v-model="unsafeChoice" label="2" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全行为</el-radio>
+            <el-radio v-model="form.unsafeChoice" label="2" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全行为</el-radio>
             <!--<el-form-item prop="unsafeAction" style="display: inline-block;">-->
               <!--<el-select v-model="form.unsafeAction" filterable placeholder="请选择不安全行为" :disabled="unsafeActionDisabled" clearable>-->
                 <!--<el-option-->

+ 4 - 5
ui/src/views/production/eoegapply/pending/index.vue

@@ -188,8 +188,8 @@
       <el-table-column label="TPM状态" align="center" prop="tpmStatus" :show-overflow-tooltip="true" width="100">
         <template slot-scope="scope">
           <span v-if="scope.row.saiType=='TPM'">
-            <span v-if="scope.row.tpmStatus == '现场已完成'"><el-tag type="success">已完成</el-tag></span>
-            <span v-if="scope.row.tpmStatus == '现场未完成'"><el-tag type="info">未完成</el-tag></span>
+            <span v-if="scope.row.tpmStatus == '现场已完成'"><el-tag type="success">现场已完成</el-tag></span>
+            <span v-if="scope.row.tpmStatus == '现场未完成'"><el-tag type="info">现场未完成</el-tag></span>
           </span>
           <span v-if="scope.row.saiType=='SAI'">/</span>
         </template>
@@ -266,7 +266,6 @@
             type="text"
             icon="el-icon-view"
             @click="handleDetail(scope.row)"
-            v-if="scope.row.applyStatus == 4 || scope.row.applyStatus == 5"
           >详情</el-button>
           <el-button
             size="mini"
@@ -444,7 +443,7 @@
             </el-form-item>
           </el-descriptions-item>
           <el-descriptions-item label="隐患" :span="3" v-if="form.saiType == 'SAI'">
-            <el-radio v-model="unsafeChoice" label="1" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全状态</el-radio>
+            <el-radio v-model="form.unsafeChoice" label="1" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全状态</el-radio>
             <!--<el-form-item prop="unsafeStatus" style="display: inline-block;">-->
               <!--<el-select v-model="form.unsafeStatus" filterable placeholder="请选择不安全状态" :disabled="unsafeStatusDisabled" style="margin-right: 20px;" clearable>-->
                 <!--<el-option-->
@@ -455,7 +454,7 @@
                 <!--&gt;</el-option>-->
               <!--</el-select>-->
             <!--</el-form-item>-->
-            <el-radio v-model="unsafeChoice" label="2" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全行为</el-radio>
+            <el-radio v-model="form.unsafeChoice" label="2" @change="handleUnsafeChoiceChange" style="margin-right: 10px;">不安全行为</el-radio>
             <!--<el-form-item prop="unsafeAction" style="display: inline-block;">-->
               <!--<el-select v-model="form.unsafeAction" filterable placeholder="请选择不安全行为" :disabled="unsafeActionDisabled" clearable>-->
                 <!--<el-option-->