|
@ -1,91 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="app-container"> |
|
|
<div class="app-container"> |
|
|
<!-- <el-form |
|
|
|
|
|
:model="queryParams" |
|
|
|
|
|
ref="queryForm" |
|
|
|
|
|
:inline="true" |
|
|
|
|
|
v-show="showSearch" |
|
|
|
|
|
label-width="68px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-form-item label="项目名称" prop="projectName"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="queryParams.data.projectName" |
|
|
|
|
|
placeholder="请输入项目名称" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="primary" |
|
|
|
|
|
slot="append" |
|
|
|
|
|
icon="el-icon-search" |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="handleQuery" |
|
|
|
|
|
></el-button> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="资质类别" prop="qualificationCategory"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="queryParams.data.qualificationCategory" |
|
|
|
|
|
placeholder="请选择资质类别" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="dict in qualificationCategoryOptions" |
|
|
|
|
|
:key="dict.dictValue" |
|
|
|
|
|
:label="dict.dictLabel" |
|
|
|
|
|
:value="dict.dictValue" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
|
|
|
|
|
>重置</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8"> |
|
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="primary" |
|
|
|
|
|
icon="el-icon-plus" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
@click="handleAdd" |
|
|
|
|
|
v-hasPermi="['enterprise:credit:add']" |
|
|
|
|
|
>新增</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="success" |
|
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
:disabled="single" |
|
|
|
|
|
@click="handleUpdate" |
|
|
|
|
|
v-hasPermi="['enterprise:credit:edit']" |
|
|
|
|
|
>修改</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="danger" |
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
:disabled="multiple" |
|
|
|
|
|
@click="handleDelete" |
|
|
|
|
|
v-hasPermi="['enterprise:credit:remove']" |
|
|
|
|
|
>删除</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
|
|
<right-toolbar |
|
|
|
|
|
:showSearch.sync="showSearch" |
|
|
|
|
|
@queryTable="getList" |
|
|
|
|
|
></right-toolbar> |
|
|
|
|
|
</el-row> --> |
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="creditList"> |
|
|
<el-table v-loading="loading" :data="creditList"> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
label="序号" |
|
|
label="序号" |
|
@ -119,6 +33,7 @@ |
|
|
label="申报管理区划" |
|
|
label="申报管理区划" |
|
|
align="center" |
|
|
align="center" |
|
|
prop="declarationManagementZones" |
|
|
prop="declarationManagementZones" |
|
|
|
|
|
:formatter="formatDeclarationManagementZones" |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
/> |
|
|
/> |
|
|
<el-table-column |
|
|
<el-table-column |
|
@ -146,7 +61,7 @@ |
|
|
min-width="120" |
|
|
min-width="120" |
|
|
/> |
|
|
/> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
label="有效期" |
|
|
label="有效期(年)" |
|
|
align="center" |
|
|
align="center" |
|
|
prop="validityPeriod" |
|
|
prop="validityPeriod" |
|
|
min-width="120" |
|
|
min-width="120" |
|
@ -179,19 +94,6 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
label="类型" |
|
|
|
|
|
align="center" |
|
|
|
|
|
prop="type" |
|
|
|
|
|
min-width="120" |
|
|
|
|
|
/> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
label="不良行为" |
|
|
|
|
|
align="center" |
|
|
|
|
|
prop="badBehavior" |
|
|
|
|
|
min-width="120" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
<el-table-column |
|
|
label="操作" |
|
|
label="操作" |
|
|
align="center" |
|
|
align="center" |
|
@ -283,10 +185,20 @@ |
|
|
label="申报管理区划" |
|
|
label="申报管理区划" |
|
|
prop="declarationManagementZones" |
|
|
prop="declarationManagementZones" |
|
|
> |
|
|
> |
|
|
<el-input |
|
|
<!-- <el-input |
|
|
v-model="form.declarationManagementZones" |
|
|
v-model="form.declarationManagementZones" |
|
|
placeholder="请输入申报管理区划" |
|
|
placeholder="请输入申报管理区划" |
|
|
/> |
|
|
/> --> |
|
|
|
|
|
<el-cascader |
|
|
|
|
|
:options="areasOptions" |
|
|
|
|
|
v-model="form.declarationManagementZones" |
|
|
|
|
|
:props="areasOptionProps" |
|
|
|
|
|
placeholder="请选择申报管理区划" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
style="width: 100%" |
|
|
|
|
|
> |
|
|
|
|
|
</el-cascader> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
@ -299,13 +211,17 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="表彰等级" prop="commendationLevel"> |
|
|
<el-form-item label="表彰等级" prop="commendationLevel"> |
|
|
<el-select |
|
|
<!-- <el-select |
|
|
v-model="form.commendationLevel" |
|
|
v-model="form.commendationLevel" |
|
|
placeholder="请选择表彰等级" |
|
|
placeholder="请选择表彰等级" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
> |
|
|
> |
|
|
<el-option label="请选择字典生成" value="" /> |
|
|
<el-option label="请选择字典生成" value="" /> |
|
|
</el-select> |
|
|
</el-select> --> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="form.commendationLevel" |
|
|
|
|
|
placeholder="请输入表彰等级" |
|
|
|
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
@ -340,25 +256,6 @@ |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item label="类型" prop="type"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="form.type" |
|
|
|
|
|
placeholder="请选择类型" |
|
|
|
|
|
style="width: 100%" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option label="请选择字典生成" value="" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item label="不良行为" prop="badBehavior"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="form.badBehavior" |
|
|
|
|
|
placeholder="请输入不良行为" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
<el-col :span="12"> |
|
|
<el-form-item label="附件" prop="attachment"> |
|
|
<el-form-item label="附件" prop="attachment"> |
|
|
<!-- <el-input v-model="form.attachment" placeholder="请输入附件" /> --> |
|
|
<!-- <el-input v-model="form.attachment" placeholder="请输入附件" /> --> |
|
@ -426,6 +323,10 @@ |
|
|
<template slot="label"> 资质类别 </template> |
|
|
<template slot="label"> 资质类别 </template> |
|
|
{{ qualificationCategoryFormat(this.creditMsg) }} |
|
|
{{ qualificationCategoryFormat(this.creditMsg) }} |
|
|
</el-descriptions-item> |
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> 状态 </template> |
|
|
|
|
|
{{ statusFormat(this.creditMsg) }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
<template slot="label"> 申报管理区划 </template> |
|
|
<template slot="label"> 申报管理区划 </template> |
|
|
{{ this.creditMsg.declarationManagementZones }} |
|
|
{{ this.creditMsg.declarationManagementZones }} |
|
@ -447,17 +348,10 @@ |
|
|
{{ this.creditMsg.bonusPoints }} |
|
|
{{ this.creditMsg.bonusPoints }} |
|
|
</el-descriptions-item> |
|
|
</el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
<template slot="label"> 有效期 </template> |
|
|
<template slot="label"> 有效期(年) </template> |
|
|
{{ this.creditMsg.validityPeriod }} |
|
|
{{ this.creditMsg.validityPeriod }} |
|
|
</el-descriptions-item> |
|
|
</el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> 状态 </template> |
|
|
|
|
|
{{ statusFormat(this.creditMsg) }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
|
|
|
<template slot="label"> 类型 </template> |
|
|
|
|
|
{{ this.creditMsg.type }} |
|
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
<el-descriptions-item> |
|
|
<el-descriptions-item> |
|
|
<template slot="label"> 不良行为 </template> |
|
|
<template slot="label"> 不良行为 </template> |
|
|
{{ this.creditMsg.badBehavior }} |
|
|
{{ this.creditMsg.badBehavior }} |
|
@ -489,6 +383,7 @@ |
|
|
>通过审核</el-button |
|
|
>通过审核</el-button |
|
|
> |
|
|
> |
|
|
<el-button |
|
|
<el-button |
|
|
|
|
|
type="warning" |
|
|
@click="TurnDownExamine" |
|
|
@click="TurnDownExamine" |
|
|
v-hasPermi="['enterpriseMange:credit:TurnDownExamine']" |
|
|
v-hasPermi="['enterpriseMange:credit:TurnDownExamine']" |
|
|
>驳回审核</el-button |
|
|
>驳回审核</el-button |
|
@ -497,8 +392,9 @@ |
|
|
type="primary" |
|
|
type="primary" |
|
|
@click="upExamine" |
|
|
@click="upExamine" |
|
|
v-hasPermi="['enterpriseMange:credit:upExamine']" |
|
|
v-hasPermi="['enterpriseMange:credit:upExamine']" |
|
|
>上报</el-button |
|
|
>上 报</el-button |
|
|
> |
|
|
> |
|
|
|
|
|
<el-button @click="cancel">取 消</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
@ -515,13 +411,19 @@ import { |
|
|
} from "@/api/enterprise/credit"; |
|
|
} from "@/api/enterprise/credit"; |
|
|
import { getToken } from "@/utils/auth"; |
|
|
import { getToken } from "@/utils/auth"; |
|
|
import { getFileStream } from "@/api/system/upload"; |
|
|
import { getFileStream } from "@/api/system/upload"; |
|
|
import { getUserProfile } from "@/api/system/user"; |
|
|
import { getAreasData } from "@/api/areas/index"; |
|
|
|
|
|
import { regionData, codeToText, TextToCode } from "element-china-area-data"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "goodCredit", |
|
|
name: "goodCredit", |
|
|
props: ["enterpriseId"], |
|
|
props: ["enterpriseId"], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
areasOptionProps: { |
|
|
|
|
|
emitPath: false, //value返回最后一级的 |
|
|
|
|
|
checkStrictly: true, //选择任意一级 |
|
|
|
|
|
}, |
|
|
|
|
|
areasOptions: [], |
|
|
// 遮罩层 |
|
|
// 遮罩层 |
|
|
loading: true, |
|
|
loading: true, |
|
|
// 选中数组 |
|
|
// 选中数组 |
|
@ -591,6 +493,7 @@ export default { |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
|
|
|
this.getTreeData(); |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
this.getDicts("qualification_type").then((response) => { |
|
|
this.getDicts("qualification_type").then((response) => { |
|
|
this.qualificationCategoryOptions = response.data; |
|
|
this.qualificationCategoryOptions = response.data; |
|
@ -600,10 +503,60 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
formatDeclarationManagementZones(row) { |
|
|
|
|
|
if (row.declarationManagementZones) { |
|
|
|
|
|
let provinceCode = row.declarationManagementZones.slice(0, 2); |
|
|
|
|
|
let cityCode = row.declarationManagementZones.slice(2, 4); |
|
|
|
|
|
let areaCode = row.declarationManagementZones.slice(4, 6); |
|
|
|
|
|
if (areaCode != "00") { |
|
|
|
|
|
return ( |
|
|
|
|
|
codeToText[provinceCode] + |
|
|
|
|
|
"-" + |
|
|
|
|
|
codeToText[provinceCode + cityCode] + |
|
|
|
|
|
"-" + |
|
|
|
|
|
codeToText[provinceCode + cityCode + areaCode] |
|
|
|
|
|
); |
|
|
|
|
|
} else if (cityCode != "00") { |
|
|
|
|
|
return ( |
|
|
|
|
|
codeToText[provinceCode] + "-" + codeToText[provinceCode + cityCode] |
|
|
|
|
|
); |
|
|
|
|
|
} else { |
|
|
|
|
|
return codeToText[provinceCode]; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
getTreeData() { |
|
|
|
|
|
getAreasData().then((items) => { |
|
|
|
|
|
// console.log("getAreasData", items.data); |
|
|
|
|
|
let res = []; |
|
|
|
|
|
let getChildren = (res, pid) => { |
|
|
|
|
|
for (const i of items.data) { |
|
|
|
|
|
if (i.parentid === pid) { |
|
|
|
|
|
const newItem = { |
|
|
|
|
|
label: i.name, |
|
|
|
|
|
value: i.id, |
|
|
|
|
|
}; |
|
|
|
|
|
if (i.layer != 3) newItem.children = []; |
|
|
|
|
|
res.push(newItem); |
|
|
|
|
|
getChildren(newItem.children, newItem.value); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
getChildren(res, items.data[0].parentid); |
|
|
|
|
|
// console.log("areasOptions", res); |
|
|
|
|
|
this.areasOptions = res; |
|
|
|
|
|
// 当不是admin时,默认行政区域 |
|
|
|
|
|
// if (this.$userProfile.createUid != "admin") { |
|
|
|
|
|
// this.queryParams.data.adcd = this.areasOptions[0].value; |
|
|
|
|
|
// } |
|
|
|
|
|
// return res; |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
/** 查询动态信用列表 */ |
|
|
/** 查询动态信用列表 */ |
|
|
getList() { |
|
|
getList() { |
|
|
this.loading = true; |
|
|
this.loading = true; |
|
|
this.queryParams.data.enterpriseId = this.enterpriseId; |
|
|
this.queryParams.data.enterpriseId = this.enterpriseId; |
|
|
|
|
|
this.queryParams.data.type = "1"; |
|
|
listCredit(this.queryParams).then((response) => { |
|
|
listCredit(this.queryParams).then((response) => { |
|
|
this.creditList = response.records; |
|
|
this.creditList = response.records; |
|
|
this.total = response.total; |
|
|
this.total = response.total; |
|
@ -624,11 +577,12 @@ export default { |
|
|
// 取消按钮 |
|
|
// 取消按钮 |
|
|
cancel() { |
|
|
cancel() { |
|
|
this.open = false; |
|
|
this.open = false; |
|
|
|
|
|
this.viewOpen = false; |
|
|
this.reset(); |
|
|
this.reset(); |
|
|
}, |
|
|
}, |
|
|
// 表单重置 |
|
|
// 表单重置 |
|
|
reset() { |
|
|
reset() { |
|
|
this.fileList = []; |
|
|
// this.fileList = []; |
|
|
this.form = { |
|
|
this.form = { |
|
|
id: null, |
|
|
id: null, |
|
|
enterpriseId: null, |
|
|
enterpriseId: null, |
|
@ -723,7 +677,6 @@ export default { |
|
|
if (this.form.attachment) { |
|
|
if (this.form.attachment) { |
|
|
this.fileList = JSON.parse(this.form.attachment); |
|
|
this.fileList = JSON.parse(this.form.attachment); |
|
|
} |
|
|
} |
|
|
console.log("this.form", this.form); |
|
|
|
|
|
this.open = true; |
|
|
this.open = true; |
|
|
this.title = "修改动态信用"; |
|
|
this.title = "修改动态信用"; |
|
|
}); |
|
|
}); |
|
@ -788,6 +741,7 @@ export default { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.form.enterpriseId = this.enterpriseId; |
|
|
this.form.enterpriseId = this.enterpriseId; |
|
|
this.form.attachment = JSON.stringify(this.fileList); |
|
|
this.form.attachment = JSON.stringify(this.fileList); |
|
|
|
|
|
this.form.type = "1"; |
|
|
if (this.form.id != null) { |
|
|
if (this.form.id != null) { |
|
|
updateCredit(this.form).then((response) => { |
|
|
updateCredit(this.form).then((response) => { |
|
|
if (response.code === 200) { |
|
|
if (response.code === 200) { |
|
|