|
|
@ -5,11 +5,25 @@ |
|
|
|
<el-tabs ref="tabcs" v-model="activeName" @tab-click="handleClick"> |
|
|
|
<el-tab-pane label="企业良好行为公告" name="good"></el-tab-pane> |
|
|
|
<el-tab-pane label="企业不良行为公告" name="bad"></el-tab-pane> |
|
|
|
<el-tab-pane label="企业信用统计" name="xinyong"></el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="certification-list"> |
|
|
|
<div class="list-wrap"> |
|
|
|
<div class="xinyong" v-if="activeName === 'xinyong'"> |
|
|
|
<el-tabs |
|
|
|
v-model="queryForm.qualificationCategory" |
|
|
|
@tab-click="categoryClick" |
|
|
|
> |
|
|
|
<el-tab-pane |
|
|
|
v-for="item in categoryList" |
|
|
|
:key="item.id" |
|
|
|
:label="item.dictLabel" |
|
|
|
:name="item.dictValue" |
|
|
|
></el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
<el-form :inline="true" label-width="80px" :model="queryForm"> |
|
|
|
<el-form-item label="企业名称"> |
|
|
|
<el-input |
|
|
@ -18,7 +32,7 @@ |
|
|
|
v-model="queryForm.enterpriseName" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="企业类型"> |
|
|
|
<el-form-item label="企业类型" v-if="activeName !== 'xinyong'"> |
|
|
|
<el-select |
|
|
|
v-model="queryForm.qualificationCategory" |
|
|
|
clearable |
|
|
@ -33,6 +47,22 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="所在区域" v-if="activeName === 'xinyong'"> |
|
|
|
<el-select |
|
|
|
v-model="queryForm.adcd" |
|
|
|
clearable |
|
|
|
placeholder="请选择所在区域" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in areaList" |
|
|
|
:key="item.xzqhdm" |
|
|
|
:label="item.name" |
|
|
|
:value="item.xzqhdm" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="mini" icon="el-icon-search" @click="getResult()" |
|
|
|
>查询</el-button |
|
|
@ -57,14 +87,22 @@ |
|
|
|
> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="projectName" |
|
|
|
label="项目名称" |
|
|
|
align="center" |
|
|
|
v-if="activeName !== 'xinyong'" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="qualificationCategory" |
|
|
|
label="企业资质" |
|
|
|
align="center" |
|
|
|
v-if="activeName !== 'xinyong'" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ getZizhi(scope.row.qualificationCategory) }} |
|
|
|
</template> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
<div |
|
|
|
v-for="(cateTtem, index) in categoryList" |
|
|
|
:key="(cateTtem, index)" |
|
|
@ -75,23 +113,54 @@ |
|
|
|
{{ cateTtem.dictLabel }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> --> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
label="企业资质" |
|
|
|
align="center" |
|
|
|
v-if="activeName === 'xinyong'" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ getZizhi(scope.row.enterpriseType) }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="adcd" |
|
|
|
label="所在区域" |
|
|
|
align="center" |
|
|
|
v-if="activeName === 'xinyong'" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ getadcd(scope.row) }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="dynamicCreditScore" |
|
|
|
prop="score" |
|
|
|
label="信用分数" |
|
|
|
align="center" |
|
|
|
v-if="activeName === 'xinyong'" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="bonusPoints" |
|
|
|
:label="activeName === 'good' ? '加分值' : '扣分值'" |
|
|
|
align="center" |
|
|
|
v-if="activeName !== 'xinyong'" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="publishUnit" label="发布单位" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="publishUnit" |
|
|
|
label="发布单位" |
|
|
|
align="center" |
|
|
|
v-if="activeName !== 'xinyong'" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="noticeTime" label="公告时间" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="noticeTime" |
|
|
|
label="公告时间" |
|
|
|
align="center" |
|
|
|
v-if="activeName !== 'xinyong'" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<pagination |
|
|
@ -106,7 +175,13 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { creditGetGood, creditGetBad } from "@/api/creditStatistics"; |
|
|
|
import { |
|
|
|
creditGetGood, |
|
|
|
creditGetBad, |
|
|
|
getGuangDong |
|
|
|
} from "@/api/creditStatistics"; |
|
|
|
|
|
|
|
import { listEnterpriseInfo } from "@/api/home"; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -118,7 +193,7 @@ export default { |
|
|
|
pageSizes: [10, 20, 30, 50], |
|
|
|
queryForm: { |
|
|
|
enterpriseName: "", |
|
|
|
qualificationCategory: "", |
|
|
|
qualificationCategory: "all", |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
adcd: "" |
|
|
@ -126,10 +201,13 @@ export default { |
|
|
|
tableData: [], |
|
|
|
categoryList: [], |
|
|
|
activeName: "good", |
|
|
|
loading: true |
|
|
|
loading: true, |
|
|
|
category: "all", |
|
|
|
areaList: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getArea(); |
|
|
|
if (this.$route.query.type) { |
|
|
|
this.activeName = this.$route.query.type; |
|
|
|
} |
|
|
@ -137,34 +215,122 @@ export default { |
|
|
|
mounted() { |
|
|
|
this.getResult(); |
|
|
|
this.getDicts("qualification_type").then(res => { |
|
|
|
this.categoryList = res.data.data; |
|
|
|
this.categoryList = [].concat( |
|
|
|
{ |
|
|
|
id: "000", |
|
|
|
dictLabel: "所有资质", |
|
|
|
dictValue: "all" |
|
|
|
}, |
|
|
|
res.data.data |
|
|
|
); |
|
|
|
}); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getZizhi(type) { |
|
|
|
let zizhiText = ""; |
|
|
|
this.categoryList.forEach(item => { |
|
|
|
if (item.dictValue == type) { |
|
|
|
zizhiText = item.dictLabel; |
|
|
|
} |
|
|
|
}); |
|
|
|
return zizhiText; |
|
|
|
}, |
|
|
|
getadcd(row) { |
|
|
|
let adcdText = ""; |
|
|
|
if (!row.adcd) return ""; |
|
|
|
let adcdCode = row.adcd.slice(0, 4) + "00"; |
|
|
|
this.areaList.forEach(item => { |
|
|
|
if (item.xzqhdm == adcdCode) { |
|
|
|
adcdText = item.name; |
|
|
|
} |
|
|
|
}); |
|
|
|
if (adcdText == "") { |
|
|
|
adcdText = "省外"; |
|
|
|
} |
|
|
|
return adcdText; |
|
|
|
}, |
|
|
|
getArea() { |
|
|
|
getGuangDong().then(res => { |
|
|
|
this.areaList = res.data.data; |
|
|
|
}); |
|
|
|
}, |
|
|
|
categoryClick() { |
|
|
|
this.getResult(); |
|
|
|
}, |
|
|
|
getResult() { |
|
|
|
this.loading = true; |
|
|
|
if (this.activeName === "good") { |
|
|
|
creditGetGood(this.queryForm).then(res => { |
|
|
|
let queryForm = JSON.parse(JSON.stringify(this.queryForm)); |
|
|
|
if (queryForm.qualificationCategory == "all") { |
|
|
|
queryForm.qualificationCategory = ""; |
|
|
|
} |
|
|
|
|
|
|
|
switch (this.activeName) { |
|
|
|
case "good": |
|
|
|
creditGetGood(queryForm).then(res => { |
|
|
|
this.tableData = res.data.records; |
|
|
|
this.total = res.data.total; |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
} else { |
|
|
|
creditGetBad(this.queryForm).then(res => { |
|
|
|
break; |
|
|
|
case "bad": |
|
|
|
creditGetBad(queryForm).then(res => { |
|
|
|
this.tableData = res.data.records; |
|
|
|
this.total = res.data.total; |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
break; |
|
|
|
case "xinyong": |
|
|
|
let queryParams = { |
|
|
|
pageNum: queryForm.pageNum, |
|
|
|
pageSize: queryForm.pageSize, |
|
|
|
ids: null, |
|
|
|
data: { |
|
|
|
enterpriseName: queryForm.enterpriseName, |
|
|
|
adcd: queryForm.adcd, |
|
|
|
enterpriseType: queryForm.qualificationCategory |
|
|
|
}, |
|
|
|
// 排序方式 |
|
|
|
params: { |
|
|
|
// 按哪个字段排序 |
|
|
|
orderBy: "score", |
|
|
|
// desc降序,升序asc |
|
|
|
sort: "desc" |
|
|
|
} |
|
|
|
}; |
|
|
|
listEnterpriseInfo(queryParams).then(res => { |
|
|
|
// this.tableData = []; |
|
|
|
this.tableData = res.data.records; |
|
|
|
console.log(6666, res); |
|
|
|
this.total = res.data.total; |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
// if (this.activeName === "good") { |
|
|
|
// creditGetGood(queryForm).then(res => { |
|
|
|
// this.tableData = res.data.records; |
|
|
|
// this.total = res.data.total; |
|
|
|
// this.loading = false; |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// creditGetBad(queryForm).then(res => { |
|
|
|
// this.tableData = res.data.records; |
|
|
|
// this.total = res.data.total; |
|
|
|
// this.loading = false; |
|
|
|
// }); |
|
|
|
// } |
|
|
|
}, |
|
|
|
handleClick(tab, event) { |
|
|
|
// console.log(tab, event); |
|
|
|
this.getResult(); |
|
|
|
// this.getResult(); |
|
|
|
this.resetForm(); |
|
|
|
}, |
|
|
|
resetForm() { |
|
|
|
this.queryForm = { |
|
|
|
enterpriseName: "", |
|
|
|
qualificationCategory: "", |
|
|
|
qualificationCategory: "all", |
|
|
|
adcd: "", |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10 |
|
|
|
}; |
|
|
|