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

调整

parent 76f2fd38
......@@ -44,11 +44,18 @@
:match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">部门:</span>
<RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBm'
filterable 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>
<RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz'
filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid'></RelSelect>
filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bzid'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
......@@ -167,6 +174,7 @@
rwlx: '',
queryType: 'fxpc',
gsid: '',
bzid:'',
bmid: '',
jcr: '',
zt: '',
......
<template>
<!-- <div class="min_full" style="height: 140vh;"> -->
<!-- <div class="min_full" style="height: 140vh;"> -->
<div class="min_full" >
<!-- <Zdzrr :app='this' v-if="showDialog&&DialogName=='指定检查人'" ></Zdzrr> -->
<yhContent :app='this' v-if="showDialog&&DialogName=='关联隐患'" ></yhContent>
<!-- 查询条件-->
<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>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/zt' clearable :match="{value:'id',label:'name'}" v-model='queryParams.zt' ></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">检查人员:</span>
<el-input v-model="queryParams.jcr" ></el-input>
</div>
</el-col>
<div class="min_full">
<!-- <Zdzrr :app='this' v-if="showDialog&&DialogName=='指定检查人'" ></Zdzrr> -->
<yhContent :app='this' v-if="showDialog&&DialogName=='关联隐患'"></yhContent>
<!-- 查询条件-->
<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>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/zt' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.zt'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">检查人员:</span>
<el-input v-model="queryParams.jcr"></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.ksrq"></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.jsrq" ></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.ksrq"></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.jsrq"></el-date-picker>
</div>
</el-col>
</el-row>
<el-row :gutter="20" class="search-row-1">
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">公司:</span>
<RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid' ></RelSelect>
</div>
</el-col>
<!-- <el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">部门:</span>
<RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable 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>
<RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable 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>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/jcjg' filterable clearable :match="{value:'id',label:'name'}" v-model='queryParams.jcjg' ></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">任务类型:</span>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/rwlx' clearable :match="{value:'id',label:'name'}" v-model='queryParams.rwlx' ></RelSelect>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AttachFileShow :delButton='false' :addButton='false' :app='app'></AttachFileShow>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="关联隐患" width="90" header-align="center" >
<template slot-scope="scope" >
<span @click="watchglyh(scope.row)" style="color: cornflowerblue;cursor: pointer;line-height: 30px;text-align: center;width: 70px;display: inline-block;">查看</span>
</template>
</el-table-column>
</template>
</TablePager>
</div>
<el-row :gutter="20" class="search-row-1">
<el-col :span="4" class="search-col">
<div class="search-item">
<span class="search-span">公司:</span>
<RelSelect style="width: 100%;" src='jcsj/common/bm/queryGs' filterable clearable
:match="{value:'id',label:'bmmc'}" v-model='queryParams.gsid'></RelSelect>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<span class="search-span">部门:</span>
<RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBm'
filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid'></RelSelect>
</div>
</el-col>
<el-col :span="4" class="search-col">
<div class="search-item">
<span class="search-span">班组:</span>
<RelSelect linkage :linkParams="{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz'
filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bzid'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">检查结果:</span>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/jcjg' filterable clearable
:match="{value:'id',label:'name'}" v-model='queryParams.jcjg'></RelSelect>
</div>
</el-col>
<el-col :span="6" class="search-col">
<div class="search-item">
<span class="search-span">任务类型:</span>
<RelSelect style="width: 100%;" src='aqgl/fxyk/fxpc/init/rwlx' clearable :match="{value:'id',label:'name'}"
v-model='queryParams.rwlx'></RelSelect>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row class="tool-bar">
<PrintButton :app='app'></PrintButton>
<ViewButton ref="view" :app='app'></ViewButton>
<AttachFileShow :delButton='false' :addButton='false' :app='app'></AttachFileShow>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager :delButton='false' @getData='getData' :ref="'TablePager'" :app='app' :query='query'
@selectItem='selectItem' @getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="关联隐患" width="90" header-align="center">
<template slot-scope="scope">
<span @click="watchglyh(scope.row)"
style="color: cornflowerblue;cursor: pointer;line-height: 30px;text-align: center;width: 70px;display: inline-block;">查看</span>
</template>
</el-table-column>
</template>
</TablePager>
</div>
</div>
</template>
<script>
// import Zdzrr from './zdzrr'
// import Zdzrr from './zdzrr'
/* 引入需要的接口*/
/* 引入需要的接口*/
/* 引入需要的接口*/
import {
doQuery,
doAdd,
doUpdate,
doDelete,
} from "@/api/riskPrecontrol/maintenanceRiskTask.js";
import {
doQuery,
doAdd,
doUpdate,
doDelete,
} from "@/api/riskPrecontrol/maintenanceRiskTask.js";
import {
doQueryScgw
} from "@/api/riskPrecontrol/screeningCriteria.js";
import {
doQueryScgw
} from "@/api/riskPrecontrol/screeningCriteria.js";
/* edit页面*/
import Edit from './edit'
// import Details from './details.vue'
......@@ -124,23 +130,25 @@
/* 初始额外赋值*/
async mounted() {
await this.$asRun(
[doQueryScgw(),
res => {
var data = res['data']['records'];
this.doQueryScgw = data
}
]
)
this.$refs['TablePager'].pageQuery({setFirstCurrent:true})
await this.$asRun(
[doQueryScgw(),
res => {
var data = res['data']['records'];
this.doQueryScgw = data
}
]
)
this.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
console.log(this)
},
data() {
return {
DialogTitle:'指定检查人',
DialogTitle: '指定检查人',
/*需要的额外参数 */
showDialog:false,
doQueryScgw:[],
showDialog: false,
doQueryScgw: [],
activeName: 'first',
/*需要的额外参数 */
showDialog: false,
......@@ -150,56 +158,122 @@
baseUrl: '/aqgl/fxyk/fxpc',
/* 查询参数*/
queryParams: {
queryType:'fxpc',
rwlx:'',
jcjg:'',
gsid:'',
bmid:'',
jcr:'',
zt:'',
queryType: 'fxpc',
rwlx: '',
jcjg: '',
gsid: '',
bmid: '',
bzid:'',
jcr: '',
zt: '',
ksrq: '',
jsrq:''
jsrq: ''
},
/* 表格标题对应参数*/
tableTitle: [
// {label: "ID", prop: "id", fieldType: "ftString",width:192},
// {label: "单据来源", prop: "djly", fieldType: "ftString",width:60},
// {label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192},
{label: "状态", prop: "ztName", fieldType: "ftString",width:50},
{label: "任务类型", prop: "rwlxName", fieldType: "ftString",width:100},
{label: "下达日期", prop: "xdrq", fieldType: "ftDate"},
// {label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
{label: "检查时间", prop: "sjjcsj", fieldType: "ftDateTime"},
{label: "检查结果", prop: "jcjgName"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{label: "检查岗位", prop: "gwName", fieldType: "ftString",width:192},
{label: "检查内容", prop: "nr", fieldType: "ftString",width:300},
{label: "检查部位", prop: "jcyd", fieldType: "ftString",width:300},
{label: "检查人", prop: "jcrName", fieldType: "ftString",width:192},
{label: "地点", prop: "fxpcdd", fieldType: "ftString",width:192},
{label: "风险点", prop: "fxd", fieldType: "ftString",width:192},
{label: "公司", prop: "gsName", fieldType: "ftString",width:192},
{label: "班组", prop: "bzName", fieldType: "ftString",width:192},
],
timer:false,
tableTitle: [
// {label: "ID", prop: "id", fieldType: "ftString",width:192},
// {label: "单据来源", prop: "djly", fieldType: "ftString",width:60},
// {label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192},
{
label: "状态",
prop: "ztName",
fieldType: "ftString",
width: 50
},
{
label: "任务类型",
prop: "rwlxName",
fieldType: "ftString",
width: 100
},
{
label: "下达日期",
prop: "xdrq",
fieldType: "ftDate"
},
// {label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
{
label: "检查时间",
prop: "sjjcsj",
fieldType: "ftDateTime"
},
{
label: "检查结果",
prop: "jcjgName"
},
{
label: "创建时间",
prop: "cjsj",
fieldType: "ftDateTime"
},
{
label: "检查岗位",
prop: "gwName",
fieldType: "ftString",
width: 192
},
{
label: "检查内容",
prop: "nr",
fieldType: "ftString",
width: 300
},
{
label: "检查部位",
prop: "jcyd",
fieldType: "ftString",
width: 300
},
{
label: "检查人",
prop: "jcrName",
fieldType: "ftString",
width: 192
},
{
label: "地点",
prop: "fxpcdd",
fieldType: "ftString",
width: 192
},
{
label: "风险点",
prop: "fxd",
fieldType: "ftString",
width: 192
},
{
label: "公司",
prop: "gsName",
fieldType: "ftString",
width: 192
},
{
label: "班组",
prop: "bzName",
fieldType: "ftString",
width: 192
},
],
timer: false,
}
},
methods: {
watchglyh(row){
this.watchglyh.fxpcid=row.id
watchglyh(row) {
this.watchglyh.fxpcid = row.id
this.showDialog = true
this.DialogTitle='关联隐患'
this.DialogName='关联隐患'
this.DialogTitle = '关联隐患'
this.DialogName = '关联隐患'
},
zdzrr(){
zdzrr() {
if (this.app.selectOne || this.app.clickOne) {
this.showDialog = true
this.DialogTitle='指定检查人'
this.DialogName='指定检查人'
this.showDialog = true
this.DialogTitle = '指定检查人'
this.DialogName = '指定检查人'
} else {
this.$warning('请选中一行操作');
this.$warning('请选中一行操作');
}
},
getRow: function(e) {
......@@ -216,12 +290,12 @@
/* 基础查询*/
/* 基础查询*/
query: doQuery,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
/* 基础增*/
apiAdd: doAdd,
/* 基础更新*/
apiUpdate: doUpdate,
/* 删除操作*/
apiDelete: doDelete,
init() {
},
......
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