Commit fe7866e5 authored by 李苏's avatar 李苏 💬

风险维护和设置

parent de8eb8d9
...@@ -10,29 +10,6 @@ ...@@ -10,29 +10,6 @@
<el-input :readonly="readonly" v-model="form.name" ></el-input> <el-input :readonly="readonly" v-model="form.name" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="12">
<el-form-item label="检查人" ref="jcrid" prop="jcrid">
<personSelector :label="form.jcrName||form.jcrid||'暂无'" @selected='jcrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检查时间" ref="sjjcsj" prop="sjjcsj">
<el-date-picker style="width: 100%;" value-format='timestamp' type="datetime" v-model="form.sjjcsj" ></el-date-picker>
</el-form-item>
</el-col> -->
<el-col :span="12">
<el-form-item label="岗位" ref="gwid" prop="gwid">
<RelSelect style="width:100%" src='/aqgl/jcsj/scgw/query' :match="{value:'id',label:'name'}" v-model='form.gwid' ></RelSelect>
<!-- <el-input :readonly="readonly" v-model="form.gwid" ></el-input> -->
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检查人" ref="jcr" prop="jcr">
<RelSelect linkage :linkParams="{gwid:form.gwid}" filterable style="width: 100%;" clearable :readonly="readonly" src='kzzx/user/query' :match="{value:'id',label:'username'}" v-model='form.jcr' ></RelSelect>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
...@@ -167,11 +144,7 @@ ...@@ -167,11 +144,7 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
jcr:'',
table:'FXSZMX', table:'FXSZMX',
gwid:'',
// sjjcsj:'',
// jcrid:'',
name:'', name:'',
jldw:'', jldw:'',
begintime:'', begintime:'',
...@@ -188,27 +161,9 @@ ...@@ -188,27 +161,9 @@
}, },
/* 多表表头*/ /* 多表表头*/
editTableTitle:[ editTableTitle:[
{label: "部门", prop: "bmName", fieldType: "ftString",width:192}, {label: "检查内容", prop: "nr", fieldType: "ftString",width:300},
{label: "车间", prop: "cjName", fieldType: "ftString",width:192}, {label: "岗位", prop: "scgwName", fieldType: "ftString",width:300},
{label: "岗位", prop: "gwName", fieldType: "ftString",width:192}, {label: "检查人", prop: "fzrName", fieldType: "ftString",width:300},
{label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "事故类型", prop: "sglx", fieldType: "ftString",width:192},
{label: "危险等级", prop: "wxdj", fieldType: "ftString",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}},
{label: "分值", prop: "fz", fieldType: "float"},
{label: "风险类型", prop: "fxlx", fieldType: "ftString",width:192},
{label: "管控落实后等级", prop: "lsdj", fieldType: "ftString",width:160},
{label: "管理层级", prop: "glcj",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/glcj',label:'name',value:'id'
}},
{label: "拍照选项", prop: "pzxx", fieldType: "ftString",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/pzxx',label:'name',value:'id'
}},
{label: "序号", prop: "xh", fieldType: "int"},
{label: "图形编号", prop: "txcode", fieldType: "ftString",width:180},
{label: "措施类型", prop: "cslx", fieldType: "ftString",width:192},
] ]
} }
}, },
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
}, },
methods: { methods: {
query: doQuery, query: doQueryJcnr,
/* 基础增*/ /* 基础增*/
apiAdd: doAdd, apiAdd: doAdd,
/* 基础更新*/ /* 基础更新*/
...@@ -66,11 +66,11 @@ ...@@ -66,11 +66,11 @@
idList.push(e.id) idList.push(e.id)
}) })
this.multipleSelection.forEach(item=>{ this.multipleSelection.forEach(item=>{
item.fxbzid=item.id item.jcnrid=item.id
item.id='' item.id=''
}) })
let addData=this.multipleSelection.filter((item)=>{ let addData=this.multipleSelection.filter((item)=>{
if(idList.indexOf(item.fxbzid)==-1){ if(idList.indexOf(item.jcnrid)==-1){
return true return true
}else{ }else{
return false return false
...@@ -87,40 +87,9 @@ ...@@ -87,40 +87,9 @@
return { return {
queryParams:{}, queryParams:{},
tableTitle: [ tableTitle: [
// {label: "序号", prop: "xh", fieldType: "int"}, {label: "检查内容", prop: "nr", fieldType: "ftString",width:300},
{label: "部门", prop: "bmName", fieldType: "ftString",width:192}, {label: "岗位", prop: "scgwName", fieldType: "ftString",width:300},
{label: "车间", prop: "cjName", fieldType: "ftString",width:192}, {label: "检查人", prop: "fzrName", fieldType: "ftString",width:300},
{label: "岗位", prop: "gwName", fieldType: "ftString",width:192},
{label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "事故类型", prop: "sglx", fieldType: "ftString",width:192},
{label: "危险等级", prop: "wxdj", fieldType: "ftString",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}},
{label: "分值", prop: "fz", fieldType: "float"},
{label: "风险类型", prop: "fxlxName", fieldType: "ftString",width:192},
{label: "管控落实后等级", prop: "lsdj", fieldType: "ftString",width:160},
{label: "管理层级", prop: "glcj",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/glcj',label:'name',value:'id'
}},
{label: "拍照选项", prop: "pzxx", fieldType: "ftString",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/pzxx',label:'name',value:'id'
}},
{label: "图形编号", prop: "txcode", fieldType: "ftString",width:180},
{label: "措施类型", prop: "cslx", fieldType: "ftString",width:192},
// {label: "基准精度", prop: "jzjd", fieldType: "ftString",width:160},
// {label: "基准维度", prop: "jzwd", fieldType: "ftString",width:160},
// {label: "检查要点", prop: "jcyd", fieldType: "ftString",width:300},
// {label: "危害因素", prop: "whys", fieldType: "ftString",width:300},
// {label: "事故后果", prop: "sghg", fieldType: "ftString",width:300},
// {label: "检查措施描述", prop: "jccsms", fieldType: "ftString",width:300},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "责任人", prop: "zrr", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
], ],
baseUrl: '/aqgl/fxyk/fxbz', baseUrl: '/aqgl/fxyk/fxbz',
} }
......
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
tableTitle: [ tableTitle: [
// {label: "标准ID", prop: "mid", fieldType: "ftString",width:192}, // {label: "标准ID", prop: "mid", fieldType: "ftString",width:192},
{label: "检查内容", prop: "nr", fieldType: "ftString",width:300}, {label: "检查内容", prop: "nr", fieldType: "ftString",width:300},
{label: "岗位", prop: "gwName", fieldType: "ftString",width:300}, {label: "岗位", prop: "scgwName", fieldType: "ftString",width:300},
{label: "检查人", prop: "jcrName", fieldType: "ftString",width:300}, {label: "检查人", prop: "fzrName", fieldType: "ftString",width:300},
// {label: "检查分值", prop: "jcfz", fieldType: "float"}, // {label: "检查分值", prop: "jcfz", fieldType: "float"},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300}, // {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, // {label: "维护人", prop: "whr", fieldType: "ftString"},
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="检查人" ref="jcr" prop="jcr"> <el-form-item label="检查人" ref="fzrid" prop="fzrid">
<RelSelect linkage :linkParams="{gwid:form.gwid}" filterable style="width: 100%;" :params="{bmid:app.vMain.rowItem.gsid}" clearable :readonly="readonly" src='kzzx/user/query' :match="{value:'id',label:'username'}" v-model='form.jcr' ></RelSelect> <RelSelect linkage :linkParams="{gwid:form.gwid}" filterable style="width: 100%;" :params="{bmid:app.vMain.rowItem.gsid}" clearable :readonly="readonly" src='kzzx/user/query' :match="{value:'id',label:'username'}" v-model='form.fzrid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
gwid:'', gwid:'',
jcr:'', fzrid:'',
id:'', id:'',
mid:'', mid:'',
......
...@@ -145,13 +145,15 @@ ...@@ -145,13 +145,15 @@
{label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300}, {label: "风险地点", prop: "fxpcdd", fieldType: "ftString",width:300},
{label: "风险点", prop: "fxdName", fieldType: "ftString",width:300}, {label: "风险点", prop: "fxdName", fieldType: "ftString",width:300},
/* 假*/ /* 假*/
{label: "检查部位", prop: "jcbw", fieldType: "ftString",width:300}, {label: "检查部位", prop: "jcyd", fieldType: "ftString",width:300},
{label: "事故后果", prop: "sghg", fieldType: "ftString",width:300}, {label: "事故后果", prop: "sghg", fieldType: "ftString",width:300},
{label: "固有风险等级", prop: "gyfxdj", fieldType: "ftString",width:300}, {label: "固有风险等级", prop: "wxdj", fieldType: "ftString",width:300,transform:{
url:'/aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}},
/* 检查部位 事故后果 固有风险等级 现有风险等级*/ /* 检查部位 事故后果 固有风险等级 现有风险等级*/
// {label: "事故类型", prop: "sglx", fieldType: "ftString",width:192}, // {label: "事故类型", prop: "sglx", fieldType: "ftString",width:192},
{label: "危险等级", prop: "wxdj", fieldType: "ftString",width:160,transform:{ {label: "现有风险等级", prop: "lsdj", fieldType: "ftString",width:160,transform:{
url:'/aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id' url:'/aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}}, }},
// {label: "分值", prop: "fz", fieldType: "float"}, // {label: "分值", prop: "fz", fieldType: "float"},
......
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