重点工程管理,安全环保检查管理,隐患管理,处罚管理。按照分公司创建的重点工程再包一层
parent
4d2865a5ed
commit
ab35406727
|
@ -0,0 +1,135 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="5">
|
||||
<el-form-item label="企业名字">
|
||||
<el-input v-model="CORP_NAME" placeholder="搜索企业名字" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="5">
|
||||
<el-form-item label="重点工程名称">
|
||||
<el-input v-model="OUTSOURCED_NAME" placeholder="搜索重点工程名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label-width="10px">
|
||||
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button v-waves class="filter-item" type="success" icon="el-icon-refresh" @click="goKeyReset">
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
ref="multipleTable"
|
||||
:data="varList"
|
||||
:row-key="getRowKey"
|
||||
:header-cell-style="{
|
||||
'font-weight': 'bold',
|
||||
'color': '#000'
|
||||
}"
|
||||
tooltip-effect="dark"
|
||||
border
|
||||
fit
|
||||
highlight-current-row
|
||||
>
|
||||
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||
<el-table-column prop="CORP_NAME" label="公司名称" show-overflow-tooltip />
|
||||
<el-table-column prop="STARTTIME" label="属地" show-overflow-tooltip>
|
||||
<template slot-scope="{row}">
|
||||
{{ row.prvinceName }} -- {{ row.cityName }} -- {{ row.countryName }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="INDUSTRY_NAME" label="所属行业" show-overflow-tooltip />
|
||||
<el-table-column prop="OUTSOURCED_COUNT" label="包含重点工程数" />
|
||||
<el-table-column label="操作" align="center" width="100">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="success" icon="el-icon-view" size="mini" @click="goDetail(row.CORPINFO_ID)">查看</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="page-btn-group">
|
||||
<div/>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||
import { requestFN } from '@/utils/request'
|
||||
import waves from '@/directive/waves' // waves directive
|
||||
export default {
|
||||
name: 'IndexVue',
|
||||
components: { Pagination },
|
||||
directives: { waves },
|
||||
props: {
|
||||
activeName: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
listLoading: true,
|
||||
listQuery: {
|
||||
page: 1,
|
||||
limit: 20
|
||||
},
|
||||
total: 0,
|
||||
OUTSOURCED_NAME: '',
|
||||
CORP_NAME: '',
|
||||
varList: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
getRowKey(row) {
|
||||
return row.CORPINFO_ID
|
||||
},
|
||||
// 搜索
|
||||
getQuery() {
|
||||
this.getList()
|
||||
},
|
||||
goKeyReset() {
|
||||
this.CORP_NAME = ''
|
||||
this.OUTSOURCED_NAME = ''
|
||||
this.getQuery()
|
||||
},
|
||||
// 获取列表
|
||||
getList() {
|
||||
this.listLoading = true
|
||||
requestFN(
|
||||
'api/outsourced/listByCorp?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||
{
|
||||
CORP_NAME: this.CORP_NAME,
|
||||
OUTSOURCED_NAME: this.OUTSOURCED_NAME
|
||||
}
|
||||
).then((data) => {
|
||||
this.listLoading = false
|
||||
this.varList = data.varList
|
||||
this.total = data.page.totalResult
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
// 查看
|
||||
goDetail(ID) {
|
||||
this.$parent.CORPINFO_ID = ID
|
||||
this.$parent.activeName = this.activeName
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -1,44 +1,48 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-page-header content="隐患管理" @back="back"/>
|
||||
<div class="level-title mt-20"/>
|
||||
<el-form label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="重点工程名称">
|
||||
<el-input v-model="OUTSOURCED_NAME" placeholder="搜索重点工程名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="隐患来源">
|
||||
<el-select ref="SOURCE" v-model="SOURCE" style="width: 100%;">
|
||||
<el-option v-for="item in SOURCEList" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="隐患发现人">
|
||||
<el-input v-model="CREATOR_NAME" placeholder="搜索隐患发现人" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="隐患整改人">
|
||||
<el-input v-model="RECTIFICATIONOR_NAME" placeholder="搜索隐患整改人" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="隐患状态">
|
||||
<el-select ref="STATE" v-model="STATE" style="width: 100%;">
|
||||
<el-option v-for="item in zList" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="是否处罚">
|
||||
<el-select ref="ISPUNISH" v-model="ISPUNISH" style="width: 100%;">
|
||||
<el-option v-for="item in stateList" :key="item.ID" :label="item.NAME" :value="item.ID" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-form-item label-width="10px">
|
||||
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="getQuery">
|
||||
搜索
|
||||
|
@ -47,7 +51,8 @@
|
|||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-col></el-row>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
|
@ -174,6 +179,10 @@ export default {
|
|||
getRowKey(row) {
|
||||
return row.OUTSOURCED_ID
|
||||
},
|
||||
back() {
|
||||
this.$parent.CORPINFO_ID = ''
|
||||
this.$parent.activeName = 'OutSourced'
|
||||
},
|
||||
// 搜索
|
||||
getQuery() {
|
||||
this.$refs.multipleTable.clearSelection()
|
||||
|
@ -200,6 +209,7 @@ export default {
|
|||
OUTSOURCED_NAME: this.OUTSOURCED_NAME,
|
||||
ISCHECK: this.ISCHECK,
|
||||
ISPUNISH: this.ISPUNISH,
|
||||
CORPINFO_ID: this.$parent.CORPINFO_ID,
|
||||
RECTIFICATIONOR_NAME: this.RECTIFICATIONOR_NAME,
|
||||
CREATOR_NAME: this.CREATOR_NAME,
|
||||
STATE: this.STATE,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
|
||||
<component :is="activeName"/>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -7,15 +8,17 @@
|
|||
<script>
|
||||
import List from './components/list'
|
||||
import Info from './components/info'
|
||||
import OutSourced from '@/components/OutSourced/index'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
List: List,
|
||||
OutSourced: OutSourced,
|
||||
Info: Info
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeName: 'List',
|
||||
activeName: 'OutSourced',
|
||||
HIDDEN_ID: ''
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-page-header content="安全环保检查" @back="back"/>
|
||||
<div class="level-title mt-20"/>
|
||||
<el-form label-width="100px">
|
||||
<el-row>
|
||||
<!-- <el-col :span="5">-->
|
||||
|
@ -73,7 +75,8 @@
|
|||
<div/>
|
||||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
</div></template>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import Pagination from '@/components/Pagination' // 通过 el-pagination二次打包
|
||||
import { requestFN } from '@/utils/request'
|
||||
|
@ -106,6 +109,10 @@ export default {
|
|||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
this.$parent.CORPINFO_ID = ''
|
||||
this.$parent.activeName = 'OutSourced'
|
||||
},
|
||||
getRowKey(row) {
|
||||
return row.OUTSOURCED_ID
|
||||
},
|
||||
|
@ -128,6 +135,7 @@ export default {
|
|||
{
|
||||
KEYWORDS: this.KEYWORDS,
|
||||
OUTSOURCED_NAME: this.OUTSOURCED_NAME,
|
||||
CORPINFO_ID: this.$parent.CORPINFO_ID,
|
||||
STATE: this.STATE
|
||||
}
|
||||
).then((data) => {
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
<template>
|
||||
<div>
|
||||
<component :is="activeName"/>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
|
||||
<List v-if="activeName=='List'" ref="list" />
|
||||
<Info v-if="activeName=='Info'" />
|
||||
<recordList v-if="activeName=='recordList'" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -8,19 +11,28 @@
|
|||
import List from './components/list'
|
||||
import Info from './components/info'
|
||||
import recordList from './components/record-list'
|
||||
import OutSourced from '@/components/OutSourced/index'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
List: List,
|
||||
OutSourced: OutSourced,
|
||||
Info: Info,
|
||||
recordList: recordList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeName: 'List',
|
||||
activeName: 'OutSourced',
|
||||
OUTSOURCED_ID: '',
|
||||
KEYPROJECTCHECK_ID: ''
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
activeName(val) {
|
||||
if (val == 'OutSourced') {
|
||||
this.$refs.outSourced.getQuery()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-page-header content="重点工程" @back="back"/>
|
||||
<div class="level-title mt-20"/>
|
||||
<el-form label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
|
@ -8,8 +10,10 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="创建单位">
|
||||
<el-input v-model="CORP_NAME" placeholder="创建单位" style="width: 100%;" />
|
||||
<el-form-item label="集团单位">
|
||||
<el-select v-model="GROUP_UNIT" placeholder="请选择集团单位" style="width: 100%;">
|
||||
<el-option v-for="item in groupCorpList" :key="item.CORPINFO_ID" :label="item.CORP_NAME" :value="item.CORPINFO_ID" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
|
@ -66,13 +70,7 @@
|
|||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="集团单位">
|
||||
<el-select v-model="GROUP_UNIT" placeholder="请选择集团单位" style="width: 100%;">
|
||||
<el-option v-for="item in groupCorpList" :key="item.CORPINFO_ID" :label="item.CORP_NAME" :value="item.CORPINFO_ID" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="状态">
|
||||
<el-select ref="SELECT_STATE" v-model="STATE" style="width: 100%;">
|
||||
|
@ -112,7 +110,6 @@
|
|||
width="55"
|
||||
align="center"/>
|
||||
<el-table-column type="index" label="序号" width="50" align="center" />
|
||||
<el-table-column prop="CORP_NAME" label="创建单位" show-overflow-tooltip />
|
||||
<el-table-column prop="OUTSOURCED_NAME" label="重点工程名称" show-overflow-tooltip />
|
||||
<el-table-column prop="UNITS_NAME" label="施工相关方" width="250" show-overflow-tooltip />
|
||||
<el-table-column label="辖区单位" show-overflow-tooltip >
|
||||
|
@ -298,6 +295,7 @@ export default {
|
|||
CONTRACT_STIME: this.CONTRACTTIME[0],
|
||||
CONTRACT_ETIME: this.CONTRACTTIME[1],
|
||||
STATE: this.STATE,
|
||||
CORPINFO_ID: this.$parent.CORPINFO_ID,
|
||||
INVOLVING_CORP: this.INVOLVING_CORP,
|
||||
DEPARTMENT_ID: this.DEPARTMENT_ID,
|
||||
COMPETENT_DEPT_ID: this.COMPETENT_DEPT_ID,
|
||||
|
@ -509,6 +507,10 @@ export default {
|
|||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
back() {
|
||||
this.$parent.CORPINFO_ID = ''
|
||||
this.$parent.activeName = 'OutSourced'
|
||||
},
|
||||
// 获取数据字典数据
|
||||
getDict: function() {
|
||||
},
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
|
||||
<List v-show="activeName=='List'" ref="list" />
|
||||
<Edit v-if="activeName=='Edit'" />
|
||||
<Info v-if="activeName=='Info'" />
|
||||
|
@ -10,16 +11,18 @@
|
|||
import List from './components/list'
|
||||
import Edit from './components/edit'
|
||||
import Info from './components/info'
|
||||
import OutSourced from '@/components/OutSourced/index'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
List: List,
|
||||
Edit: Edit,
|
||||
OutSourced: OutSourced,
|
||||
Info: Info
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeName: 'List'
|
||||
activeName: 'OutSourced'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
@ -27,6 +30,9 @@ export default {
|
|||
if (val == 'List') {
|
||||
this.$refs.list.getQuery()
|
||||
}
|
||||
if (val == 'OutSourced') {
|
||||
this.$refs.outSourced.getQuery()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-page-header content="处罚管理" @back="back"/>
|
||||
<div class="level-title mt-20"/>
|
||||
<el-form label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="4">
|
||||
|
@ -110,6 +112,10 @@ export default {
|
|||
getRowKey(row) {
|
||||
return row.OUTSOURCED_ID
|
||||
},
|
||||
back() {
|
||||
this.$parent.CORPINFO_ID = ''
|
||||
this.$parent.activeName = 'OutSourced'
|
||||
},
|
||||
// 搜索
|
||||
getQuery() {
|
||||
this.$refs.multipleTable.clearSelection()
|
||||
|
@ -143,7 +149,9 @@ export default {
|
|||
requestFN(
|
||||
'/outsourced/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
|
||||
{
|
||||
KEYWORDS: this.KEYWORDS
|
||||
KEYWORDS: this.KEYWORDS,
|
||||
CORPINFO_ID: this.$parent.CORPINFO_ID
|
||||
|
||||
}
|
||||
).then((data) => {
|
||||
this.listLoading = false
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div>
|
||||
<OutSourced v-show="activeName=='OutSourced'" ref="outSourced" active-name="List"/>
|
||||
<List v-show="activeName=='List'" ref="list" />
|
||||
<List2 v-if="activeName=='List2'" />
|
||||
<Info v-if="activeName=='Info'" />
|
||||
|
@ -12,17 +13,19 @@ import List from './components/list'
|
|||
import Info from './components/info'
|
||||
import List2 from './components/list2'
|
||||
import HiddenInfo from './components/hiddenInfo.vue'
|
||||
import OutSourced from '@/components/OutSourced/index'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
HiddenInfo: HiddenInfo,
|
||||
OutSourced: OutSourced,
|
||||
List: List,
|
||||
Info: Info,
|
||||
List2: List2
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeName: 'List',
|
||||
activeName: 'OutSourced',
|
||||
KEYPROJECTPUNISH_ID: '',
|
||||
HIDDEN_ID: ''
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue