信用档案给默认的填写年度条件
This commit is contained in:
parent
a77861dc3a
commit
88b2ec4dcb
|
|
@ -1,22 +1,7 @@
|
|||
<template>
|
||||
<div v-loading="loading" class="credit-archive">
|
||||
<div class="toolbar">
|
||||
<span class="toolbar-label">年报年度:</span>
|
||||
<el-select
|
||||
v-model="reportYear"
|
||||
size="small"
|
||||
clearable
|
||||
placeholder="默认最近一年"
|
||||
style="width: 160px;"
|
||||
@change="loadData"
|
||||
>
|
||||
<el-option
|
||||
v-for="y in yearOptions"
|
||||
:key="y"
|
||||
:label="`${y} 年`"
|
||||
:value="y"
|
||||
/>
|
||||
</el-select>
|
||||
<span class="toolbar-label">年报年度:{{ reportYear || '—' }}</span>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-refresh"
|
||||
|
|
@ -49,7 +34,8 @@
|
|||
import { getCreditArchive } from '@/api/comprehensive'
|
||||
|
||||
const MAX_NODES = 20
|
||||
const CURRENT_YEAR = new Date().getFullYear()
|
||||
// 固定查询前一年:如当前 2026 年则查 2025 年
|
||||
const DEFAULT_YEAR = new Date().getFullYear() - 1
|
||||
|
||||
const FIELD_LABEL_MAP = {
|
||||
name: '姓名',
|
||||
|
|
@ -91,8 +77,7 @@ export default {
|
|||
return {
|
||||
loading: false,
|
||||
chart: null,
|
||||
reportYear: null,
|
||||
yearOptions: this.buildYearOptions(),
|
||||
reportYear: DEFAULT_YEAR,
|
||||
maxNodes: MAX_NODES,
|
||||
archiveData: {
|
||||
shareholders: [],
|
||||
|
|
@ -123,13 +108,6 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
buildYearOptions() {
|
||||
const list = []
|
||||
for (let y = CURRENT_YEAR; y >= CURRENT_YEAR - 9; y--) {
|
||||
list.push(y)
|
||||
}
|
||||
return list
|
||||
},
|
||||
fieldLabel(key) {
|
||||
return FIELD_LABEL_MAP[key] || key
|
||||
},
|
||||
|
|
@ -139,7 +117,7 @@ export default {
|
|||
try {
|
||||
const res = await getCreditArchive({
|
||||
pripid: this.pripid,
|
||||
reportYear: this.reportYear || undefined
|
||||
reportYear: this.reportYear
|
||||
})
|
||||
const data = (res && res.data) || res || {}
|
||||
this.archiveData = {
|
||||
|
|
@ -149,10 +127,6 @@ export default {
|
|||
contacts: data.contacts || []
|
||||
}
|
||||
this.truncated = data.truncated || { shareholders: false, investments: false, contacts: false }
|
||||
// Q5:首次加载用后端返回的 reportYear 作为默认选中
|
||||
if (!this.reportYear && data.reportYear) {
|
||||
this.reportYear = data.reportYear
|
||||
}
|
||||
this.$nextTick(() => this.renderGraph())
|
||||
} catch (e) {
|
||||
this.$message.error('信用档案数据加载失败')
|
||||
|
|
|
|||
|
|
@ -158,106 +158,7 @@
|
|||
/>
|
||||
</el-tab-pane>
|
||||
<!-- <el-tab-pane label="信用信息" name="second" /> -->
|
||||
<el-tab-pane label="检查信息" name="third">
|
||||
<div>
|
||||
<CommonTitle label="投诉处理" />
|
||||
<div style="margin:10px 0px">
|
||||
<el-table
|
||||
v-if="sueInspectList.length > 0 "
|
||||
v-loading="loading"
|
||||
:data="sueInspectList"
|
||||
:row-class-name="tableRowClassName"
|
||||
:header-cell-style="{background:'#8cc3fb',color:'#fff'}"
|
||||
@row-click="entLockRowClick"
|
||||
>
|
||||
<el-table-column label="序号" type="index" width="60" />
|
||||
<el-table-column label="主体名称" prop="entName" min-width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" @click="dailySupervisionEvent(scope)">{{ scope.row.entName }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查结果" prop="inspectResultStr" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="检查日期" prop="inspectDate" show-overflow-tooltip />
|
||||
<el-table-column label="检查方式" prop="inspectTypeStr" show-overflow-tooltip />
|
||||
<el-table-column label="检查实施机关" prop="inspectOrgName" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<span v-if="sueInspectList.length === 0" class="header-label">暂无检查记录</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<CommonTitle label="现场核查" />
|
||||
<div style="margin:10px 0px">
|
||||
<el-table
|
||||
v-if="usualInspectList.length > 0 "
|
||||
v-loading="loading"
|
||||
:data="usualInspectList"
|
||||
:row-class-name="tableRowClassName"
|
||||
:header-cell-style="{background:'#8cc3fb',color:'#fff'}"
|
||||
@row-click="entLockRowClick"
|
||||
>
|
||||
<el-table-column label="序号" type="index" width="60" />
|
||||
<el-table-column label="主体名称" prop="entName" min-width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" @click="dynamicSupervisionEvent1(scope)">{{ scope.row.entName }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查结果" prop="inspectResultStr" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="检查内容" prop="inspectContent" show-overflow-tooltip />
|
||||
<el-table-column label="检查日期" prop="inspectDate" show-overflow-tooltip />
|
||||
<el-table-column label="检查机关" prop="inspectOrgName" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<span v-if="usualInspectList.length === 0" class="header-label">暂无检查记录</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <el-tabs v-model="subActiveName" @tab-click="handleSubClick">
|
||||
<el-tab-pane label="投诉处理" name="first">
|
||||
<el-table
|
||||
v-if="sueInspectList.length > 0 "
|
||||
v-loading="loading"
|
||||
:data="sueInspectList"
|
||||
:row-class-name="tableRowClassName"
|
||||
:header-cell-style="{background:'#8cc3fb',color:'#fff'}"
|
||||
@row-click="entLockRowClick"
|
||||
>
|
||||
<el-table-column label="序号" type="index" width="60" />
|
||||
<el-table-column label="主体名称" prop="entName" min-width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" @click="dailySupervisionEvent(scope)">{{ scope.row.entName }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查结果" prop="inspectResultStr" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="检查日期" prop="inspectDate" show-overflow-tooltip />
|
||||
<el-table-column label="检查方式" prop="inspectTypeStr" show-overflow-tooltip />
|
||||
<el-table-column label="检查实施机关" prop="inspectOrgName" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<span v-if="sueInspectList.length === 0" class="header-label">暂无检查记录</span>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="现场核查" name="second">
|
||||
<el-table
|
||||
v-if="usualInspectList.length > 0 "
|
||||
v-loading="loading"
|
||||
:data="usualInspectList"
|
||||
:row-class-name="tableRowClassName"
|
||||
:header-cell-style="{background:'#8cc3fb',color:'#fff'}"
|
||||
@row-click="entLockRowClick"
|
||||
>
|
||||
<el-table-column label="序号" type="index" width="60" />
|
||||
<el-table-column label="主体名称" prop="entName" min-width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" @click="dynamicSupervisionEvent1(scope)">{{ scope.row.entName }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查结果" prop="inspectResultStr" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="检查内容" prop="inspectContent" show-overflow-tooltip />
|
||||
<el-table-column label="检查日期" prop="inspectDate" show-overflow-tooltip />
|
||||
<el-table-column label="检查机关" prop="inspectOrgName" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<span v-if="usualInspectList.length === 0" class="header-label">暂无检查记录</span>
|
||||
</el-tab-pane>
|
||||
</el-tabs> -->
|
||||
</el-tab-pane>
|
||||
<!-- “检查信息” Tab 已移至 “批量吊销” Tab 之后 -->
|
||||
<!-- <el-tab-pane label="锁定解锁" name="lock">
|
||||
<div v-if="activeName === 'lock'" class="tab-pane">
|
||||
<el-table
|
||||
|
|
@ -858,6 +759,106 @@
|
|||
</el-table>
|
||||
<span v-if="revokeList.length === 0" class="header-label">该企业暂没有批量吊销信息</span>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="检查信息" name="third">
|
||||
<div>
|
||||
<CommonTitle label="投诉处理" />
|
||||
<div style="margin:10px 0px">
|
||||
<el-table
|
||||
v-if="sueInspectList.length > 0 "
|
||||
v-loading="loading"
|
||||
:data="sueInspectList"
|
||||
:row-class-name="tableRowClassName"
|
||||
:header-cell-style="{background:'#8cc3fb',color:'#fff'}"
|
||||
@row-click="entLockRowClick"
|
||||
>
|
||||
<el-table-column label="序号" type="index" width="60" />
|
||||
<el-table-column label="主体名称" prop="entName" min-width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" @click="dailySupervisionEvent(scope)">{{ scope.row.entName }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查结果" prop="inspectResultStr" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="检查日期" prop="inspectDate" show-overflow-tooltip />
|
||||
<el-table-column label="检查方式" prop="inspectTypeStr" show-overflow-tooltip />
|
||||
<el-table-column label="检查实施机关" prop="inspectOrgName" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<span v-if="sueInspectList.length === 0" class="header-label">暂无检查记录</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<CommonTitle label="现场核查" />
|
||||
<div style="margin:10px 0px">
|
||||
<el-table
|
||||
v-if="usualInspectList.length > 0 "
|
||||
v-loading="loading"
|
||||
:data="usualInspectList"
|
||||
:row-class-name="tableRowClassName"
|
||||
:header-cell-style="{background:'#8cc3fb',color:'#fff'}"
|
||||
@row-click="entLockRowClick"
|
||||
>
|
||||
<el-table-column label="序号" type="index" width="60" />
|
||||
<el-table-column label="主体名称" prop="entName" min-width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" @click="dynamicSupervisionEvent1(scope)">{{ scope.row.entName }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查结果" prop="inspectResultStr" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="检查内容" prop="inspectContent" show-overflow-tooltip />
|
||||
<el-table-column label="检查日期" prop="inspectDate" show-overflow-tooltip />
|
||||
<el-table-column label="检查机关" prop="inspectOrgName" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<span v-if="usualInspectList.length === 0" class="header-label">暂无检查记录</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <el-tabs v-model="subActiveName" @tab-click="handleSubClick">
|
||||
<el-tab-pane label="投诉处理" name="first">
|
||||
<el-table
|
||||
v-if="sueInspectList.length > 0 "
|
||||
v-loading="loading"
|
||||
:data="sueInspectList"
|
||||
:row-class-name="tableRowClassName"
|
||||
:header-cell-style="{background:'#8cc3fb',color:'#fff'}"
|
||||
@row-click="entLockRowClick"
|
||||
>
|
||||
<el-table-column label="序号" type="index" width="60" />
|
||||
<el-table-column label="主体名称" prop="entName" min-width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" @click="dailySupervisionEvent(scope)">{{ scope.row.entName }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查结果" prop="inspectResultStr" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="检查日期" prop="inspectDate" show-overflow-tooltip />
|
||||
<el-table-column label="检查方式" prop="inspectTypeStr" show-overflow-tooltip />
|
||||
<el-table-column label="检查实施机关" prop="inspectOrgName" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<span v-if="sueInspectList.length === 0" class="header-label">暂无检查记录</span>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="现场核查" name="second">
|
||||
<el-table
|
||||
v-if="usualInspectList.length > 0 "
|
||||
v-loading="loading"
|
||||
:data="usualInspectList"
|
||||
:row-class-name="tableRowClassName"
|
||||
:header-cell-style="{background:'#8cc3fb',color:'#fff'}"
|
||||
@row-click="entLockRowClick"
|
||||
>
|
||||
<el-table-column label="序号" type="index" width="60" />
|
||||
<el-table-column label="主体名称" prop="entName" min-width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-link type="primary" @click="dynamicSupervisionEvent1(scope)">{{ scope.row.entName }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查结果" prop="inspectResultStr" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column label="检查内容" prop="inspectContent" show-overflow-tooltip />
|
||||
<el-table-column label="检查日期" prop="inspectDate" show-overflow-tooltip />
|
||||
<el-table-column label="检查机关" prop="inspectOrgName" show-overflow-tooltip />
|
||||
</el-table>
|
||||
<span v-if="usualInspectList.length === 0" class="header-label">暂无检查记录</span>
|
||||
</el-tab-pane>
|
||||
</el-tabs> -->
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="片区认领记录" name="assign">
|
||||
<el-table v-if="assignLogList.length !== 0 " v-loading="loading" :data="assignLogList">
|
||||
<el-table-column label="序号" type="index" width="60" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue