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',
......
This diff is collapsed.
<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>
This diff is collapsed.
<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>
This diff is collapsed.
<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>
This diff is collapsed.
<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>
This diff is collapsed.
<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>
This diff is collapsed.
<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>
This diff is collapsed.
<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