相关方需求变革

main
liujun 2023-12-18 18:54:49 +08:00
parent be3448012a
commit 2b6af35238
4 changed files with 2941 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,188 @@
<template>
<div class="app-container">
<el-form label-width="110px">
<el-row :gutter="24">
<el-col :span="6">
<el-form-item label="相关方单位名称">
<el-input v-model="searchForm.RELEVANT_UNIT_NAME" placeholder="搜索相关方单位名称" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="24">
<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="loading"
ref="multipleTable"
:data="list"
:row-key="getRowKey"
:header-cell-style="{
'font-weight': 'bold',
'color': '#000'
}"
tooltip-effect="dark"
border
fit
highlight-current-row
>
<el-table-column
:reserve-selection="true"
type="selection"
width="55"
align="center"/>
<el-table-column type="index" label="序号" width="50" align="center" />
<el-table-column prop="BELONG_TO_CORP_NAME" label="相关方单位名称" />
<el-table-column prop="XGF_USER_NAME" label="人员名称" />
<el-table-column label="操作" align="center" width="200px">
<template slot-scope="{row}">
<el-button type="primary" icon="el-icon-view" size="mini" @click="info(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 {
components: { Pagination },
directives: { waves },
data() {
return {
loading: true,
add: false,
del: false,
edit: false,
listQuery: {
page: 1,
limit: 20
},
config: config,
total: 0,
KEYWORDS: '',
selection: [], //
searchForm: {
},
list: []
}
},
created() {
},
methods: {
//
getQuery() {
this.$refs.multipleTable.clearSelection()
this.getList()
},
//
goKeyReset() {
this.searchForm.POSSESSION = ''
this.searchForm.SELECT_FORM = ''
this.searchForm.PROVINCE = ''
this.searchForm.CITY = ''
this.searchForm.COUNTY = ''
this.searchForm.VILLAGE = ''
this.searchForm.STATE = ''
this.searchForm.RELEVANT_UNIT_NAME = ''
this.searchForm.EMPLOYMENT_FORM = ''
this.searchForm.KEYWORDS = ''
this.searchForm.CORP_TYPE = ''
this.getQuery()
},
//
getList() {
this.loading = true
requestFN(
'/xgf/corp/getCorpInfoList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{
KEYWORDS: this.searchForm.RELEVANT_UNIT_NAME,
PROVINCE: this.searchForm.POSSESSION[0] || '',
CITY: this.searchForm.POSSESSION[1] || '',
COUNTY: this.searchForm.POSSESSION[2] || '',
VILLAGE: this.searchForm.POSSESSION[3] || '',
STREET: this.searchForm.POSSESSION[4] || '',
STATE: this.searchForm.STATE,
EMPLOYMENT_FORM: this.searchForm.EMPLOYMENT_FORM,
SELECT_FORM: this.searchForm.SELECT_FORM,
CORP_TYPE: this.searchForm.CORP_TYPE
}
).then((data) => {
this.loading = false
this.varList = data.varList
this.total = data.page.totalResult
this.hasButton()
this.pd = data.pd
}).catch((e) => {
this.loading = false
})
},
info() {
},
getRowKey(row) {
return row.CORPINFO_ID
},
//
hasButton: function() {
var keys = 'units:add,units:del,units:edit,toExcel'
requestFN(
'/head/hasButton',
{
keys: keys
}
).then((data) => {
this.add = data.unitsfhadminadd //
this.del = data.unitsfhadmindel //
this.edit = data.unitsfhadminedit //
}).catch((e) => {
this.loading = false
})
},
//
getDict() {
requestFN(
'/xgf/dictionaries/getLevels',
{
DICTIONARIES_ID: '720992d898bf4fd7b44bf0ba1f1bbb88'
}
).then((data) => {
this.employmentTypeList = data.list
})
requestFN(
'/xgf/dictionaries/getLevels',
{
DICTIONARIES_ID: '9ce2e9a4636b4d41b460ce16c346d497'
}
).then((data) => {
this.selectFormList = data.list
})
requestFN(
'/xgf/dictionaries/getLevels',
{
DICTIONARIES_ID: '37d8385931f14bb0b962082cf6bb3395'
}
).then((data) => {
this.corpTypeList = data.list
})
}
}
}
</script>

View File

@ -0,0 +1,36 @@
<template>
<div>
<List v-show="activeName=='List'" ref="list" />
<Edit v-if="activeName=='Edit'" />
<Edit v-if="activeName=='corpInfoEdit'" />
</div>
</template>
<script>
import List from './components/list'
import Edit from './components/edit'
import corpInfoEdit from './components/corpInfoEdit'
export default {
components: {
List: List,
Edit: Edit,
corpInfoEdit: corpInfoEdit,
CORPINFO_ID: ''
},
data() {
return {
activeName: 'List'
}
},
watch: {
activeName(val) {
if (val == 'List') {
this.$refs.list.getQuery()
}
}
}
}
</script>
<style scoped>
</style>