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

三违页面迁移 荣誉管理

parent 9019a882
......@@ -503,6 +503,108 @@ export const powerRoutes=[
}
]
},
/* 荣誉管理*/
{
path: '/honorMag',
component: 'Layout',
hidden: false,
alwaysShow:true,
redirect: 'maintainTV',
meta: {title: "荣誉管理", icon: "fa-cog", noCache: false, link: null,mkid:904000000},
children: [
{
component:'honorMag/homePage/index',
hidden:false,
meta:{
"title": "荣誉墙",
"icon": "",
"noCache": false,
"link": null,
"mkid":'test',
},
name:'homePage',
path:"homePage"
},
{
component:'honorMag/maintainTV/index',
hidden:false,
meta:{
"title": "维护三违处罚标准",
"icon": "",
"noCache": false,
"link": null,
"mkid":904000200,
},
name:'maintainTV',
path:"maintainTV"
},
{
component:'honorMag/enterTV/index',
hidden:false,
meta:{
"title": "录入三违情况记录",
"icon": "",
"noCache": false,
"link": null,
"mkid":904000400,
},
name:'enterTV',
path:"enterTV"
},
{
component:'honorMag/tFPasses/index',
hidden:false,
meta:{
"title": "三违过五关",
"icon": "",
"noCache": false,
"link": null,
"mkid":904000600,
},
name:'tFPasses',
path:"tFPasses"
},
{
component:'honorMag/correctTV/index',
hidden:false,
meta:{
"title": "三违行为纠正",
"icon": "",
"noCache": false,
"link": null,
"mkid":904000800,
},
name:'correctTV',
path:"correctTV"
},
{
component:'honorMag/queryRecords/index',
hidden:false,
meta:{
"title": "查询人员三违记录",
"icon": "",
"noCache": false,
"link": null,
"mkid":904001000,
},
name:'queryRecords',
path:"queryRecords"
},
{
component:'honorMag/punishmentRecord/index',
hidden:false,
meta:{
"title": "安全处罚记录管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":904001200,
},
name:'punishmentRecord',
path:"punishmentRecord"
}
]
},
/* 应急管理*/
{
path: '/contingency',
......
<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-input :readonly="readonly" v-model="form.userid" ></el-input> -->
<el-form-item label="姓名" ref="userid" prop="userid">
<personSelector :label="form.wzr||form.userid||'暂无'" @selected='wgrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系手机" >
<el-input :readonly="true" v-model="form.phone" ></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">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所在部门" ref="bzid" prop="bzid">
<RelSelect linkage :linkParams="{pid:form.bmid}" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bzid' ></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="违章日期" ref="wzrq" prop="wzrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.wzrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="处罚金额" ref="cfje" prop="cfje">
<el-input type='number' :readonly="readonly" v-model="form.cfje" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col> -->
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="违章行为" ref="wzxw" prop="wzxw">
<el-input type='textarea' :readonly="readonly" v-model="form.wzxw" ></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row :gutter="20">
<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-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="bgcont" prop="bgcont">
<el-input :readonly="readonly" v-model="form.bgcont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育人" ref="aqjyrid" prop="aqjyrid">
<el-input :readonly="readonly" v-model="form.aqjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育时间" ref="aqjysj" prop="aqjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.aqjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育内容" ref="aqcont" prop="aqcont">
<el-input :readonly="readonly" v-model="form.aqcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="反思内容" ref="fscont" prop="fscont">
<el-input :readonly="readonly" v-model="form.fscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="谈话层级" ref="ldglcj" prop="ldglcj">
<el-input :readonly="readonly" v-model="form.ldglcj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="教育人编码" ref="ldjyrid" prop="ldjyrid">
<el-input :readonly="readonly" v-model="form.ldjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被教育人编码" ref="ldbjyrid" prop="ldbjyrid">
<el-input :readonly="readonly" v-model="form.ldbjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育时间" ref="ldjysj" prop="ldjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ldjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育内容" ref="ldcont" prop="ldcont">
<el-input :readonly="readonly" v-model="form.ldcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="家属教育人" ref="jsjyr" prop="jsjyr">
<el-input :readonly="readonly" v-model="form.jsjyr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育时间" ref="jsjysj" prop="jsjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jsjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育内容" ref="jscont" prop="jscont">
<el-input :readonly="readonly" v-model="form.jscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正措施" ref="jzcs" prop="jzcs">
<el-input :readonly="readonly" v-model="form.jzcs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正结果" ref="jzjg" prop="jzjg">
<el-input :readonly="readonly" v-model="form.jzjg" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正验证人编码" ref="jzyzrid" prop="jzyzrid">
<el-input :readonly="readonly" v-model="form.jzyzrid" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="纠正验证时间" ref="jzyzsj" prop="jzyzsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jzyzsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处罚标志" ref="cfbz" prop="cfbz">
<el-input :readonly="readonly" v-model="form.cfbz" ></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: "enterTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {phone:'',
//ID
id:'',
//部门ID
bmid:'',
//班组ID
bzid:'',
//违规人ID
userid:'',
//违章日期
wzrq:new Date().getTime(),
//违章行为
wzxw:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//状态
zt:'',
//工作流ID
wfid:'',
//工作流实例号
wfinstid:'',
//工作流状态ID
wfpid:'',
//工作流状态
wfpname:'',
//待处理人id
wfwuserid:'',
//待处理人
wfwusername:'',
//已处理人id
wfhuserid:'',
//已处理人
wfhusername:'',
//状态
zt:'',
//曝光内容
bgcont:'',
//安全教育人
aqjyrid:'',
//安全教育时间
aqjysj:new Date().getTime(),
//安全教育内容
aqcont:'',
//反思内容
fscont:'',
//谈话层级
ldglcj:'',
//教育人编码
ldjyrid:'',
//被教育人编码
ldbjyrid:'',
//领导教育时间
ldjysj:new Date().getTime(),
//领导教育内容
ldcont:'',
//家属教育人
jsjyr:'',
//家属教育时间
jsjysj:new Date().getTime(),
//家属教育内容
jscont:'',
//纠正措施
jzcs:'',
//纠正结果
jzjg:'',
//纠正验证人编码
jzyzrid:'',
//纠正验证时间
jzyzsj:new Date().getTime(),
//处罚标志
cfbz:'',
//处罚金额
cfje:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
bmid: [{
required: true,
trigger: 'blur'
}, ],
bzid: [{
required: true,
trigger: 'blur'
}, ],
userid: [{
required: true,
trigger: 'blur'
}, ],
wzrq: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
wgrSelected(row){
this.form.userid=row.id
this.form.phone=row.phone||''
}
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="form-detail">
<el-row class="tool-bar">
<!-- <AttachFileButton :params="{childPath:'BGLX'}" :app='vMain'></AttachFileButton> -->
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<br>
<el-form ref="form" label-width='80px' >
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="纠正措施">
<el-input v-model='vMain.rowItem.jzcs' :readonly="readonly" type="textarea" rows="5" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="纠正结果">
<el-input v-model='vMain.rowItem.jzjg' :readonly="readonly" type="textarea" rows="5" >
</el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="验证人">
<personSelector :readonly="readonly" :label="vMain.rowItem.jzyzrName||vMain.rowItem.jzyzrid||'暂无'" @selected='yzrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="验证时间">
<el-date-picker value-format="timestamp" style='width:100%' v-model='vMain.rowItem.jzyzsj' :readonly="readonly" ></el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
export default {
data() {
return {
readonly:true,
}
},
props:['vMain'],
methods: {
yzrSelected(row){
this.vMain.rowItem.id=row.id
},
save(){
let params=this.vMain.rowItem
this.vMain.apiUpdate(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
this.vMain.$refs['TablePager'].reLoad()
let tableData=this.vMain.$refs['TablePager'].tableData
let nowIndex=false
tableData.forEach((data,index)=>{
if(data.id==params.master.id){
nowIndex=index
}
})
if(nowIndex!==false){
this.vMain.$refs['TablePager'].tableData.splice(nowIndex,1,params.master)
this.vMain.$refs['TablePager'].setCurrent(params.master)
}
} else {
this.$error(res.message || '更新失败')
}
})
}
}
}
</script>
<style scoped>
.form-detail{
height: 500px;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
</style>
<template>
<div class="min_full" style="height: 140vh;">
<div class="min_full" style="height: 40%;">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<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.ryxx' ></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始时间:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.beginDate"></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束时间:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.endDate"></el-date-picker>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<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> -->
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
<div class="min_full" style="height: 60%;padding: 10px;">
<!-- tabs -->
<Exposure :vMain='this' />
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/threeViolations/enterTV.js';
/* edit页面*/
import Edit from './edit'
import Exposure from './exposure.vue'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery({setFirstCurrent:true})
},
data() {
return {
activeName: 'first',
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/swgl/swjl',
/* 查询参数*/
queryParams: {
ryxx:'',
beginDate:new Date().getTime()-1000*60*60*24*30,
endDate:new Date().getTime(),
zt:'J'
},
/* 表格标题对应参数*/
tableTitle: [
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:160},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
{label: "三违等级", prop: "swdjName", fieldType: "ftString",width:280},
{label: "三违类型", prop: "wglxName", fieldType: "ftString",width:280}
// {label: "备注", prop: "bz", 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: "zt", fieldType: "ftString",width:6},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "曝光内容", prop: "bgcont", fieldType: "ftString",width:300},
// {label: "安全教育人", prop: "aqjyrid", fieldType: "ftString",width:192},
// {label: "安全教育时间", prop: "aqjysj", fieldType: "ftDateTime"},
// {label: "安全教育内容", prop: "aqcont", fieldType: "ftString",width:300},
// {label: "反思内容", prop: "fscont", fieldType: "ftString",width:300},
// {label: "谈话层级", prop: "ldglcj", fieldType: "ftString",width:60},
// {label: "教育人编码", prop: "ldjyrid", fieldType: "ftString",width:192},
// {label: "被教育人编码", prop: "ldbjyrid", fieldType: "ftString",width:192},
// {label: "领导教育时间", prop: "ldjysj", fieldType: "ftDateTime"},
// {label: "领导教育内容", prop: "ldcont", fieldType: "ftString",width:300},
// {label: "家属教育人", prop: "jsjyr", fieldType: "ftString",width:180},
// {label: "家属教育时间", prop: "jsjysj", fieldType: "ftDateTime"},
// {label: "家属教育内容", prop: "jscont", fieldType: "ftString",width:300},
// {label: "纠正措施", prop: "jzcs", fieldType: "ftString",width:300},
// {label: "纠正结果", prop: "jzjg", fieldType: "ftString",width:300},
// {label: "纠正验证人编码", prop: "jzyzrid", fieldType: "ftString",width:192},
// {label: "纠正验证时间", prop: "jzyzsj", fieldType: "ftDateTime"},
// {label: "处罚标志", prop: "cfbz", fieldType: "ftString",width:60},
// {label: "处罚金额", prop: "cfje", fieldType: "float"},
]
}
},
methods: {
handleClick(val){
console.log(val,'val')
},
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
},
},
components: {
Edit,
Exposure,
}
}
</script>
<style scoped>
/deep/.el-tabs__item {
font-size: 13px;
color: #666;
}
</style>
<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-input :readonly="readonly" v-model="form.userid" ></el-input> -->
<el-form-item label="三违人员" ref="userid" prop="userid">
<personSelector :label="form.wzr||form.userid||'暂无'" @selected='wgrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="12">
<!--<el-form-item label="处罚标准" ref="swbzid" prop="swbzid">-->
<!--<RelSelect style="width: 100%;" :readonly="readonly" src='aqgl/swgl/swcfbz/query' :match="{value:'id',label:'swdjName' + 'wglxName'}" v-model='form.swbzid' ></RelSelect>-->
<!--</el-form-item>-->
<el-form-item label="处罚标准" ref="swbzid" prop="swbzid">
<el-select style="width: 100%;" v-model="form.swbzid" placeholder="">
<el-option v-for="(item,index) in cfbzList" :key="item.id" :label="item.wglxName + '______' + item.swdjName" :value="item.id"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="违章日期" ref="wzrq" prop="wzrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.wzrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="违章行为" ref="wzxw" prop="wzxw">
<el-input type='textarea' :readonly="readonly" v-model="form.wzxw" ></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row :gutter="20">
<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-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="bgcont" prop="bgcont">
<el-input :readonly="readonly" v-model="form.bgcont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育人" ref="aqjyrid" prop="aqjyrid">
<el-input :readonly="readonly" v-model="form.aqjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育时间" ref="aqjysj" prop="aqjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.aqjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育内容" ref="aqcont" prop="aqcont">
<el-input :readonly="readonly" v-model="form.aqcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="反思内容" ref="fscont" prop="fscont">
<el-input :readonly="readonly" v-model="form.fscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="谈话层级" ref="ldglcj" prop="ldglcj">
<el-input :readonly="readonly" v-model="form.ldglcj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="教育人编码" ref="ldjyrid" prop="ldjyrid">
<el-input :readonly="readonly" v-model="form.ldjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被教育人编码" ref="ldbjyrid" prop="ldbjyrid">
<el-input :readonly="readonly" v-model="form.ldbjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育时间" ref="ldjysj" prop="ldjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ldjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育内容" ref="ldcont" prop="ldcont">
<el-input :readonly="readonly" v-model="form.ldcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="家属教育人" ref="jsjyr" prop="jsjyr">
<el-input :readonly="readonly" v-model="form.jsjyr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育时间" ref="jsjysj" prop="jsjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jsjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育内容" ref="jscont" prop="jscont">
<el-input :readonly="readonly" v-model="form.jscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正措施" ref="jzcs" prop="jzcs">
<el-input :readonly="readonly" v-model="form.jzcs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正结果" ref="jzjg" prop="jzjg">
<el-input :readonly="readonly" v-model="form.jzjg" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正验证人编码" ref="jzyzrid" prop="jzyzrid">
<el-input :readonly="readonly" v-model="form.jzyzrid" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="纠正验证时间" ref="jzyzsj" prop="jzyzsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jzyzsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处罚标志" ref="cfbz" prop="cfbz">
<el-input :readonly="readonly" v-model="form.cfbz" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
import {doQueryCfbz} from '@/api/threeViolations/enterTV.js';
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
doQueryCfbz({}).then(e => {
this.cfbzList = e.data.records || []
})
},
/* 组件名称*/
name: "enterTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
cfbzList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {phone:'',
//ID
id:'',
//部门ID
bmid:'',
//班组ID
bzid:'',
//违规人ID
userid:'',
//违章日期
wzrq: new Date().getTime(),
//违章行为
wzxw:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
//系统版本
sysversion:'',
//状态
zt:'',
//工作流ID
wfid:'',
//工作流实例号
wfinstid:'',
//工作流状态ID
wfpid:'',
//工作流状态
wfpname:'',
//待处理人id
wfwuserid:'',
//待处理人
wfwusername:'',
//已处理人id
wfhuserid:'',
//已处理人
wfhusername:'',
//状态
zt:'',
//曝光内容
bgcont:'',
//安全教育人
aqjyrid:'',
//安全教育时间
aqjysj:'',
//安全教育内容
aqcont:'',
//反思内容
fscont:'',
//谈话层级
ldglcj:'',
//教育人编码
ldjyrid:'',
//被教育人编码
ldbjyrid:'',
//领导教育时间
ldjysj:'',
//领导教育内容
ldcont:'',
//家属教育人
jsjyr:'',
//家属教育时间
jsjysj:'',
//家属教育内容
jscont:'',
//纠正措施
jzcs:'',
//纠正结果
jzjg:'',
//纠正验证人编码
jzyzrid:'',
//纠正验证时间
jzyzsj:'',
//处罚标志
cfbz:'',
//处罚金额
cfje:'',
swbzid:''
},
/* form提交时的规则,具体规则参考官网*/
rules: {
userid: [{required: true},
],
swbzid: [{required: true},
],
wzrq: [{required: true},
]
/* bmid: [{
required: true,
trigger: 'blur'
}, ],
gsid: [{
required: true,
trigger: 'blur'
}, ],
bzid: [{
required: true,
trigger: 'blur'
}, ],
userid: [{
required: true,
trigger: 'blur'
}, ],
wzrq: [{
required: true,
trigger: 'blur'
}, ]*/
}
}
},
methods: {
wgrSelected(row){
this.form.userid=row.id
this.form.phone=row.phone||''
this.form.bmid=row.bmid||''
}
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<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.ryxx' ></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<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>
<AttachFileShow :params="{childPath:'SWXX'}" :app='app'></AttachFileShow>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<el-button @click="doSwCommit" size='mini'type="primary">确认</el-button>
<el-button @click="doSwCancel" size='mini'type="primary">取消</el-button>
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete,
doQueryCfbz,
doCommit,
doCancel
} from '@/api/threeViolations/enterTV.js';
/* edit页面*/
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery({setFirstCurrent:true})
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/swgl/swjl',
/* 查询参数*/
queryParams: {
ryxx: ''
// zt:'I'
},
/* 表格标题对应参数*/
tableTitle: [
//{label: "状态", prop: "ztName", fieldType: "ftString",width:90},
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:140},
//{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:140},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:140},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
{label: "三违等级", prop: "swdjName", fieldType: "ftString",width:280},
{label: "三违类型", prop: "wglxName", fieldType: "ftString",width:280},
{label: "处理状态", prop: "ztName", fieldType: "ftString",width:280},
// {label: "备注", prop: "bz", 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: "zt", fieldType: "ftString",width:6},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "曝光内容", prop: "bgcont", fieldType: "ftString",width:300},
// {label: "安全教育人", prop: "aqjyrid", fieldType: "ftString",width:192},
// {label: "安全教育时间", prop: "aqjysj", fieldType: "ftDateTime"},
// {label: "安全教育内容", prop: "aqcont", fieldType: "ftString",width:300},
// {label: "反思内容", prop: "fscont", fieldType: "ftString",width:300},
// {label: "谈话层级", prop: "ldglcj", fieldType: "ftString",width:60},
// {label: "教育人编码", prop: "ldjyrid", fieldType: "ftString",width:192},
// {label: "被教育人编码", prop: "ldbjyrid", fieldType: "ftString",width:192},
// {label: "领导教育时间", prop: "ldjysj", fieldType: "ftDateTime"},
// {label: "领导教育内容", prop: "ldcont", fieldType: "ftString",width:300},
// {label: "家属教育人", prop: "jsjyr", fieldType: "ftString",width:180},
// {label: "家属教育时间", prop: "jsjysj", fieldType: "ftDateTime"},
// {label: "家属教育内容", prop: "jscont", fieldType: "ftString",width:300},
// {label: "纠正措施", prop: "jzcs", fieldType: "ftString",width:300},
// {label: "纠正结果", prop: "jzjg", fieldType: "ftString",width:300},
// {label: "纠正验证人编码", prop: "jzyzrid", fieldType: "ftString",width:192},
// {label: "纠正验证时间", prop: "jzyzsj", fieldType: "ftDateTime"},
// {label: "处罚标志", prop: "cfbz", fieldType: "ftString",width:60},
//{label: "处罚金额", prop: "cfje", fieldType: "float"},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
},
doSwCommit(){
if (this.app.selectOne || this.app.clickOne) {
this.singleItem.id&&doCommit(this.singleItem).then(e=>{
if(e.success){
this.$success('操作成功')
this.$refs['TablePager'].reLoad()
}
})
} else {
this.$warning('请选中一行操作');
}
},
doSwCancel(){
if (this.app.selectOne || this.app.clickOne) {
this.singleItem.id&&doCancel(this.singleItem).then(e=>{
if(e.success){
this.$success('操作成功')
this.$refs['TablePager'].reLoad()
}
})
} else {
this.$warning('请选中一行操作');
}
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
<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="4">
<el-form-item label="部门ID" ref="bmid" prop="bmid">
<el-input :readonly="readonly" v-model="form.bmid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="班组ID" ref="bzid" prop="bzid">
<el-input :readonly="readonly" v-model="form.bzid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="违规人ID" ref="userid" prop="userid">
<el-input :readonly="readonly" v-model="form.userid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="违章日期" ref="wzrq" prop="wzrq">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.wzrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="违章行为" ref="wzxw" prop="wzxw">
<el-input :readonly="readonly" v-model="form.wzxw" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="4">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<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="4">
<el-form-item label="曝光内容" ref="bgcont" prop="bgcont">
<el-input :readonly="readonly" v-model="form.bgcont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="安全教育人" ref="aqjyrid" prop="aqjyrid">
<el-input :readonly="readonly" v-model="form.aqjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="安全教育时间" ref="aqjysj" prop="aqjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.aqjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="安全教育内容" ref="aqcont" prop="aqcont">
<el-input :readonly="readonly" v-model="form.aqcont" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="4">
<el-form-item label="反思内容" ref="fscont" prop="fscont">
<el-input :readonly="readonly" v-model="form.fscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="谈话层级" ref="ldglcj" prop="ldglcj">
<el-input :readonly="readonly" v-model="form.ldglcj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="教育人编码" ref="ldjyrid" prop="ldjyrid">
<el-input :readonly="readonly" v-model="form.ldjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="被教育人编码" ref="ldbjyrid" prop="ldbjyrid">
<el-input :readonly="readonly" v-model="form.ldbjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="领导教育时间" ref="ldjysj" prop="ldjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ldjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="领导教育内容" ref="ldcont" prop="ldcont">
<el-input :readonly="readonly" v-model="form.ldcont" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="4">
<el-form-item label="家属教育人" ref="jsjyr" prop="jsjyr">
<el-input :readonly="readonly" v-model="form.jsjyr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="家属教育时间" ref="jsjysj" prop="jsjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jsjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="家属教育内容" ref="jscont" prop="jscont">
<el-input :readonly="readonly" v-model="form.jscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="纠正措施" ref="jzcs" prop="jzcs">
<el-input :readonly="readonly" v-model="form.jzcs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="纠正结果" ref="jzjg" prop="jzjg">
<el-input :readonly="readonly" v-model="form.jzjg" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="纠正验证人编码" ref="jzyzrid" prop="jzyzrid">
<el-input :readonly="readonly" v-model="form.jzyzrid" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="4">
<el-form-item label="纠正验证时间" ref="jzyzsj" prop="jzyzsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jzyzsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="处罚标志" ref="cfbz" prop="cfbz">
<el-input :readonly="readonly" v-model="form.cfbz" ></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="处罚金额" ref="cfje" prop="cfje">
<el-input :readonly="readonly" v-model="form.cfje" ></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: "enterTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//部门ID
bmid:'',
//班组ID
bzid:'',
//违规人ID
userid:'',
//违章日期
wzrq:new Date().getTime(),
//违章行为
wzxw:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//状态
zt:'',
//工作流ID
wfid:'',
//工作流实例号
wfinstid:'',
//工作流状态ID
wfpid:'',
//工作流状态
wfpname:'',
//待处理人id
wfwuserid:'',
//待处理人
wfwusername:'',
//已处理人id
wfhuserid:'',
//已处理人
wfhusername:'',
//状态
zt:'',
//曝光内容
bgcont:'',
//安全教育人
aqjyrid:'',
//安全教育时间
aqjysj:new Date().getTime(),
//安全教育内容
aqcont:'',
//反思内容
fscont:'',
//谈话层级
ldglcj:'',
//教育人编码
ldjyrid:'',
//被教育人编码
ldbjyrid:'',
//领导教育时间
ldjysj:new Date().getTime(),
//领导教育内容
ldcont:'',
//家属教育人
jsjyr:'',
//家属教育时间
jsjysj:new Date().getTime(),
//家属教育内容
jscont:'',
//纠正措施
jzcs:'',
//纠正结果
jzjg:'',
//纠正验证人编码
jzyzrid:'',
//纠正验证时间
jzyzsj:new Date().getTime(),
//处罚标志
cfbz:'',
//处罚金额
cfje:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<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>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/threeViolations/enterTV.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'enterTV',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/swgl/swjl',
/* 查询参数*/
queryParams: {
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "部门ID", prop: "bmid", fieldType: "ftString",width:192},
{label: "班组ID", prop: "bzid", fieldType: "ftString",width:192},
{label: "违规人ID", prop: "userid", fieldType: "ftString",width:192},
{label: "违章日期", prop: "wzrq", fieldType: "ftDateTime"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:300},
{label: "备注", prop: "bz", 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: "zt", fieldType: "ftString",width:6},
{label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{label: "状态", prop: "zt", fieldType: "ftString",width:6},
{label: "曝光内容", prop: "bgcont", fieldType: "ftString",width:300},
{label: "安全教育人", prop: "aqjyrid", fieldType: "ftString",width:192},
{label: "安全教育时间", prop: "aqjysj", fieldType: "ftDateTime"},
{label: "安全教育内容", prop: "aqcont", fieldType: "ftString",width:300},
{label: "反思内容", prop: "fscont", fieldType: "ftString",width:300},
{label: "谈话层级", prop: "ldglcj", fieldType: "ftString",width:60},
{label: "教育人编码", prop: "ldjyrid", fieldType: "ftString",width:192},
{label: "被教育人编码", prop: "ldbjyrid", fieldType: "ftString",width:192},
{label: "领导教育时间", prop: "ldjysj", fieldType: "ftDateTime"},
{label: "领导教育内容", prop: "ldcont", fieldType: "ftString",width:300},
{label: "家属教育人", prop: "jsjyr", fieldType: "ftString",width:180},
{label: "家属教育时间", prop: "jsjysj", fieldType: "ftDateTime"},
{label: "家属教育内容", prop: "jscont", fieldType: "ftString",width:300},
{label: "纠正措施", prop: "jzcs", fieldType: "ftString",width:300},
{label: "纠正结果", prop: "jzjg", fieldType: "ftString",width:300},
{label: "纠正验证人编码", prop: "jzyzrid", fieldType: "ftString",width:192},
{label: "纠正验证时间", prop: "jzyzsj", fieldType: "ftDateTime"},
{label: "处罚标志", prop: "cfbz", fieldType: "ftString",width:60},
{label: "处罚金额", prop: "cfje", fieldType: "float"},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
<template>
<!-- 外层排版-->
<div class="min_full " style="margin: 0;border: 0;background-color: #fff;">
<!-- 上层布局-->
<div class="top" style="border: 5px solid #eee;">
<div class="homePage " style="margin: 0;border: 0;border-right: 5px solid #eee;">
<!-- 数据展示-->
<div class="lbt" v-if="showList.length>0" >
<el-carousel height='290px' >
<el-carousel-item v-for="(item,index) in showList" :key="item.id+index">
<!-- 轮播图all-->
<div class="lbtAll">
<!-- 说明-->
<div class="sm">
<el-tooltip :content="`${item.gsName}${item.bzName||''}:${item.wzr}:${item.wzxw}`" placement="top">
<span class='infor' >
{{`${item.gsName}${item.bzName||''}的${item.wzr}做出违章行为:${item.wzxw}`}}
</span>
</el-tooltip>
</div>
<el-image
style="width: 100%; height: 100%"
:src=" `${baseurl}/api/file/${item.filePath}`"
fit="fit"></el-image>
</div>
</el-carousel-item>
</el-carousel>
</div>
<div style="height: 300px;display: flex;align-items: center;justify-content: center;position: relative;" class="lbt" v-else >
<span style="position: absolute;bottom: 50px;line-height: 40px;font-size: 18px;font-weight: 800;color:#787878" >本月暂无荣誉记录。</span>
<img style="height:150px;width: 200px;" :src="aqpng" alt="" srcset="">
</div>
<!-- 轮播图-->
</div>
<div class="top_right" >
<div class="zttitle">
预设项目
</div>
</div>
<!-- 隐患率-->
<!-- 风险率-->
</div>
<div class="bottom">
<div class="zttitle">
荣誉表
</div>
<div class="" style="height: calc(100% - 30px);width: 100%;">
<TablePager isAutoRoll showPagination queryAll :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</div>
</template>
<script>
const baseurl=process.env.VUE_APP_BASE_API
import {
tableMixin
} from 'common'
import vueSeamlessScroll from 'vue-seamless-scroll'
import * as echarts from 'echarts';
import aqpng from '@/assets/images/ryqno.png'
import {
doQuery as doQueryfx
} from "@/api/riskPrecontrol/riskAnalysis.js";
import {
queryYhsbtj as doQueryyh
} from "@/api/dangerManagement/yhslhz.js";
import {
doQuery as doQueryDcl
} from "@/api/dangerManagement/enterSafetyRecords.js"
import {
queryBglxFile
} from '@/api/threeViolations/enterTV.js';
export default{
components: {
vueSeamlessScroll
},
mixins: [tableMixin],
computed:{
gsid(){
return this.queryParams1.gsid
},
radio1(){
let val=this.queryParams1.rwlx
return val
},
// radio2(){
// let val=this.queryParams2.hzfs
// return val
// }
},
watch:{
gsid(val){
/* 监听公司id*/
if(val){
this.queryParams2.gsid= this.queryParams1.gsid
this.doQueryfx()
this.doQueryyh()
}
},
radio1(val){
this.doQueryfx()
},
// radio2(){
// this.doQueryyh()
// }
},
activated() {
console.log('activated')
this.$refs['TablePager'].pageQuery()
},
mounted(){
// this.$refs['TablePager'].pageQuery()
this.$nextTick(()=>{
// this.setChart(this.yhclChart,{
// name:'隐患整改完成率',
// title:'隐患整改'
// })
})
queryBglxFile({}).then(res=>{
this.showList=res.data.records||[]
// this.showList=[]
})
},
data(){
return{
tableTitle: [
{label: "状态", prop: "ztName", fieldType: "ftString",width:60},
{label: "公司", prop: "gsid", fieldType: "ftString",width:192,transform:{
url:'jcsj/common/bm/queryGs',label:'bmmc',value:'id'
}},
{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: "clsj", fieldType: "ftDateTime"},
{label: "复查日期", prop: "fcsj", fieldType: "ftDateTime"},
/* */
{label: "风险点", prop: "fxdName", fieldType: "ftString",width:300},
{label: "隐患地点", prop: "yhdd", fieldType: "ftString",width:300},
{label: "隐患类型", prop: "flid", fieldType: "ftString",width:192,transform:{
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: "bmName", fieldType: "ftString",width:192},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{label: "责任人", prop: "zrrName", 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: "clrName", fieldType: "ftString",width:192},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{label: "复查人", prop: "fcrName", fieldType: "ftString",width:192},
{label: "上报人", prop: "sbrName", 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"},
],
queryParams1:{
grouptype:'GS',
rwlx:'D',
gsid:'',
// ksrq:new Date(new Date().setHours(0, 0, 0, 0)).getTime(),
// jsrq:new Date(new Date().setHours(23,59,59,999)).getTime()
ksrq:new Date().getTime(),
jsrq:new Date().getTime()
},
queryParams2:{
hzfs:'GS',
gsid:'',
ksrq:null,
jsrq:new Date().getTime()
// jsrq:new Date(new Date().setHours(23,59,59,999)).getTime()
},
queryParams:{
queryType:'YHWCL'
// zt:'S'
},
aqpng:aqpng,
baseurl:baseurl,
showList:[],
/* dom*/
fxpcChart:null,
yhclChart:null,
}
},
methods:{
query:doQueryDcl,
}
}
</script>
<style lang="scss" scope>
.listf{
float: right;
}
.zttitle{
border-right: 2px solid #eee;
border-bottom: 2px solid #eee;
line-height: 30px;
font-size: 16px;
font-weight: 700;
color: #777;
width: 100%;
// padding-left: 30px;
text-align: center;
}
.ztcxxx{
height: 60px;
width: 100%;
}
.chart{
width: 100%;
height: calc(300px - 60px - 30px);
}
.top{
height:300px;
width:100%;
display: flex;
.top_right{
flex: 1;
// background-color: #eee;
display: flex;
/* fxpc*/
.top_right_fxpc{
flex:1
}
.top_right_yhhz{
flex:1
}
}
}
.bottom{
flex: 1;
border-bottom: 5px solid #eee;
border-left: 5px solid #eee;
border-right: 5px solid #eee;
}
.homePage{
width: 60%;
height: 100%;
}
.nodata{
background-image: url('/src/assets/image/aq.svg');
}
.lbt{
height: 100%;
width: 100%;
.lbtAll{
height: 100%;
width: 100%;
.sm{
padding-top: 16px;
padding-bottom: 26px;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
height:117px;
width:100%;
background-color: rgba(0,0,0,0.7);
z-index: 999;
bottom:0;
overflow: hidden;
text-overflow: ellipsis;
.infor{
color: #fff;
line-height: 25px;
font-size: 14px;
}
}
}
}
.el-carousel__item:nth-child(2n) {
background-color: #99a9bf;
}
.el-carousel__item:nth-child(2n+1) {
background-color: #d3dce6;
}
</style>
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!--<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="序号" ref="xh" prop="xh" >
<el-input :readonly="readonly" v-model="form.xh" ></el-input>
</el-form-item>
</el-col>
</el-row>-->
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="三违等级" ref="swdj" prop="swdj">
<RelSelect style="width: 100%;" src='/aqgl/swgl/swcfbz/init/swdj' clearable :match="{value:'id',label:'name'}" v-model='form.swdj' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="三违类型" ref="wglx" prop="wglx">
<RelSelect style="width: 100%;" src='/aqgl/swgl/swcfbz/init/wglx' clearable :match="{value:'id',label:'name'}" v-model='form.wglx' ></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="罚款金额(元)" ref="fkje" prop="fkje">
<el-input type='number' :readonly="readonly" v-model="form.fkje" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="考核分数" ref="khfs" prop="khfs">
<el-input type='number' :readonly="readonly" v-model="form.khfs" ></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 :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() {
},
/* 组件名称*/
name: "maintainTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//序号
xh:'',
//三违内容
content:'',
//类型
wglx:'',
//考核分数
khfs:'',
//罚款金额
fkje:'',
//罚款金额下限
fkjexx:'',
//罚款金额上限
fkjesx:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
xh: [{
required: true,
trigger: 'blur'
}, ],
swdj: [{
required: true,
trigger: 'blur'
}, ],
wglx: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AddButton ref="add" :app='app'></AddButton>
<!-- <AddButton ref="reload" :app='app'></AddButton>-->
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<!-- <AttachFileButton :app='app' ></AttachFileButton>-->
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/threeViolations/maintainTV';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/swgl/swcfbz',
/* 查询参数*/
queryParams: {
wgnr: '',
},
/* 表格标题对应参数*/
tableTitle: [
// {label: "序号", prop: "xh", fieldType: "int"},
{label: "三违等级", prop: "swdjName", fieldType: "ftString",width:100},
{label: "三违类型", prop: "wglxName", fieldType: "ftString",width:100},
{label: "罚款金额", prop: "fkje", fieldType: "money"},
{label: "考核分数", prop: "khfs", fieldType: "int"},
//{label: "罚款金额下限", prop: "fkjexx", fieldType: "float"},
//{label: "罚款金额上限", prop: "fkjesx", fieldType: "float"},
{label: "备注", prop: "bz", fieldType: "ftString",width:260},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"}
]
}
},
methods: {
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
},
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
<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="content" prop="content">
<el-input :readonly="readonly" v-model="form.content" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="履职分类" ref="wglx" prop="wglx">
<RelSelect style="width: 100%;" src='/aqgl/swgl/swcgbz/init/wglx' clearable :match="{value:'id',label:'name'}" v-model='form.wglx' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="考核分数" ref="khfs" prop="khfs">
<el-input :readonly="readonly" v-model="form.khfs" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="罚款金额下限" ref="fkjexx" prop="fkjexx">
<el-input :readonly="readonly" v-model="form.fkjexx" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="罚款金额上限" ref="fkjesx" prop="fkjesx">
<el-input :readonly="readonly" v-model="form.fkjesx" ></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 :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() {
},
/* 组件名称*/
name: "maintainTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
//ID
id:'',
//序号
xh:'',
//三违内容
content:'',
//类型
wglx:'',
//考核分数
khfs:'',
//罚款金额下限
fkjexx:'',
//罚款金额上限
fkjesx:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">名称:</span>
<el-input v-model="queryParams.info"></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<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>
<AttachFileButton :app='app' ></AttachFileButton>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/threeViolations/maintainTV';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'maintainTV',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/swgl/swcfbz',
/* 查询参数*/
queryParams: {
info: ''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "序号", prop: "xh", fieldType: "int"},
{label: "三违内容", prop: "content", fieldType: "ftString",width:300},
{label: "类型", prop: "wglx", fieldType: "ftString",width:60},
{label: "考核分数", prop: "khfs", fieldType: "int"},
{label: "罚款金额下限", prop: "fkjexx", fieldType: "float"},
{label: "罚款金额上限", prop: "fkjesx", fieldType: "float"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
<template>
<DefaultDialog :app='app'>
<el-form slot="form" ref="form" label-width="100px" >
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="处罚金额" ref="cfje" prop="cfje">
<el-input type='number' :readonly="readonly" v-model="singleItem.cfje" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="考核分数" ref="cffs" prop="cffs">
<el-input type='number' :readonly="readonly" v-model="singleItem.cffs" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
import {
doPunish
} from "@/api/threeViolations/enterTV.js"
export default {
props: {
app: {
type: Object,
default: {}
}
},
async mounted() {
this.singleItem=_.cloneDeep(this.app.singleItem)
},
data() {
return {
singleItem:{
cfje:'',
cffs:'',
},
}},
methods: {
save(){
let params={
id:this.singleItem.id,
cfje:this.singleItem.cfje,
cffs:this.singleItem.cffs,
}
doPunish(params).then(res=>{
if(res.success){
this.$success('提交成功')
this.app.$refs['TablePager'].reLoad()
this.app.$refs['TablePager'].clearSelected()
this.app.showDialog=false
}
})
}
}
}
</script>
<style scoped>
</style>
<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-input :readonly="readonly" v-model="form.userid" ></el-input> -->
<el-form-item label="姓名" ref="userid" prop="userid">
<personSelector :label="form.wzr||form.userid||'暂无'" @selected='wgrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系手机" >
<el-input :readonly="true" v-model="form.phone" ></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">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所在部门" ref="bzid" prop="bzid">
<RelSelect linkage :linkParams="{pid:form.bmid}" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bzid' ></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="违章日期" ref="wzrq" prop="wzrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.wzrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处罚金额" ref="cfje" prop="cfje">
<el-input type='number' :readonly="readonly" v-model="form.cfje" ></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col> -->
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="违章行为" ref="wzxw" prop="wzxw">
<el-input type='textarea' :readonly="readonly" v-model="form.wzxw" ></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row :gutter="20">
<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-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="bgcont" prop="bgcont">
<el-input :readonly="readonly" v-model="form.bgcont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育人" ref="aqjyrid" prop="aqjyrid">
<el-input :readonly="readonly" v-model="form.aqjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育时间" ref="aqjysj" prop="aqjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.aqjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育内容" ref="aqcont" prop="aqcont">
<el-input :readonly="readonly" v-model="form.aqcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="反思内容" ref="fscont" prop="fscont">
<el-input :readonly="readonly" v-model="form.fscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="谈话层级" ref="ldglcj" prop="ldglcj">
<el-input :readonly="readonly" v-model="form.ldglcj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="教育人编码" ref="ldjyrid" prop="ldjyrid">
<el-input :readonly="readonly" v-model="form.ldjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被教育人编码" ref="ldbjyrid" prop="ldbjyrid">
<el-input :readonly="readonly" v-model="form.ldbjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育时间" ref="ldjysj" prop="ldjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ldjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育内容" ref="ldcont" prop="ldcont">
<el-input :readonly="readonly" v-model="form.ldcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="家属教育人" ref="jsjyr" prop="jsjyr">
<el-input :readonly="readonly" v-model="form.jsjyr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育时间" ref="jsjysj" prop="jsjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jsjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育内容" ref="jscont" prop="jscont">
<el-input :readonly="readonly" v-model="form.jscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正措施" ref="jzcs" prop="jzcs">
<el-input :readonly="readonly" v-model="form.jzcs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正结果" ref="jzjg" prop="jzjg">
<el-input :readonly="readonly" v-model="form.jzjg" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正验证人编码" ref="jzyzrid" prop="jzyzrid">
<el-input :readonly="readonly" v-model="form.jzyzrid" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="纠正验证时间" ref="jzyzsj" prop="jzyzsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jzyzsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处罚标志" ref="cfbz" prop="cfbz">
<el-input :readonly="readonly" v-model="form.cfbz" ></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: "enterTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {phone:'',
//ID
id:'',
//部门ID
bmid:'',
//班组ID
bzid:'',
//违规人ID
userid:'',
//违章日期
wzrq:new Date().getTime(),
//违章行为
wzxw:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//状态
zt:'',
//工作流ID
wfid:'',
//工作流实例号
wfinstid:'',
//工作流状态ID
wfpid:'',
//工作流状态
wfpname:'',
//待处理人id
wfwuserid:'',
//待处理人
wfwusername:'',
//已处理人id
wfhuserid:'',
//已处理人
wfhusername:'',
//状态
zt:'',
//曝光内容
bgcont:'',
//安全教育人
aqjyrid:'',
//安全教育时间
aqjysj:new Date().getTime(),
//安全教育内容
aqcont:'',
//反思内容
fscont:'',
//谈话层级
ldglcj:'',
//教育人编码
ldjyrid:'',
//被教育人编码
ldbjyrid:'',
//领导教育时间
ldjysj:new Date().getTime(),
//领导教育内容
ldcont:'',
//家属教育人
jsjyr:'',
//家属教育时间
jsjysj:new Date().getTime(),
//家属教育内容
jscont:'',
//纠正措施
jzcs:'',
//纠正结果
jzjg:'',
//纠正验证人编码
jzyzrid:'',
//纠正验证时间
jzyzsj:new Date().getTime(),
//处罚标志
cfbz:'',
//处罚金额
cfje:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
bmid: [{
required: true,
trigger: 'blur'
}, ],
bzid: [{
required: true,
trigger: 'blur'
}, ],
userid: [{
required: true,
trigger: 'blur'
}, ],
wzrq: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
wgrSelected(row){
this.form.userid=row.id
this.form.phone=row.phone||''
}
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="min_full">
<Cfsz :app='this' v-if="showDialog" ></Cfsz>
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<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.ryxx' ></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.ryxx' ></el-input>
</div>
</el-col> -->
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">所在公司:</span>
<RelSelect style="width: 100%;" src='/jcsj/common/bm/queryGs' clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' ></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始时间:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.beginDate"></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束时间:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.endDate"></el-date-picker>
</div>
</el-col>
</el-row>
<!-- <el-row :gutter="20" class="search-row-1">
</el-row> -->
</div>
<!-- 按钮操作-->
<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> -->
<!-- <AttachFileButton :app='app' ></AttachFileButton> -->
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<el-button size='mini' @click="cfxxsz" type="primary">处罚</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/threeViolations/enterTV.js';
/* edit页面*/
import Edit from './edit'
import Cfsz from './cfsz'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/swgl/swjl',
/* 查询参数*/
queryParams: {
beginDate:new Date().getTime()-1000*60*60*24*30,
endDate:new Date().getTime(),
bmid:'',
ryxx:''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:160},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "处罚金额", prop: "cfje", fieldType: "money"},
{label: "考核分数", prop: "cffs", fieldType: "ftFloat"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:260},
// {label: "备注", prop: "bz", 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: "zt", fieldType: "ftString",width:6},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "曝光内容", prop: "bgcont", fieldType: "ftString",width:300},
// {label: "安全教育人", prop: "aqjyrid", fieldType: "ftString",width:192},
// {label: "安全教育时间", prop: "aqjysj", fieldType: "ftDateTime"},
// {label: "安全教育内容", prop: "aqcont", fieldType: "ftString",width:300},
// {label: "反思内容", prop: "fscont", fieldType: "ftString",width:300},
// {label: "谈话层级", prop: "ldglcj", fieldType: "ftString",width:60},
// {label: "教育人编码", prop: "ldjyrid", fieldType: "ftString",width:192},
// {label: "被教育人编码", prop: "ldbjyrid", fieldType: "ftString",width:192},
// {label: "领导教育时间", prop: "ldjysj", fieldType: "ftDateTime"},
// {label: "领导教育内容", prop: "ldcont", fieldType: "ftString",width:300},
// {label: "家属教育人", prop: "jsjyr", fieldType: "ftString",width:180},
// {label: "家属教育时间", prop: "jsjysj", fieldType: "ftDateTime"},
// {label: "家属教育内容", prop: "jscont", fieldType: "ftString",width:300},
// {label: "纠正措施", prop: "jzcs", fieldType: "ftString",width:300},
// {label: "纠正结果", prop: "jzjg", fieldType: "ftString",width:300},
// {label: "纠正验证人编码", prop: "jzyzrid", fieldType: "ftString",width:192},
// {label: "纠正验证时间", prop: "jzyzsj", fieldType: "ftDateTime"},
// {label: "处罚标志", prop: "cfbz", fieldType: "ftString",width:60},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
cfxxsz(){
if (this.app.selectOne || this.app.clickOne) {
this.showDialog = true
} else {
this.$warning('请选中一行操作');
}
},
/* 初始化赋值操作*/
init() {
},
/* 启用停用*/
setEnable(id) {
this.$confirm('是否启用/停用该角色, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params = {
id: id
}
QtKzzxRole(params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.$refs['TablePager'].reLoad()
} else {
this.$error(res.message || '操作失败')
}
})
})
}
},
components: {
Edit,Cfsz
}
}
</script>
<style scoped>
</style>
<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-input :readonly="readonly" v-model="form.userid" ></el-input> -->
<el-form-item label="姓名" ref="userid" prop="userid">
<personSelector :label="form.wzr||form.userid||'暂无'" @selected='wgrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系手机" >
<el-input :readonly="true" v-model="form.phone" ></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">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所在部门" ref="bzid" prop="bzid">
<RelSelect linkage :linkParams="{pid:form.bmid}" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bzid' ></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="违章日期" ref="wzrq" prop="wzrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.wzrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="处罚金额" ref="cfje" prop="cfje">
<el-input type='number' :readonly="readonly" v-model="form.cfje" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col> -->
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="违章行为" ref="wzxw" prop="wzxw">
<el-input type='textarea' :readonly="readonly" v-model="form.wzxw" ></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row :gutter="20">
<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-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="bgcont" prop="bgcont">
<el-input :readonly="readonly" v-model="form.bgcont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育人" ref="aqjyrid" prop="aqjyrid">
<el-input :readonly="readonly" v-model="form.aqjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育时间" ref="aqjysj" prop="aqjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.aqjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育内容" ref="aqcont" prop="aqcont">
<el-input :readonly="readonly" v-model="form.aqcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="反思内容" ref="fscont" prop="fscont">
<el-input :readonly="readonly" v-model="form.fscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="谈话层级" ref="ldglcj" prop="ldglcj">
<el-input :readonly="readonly" v-model="form.ldglcj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="教育人编码" ref="ldjyrid" prop="ldjyrid">
<el-input :readonly="readonly" v-model="form.ldjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被教育人编码" ref="ldbjyrid" prop="ldbjyrid">
<el-input :readonly="readonly" v-model="form.ldbjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育时间" ref="ldjysj" prop="ldjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ldjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育内容" ref="ldcont" prop="ldcont">
<el-input :readonly="readonly" v-model="form.ldcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="家属教育人" ref="jsjyr" prop="jsjyr">
<el-input :readonly="readonly" v-model="form.jsjyr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育时间" ref="jsjysj" prop="jsjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jsjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育内容" ref="jscont" prop="jscont">
<el-input :readonly="readonly" v-model="form.jscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正措施" ref="jzcs" prop="jzcs">
<el-input :readonly="readonly" v-model="form.jzcs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正结果" ref="jzjg" prop="jzjg">
<el-input :readonly="readonly" v-model="form.jzjg" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正验证人编码" ref="jzyzrid" prop="jzyzrid">
<el-input :readonly="readonly" v-model="form.jzyzrid" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="纠正验证时间" ref="jzyzsj" prop="jzyzsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jzyzsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处罚标志" ref="cfbz" prop="cfbz">
<el-input :readonly="readonly" v-model="form.cfbz" ></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: "enterTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {phone:'',
//ID
id:'',
//部门ID
bmid:'',
//班组ID
bzid:'',
//违规人ID
userid:'',
//违章日期
wzrq:new Date().getTime(),
//违章行为
wzxw:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//状态
zt:'',
//工作流ID
wfid:'',
//工作流实例号
wfinstid:'',
//工作流状态ID
wfpid:'',
//工作流状态
wfpname:'',
//待处理人id
wfwuserid:'',
//待处理人
wfwusername:'',
//已处理人id
wfhuserid:'',
//已处理人
wfhusername:'',
//状态
zt:'',
//曝光内容
bgcont:'',
//安全教育人
aqjyrid:'',
//安全教育时间
aqjysj:new Date().getTime(),
//安全教育内容
aqcont:'',
//反思内容
fscont:'',
//谈话层级
ldglcj:'',
//教育人编码
ldjyrid:'',
//被教育人编码
ldbjyrid:'',
//领导教育时间
ldjysj:new Date().getTime(),
//领导教育内容
ldcont:'',
//家属教育人
jsjyr:'',
//家属教育时间
jsjysj:new Date().getTime(),
//家属教育内容
jscont:'',
//纠正措施
jzcs:'',
//纠正结果
jzjg:'',
//纠正验证人编码
jzyzrid:'',
//纠正验证时间
jzyzsj:new Date().getTime(),
//处罚标志
cfbz:'',
//处罚金额
cfje:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
bmid: [{
required: true,
trigger: 'blur'
}, ],
bzid: [{
required: true,
trigger: 'blur'
}, ],
userid: [{
required: true,
trigger: 'blur'
}, ],
wzrq: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
wgrSelected(row){
this.form.userid=row.id
this.form.phone=row.phone||''
}
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="min_full">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<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.ryxx' ></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.ryxx' ></el-input>
</div>
</el-col> -->
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">所在公司:</span>
<RelSelect style="width: 100%;" src='/jcsj/common/bm/queryGs' clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' ></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始时间:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.beginDate"></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束时间:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.endDate"></el-date-picker>
</div>
</el-col>
</el-row>
<!-- <el-row :gutter="20" class="search-row-1">
</el-row> -->
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AttachFileButton_swjl :params="{childPath:'',allowAddFile:'none'}" :delButton='false' :app='this'></AttachFileButton_swjl>
<!-- <AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton> -->
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow' :del-button="false">
</TablePager>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete
} from '@/api/threeViolations/enterTV.js';
/* edit页面*/
import Edit from './edit'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery()
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/swgl/swjl',
/* 查询参数*/
queryParams: {
beginDate:new Date().getTime()-1000*60*60*24*30,
endDate:new Date().getTime(),
bmid:'',
ryxx:''
},
/* 表格标题对应参数*/
tableTitle: [
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:160},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
{label: "三违等级", prop: "swdjName", fieldType: "ftString",width:280},
{label: "三违类型", prop: "wglxName", fieldType: "ftString",width:280},
// {label: "备注", prop: "bz", 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: "zt", fieldType: "ftString",width:6},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
{label: "曝光标题", prop: "bgtitle", fieldType: "ftString",width:300},
{label: "曝光内容", prop: "bgcont", fieldType: "ftString",width:300},
// {label: "安全教育人", prop: "aqjyrid", fieldType: "ftString",width:192},
{label: "安全教育时间", prop: "aqjysj", fieldType: "ftDateTime"},
{label: "安全教育内容", prop: "aqcont", fieldType: "ftString",width:300},
{label: "反思时间", prop: "fssj", fieldType: "ftDateTime"},
{label: "反思内容", prop: "fscont", fieldType: "ftString",width:300},
// {label: "谈话层级", prop: "ldglcj", fieldType: "ftString",width:60},
{label: "谈话人", prop: "ldjyr", fieldType: "ftString",width:192},
// {label: "被教育人编码", prop: "ldbjyrid", fieldType: "ftString",width:192},
{label: "谈话时间", prop: "ldjysj", fieldType: "ftDateTime"},
{label: "谈话内容", prop: "ldcont", fieldType: "ftString",width:300},
// {label: "家属教育人", prop: "jsjyr", fieldType: "ftString",width:180},
// {label: "家属教育时间", prop: "jsjysj", fieldType: "ftDateTime"},
// {label: "家属教育内容", prop: "jscont", fieldType: "ftString",width:300},
{label: "纠正措施", prop: "jzcs", fieldType: "ftString",width:300},
// {label: "纠正结果", prop: "jzjg", fieldType: "ftString",width:300},
// {label: "纠正验证人编码", prop: "jzyzrid", fieldType: "ftString",width:192},
{label: "纠正验证时间", prop: "jzyzsj", fieldType: "ftDateTime"},
// {label: "处罚标志", prop: "cfbz", fieldType: "ftString",width:60},
{label: "处罚金额", prop: "cfje", fieldType: "float"},
{label: "处罚分数", prop: "cffs", fieldType: "float"},
]
}
},
methods: {
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 初始化赋值操作*/
init() {
},
/* 启用停用*/
},
components: {
Edit,
}
}
</script>
<style scoped>
</style>
<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-input :readonly="readonly" v-model="form.userid" ></el-input> -->
<el-form-item label="姓名" ref="userid" prop="userid">
<personSelector :label="form.wzr||form.userid||'暂无'" @selected='wgrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="联系手机" >
<el-input :readonly="true" v-model="form.phone" ></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">
<RelSelect style="width: 100%;" :readonly="readonly" src='jcsj/common/bm/queryGs' :match="{value:'id',label:'bmmc'}" v-model='form.bmid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="所在部门" ref="bzid" prop="bzid">
<RelSelect linkage :linkParams="{pid:form.bmid}" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bzid' ></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="违章日期" ref="wzrq" prop="wzrq">
<el-date-picker value-format="timestamp" style="width: 100%;" :readonly="readonly" type="date"
v-model="form.wzrq" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="处罚金额" ref="cfje" prop="cfje">
<el-input type='number' :readonly="readonly" v-model="form.cfje" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col> -->
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="违章行为" ref="wzxw" prop="wzxw">
<el-input type='textarea' :readonly="readonly" v-model="form.wzxw" ></el-input>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row :gutter="20">
<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-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="bgcont" prop="bgcont">
<el-input :readonly="readonly" v-model="form.bgcont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育人" ref="aqjyrid" prop="aqjyrid">
<el-input :readonly="readonly" v-model="form.aqjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育时间" ref="aqjysj" prop="aqjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.aqjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="安全教育内容" ref="aqcont" prop="aqcont">
<el-input :readonly="readonly" v-model="form.aqcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="反思内容" ref="fscont" prop="fscont">
<el-input :readonly="readonly" v-model="form.fscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="谈话层级" ref="ldglcj" prop="ldglcj">
<el-input :readonly="readonly" v-model="form.ldglcj" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="教育人编码" ref="ldjyrid" prop="ldjyrid">
<el-input :readonly="readonly" v-model="form.ldjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被教育人编码" ref="ldbjyrid" prop="ldbjyrid">
<el-input :readonly="readonly" v-model="form.ldbjyrid" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育时间" ref="ldjysj" prop="ldjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.ldjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="领导教育内容" ref="ldcont" prop="ldcont">
<el-input :readonly="readonly" v-model="form.ldcont" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="家属教育人" ref="jsjyr" prop="jsjyr">
<el-input :readonly="readonly" v-model="form.jsjyr" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育时间" ref="jsjysj" prop="jsjysj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jsjysj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="家属教育内容" ref="jscont" prop="jscont">
<el-input :readonly="readonly" v-model="form.jscont" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正措施" ref="jzcs" prop="jzcs">
<el-input :readonly="readonly" v-model="form.jzcs" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正结果" ref="jzjg" prop="jzjg">
<el-input :readonly="readonly" v-model="form.jzjg" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纠正验证人编码" ref="jzyzrid" prop="jzyzrid">
<el-input :readonly="readonly" v-model="form.jzyzrid" ></el-input>
</el-form-item>
</el-col>
</el-row> -->
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="纠正验证时间" ref="jzyzsj" prop="jzyzsj">
<el-date-picker style="width: 100%;" :readonly="readonly" type="date"
v-model="form.jzyzsj" placeholder="选择日期">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="处罚标志" ref="cfbz" prop="cfbz">
<el-input :readonly="readonly" v-model="form.cfbz" ></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: "enterTVEdit",
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 额外初始化,根据需求*/
systemType: [],
bmList: [],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {phone:'',
//ID
id:'',
//部门ID
bmid:'',
//班组ID
bzid:'',
//违规人ID
userid:'',
//违章日期
wzrq:'',
//违章行为
wzxw:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
//系统版本
sysversion:'',
//状态
zt:'',
//工作流ID
wfid:'',
//工作流实例号
wfinstid:'',
//工作流状态ID
wfpid:'',
//工作流状态
wfpname:'',
//待处理人id
wfwuserid:'',
//待处理人
wfwusername:'',
//已处理人id
wfhuserid:'',
//已处理人
wfhusername:'',
//状态
zt:'',
//曝光内容
bgcont:'',
bgtitle:'',
//安全教育人
aqjyrid:'',
//安全教育时间
aqjysj:'',
//安全教育内容
aqcont:'',
//反思内容
fscont:'',
fssj:'',
//谈话层级
ldglcj:'',
//教育人编码
ldjyrid:'',
//被教育人编码
ldbjyrid:'',
//领导教育时间
ldjysj:'',
//领导教育内容
ldcont:'',
//家属教育人
jsjyr:'',
//家属教育时间
jsjysj:'',
//家属教育内容
jscont:'',
//纠正措施
jzcs:'',
//纠正结果
jzjg:'',
//纠正验证人编码
jzyzrid:'',
//纠正验证时间
jzyzsj:'',
//处罚标志
cfbz:'',
//处罚金额
cfje:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
bmid: [{
required: true,
trigger: 'blur'
}, ],
bzid: [{
required: true,
trigger: 'blur'
}, ],
userid: [{
required: true,
trigger: 'blur'
}, ],
wzrq: [{
required: true,
trigger: 'blur'
}, ]
}
}
},
methods: {
wgrSelected(row){
this.form.userid=row.id
this.form.phone=row.phone||''
}
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileShow :params="{childPath:'BGLX'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="beforeEdit" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<br>
<el-form ref="form" label-width='80px' >
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="曝光标题">
<el-input v-model="vMain.rowItem.bgtitle" :readonly="readonly" type="textarea" rows="1" >
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-form ref="form" label-width='80px' >
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="通报内容">
<el-input v-model="vMain.rowItem.bgcont" :readonly="readonly" type="textarea" rows="15" >
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
import {
beforeEdit
} from '@/api/threeViolations/enterTV.js';
export default {
data() {
return {
readonly:true,
}
},
props:['vMain'],
methods: {
beforeEdit(){
beforeEdit({
ywlx:'BGLX',
id:this.vMain.rowItem.id
}).then(res=>{
if(res.success){
this.readonly=false;
this.$success('开启编辑')
}
})
},
save(){
let params=this.vMain.rowItem
this.vMain.apiPg(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
this.vMain.$refs['TablePager'].reLoad()
let tableData=this.vMain.$refs['TablePager'].tableData
let nowIndex=false
tableData.forEach((data,index)=>{
if(data.id==params.master.id){
nowIndex=index
}
})
if(nowIndex!==false){
this.vMain.$refs['TablePager'].tableData.splice(nowIndex,1,params.master)
this.vMain.$refs['TablePager'].setCurrent(params.master)
}
} else {
this.$error(res.message || '更新失败')
}
})
}}
}
</script>
<style scoped>
.form-detail{
height: 500px;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
</style>
<template>
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileButton :params="{childPath:'JSXG'}" :app='vMain'></AttachFileButton>
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<br>
<el-form ref="form" label-width='80px' >
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="教育人">
<!-- <el-input v-model="vMain.rowItem.jsjyr" :readonly="readonly" rows="5" >
</el-input> -->
<personSelector :readonly="readonly" :label="vMain.rowItem.jsjyrName||vMain.rowItem.jsjyr||'暂无'" @selected='jsjyrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item style="width: 100%;" label="教育时间">
<el-date-picker value-format="timestamp" type="datetime" v-model="vMain.rowItem.jsjysj" :readonly="readonly" ></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="教育内容">
<el-input v-model="vMain.rowItem.jscont" :readonly="readonly" type="textarea" rows="5" >
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
export default {
data() {
return {
readonly:true,
}
},
props:['vMain'],
methods: {
jsjyrSelected(row){
this.vMain.rowItem.jsjyr=row.id
},
save(){
let params=this.vMain.rowItem
this.vMain.apiUpdate(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
this.vMain.$refs['TablePager'].reLoad()
let tableData=this.vMain.$refs['TablePager'].tableData
let nowIndex=false
tableData.forEach((data,index)=>{
if(data.id==params.master.id){
nowIndex=index
}
})
if(nowIndex!==false){
this.vMain.$refs['TablePager'].tableData.splice(nowIndex,1,params.master)
this.vMain.$refs['TablePager'].setCurrent(params.master)
}
} else {
this.$error(res.message || '更新失败')
}
})
}
}}
</script>
<style scoped>
.form-detail{
height: 500px;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
</style>
<template>
<div class="min_full" style="height: 140vh;">
<div class="min_full" style="height: 40%;">
<!-- 查询条件-->
<div class="search" v-condition>
<SearchButton :app='app'></SearchButton>
<el-row :gutter="20" class="search-row-1">
<el-col :span="12" class="search-col">
<div class="search-item">
<span class="search-span">人员工号:</span>
<el-input v-model='queryParams.ryxx' ></el-input>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">开始时间:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.beginDate"></el-date-picker>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">结束时间:</span>
<el-date-picker value-format="timestamp" v-model="queryParams.endDate"></el-date-picker>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<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>-->
<!--<AttachFileButton :app='app'></AttachFileButton>-->
<FieldButton :app='app'></FieldButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
</TablePager>
</div>
</div>
<div class="min_full" style="height: 60%;padding: 10px;">
<!-- tabs -->
<el-tabs v-model="activeName" @tab-click="handleClick" v-show='rowItem.id' >
<el-tab-pane label="曝光亮相关" name="first" >
<Exposure :vMain='this' />
</el-tab-pane>
<el-tab-pane label="安全补课关" name="second">
<SafetyCourse :vMain='this' />
</el-tab-pane>
<el-tab-pane label="反思检查关" name="third">
<Reflect :vMain='this' />
</el-tab-pane>
<el-tab-pane label="领导谈话关" name="fourth">
<Leadership :vMain='this' />
</el-tab-pane>
<!-- <el-tab-pane label="家属协管关" name="fifth">
<Family :vMain='this' />
</el-tab-pane>-->
</el-tabs>
</div>
</div>
</template>
<script>
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete,
doPg,
doAq,
doFs,
doTalk
} from '@/api/threeViolations/enterTV.js';
/* edit页面*/
import Edit from './edit'
import Exposure from './exposure.vue'
import SafetyCourse from './safetyCourse.vue'
import Reflect from './reflect.vue'
import Leadership from './leadership.vue'
import Family from './family.vue'
import {
tableMixin
} from 'common'
export default {
mixins: [tableMixin],
name: 'appVersion',
/* 初始额外赋值*/
async mounted() {
this.$refs['TablePager'].pageQuery({setFirstCurrent:true})
},
data() {
return {
rowItem: {
id:''
},
activeName: 'first',
/*需要的额外参数 */
showDialog: false,
DialogName: '',
type: '',
DialogTitle: '',
/* 基础url*/
baseUrl: '/aqgl/swgl/swjl',
/* 查询参数*/
queryParams: {
ryxx:'',
beginDate: new Date().getTime()-1000*60*60*24*30,
endDate: new Date().getTime(),
zt:'G'
},
/* 表格标题对应参数*/
tableTitle: [
{label: "工号", prop: "wzrcode", fieldType: "ftString",width:120},
{label: "姓名", prop: "wzr", fieldType: "ftString",width:160},
{label: "所在公司", prop: "gsName", fieldType: "ftString",width:160},
{label: "所在部门", prop: "bmName", fieldType: "ftString",width:160},
{label: "联系手机", prop: "phone", fieldType: "ftString",width:120},
{label: "违章日期", prop: "wzrq", fieldType: "ftDate"},
{label: "违章行为", prop: "wzxw", fieldType: "ftString",width:280},
{label: "三违等级", prop: "swdjName", fieldType: "ftString",width:280},
{label: "三违类型", prop: "wglxName", fieldType: "ftString",width:280}
// {label: "备注", prop: "bz", 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: "zt", fieldType: "ftString",width:6},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "曝光内容", prop: "bgcont", fieldType: "ftString",width:300},
// {label: "安全教育人", prop: "aqjyrid", fieldType: "ftString",width:192},
// {label: "安全教育时间", prop: "aqjysj", fieldType: "ftDateTime"},
// {label: "安全教育内容", prop: "aqcont", fieldType: "ftString",width:300},
// {label: "反思内容", prop: "fscont", fieldType: "ftString",width:300},
// {label: "谈话层级", prop: "ldglcj", fieldType: "ftString",width:60},
// {label: "教育人编码", prop: "ldjyrid", fieldType: "ftString",width:192},
// {label: "被教育人编码", prop: "ldbjyrid", fieldType: "ftString",width:192},
// {label: "领导教育时间", prop: "ldjysj", fieldType: "ftDateTime"},
// {label: "领导教育内容", prop: "ldcont", fieldType: "ftString",width:300},
// {label: "家属教育人", prop: "jsjyr", fieldType: "ftString",width:180},
// {label: "家属教育时间", prop: "jsjysj", fieldType: "ftDateTime"},
// {label: "家属教育内容", prop: "jscont", fieldType: "ftString",width:300},
// {label: "纠正措施", prop: "jzcs", fieldType: "ftString",width:300},
// {label: "纠正结果", prop: "jzjg", fieldType: "ftString",width:300},
// {label: "纠正验证人编码", prop: "jzyzrid", fieldType: "ftString",width:192},
// {label: "纠正验证时间", prop: "jzyzsj", fieldType: "ftDateTime"},
// {label: "处罚标志", prop: "cfbz", fieldType: "ftString",width:60},
// {label: "处罚金额", prop: "cfje", fieldType: "float"},
]
}
},
methods: {
handleClick(val){
console.log(val,'val')
},
/* 基础查询*/
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
apiPg:doPg,
apiFs:doFs,
apiAq:doAq,
apiTalk:doTalk,
/* 初始化赋值操作*/
init() {
}
},
components: {
Edit,
Exposure,
SafetyCourse,
Leadership,
Reflect,
Family
}
}
</script>
<style scoped>
/deep/.el-tabs__item {
font-size: 13px;
color: #666;
}
</style>
<template>
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileShow :params="{childPath:'LDTH'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="beforeEdit" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<br>
<el-form ref="form" label-width='80px' >
<el-row style="width: 100%;" :gutter="20">
<!-- <el-col :span="12">
<el-form-item label="谈话层级">
<el-input v-model="vMain.rowItem.ldglcj" :readonly="readonly" rows="5" >
</el-input>
</el-form-item>
</el-col>-->
<el-col :span="4">
<el-form-item label="谈话人">
<!-- <el-input :readonly="readonly" v-model="vMain.rowItem.ldjyr" ></el-input> -->
<personSelector :readonly="readonly" :label="vMain.rowItem.ldjyrName||vMain.rowItem.ldjyr||'暂无'" @selected='ldjyrSelected' ></personSelector>
</el-form-item>
</el-col>
<!-- <el-col :span="12">
<el-form-item label="被教育人">
&lt;!&ndash; <el-input :readonly="readonly" v-model="vMain.rowItem.ldbjyr" rows="5" >
</el-input> &ndash;&gt;
<personSelector :readonly="readonly" :label="vMain.rowItem.ldbjyrName||vMain.rowItem.ldbjyr||'暂无'" @selected='ldbjyrSelected' ></personSelector>
</el-form-item>
</el-col>-->
<el-col :span="4">
<el-form-item label="谈话时间">
<el-date-picker value-format="timestamp" type="datetime" :readonly="readonly" v-model="vMain.rowItem.ldjysj" style="width: 100%;"></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="谈话内容">
<el-input :readonly="readonly" v-model="vMain.rowItem.ldcont" type="textarea" rows="10" >
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
import {
beforeEdit
} from '@/api/threeViolations/enterTV.js';
export default {
data() {
return {
readonly:true,
}
},
props:['vMain'],
methods: {
beforeEdit(){
beforeEdit({
ywlx:'LDTH',
id:this.vMain.rowItem.id
}).then(res=>{
if(res.success){
this.readonly=false;
this.$success('开启编辑')
}
})
},
ldbjyrSelected(row){
this.vMain.rowItem.ldbjyrid=row.id
},
ldjyrSelected(row){
this.vMain.rowItem.ldjyrid=row.id
},
save(){
let params=this.vMain.rowItem
this.vMain.apiTalk(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
this.vMain.$refs['TablePager'].reLoad()
let tableData=this.vMain.$refs['TablePager'].tableData
let nowIndex=false
tableData.forEach((data,index)=>{
if(data.id==params.master.id){
nowIndex=index
}
})
if(nowIndex!==false){
this.vMain.$refs['TablePager'].tableData.splice(nowIndex,1,params.master)
this.vMain.$refs['TablePager'].setCurrent(params.master)
}
} else {
this.$error(res.message || '更新失败')
}
})
}}
}
</script>
<style scoped>
.form-detail{
height: 500px;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
</style>
<template>
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileShow :params="{childPath:'FSJC'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="beforeEdit" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<br>
<el-form ref="form" label-width='80px' >
<el-row :gutter="20">
<!--<el-col :span="24">
<el-form-item label="教育人">
&lt;!&ndash; <el-input v-model="vMain.rowItem.fsjyr" :readonly="readonly" rows="5" >
</el-input> &ndash;&gt;
<personSelector :readonly="readonly" :label="vMain.rowItem.fsjyrName||vMain.rowItem.fsjyr||'暂无'" @selected='fsjyrSelected' ></personSelector>
</el-form-item>
</el-col>-->
<el-col :span="24">
<el-form-item label="反思时间">
<el-date-picker value-format="timestamp" type="datetime" v-model="vMain.rowItem.fssj" :readonly="readonly" ></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="反思内容">
<el-input v-model="vMain.rowItem.fscont" type="textarea" :readonly="readonly" rows="10" >
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
import {
beforeEdit
} from '@/api/threeViolations/enterTV.js';
export default {
data() {
return {
readonly:true,
}
},
props:['vMain'],
methods: {
beforeEdit(){
beforeEdit({
ywlx:'FSJC',
id:this.vMain.rowItem.id
}).then(res=>{
if(res.success){
this.readonly=false;
this.$success('开启编辑')
}
})
},
fsjyrSelected(){
this.vMain.rowItem.fsjyrid=row.id
},
save(){
let params=this.vMain.rowItem
this.vMain.apiFs(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
this.vMain.$refs['TablePager'].reLoad()
let tableData=this.vMain.$refs['TablePager'].tableData
let nowIndex=false
tableData.forEach((data,index)=>{
if(data.id==params.master.id){
nowIndex=index
}
})
if(nowIndex!==false){
this.vMain.$refs['TablePager'].tableData.splice(nowIndex,1,params.master)
this.vMain.$refs['TablePager'].setCurrent(params.master)
}
} else {
this.$error(res.message || '更新失败')
}
})
}}
}
</script>
<style scoped>
.form-detail{
height: 500px;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
</style>
<template>
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileShow :params="{childPath:'AQBK'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="beforeEdit" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<br>
<el-form ref="form" label-width='80px' >
<el-row :gutter="20">
<el-col :span="4">
<el-form-item label="教育人">
<!-- <el-input v-model="vMain.rowItem.aqjyr" :readonly="readonly" rows="5" >
</el-input> -->
<personSelector :readonly="readonly" :label="vMain.rowItem.aqjyrName||vMain.rowItem.aqjyr||'暂无'" @selected='aqjyrSelected' ></personSelector>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="教育时间">
<el-date-picker value-format="timestamp" type="datetime" v-model="vMain.rowItem.aqjysj" :readonly="readonly" ></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="教育内容">
<el-input v-model="vMain.rowItem.aqcont" type="textarea" :readonly="readonly" rows="10" >
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</template>
<script>
import {
beforeEdit
} from '@/api/threeViolations/enterTV.js';
export default {
data() {
return {
readonly:true,
}
},
props:['vMain'],
methods: {
beforeEdit(){
beforeEdit({
ywlx:'AQBK',
id:this.vMain.rowItem.id
}).then(res=>{
if(res.success){
this.readonly=false;
this.$success('开启编辑')
}
})
},
aqjyrSelected(row){
this.vMain.rowItem.aqjyrid=row.id
},
save(){
let params=this.vMain.rowItem
this.vMain.apiAq(params).then(res => {
if (res.success) {
this.$success('更新成功')
this.readonly=true
this.vMain.$refs['TablePager'].reLoad()
let tableData=this.vMain.$refs['TablePager'].tableData
let nowIndex=false
tableData.forEach((data,index)=>{
if(data.id==params.master.id){
nowIndex=index
}
})
if(nowIndex!==false){
this.vMain.$refs['TablePager'].tableData.splice(nowIndex,1,params.master)
this.vMain.$refs['TablePager'].setCurrent(params.master)
}
} else {
this.$error(res.message || '更新失败')
}
})
}}
}
</script>
<style scoped>
.form-detail{
height: 500px;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
</style>
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