<template>
|
<el-container direction="vertical">
|
<app-header title="交通统计报表审核系统 - 货运测算"></app-header>
|
<el-container>
|
<el-aside width="200px">
|
<el-menu ref="sideMenu" router :default-active="$route.path" @select="onMenuSelect">
|
<el-menu-item index="/dashboard">工作台</el-menu-item>
|
<el-menu-item index="/import">数据导入</el-menu-item>
|
<el-menu-item index="/data">数据查看</el-menu-item>
|
<el-menu-item index="/freight-forecast">货运测算</el-menu-item>
|
<el-menu-item index="/explain">企业解释</el-menu-item>
|
<el-menu-item index="/audit">审核结果</el-menu-item>
|
<el-menu-item index="/report">报表生成</el-menu-item>
|
<el-menu-item index="/ledger-audit">事后核查</el-menu-item>
|
<el-submenu index="/special-stats">
|
<template slot="title">专项统计</template>
|
<el-menu-item index="/holiday-stat">节假日</el-menu-item>
|
</el-submenu>
|
<el-menu-item index="/rules">规则管理</el-menu-item>
|
<el-menu-item index="/users">用户管理</el-menu-item>
|
<el-menu-item v-if="operatorIsAdmin" index="/system-config">系统配置</el-menu-item>
|
</el-menu>
|
</el-aside>
|
|
<el-main>
|
<div class="page-scroll">
|
<div class="topbar">
|
<h3>货运测算</h3>
|
<div class="period-highlight">
|
<span class="period-primary-label">报表期</span>
|
<el-date-picker v-model="period" type="month" value-format="yyyy-MM" class="period-picker"
|
style="width:170px" :clearable="false" @change="onPeriodChange"></el-date-picker>
|
</div>
|
<div class="subtitle">规上车辆轨迹测算、规下两步测算与唯一当月货运月报数据管理</div>
|
<div class="topbar-right">
|
<el-button size="small" icon="el-icon-refresh" @click="loadAll">刷新</el-button>
|
</div>
|
</div>
|
|
<div class="summary-grid">
|
<div class="summary-card">
|
<div class="summary-label">规下测算</div>
|
<div class="summary-value">{{ belowResults.length }}<span>步</span></div>
|
<div class="summary-foot">{{ belowResultText }}</div>
|
</div>
|
<div class="summary-card">
|
<div class="summary-label">规上测算企业</div>
|
<div class="summary-value">{{ overview.aboveRows || 0 }}<span>家</span></div>
|
<div class="summary-foot">年度名录企业参与测算</div>
|
</div>
|
<div class="summary-card">
|
<div class="summary-label">审核中版本</div>
|
<div class="summary-value">{{ overview.auditRounds || 0 }}<span>版</span></div>
|
<div class="summary-foot">可多次导入,旧版本仅留痕</div>
|
</div>
|
<div class="summary-card">
|
<div class="summary-label">定稿版本</div>
|
<div class="summary-value">{{ overview.finalRounds || 0 }}<span>版</span></div>
|
<div class="summary-foot">定稿后覆盖当前工作数据</div>
|
</div>
|
</div>
|
|
<el-alert v-if="overviewMissingForecast.length" type="warning" :closable="false" class="notice-alert"
|
:title="'累计测算快照缺少 ' + overviewMissingForecast.join('、') + ',差异率报告导出前请先执行本期测算'"></el-alert>
|
|
<el-radio-group v-model="activeTab" class="module-tabs" @change="onTabChange">
|
<el-radio-button label="below">规下测算</el-radio-button>
|
<el-radio-button label="above">规上测算</el-radio-button>
|
<el-radio-button label="report">月报差异</el-radio-button>
|
<el-radio-button label="base">基期与口径</el-radio-button>
|
</el-radio-group>
|
|
<section v-show="activeTab === 'above'" class="work-panel">
|
<div class="panel-head">
|
<div>
|
<div class="panel-title">规上企业周转量测算</div>
|
<div class="panel-note">公式:(总牵引车数×31+其它车辆总吨位)×有效里程÷有里程车辆数</div>
|
</div>
|
<div class="panel-actions">
|
<el-button size="small" icon="el-icon-s-promotion" :loading="calculatingAbove"
|
@click="calculateAbove">测算当期</el-button>
|
</div>
|
</div>
|
<div v-if="aboveSummary" class="inline-summary">
|
<span>测算企业 <b>{{ aboveSummary.enterpriseCount }}</b> 家</span>
|
<span>测算周转量 <b>{{ fmtAmount(aboveSummary.forecastTurnoverWan) }}</b> 万吨公里</span>
|
<span>缺运政 <b class="danger">{{ aboveSummary.missingAuth }}</b> 家</span>
|
<span>缺轨迹 <b class="warn">{{ aboveSummary.missingTrack }}</b> 家</span>
|
</div>
|
<div class="table-toolbar">
|
<el-select v-model="aboveCity" size="small" clearable placeholder="全部市州" style="width:150px"
|
@change="loadAbove">
|
<el-option v-for="city in cityOptions" :key="city" :label="city" :value="city"></el-option>
|
</el-select>
|
<el-input v-model="aboveKeyword" size="small" clearable placeholder="企业名称"
|
style="width:220px" @keyup.enter.native="loadAbove"></el-input>
|
<el-button size="small" icon="el-icon-search" @click="loadAbove">查询</el-button>
|
<span class="table-count">共 {{ aboveRows.length }} 家</span>
|
</div>
|
<el-table v-loading="loading.above" :data="aboveRows" size="mini" height="500" border>
|
<el-table-column prop="city" label="市州" width="100"></el-table-column>
|
<el-table-column prop="enterpriseName" label="企业名称" min-width="250" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="tractorCount" label="牵引车" width="82" align="right"></el-table-column>
|
<el-table-column label="其它车辆吨位" width="120" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.otherTons) }}</template>
|
</el-table-column>
|
<el-table-column label="月度里程" width="120" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.monthlyMileage) }}</template>
|
</el-table-column>
|
<el-table-column label="异常里程" width="110" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.anomalyMileage) }}</template>
|
</el-table-column>
|
<el-table-column prop="trackedVehicles" label="有里程车辆" width="105" align="right"></el-table-column>
|
<el-table-column label="有效里程" width="120" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.effectiveMileage) }}</template>
|
</el-table-column>
|
<el-table-column label="测算周转量(万吨公里)" width="180" align="right">
|
<template slot-scope="{ row }"><b>{{ fmtAmount(row.forecastTurnover / 10000) }}</b></template>
|
</el-table-column>
|
<el-table-column label="轨迹来源" width="125">
|
<template slot-scope="{ row }">{{ trackSourceText(row.trackSource) }}</template>
|
</el-table-column>
|
<el-table-column label="状态" width="105">
|
<template slot-scope="{ row }">
|
<el-tag size="mini" :type="statusType(row.calculationStatus)">{{ statusText(row.calculationStatus) }}</el-tag>
|
</template>
|
</el-table-column>
|
</el-table>
|
</section>
|
|
<section v-show="activeTab === 'below'" class="work-panel">
|
<div class="panel-head">
|
<div>
|
<div class="panel-title">规下运输量两步测算</div>
|
<div class="panel-note">基期读取“42-2026年基数.xlsx”湖北页 L14:W15;货运量、周转量可分别测算和补录,第二步周转量优先进入累计统计</div>
|
</div>
|
<el-tag v-if="currentBelow" size="small" :type="currentBelow.resultType === 'ACTUAL' ? 'success' : 'warning'">
|
当前采用{{ currentBelow.resultType === 'ACTUAL' ? '第二步实际值' : '第一步增速预测' }}
|
</el-tag>
|
</div>
|
|
<div class="below-grid">
|
<div class="form-card">
|
<div class="form-card-head">
|
<span>第一步:高速、国省道增速预测</span>
|
<span v-if="currentBase" class="muted">基期:货运量 {{ fmtAmount(currentBase.belowFreight) }} 万吨 / 周转量 {{ fmtAmount(currentBase.belowTurnover) }} 万吨公里</span>
|
<span v-else class="muted">本月基期未导入</span>
|
</div>
|
<el-form label-width="170px" size="small">
|
<el-form-item label="高速货运量增速(%)">
|
<el-input-number v-model="growthForm.highwayFreightGrowth" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="国省道货运量增速(%)">
|
<el-input-number v-model="growthForm.provincialFreightGrowth" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="高速周转量增速(%)">
|
<el-input-number v-model="growthForm.highwayTurnoverGrowth" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="国省道周转量增速(%)">
|
<el-input-number v-model="growthForm.provincialTurnoverGrowth" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
</el-form>
|
<div class="form-result" v-if="growthResult">
|
<span v-if="growthResult.belowFreight !== null && growthResult.belowFreight !== undefined">货运量 <b>{{ fmtAmount(growthResult.belowFreight) }}</b> 万吨</span>
|
<span v-if="growthResult.belowTurnover !== null && growthResult.belowTurnover !== undefined">周转量 <b>{{ fmtAmount(growthResult.belowTurnover) }}</b> 万吨公里</span>
|
</div>
|
<el-button type="primary" size="small" :loading="savingBelow === 'GROWTH'" @click="saveBelow('GROWTH')">保存第一步结果</el-button>
|
</div>
|
|
<div class="form-card">
|
<div class="form-card-head">
|
<span>第二步:高速、国省道本期实际数据</span>
|
<span class="muted">自动反算增速</span>
|
</div>
|
<el-form label-width="170px" size="small">
|
<el-form-item label="高速货运量基期值">
|
<el-input-number v-model="actualForm.highwayFreightBase" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="国省道货运量基期值">
|
<el-input-number v-model="actualForm.provincialFreightBase" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="高速周转量基期值">
|
<el-input-number v-model="actualForm.highwayTurnoverBase" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="国省道周转量基期值">
|
<el-input-number v-model="actualForm.provincialTurnoverBase" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="高速货运量本期值">
|
<el-input-number v-model="actualForm.highwayFreightCurrent" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="国省道货运量本期值">
|
<el-input-number v-model="actualForm.provincialFreightCurrent" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="高速周转量本期值">
|
<el-input-number v-model="actualForm.highwayTurnoverCurrent" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
<el-form-item label="国省道周转量本期值">
|
<el-input-number v-model="actualForm.provincialTurnoverCurrent" :precision="4" :controls="false" style="width:100%"></el-input-number>
|
</el-form-item>
|
</el-form>
|
<div class="form-result" v-if="actualResult">
|
<span v-if="actualResult.belowFreight !== null && actualResult.belowFreight !== undefined">货运量 <b>{{ fmtAmount(actualResult.belowFreight) }}</b> 万吨</span>
|
<span v-if="actualResult.belowTurnover !== null && actualResult.belowTurnover !== undefined">周转量 <b>{{ fmtAmount(actualResult.belowTurnover) }}</b> 万吨公里</span>
|
</div>
|
<el-button type="success" size="small" :loading="savingBelow === 'ACTUAL'" @click="saveBelow('ACTUAL')">保存第二步结果</el-button>
|
</div>
|
</div>
|
|
<el-table :data="belowResults" size="mini" border class="below-result-table">
|
<el-table-column label="测算步骤" width="140">
|
<template slot-scope="{ row }">
|
<el-tag size="mini" :type="row.resultType === 'ACTUAL' ? 'success' : 'warning'">
|
{{ row.resultType === 'ACTUAL' ? '第二步实际值' : '第一步增速预测' }}
|
</el-tag>
|
</template>
|
</el-table-column>
|
<el-table-column label="基期货运量" width="130" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.baseFreight) }}</template>
|
</el-table-column>
|
<el-table-column label="高速货运量增速" width="140" align="right">
|
<template slot-scope="{ row }">{{ fmtPercent(row.highwayFreightGrowth) }}</template>
|
</el-table-column>
|
<el-table-column label="国省道货运量增速" width="150" align="right">
|
<template slot-scope="{ row }">{{ fmtPercent(row.provincialFreightGrowth) }}</template>
|
</el-table-column>
|
<el-table-column label="规下货运量" width="130" align="right">
|
<template slot-scope="{ row }"><b>{{ fmtAmount(row.belowFreight) }}</b></template>
|
</el-table-column>
|
<el-table-column label="基期周转量" width="140" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.baseTurnover) }}</template>
|
</el-table-column>
|
<el-table-column label="高速周转量增速" width="140" align="right">
|
<template slot-scope="{ row }">{{ fmtPercent(row.highwayTurnoverGrowth) }}</template>
|
</el-table-column>
|
<el-table-column label="国省道周转量增速" width="150" align="right">
|
<template slot-scope="{ row }">{{ fmtPercent(row.provincialTurnoverGrowth) }}</template>
|
</el-table-column>
|
<el-table-column label="规下周转量" width="150" align="right">
|
<template slot-scope="{ row }"><b>{{ fmtAmount(row.belowTurnover) }}</b></template>
|
</el-table-column>
|
<el-table-column prop="note" label="备注" min-width="160" show-overflow-tooltip></el-table-column>
|
</el-table>
|
</section>
|
|
<section v-show="activeTab === 'report'" class="work-panel">
|
<div class="panel-head">
|
<div>
|
<div class="panel-title">当月货运月报审核与差异分析</div>
|
<div class="panel-note">日常唯一月报导入入口;当前工作数据始终只有一套 H203-2。差异率=上报周转量÷测算周转量-1</div>
|
</div>
|
</div>
|
|
<div class="report-import">
|
<div class="import-title">导入当月月报(覆盖当前工作数据)</div>
|
<div class="import-tip">导入成功后覆盖本期 H203-2 企业数据,并清除本期常规审核结果;旧版本只保留文件名、阶段、版本号和时间,不参与汇总。</div>
|
<el-radio-group v-model="reportStage" size="small" @change="onReportStageChange">
|
<el-radio-button label="AUDIT">审核中</el-radio-button>
|
<el-radio-button label="FINAL">定稿上报部</el-radio-button>
|
</el-radio-group>
|
<el-upload ref="reportUpload" action="" :auto-upload="false" :limit="1" accept=".xls,.xlsx"
|
:on-change="onReportFileChange" :on-remove="() => { reportFile = null }"
|
:file-list="reportFileList">
|
<el-button size="small" icon="el-icon-upload2">选择月报文件</el-button>
|
</el-upload>
|
<el-input v-model="reportNote" size="small" placeholder="版本说明(可选)" style="width:240px"></el-input>
|
<el-button type="primary" size="small" :loading="importingReport" @click="importReport">导入并更新当前数据</el-button>
|
</div>
|
|
<div class="round-table-title">版本留痕(不保存第二套企业指标)</div>
|
<el-table :data="rounds" size="mini" border class="round-table">
|
<el-table-column label="阶段" width="100">
|
<template slot-scope="{ row }">
|
<el-tag size="mini" :type="row.reportStage === 'FINAL' ? 'success' : 'warning'">{{ stageText(row.reportStage) }}</el-tag>
|
</template>
|
</el-table-column>
|
<el-table-column prop="revisionNo" label="版本" width="75"></el-table-column>
|
<el-table-column prop="fileName" label="文件名" min-width="220" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="rowCount" label="企业数" width="85" align="right"></el-table-column>
|
<el-table-column prop="note" label="说明" min-width="160" show-overflow-tooltip></el-table-column>
|
<el-table-column label="导入时间" width="160">
|
<template slot-scope="{ row }">{{ fmtTime(row.importedAt) }}</template>
|
</el-table-column>
|
</el-table>
|
|
<div class="analysis-panel">
|
<div class="analysis-controls">
|
<div class="control-item">
|
<span class="control-label">当前月报</span>
|
<b class="current-source-text">{{ currentRoundText }}</b>
|
</div>
|
<el-button size="small" type="primary" icon="el-icon-data-analysis" :loading="analyzing" @click="runAnalysis">生成差异分析</el-button>
|
<el-button size="small" icon="el-icon-folder-opened" :loading="exportingCityEnterprises"
|
:disabled="!analysis" @click="exportCityEnterprises">导出分市州企业差异</el-button>
|
<el-button size="small" type="success" icon="el-icon-download" :disabled="!analysis" @click="exportAnalysis">导出差异率报告</el-button>
|
</div>
|
<div class="source-summary" v-if="analysis">{{ analysis.sourceSummary }}</div>
|
|
<template v-if="analysis">
|
<div class="metric-grid">
|
<div class="metric">
|
<span>当月测算</span>
|
<b>{{ fmtAmount(analysis.monthlyForecastWan) }}</b>
|
<em>万吨公里</em>
|
</div>
|
<div class="metric">
|
<span>当月上报</span>
|
<b>{{ fmtAmount(analysis.monthlyReportWan) }}</b>
|
<em>万吨公里</em>
|
</div>
|
<div class="metric" :class="rateClass(analysis.monthlyDiffRate)">
|
<span>当月差异率</span>
|
<b>{{ fmtPercent(analysis.monthlyDiffRate) }}</b>
|
<em>上报/测算-1</em>
|
</div>
|
<div class="metric">
|
<span>累计上报同比</span>
|
<b>{{ fmtPercent(analysis.cumulativeReportYoy) }}</b>
|
<em>1-{{ analysis.month }}月</em>
|
</div>
|
<div class="metric">
|
<span>累计测算差异率</span>
|
<b>{{ fmtPercent(analysis.cumulativeDiffRate) }}</b>
|
<em>1-{{ analysis.month }}月</em>
|
</div>
|
<div class="metric total-metric">
|
<span>总周转量累计同比</span>
|
<b>{{ fmtPercent(analysis.totalCumulativeYoy) }}</b>
|
<em>规上 + 规下</em>
|
</div>
|
</div>
|
|
<el-alert v-for="(warning, i) in analysis.warnings" :key="i" type="warning" :closable="false"
|
:title="warning" class="analysis-warning"></el-alert>
|
|
<div class="result-section-title">分市州差异</div>
|
<el-table :data="analysis.cities" size="mini" border max-height="390">
|
<el-table-column prop="city" label="市州" width="105" fixed></el-table-column>
|
<el-table-column label="上月差异率" width="110" align="right">
|
<template slot-scope="{ row }">{{ fmtPercent(row.previousMonthDiffRate) }}</template>
|
</el-table-column>
|
<el-table-column label="当月测算" width="125" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.monthlyForecastWan) }}</template>
|
</el-table-column>
|
<el-table-column label="当月上报" width="125" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.monthlyReportWan) }}</template>
|
</el-table-column>
|
<el-table-column label="当月上报同比" width="125" align="right">
|
<template slot-scope="{ row }">{{ fmtPercent(row.monthlyReportYoy) }}</template>
|
</el-table-column>
|
<el-table-column label="当月差异率" width="115" align="right">
|
<template slot-scope="{ row }"><span :class="rateClass(row.monthlyDiffRate)">{{ fmtPercent(row.monthlyDiffRate) }}</span></template>
|
</el-table-column>
|
<el-table-column label="累计上报" width="135" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.cumulativeReportWan) }}</template>
|
</el-table-column>
|
<el-table-column label="累计同比" width="110" align="right">
|
<template slot-scope="{ row }">{{ fmtPercent(row.cumulativeReportYoy) }}</template>
|
</el-table-column>
|
<el-table-column label="累计测算" width="135" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.cumulativeForecastWan) }}</template>
|
</el-table-column>
|
<el-table-column label="累计差异率" width="115" align="right">
|
<template slot-scope="{ row }"><span :class="rateClass(row.cumulativeDiffRate)">{{ fmtPercent(row.cumulativeDiffRate) }}</span></template>
|
</el-table-column>
|
</el-table>
|
|
<div class="result-section-title enterprise-title">
|
<span>企业差异明细</span>
|
<span class="table-count">共 {{ analysis.enterprises.length }} 家</span>
|
</div>
|
<div class="table-toolbar compact">
|
<el-select v-model="enterpriseCity" size="small" clearable placeholder="全部市州" style="width:150px">
|
<el-option v-for="city in cityOptions" :key="city" :label="city" :value="city"></el-option>
|
</el-select>
|
<el-input v-model="enterpriseKeyword" size="small" clearable placeholder="企业名称" style="width:220px"></el-input>
|
</div>
|
<el-table :data="filteredEnterprises" size="mini" border max-height="430">
|
<el-table-column prop="city" label="市州" width="105"></el-table-column>
|
<el-table-column prop="enterpriseName" label="企业名称" min-width="260" show-overflow-tooltip></el-table-column>
|
<el-table-column label="测算周转量" width="150" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.forecastTurnoverWan) }}</template>
|
</el-table-column>
|
<el-table-column label="上报周转量" width="150" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.reportedTurnoverWan) }}</template>
|
</el-table-column>
|
<el-table-column label="差异率" width="120" align="right">
|
<template slot-scope="{ row }"><span :class="rateClass(row.diffRate)">{{ fmtPercent(row.diffRate) }}</span></template>
|
</el-table-column>
|
<el-table-column prop="status" label="状态" width="110"></el-table-column>
|
</el-table>
|
</template>
|
<div v-else class="empty-analysis">
|
<i class="el-icon-data-analysis"></i>
|
<span>完成规上测算并导入当月货运月报后生成差异分析</span>
|
</div>
|
</div>
|
</section>
|
|
<section v-show="activeTab === 'base'" class="work-panel">
|
<div class="panel-head">
|
<div>
|
<div class="panel-title">基期数据与测算口径</div>
|
<div class="panel-note">2026年基期固定读取“42-2026年基数.xlsx”湖北页 L14:W15;导入会替换所选年份的12个月基期</div>
|
</div>
|
<div class="panel-actions">
|
<el-upload ref="baseUpload" action="" :auto-upload="false" :limit="1" accept=".xls,.xlsx"
|
:on-change="onBaseFileChange" :on-remove="() => { baseFile = null }"
|
:file-list="baseFileList">
|
<el-button size="small" icon="el-icon-upload2">选择基数文件</el-button>
|
</el-upload>
|
<el-button size="small" type="primary" :loading="importingBase" @click="importBase">导入基期</el-button>
|
</div>
|
</div>
|
<el-alert v-if="!baseMonths.length" type="warning" :closable="false" class="notice-alert"
|
:title="baseYear + '年尚未导入基期数据,请选择42-2026年基数.xlsx后点击导入基期'"></el-alert>
|
<el-table :data="baseMonths" size="mini" border height="430" empty-text="暂无基期数据">
|
<el-table-column prop="reportMonth" label="月份" width="90" align="center"></el-table-column>
|
<el-table-column label="规下货运量基期(万吨)" min-width="190" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.belowFreight) }}</template>
|
</el-table-column>
|
<el-table-column label="规下周转量基期(万吨公里)" min-width="220" align="right">
|
<template slot-scope="{ row }">{{ fmtAmount(row.belowTurnover) }}</template>
|
</el-table-column>
|
<el-table-column prop="sourceFile" label="来源文件" min-width="260" show-overflow-tooltip></el-table-column>
|
<el-table-column label="更新时间" width="165">
|
<template slot-scope="{ row }">{{ fmtTime(row.updatedAt) }}</template>
|
</el-table-column>
|
</el-table>
|
<div class="formula-panel">
|
<div><b>规上测算</b>:(总牵引车数×31+其它车辆总吨位)×(月度里程+可纳入异常里程)÷有里程车辆数</div>
|
<div><b>异常里程</b>:异常里程率>100%,或单车异常里程>10000公里时,整笔异常里程不纳入</div>
|
<div><b>规下测算</b>:基期×(1+高速增速)×0.5+基期×(1+国省道增速)×0.5</div>
|
<div><b>差异率</b>:上报周转量÷测算周转量-1;总周转量累计同比使用规上上报累计与规下测算累计之和</div>
|
</div>
|
</section>
|
</div>
|
</el-main>
|
</el-container>
|
</el-container>
|
</template>
|
|
<script>
|
import AppHeader from '@/components/AppHeader.vue'
|
import api from '@/api'
|
|
export default {
|
name: 'FreightForecast',
|
components: { AppHeader },
|
data() {
|
const now = new Date()
|
const defaultDate = new Date(now.getFullYear(), now.getMonth() - 1, 1)
|
const defaultPeriod = defaultDate.getFullYear() + '-' + String(defaultDate.getMonth() + 1).padStart(2, '0')
|
return {
|
period: defaultPeriod,
|
activeTab: 'above',
|
cityOptions: [
|
'武汉市', '黄石市', '十堰市', '宜昌市', '襄阳市', '鄂州市', '荆门市',
|
'孝感市', '荆州市', '黄冈市', '咸宁市', '随州市', '恩施州',
|
'仙桃市', '潜江市', '天门市', '神农架林区'
|
],
|
loading: { above: false },
|
overview: {},
|
aboveRows: [],
|
aboveSummary: null,
|
aboveCity: '',
|
aboveKeyword: '',
|
calculatingAbove: false,
|
baseMonths: [],
|
baseFile: null,
|
baseFileList: [],
|
importingBase: false,
|
belowResults: [],
|
savingBelow: '',
|
growthResult: null,
|
actualResult: null,
|
growthForm: {
|
highwayFreightGrowth: null,
|
provincialFreightGrowth: null,
|
highwayTurnoverGrowth: null,
|
provincialTurnoverGrowth: null
|
},
|
actualForm: {
|
highwayFreightBase: null,
|
provincialFreightBase: null,
|
highwayTurnoverBase: null,
|
provincialTurnoverBase: null,
|
highwayFreightCurrent: null,
|
provincialFreightCurrent: null,
|
highwayTurnoverCurrent: null,
|
provincialTurnoverCurrent: null
|
},
|
reportStage: 'AUDIT',
|
reportFile: null,
|
reportFileList: [],
|
reportNote: '',
|
importingReport: false,
|
rounds: [],
|
forecastHistorySource: 'HISTORY_PLUS_MODULE',
|
analyzing: false,
|
analysis: null,
|
exportingCityEnterprises: false,
|
enterpriseCity: '',
|
enterpriseKeyword: ''
|
}
|
},
|
computed: {
|
currentMonth() {
|
return Number((this.period || '').substring(5, 7)) || 1
|
},
|
baseYear() {
|
return Number((this.period || '').substring(0, 4)) || new Date().getFullYear()
|
},
|
overviewMissingForecast() {
|
return this.overview.missingForecastMonths || []
|
},
|
currentBase() {
|
return this.baseMonths.find(x => Number(x.reportMonth) === this.currentMonth) || null
|
},
|
currentBelow() {
|
const actual = this.belowResults.find(x => x.resultType === 'ACTUAL')
|
if (this.hasTurnoverResult(actual)) return actual
|
const growth = this.belowResults.find(x => x.resultType === 'GROWTH')
|
if (this.hasTurnoverResult(growth)) return growth
|
return actual || growth || null
|
},
|
belowResultText() {
|
const current = this.currentBelow
|
if (!this.hasTurnoverResult(current)) return '尚未完成规下周转量测算'
|
return current.resultType === 'ACTUAL' ? '累计统计已采用第二步实际值' : '累计统计当前采用第一步预测'
|
},
|
currentRoundText() {
|
const row = this.rounds[0]
|
if (!row) return '尚未导入'
|
return this.stageText(row.reportStage) + ' 第' + row.revisionNo + '版 · ' + this.fmtTime(row.importedAt)
|
},
|
filteredEnterprises() {
|
if (!this.analysis) return []
|
const city = this.enterpriseCity
|
const keyword = (this.enterpriseKeyword || '').trim()
|
return this.analysis.enterprises.filter(x => {
|
if (city && x.city !== city) return false
|
if (keyword && (x.enterpriseName || '').indexOf(keyword) < 0) return false
|
return true
|
})
|
}
|
},
|
created() {
|
this.loadAll()
|
},
|
methods: {
|
loadAll() {
|
this.analysis = null
|
this.loadOverview()
|
this.loadBase()
|
this.loadAbove()
|
this.loadBelow()
|
this.loadRounds()
|
},
|
onPeriodChange() {
|
this.loadAll()
|
},
|
onTabChange(key) {
|
if (key === 'above') this.loadAbove()
|
if (key === 'below') this.loadBelow()
|
if (key === 'report') this.loadRounds()
|
if (key === 'base') this.loadBase()
|
},
|
requestError(err, fallback) {
|
if (err && err._toast) return
|
const data = err && err.response && err.response.data
|
this.$message.error((data && data.message) || (err && err.message) || fallback)
|
},
|
getData(res, fallback) {
|
if (!res || res.code !== 200) throw new Error((res && res.message) || fallback)
|
return res.data
|
},
|
loadOverview() {
|
api.get('/freight-forecast/overview', { params: { period: this.period } })
|
.then(res => { this.overview = this.getData(res, '概览加载失败') || {} })
|
.catch(err => this.requestError(err, '概览加载失败'))
|
},
|
loadBase() {
|
api.get('/freight-forecast/base', { params: { year: this.baseYear } })
|
.then(res => {
|
this.baseMonths = this.getData(res, '基期数据加载失败') || []
|
})
|
.catch(err => this.requestError(err, '基期数据加载失败'))
|
},
|
loadAbove() {
|
this.loading.above = true
|
api.get('/freight-forecast/above', {
|
params: { period: this.period, city: this.aboveCity, keyword: this.aboveKeyword }
|
})
|
.then(res => {
|
this.aboveRows = this.getData(res, '规上测算加载失败') || []
|
if (this.aboveRows.length) {
|
const total = this.aboveRows.reduce((sum, row) => sum + Number(row.forecastTurnover || 0), 0)
|
this.aboveSummary = this.aboveSummary || {
|
enterpriseCount: this.aboveRows.length,
|
missingAuth: this.aboveRows.filter(x => x.calculationStatus === 'NO_AUTH').length,
|
missingTrack: this.aboveRows.filter(x => x.calculationStatus === 'NO_TRACK').length,
|
forecastTurnoverWan: total / 10000
|
}
|
} else {
|
this.aboveSummary = null
|
}
|
})
|
.catch(err => this.requestError(err, '规上测算加载失败'))
|
.finally(() => { this.loading.above = false })
|
},
|
calculateAbove() {
|
this.$confirm('将按当前运政车辆和轨迹数据重算' + this.period + '规上企业周转量,是否继续?', '规上测算', { type: 'warning' })
|
.then(() => {
|
this.calculatingAbove = true
|
return api.post('/freight-forecast/above/calculate', null, {
|
params: { period: this.period }, timeout: 180000
|
})
|
})
|
.then(res => {
|
this.aboveSummary = this.getData(res, '规上测算失败')
|
this.loadOverview()
|
this.loadAbove()
|
this.$message.success('规上测算完成')
|
})
|
.catch(err => {
|
if (err !== 'cancel') this.requestError(err, '规上测算失败')
|
})
|
.finally(() => { this.calculatingAbove = false })
|
},
|
loadBelow() {
|
api.get('/freight-forecast/below', { params: { period: this.period } })
|
.then(res => {
|
this.belowResults = this.getData(res, '规下测算加载失败') || []
|
this.growthResult = this.belowResults.find(x => x.resultType === 'GROWTH') || null
|
this.actualResult = this.belowResults.find(x => x.resultType === 'ACTUAL') || null
|
if (this.actualResult) this.fillActualFromResult(this.actualResult)
|
if (this.growthResult) this.fillGrowthFromResult(this.growthResult)
|
})
|
.catch(err => this.requestError(err, '规下测算加载失败'))
|
},
|
fillGrowthFromResult(row) {
|
this.growthForm.highwayFreightGrowth = this.decimalToPercent(row.highwayFreightGrowth)
|
this.growthForm.provincialFreightGrowth = this.decimalToPercent(row.provincialFreightGrowth)
|
this.growthForm.highwayTurnoverGrowth = this.decimalToPercent(row.highwayTurnoverGrowth)
|
this.growthForm.provincialTurnoverGrowth = this.decimalToPercent(row.provincialTurnoverGrowth)
|
},
|
fillActualFromResult(row) {
|
this.actualForm.highwayFreightBase = row.highwayFreightBase
|
this.actualForm.provincialFreightBase = row.provincialFreightBase
|
this.actualForm.highwayTurnoverBase = row.highwayTurnoverBase
|
this.actualForm.provincialTurnoverBase = row.provincialTurnoverBase
|
this.actualForm.highwayFreightCurrent = row.highwayFreightCurrent
|
this.actualForm.provincialFreightCurrent = row.provincialFreightCurrent
|
this.actualForm.highwayTurnoverCurrent = row.highwayTurnoverCurrent
|
this.actualForm.provincialTurnoverCurrent = row.provincialTurnoverCurrent
|
},
|
saveBelow(type) {
|
const payload = { period: this.period, resultType: type }
|
if (type === 'GROWTH') {
|
const freightKeys = ['highwayFreightGrowth', 'provincialFreightGrowth']
|
const turnoverKeys = ['highwayTurnoverGrowth', 'provincialTurnoverGrowth']
|
const hasAny = keys => keys.some(key => this.hasFormValue(this.growthForm[key]))
|
const isComplete = keys => keys.every(key => this.hasFormValue(this.growthForm[key]))
|
const freightAny = hasAny(freightKeys)
|
const turnoverAny = hasAny(turnoverKeys)
|
const freightComplete = isComplete(freightKeys)
|
const turnoverComplete = isComplete(turnoverKeys)
|
if (freightAny && !freightComplete) {
|
this.$message.warning('货运量需同时填写高速和国省道两项增速')
|
return
|
}
|
if (turnoverAny && !turnoverComplete) {
|
this.$message.warning('周转量需同时填写高速和国省道两项增速')
|
return
|
}
|
if (!freightComplete && !turnoverComplete) {
|
this.$message.warning('请至少完整填写货运量或周转量其中一项的两项增速')
|
return
|
}
|
const providedKeys = []
|
if (freightComplete) providedKeys.push(...freightKeys)
|
if (turnoverComplete) providedKeys.push(...turnoverKeys)
|
providedKeys.forEach(key => { payload[key] = Number(this.growthForm[key]) / 100 })
|
payload.note = '第一步:高速和国省道增速预测'
|
} else {
|
const freightKeys = [
|
'highwayFreightBase', 'provincialFreightBase',
|
'highwayFreightCurrent', 'provincialFreightCurrent'
|
]
|
const turnoverKeys = [
|
'highwayTurnoverBase', 'provincialTurnoverBase',
|
'highwayTurnoverCurrent', 'provincialTurnoverCurrent'
|
]
|
const hasAny = keys => keys.some(key => this.hasFormValue(this.actualForm[key]))
|
const isComplete = keys => keys.every(key => this.hasFormValue(this.actualForm[key]))
|
const freightAny = hasAny(freightKeys)
|
const turnoverAny = hasAny(turnoverKeys)
|
const freightComplete = isComplete(freightKeys)
|
const turnoverComplete = isComplete(turnoverKeys)
|
if (freightAny && !freightComplete) {
|
this.$message.warning('货运量需同时填写高速和国省道两项基期值及本期值')
|
return
|
}
|
if (turnoverAny && !turnoverComplete) {
|
this.$message.warning('周转量需同时填写高速和国省道两项基期值及本期值')
|
return
|
}
|
if (!freightComplete && !turnoverComplete) {
|
this.$message.warning('请至少完整填写货运量或周转量其中一项的基期值和本期值')
|
return
|
}
|
const providedKeys = []
|
if (freightComplete) providedKeys.push(...freightKeys)
|
if (turnoverComplete) providedKeys.push(...turnoverKeys)
|
providedKeys.forEach(key => { payload[key] = Number(this.actualForm[key]) })
|
payload.note = '第二步:高速国省道本期实际数据'
|
}
|
this.savingBelow = type
|
api.post('/freight-forecast/below/calculate', payload, { timeout: 60000 })
|
.then(res => {
|
const data = this.getData(res, '规下测算失败')
|
if (type === 'GROWTH') this.growthResult = data
|
else this.actualResult = data
|
this.$message.success(type === 'GROWTH' ? '第一步结果已保存' : '第二步结果已保存')
|
this.loadBelow()
|
this.loadOverview()
|
})
|
.catch(err => this.requestError(err, '规下测算失败'))
|
.finally(() => { this.savingBelow = '' })
|
},
|
loadRounds() {
|
api.get('/freight-forecast/report/rounds', { params: { period: this.period } })
|
.then(res => {
|
this.rounds = this.getData(res, '月报版本加载失败') || []
|
})
|
.catch(err => this.requestError(err, '月报版本加载失败'))
|
},
|
onReportStageChange() {
|
this.analysis = null
|
},
|
onReportFileChange(file) {
|
this.reportFile = file.raw
|
this.reportFileList = [file]
|
},
|
onBaseFileChange(file) {
|
this.baseFile = file.raw
|
this.baseFileList = [file]
|
},
|
importReport() {
|
if (!this.reportFile) {
|
this.$message.warning('请先选择货运月报文件')
|
return
|
}
|
const form = new FormData()
|
form.append('file', this.reportFile)
|
form.append('period', this.period)
|
form.append('stage', this.reportStage)
|
if (this.reportNote) form.append('note', this.reportNote)
|
this.importingReport = true
|
api.post('/freight-forecast/report/import', form, { timeout: 120000 })
|
.then(res => {
|
const round = this.getData(res, '月报导入失败')
|
this.$message.success('已更新当前 H203-2:' + this.stageText(round.reportStage) + '第' + round.revisionNo + '版,共' + round.rowCount + '家企业')
|
this.analysis = null
|
this.reportFile = null
|
this.reportFileList = []
|
this.reportNote = ''
|
if (this.$refs.reportUpload) this.$refs.reportUpload.clearFiles()
|
this.loadRounds()
|
this.loadOverview()
|
})
|
.catch(err => this.requestError(err, '月报导入失败'))
|
.finally(() => { this.importingReport = false })
|
},
|
importBase() {
|
if (!this.baseFile) {
|
this.$message.warning('请先选择基数文件')
|
return
|
}
|
const form = new FormData()
|
form.append('file', this.baseFile)
|
form.append('year', this.baseYear)
|
this.importingBase = true
|
api.post('/freight-forecast/base/import', form, { timeout: 120000 })
|
.then(res => {
|
const data = this.getData(res, '基数导入失败')
|
this.$message.success('基数导入完成,共' + data.count + '个月')
|
this.baseFile = null
|
this.baseFileList = []
|
if (this.$refs.baseUpload) this.$refs.baseUpload.clearFiles()
|
this.loadBase()
|
this.loadOverview()
|
})
|
.catch(err => this.requestError(err, '基数导入失败'))
|
.finally(() => { this.importingBase = false })
|
},
|
runAnalysis() {
|
if (!this.rounds.length) {
|
this.$message.warning('当前报表期还没有货运月报,请先导入')
|
return
|
}
|
this.analyzing = true
|
api.get('/freight-forecast/report/analysis', {
|
params: {
|
period: this.period,
|
forecastHistorySource: this.forecastHistorySource
|
},
|
timeout: 120000
|
})
|
.then(res => {
|
this.analysis = this.getData(res, '差异分析失败')
|
this.$message.success('差异分析已生成')
|
})
|
.catch(err => this.requestError(err, '差异分析失败'))
|
.finally(() => { this.analyzing = false })
|
},
|
exportAnalysis() {
|
if (!this.analysis) return
|
api.get('/freight-forecast/report/export', {
|
params: {
|
period: this.period,
|
forecastHistorySource: this.forecastHistorySource
|
},
|
responseType: 'blob',
|
timeout: 120000
|
})
|
.then(res => {
|
const blob = res instanceof Blob ? res : new Blob([res], {
|
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
})
|
const url = window.URL.createObjectURL(blob)
|
const a = document.createElement('a')
|
a.href = url
|
a.download = this.baseYear + '年' + this.currentMonth + '月规上上报差异率情况.xlsx'
|
document.body.appendChild(a)
|
a.click()
|
document.body.removeChild(a)
|
window.URL.revokeObjectURL(url)
|
this.$message.success('差异率报告已导出')
|
})
|
.catch(err => this.handleBlobError(err, '差异率报告导出失败'))
|
},
|
exportCityEnterprises() {
|
if (!this.analysis) return
|
this.exportingCityEnterprises = true
|
api.get('/freight-forecast/report/enterprise-export-by-city', {
|
params: {
|
period: this.period,
|
forecastHistorySource: this.forecastHistorySource
|
},
|
responseType: 'blob',
|
timeout: 120000
|
})
|
.then(res => {
|
const blob = res instanceof Blob ? res : new Blob([res], { type: 'application/zip' })
|
const url = window.URL.createObjectURL(blob)
|
const a = document.createElement('a')
|
a.href = url
|
a.download = this.baseYear + '年' + this.currentMonth + '月规上企业上报差异率_分市州.zip'
|
document.body.appendChild(a)
|
a.click()
|
document.body.removeChild(a)
|
window.URL.revokeObjectURL(url)
|
this.$message.success('分市州企业差异已导出')
|
})
|
.catch(err => this.handleBlobError(err, '分市州企业差异导出失败'))
|
.finally(() => { this.exportingCityEnterprises = false })
|
},
|
handleBlobError(err, fallback) {
|
if (err && err.response && err.response.data instanceof Blob) {
|
const reader = new FileReader()
|
reader.onload = () => {
|
try {
|
const data = JSON.parse(reader.result)
|
this.$message.error(data.message || fallback)
|
} catch (e) {
|
this.$message.error(fallback)
|
}
|
}
|
reader.readAsText(err.response.data)
|
return
|
}
|
this.requestError(err, fallback)
|
},
|
stageText(stage) {
|
return stage === 'FINAL' ? '定稿版' : '审核中'
|
},
|
trackSourceText(source) {
|
if (source === 'CITY_THIRD_PARTY') return '市州第三方'
|
if (source === 'PROVINCIAL') return '省重载平台'
|
return '无轨迹'
|
},
|
statusText(status) {
|
const map = {
|
OK: '正常', NO_AUTH: '缺运政', NO_TRACK: '缺轨迹', NO_MILEAGE: '无有效里程'
|
}
|
return map[status] || status || '—'
|
},
|
statusType(status) {
|
return status === 'OK' ? 'success' : (status === 'NO_TRACK' || status === 'NO_MILEAGE' ? 'warning' : 'danger')
|
},
|
rateClass(rate) {
|
if (rate === null || rate === undefined) return ''
|
if (rate > 0.05) return 'rate-high'
|
if (rate < -0.05) return 'rate-low'
|
return 'rate-ok'
|
},
|
hasFormValue(value) {
|
return value !== null && value !== undefined && value !== ''
|
},
|
hasTurnoverResult(row) {
|
return !!row && row.belowTurnover !== null && row.belowTurnover !== undefined
|
},
|
decimalToPercent(value) {
|
return value === null || value === undefined ? null : Number(value) * 100
|
},
|
fmtAmount(value) {
|
if (value === null || value === undefined || value === '') return '—'
|
return Number(value).toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
},
|
fmtPercent(value) {
|
if (value === null || value === undefined) return '—'
|
return (Number(value) * 100).toFixed(2) + '%'
|
},
|
fmtTime(value) {
|
if (!value) return '—'
|
return String(value).replace('T', ' ').substring(0, 19)
|
}
|
}
|
}
|
</script>
|
|
<style scoped>
|
.topbar {
|
position: relative;
|
display: grid;
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
align-items: center;
|
gap: 5px 12px;
|
margin-bottom: 14px;
|
}
|
.topbar h3 {
|
grid-column: 1;
|
grid-row: 1;
|
margin: 0;
|
font-size: 21px;
|
color: #303133;
|
}
|
.period-highlight {
|
grid-column: 2;
|
grid-row: 1;
|
justify-self: center;
|
display: flex;
|
align-items: center;
|
gap: 10px;
|
}
|
.period-primary-label {
|
color: #303133;
|
font-size: 18px;
|
font-weight: 700;
|
white-space: nowrap;
|
}
|
.period-picker ::v-deep .el-input__inner {
|
height: 38px;
|
line-height: 38px;
|
color: #303133;
|
font-size: 18px;
|
font-weight: 700;
|
}
|
.period-picker ::v-deep .el-input__icon {
|
line-height: 38px;
|
font-size: 16px;
|
}
|
.subtitle {
|
grid-column: 1 / -1;
|
grid-row: 2;
|
padding-right: 90px;
|
margin-top: 5px;
|
color: #909399;
|
font-size: 13px;
|
}
|
.topbar-right {
|
position: absolute;
|
top: 0;
|
right: 0;
|
}
|
.topbar-right,
|
.panel-actions,
|
.table-toolbar,
|
.report-import,
|
.analysis-controls {
|
display: flex;
|
align-items: center;
|
gap: 9px;
|
}
|
.control-label {
|
color: #606266;
|
font-size: 13px;
|
white-space: nowrap;
|
}
|
.summary-grid {
|
display: grid;
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
gap: 12px;
|
margin-bottom: 14px;
|
}
|
.summary-card {
|
border: 1px solid #e4e7ed;
|
background: #fff;
|
border-radius: 6px;
|
padding: 14px 16px;
|
min-height: 82px;
|
}
|
.summary-label {
|
color: #606266;
|
font-size: 13px;
|
}
|
.summary-value {
|
font-size: 26px;
|
line-height: 1.3;
|
color: #303133;
|
font-weight: 600;
|
margin: 6px 0 2px;
|
}
|
.summary-value span {
|
font-size: 13px;
|
font-weight: 400;
|
color: #909399;
|
margin-left: 4px;
|
}
|
.summary-foot {
|
color: #909399;
|
font-size: 12px;
|
}
|
.muted {
|
color: #909399;
|
font-size: 13px;
|
margin-top: 6px;
|
}
|
.notice-alert {
|
margin-bottom: 12px;
|
}
|
.module-tabs {
|
margin-bottom: 12px;
|
}
|
.work-panel {
|
background: #fff;
|
border: 1px solid #e4e7ed;
|
border-radius: 6px;
|
padding: 16px;
|
min-height: 500px;
|
}
|
.panel-head {
|
display: flex;
|
justify-content: space-between;
|
gap: 16px;
|
align-items: flex-start;
|
margin-bottom: 14px;
|
}
|
.panel-title {
|
font-size: 17px;
|
color: #303133;
|
font-weight: 600;
|
}
|
.panel-note,
|
.muted {
|
color: #909399;
|
font-size: 12px;
|
margin-top: 5px;
|
line-height: 1.5;
|
}
|
.inline-summary {
|
display: flex;
|
align-items: center;
|
gap: 24px;
|
padding: 10px 12px;
|
background: #f5f7fa;
|
border: 1px solid #ebeef5;
|
margin-bottom: 12px;
|
color: #606266;
|
font-size: 13px;
|
}
|
.inline-summary b {
|
color: #303133;
|
}
|
.inline-summary .danger {
|
color: #f56c6c;
|
}
|
.inline-summary .warn {
|
color: #e6a23c;
|
}
|
.table-toolbar {
|
margin-bottom: 10px;
|
}
|
.table-toolbar.compact {
|
margin-top: 6px;
|
}
|
.table-count {
|
color: #909399;
|
font-size: 12px;
|
}
|
.below-grid {
|
display: grid;
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
gap: 14px;
|
margin-bottom: 14px;
|
}
|
.form-card {
|
border: 1px solid #e4e7ed;
|
border-radius: 6px;
|
padding: 16px;
|
background: #fcfdff;
|
}
|
.form-card-head {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
font-size: 15px;
|
font-weight: 600;
|
color: #303133;
|
margin-bottom: 15px;
|
}
|
.form-result {
|
min-height: 36px;
|
display: flex;
|
flex-wrap: wrap;
|
gap: 18px;
|
align-items: center;
|
padding: 8px 10px;
|
margin-bottom: 12px;
|
background: #f0f9eb;
|
color: #3f6b44;
|
font-size: 13px;
|
}
|
.form-result b {
|
font-size: 15px;
|
}
|
.below-result-table {
|
margin-top: 4px;
|
}
|
.report-import {
|
padding: 12px;
|
background: #f5f7fa;
|
border: 1px solid #ebeef5;
|
margin-bottom: 12px;
|
}
|
.import-title {
|
font-weight: 600;
|
color: #303133;
|
white-space: nowrap;
|
}
|
.round-table {
|
margin-bottom: 16px;
|
}
|
.analysis-panel {
|
border-top: 1px solid #ebeef5;
|
padding-top: 15px;
|
}
|
.analysis-controls {
|
flex-wrap: wrap;
|
}
|
.control-item {
|
display: flex;
|
align-items: center;
|
gap: 7px;
|
}
|
.source-summary {
|
margin-top: 10px;
|
padding: 9px 12px;
|
background: #f4f8ff;
|
border-left: 3px solid #409eff;
|
color: #606266;
|
font-size: 12px;
|
line-height: 1.55;
|
}
|
.metric-grid {
|
display: grid;
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
gap: 10px;
|
margin: 14px 0;
|
}
|
.metric {
|
border: 1px solid #e4e7ed;
|
border-radius: 6px;
|
padding: 12px;
|
min-height: 92px;
|
background: #fff;
|
}
|
.metric span {
|
display: block;
|
font-size: 12px;
|
color: #909399;
|
}
|
.metric b {
|
display: block;
|
font-size: 22px;
|
color: #303133;
|
margin: 7px 0 3px;
|
}
|
.metric em {
|
display: block;
|
font-size: 11px;
|
color: #a8abb2;
|
font-style: normal;
|
}
|
.total-metric {
|
border-color: #a9d3ff;
|
background: #f4f8ff;
|
}
|
.analysis-warning {
|
margin-bottom: 8px;
|
}
|
.result-section-title {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin: 14px 0 8px;
|
font-size: 15px;
|
font-weight: 600;
|
color: #303133;
|
}
|
.enterprise-title {
|
margin-top: 18px;
|
}
|
.empty-analysis {
|
min-height: 220px;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
justify-content: center;
|
gap: 10px;
|
color: #a8abb2;
|
font-size: 14px;
|
}
|
.empty-analysis i {
|
font-size: 42px;
|
}
|
.formula-panel {
|
margin-top: 14px;
|
padding: 13px 15px;
|
border: 1px solid #ebeef5;
|
background: #fafafa;
|
color: #606266;
|
font-size: 13px;
|
line-height: 2;
|
}
|
.formula-panel b {
|
color: #303133;
|
}
|
.rate-high {
|
color: #d93026;
|
font-weight: 600;
|
}
|
.rate-low {
|
color: #1f70c1;
|
font-weight: 600;
|
}
|
.rate-ok {
|
color: #3f8f51;
|
}
|
@media (max-width: 1300px) {
|
.summary-grid,
|
.metric-grid {
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
}
|
}
|
@media (max-width: 980px) {
|
.below-grid {
|
grid-template-columns: 1fr;
|
}
|
.summary-grid,
|
.metric-grid {
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
}
|
.topbar,
|
.panel-head {
|
align-items: flex-start;
|
}
|
.panel-head {
|
flex-direction: column;
|
}
|
.topbar {
|
grid-template-columns: 1fr;
|
}
|
.topbar h3 {
|
grid-column: 1;
|
grid-row: 1;
|
}
|
.period-highlight {
|
grid-column: 1;
|
grid-row: 2;
|
justify-self: start;
|
}
|
.subtitle {
|
grid-column: 1;
|
grid-row: 3;
|
padding-right: 0;
|
}
|
}
|
|
.import-tip {
|
width: 100%;
|
margin: 8px 0 10px;
|
color: #8a5a12;
|
font-size: 12px;
|
line-height: 1.6;
|
}
|
|
.round-table-title {
|
margin: 16px 0 6px;
|
color: #5f6773;
|
font-size: 12px;
|
font-weight: 600;
|
}
|
|
.current-source-text {
|
color: #303846;
|
font-size: 13px;
|
font-weight: 600;
|
}
|
</style>
|