feat(web): 同步 web 端目录更新至 Gitea

包含加氢站站点信息、运维交车/故障、台账与数据分析等页面新增与改动。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
王冕
2026-06-04 19:57:30 +08:00
parent d29e2a821b
commit d432d51eed
35 changed files with 26963 additions and 1463 deletions

View File

@@ -108,53 +108,59 @@ const Component = function () {
*/
function buildMockYear2026() {
var rows = [];
var template = [
{
month: 1,
selfPerf: 285000.5, selfCost: 240000, selfProfit: 45000.5,
leasePerf: 188000, leaseCost: 120000, leaseProfit: 68000,
salesPerf: 420000, salesCost: 310000, salesProfit: 110000,
inspectionPerf: 131241.59, inspectionCost: 88000, inspectionProfit: 43241.59,
agencyPerf: 4004.73, agencyCost: 1200, agencyProfit: 2804.73,
etcPerf: 79750.92, etcCost: 45000, etcProfit: 34750.92,
otherPerf: 12000, otherCost: 5000, otherProfit: 7000
},
{
month: 2,
selfPerf: 260000, selfCost: 230000, selfProfit: 30000,
leasePerf: 195000, leaseCost: 125000, leaseProfit: 70000,
salesPerf: null, salesCost: null, salesProfit: null,
inspectionPerf: 98000, inspectionCost: 60000, inspectionProfit: 38000,
agencyPerf: 3200, agencyCost: 1000, agencyProfit: 2200,
etcPerf: 72000, etcCost: 40000, etcProfit: 32000,
otherPerf: null, otherCost: null, otherProfit: null
},
{
month: 3,
selfPerf: 270000, selfCost: 235000, selfProfit: 35000,
leasePerf: 200000, leaseCost: 128000, leaseProfit: 72000,
salesPerf: 380000, salesCost: 290000, salesProfit: 90000,
inspectionPerf: 105000, inspectionCost: 70000, inspectionProfit: 35000,
agencyPerf: 4100, agencyCost: 1100, agencyProfit: 3000,
etcPerf: 81000, etcCost: 43000, etcProfit: 38000,
otherPerf: 8500, otherCost: 3000, otherProfit: 5500
}
];
var i;
for (i = 1; i <= 12; i++) {
var src = template[i - 1];
if (!src) {
src = {
month: i,
selfPerf: null, selfCost: null, selfProfit: null,
leasePerf: null, leaseCost: null, leaseProfit: null,
salesPerf: null, salesCost: null, salesProfit: null,
inspectionPerf: null, inspectionCost: null, inspectionProfit: null,
agencyPerf: null, agencyCost: null, agencyProfit: null,
etcPerf: null, etcCost: null, etcProfit: null,
otherPerf: null, otherCost: null, otherProfit: null
};
}
var selfPerf = 250000 + Math.random() * 100000;
var selfCost = selfPerf * (0.8 + Math.random() * 0.1);
var leasePerf = 180000 + Math.random() * 50000;
var leaseCost = leasePerf * (0.6 + Math.random() * 0.1);
var salesPerf = 300000 + Math.random() * 200000;
var salesCost = salesPerf * (0.7 + Math.random() * 0.15);
var inspectionPerf = 80000 + Math.random() * 60000;
var inspectionCost = inspectionPerf * (0.6 + Math.random() * 0.2);
var agencyPerf = 3000 + Math.random() * 2000;
var agencyCost = agencyPerf * (0.3 + Math.random() * 0.1);
var etcPerf = 70000 + Math.random() * 20000;
var etcCost = etcPerf * (0.5 + Math.random() * 0.1);
var otherPerf = 8000 + Math.random() * 5000;
var otherCost = otherPerf * (0.4 + Math.random() * 0.2);
var src = {
selfPerf: Math.round(selfPerf * 100) / 100,
selfCost: Math.round(selfCost * 100) / 100,
selfProfit: Math.round((selfPerf - selfCost) * 100) / 100,
leasePerf: Math.round(leasePerf * 100) / 100,
leaseCost: Math.round(leaseCost * 100) / 100,
leaseProfit: Math.round((leasePerf - leaseCost) * 100) / 100,
salesPerf: Math.round(salesPerf * 100) / 100,
salesCost: Math.round(salesCost * 100) / 100,
salesProfit: Math.round((salesPerf - salesCost) * 100) / 100,
inspectionPerf: Math.round(inspectionPerf * 100) / 100,
inspectionCost: Math.round(inspectionCost * 100) / 100,
inspectionProfit: Math.round((inspectionPerf - inspectionCost) * 100) / 100,
agencyPerf: Math.round(agencyPerf * 100) / 100,
agencyCost: Math.round(agencyCost * 100) / 100,
agencyProfit: Math.round((agencyPerf - agencyCost) * 100) / 100,
etcPerf: Math.round(etcPerf * 100) / 100,
etcCost: Math.round(etcCost * 100) / 100,
etcProfit: Math.round((etcPerf - etcCost) * 100) / 100,
otherPerf: Math.round(otherPerf * 100) / 100,
otherCost: Math.round(otherCost * 100) / 100,
otherProfit: Math.round((otherPerf - otherCost) * 100) / 100
};
rows.push({
key: 'm' + i,
month: i,