Commit 8458df71 authored by 王晓倩's avatar 王晓倩

Merge remote-tracking branch 'origin/master'

parents a52fe9d6 97c556be
...@@ -6,10 +6,10 @@ import com.zehong.common.annotation.Excel; ...@@ -6,10 +6,10 @@ import com.zehong.common.annotation.Excel;
import com.zehong.common.core.domain.BaseEntity; import com.zehong.common.core.domain.BaseEntity;
/** /**
* 【请填写功能名称】对象 t_risk_manager * 风险信息对象 t_risk_manager
* *
* @author zehong * @author zehong
* @date 2022-07-01 * @date 2022-11-24
*/ */
public class TRiskManager extends BaseEntity public class TRiskManager extends BaseEntity
{ {
...@@ -40,81 +40,81 @@ public class TRiskManager extends BaseEntity ...@@ -40,81 +40,81 @@ public class TRiskManager extends BaseEntity
/** 责任部门 */ /** 责任部门 */
@Excel(name = "责任部门") @Excel(name = "责任部门")
private int riskDept; private Long riskDept;
/** 责任人 */ /** 责任人 */
@Excel(name = "责任人") @Excel(name = "责任人")
private String riskPerson; private String riskPerson;
public void setId(Long id) public void setId(Long id)
{ {
this.id = id; this.id = id;
} }
public Long getId() public Long getId()
{ {
return id; return id;
} }
public void setRiskPart(String riskPart) public void setRiskPart(String riskPart)
{ {
this.riskPart = riskPart; this.riskPart = riskPart;
} }
public String getRiskPart() public String getRiskPart()
{ {
return riskPart; return riskPart;
} }
public void setRiskContent(String riskContent) public void setRiskContent(String riskContent)
{ {
this.riskContent = riskContent; this.riskContent = riskContent;
} }
public String getRiskContent() public String getRiskContent()
{ {
return riskContent; return riskContent;
} }
public void setRiskLevel(String riskLevel) public void setRiskLevel(String riskLevel)
{ {
this.riskLevel = riskLevel; this.riskLevel = riskLevel;
} }
public String getRiskLevel() public String getRiskLevel()
{ {
return riskLevel; return riskLevel;
} }
public void setRiskType(String riskType) public void setRiskType(String riskType)
{ {
this.riskType = riskType; this.riskType = riskType;
} }
public String getRiskType() public String getRiskType()
{ {
return riskType; return riskType;
} }
public void setRiskControl(String riskControl) public void setRiskControl(String riskControl)
{ {
this.riskControl = riskControl; this.riskControl = riskControl;
} }
public String getRiskControl() public String getRiskControl()
{ {
return riskControl; return riskControl;
} }
public void setRiskDept(int riskDept) public void setRiskDept(Long riskDept)
{ {
this.riskDept = riskDept; this.riskDept = riskDept;
} }
public int getRiskDept() public Long getRiskDept()
{ {
return riskDept; return riskDept;
} }
public void setRiskPerson(String riskPerson) public void setRiskPerson(String riskPerson)
{ {
this.riskPerson = riskPerson; this.riskPerson = riskPerson;
} }
public String getRiskPerson() public String getRiskPerson()
{ {
return riskPerson; return riskPerson;
} }
...@@ -122,14 +122,14 @@ public class TRiskManager extends BaseEntity ...@@ -122,14 +122,14 @@ public class TRiskManager extends BaseEntity
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId()) .append("id", getId())
.append("riskPart", getRiskPart()) .append("riskPart", getRiskPart())
.append("riskContent", getRiskContent()) .append("riskContent", getRiskContent())
.append("riskLevel", getRiskLevel()) .append("riskLevel", getRiskLevel())
.append("riskType", getRiskType()) .append("riskType", getRiskType())
.append("riskControl", getRiskControl()) .append("riskControl", getRiskControl())
.append("riskDept", getRiskDept()) .append("riskDept", getRiskDept())
.append("riskPerson", getRiskPerson()) .append("riskPerson", getRiskPerson())
.toString(); .toString();
} }
} }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.TRiskManagerMapper"> <mapper namespace="com.zehong.system.mapper.TRiskManagerMapper">
<resultMap type="TRiskManager" id="TRiskManagerResult"> <resultMap type="TRiskManager" id="TRiskManagerResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="riskPart" column="risk_part" /> <result property="riskPart" column="risk_part" />
...@@ -21,22 +21,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -21,22 +21,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectTRiskManagerList" parameterType="TRiskManager" resultMap="TRiskManagerResult"> <select id="selectTRiskManagerList" parameterType="TRiskManager" resultMap="TRiskManagerResult">
<include refid="selectTRiskManagerVo"/> <include refid="selectTRiskManagerVo"/>
<where> <where>
<if test="riskPart != null and riskPart != ''"> and risk_part = #{riskPart}</if> <if test="riskPart != null and riskPart != ''"> and risk_part LIKE concat('%',#{riskPart},'%')</if>
<if test="riskContent != null and riskContent != ''"> and risk_content = #{riskContent}</if> <if test="riskContent != null and riskContent != ''"> and risk_content = #{riskContent}</if>
<if test="riskLevel != null and riskLevel != ''"> and risk_level = #{riskLevel}</if> <if test="riskLevel != null and riskLevel != ''"> and risk_level = #{riskLevel}</if>
<if test="riskType != null and riskType != ''"> and risk_type = #{riskType}</if> <if test="riskType != null and riskType != ''"> and risk_type = #{riskType}</if>
<if test="riskControl != null and riskControl != ''"> and risk_control = #{riskControl}</if> <if test="riskControl != null and riskControl != ''"> and risk_control = #{riskControl}</if>
<if test="riskDept != null and riskDept != ''"> and risk_dept = #{riskDept}</if> <if test="riskDept != null"> and risk_dept = #{riskDept}</if>
<if test="riskPerson != null and riskPerson != ''"> and risk_person = #{riskPerson}</if> <if test="riskPerson != null and riskPerson != ''"> and risk_person = #{riskPerson}</if>
</where> </where>
</select> </select>
<select id="selectTRiskManagerById" parameterType="Long" resultMap="TRiskManagerResult"> <select id="selectTRiskManagerById" parameterType="Long" resultMap="TRiskManagerResult">
<include refid="selectTRiskManagerVo"/> <include refid="selectTRiskManagerVo"/>
where id = #{id} where id = #{id}
</select> </select>
<insert id="insertTRiskManager" parameterType="TRiskManager" useGeneratedKeys="true" keyProperty="id"> <insert id="insertTRiskManager" parameterType="TRiskManager" useGeneratedKeys="true" keyProperty="id">
insert into t_risk_manager insert into t_risk_manager
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
...@@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -78,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deleteTRiskManagerByIds" parameterType="String"> <delete id="deleteTRiskManagerByIds" parameterType="String">
delete from t_risk_manager where id in delete from t_risk_manager where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
......
...@@ -63,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -63,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND date_format(t.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d') AND date_format(t.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if> </if>
</where> </where>
group by t.user_id desc
</select> </select>
<select id="selectTStaffById" parameterType="Long" resultMap="TStaffResult"> <select id="selectTStaffById" parameterType="Long" resultMap="TStaffResult">
......
...@@ -50,17 +50,18 @@ ...@@ -50,17 +50,18 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td rowspan="4" colspan="2">批准人填写</td> <td rowspan="3" colspan="2">批准人填写</td>
<td rowspan="4" colspan="2">许可证</td> <td rowspan="3" colspan="2">许可证</td>
<td colspan="6" style="text-align: left">是否需要进一步的JSA: <input disabled type="checkbox" v-model="licenceInfo.jsa.yes"/><input type="checkbox" disabled v-model="licenceInfo.jsa.no"/>是 JSA[<input class="editInput" disabled v-model="licenceInfo.jsa.num" style="width: 250px" placeholder="填写JSA编号"/>]</td> <td colspan="6" style="text-align: left">是否需要进一步的JSA: <input disabled type="checkbox" v-model="licenceInfo.jsa.yes"/><input type="checkbox" disabled v-model="licenceInfo.jsa.no"/>是 JSA[<input class="editInput" disabled v-model="licenceInfo.jsa.num" style="width: 250px" placeholder="填写JSA编号"/>]</td>
</tr> </tr>
<tr> <!--<tr>
<td colspan="6" style="text-align: left"><input disabled type="checkbox" v-model="licenceInfo.specialLicence"/>0无需特殊工作许可</td> <td colspan="6" style="text-align: left"><input disabled type="checkbox" v-model="licenceInfo.specialLicence"/>0无需特殊工作许可</td>
</tr> </tr>-->
<tr> <tr>
<td colspan="6" style="text-align: left"> <td colspan="6" style="text-align: left">
<div><input type="checkbox" disabled v-model="licenceInfo.lockListing.isChecked"/>1-1锁定挂牌记录表 [<input class="editInput" disabled v-model="licenceInfo.lockListing.num" style="width: 250px" placeholder="填写编号"/>]</div> <!--<div><input type="checkbox" disabled v-model="licenceInfo.lockListing.isChecked"/>1-1锁定挂牌记录表 [<input class="editInput" disabled v-model="licenceInfo.lockListing.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" disabled v-model="licenceInfo.blindPlate.isChecked"/>1-2盲板抽堵作业许可 [<input class="editInput" disabled v-model="licenceInfo.blindPlate.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" disabled v-model="licenceInfo.blindPlate.isChecked"/>1-2盲板抽堵作业许可 [<input class="editInput" disabled v-model="licenceInfo.blindPlate.num" style="width: 250px" placeholder="填写编号"/>]</div>-->
<input type="checkbox" disabled v-model="licenceInfo.blindPlate.isChecked"/>1盲板抽堵作业许可 [<input class="editInput" disabled v-model="licenceInfo.blindPlate.num" style="width: 250px" placeholder="填写编号"/>]
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -68,10 +69,10 @@ ...@@ -68,10 +69,10 @@
<div><input type="checkbox" disabled v-model="licenceInfo.flareUp.isChecked"/>2动火作业许可证 [<input class="editInput" disabled v-model="licenceInfo.flareUp.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" disabled v-model="licenceInfo.flareUp.isChecked"/>2动火作业许可证 [<input class="editInput" disabled v-model="licenceInfo.flareUp.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" disabled v-model="licenceInfo.heightWork.isChecked"/>3高处作业许可证 [<input class="editInput" disabled v-model="licenceInfo.heightWork.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" disabled v-model="licenceInfo.heightWork.isChecked"/>3高处作业许可证 [<input class="editInput" disabled v-model="licenceInfo.heightWork.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" disabled v-model="licenceInfo.breakGround.isChecked"/>4动土作业许可证 [<input class="editInput" disabled v-model="licenceInfo.breakGround.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" disabled v-model="licenceInfo.breakGround.isChecked"/>4动土作业许可证 [<input class="editInput" disabled v-model="licenceInfo.breakGround.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" disabled v-model="licenceInfo.hoisting.isChecked"/>5吊装作业许可证 [<input class="editInput" disabled v-model="licenceInfo.hoisting.num" style="width: 250px" placeholder="填写编号"/>]</div> <!--<div><input type="checkbox" disabled v-model="licenceInfo.hoisting.isChecked"/>5吊装作业许可证 [<input class="editInput" disabled v-model="licenceInfo.hoisting.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" disabled v-model="licenceInfo.limitSpace.isChecked"/>6受限空间作业许可证 [<input class="editInput" disabled v-model="licenceInfo.limitSpace.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" disabled v-model="licenceInfo.limitSpace.isChecked"/>6受限空间作业许可证 [<input class="editInput" disabled v-model="licenceInfo.limitSpace.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" disabled v-model="licenceInfo.electricityUse.isChecked"/>7临时用电许可证 [<input class="editInput" disabled v-model="licenceInfo.electricityUse.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" disabled v-model="licenceInfo.electricityUse.isChecked"/>7临时用电许可证 [<input class="editInput" disabled v-model="licenceInfo.electricityUse.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" disabled v-model="licenceInfo.ray.isChecked"/>8射线探伤许可证 [<input class="editInput" disabled v-model="licenceInfo.ray.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" disabled v-model="licenceInfo.ray.isChecked"/>8射线探伤许可证 [<input class="editInput" disabled v-model="licenceInfo.ray.num" style="width: 250px" placeholder="填写编号"/>]</div>-->
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
<td colspan="3" v-if="(applyStatus-0) ==1"><input :disabled="item.staffId != $store.state.user.userId" v-model="item.opinion" class="editInput"/></td> <td colspan="3" v-if="(applyStatus-0) ==1"><input :disabled="item.staffId != $store.state.user.userId" v-model="item.opinion" class="editInput"/></td>
<td colspan="3" v-if="(applyStatus-0) !=1"><input disabled v-model="item.opinion" class="editInput"/></td> <td colspan="3" v-if="(applyStatus-0) !=1"><input disabled v-model="item.opinion" class="editInput"/></td>
<td colspan="1">签字:</td> <td colspan="1">签字:</td>
<td colspan="2"><NewEsign :resultImg.sync ="item.signName" :isDisabled="item.staffId != $store.state.user.userId" :isReWrite="(applyStatus-0) ==1" :width="918" :height="100"/></td> <td colspan="2"><NewEsign :resultImg.sync ="item.signName" :isDisabled="item.staffId != $store.state.user.userId" :isReWrite="(applyStatus-0) ==1" :width="918" :height="180"/></td>
<td colspan="2" v-if="(applyStatus-0) ==1"> <td colspan="2" v-if="(applyStatus-0) ==1">
<el-date-picker clearable size="small" <el-date-picker clearable size="small"
v-model="item.signDate" v-model="item.signDate"
...@@ -267,9 +267,9 @@ ...@@ -267,9 +267,9 @@
<el-select v-model="leaderAuditor" filterable placeholder="请选择审核人"> <el-select v-model="leaderAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in leaderUserList" v-for="item in leaderUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -295,9 +295,9 @@ ...@@ -295,9 +295,9 @@
<el-select v-model="workAuditor" filterable placeholder="请选择审核人"> <el-select v-model="workAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in workUserList" v-for="item in workUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -323,9 +323,9 @@ ...@@ -323,9 +323,9 @@
<el-select v-model="auditDeptAuditor" filterable placeholder="请选择审核人"> <el-select v-model="auditDeptAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in auditUserList" v-for="item in auditUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -351,9 +351,9 @@ ...@@ -351,9 +351,9 @@
<el-select v-model="approvalAuditor" filterable placeholder="请选择审核人"> <el-select v-model="approvalAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in approvalUserList" v-for="item in approvalUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -379,9 +379,9 @@ ...@@ -379,9 +379,9 @@
<el-select v-model="completeAuditor" filterable placeholder="请选择审核人"> <el-select v-model="completeAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in completeUserList" v-for="item in completeUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -403,7 +403,8 @@ ...@@ -403,7 +403,8 @@
<script> <script>
import { listDept } from "@/api/system/dept"; import { listDept } from "@/api/system/dept";
import { listUser } from "@/api/system/user"; //import { listUser } from "@/api/system/user";
import { listStaff } from "@/api/safetyManagement/staff";
import { addSpecialPermit, getSpecialWorkPermitByWorkPermitId } from "@/api/workPermit/specialPermit"; import { addSpecialPermit, getSpecialWorkPermitByWorkPermitId } from "@/api/workPermit/specialPermit";
import { addSign, listSign, batchUpdateSignWorkPermit } from "@/api/workPermit/workPermitSign"; import { addSign, listSign, batchUpdateSignWorkPermit } from "@/api/workPermit/workPermitSign";
import { judgeSignUpdateTWorkPermit } from "@/api/workPermit/permit"; import { judgeSignUpdateTWorkPermit } from "@/api/workPermit/permit";
...@@ -529,7 +530,7 @@ ...@@ -529,7 +530,7 @@
}, },
//部门切换 //部门切换
switchDept(deptId,type){ switchDept(deptId,type){
listUser({ pageNum: 1,pageSize: 99999,deptId:deptId}).then(response => { listStaff({ pageNum: 1,pageSize: 99999,deptId:deptId}).then(response => {
if(type == 1){ if(type == 1){
this.leaderUserList = response.rows; this.leaderUserList = response.rows;
} }
......
...@@ -277,9 +277,9 @@ ...@@ -277,9 +277,9 @@
<el-select v-model="leaderAuditor" filterable placeholder="请选择审核人"> <el-select v-model="leaderAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in leaderUserList" v-for="item in leaderUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -305,9 +305,9 @@ ...@@ -305,9 +305,9 @@
<el-select v-model="workAuditor" filterable placeholder="请选择审核人"> <el-select v-model="workAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in workUserList" v-for="item in workUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -333,9 +333,9 @@ ...@@ -333,9 +333,9 @@
<el-select v-model="auditDeptAuditor" filterable placeholder="请选择审核人"> <el-select v-model="auditDeptAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in auditUserList" v-for="item in auditUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -361,9 +361,9 @@ ...@@ -361,9 +361,9 @@
<el-select v-model="approvalAuditor" filterable placeholder="请选择审核人"> <el-select v-model="approvalAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in approvalUserList" v-for="item in approvalUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -389,9 +389,9 @@ ...@@ -389,9 +389,9 @@
<el-select v-model="completeAuditor" filterable placeholder="请选择审核人"> <el-select v-model="completeAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in completeUserList" v-for="item in completeUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -413,7 +413,8 @@ ...@@ -413,7 +413,8 @@
<script> <script>
import { listDept } from "@/api/system/dept"; import { listDept } from "@/api/system/dept";
import { listUser } from "@/api/system/user"; //import { listUser } from "@/api/system/user";
import { listStaff } from "@/api/safetyManagement/staff";
import { addSpecialPermit, getSpecialWorkPermitByWorkPermitId } from "@/api/workPermit/specialPermit"; import { addSpecialPermit, getSpecialWorkPermitByWorkPermitId } from "@/api/workPermit/specialPermit";
import { addSign, listSign, batchUpdateSignWorkPermit } from "@/api/workPermit/workPermitSign"; import { addSign, listSign, batchUpdateSignWorkPermit } from "@/api/workPermit/workPermitSign";
import { judgeSignUpdateTWorkPermit } from "@/api/workPermit/permit"; import { judgeSignUpdateTWorkPermit } from "@/api/workPermit/permit";
...@@ -536,7 +537,7 @@ ...@@ -536,7 +537,7 @@
}, },
//部门切换 //部门切换
switchDept(deptId,type){ switchDept(deptId,type){
listUser({ pageNum: 1,pageSize: 99999,deptId:deptId}).then(response => { listStaff({ pageNum: 1,pageSize: 99999,deptId:deptId}).then(response => {
if(type == 1){ if(type == 1){
this.leaderUserList = response.rows; this.leaderUserList = response.rows;
} }
......
...@@ -373,9 +373,9 @@ ...@@ -373,9 +373,9 @@
<el-select v-model="leaderAuditor" filterable placeholder="请选择审核人"> <el-select v-model="leaderAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in leaderUserList" v-for="item in leaderUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -401,9 +401,9 @@ ...@@ -401,9 +401,9 @@
<el-select v-model="beyondUnitAuditor" filterable placeholder="请选择审核人"> <el-select v-model="beyondUnitAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in beyondUnitUserList" v-for="item in beyondUnitUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -429,9 +429,9 @@ ...@@ -429,9 +429,9 @@
<el-select v-model="auditDeptAuditor" filterable placeholder="请选择审核人"> <el-select v-model="auditDeptAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in auditDeptUserList" v-for="item in auditDeptUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -457,9 +457,9 @@ ...@@ -457,9 +457,9 @@
<el-select v-model="approvalAuditor" filterable placeholder="请选择审核人"> <el-select v-model="approvalAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in approvalUserList" v-for="item in approvalUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -485,9 +485,9 @@ ...@@ -485,9 +485,9 @@
<el-select v-model="fireBeforeAuditor" filterable placeholder="请选择审核人"> <el-select v-model="fireBeforeAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in fireBeforeUserList" v-for="item in fireBeforeUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -513,9 +513,9 @@ ...@@ -513,9 +513,9 @@
<el-select v-model="completeAuditor" filterable placeholder="请选择审核人"> <el-select v-model="completeAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in completeUserList" v-for="item in completeUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -537,7 +537,8 @@ ...@@ -537,7 +537,8 @@
<script> <script>
import { listDept } from "@/api/system/dept"; import { listDept } from "@/api/system/dept";
import { listUser } from "@/api/system/user"; //import { listUser } from "@/api/system/user";
import { listStaff } from "@/api/safetyManagement/staff";
import { addSpecialPermit, getSpecialWorkPermitByWorkPermitId } from "@/api/workPermit/specialPermit"; import { addSpecialPermit, getSpecialWorkPermitByWorkPermitId } from "@/api/workPermit/specialPermit";
import { addSign, listSign, batchUpdateSignWorkPermit } from "@/api/workPermit/workPermitSign"; import { addSign, listSign, batchUpdateSignWorkPermit } from "@/api/workPermit/workPermitSign";
import { judgeSignUpdateTWorkPermit } from "@/api/workPermit/permit"; import { judgeSignUpdateTWorkPermit } from "@/api/workPermit/permit";
...@@ -731,7 +732,7 @@ ...@@ -731,7 +732,7 @@
}, },
//部门切换 //部门切换
switchDept(deptId,type){ switchDept(deptId,type){
listUser({ pageNum: 1,pageSize: 99999,deptId:deptId}).then(response => { listStaff({ pageNum: 1,pageSize: 99999,deptId:deptId}).then(response => {
if(type == 1){ if(type == 1){
this.leaderUserList = response.rows; this.leaderUserList = response.rows;
} }
......
...@@ -292,9 +292,9 @@ ...@@ -292,9 +292,9 @@
<el-select v-model="leaderAuditor" filterable placeholder="请选择审核人"> <el-select v-model="leaderAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in leaderUserList" v-for="item in leaderUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -320,9 +320,9 @@ ...@@ -320,9 +320,9 @@
<el-select v-model="workAuditor" filterable placeholder="请选择审核人"> <el-select v-model="workAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in workUserList" v-for="item in workUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -348,9 +348,9 @@ ...@@ -348,9 +348,9 @@
<el-select v-model="auditDeptAuditor" filterable placeholder="请选择审核人"> <el-select v-model="auditDeptAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in auditUserList" v-for="item in auditUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -376,9 +376,9 @@ ...@@ -376,9 +376,9 @@
<el-select v-model="approvalAuditor" filterable placeholder="请选择审核人"> <el-select v-model="approvalAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in approvalUserList" v-for="item in approvalUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -404,9 +404,9 @@ ...@@ -404,9 +404,9 @@
<el-select v-model="completeAuditor" filterable placeholder="请选择审核人"> <el-select v-model="completeAuditor" filterable placeholder="请选择审核人">
<el-option <el-option
v-for="item in completeUserList" v-for="item in completeUserList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -429,7 +429,8 @@ ...@@ -429,7 +429,8 @@
<script> <script>
import { listDept } from "@/api/system/dept"; import { listDept } from "@/api/system/dept";
import { listUser } from "@/api/system/user"; //import { listUser } from "@/api/system/user";
import { listStaff } from "@/api/safetyManagement/staff";
import { addSpecialPermit, getSpecialWorkPermitByWorkPermitId } from "@/api/workPermit/specialPermit"; import { addSpecialPermit, getSpecialWorkPermitByWorkPermitId } from "@/api/workPermit/specialPermit";
import { addSign, listSign, batchUpdateSignWorkPermit } from "@/api/workPermit/workPermitSign"; import { addSign, listSign, batchUpdateSignWorkPermit } from "@/api/workPermit/workPermitSign";
import { judgeSignUpdateTWorkPermit } from "@/api/workPermit/permit"; import { judgeSignUpdateTWorkPermit } from "@/api/workPermit/permit";
...@@ -557,7 +558,7 @@ ...@@ -557,7 +558,7 @@
}, },
//部门切换 //部门切换
switchDept(deptId,type){ switchDept(deptId,type){
listUser({ pageNum: 1,pageSize: 99999,deptId:deptId}).then(response => { listStaff({ pageNum: 1,pageSize: 99999,deptId:deptId}).then(response => {
if(type == 1){ if(type == 1){
this.leaderUserList = response.rows; this.leaderUserList = response.rows;
} }
......
<template> <template>
<div> <div>
<input class="editInput" placeholder="请签名" :disabled="isDisabled" v-if="resultImg == '' || resultImg == null" @click="signName"/> <input class="editInput" placeholder="请签名" :disabled="isDisabled" v-if="resultImg == '' || resultImg == null" @click="signName"/>
<el-dialog title="签名" :visible.sync="signOpen" :close-on-click-modal="false" :z-index="2000"> <el-dialog title="签名" :visible.sync="signOpen" :close-on-click-modal="false" append-to-body :z-index="1800">
<div style="border: 1px solid #cccccc"> <div style="border: 1px solid #cccccc">
<vue-esign ref="esign" :width="width" :height="height" :isCrop="isCrop" :lineWidth="lineWidth" :lineColor="lineColor" :bgColor.sync="bgColor" /> <vue-esign ref="esign" :width="width" :height="height" :isCrop="isCrop" :lineWidth="lineWidth" :lineColor="lineColor" :bgColor.sync="bgColor" />
<div style="text-align: right"> </div>
<button @click="handleReset" style="margin-right: 2px">清空</button> <div slot="footer" class="dialog-footer">
<button @click="handleGenerate">确定</button> <el-button type="primary" @click="handleGenerate">确定</el-button>
</div> <el-button @click="handleReset" style="margin-right: 2px">清空</el-button>
</div> </div>
</el-dialog> </el-dialog>
<div> <div>
......
...@@ -206,17 +206,18 @@ ...@@ -206,17 +206,18 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td rowspan="4" colspan="2">批准人填写</td> <td rowspan="3" colspan="2">批准人填写</td>
<td rowspan="4" colspan="2">许可证</td> <td rowspan="3" colspan="2">许可证</td>
<td colspan="6" style="text-align: left">是否需要进一步的JSA: <input type="checkbox" v-model="licenceInfo.jsa.yes"/><input type="checkbox" v-model="licenceInfo.jsa.no"/> JSA[<input class="editInput" v-model="licenceInfo.jsa.num" style="width: 250px" placeholder="填写JSA编号"/>]</td> <td colspan="6" style="text-align: left">是否需要进一步的JSA: <input type="checkbox" v-model="licenceInfo.jsa.yes"/><input type="checkbox" v-model="licenceInfo.jsa.no"/> JSA[<input class="editInput" v-model="licenceInfo.jsa.num" style="width: 250px" placeholder="填写JSA编号"/>]</td>
</tr> </tr>
<tr> <!--<tr>
<td colspan="6" style="text-align: left"><input type="checkbox" v-model="licenceInfo.specialLicence"/>0无需特殊工作许可</td> <td colspan="6" style="text-align: left"><input type="checkbox" v-model="licenceInfo.specialLicence"/>0无需特殊工作许可</td>
</tr> </tr>-->
<tr> <tr>
<td colspan="6" style="text-align: left"> <td colspan="6" style="text-align: left">
<div><input type="checkbox" v-model="licenceInfo.lockListing.isChecked"/>1-1锁定挂牌记录表 [<input class="editInput" v-model="licenceInfo.lockListing.num" style="width: 250px" placeholder="填写编号"/>]</div> <!--<div><input type="checkbox" v-model="licenceInfo.lockListing.isChecked"/>1-1锁定挂牌记录表 [<input class="editInput" v-model="licenceInfo.lockListing.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" v-model="licenceInfo.blindPlate.isChecked"/>1-2盲板抽堵作业许可 [<input class="editInput" v-model="licenceInfo.blindPlate.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" v-model="licenceInfo.blindPlate.isChecked"/>1-2盲板抽堵作业许可 [<input class="editInput" v-model="licenceInfo.blindPlate.num" style="width: 250px" placeholder="填写编号"/>]</div>-->
<input type="checkbox" v-model="licenceInfo.blindPlate.isChecked"/>1盲板抽堵作业许可 [<input class="editInput" v-model="licenceInfo.blindPlate.num" style="width: 250px" placeholder="填写编号"/>]
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -224,10 +225,10 @@ ...@@ -224,10 +225,10 @@
<div><input type="checkbox" v-model="licenceInfo.flareUp.isChecked"/>2动火作业许可证 [<input class="editInput" v-model="licenceInfo.flareUp.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" v-model="licenceInfo.flareUp.isChecked"/>2动火作业许可证 [<input class="editInput" v-model="licenceInfo.flareUp.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" v-model="licenceInfo.heightWork.isChecked"/>3高处作业许可证 [<input class="editInput" v-model="licenceInfo.heightWork.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" v-model="licenceInfo.heightWork.isChecked"/>3高处作业许可证 [<input class="editInput" v-model="licenceInfo.heightWork.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" v-model="licenceInfo.breakGround.isChecked"/>4动土作业许可证 [<input class="editInput" v-model="licenceInfo.breakGround.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" v-model="licenceInfo.breakGround.isChecked"/>4动土作业许可证 [<input class="editInput" v-model="licenceInfo.breakGround.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" v-model="licenceInfo.hoisting.isChecked"/>5吊装作业许可证 [<input class="editInput" v-model="licenceInfo.hoisting.num" style="width: 250px" placeholder="填写编号"/>]</div> <!-- <div><input type="checkbox" v-model="licenceInfo.hoisting.isChecked"/>5吊装作业许可证 [<input class="editInput" v-model="licenceInfo.hoisting.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" v-model="licenceInfo.limitSpace.isChecked"/>6受限空间作业许可证 [<input class="editInput" v-model="licenceInfo.limitSpace.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" v-model="licenceInfo.limitSpace.isChecked"/>6受限空间作业许可证 [<input class="editInput" v-model="licenceInfo.limitSpace.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" v-model="licenceInfo.electricityUse.isChecked"/>7临时用电许可证 [<input class="editInput" v-model="licenceInfo.electricityUse.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" v-model="licenceInfo.electricityUse.isChecked"/>7临时用电许可证 [<input class="editInput" v-model="licenceInfo.electricityUse.num" style="width: 250px" placeholder="填写编号"/>]</div>
<div><input type="checkbox" v-model="licenceInfo.ray.isChecked"/>8射线探伤许可证 [<input class="editInput" v-model="licenceInfo.ray.num" style="width: 250px" placeholder="填写编号"/>]</div> <div><input type="checkbox" v-model="licenceInfo.ray.isChecked"/>8射线探伤许可证 [<input class="editInput" v-model="licenceInfo.ray.num" style="width: 250px" placeholder="填写编号"/>]</div>-->
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -269,9 +270,9 @@ ...@@ -269,9 +270,9 @@
<el-select v-model="produceComfirm.monitorId" filterable placeholder="请选择生产组当班班长"> <el-select v-model="produceComfirm.monitorId" filterable placeholder="请选择生产组当班班长">
<el-option <el-option
v-for="item in userList" v-for="item in userList"
:key="item.userId" :key="item.staffId"
:label="item.nickName" :label="item.staffName"
:value="item.userId" :value="item.staffId"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -284,7 +285,7 @@ ...@@ -284,7 +285,7 @@
</el-dialog> </el-dialog>
<!-- 作业单申请 --> <!-- 作业单申请 -->
<el-dialog title="作业单申请" :visible.sync="certificateApprovalApplyOpen" append-to-body :close-on-click-modal="false" @close="cancelCertificateApply"> <el-dialog title="作业单申请" :visible.sync="certificateApprovalApplyOpen" append-to-body :close-on-click-modal="false" @close="cancelCertificateApply" :z-index="2000">
<div class="tags_box"> <div class="tags_box">
<div v-for="item in tags" class="tags"> <div v-for="item in tags" class="tags">
<div :class="{isActive:item.name==active}" @click="handelToogel(item.name,'1')">{{item.name}}</div> <div :class="{isActive:item.name==active}" @click="handelToogel(item.name,'1')">{{item.name}}</div>
...@@ -322,7 +323,7 @@ ...@@ -322,7 +323,7 @@
</el-dialog> </el-dialog>
<!-- 作业单审核 --> <!-- 作业单审核 -->
<el-dialog title="作业单审核" :visible.sync="certificateApprovalOpen" append-to-body :close-on-click-modal="false"> <el-dialog title="作业单审核" :visible.sync="certificateApprovalOpen" append-to-body :close-on-click-modal="false" :z-index="1000">
<div class="tags_box"> <div class="tags_box">
<div v-for="item in specialWorkPermits" class="tags"> <div v-for="item in specialWorkPermits" class="tags">
<div :class="{isActive:item.specialWorkType==approvalActive}" @click="handelToogel(item.specialWorkType,'2')">{{ getTagName(item.specialWorkType) }}</div> <div :class="{isActive:item.specialWorkType==approvalActive}" @click="handelToogel(item.specialWorkType,'2')">{{ getTagName(item.specialWorkType) }}</div>
...@@ -477,6 +478,7 @@ ...@@ -477,6 +478,7 @@
import { listPermit, selectTWorkPermitListByLoginUser, getPermit, delPermit, addPermit, updatePermit, exportPermit } from "@/api/workPermit/permit"; import { listPermit, selectTWorkPermitListByLoginUser, getPermit, delPermit, addPermit, updatePermit, exportPermit } from "@/api/workPermit/permit";
import { getSpecialWorkPermitByWorkPermitId,addBatchSpecialPermit } from "@/api/workPermit/specialPermit"; import { getSpecialWorkPermitByWorkPermitId,addBatchSpecialPermit } from "@/api/workPermit/specialPermit";
import { listUser,getAllUserName } from "@/api/system/user"; import { listUser,getAllUserName } from "@/api/system/user";
import { listStaff } from "@/api/safetyManagement/staff";
import { listAll } from "@/api/contractor/contractorInfo"; import { listAll } from "@/api/contractor/contractorInfo";
import FlareUp from "@/components/NewSaftyWork/FlareUp"; import FlareUp from "@/components/NewSaftyWork/FlareUp";
import BlindPlate from "@/components/NewSaftyWork/BlindPlate"; import BlindPlate from "@/components/NewSaftyWork/BlindPlate";
...@@ -1011,7 +1013,7 @@ ...@@ -1011,7 +1013,7 @@
//部门切换 //部门切换
switchDept(){ switchDept(){
this.produceComfirm.monitorId = ""; this.produceComfirm.monitorId = "";
listUser({ pageNum: 1,pageSize: 99999,deptId:this.produceComfirm.leaderDeptId}).then(response => { listStaff({ pageNum: 1,pageSize: 99999,deptId:this.produceComfirm.leaderDeptId}).then(response => {
this.userList = response.rows; this.userList = response.rows;
}); });
}, },
......
...@@ -104,7 +104,13 @@ ...@@ -104,7 +104,13 @@
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" width="55" align="center" prop="id" /> <el-table-column label="序号" width="55" align="center" prop="id" />
<el-table-column label="辨识部位" width="135" align="center" prop="riskPart" /> <el-table-column label="辨识部位" width="135" align="center" prop="riskPart" />
<el-table-column label="存在风险" align="center" prop="riskContent" /> <el-table-column label="存在风险" align="center" prop="riskContent" >
<template slot-scope="scope">
<dl v-html="scope.row.riskContent">
{{scope.row.riskContent}}
</dl>
</template>
</el-table-column>
<el-table-column label="风险等级" width="75" align="center" prop="riskLevel" :formatter="riskLevelFormat"/> <el-table-column label="风险等级" width="75" align="center" prop="riskLevel" :formatter="riskLevelFormat"/>
<el-table-column label="事故类型" width="95" align="center" prop="riskType" :formatter="riskTypeFormat"/> <el-table-column label="事故类型" width="95" align="center" prop="riskType" :formatter="riskTypeFormat"/>
<el-table-column label="管控措施" align="center" prop="riskControl" /> <el-table-column label="管控措施" align="center" prop="riskControl" />
...@@ -240,6 +246,12 @@ export default { ...@@ -240,6 +246,12 @@ export default {
form: {}, form: {},
// 表单校验 // 表单校验
rules: { rules: {
riskPart: [
{ required: true, message: "辨识部位不能为空", trigger: "blur" }
],
riskDept: [
{ required: true, message: "责任部门不能为空", trigger: "blur" }
],
} }
}; };
}, },
......
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="form.staffName==null"> <el-row >
<el-col :span="11"> <el-col :span="11">
<el-form-item label="账号" prop="userName"> <el-form-item label="账号" prop="userName">
<el-input v-model="form.userName" placeholder="请输账号" /> <el-input v-model="form.userName" placeholder="请输账号" />
......
...@@ -35,8 +35,7 @@ module.exports = { ...@@ -35,8 +35,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: process.env.VUE_APP_TARGET, target: process.env.VUE_APP_TARGET,
// target: `http://192.168.2.16:8908/dangerManage`, //target: `http://192.168.31.87:8908/dangerManage`,
// target: `http://192.168.2.17:8908/dangerManage`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment