|
|
<template>
|
|
|
<div class="channel student-training-shell">
|
|
|
<main class="training-core">
|
|
|
<section class="task-header"><div class="task-badge"><el-icon><TrendCharts /></el-icon> 核心实训 · 供应渠道管理</div><h1 class="task-title">{{ taskTitle }}</h1></section>
|
|
|
<TrainingTaskBrief :background="taskBackground" :goals="taskGoals" :requirements="taskRequirement" :show-material="false" :show-toolbar="false" />
|
|
|
<section class="task-card">
|
|
|
<div class="workbench-head"><div><p class="section-eyebrow">PURCHASE DEMAND FORECAST</p><h2>{{ activeStepName }}</h2></div><TrainingTaskToolbar class="purchase-forecast-toolbar" :task-key="TASK_KEY" :on-export="exportOutcome" /></div>
|
|
|
<nav v-if="hasConfiguredSteps" class="step-indicator" aria-label="采购需求预测步骤"><template v-for="(step,index) in configuredSteps" :key="`${step}-${index}`"><button type="button" :class="['step-tab',{active:activeStep===index+1,complete:activeStep>index+1}]" :aria-current="activeStep===index+1?'step':undefined" :aria-label="`第${index+1}步:${step}`" @click="setCurrentStep(index+1)"><span class="step-marker">{{ String(index+1).padStart(2,'0') }}</span><span class="step-copy"><strong class="step-name" :title="step">{{ step }}</strong><span class="step-action">{{ activeStep===index+1?'当前步骤':'点击切换' }} <span aria-hidden="true">→</span></span></span></button><span v-if="index<configuredSteps.length-1" class="step-connector" aria-hidden="true"></span></template></nav>
|
|
|
<section v-show="isSectionVisible(1)" class="step-card">
|
|
|
|
|
|
<p class="linear-forecast-intro">线性预测的核心是拟合趋势线(y=a+bt),是基于历史数据预测未来销量的有效方法。根据案例资料及数据,预测案例店铺产品未来 3 个月市场需求数据。</p>
|
|
|
<div class="linear-forecast-panel">
|
|
|
<el-table :data="linearForecastRows" border class="linear-forecast-table">
|
|
|
<el-table-column prop="label" label="预测月份" align="center" width="310" />
|
|
|
<el-table-column label="预测案例店铺市场需求量(取整)" align="center">
|
|
|
<template #default="{ row }">
|
|
|
<el-input-number v-model="row.demand" :min="0" :precision="0" :step="1" :controls="false" placeholder="请输入非负整数" class="linear-forecast-input" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<section class="linear-forecast-guide">
|
|
|
<div>
|
|
|
<p class="guide-title">可参考以下方法:</p>
|
|
|
<ol>
|
|
|
<li>下载案例数据表,使用 Excel 中的 FORECAST.LINEAR 函数(WPS 为 FORECAST 函数),自行预测未来 3 个月市场需求。</li>
|
|
|
<li>导出实训数据表,上传到通用 AI 大模型,通过大模型计算结果。参考提示词如下:请根据 12 个月销量数据,利用线性预测法预测未来三个月的销量数据,给出计算过程。</li>
|
|
|
</ol>
|
|
|
</div>
|
|
|
<el-button type="primary" class="practice-guide-button" @click="downloadPracticeGuide">下载实训操作说明</el-button>
|
|
|
</section>
|
|
|
</section><section v-show="isSectionVisible(2)" class="step-card">
|
|
|
<p class="forecast-visual-intro">计算未来 3 个月需求量后,使用散点图 + 趋势线绘制需求量预测趋势图,呈现已知的 12 个月销量以及预测数据的整体走势。</p>
|
|
|
<section class="forecast-visual-upload-card">
|
|
|
<label v-if="!demandForecastChart.url" class="forecast-visual-dropzone" :class="{ 'is-uploading': uploadingDemandForecastChart }">
|
|
|
<input type="file" accept=".png,.jpg,.jpeg,.webp,image/png,image/jpeg,image/webp" :disabled="uploadingDemandForecastChart" @change="handleDemandForecastChartUpload" />
|
|
|
<span class="forecast-visual-upload-icon" aria-hidden="true">↥</span>
|
|
|
<strong>{{ uploadingDemandForecastChart ? "正在上传图形..." : "上传需求预测可视化图形" }}</strong>
|
|
|
<span>支持 PNG、JPG、JPEG、WEBP 格式,上传后可点击缩略图预览</span>
|
|
|
</label>
|
|
|
<div v-else class="forecast-visual-preview">
|
|
|
<el-image :src="demandForecastChart.url" :preview-src-list="[demandForecastChart.url]" :initial-index="0" fit="cover" preview-teleported />
|
|
|
<div class="forecast-visual-file-meta">
|
|
|
<strong>{{ demandForecastChart.name || "需求预测可视化图形" }}</strong>
|
|
|
<span>点击图形可放大预览</span>
|
|
|
<button type="button" class="forecast-visual-replace" @click="clearDemandForecastChart">重新上传</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</section>
|
|
|
<section class="forecast-visual-guide">
|
|
|
<div>
|
|
|
<p class="guide-title">可参考以下方法:</p>
|
|
|
<ol>
|
|
|
<li>使用 Excel/WPS 绘图功能实现可视化,可参考《实训操作说明》完成。</li>
|
|
|
<li>下载实训数据表,加上预测的三个月需求数据,表格整体数据上传到通用 AI 大模型,通过大模型计算结果生成可视化图形。参考提示词:请根据表格数据,生成数据趋势图,要求使用散点图加趋势图绘制数据走势。</li>
|
|
|
</ol>
|
|
|
</div>
|
|
|
<el-button type="primary" class="practice-guide-button" @click="downloadPracticeGuide">下载实训操作说明</el-button>
|
|
|
</section>
|
|
|
</section><section v-show="isSectionVisible(3)" class="step-card">
|
|
|
<p class="procurement-plan-intro">基于步骤一预测的未来3个月销量,结合安全库存和期初库存,计算各月采购量,填报采购预测表。</p>
|
|
|
<section class="procurement-plan-rules">
|
|
|
<h4>采购规则</h4>
|
|
|
<ol>
|
|
|
<li>安全库存:按预测销量的 10% 预留,应对突发订单波动(安全库存 = 预测销量 × 10%,四舍五入取整)。</li>
|
|
|
<li>补货周期:按月采购,每月月初下达采购订单。</li>
|
|
|
<li>期初库存:第 12 月末剩余库存为 30 台,作为预测第 1 个月(t=13)的期初库存;此后各月期初库存为上月末剩余库存。</li>
|
|
|
</ol>
|
|
|
<p class="procurement-plan-formula">月度采购量 = 预测销量 + 安全库存 - 期初库存</p>
|
|
|
</section>
|
|
|
<div class="procurement-plan-table-wrap">
|
|
|
<el-table :data="procurementPlanRows" border class="procurement-plan-table">
|
|
|
<el-table-column prop="label" label="预测月份" align="center" min-width="220" />
|
|
|
<el-table-column label="预测销量(台)" align="center" min-width="160">
|
|
|
<template #default="scope">
|
|
|
<span class="procurement-plan-readonly">{{ procurementPlanExpectedRows[scope.$index]?.demand ?? '请先完成第 1 步' }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="安全库存(台)" align="center" min-width="165">
|
|
|
<template #default="scope">
|
|
|
<el-input-number v-model="scope.row.safetyStock" :min="0" :precision="0" :controls="false" class="procurement-plan-input" placeholder="请输入" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="期初库存(台)" align="center" min-width="165">
|
|
|
<template #default="scope">
|
|
|
<el-input-number v-model="scope.row.openingStock" :min="0" :precision="0" :controls="false" class="procurement-plan-input" placeholder="请输入" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="采购量(台)" align="center" min-width="165">
|
|
|
<template #default="scope">
|
|
|
<el-input-number v-model="scope.row.purchaseQuantity" :precision="0" :controls="false" class="procurement-plan-input" placeholder="请输入" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<p class="procurement-plan-hint">预测销量由第 1 步同步带入。提交时将按题设规则校验安全库存、期初库存和采购量。</p>
|
|
|
</section><section v-show="isSectionVisible(4)" class="step-card">
|
|
|
<p>未来需求预测,使用线性回归模型预测2025年采购量:</p>
|
|
|
<el-table
|
|
|
:data="forecastData"
|
|
|
border
|
|
|
style="width: 50%"
|
|
|
:header-cell-style="{
|
|
|
color: '#fff',
|
|
|
fontSize: '14px',
|
|
|
backgroundColor: '#6A7DE9!important',
|
|
|
}"
|
|
|
>
|
|
|
<el-table-column prop="month" label="月份" align="center"></el-table-column>
|
|
|
<el-table-column prop="forecast" label="预测采购量" align="center">
|
|
|
<template #default="scope">
|
|
|
<el-input v-model="scope.row.forecast" placeholder=""></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<p>
|
|
|
<el-button @click="drawForecastChart" type="primary">点击进行采购量预测可视化</el-button>
|
|
|
<el-button @click="runResultShow = true" type="primary">查看代码</el-button>
|
|
|
<el-button @click="go">跳转到Python在线编程环境</el-button>
|
|
|
</p>
|
|
|
<div id="forecastChart" ref="forecastChart" style="width: 80%; height: 400px"></div>
|
|
|
</section>
|
|
|
<div v-if="hasConfiguredSteps" class="step-navigation"><button type="button" class="btn-nav" :disabled="activeStep===1" @click="goPreviousStep"><el-icon><ArrowLeft /></el-icon>上一步</button><button type="button" class="btn-nav btn-save" :disabled="saving" @click="saveCurrentProgress"><el-icon><CircleCheck /></el-icon>保存当前进度</button><button type="button" class="btn-nav btn-primary" :disabled="activeStep===configuredSteps.length" @click="goNextStep">下一步<el-icon><ArrowRight /></el-icon></button></div>
|
|
|
<div class="taskfooter"><el-button @click="submitTask" :loading="saving">提交任务</el-button><el-button @click="resetTask" :loading="saving">清空填写</el-button></div>
|
|
|
<pop-model :showModel="runResultShow" title="设置代码" @closePop="closeCode">
|
|
|
<template v-slot:content>
|
|
|
<div>
|
|
|
<codemirror :code="code"></codemirror>
|
|
|
</div>
|
|
|
</template>
|
|
|
</pop-model>
|
|
|
</section>
|
|
|
</main>
|
|
|
<TrainingAiSidebar study-tip="当前任务建议:先完成未来 3 个月需求预测,再上传包含历史销量与预测值的散点趋势图。" :progress-items="progressItems" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
|
|
|
|
|
|
import TrainingAiSidebar from "@/views/components/TrainingAiSidebar.vue";
|
|
|
import TrainingTaskToolbar from "@/views/components/TrainingTaskToolbar.vue";
|
|
|
import TrainingTaskBrief from "@/views/components/TrainingTaskBrief.vue";
|
|
|
import * as analysisAPI from "@/api/market-demand-mining.js";
|
|
|
import * as echarts from "echarts";
|
|
|
import useUserStore from "@/store/modules/user";
|
|
|
import { ArrowLeft, ArrowRight, CircleCheck, TrendCharts } from "@element-plus/icons-vue";
|
|
|
import { getTrainingTaskByKey } from "@/api/trainingTask";
|
|
|
import { getStudentTrainingAnswer, saveStudentTrainingAnswer, uploadStudentTrainingFile, validatePurchaseDemandForecastStepOne } from "@/api/studentTrainingAnswer";
|
|
|
import { parseTrainingArray } from "@/views/training/taskKeyMap";
|
|
|
import { isStudentDemo } from "@/utils/studentDemo";
|
|
|
const userStore = useUserStore();
|
|
|
const dialogVisible = ref(false);
|
|
|
import codemirror from "@/components/codemirror/index.vue";
|
|
|
import popModel from "@/views/components/popModal.vue";
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const TASK_KEY = "purchase-demand-forecast";
|
|
|
const PURCHASE_DEMAND_FORECAST_GUIDE_URL = "/file/training-materials/purchase-demand-forecast/18.实训操作说明.docx";
|
|
|
const taskConfig = ref(null);
|
|
|
const activeStep = ref(1);
|
|
|
const saving = ref(false);
|
|
|
const taskTitle = computed(() => taskConfig.value?.taskName || "采购需求预测");
|
|
|
const taskBackground = computed(() => taskConfig.value?.background || "电商产品采购需求预测用于确定未来一段时间的商品需求量,帮助企业合理安排采购计划,避免库存积压或缺货。" );
|
|
|
const taskRequirement = computed(() => taskConfig.value?.requirements || "使用季节指数预测法,根据历史月度采购数据预测未来一年的采购量。" );
|
|
|
const taskGoals = computed(() => parseTrainingArray(taskConfig.value?.objectives, ["理解季节指数预测法的核心步骤", "能够计算移动平均与季节指数", "能够预测未来采购需求并输出结论"]));
|
|
|
const configuredSteps = computed(() => parseTrainingArray(taskConfig.value?.steps));
|
|
|
const hasConfiguredSteps = computed(() => configuredSteps.value.length > 0);
|
|
|
const activeStepName = computed(() => configuredSteps.value[activeStep.value - 1] || "采购需求预测");
|
|
|
const progressItems = computed(() => configuredSteps.value.map((text, index) => ({ text, status: index + 1 < activeStep.value ? "done" : index + 1 === activeStep.value ? "doing" : "" })));
|
|
|
const runResultShow = ref(false);
|
|
|
const code = ` X
|
|
|
import pandas as pd
|
|
|
import numpy as np
|
|
|
import matplotlib.pyplot as plt
|
|
|
import matplotlib as mpl
|
|
|
from sklearn.linear_model import LinearRegression
|
|
|
mpl.rcParams['font.sans-serif'] = ['SimHei']#SimHeri是中文字体名称
|
|
|
mpl.rcParams['axes.unicode_minus'] = False
|
|
|
# ====================== 1. 数据准备 ======================
|
|
|
data = {
|
|
|
"Year": [2022]*12 + [2023]*12 + [2024]*12,
|
|
|
"Month": list(range(1,13)) * 3,
|
|
|
"Purchase": [
|
|
|
120, 150, 280, 350, 480, 720, 850, 800, 600, 400, 250, 180, # 2022
|
|
|
130, 160, 300, 380, 520, 780, 920, 870, 640, 430, 270, 190, # 2023
|
|
|
140, 170, 320, 400, 550, 830, 950, 900, 680, 460, 290, 200 # 2024
|
|
|
]
|
|
|
}
|
|
|
df = pd.DataFrame(data)
|
|
|
df["Date"] = pd.to_datetime(df["Year"].astype(str) + "-" + df["Month"].astype(str))
|
|
|
df = df.set_index("Date").sort_index()
|
|
|
# ====================== 2. 计算移动平均值(取整) ======================
|
|
|
# 计算移动平均(计算时保留小数,输出时取整)
|
|
|
df["MA12"] = df["Purchase"].rolling(window=12, center=True).mean()
|
|
|
# ====================== 3. 输出移动平均值(整数形式) ======================
|
|
|
print("历史数据与移动平均值(取整):")
|
|
|
valid_ma = df.dropna(subset=["MA12"]).copy()
|
|
|
# 对移动平均值四舍五入取整
|
|
|
valid_ma["MA12"] = valid_ma["MA12"].round().astype(int) # 关键修改点
|
|
|
print(valid_ma[["Purchase", "MA12"]])
|
|
|
# ====================== 4. 季节指数计算 ======================
|
|
|
# 计算时仍使用原始移动平均值保证精度
|
|
|
df["Seasonal_Irregular"] = df["Purchase"] / df["MA12"]
|
|
|
seasonal_index = df.groupby("Month")["Seasonal_Irregular"].mean()
|
|
|
seasonal_index = (seasonal_index / seasonal_index.mean()).round(3)
|
|
|
# ====================== 5. 趋势预测 ======================
|
|
|
trend_data = df.dropna(subset=["MA12"]).copy()
|
|
|
trend_data["Time"] = np.arange(len(trend_data))
|
|
|
model = LinearRegression()
|
|
|
model.fit(trend_data[["Time"]], trend_data["MA12"])
|
|
|
future_time = np.arange(len(trend_data), len(trend_data)+12).reshape(-1, 1)
|
|
|
future_trend = model.predict(future_time)
|
|
|
# ====================== 6. 预测采购量(取整数) ======================
|
|
|
future_dates = pd.date_range(start="2025-01-01", periods=12, freq="MS")
|
|
|
future_df = pd.DataFrame({"Date": future_dates})
|
|
|
future_df["Month"] = future_df["Date"].dt.month
|
|
|
future_df["Trend"] = future_trend.round(1) # 趋势值保留1位小数用于后续计算
|
|
|
future_df["Season_Index"] = future_df["Month"].map(seasonal_index)
|
|
|
future_df["Forecast"] = (future_df["Trend"] * future_df["Season_Index"]).round().astype(int)
|
|
|
# ====================== 7. 可视化与输出 ======================
|
|
|
plt.figure(figsize=(14, 7))
|
|
|
ax = plt.gca()
|
|
|
# 绘制历史数据与趋势线
|
|
|
plt.plot(df.index, df["Purchase"], label="历史采购量", marker="o", linestyle="-", markersize=6)
|
|
|
plt.plot(trend_data.index, trend_data["MA12"], label="移动平均趋势", linestyle="--", color="darkgreen")
|
|
|
# 绘制预测数据点并添加数值标签
|
|
|
forecast_line = plt.plot(future_df["Date"], future_df["Forecast"],
|
|
|
label="2025预测值", color="red", marker="o", linestyle="-")
|
|
|
# 在每个预测点上添加数值标签
|
|
|
for date, value in zip(future_df["Date"], future_df["Forecast"]):
|
|
|
ax.text(date, value + 20, f'{value}', # 数值显示在点上方20单位
|
|
|
ha='center', va='bottom', fontsize=9, color='red',
|
|
|
bbox=dict(facecolor='white', edgecolor='none', alpha=0.8)) # 白色背景框
|
|
|
# 坐标轴与图例设置
|
|
|
ax.xaxis.set_major_locator(mdates.MonthLocator(interval=3)) # 每3个月显示一个刻度
|
|
|
ax.xaxis.set_major_formatter(mdates.DateFormatter('%Y-%m'))
|
|
|
plt.xticks(rotation=45)
|
|
|
plt.title("采购量预测可视化", fontsize=14)
|
|
|
plt.xlabel("日期", fontsize=12)
|
|
|
plt.ylabel("采购量(件)", fontsize=12)
|
|
|
plt.grid(True, linestyle='--', alpha=0.5)
|
|
|
plt.legend(loc='upper left')
|
|
|
plt.tight_layout()
|
|
|
plt.show()
|
|
|
print("\n季节指数(保留3位小数):")
|
|
|
print(seasonal_index)
|
|
|
print("\n2025年预测采购量(整数):")
|
|
|
print(future_df[["Date", "Forecast"]].set_index("Date"))`;
|
|
|
const advertisementData = [
|
|
|
{
|
|
|
year: 2022,
|
|
|
jan: 120,
|
|
|
feb: 150,
|
|
|
mar: 280,
|
|
|
apr: 350,
|
|
|
may: 480,
|
|
|
jun: 720,
|
|
|
jul: 850,
|
|
|
aug: 800,
|
|
|
sep: 600,
|
|
|
oct: 400,
|
|
|
nov: 250,
|
|
|
dec: 180,
|
|
|
},
|
|
|
{
|
|
|
year: 2023,
|
|
|
jan: 130,
|
|
|
feb: 160,
|
|
|
mar: 300,
|
|
|
apr: 380,
|
|
|
may: 520,
|
|
|
jun: 780,
|
|
|
jul: 920,
|
|
|
aug: 870,
|
|
|
sep: 640,
|
|
|
oct: 430,
|
|
|
nov: 270,
|
|
|
dec: 190,
|
|
|
},
|
|
|
{
|
|
|
year: 2024,
|
|
|
jan: 140,
|
|
|
feb: 170,
|
|
|
mar: 320,
|
|
|
apr: 400,
|
|
|
may: 550,
|
|
|
jun: 830,
|
|
|
jul: 950,
|
|
|
aug: 900,
|
|
|
sep: 680,
|
|
|
oct: 460,
|
|
|
nov: 290,
|
|
|
dec: 200,
|
|
|
},
|
|
|
];
|
|
|
const tableDatas = ref([
|
|
|
{ month: "2022年1月", actual: 120 },
|
|
|
{ month: "2022年2月", actual: 150 },
|
|
|
{ month: "2022年3月", actual: 280 },
|
|
|
{ month: "2022年4月", actual: 350 },
|
|
|
{ month: "2022年5月", actual: 480 },
|
|
|
{ month: "2022年6月", actual: 720 },
|
|
|
{ month: "2022年7月", actual: 850 },
|
|
|
{ month: "2022年8月", actual: 800 },
|
|
|
{ month: "2022年9月", actual: 600 },
|
|
|
{ month: "2022年10月", actual: 400 },
|
|
|
{ month: "2022年11月", actual: 250 },
|
|
|
{ month: "2022年12月", actual: 180 },
|
|
|
{ month: "2023年1月", actual: 130 },
|
|
|
{ month: "2023年2月", actual: 160 },
|
|
|
{ month: "2023年3月", actual: 300 },
|
|
|
{ month: "2023年4月", actual: 380 },
|
|
|
{ month: "2023年5月", actual: 520 },
|
|
|
{ month: "2023年6月", actual: 780 },
|
|
|
{ month: "2023年7月", actual: 920 },
|
|
|
{ month: "2023年8月", actual: 870 },
|
|
|
{ month: "2023年9月", actual: 640 },
|
|
|
{ month: "2023年10月", actual: 430 },
|
|
|
{ month: "2023年11月", actual: 270 },
|
|
|
{ month: "2023年12月", actual: 190 },
|
|
|
{ month: "2024年1月", actual: 140 },
|
|
|
{ month: "2024年2月", actual: 170 },
|
|
|
{ month: "2024年3月", actual: 320 },
|
|
|
{ month: "2024年4月", actual: 400 },
|
|
|
{ month: "2024年5月", actual: 550 },
|
|
|
{ month: "2024年6月", actual: 830 },
|
|
|
{ month: "2024年7月", actual: 950 },
|
|
|
{ month: "2024年8月", actual: 900 },
|
|
|
{ month: "2024年9月", actual: 680 },
|
|
|
{ month: "2024年10月", actual: 460 },
|
|
|
{ month: "2024年11月", actual: 290 },
|
|
|
{ month: "2024年12月", actual: 200 },
|
|
|
]);
|
|
|
const tableData = ref([
|
|
|
{ month: "2022年7月", actual: 850, ma12: null },
|
|
|
{ month: "2022年8月", actual: 800, ma12: null },
|
|
|
{ month: "2022年9月", actual: 600, ma12: null },
|
|
|
{ month: "2022年10月", actual: 400, ma12: null },
|
|
|
{ month: "2022年11月", actual: 250, ma12: null },
|
|
|
{ month: "2022年12月", actual: 180, ma12: null },
|
|
|
{ month: "2023年1月", actual: 130, ma12: null },
|
|
|
{ month: "2023年2月", actual: 160, ma12: null },
|
|
|
{ month: "2023年3月", actual: 300, ma12: null },
|
|
|
{ month: "2023年4月", actual: 380, ma12: null },
|
|
|
{ month: "2023年5月", actual: 520, ma12: null },
|
|
|
{ month: "2023年6月", actual: 780, ma12: null },
|
|
|
{ month: "2023年7月", actual: 920, ma12: null },
|
|
|
{ month: "2023年8月", actual: 870, ma12: null },
|
|
|
{ month: "2023年9月", actual: 640, ma12: null },
|
|
|
{ month: "2023年10月", actual: 430, ma12: null },
|
|
|
{ month: "2023年11月", actual: 270, ma12: null },
|
|
|
{ month: "2023年12月", actual: 190, ma12: null },
|
|
|
{ month: "2024年1月", actual: 140, ma12: null },
|
|
|
{ month: "2024年2月", actual: 170, ma12: null },
|
|
|
{ month: "2024年3月", actual: 320, ma12: null },
|
|
|
{ month: "2024年4月", actual: 400, ma12: null },
|
|
|
{ month: "2024年5月", actual: 550, ma12: null },
|
|
|
{ month: "2024年6月", actual: 830, ma12: null },
|
|
|
{ month: "2024年7月", actual: 950, ma12: null },
|
|
|
]);
|
|
|
const tableData1 = ref([
|
|
|
{ month: "1月", index: null },
|
|
|
{ month: "2月", index: null },
|
|
|
{ month: "3月", index: null },
|
|
|
{ month: "4月", index: null },
|
|
|
{ month: "5月", index: null },
|
|
|
{ month: "6月", index: null },
|
|
|
{ month: "7月", index: null },
|
|
|
{ month: "8月", index: null },
|
|
|
{ month: "9月", index: null },
|
|
|
{ month: "10月", index: null },
|
|
|
{ month: "11月", index: null },
|
|
|
{ month: "12月", index: null },
|
|
|
]);
|
|
|
const createLinearForecastRows = () => [
|
|
|
{ time: 13, label: "预测第1个月(t=13)", demand: null },
|
|
|
{ time: 14, label: "预测第2个月(t=14)", demand: null },
|
|
|
{ time: 15, label: "预测第3个月(t=15)", demand: null },
|
|
|
];
|
|
|
const linearForecastRows = ref(createLinearForecastRows());
|
|
|
const PROCUREMENT_INITIAL_STOCK = 30;
|
|
|
const createProcurementPlanRows = () =>
|
|
|
createLinearForecastRows().map(({ time, label }) => ({
|
|
|
time,
|
|
|
label,
|
|
|
safetyStock: null,
|
|
|
openingStock: null,
|
|
|
purchaseQuantity: null,
|
|
|
}));
|
|
|
const procurementPlanRows = ref(createProcurementPlanRows());
|
|
|
const procurementPlanExpectedRows = computed(() => {
|
|
|
let expectedOpeningStock = PROCUREMENT_INITIAL_STOCK;
|
|
|
|
|
|
return linearForecastRows.value.map((forecastRow, index) => {
|
|
|
const demand = Number(forecastRow?.demand);
|
|
|
const hasValidDemand = Number.isInteger(demand) && demand >= 0;
|
|
|
const safetyStock = hasValidDemand ? Math.round(demand * 0.1) : null;
|
|
|
const openingStock = hasValidDemand ? expectedOpeningStock : null;
|
|
|
const purchaseQuantity = hasValidDemand
|
|
|
? demand + safetyStock - openingStock
|
|
|
: null;
|
|
|
|
|
|
if (hasValidDemand) {
|
|
|
expectedOpeningStock = safetyStock;
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
time: forecastRow?.time ?? index + 13,
|
|
|
label: forecastRow?.label || `预测第${index + 1}个月(t=${index + 13})`,
|
|
|
demand: hasValidDemand ? demand : null,
|
|
|
safetyStock,
|
|
|
openingStock,
|
|
|
purchaseQuantity,
|
|
|
};
|
|
|
});
|
|
|
});
|
|
|
const demandForecastChart = ref({ url: "", name: "" });
|
|
|
const uploadingDemandForecastChart = ref(false);
|
|
|
const forecastData = ref([
|
|
|
{ month: "2025年01月", forecast: "" },
|
|
|
{ month: "2025年02月", forecast: "" },
|
|
|
{ month: "2025年03月", forecast: "" },
|
|
|
{ month: "2025年04月", forecast: "" },
|
|
|
{ month: "2025年05月", forecast: "" },
|
|
|
{ month: "2025年06月", forecast: "" },
|
|
|
{ month: "2025年07月", forecast: "" },
|
|
|
{ month: "2025年08月", forecast: "" },
|
|
|
{ month: "2025年09月", forecast: "" },
|
|
|
{ month: "2025年10月", forecast: "" },
|
|
|
{ month: "2025年11月", forecast: "" },
|
|
|
{ month: "2025年12月", forecast: "" },
|
|
|
]);
|
|
|
// 生成完整的月份列表(包括 2024年空隙)
|
|
|
const getFullMonths = () => {
|
|
|
const months = [];
|
|
|
const startDate = new Date("2022-01-01");
|
|
|
const endDate = new Date("2025-12-01");
|
|
|
while (startDate <= endDate) {
|
|
|
months.push(`${startDate.getFullYear()}年${(startDate.getMonth() + 1).toString().padStart(2, "0")}月`);
|
|
|
startDate.setMonth(startDate.getMonth() + 1);
|
|
|
}
|
|
|
return months;
|
|
|
};
|
|
|
/// 合并数据并生成时间轴
|
|
|
const chartData = computed(() => {
|
|
|
const fullMonths = getFullMonths();
|
|
|
const actualData = tableDatas.value.map((item) => item.actual);
|
|
|
const forecastDataArray = Array(fullMonths.length).fill(null);
|
|
|
forecastData.value.forEach((item, index) => {
|
|
|
const idx = fullMonths.indexOf(item.month);
|
|
|
if (idx !== -1) forecastDataArray[idx] = item.forecast;
|
|
|
});
|
|
|
const ma12Data = tableData.value.map((item) => item.ma12);
|
|
|
// ma12Data数组头部添加
|
|
|
ma12Data.unshift(null, null, null, null, null, null);
|
|
|
return {
|
|
|
actual: actualData,
|
|
|
forecast: forecastDataArray,
|
|
|
ma12: ma12Data,
|
|
|
months: fullMonths,
|
|
|
};
|
|
|
});
|
|
|
const drawForecastChart = () => {
|
|
|
let myChart = echarts.init(proxy.$refs.forecastChart);
|
|
|
const option = {
|
|
|
title: {
|
|
|
text: "采购量预测可视化",
|
|
|
left: "center",
|
|
|
textStyle: { fontSize: 16 },
|
|
|
},
|
|
|
tooltip: {
|
|
|
trigger: "axis",
|
|
|
formatter: function (params) {
|
|
|
let result = `${params[0].axisValue}<br/>`;
|
|
|
params.forEach((param) => {
|
|
|
result += `${param.marker} ${param.seriesName}: ${param.value || "N/A"}${param.seriesName === "指数" ? "" : ""}<br/>`;
|
|
|
});
|
|
|
return result;
|
|
|
},
|
|
|
},
|
|
|
legend: {
|
|
|
data: ["历史采购量", "移动平均趋势", "2025预测值"],
|
|
|
top: "8%",
|
|
|
// 下移一点点
|
|
|
},
|
|
|
grid: {
|
|
|
left: "3%",
|
|
|
right: "4%",
|
|
|
bottom: "1%",
|
|
|
containLabel: true,
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
data: chartData.value.months,
|
|
|
axisLabel: { interval: 0, rotate: 45 },
|
|
|
},
|
|
|
yAxis: [
|
|
|
{
|
|
|
type: "value",
|
|
|
name: "采购量(件)",
|
|
|
axisLabel: { formatter: "{value}" },
|
|
|
nameGap: 40,
|
|
|
min: 0,
|
|
|
nameLocation: "middle",
|
|
|
},
|
|
|
],
|
|
|
series: [
|
|
|
{
|
|
|
name: "历史采购量",
|
|
|
type: "line",
|
|
|
yAxisIndex: 0,
|
|
|
data: chartData.value.actual,
|
|
|
itemStyle: { color: "#5470c6" },
|
|
|
lineStyle: { width: 2 },
|
|
|
connectNulls: false, // 不连接空值
|
|
|
},
|
|
|
{
|
|
|
name: "移动平均趋势",
|
|
|
type: "line",
|
|
|
yAxisIndex: 0,
|
|
|
data: chartData.value.ma12,
|
|
|
itemStyle: { color: "#91cc75" },
|
|
|
lineStyle: { type: "dashed", width: 2 },
|
|
|
connectNulls: false, // 不连接空值
|
|
|
},
|
|
|
{
|
|
|
name: "2025预测值",
|
|
|
type: "line",
|
|
|
yAxisIndex: 0,
|
|
|
data: chartData.value.forecast,
|
|
|
itemStyle: { color: "#ee6666" },
|
|
|
lineStyle: { width: 2 },
|
|
|
connectNulls: false, // 不连接空值
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
myChart.setOption(option);
|
|
|
// 响应式调整
|
|
|
window.addEventListener("resize", () => myChart.resize());
|
|
|
};
|
|
|
function downloadPracticeGuide() {
|
|
|
downloadBuiltInFile(PURCHASE_DEMAND_FORECAST_GUIDE_URL, "18.实训操作说明.docx");
|
|
|
}
|
|
|
function downloadBuiltInFile(url, fileName) {
|
|
|
const link = document.createElement("a");
|
|
|
link.href = url;
|
|
|
link.download = fileName;
|
|
|
document.body.appendChild(link);
|
|
|
link.click();
|
|
|
document.body.removeChild(link);
|
|
|
}
|
|
|
function clearDemandForecastChart() {
|
|
|
const imageUrl = String(demandForecastChart.value?.url || "");
|
|
|
if (imageUrl.startsWith("blob:")) URL.revokeObjectURL(imageUrl);
|
|
|
demandForecastChart.value = { url: "", name: "" };
|
|
|
}
|
|
|
async function handleDemandForecastChartUpload(event) {
|
|
|
const file = event?.target?.files?.[0];
|
|
|
if (event?.target) event.target.value = "";
|
|
|
if (!file) return;
|
|
|
|
|
|
const acceptedTypes = ["image/png", "image/jpeg", "image/webp"];
|
|
|
if (!acceptedTypes.includes(file.type)) {
|
|
|
proxy?.$modal?.msgWarning("请上传 PNG、JPG、JPEG 或 WEBP 格式的图片");
|
|
|
return;
|
|
|
}
|
|
|
if (file.size > 5 * 1024 * 1024) {
|
|
|
proxy?.$modal?.msgWarning("图片大小不能超过 5MB");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
uploadingDemandForecastChart.value = true;
|
|
|
try {
|
|
|
let url = "";
|
|
|
if (isStudentDemo()) {
|
|
|
url = URL.createObjectURL(file);
|
|
|
} else {
|
|
|
const formData = new FormData();
|
|
|
formData.append("file", file);
|
|
|
const response = await uploadStudentTrainingFile(formData);
|
|
|
url = response?.url || response?.data?.url || "";
|
|
|
if (!url) throw new Error("上传成功但未返回文件地址");
|
|
|
}
|
|
|
clearDemandForecastChart();
|
|
|
demandForecastChart.value = { url, name: file.name };
|
|
|
proxy?.$modal?.msgSuccess("需求预测可视化图形已上传,可点击缩略图预览");
|
|
|
} catch (error) {
|
|
|
proxy?.$modal?.msgError(error?.message || "上传失败,请稍后重试");
|
|
|
} finally {
|
|
|
uploadingDemandForecastChart.value = false;
|
|
|
}
|
|
|
}
|
|
|
function normalizeActiveStep(value) { if (!configuredSteps.value.length) return 1; return Math.min(Math.max(Number(value) || 1, 1), configuredSteps.value.length); }
|
|
|
function isSectionVisible(section) { return !hasConfiguredSteps.value || activeStep.value === section; }
|
|
|
function buildProgress() {
|
|
|
return {
|
|
|
activeStep: activeStep.value,
|
|
|
linearForecastRows: linearForecastRows.value,
|
|
|
procurementPlanRows: procurementPlanRows.value,
|
|
|
demandForecastChart: { ...demandForecastChart.value },
|
|
|
tableData: tableData.value,
|
|
|
tableData1: tableData1.value,
|
|
|
forecastData: forecastData.value,
|
|
|
updatedAt: new Date().toISOString(),
|
|
|
};
|
|
|
}
|
|
|
function applyProgress(value) {
|
|
|
if (!value || typeof value !== "object") return;
|
|
|
activeStep.value = normalizeActiveStep(value.activeStep);
|
|
|
if (Array.isArray(value.linearForecastRows)) {
|
|
|
const demandByTime = new Map(value.linearForecastRows.map((item) => [Number(item?.time), item?.demand]));
|
|
|
linearForecastRows.value = createLinearForecastRows().map((row) => ({ ...row, demand: demandByTime.get(row.time) ?? null }));
|
|
|
}
|
|
|
if (Array.isArray(value.procurementPlanRows)) {
|
|
|
const planByTime = new Map(value.procurementPlanRows.map((item) => [Number(item?.time), item]));
|
|
|
procurementPlanRows.value = createProcurementPlanRows().map((row) => {
|
|
|
const savedRow = planByTime.get(row.time) || {};
|
|
|
return {
|
|
|
...row,
|
|
|
safetyStock: savedRow.safetyStock ?? null,
|
|
|
openingStock: savedRow.openingStock ?? null,
|
|
|
purchaseQuantity: savedRow.purchaseQuantity ?? null,
|
|
|
};
|
|
|
});
|
|
|
}
|
|
|
if (value.demandForecastChart && typeof value.demandForecastChart === "object") {
|
|
|
demandForecastChart.value = {
|
|
|
url: String(value.demandForecastChart.url || ""),
|
|
|
name: String(value.demandForecastChart.name || ""),
|
|
|
};
|
|
|
}
|
|
|
if (Array.isArray(value.tableData)) tableData.value = value.tableData;
|
|
|
if (Array.isArray(value.tableData1)) tableData1.value = value.tableData1;
|
|
|
if (Array.isArray(value.forecastData)) forecastData.value = value.forecastData;
|
|
|
}
|
|
|
async function persistProgress(saveAction = "SAVE", silent = false) {
|
|
|
await saveStudentTrainingAnswer(TASK_KEY, { saveAction, currentStep: activeStep.value, step1Answer: JSON.stringify(buildProgress()) });
|
|
|
if (!silent) proxy?.$modal?.msgSuccess(saveAction === "SUBMIT" ? "提交成功" : "保存成功");
|
|
|
}
|
|
|
function setCurrentStep(step) { activeStep.value = normalizeActiveStep(step); persistProgress("SAVE", true).catch(() => {}); }
|
|
|
function goPreviousStep() { setCurrentStep(activeStep.value - 1); }
|
|
|
function goNextStep() { setCurrentStep(activeStep.value + 1); }
|
|
|
async function saveCurrentProgress() { if (saving.value) return; saving.value = true; try { await persistProgress(); } finally { saving.value = false; } }
|
|
|
async function loadTaskConfig() { try { const res = await getTrainingTaskByKey(TASK_KEY); taskConfig.value = res?.data || null; activeStep.value = normalizeActiveStep(activeStep.value); } catch (error) { taskConfig.value = null; activeStep.value = 1; } }
|
|
|
async function loadSavedProgress() { try { const res = await getStudentTrainingAnswer(TASK_KEY); const raw = res?.data?.step1Answer; if (raw) applyProgress(JSON.parse(raw)); } catch (error) { /* Historical progress is optional. */ } }
|
|
|
function exportOutcome() { const blob = new Blob([JSON.stringify(buildProgress(), null, 2)], { type: "application/json;charset=utf-8" }); const url = URL.createObjectURL(blob); const link = document.createElement("a"); link.href = url; link.download = `${taskTitle.value}-实训成果.json`; link.click(); URL.revokeObjectURL(url); }
|
|
|
function closeCode() { runResultShow.value = false; }
|
|
|
function isInteger(value) {
|
|
|
return Number.isInteger(Number(value));
|
|
|
}
|
|
|
function validateProcurementPlan() {
|
|
|
const expectedRows = procurementPlanExpectedRows.value;
|
|
|
if (expectedRows.some((row) => row.demand === null)) {
|
|
|
proxy?.$modal?.msgWarning("请先完成第 1 步,填写未来 3 个月的预测销量");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
for (let index = 0; index < expectedRows.length; index += 1) {
|
|
|
const actualRow = procurementPlanRows.value[index];
|
|
|
const expectedRow = expectedRows[index];
|
|
|
const monthName = `第 ${index + 1} 个月`;
|
|
|
|
|
|
if (
|
|
|
!isInteger(actualRow?.safetyStock)
|
|
|
|| !isInteger(actualRow?.openingStock)
|
|
|
|| !isInteger(actualRow?.purchaseQuantity)
|
|
|
) {
|
|
|
proxy?.$modal?.msgWarning(`请将${monthName}的安全库存、期初库存和采购量填写为整数`);
|
|
|
return false;
|
|
|
}
|
|
|
if (Number(actualRow.safetyStock) !== expectedRow.safetyStock) {
|
|
|
proxy?.$modal?.msgWarning(`${monthName}安全库存计算不正确,应为 ${expectedRow.safetyStock} 台`);
|
|
|
return false;
|
|
|
}
|
|
|
if (Number(actualRow.openingStock) !== expectedRow.openingStock) {
|
|
|
proxy?.$modal?.msgWarning(`${monthName}期初库存不正确,应为 ${expectedRow.openingStock} 台`);
|
|
|
return false;
|
|
|
}
|
|
|
if (Number(actualRow.purchaseQuantity) !== expectedRow.purchaseQuantity) {
|
|
|
proxy?.$modal?.msgWarning(`${monthName}采购量计算不正确,应为 ${expectedRow.purchaseQuantity} 台`);
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
// 提交
|
|
|
const submitTask = async () => {
|
|
|
if (activeStep.value === 1) {
|
|
|
if (saving.value) return;
|
|
|
saving.value = true;
|
|
|
try {
|
|
|
const response = await validatePurchaseDemandForecastStepOne({
|
|
|
items: linearForecastRows.value.map(({ time, demand }) => ({ time, demand })),
|
|
|
});
|
|
|
const normalizedItems = response?.data?.items;
|
|
|
if (Array.isArray(normalizedItems)) {
|
|
|
const demandByTime = new Map(normalizedItems.map((item) => [Number(item.time), item.demand]));
|
|
|
linearForecastRows.value = createLinearForecastRows().map((row) => ({ ...row, demand: demandByTime.get(row.time) ?? null }));
|
|
|
}
|
|
|
await persistProgress("SUBMIT");
|
|
|
} finally {
|
|
|
saving.value = false;
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
if (activeStep.value === 2) {
|
|
|
if (!demandForecastChart.value.url) {
|
|
|
proxy?.$modal?.msgWarning("请上传需求预测可视化图形");
|
|
|
return;
|
|
|
}
|
|
|
if (saving.value) return;
|
|
|
saving.value = true;
|
|
|
try {
|
|
|
await persistProgress("SUBMIT");
|
|
|
} finally {
|
|
|
saving.value = false;
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
if (activeStep.value === 3) {
|
|
|
if (!validateProcurementPlan() || saving.value) return;
|
|
|
saving.value = true;
|
|
|
try {
|
|
|
await persistProgress("SUBMIT");
|
|
|
} finally {
|
|
|
saving.value = false;
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
// 获取monthlyData月度数据
|
|
|
const monthlyData = tableData.value.map((item) => item.ma12);
|
|
|
// 获取forecastData预测数据
|
|
|
const seasonalIndex = tableData1.value.map((item) => item.index);
|
|
|
// 调用接口
|
|
|
const demandForecast = forecastData.value.map((item) => item.forecast);
|
|
|
// 判断都填写完毕了没
|
|
|
if (monthlyData.includes(null) || seasonalIndex.includes(null) || demandForecast.includes(null)) {
|
|
|
proxy.$modal.msgWarning("请填写完整的数据");
|
|
|
return;
|
|
|
}
|
|
|
if (saving.value) return;
|
|
|
saving.value = true;
|
|
|
try {
|
|
|
await analysisAPI.procurementDemandForecastSubmit({
|
|
|
monthlyData: JSON.stringify(monthlyData),
|
|
|
seasonalIndex: JSON.stringify(seasonalIndex),
|
|
|
demandForecast: JSON.stringify(demandForecast),
|
|
|
userId: userStore.userInfo.userId,
|
|
|
});
|
|
|
await persistProgress("SUBMIT");
|
|
|
} finally { saving.value = false; }
|
|
|
};
|
|
|
// 回显
|
|
|
const echoData = async () => {
|
|
|
try {
|
|
|
const res = await analysisAPI.procurementDemandForecastEcho({ userId: userStore.userInfo.userId });
|
|
|
if (!res.data) return;
|
|
|
const { monthlyData, seasonalIndex, demandForecast } = res.data;
|
|
|
JSON.parse(monthlyData).forEach((item, index) => {
|
|
|
tableData.value[index].ma12 = item;
|
|
|
forecastData.value[index].forecast = JSON.parse(demandForecast)[index];
|
|
|
});
|
|
|
JSON.parse(seasonalIndex).forEach((item, index) => {
|
|
|
tableData1.value[index].index = item;
|
|
|
});
|
|
|
} catch (error) {
|
|
|
// The standard page remains usable without legacy submitted data.
|
|
|
}
|
|
|
};
|
|
|
// 重新实训
|
|
|
const resetTask = async () => {
|
|
|
if (saving.value) return;
|
|
|
saving.value = true;
|
|
|
try {
|
|
|
linearForecastRows.value = createLinearForecastRows();
|
|
|
procurementPlanRows.value = createProcurementPlanRows();
|
|
|
clearDemandForecastChart();
|
|
|
await analysisAPI.procurementDemandForecastReTrain({ userId: userStore.userInfo.userId });
|
|
|
// 清空对应数据
|
|
|
forecastData.value.forEach((item) => {
|
|
|
item.forecast = null;
|
|
|
});
|
|
|
tableData.value.forEach((item) => {
|
|
|
item.ma12 = null;
|
|
|
});
|
|
|
tableData1.value.forEach((item) => {
|
|
|
item.index = null;
|
|
|
});
|
|
|
activeStep.value = 1;
|
|
|
await persistProgress("RESET", true);
|
|
|
proxy.$modal.msgSuccess("清空填写成功");
|
|
|
} finally { saving.value = false; }
|
|
|
};
|
|
|
const go = () => {
|
|
|
window.open("https://jrdsj.sztzjy.com:8000/user/zy84cf311/lab");
|
|
|
};
|
|
|
onMounted(async () => {
|
|
|
await loadTaskConfig();
|
|
|
await echoData();
|
|
|
await loadSavedProgress();
|
|
|
});
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.channel {
|
|
|
--channel-panel: rgba(4, 31, 46, 0.78);
|
|
|
--channel-panel-strong: rgba(3, 20, 31, 0.95);
|
|
|
--channel-line: rgba(54, 174, 221, 0.42);
|
|
|
|
|
|
min-height: calc(100vh - 84px);
|
|
|
padding: 0 0 32px;
|
|
|
color: #d7ecff;
|
|
|
background:
|
|
|
radial-gradient(circle at 10% 0%, rgba(15, 129, 189, 0.16), transparent 34%),
|
|
|
linear-gradient(180deg, rgba(3, 17, 27, 0.94), rgba(5, 19, 30, 0.98));
|
|
|
|
|
|
:deep(.training-step-area) {
|
|
|
margin-top: 0 !important;
|
|
|
border-color: var(--channel-line) !important;
|
|
|
background: var(--channel-panel) !important;
|
|
|
box-shadow: inset 0 1px 0 rgba(129, 231, 255, 0.12), 0 18px 38px rgba(0, 0, 0, 0.2) !important;
|
|
|
}
|
|
|
|
|
|
:deep(.el-table) {
|
|
|
--el-table-border-color: rgba(63, 164, 207, 0.36);
|
|
|
--el-table-header-bg-color: #0b577f;
|
|
|
--el-table-header-text-color: #edfbff;
|
|
|
--el-table-row-hover-bg-color: rgba(15, 107, 149, 0.32);
|
|
|
--el-table-bg-color: rgba(2, 20, 31, 0.82);
|
|
|
--el-table-tr-bg-color: rgba(2, 20, 31, 0.82);
|
|
|
--el-table-text-color: #d7ecff;
|
|
|
overflow: hidden;
|
|
|
margin-top: 12px;
|
|
|
border: 1px solid var(--channel-line);
|
|
|
border-radius: 12px;
|
|
|
background: var(--channel-panel-strong);
|
|
|
}
|
|
|
|
|
|
:deep(.el-table::before),
|
|
|
:deep(.el-table__inner-wrapper::before) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
:deep(.el-table th.el-table__cell) {
|
|
|
color: #edfbff !important;
|
|
|
background: linear-gradient(180deg, #0f76a9, #0a567e) !important;
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
|
|
|
:deep(.el-table td.el-table__cell),
|
|
|
:deep(.el-table tr) {
|
|
|
color: #d7ecff !important;
|
|
|
background: rgba(2, 20, 31, 0.82) !important;
|
|
|
}
|
|
|
|
|
|
:deep(.el-table .cell) {
|
|
|
line-height: 1.65;
|
|
|
}
|
|
|
|
|
|
:deep(.el-input__wrapper) {
|
|
|
min-height: 36px;
|
|
|
border: 1px solid rgba(76, 169, 211, 0.48);
|
|
|
border-radius: 7px;
|
|
|
box-shadow: none !important;
|
|
|
background: var(--channel-panel-strong);
|
|
|
}
|
|
|
|
|
|
:deep(.el-input__inner) {
|
|
|
color: #ebf8ff;
|
|
|
}
|
|
|
|
|
|
:deep(.el-input__inner::placeholder) {
|
|
|
color: #7194a8;
|
|
|
}
|
|
|
|
|
|
:deep(.el-input__wrapper.is-focus) {
|
|
|
border-color: #4edbff;
|
|
|
box-shadow: 0 0 0 3px rgba(50, 205, 255, 0.12) !important;
|
|
|
}
|
|
|
|
|
|
:deep(.el-button) {
|
|
|
border-color: rgba(55, 174, 221, 0.72) !important;
|
|
|
color: #e9faff !important;
|
|
|
background: linear-gradient(180deg, #168ab9, #0c628d) !important;
|
|
|
}
|
|
|
|
|
|
:deep(.el-button:hover) {
|
|
|
border-color: #65e5ff !important;
|
|
|
color: #ffffff !important;
|
|
|
background: linear-gradient(180deg, #1b9ece, #0f709f) !important;
|
|
|
}
|
|
|
|
|
|
.online {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
align-items: center;
|
|
|
gap: 10px;
|
|
|
padding: 10px 12px;
|
|
|
border: 1px solid rgba(44, 141, 182, 0.3);
|
|
|
border-radius: 10px;
|
|
|
background: rgba(1, 17, 27, 0.3);
|
|
|
}
|
|
|
|
|
|
.online span {
|
|
|
color: #d7ecff;
|
|
|
}
|
|
|
|
|
|
.taskfooter {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
justify-content: center;
|
|
|
gap: 28px;
|
|
|
margin-top: 32px;
|
|
|
padding-top: 28px;
|
|
|
border-top: 1px solid rgba(55, 174, 221, 0.24);
|
|
|
}
|
|
|
|
|
|
.taskfooter :deep(.el-button) {
|
|
|
min-width: 172px;
|
|
|
height: 56px;
|
|
|
border-radius: 8px;
|
|
|
font-size: 18px;
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.channel {
|
|
|
display: grid; grid-template-columns: minmax(720px, 1fr) 340px; gap: 24px; min-height: calc(100vh - 76px); padding: 24px 24px 32px; color: #eef5ff; background: #06111d;
|
|
|
.training-core { min-width: 0; padding: 28px; border: 1px solid rgba(0,180,255,.25); border-radius: 36px; background: rgba(8,18,28,.6); box-shadow: inset 0 1px 0 rgba(169,229,255,.08), 0 22px 48px rgba(0,0,0,.22); }
|
|
|
.task-header { margin-bottom: 24px; }.task-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 14px; border: 1px solid rgba(99,217,255,.55); border-radius: 999px; color: #dff5ff; background: rgba(17,126,178,.36); font-size: 12px; font-weight: 700; }.task-title { margin: 12px 0 0; color: #fff; font-size: 30px; font-weight: 900; line-height: 1.3; }
|
|
|
.task-card,.step-card { border: 1px solid rgba(82,174,226,.42); border-radius: 26px; background: rgba(0,25,42,.64); }.task-card { margin-top: 28px; padding: 18px 22px 22px; }.workbench-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(0,180,255,.2); }.section-eyebrow { margin: 0; color: #71dfff; font-size: 12px; font-weight: 800; line-height: 1.4; }.workbench-head h3 { margin: 4px 0 8px; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.3; }.workbench-description { margin: 0; color: #d7ecff; font-size: 15px; line-height: 1.8; }.workbench-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; gap: 10px; flex-shrink: 0; }
|
|
|
.outline-action,.btn-nav { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid rgba(99,217,255,.55); border-radius: 999px; color: #e9fbff; background: rgba(17,126,178,.36); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }.step-indicator { display:flex; align-items:center; gap:12px; width:calc(100% + 24px); min-height:0; margin:0 -12px 32px; padding:18px 22px; overflow-x:auto; border:1px solid rgba(0,180,255,.3); border-radius:18px; background:linear-gradient(110deg,rgba(4,39,58,.9),rgba(2,20,33,.94)); box-shadow:inset 0 1px 0 rgba(169,229,255,.08); }.step-tab { display:flex; flex:1 0 145px; align-items:center; min-height:66px; padding:8px 10px; border:1px solid rgba(68,141,177,.35); border-radius:8px; color:#9ab3d0; background:rgba(3,27,43,.52); font:inherit; font-size:14px; font-weight:800; text-align:left; cursor:pointer; transition:transform .2s,color .2s,background .2s,border-color .2s,box-shadow .2s; }.step-tab:hover,.step-tab:focus-visible { transform:translateY(-2px); border-color:rgba(89,223,255,.82); color:#fff; background:rgba(8,92,131,.52); box-shadow:0 8px 18px rgba(0,0,0,.2); outline:none; }.step-tab.active { border-color:rgba(89,226,255,.85); color:#fff; background:linear-gradient(95deg,#0a6b9e,#0a5c86); box-shadow:0 8px 20px rgba(0,120,170,.22); }.step-marker { display:inline-flex; flex:0 0 38px; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid rgba(113,223,255,.55); border-radius:50%; color:#bdefff; background:rgba(3,27,43,.72); font-size:13px; font-weight:900; }.step-copy { display:grid; min-width:0; gap:4px; margin-left:10px; }.step-copy strong { display:-webkit-box; overflow:hidden; color:inherit; font-size:14px; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }.step-copy span { color:#7ec7e7; font-size:12px; font-weight:700; }.step-tab.active .step-marker { border-color:#a8f3ff; color:#fff; background:linear-gradient(135deg,#0bb2ed,#0a6b9e); box-shadow:0 0 0 4px rgba(77,215,255,.13),0 0 18px rgba(77,215,255,.4); }.step-tab.complete .step-marker { border-color:#59e0ca; color:#dffbff; background:rgba(13,132,119,.5); }.step-connector { flex:0 0 28px; height:2px; background:rgba(77,167,220,.54); color:#78cfe9; font-size:16px; line-height:0; text-align:right; }.step-connector.complete { background:#55ddcc; color:#75f0df; }.step-card { margin-top: 32px; padding: 18px 22px 22px; }.step-indicator + .step-card,.workbench-head + .step-card { margin-top: 0; }.step-title-row { margin-bottom: 14px; }.step-title-row h3 { margin: 4px 0 0; color: #fff; font-size: 22px; font-weight: 900; line-height: 1.3; }.caseBacktitle { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; color: #dff5ff; font-size: 16px; font-weight: 800; }.caseBacktitle img { display: none; }.step-card > p { color: #d7ecff; font-size: 15px; line-height: 1.8; }
|
|
|
:deep(.el-table) { width: 100% !important; max-width: 100%; border-radius: 18px; }:deep(.el-table th.el-table__cell) { background: rgba(8,55,82,.98) !important; }:deep(.el-input__wrapper) { min-height: 42px; border-radius: 14px; background: #0f1a24; }.online { border-radius: 14px; background: rgba(1,14,26,.72); }.step-navigation { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }.btn-nav.btn-save,.btn-nav.btn-primary { border-color: rgba(92,224,255,.7); color: #fff; background: linear-gradient(95deg,#0b84bd,#096491); }.btn-nav:disabled { cursor: not-allowed; opacity: .45; }.taskfooter { gap: 52px; margin-top: 36px; padding-top: 0; border-top: 0; }.taskfooter :deep(.el-button) { min-width: 172px; height: 64px; border: 1px solid #2c83aa !important; border-radius: 6px; color: #dff7ff !important; background: rgba(13,64,88,.62) !important; font-size: 24px; font-weight: 900; }
|
|
|
}
|
|
|
@media (max-width: 1100px) { .channel { grid-template-columns: 1fr; } }
|
|
|
@media (max-width: 900px) { .channel { padding: 14px; .training-core { padding: 18px; border-radius: 24px; }.workbench-head,.workbench-actions,.step-navigation { flex-direction: column; align-items: stretch; }.workbench-actions,.outline-action,.btn-nav,.taskfooter :deep(.el-button) { width: 100%; }.step-indicator { align-items:stretch; flex-direction:column; width:100%; margin-right:0; margin-left:0; overflow:visible; border-radius:20px; }.step-tab { flex:0 0 auto; width:100%; }.step-connector { flex:0 0 22px; width:2px; height:22px; margin-left:29px; text-align:center; writing-mode:vertical-rl; }.taskfooter { gap: 14px; } } }
|
|
|
.step-tab.active { border-color:rgba(89,226,255,.85); color:#fff; background:linear-gradient(115deg,rgba(4,109,155,.78),rgba(5,62,102,.64)); box-shadow:0 0 18px rgba(24,183,235,.22),inset 0 1px 0 rgba(176,246,255,.2); }.step-tab.active .step-marker { border-color:#72e8ff; color:#fff; background:linear-gradient(135deg,#08b7e8,#1375d0); box-shadow:0 0 0 5px rgba(25,179,237,.14),0 0 18px rgba(46,208,255,.58); }.step-tab.complete { color:#dffbff; }.step-tab.complete .step-marker { border-color:rgba(84,230,221,.85); color:#062b37; background:#6ef0e1; box-shadow:0 0 12px rgba(79,231,218,.35); }.step-connector.complete { background:linear-gradient(90deg,#6ef0e1,#1cb8e9); color:#63e6f1; box-shadow:0 0 9px rgba(53,218,235,.46); }
|
|
|
/* Standard page step navigation */
|
|
|
.step-indicator { position:relative; display:flex; align-items:center; gap:0; width:calc(100% + 24px); margin:0 -12px 32px; padding:18px 22px; overflow-x:auto; border:1px solid rgba(0,180,255,.3); border-radius:18px; background:linear-gradient(90deg,rgba(6,42,61,.58),rgba(1,18,31,.42)),rgba(0,0,0,.3); box-shadow:inset 0 1px 0 rgba(145,233,255,.08); scrollbar-width:thin; }
|
|
|
.step-tab { display:flex; flex:1 0 145px; align-items:center; min-width:0; min-height:66px; padding:8px 10px; border:1px solid rgba(68,141,177,.35); border-radius:8px; color:#9ab3d0; background:rgba(3,27,43,.52); box-shadow:inset 0 1px 0 rgba(135,221,255,.04); font:inherit; font-size:14px; font-weight:800; text-align:left; cursor:pointer; transition:transform .2s ease,color .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease; }
|
|
|
.step-tab:hover { transform:translateY(-2px); border-color:rgba(89,223,255,.82); color:#fff; background:rgba(8,92,131,.52); box-shadow:0 7px 18px rgba(0,0,0,.24),inset 0 1px 0 rgba(152,239,255,.16); }
|
|
|
.step-tab:hover .step-action { color:#9bf4ff; }
|
|
|
.step-tab:focus-visible { outline:2px solid rgba(92,224,255,.7); outline-offset:2px; }
|
|
|
.step-tab.active { border-color:rgba(89,226,255,0.85); color:#fff; background:linear-gradient(115deg,rgba(4,109,155,0.78),rgba(5,62,102,0.64)); box-shadow:0 0 18px rgba(24,183,235,.22),inset 0 1px 0 rgba(176,246,255,.2); }
|
|
|
.step-marker { display:inline-flex; flex:0 0 38px; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid rgba(101,176,208,.6); border-radius:50%; color:#a6c4d9; background:rgba(3,25,40,.8); box-shadow:inset 0 0 12px rgba(38,174,233,.08); font-size:12px; font-weight:900; letter-spacing:.04em; }
|
|
|
.step-copy { display:grid; min-width:0; gap:4px; margin-left:10px; }
|
|
|
.step-name { display:-webkit-box; overflow:hidden; color:inherit; font-size:14px; font-weight:800; line-height:1.25; text-overflow:ellipsis; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
|
|
|
.step-action { color:#66b6d4; font-size:10px; font-weight:800; letter-spacing:.06em; line-height:1; }
|
|
|
.step-tab.active .step-marker { border-color:#72e8ff; color:#fff; background:linear-gradient(135deg,#08b7e8,#1375d0); box-shadow:0 0 0 5px rgba(25,179,237,.14),0 0 18px rgba(46,208,255,.58); }
|
|
|
.step-tab.complete .step-marker { border-color:rgba(84,230,221,.85); color:#062b37; background:#6ef0e1; box-shadow:0 0 12px rgba(79,231,218,.35); }
|
|
|
.step-connector { position:relative; flex:0 1 40px; min-width:18px; height:2px; margin:0 8px; overflow:visible; background:rgba(98,169,201,.34); }
|
|
|
.step-connector::after { position:absolute; top:50%; right:-1px; width:6px; height:6px; border-top:1px solid #73b1ce; border-right:1px solid #73b1ce; content:""; transform:translateY(-50%) rotate(45deg); }
|
|
|
.step-tab.complete + .step-connector { background:linear-gradient(90deg,#6ef0e1,#1cb8e9); box-shadow:0 0 9px rgba(53,218,235,.46); }
|
|
|
.step-tab.complete + .step-connector::after { border-color:#63e6f1; }
|
|
|
|
|
|
@media (max-width:900px) { .step-indicator { align-items:stretch; flex-direction:column; width:100%; margin-right:0; margin-left:0; overflow:visible; border-radius:20px; } .step-tab { flex:0 0 auto; width:100%; } .step-connector { flex:0 0 20px; min-width:0; width:2px; height:20px; margin-left:29px; } }
|
|
|
.workbench-head--actions-only {
|
|
|
justify-content: flex-end;
|
|
|
margin-bottom: 18px;
|
|
|
padding-bottom: 0;
|
|
|
border-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.workbench-head h2 {
|
|
|
margin: 4px 0 0;
|
|
|
color: #fff;
|
|
|
font-size: 24px;
|
|
|
font-weight: 800;
|
|
|
line-height: 1.3;
|
|
|
}
|
|
|
|
|
|
.purchase-forecast-toolbar {
|
|
|
align-self: center;
|
|
|
justify-content: flex-end;
|
|
|
max-width: 100%;
|
|
|
}
|
|
|
|
|
|
/* Keep task controls consistent with the product-pricing toolbar. */
|
|
|
.purchase-forecast-toolbar :deep(.el-button) {
|
|
|
border-color: rgba(99, 217, 255, 0.55) !important;
|
|
|
color: #e9fbff !important;
|
|
|
background: rgba(17, 126, 178, 0.36) !important;
|
|
|
}
|
|
|
|
|
|
.purchase-forecast-toolbar :deep(.task-toolbar-button--submit) {
|
|
|
border-color: rgba(66, 224, 187, 0.7) !important;
|
|
|
background: rgba(13, 137, 111, 0.34) !important;
|
|
|
}
|
|
|
|
|
|
.purchase-forecast-toolbar :deep(.el-button:hover) {
|
|
|
border-color: rgba(116, 235, 255, 0.85) !important;
|
|
|
color: #e9fbff !important;
|
|
|
background: rgba(18, 146, 204, 0.5) !important;
|
|
|
}
|
|
|
|
|
|
.purchase-forecast-toolbar :deep(.task-toolbar-button--submit:hover) {
|
|
|
border-color: rgba(100, 245, 208, 0.9) !important;
|
|
|
background: rgba(14, 164, 132, 0.45) !important;
|
|
|
}
|
|
|
|
|
|
@media (max-width:900px) {
|
|
|
.purchase-forecast-toolbar {
|
|
|
width: 100%;
|
|
|
justify-content: flex-start;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.linear-forecast-intro {
|
|
|
margin: 0 0 22px;
|
|
|
color: #d7ecff;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.85;
|
|
|
}
|
|
|
|
|
|
.linear-forecast-panel {
|
|
|
overflow: hidden;
|
|
|
border-radius: 16px;
|
|
|
}
|
|
|
|
|
|
.linear-forecast-table {
|
|
|
min-width: 640px;
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.linear-forecast-input {
|
|
|
width: min(100%, 320px);
|
|
|
}
|
|
|
|
|
|
.linear-forecast-guide {
|
|
|
display: flex;
|
|
|
align-items: flex-end;
|
|
|
justify-content: space-between;
|
|
|
gap: 24px;
|
|
|
margin-top: 28px;
|
|
|
padding: 18px 20px;
|
|
|
border: 1px solid rgba(44, 141, 182, 0.3);
|
|
|
border-radius: 14px;
|
|
|
background: rgba(1, 17, 27, 0.3);
|
|
|
}
|
|
|
|
|
|
.linear-forecast-guide ol {
|
|
|
margin: 8px 0 0;
|
|
|
padding-left: 22px;
|
|
|
color: #b9d8e8;
|
|
|
line-height: 1.8;
|
|
|
}
|
|
|
|
|
|
.procurement-plan-intro {
|
|
|
margin: 0 0 18px;
|
|
|
color: #d7ecff;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.85;
|
|
|
}
|
|
|
|
|
|
.procurement-plan-rules {
|
|
|
margin-bottom: 20px;
|
|
|
padding: 16px 20px;
|
|
|
border: 1px solid rgba(44, 141, 182, 0.3);
|
|
|
border-radius: 14px;
|
|
|
background: rgba(1, 17, 27, 0.3);
|
|
|
}
|
|
|
|
|
|
.procurement-plan-rules h4 {
|
|
|
margin: 0;
|
|
|
color: #e9faff;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.procurement-plan-rules ol {
|
|
|
margin: 10px 0 8px;
|
|
|
padding-left: 22px;
|
|
|
color: #b9d8e8;
|
|
|
line-height: 1.8;
|
|
|
}
|
|
|
|
|
|
.procurement-plan-formula {
|
|
|
margin: 0;
|
|
|
color: #7ee6ff !important;
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
|
|
|
.procurement-plan-table-wrap {
|
|
|
overflow-x: auto;
|
|
|
border-radius: 16px;
|
|
|
}
|
|
|
|
|
|
.procurement-plan-table {
|
|
|
min-width: 960px;
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.procurement-plan-readonly {
|
|
|
color: #82e9ff;
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
|
|
|
.procurement-plan-input {
|
|
|
width: min(100%, 160px);
|
|
|
}
|
|
|
|
|
|
.procurement-plan-hint {
|
|
|
margin: 14px 0 0;
|
|
|
color: #8eb8ca !important;
|
|
|
font-size: 14px !important;
|
|
|
line-height: 1.7;
|
|
|
}
|
|
|
|
|
|
.guide-title {
|
|
|
margin: 0;
|
|
|
color: #e9faff !important;
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
|
|
|
.practice-guide-button {
|
|
|
flex: 0 0 auto;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-intro {
|
|
|
margin: 0 0 22px;
|
|
|
color: #d7ecff;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.85;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-upload-card {
|
|
|
display: grid;
|
|
|
min-height: 330px;
|
|
|
padding: 28px;
|
|
|
border: 1px solid rgba(53, 194, 255, 0.25);
|
|
|
border-radius: 16px;
|
|
|
background: radial-gradient(circle at 50% 40%, rgba(18, 163, 220, 0.13), rgba(5, 25, 43, 0.62) 68%);
|
|
|
place-items: center;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-dropzone {
|
|
|
position: relative;
|
|
|
display: grid;
|
|
|
width: min(100%, 620px);
|
|
|
min-height: 210px;
|
|
|
padding: 28px;
|
|
|
overflow: hidden;
|
|
|
border: 1px dashed rgba(79, 218, 255, 0.72);
|
|
|
border-radius: 14px;
|
|
|
color: #e4f6ff;
|
|
|
background: rgba(4, 38, 62, 0.58);
|
|
|
cursor: pointer;
|
|
|
place-items: center;
|
|
|
gap: 10px;
|
|
|
text-align: center;
|
|
|
transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-dropzone:hover {
|
|
|
border-color: #84ebff;
|
|
|
background: rgba(9, 70, 103, 0.65);
|
|
|
box-shadow: 0 0 24px rgba(40, 204, 255, 0.16);
|
|
|
}
|
|
|
|
|
|
.forecast-visual-dropzone.is-uploading {
|
|
|
cursor: wait;
|
|
|
opacity: 0.72;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-dropzone input {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0 0 0 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-dropzone strong {
|
|
|
font-size: 22px;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-dropzone span:last-child {
|
|
|
color: #98c8dc;
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-upload-icon {
|
|
|
color: #7ee6ff;
|
|
|
font-size: 34px;
|
|
|
font-weight: 900;
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-preview {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
width: min(100%, 760px);
|
|
|
min-height: 210px;
|
|
|
gap: 24px;
|
|
|
padding: 18px;
|
|
|
border: 1px solid rgba(83, 220, 255, 0.42);
|
|
|
border-radius: 14px;
|
|
|
background: rgba(4, 38, 62, 0.58);
|
|
|
}
|
|
|
|
|
|
.forecast-visual-preview :deep(.el-image) {
|
|
|
flex: 0 0 330px;
|
|
|
width: 330px;
|
|
|
height: 190px;
|
|
|
border: 1px solid rgba(106, 229, 255, 0.48);
|
|
|
border-radius: 10px;
|
|
|
background: #081722;
|
|
|
cursor: zoom-in;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-file-meta {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
min-width: 0;
|
|
|
gap: 10px;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-file-meta strong {
|
|
|
color: #e9faff;
|
|
|
line-height: 1.6;
|
|
|
word-break: break-all;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-file-meta span {
|
|
|
color: #98c8dc;
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-replace {
|
|
|
align-self: flex-start;
|
|
|
padding: 7px 13px;
|
|
|
border: 1px solid rgba(96, 221, 255, 0.56);
|
|
|
border-radius: 7px;
|
|
|
color: #dcf8ff;
|
|
|
background: rgba(10, 107, 151, 0.38);
|
|
|
cursor: pointer;
|
|
|
font: inherit;
|
|
|
font-size: 13px;
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-replace:hover {
|
|
|
border-color: #8deeff;
|
|
|
background: rgba(13, 133, 183, 0.52);
|
|
|
}
|
|
|
|
|
|
.forecast-visual-guide {
|
|
|
display: flex;
|
|
|
align-items: flex-end;
|
|
|
justify-content: space-between;
|
|
|
gap: 24px;
|
|
|
margin-top: 28px;
|
|
|
padding: 18px 20px;
|
|
|
border: 1px solid rgba(44, 141, 182, 0.3);
|
|
|
border-radius: 14px;
|
|
|
background: rgba(1, 17, 27, 0.3);
|
|
|
}
|
|
|
|
|
|
.forecast-visual-guide ol {
|
|
|
margin: 8px 0 0;
|
|
|
padding-left: 22px;
|
|
|
color: #b9d8e8;
|
|
|
line-height: 1.8;
|
|
|
}
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
.linear-forecast-guide {
|
|
|
align-items: stretch;
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
.procurement-plan-rules {
|
|
|
padding: 14px 16px;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-preview,
|
|
|
.forecast-visual-guide {
|
|
|
align-items: stretch;
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
.forecast-visual-preview :deep(.el-image) {
|
|
|
flex-basis: auto;
|
|
|
width: 100%;
|
|
|
height: 190px;
|
|
|
}
|
|
|
|
|
|
.practice-guide-button {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
</style>
|