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

隐患整改

parent 29dca19d
<template> <template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="发现日期" ref="fxrq" prop="fxrq"> <el-form-item label="发现日期" ref="fxrq" prop="fxrq">
...@@ -14,46 +14,64 @@ ...@@ -14,46 +14,64 @@
<el-form-item label="风险点" ref="fxd" prop="fxd"> <el-form-item label="风险点" ref="fxd" prop="fxd">
<el-input :readonly="readonly" v-model="form.fxd" ></el-input> <el-input :readonly="readonly" v-model="form.fxd" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="隐患地点" ref="yhdd" prop="yhdd"> <el-form-item label="隐患地点" ref="yhdd" prop="yhdd">
<el-input :readonly="readonly" v-model="form.yhdd" ></el-input> <el-input :readonly="readonly" v-model="form.yhdd" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="12"> <el-col :span="12">
<el-form-item label="上报级别" ref="sbjb" prop="sbjb"> <el-form-item label="隐患类型" ref="flid" prop="flid">
<RelSelect :readonly="readonly" style="width: 100%;" src='/aqgl/fxyk/fxpc/init/glcj' clearable :match="{value:'id',label:'name'}" v-model='form.sbjb' ></RelSelect> <RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/yhgl/yhfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> --> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="上报人" ref="sbjb" prop="sbjb"> <el-form-item label="隐患等级" ref="dj" prop="dj">
<personSelector :label="form.sbrName||'暂无'" @selected='sbrSelected' ></personSelector> <RelSelect style='width: 100%;' src='aqgl/fxyk/fxpc/init/wxdj' clearable :match="{value:'id',label:'name'}" v-model='form.dj' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="班组" ref="bmid" prop="bmid"> <el-form-item label="班组" ref="bmid" prop="bmid">
<RelSelect :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect> <RelSelect :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="24">
<el-form-item label="责任人" ref="zrr" prop="zrr"> <el-form-item label="隐患内容" ref="nr" prop="nr">
<personSelector :label="form.zrrName||'暂无'" @selected='zrrSelected' ></personSelector> <el-input type='textarea' :readonly="readonly" v-model="form.nr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="整改措施" ref="zgfa" prop="zgfa">
<el-input type='textarea' :readonly="readonly" v-model="form.zgfa" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="管控措施" ref="gkcs" prop="gkcs">
<el-input type='textarea' :readonly="readonly" v-model="form.gkcs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="整改说明" ref="clff" prop="clff">
<el-input type='textarea' :readonly="readonly" v-model="form.clff" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="隐患等级" ref="dj" prop="dj"> <el-form-item label="整改完成日期" ref="yqzgsj" prop="yqzgsj">
<el-input :readonly="readonly" v-model="form.dj" ></el-input> <el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.yqzgsj" placeholder="选择日期">
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="隐患分类" ref="flid" prop="flid"> <el-form-item label="上报人" ref="sbr" prop="sbr">
<RelSelect style='width:100%' src='aqgl/yhgl/yhfl/query' clearable :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect> <!-- <el-input :readonly="readonly" v-model="form.zrr" ></el-input> -->
<!-- <el-input :readonly="readonly" v-model="form.flid" ></el-input> --> <personSelector :label="form.sbrName||'暂无'" @selected='sbrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
...@@ -71,6 +89,7 @@ ...@@ -71,6 +89,7 @@
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
/* 赋值*/
this.form.sbr=localStorage.getItem('userid') this.form.sbr=localStorage.getItem('userid')
this.form.sbrName=localStorage.getItem('username') this.form.sbrName=localStorage.getItem('username')
}, },
...@@ -81,11 +100,18 @@ ...@@ -81,11 +100,18 @@
data() { data() {
return { return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
sbr:"", clff:'',
sbr:'',
sbrName:'', sbrName:'',
gkcs:'',
zgfa:'',
zrrName:'', zrrName:'',
id:'', id:'',
...@@ -110,7 +136,7 @@ ...@@ -110,7 +136,7 @@
flid:'', flid:'',
clr:'', clr:'',
yqzgsj:new Date().getTime(),
clsj:new Date().getTime(), clsj:new Date().getTime(),
clff:'', clff:'',
...@@ -173,9 +199,6 @@ ...@@ -173,9 +199,6 @@
methods: { methods: {
sbrSelected(row){ sbrSelected(row){
this.form.sbr=row.id this.form.sbr=row.id
},
zrrSelected(row){
this.form.zrr=row.id
} }
} }
} }
......
<template> <template>
<div class="min_full"> <div class="min_full">
<Zgwc :app='this' v-if="showDialog" ></Zgwc>
<!-- 查询条件--> <!-- 查询条件-->
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition > <div class="search" v-condition >
...@@ -25,8 +26,9 @@ ...@@ -25,8 +26,9 @@
</el-col> </el-col>
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">隐患分类:</span> <span class="search-span">上报人:</span>
<RelSelect src='aqgl/yhgl/yhfl/query' clearable :match="{value:'id',label:'name'}" v-model='queryParams.flid' ></RelSelect> <el-input v-model='queryParams.sbr' ></el-input>
<!-- <RelSelect src='aqgl/yhgl/yhfl/query' clearable :match="{value:'id',label:'name'}" v-model='queryParams.flid' ></RelSelect> -->
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
...@@ -37,8 +39,9 @@ ...@@ -37,8 +39,9 @@
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<DeleteButton :app='app'></DeleteButton> <DeleteButton :app='app'></DeleteButton>
<AttachFileButton :app='app' ></AttachFileButton> <el-button size='mini' @click="zdzrr" type="primary">整改完成</el-button>
<WorkFlowButton :app='app' ></WorkFlowButton> <!-- <AttachFileButton :app='app' ></AttachFileButton>
<WorkFlowButton :app='app' ></WorkFlowButton> -->
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<!-- 权限--> <!-- 权限-->
...@@ -57,6 +60,7 @@ ...@@ -57,6 +60,7 @@
<script> <script>
/* 引入需要的接口*/ /* 引入需要的接口*/
import Zgwc from './zgwc'
import { import {
doQuery, doQuery,
doAdd, doAdd,
...@@ -77,6 +81,9 @@ ...@@ -77,6 +81,9 @@
}, },
data() { data() {
return { return {
DialogTitle:'整改完成',
/*需要的额外参数 */
showDialog:false,
/* 基础url*/ /* 基础url*/
baseUrl: '/aqgl/yhgl/yhjl', baseUrl: '/aqgl/yhgl/yhjl',
/* 查询参数*/ /* 查询参数*/
...@@ -84,7 +91,7 @@ ...@@ -84,7 +91,7 @@
ksrq:new Date().getTime()-1000*60*60*24*30, ksrq:new Date().getTime()-1000*60*60*24*30,
jsrq:new Date().getTime(), jsrq:new Date().getTime(),
bmid:'', bmid:'',
flid:'' sbr:''
}, },
/* 树的标题 */ /* 树的标题 */
treeTitle: '隐患标准分类', treeTitle: '隐患标准分类',
...@@ -94,22 +101,40 @@ ...@@ -94,22 +101,40 @@
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "班组", prop: "bmid", fieldType: "ftString",width:192,transform:{
url:'jcsj/common/bm/queryBz',label:'bmmc',value:'id'
}},
//
{label: "状态", prop: "zt", fieldType: "ftString",transform:{
url:'aqgl/yhgl/yhjl/init/zt',label:'name',value:'id'
}},
{label: "整改说明", prop: "clff", fieldType: "ftString",width:300},
{label: "整改完成时间", prop: "clsj", fieldType: "ftDateTime"},
{label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"}, {label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300}, {label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300}, {label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
// {label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100}, {label: "隐患类型", prop: "flid", fieldType: "ftString",width:192,transform:{
// {label: "内容", prop: "nr", fieldType: "ftString",width:300}, url:'aqgl/yhgl/yhfl/query',label:'name',value:'id'
{label: "班组", prop: "bmid", fieldType: "ftString",width:192,transform:{ }},
url:'/jcsj/common/bm/queryBz',label:'bmmc',value:'id' {label: "隐患等级", prop: "dj", fieldType: "ftString",width:192,transform:{
url:'aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}}, }},
{label: "内容", prop: "nr", fieldType: "ftString",width:300},
// {label: "责任部门", prop: "bmName", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6}, // {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{label: "责任人", prop: "zrrName", fieldType: "ftString",width:192}, {label: "责任人", prop: "zrrName", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192}, {label: "整改方案", prop: "zgfa", fieldType: "ftString",width:300},
{label: "隐患分类", prop: "pidName", fieldType: "ftString",width:192}, {label: "管控措施", prop: "gkcs", fieldType: "ftString",width:300},
// {label: "处理人", prop: "clr", fieldType: "ftString",width:192}, {label: "要求整改完成时间", prop: "yqzgsj", fieldType: "ftDateTime"},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clrName", fieldType: "ftString",width:192},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"}, // {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300}, // {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
// {label: "复查人", prop: "fcr", fieldType: "ftString",width:192}, {label: "复查人", prop: "fcrName", fieldType: "ftString",width:192},
{label: "上报人", prop: "sbrName", fieldType: "ftString",width:192},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"}, // {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300}, // {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192}, // {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
...@@ -119,14 +144,21 @@ ...@@ -119,14 +144,21 @@
// {label: "附件数", prop: "attachcount", fieldType: "int"}, // {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300}, // {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "上报人", prop: "sbrName", fieldType: "ftString"}, // {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"}, // {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
] ]
} }
}, },
methods: { methods: {
zdzrr(){
if (this.app.selectOne || this.app.clickOne) {
this.showDialog = true
} else {
this.$warning('请选中一行操作');
}
},
selectedTree(e){ selectedTree(e){
this.queryParams.bmid=e.id||'root' this.queryParams.bmid=e.id||'root'
this.$refs['TablePager'].pageQuery() this.$refs['TablePager'].pageQuery()
...@@ -153,7 +185,7 @@ ...@@ -153,7 +185,7 @@
}, },
components:{ components:{
Edit Edit,Zgwc
} }
......
<template> <template>
<div class="min_full"> <div class="min_full">
<Fcjg :app='this' v-if="showDialog" ></Fcjg>
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition> <div class="search" v-condition>
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
...@@ -36,13 +36,13 @@ ...@@ -36,13 +36,13 @@
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton> <!-- <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton> -->
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton> <!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<WorkFlowButton :app='app' ></WorkFlowButton> <el-button size='mini' @click="zdzrr" type="primary">复查结果</el-button>
<!-- 额外按钮--> <!-- 额外按钮-->
<!-- 表头设置 --> <!-- 表头设置 -->
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
</template> </template>
<script> <script>
import Fcjg from './fcjg'
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
doQuery, doQuery,
...@@ -82,11 +83,10 @@ ...@@ -82,11 +83,10 @@
data() { data() {
return { return {
DialogTitle:'复查',
/*需要的额外参数 */ /*需要的额外参数 */
showDialog: false, showDialog:false,
DialogName: '',
type: '', type: '',
DialogTitle: '',
/* 基础url*/ /* 基础url*/
baseUrl: 'kzzx/role', baseUrl: 'kzzx/role',
/* 查询参数*/ /* 查询参数*/
...@@ -98,40 +98,66 @@ ...@@ -98,40 +98,66 @@
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "班组", prop: "bmid", fieldType: "ftString",width:192,transform:{
url:'jcsj/common/bm/queryBz',label:'bmmc',value:'id'
}},
//
{label: "状态", prop: "zt", fieldType: "ftString",transform:{
url:'aqgl/yhgl/yhjl/init/zt',label:'name',value:'id'
}},
{label: "复查时间", prop: "fcsj", fieldType: "ftDateTime",width:300},
{label: "复查说明", prop: "fcsm", fieldType: "ftString",width:300},
{label: "整改说明", prop: "clff", fieldType: "ftString",width:300},
{label: "整改完成时间", prop: "clsj", fieldType: "ftDateTime"},
{label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"}, {label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300}, {label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300}, {label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
// {label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100}, {label: "隐患类型", prop: "flid", fieldType: "ftString",width:192,transform:{
// {label: "内容", prop: "nr", fieldType: "ftString",width:300}, url:'aqgl/yhgl/yhfl/query',label:'name',value:'id'
{label: "班组", prop: "bmid", fieldType: "ftString",width:192,transform:{ }},
url:'/jcsj/common/bm/queryBz',label:'bmmc',value:'id' {label: "隐患等级", prop: "dj", fieldType: "ftString",width:192,transform:{
url:'aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}}, }},
{label: "内容", prop: "nr", fieldType: "ftString",width:300},
// {label: "责任部门", prop: "bmName", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6}, // {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
// {label: "责任人", prop: "zrr", fieldType: "ftString",width:192}, {label: "责任人", prop: "zrrName", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192}, {label: "整改方案", prop: "zgfa", fieldType: "ftString",width:300},
{label: "隐患分类", prop: "yhflName", fieldType: "ftString",width:192}, {label: "管控措施", prop: "gkcs", fieldType: "ftString",width:300},
{label: "要求整改完成时间", prop: "yqzgsj", fieldType: "ftDateTime"},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clrName", fieldType: "ftString",width:192}, {label: "处理人", prop: "clrName", fieldType: "ftString",width:192},
{label: "处理时间", prop: "clsj", fieldType: "ftDateTime"}, // {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300}, // {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcrName", fieldType: "ftString",width:192}, {label: "复查人", prop: "fcrName", fieldType: "ftString",width:192},
{label: "上报人", prop: "sbrName", fieldType: "ftString",width:192},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"}, // {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300}, // {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{label: "处置人", prop: "czrName", fieldType: "ftString",width:192}, // {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
{label: "处置时间", prop: "czsj", fieldType: "ftDateTime"}, // {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300}, // {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6}, // {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"}, // {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300}, // {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "上报人", prop: "sbrName", fieldType: "ftString"}, // {label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"}, // {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
] ]
} }
}, },
methods: { methods: {
zdzrr(){
if (this.app.selectOne || this.app.clickOne) {
this.showDialog = true
} else {
this.$warning('请选中一行操作');
}
},
query: doQuery, query: doQuery,
/* 基础增*/ /* 基础增*/
apiAdd: doAdd, apiAdd: doAdd,
...@@ -147,7 +173,7 @@ ...@@ -147,7 +173,7 @@
}, },
components: { components: {
Edit, Edit,Fcjg
} }
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="隐患类型" ref="flid" prop="flid"> <el-form-item label="隐患类型" ref="flid" prop="flid">
<RelSelect :readonly="readonly" src='aqgl/yhgl/yhfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect> <RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/yhgl/yhfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -54,14 +54,16 @@ ...@@ -54,14 +54,16 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="整改完成日期" ref="zdzgfa" prop="zdzgfa"> <el-form-item label="整改完成日期" ref="yqzgsj" prop="yqzgsj">
<el-input :readonly="readonly" v-model="form.zdzgfa" ></el-input> <el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.yqzgsj" placeholder="选择日期">
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="责任人" ref="zrr" prop="zrr"> <el-form-item label="上报人" ref="sbr" prop="sbr">
<!-- <el-input :readonly="readonly" v-model="form.zrr" ></el-input> --> <!-- <el-input :readonly="readonly" v-model="form.zrr" ></el-input> -->
<personSelector :label="form.zrrName||'暂无'" @selected='zrrSelected' ></personSelector> <personSelector :label="form.sbrName||'暂无'" @selected='sbrSelected' ></personSelector>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -83,8 +85,8 @@ ...@@ -83,8 +85,8 @@
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
/* 赋值*/ /* 赋值*/
this.form.zrr=localStorage.getItem('userid') this.form.sbr=localStorage.getItem('userid')
this.form.zrrName=localStorage.getItem('username') this.form.sbrName=localStorage.getItem('username')
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqgl/yhglYhjlEdit", name: "aqgl/yhglYhjlEdit",
...@@ -100,6 +102,8 @@ ...@@ -100,6 +102,8 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
sbr:'',
sbrName:'',
gkcs:'', gkcs:'',
zgfa:'', zgfa:'',
zrrName:'', zrrName:'',
...@@ -126,7 +130,7 @@ ...@@ -126,7 +130,7 @@
flid:'', flid:'',
clr:'', clr:'',
yqzgsj:new Date().getTime(),
clsj:new Date().getTime(), clsj:new Date().getTime(),
clff:'', clff:'',
...@@ -187,8 +191,8 @@ ...@@ -187,8 +191,8 @@
} }
}, },
methods: { methods: {
zrrSelected(row){ sbrSelected(row){
this.form.zrr=row.id this.form.sbr=row.id
} }
} }
} }
......
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton>
<DeleteButton :app='app'></DeleteButton> <DeleteButton :app='app'></DeleteButton>
<AttachFileButton :app='app'></AttachFileButton> <!-- <AttachFileButton :app='app'></AttachFileButton>
<WorkFlowButton :app='app'></WorkFlowButton> <WorkFlowButton :app='app'></WorkFlowButton> -->
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<!-- 权限--> <!-- 权限-->
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
return { return {
...@@ -116,12 +116,14 @@ ...@@ -116,12 +116,14 @@
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6}, // {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{label: "责任人", prop: "zrrName", fieldType: "ftString",width:192}, {label: "责任人", prop: "zrrName", fieldType: "ftString",width:192},
{label: "要求整改完成时间", prop: "yqzgsj", fieldType: "ftDateTime"},
/* 要求整改完成时间 */ /* 要求整改完成时间 */
{label: "处理人", prop: "clrName", fieldType: "ftString",width:192}, {label: "处理人", prop: "clrName", fieldType: "ftString",width:192},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"}, // {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300}, // {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcr", fieldType: "ftString",width:192}, {label: "复查人", prop: "fcrName", fieldType: "ftString",width:192},
{label: "上报人", prop: "sbrName", fieldType: "ftString",width:192},
/* 检查人 */ /* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"}, // {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300}, // {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
...@@ -142,7 +144,7 @@ ...@@ -142,7 +144,7 @@
methods: { methods: {
selectedTree(e){ selectedTree(e){
this.queryParams.flid=e.id||'root' this.queryParams.flid=e.id||'root'
this.$refs['TablePager'].pageQuery()
}, },
tybz(a) { tybz(a) {
let nTy = false let nTy = false
......
<template> <template>
<div style="display: flex;">
<div class="min_full" style="width: 200px;border-right: 0px;"> <div class="min_full" >
<TreeBase :app='app' @selected='selectedTree'></TreeBase>
</div>
<div class="min_full" style="width: calc(100% - 200px)">
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition > <div class="search" v-condition >
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
...@@ -33,6 +30,19 @@ ...@@ -33,6 +30,19 @@
<span class="search-span">处理状态:</span> <span class="search-span">处理状态:</span>
<RelSelect src='aqgl/yhgl/yhjl/init/zt' clearable :match="{value:'id',label:'name'}" v-model='queryParams.zt' ></RelSelect> <RelSelect src='aqgl/yhgl/yhjl/init/zt' clearable :match="{value:'id',label:'name'}" v-model='queryParams.zt' ></RelSelect>
</div> </div>
</el-col>
</el-row>
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<el-checkbox v-model="queryParams.yq" true-label='Y' false-label="N" >逾期</el-checkbox>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">风险点:</span>
<el-input v-model="queryParams.fxd"></el-input>
</div>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
...@@ -40,10 +50,10 @@ ...@@ -40,10 +50,10 @@
<el-row class="tool-bar"> <el-row class="tool-bar">
<PrintButton :app='app'></PrintButton> <PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton> <!-- <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton> <CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton> <EditButton ref="edit" :app='app'></EditButton> -->
<DeleteButton :app='app'></DeleteButton> <!-- <DeleteButton :app='app'></DeleteButton> -->
<FieldButton :app='app'></FieldButton> <FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton> <ExcelButton :app='app'></ExcelButton>
<AttachFileButton :app='app' ></AttachFileButton> <AttachFileButton :app='app' ></AttachFileButton>
...@@ -52,13 +62,12 @@ ...@@ -52,13 +62,12 @@
</el-row> </el-row>
<!-- 表格--> <!-- 表格-->
<div class="tablePagers"> <div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' <TablePager :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'> @getRow='getRow'>
</TablePager> </TablePager>
</div> </div>
</div> </div>
</div>
</template> </template>
...@@ -85,7 +94,7 @@ ...@@ -85,7 +94,7 @@
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
return { return {
...@@ -102,7 +111,9 @@ ...@@ -102,7 +111,9 @@
ksrq:new Date().getTime()-1000*60*60*24*30, ksrq:new Date().getTime()-1000*60*60*24*30,
jsrq:new Date().getTime(), jsrq:new Date().getTime(),
bmid:'', bmid:'',
zt:'' zt:'',
yq:'N',
fxd:''
}, },
/* 树的标题 */ /* 树的标题 */
treeTitle: '单位列表', treeTitle: '单位列表',
...@@ -112,36 +123,56 @@ ...@@ -112,36 +123,56 @@
}, },
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "班组", prop: "bmid", fieldType: "ftString",width:192,transform:{
url:'jcsj/common/bm/queryBz',label:'bmmc',value:'id'
}},
//
// {label: "状态", prop: "zt", fieldType: "ftString",transform:{
// url:'aqgl/yhgl/yhjl/init/zt',label:'name',value:'id'
// }},
// {label: "整改说明", prop: "clff", fieldType: "ftString",width:300},
// {label: "整改完成时间", prop: "clsj", fieldType: "ftDateTime"},
{label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"}, {label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"},
/* */
{label: "整改日期", prop: "clsj", fieldType: "ftDateTime"},
{label: "复查日期", prop: "fcsj", fieldType: "ftDateTime"},
/* */
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300}, {label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300}, {label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
{label: "班组", prop: "bmid", fieldType: "ftString",width:192,transform:{ {label: "隐患类型", prop: "flid", fieldType: "ftString",width:192,transform:{
url:'/jcsj/common/bm/queryBz',label:'bmmc',value:'id' url:'aqgl/yhgl/yhfl/query',label:'name',value:'id'
}},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192,transform:{
url:'aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}}, }},
{label: "内容", prop: "nr", fieldType: "ftString",width:300}, {label: "内容", prop: "nr", fieldType: "ftString",width:300},
// {label: "责任部门", prop: "bmid", fieldType: "ftString",width:192}, // {label: "责任部门", prop: "bmName", fieldType: "ftString",width:192},
{label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:120}, // {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{label: "责任人", prop: "zrrName", fieldType: "ftString",width:192}, {label: "责任人", prop: "zrrName", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192}, {label: "整改方案", prop: "zgfa", fieldType: "ftString",width:300},
{label: "隐患分类", prop: "flid", fieldType: "ftString",width:192}, {label: "管控措施", prop: "gkcs", fieldType: "ftString",width:300},
{label: "要求整改完成时间", prop: "yqzgsj", fieldType: "ftDateTime"},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clrName", fieldType: "ftString",width:192}, {label: "处理人", prop: "clrName", fieldType: "ftString",width:192},
{label: "处理时间", prop: "clsj", fieldType: "ftDateTime"}, // {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
{label: "处理方法", prop: "clff", fieldType: "ftString",width:300}, // {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcrName", fieldType: "ftString",width:192}, {label: "复查人", prop: "fcrName", fieldType: "ftString",width:192},
{label: "上报人", prop: "sbrName", fieldType: "ftString",width:192},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"}, // {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300}, // {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{label: "处置人", prop: "czrName", fieldType: "ftString",width:192}, // {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
{label: "处置时间", prop: "czsj", fieldType: "ftDateTime"}, // {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300}, // {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6}, // {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"}, // {label: "附件数", prop: "attachcount", fieldType: "int"},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300}, {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300}, // {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "上报人", prop: "sbrName", fieldType: "ftString"}, // {label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "要求整改日期", prop: "yqzgsj", fieldType: "ftString"},
{label: "处罚金额", prop: "cfje", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"}, // {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
] ]
} }
......
<template> <template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'> <RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写--> <!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="发现日期" ref="fxrq" prop="fxrq"> <el-form-item label="发现日期" ref="fxrq" prop="fxrq">
...@@ -15,51 +15,59 @@ ...@@ -15,51 +15,59 @@
<el-input :readonly="readonly" v-model="form.fxd" ></el-input> <el-input :readonly="readonly" v-model="form.fxd" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="隐患地点" ref="yhdd" prop="yhdd"> <el-form-item label="隐患地点" ref="yhdd" prop="yhdd">
<el-input style='width: 100%;' :readonly="readonly" v-model="form.yhdd" ></el-input> <el-input :readonly="readonly" v-model="form.yhdd" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-col :span="24"> <el-form-item label="隐患类型" ref="flid" prop="flid">
<el-form-item label="内容" ref="nr" prop="nr"> <RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/yhgl/yhfl/query' :match="{value:'id',label:'name'}" v-model='form.flid' ></RelSelect>
<el-input type='textarea' :readonly="readonly" v-model="form.nr" ></el-input> </el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患等级" ref="dj" prop="dj">
<RelSelect style='width: 100%;' src='aqgl/fxyk/fxpc/init/wxdj' clearable :match="{value:'id',label:'name'}" v-model='form.dj' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="班组" ref="bmid" prop="bmid"> <el-form-item label="班组" ref="bmid" prop="bmid">
<RelSelect :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect> <RelSelect :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="24">
<el-form-item label="责任人" ref="zrr" prop="zrr"> <el-form-item label="隐患内容" ref="nr" prop="nr">
<personSelector :label="form.zrrName||'暂无'" @selected='zrrSelected' ></personSelector> <el-input type='textarea' :readonly="readonly" v-model="form.nr" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="隐患等级" ref="dj" prop="dj"> <el-form-item label="整改措施" ref="zgfa" prop="zgfa">
<RelSelect style='width: 100%;' src='aqgl/fxyk/fxpc/init/wxdj' clearable :match="{value:'id',label:'name'}" v-model='form.dj' ></RelSelect> <el-input type='textarea' :readonly="readonly" v-model="form.zgfa" ></el-input>
<!-- <el-input :readonly="readonly" v-model="form.dj" ></el-input> --> </el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="管控措施" ref="gkcs" prop="gkcs">
<el-input type='textarea' :readonly="readonly" v-model="form.gkcs" ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="处理人" ref="clr" prop="clr"> <el-form-item label="整改完成日期" ref="yqzgsj" prop="yqzgsj">
<personSelector :label="form.clrName||'暂无'" @selected='clrSelected' ></personSelector> <el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.yqzgsj" placeholder="选择日期">
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="复查时间" ref="fcsj" prop="fcsj"> <el-form-item label="上报人" ref="sbr" prop="sbr">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date" <!-- <el-input :readonly="readonly" v-model="form.zrr" ></el-input> -->
v-model="form.fcsj" placeholder="选择日期"> <personSelector :label="form.sbrName||'暂无'" @selected='sbrSelected' ></personSelector>
</el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
</el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz"> <el-form-item label="备注" ref="bz" prop="bz">
...@@ -76,7 +84,9 @@ ...@@ -76,7 +84,9 @@
mixins: [editMixin], mixins: [editMixin],
/* 存放index页面传递的额外参数*/ /* 存放index页面传递的额外参数*/
mounted() { mounted() {
/* 赋值*/
this.form.sbr=localStorage.getItem('userid')
this.form.sbrName=localStorage.getItem('username')
}, },
/* 组件名称*/ /* 组件名称*/
name: "aqgl/yhglYhjlEdit", name: "aqgl/yhglYhjlEdit",
...@@ -92,7 +102,10 @@ ...@@ -92,7 +102,10 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/ /* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: { form: {
clrName:'', sbr:'',
sbrName:'',
gkcs:'',
zgfa:'',
zrrName:'', zrrName:'',
id:'', id:'',
...@@ -117,7 +130,7 @@ ...@@ -117,7 +130,7 @@
flid:'', flid:'',
clr:'', clr:'',
yqzgsj:new Date().getTime(),
clsj:new Date().getTime(), clsj:new Date().getTime(),
clff:'', clff:'',
...@@ -178,11 +191,8 @@ ...@@ -178,11 +191,8 @@
} }
}, },
methods: { methods: {
zrrSelected(row){ sbrSelected(row){
this.form.zrr=row.id this.form.sbr=row.id
},
clrSelected(row){
this.form.clr=row.id
} }
} }
} }
......
<template> <template>
<div style="display: flex;">
<div class="min_full" style="width: 200px;border-right: 0px;"> <div class="min_full" >
<TreeBase :app='app' @selected='selectedTree'></TreeBase> <Zdzrr :app='this' v-if="showDialog" ></Zdzrr>
</div>
<div class="min_full" style="width: calc(100% - 200px)">
<!-- 查询条件--> <!-- 查询条件-->
<div class="search" v-condition > <div class="search" v-condition >
<SearchButton :app='app'></SearchButton> <SearchButton :app='app'></SearchButton>
...@@ -22,10 +20,8 @@ ...@@ -22,10 +20,8 @@
</el-col> </el-col>
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
<div class="search-item"> <div class="search-item">
<span class="search-span">责任单位:</span> <span class="search-span">班组:</span>
<RelSelect style="width: 100%;" src='/kzzx/bm/query' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.zrdw' ></RelSelect> <RelSelect style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' ></RelSelect>
<!-- <el-input v-model="queryParams.zrdw"
size="small" class="search-input"></el-input> -->
</div> </div>
</el-col> </el-col>
<el-col :span="6" class="search-col"> <el-col :span="6" class="search-col">
...@@ -40,6 +36,7 @@ ...@@ -40,6 +36,7 @@
<el-row class="tool-bar"> <el-row class="tool-bar">
<ViewButton ref="view" :app='app'></ViewButton> <ViewButton ref="view" :app='app'></ViewButton>
<AttachFileButton :app='app' ></AttachFileButton> <AttachFileButton :app='app' ></AttachFileButton>
<el-button size='mini' @click="zdzrr" type="primary">指定责任人</el-button>
<!-- 权限--> <!-- 权限-->
</el-row> </el-row>
...@@ -51,12 +48,12 @@ ...@@ -51,12 +48,12 @@
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import Zdzrr from './zdzrr'
/* 引入需要的接口*/ /* 引入需要的接口*/
import { import {
doQuery, doQuery,
...@@ -78,48 +75,53 @@ ...@@ -78,48 +75,53 @@
/* 初始额外赋值*/ /* 初始额外赋值*/
async mounted() { async mounted() {
this.$refs['TablePager'].pageQuery()
}, },
data() { data() {
return { return {
DialogTitle:'指定责任人',
/*需要的额外参数 */ /*需要的额外参数 */
showDialog:false,
/* 基础url*/ /* 基础url*/
baseUrl: '/aqgl/yhgl/yhjl', baseUrl: '/aqgl/yhgl/yhjl',
/* 查询参数*/ /* 查询参数*/
queryParams: { queryParams: {
ksrq:new Date().getTime()-60*1000*60*24*30, ksrq:new Date().getTime()-60*1000*60*24*30,
jsrq:new Date().getTime(), jsrq:new Date().getTime(),
zrdw:'', bmid:'',
flid:'' flid:''
}, },
/* 树的标题 */ /* 树的标题 */
treeTitle: '单位列表',
treeDefaultProps: {
children: 'children',
label: 'bmmc'
},
/* 表格标题对应参数*/ /* 表格标题对应参数*/
/* 表格标题对应参数*/ /* 表格标题对应参数*/
tableTitle: [ tableTitle: [
{label: "班组", prop: "bmid", fieldType: "ftString",width:192,transform:{
url:'jcsj/common/bm/queryBz',label:'bmmc',value:'id'
}},
{label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"}, {label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300}, {label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300}, {label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
{label: "班组", prop: "bmid", fieldType: "ftString",width:192,transform:{ {label: "隐患类型", prop: "flid", fieldType: "ftString",width:192,transform:{
url:'/jcsj/common/bm/queryBz',label:'bmmc',value:'id' url:'aqgl/yhgl/yhfl/query',label:'name',value:'id'
}},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192,transform:{
url:'aqgl/fxyk/fxpc/init/wxdj',label:'name',value:'id'
}}, }},
{label: "内容", prop: "nr", fieldType: "ftString",width:300}, {label: "内容", prop: "nr", fieldType: "ftString",width:300},
// {label: "责任部门", prop: "bmName", fieldType: "ftString",width:192}, // {label: "责任部门", prop: "bmName", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6}, // {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{label: "责任人", prop: "zrrName", fieldType: "ftString",width:192}, {label: "责任人", prop: "zrrName", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "yhdjName", fieldType: "ftString",width:192}, {label: "整改方案", prop: "zgfa", fieldType: "ftString",width:300},
{label: "管控措施", prop: "gkcs", fieldType: "ftString",width:300},
{label: "要求整改完成时间", prop: "yqzgsj", fieldType: "ftDateTime"},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192}, // {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clrName", fieldType: "ftString",width:192}, {label: "处理人", prop: "clrName", fieldType: "ftString",width:192},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"}, // {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300}, // {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
// {label: "复查人", prop: "fcr", fieldType: "ftString",width:192}, {label: "复查人", prop: "fcrName", fieldType: "ftString",width:192},
{label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"}, {label: "上报人", prop: "sbrName", fieldType: "ftString",width:192},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300}, // {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192}, // {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"}, // {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
...@@ -128,17 +130,20 @@ ...@@ -128,17 +130,20 @@
// {label: "附件数", prop: "attachcount", fieldType: "int"}, // {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300}, {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300}, // {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"}, {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"}, {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"}, // {label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"}, // {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
] ]
} }
}, },
methods: { methods: {
selectedTree(e){ zdzrr(){
this.queryParams.bmid=e.id||'root' if (this.app.selectOne || this.app.clickOne) {
this.$refs['TablePager'].pageQuery() this.showDialog = true
} else {
this.$warning('请选中一行操作');
}
}, },
query: doQuery, query: doQuery,
/* 基础增*/ /* 基础增*/
...@@ -158,7 +163,8 @@ ...@@ -158,7 +163,8 @@
}, },
components:{ components:{
Edit Edit,
Zdzrr
} }
......
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