Commit 67f05ad5 authored by 李苏's avatar 李苏 💬

隐患管理部分接口

parent bbf21cf4
......@@ -14,8 +14,9 @@
<el-form-item label="风险点" ref="fxd" prop="fxd">
<el-input :readonly="readonly" v-model="form.fxd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="24">
<el-form-item label="隐患地点" ref="yhdd" prop="yhdd">
<el-input :readonly="readonly" v-model="form.yhdd" ></el-input>
</el-form-item>
......@@ -25,6 +26,11 @@
<el-input :readonly="readonly" v-model="form.sbjb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上报人" ref="sbjb" prop="sbjb">
<personSelector :label="form.sbrName||'暂无'" @selected='sbrSelected' ></personSelector>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
......@@ -64,7 +70,8 @@
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
this.form.sbr=localStorage.getItem('userid')
this.form.sbrName=localStorage.getItem('username')
},
/* 组件名称*/
name: "aqgl/yhglYhjlEdit",
......@@ -76,6 +83,7 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
sbr:"",
id:'',
fxrq:new Date().getTime(),
......@@ -160,7 +168,9 @@
}
},
methods: {
sbrSelected(row){
this.form.sbr=row.code
}
}
}
</script>
......
......@@ -70,8 +70,6 @@
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<DeleteButton :app='app'></DeleteButton>
<AttachFileButton :app='app' ></AttachFileButton>
......@@ -132,30 +130,30 @@
{label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:48},
{label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100},
// {label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "责任部门", prop: "bmid", 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: "dj", fieldType: "ftString",width:192},
{label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clr", fieldType: "ftString",width:192},
{label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
{label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
{label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
{label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{label: "处置人", prop: "czr", fieldType: "ftString",width:192},
{label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
{label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
{label: "状态", prop: "zt", fieldType: "ftString",width:6},
{label: "附件数", prop: "attachcount", fieldType: "int"},
// {label: "处理人", prop: "clr", fieldType: "ftString",width:192},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
// {label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "上报人", prop: "sbr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
......
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="标题" ref="roleid" prop="roleid">
<el-input :readonly="readonly" v-model="form.roleid"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="内容" ref="roleid" prop="roleid">
<el-input :readonly="readonly" type="textarea" v-model="form.roleid"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="有效期至">
<el-date-picker style="width: 100%;"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="编制单位">
<el-select placeholder="请选择" style="width: 100%;" >
<!-- <el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option> -->
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!-- <div slot="reFooter">
<span slot="footer">
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div> -->
</RelDialog>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="发现日期" ref="fxrq" prop="fxrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.fxrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="风险点" ref="fxd" prop="fxd">
<el-input :readonly="readonly" v-model="form.fxd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="隐患地点" ref="yhdd" prop="yhdd">
<el-input :readonly="readonly" v-model="form.yhdd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上报级别" ref="sbjb" prop="sbjb">
<el-input :readonly="readonly" v-model="form.sbjb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上报人" ref="sbr" prop="sbr">
<personSelector :label="form.sbrName||'暂无'" @selected='sbrSelected' ></personSelector>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="内容" ref="nr" prop="nr">
<el-input :readonly="readonly" v-model="form.nr" ></el-input>
</el-form-item>
</el-col> -->
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="责任部门" ref="bmid" prop="bmid">
<el-input :readonly="readonly" v-model="form.bmid" ></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="制定整改方案" ref="zdzgfa" prop="zdzgfa">
<el-input :readonly="readonly" v-model="form.zdzgfa" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="责任人" ref="zrr" prop="zrr">
<el-input :readonly="readonly" v-model="form.zrr" ></el-input>
</el-form-item>
</el-col> -->
<el-col :span="12">
<el-form-item label="隐患等级" ref="dj" prop="dj">
<el-input :readonly="readonly" v-model="form.dj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患分类" ref="flid" prop="flid">
<el-input :readonly="readonly" v-model="form.flid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="复查人" ref="fcr" prop="fcr">
<el-input :readonly="readonly" v-model="form.fcr" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="处理人" ref="clr" prop="clr">
<el-input :readonly="readonly" v-model="form.clr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处理时间" ref="clsj" prop="clsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.clsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="处理方法" ref="clff" prop="clff">
<el-input :readonly="readonly" v-model="form.clff" ></el-input>
</el-form-item>
</el-col> -->
<!-- <el-col :span="12">
<el-form-item label="复查时间" ref="fcsj" prop="fcsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.fcsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col> -->
</el-row>
<el-row :gutter="20">
<!-- <el-col :span="12">
<el-form-item label="复查结果" ref="fcjg" prop="fcjg">
<el-input :readonly="readonly" v-model="form.fcjg" ></el-input>
</el-form-item>
</el-col> -->
<el-col :span="12">
<el-form-item label="处置人" ref="czr" prop="czr">
<el-input :readonly="readonly" v-model="form.czr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处置时间" ref="czsj" prop="czsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.czsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="处置意见" ref="czyj" prop="czyj">
<el-input :readonly="readonly" v-model="form.czyj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="附件数" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item>
</el-col> -->
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input type="textarea" :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="工作流状态" ref="wfpname" prop="wfpname">
<el-input :readonly="readonly" v-model="form.wfpname" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col> -->
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
roleid: '',
rolename: '',
bz: "",
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
// this.form.sbr=localStorage.getItem('userid')
// this.form.sbrName=localStorage.getItem('username')
this.form.sbr='TEST01'
},
/* form提交时的规则,具体规则参考官网*/
rules: {
roleid: [{
required: true,
trigger: 'blur'
}, ],
rolename: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
/* 组件名称*/
name: "yhglYhjlEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
sbr:'',
id:'',
fxrq:new Date().getTime(),
fxd:'',
yhdd:'',
sbjb:'',
nr:'',
bmid:'',
zdzgfa:'',
zrr:'',
dj:'',
flid:'',
clr:'',
clsj:new Date().getTime(),
clff:'',
fcr:'',
fcsj:new Date().getTime(),
fcjg:'',
czr:'',
czsj:new Date().getTime(),
czyj:'',
zt:'',
attachcount:'',
bz:'',
wfid:'',
wfinstid:'',
wfpid:'',
wfpname:'',
wfwuserid:'',
wfwusername:'',
wfhuserid:'',
wfhusername:'',
whrid:'',
whr:'',
whsj:new Date().getTime(),
cjrid:'',
cjr:'',
cjsj:new Date().getTime(),
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
sbrSelected(row){
this.form.sbr=row.code
}
}
}
}
</script>
<style scoped lang="scss">
......
......@@ -114,29 +114,29 @@
{label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:48},
{label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100},
// {label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "责任部门", prop: "bmid", fieldType: "ftString",width:192},
{label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{label: "责任人", prop: "zrr", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
// {label: "责任人", prop: "zrr", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192},
{label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clr", fieldType: "ftString",width:192},
{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: "fcsj", fieldType: "ftDateTime"},
{label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{label: "处置人", prop: "czr", fieldType: "ftString",width:192},
{label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
{label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
{label: "状态", prop: "zt", fieldType: "ftString",width:6},
{label: "附件数", prop: "attachcount", fieldType: "int"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "上报人", prop: "sbr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
......
......@@ -30,30 +30,6 @@
</el-col>
</el-row>
<!-- 测试 -->
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">用户:</span>
<el-input v-model="queryParams.usercx" size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">电话:</span>
<el-input v-model="queryParams.phone" size="small" class="search-input"></el-input>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='Y' false-label='' v-model="queryParams.login">显示登录用户</el-checkbox>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<el-checkbox true-label='' false-label='N' v-model="queryParams.tybz">显示所有用户</el-checkbox>
</div>
</el-col>
</el-row>
</div>
......@@ -76,15 +52,6 @@
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" >
<template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
active-color="#13ce66" inactive-color="#eee">
</el-switch>
</template>
</el-table-column>
</template>
</TablePager>
</div>
......@@ -137,30 +104,30 @@
{label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:48},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100},
{label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "责任部门", prop: "bmid", 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: "dj", fieldType: "ftString",width:192},
{label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clr", fieldType: "ftString",width:192},
{label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
{label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
{label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
{label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{label: "处置人", prop: "czr", fieldType: "ftString",width:192},
{label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
{label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
{label: "状态", prop: "zt", fieldType: "ftString",width:6},
{label: "附件数", prop: "attachcount", fieldType: "int"},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
// {label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
......
......@@ -86,7 +86,7 @@
tableTitle: [
{label: "分类", prop: "flid", fieldType: "ftString",width:192},
{label: "项目", prop: "xm", fieldType: "ftString",width:300},
{label: "隐患等级", prop: "yhdj", fieldType: "ftString",width:48},
{label: "隐患等级", prop: "yhdj", fieldType: "ftString",width:100},
{label: "考核分数", prop: "khfs", fieldType: "int"},
{label: "罚款金额", prop: "fkje", fieldType: "int"},
{label: "内容", prop: "content", fieldType: "ftString",width:300},
......
......@@ -72,6 +72,17 @@
<el-input :readonly="readonly" v-model="form.clff" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处罚金额" ref="cfje" prop="cfje">
<el-input :readonly="readonly" v-model="form.cfje" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上报人" ref="sbr" prop="sbr">
<personSelector :label="form.sbrName||'暂无'" @selected='sbrSelected' ></personSelector>
<!-- <el-input :readonly="readonly" v-model="form.sbr" ></el-input> -->
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="复查人" ref="fcr" prop="fcr">
<el-input :readonly="readonly" v-model="form.fcr" ></el-input>
......@@ -84,6 +95,20 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="要求整改日期" ref="yqzgsj" prop="yqzgsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.yqzgsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处置时间" ref="czsj" prop="czsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.czsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
......@@ -96,16 +121,10 @@
<el-input :readonly="readonly" v-model="form.czr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处置时间" ref="czsj" prop="czsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.czsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="24">
<el-form-item label="处置意见" ref="czyj" prop="czyj">
<el-input :readonly="readonly" v-model="form.czyj" ></el-input>
<el-input type="textarea" :readonly="readonly" v-model="form.czyj" ></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -118,7 +137,8 @@
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
this.form.sbr=localStorage.getItem('userid')
this.form.sbrName=localStorage.getItem('username')
},
/* 组件名称*/
name: "aqgl/yhglYhjlEdit",
......@@ -134,6 +154,9 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
yqzgsj:'',
sbr:"",
cfje:'',
id:'',
fxrq:new Date().getTime(),
......@@ -213,12 +236,14 @@
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
sbrSelected(row){
this.form.sbr=row.code
}
}
}
</script>
......
......@@ -127,10 +127,10 @@
{label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:48},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100},
{label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "责任部门", prop: "bmid", fieldType: "ftString",width:192},
{label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:120},
{label: "责任人", prop: "zrr", fieldType: "ftString",width:192},
{label: "隐患等级", prop: "dj", fieldType: "ftString",width:192},
{label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
......@@ -138,19 +138,21 @@
{label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
{label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
{label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
{label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{label: "处置人", prop: "czr", fieldType: "ftString",width:192},
{label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
{label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
{label: "状态", prop: "zt", fieldType: "ftString",width:6},
{label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "上报人", prop: "sbr", fieldType: "ftString"},
{label: "要求整改日期", prop: "yqzgsj", fieldType: "ftString"},
{label: "处罚金额", prop: "cfje", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
......
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="检验项目" ref="userid" prop="userid">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患等级" ref="username" prop="username">
<el-select style="width: 100%;" >
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item :span="12" label="处罚金额">
<el-input :readonly="readonly" v-toUpperCase v-model="form.userid"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="考核分数">
<el-input :readonly="readonly" v-model="form.phone"></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="检验内容">
<el-input type="textarea" :readonly="readonly" v-model="form.bz"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!-- <div slot="reFooter">
<span slot="footer">
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div> -->
</RelDialog>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="发现日期" ref="fxrq" prop="fxrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.fxrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="风险点" ref="fxd" prop="fxd">
<el-input :readonly="readonly" v-model="form.fxd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患地点" ref="yhdd" prop="yhdd">
<el-input :readonly="readonly" v-model="form.yhdd" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="上报级别" ref="sbjb" prop="sbjb">
<el-input :readonly="readonly" v-model="form.sbjb" ></el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="内容" ref="nr" prop="nr">
<el-input type='textarea' :readonly="readonly" v-model="form.nr" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="责任部门" ref="bmid" prop="bmid">
<el-input :readonly="readonly" v-model="form.bmid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="责任人" ref="zrr" prop="zrr">
<el-input :readonly="readonly" v-model="form.zrr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患等级" ref="dj" prop="dj">
<el-input :readonly="readonly" v-model="form.dj" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="处理人" ref="clr" prop="clr">
<el-input :readonly="readonly" v-model="form.clr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="复查时间" ref="fcsj" prop="fcsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.fcsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input type='textarea' :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
this.app.apiTreeQuery({}).then(res=>{
this.bmList=res.data.records
})
},
/* 组件名称*/
name: 'roleManagementEdit',
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
bmid:'',
userid: '',
username: '',
phone:'',
email:'',
bz: "",
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* form提交时的规则,具体规则参考官网*/
rules: {
userid: [{
required: true,
trigger: 'blur'
}, ],
username: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
/* 组件名称*/
name: "aqgl/yhglYhjlEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
id:'',
fxrq:new Date().getTime(),
fxd:'',
yhdd:'',
sbjb:'',
nr:'',
bmid:'',
zdzgfa:'',
zrr:'',
dj:'',
flid:'',
clr:'',
clsj:new Date().getTime(),
clff:'',
fcr:'',
fcsj:new Date().getTime(),
fcjg:'',
czr:'',
czsj:new Date().getTime(),
czyj:'',
zt:'',
attachcount:'',
bz:'',
wfid:'',
wfinstid:'',
wfpid:'',
wfpname:'',
wfwuserid:'',
wfwusername:'',
wfhuserid:'',
wfhusername:'',
whrid:'',
whr:'',
whsj:new Date().getTime(),
cjrid:'',
cjr:'',
cjsj:new Date().getTime(),
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
roleid: [{
required: true,
trigger: 'blur'
}, ],
rolename: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
}
}
</script>
<style scoped lang="scss">
......
......@@ -54,15 +54,6 @@
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" >
<template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
active-color="#13ce66" inactive-color="#eee">
</el-switch>
</template>
</el-table-column>
</template>
</TablePager>
</div>
......@@ -98,17 +89,7 @@
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
powerList: [{
name: '分配'
}, {
name: '复制'
}, {
name: '查看'
}],
/* 基础url*/
baseUrl: '/aqgl/yhgl/yhjl',
/* 查询参数*/
......@@ -127,28 +108,28 @@
{label: "发现日期", prop: "fxrq", fieldType: "ftDateTime"},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:48},
{label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100},
{label: "内容", prop: "nr", fieldType: "ftString",width:300},
{label: "责任部门", prop: "bmid", 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: "dj", fieldType: "ftString",width:192},
{label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{label: "处理人", prop: "clr", fieldType: "ftString",width:192},
{label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
{label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
// {label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
{label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
{label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{label: "处置人", prop: "czr", fieldType: "ftString",width:192},
{label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
{label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
{label: "状态", prop: "zt", fieldType: "ftString",width:6},
{label: "附件数", prop: "attachcount", fieldType: "int"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
......
<template>
<div class="min_full" style="height: 140vh;">
<div class="min_full" style="height: 40%;">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
......
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