SNAPSHOT W7 已部署稳定态 — 凯迪ERP+OA一体化平台 (MET 73.3%)

恢复点(restore point)。别人改崩后可 git reset --hard 回到此提交。

== 此快照内容 ==
- 后端 oa-backend: 734 控制器 / 711 实体 (Spring Boot 3.2.5 + SQLite, 端口8091)
- 前端 modern-ui/app: Vue3+Vite, 约700页 (构建产物已在 oa-backend/src/main/resources/static)
- 数据库 oa-backend/data/oa.db: 含全部演示数据 (强制入库, 6.6MB)
- 交接文档 go.md + go-code-reference/endpoints/entities/database.md
- 多代理建设脚本 .claude/wf-*.js

== 状态 ==
- 对 凯迪科技ERP_20260507.xlsx 合规 MET ~73.3% (PARTIAL 75: 34可建+6种子/bug+35外部硬天花板)
- 安全: 5轮红队+5轮复检, default-deny分级鉴权, 连续零可利用
- W3~W7 累计补完436缺口; W8末轮(40缺口)为半成品(源码树可编译但未集成)
- 运行: cd oa-backend; java -jar build/libs/oa-backend-0.1.0.jar --server.port=8091; admin/123456

== 排除(gitignore, 可再生) ==
node_modules / oa-backend/build / .jdks / *.log / Backup-ERP-* / 弃用的OFBiz核心(只保留modern-ui)
完整文件夹备份见同目录 Backup-ERP-20260615-191517/ (含上述全部, 仅缺 node_modules)

时间戳: 20260615-191517

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Qiufeng
2026-06-15 19:19:15 +08:00
co-authored by Claude Opus 4.8
commit 5e51dc3f56
10584 changed files with 2501339 additions and 0 deletions
+459
View File
@@ -0,0 +1,459 @@
{
"sensitiveRead": [
"/api/oa/audit-caats",
"/api/oa/cost-hr-labor-rates",
"/api/oa/cost-integration",
"/api/oa/csl-contracts",
"/api/oa/decl-material-collab",
"/api/oa/design-external-portal",
"/api/oa/economic-audits",
"/api/oa/expense-claims — 已在 AuthInterceptor FINANCE_PREFIXES + SENSITIVE_READ_PREFIXES 中,新 PATCH /{id}/invoice 自动继承保护,无需额外配置",
"/api/oa/fert-wip-stocks",
"/api/oa/ip-archive-search",
"/api/oa/ip-free-tags",
"/api/oa/ip-infringement-cases",
"/api/oa/it-dlp-policies",
"/api/oa/it-dlp-policies — 含字段级脱敏规则/拦截策略明细(affectedFields/ruleDetail),属安全机密读,需加入 AuthInterceptor.SENSITIVE_READ_PREFIXES",
"/api/oa/it-remote-assist",
"/api/oa/it-remote-assist — 含授权码(authCode)和申请人联系方式(contact),属安全敏感读,需加入 AuthInterceptor.SENSITIVE_READ_PREFIXES",
"/api/oa/legal-auth-limits",
"/api/oa/litigation-firms",
"/api/oa/patent-fees",
"/api/oa/pmt-contract-fee-items 建议补入 AuthInterceptor FINANCE_PREFIXES(与 pmt-financing-contracts 同级)",
"/api/oa/rd-annual-budgets",
"/api/oa/stl-debt-ledger",
"/api/oa/wm-subsidy-finance"
],
"nav": {
"rd": [
{
"key": "declmaterialcollab",
"label": "申报材料协同编制",
"kind": "list",
"path": "/rd/declmaterialcollab"
},
{
"key": "policyscore",
"label": "政策精准打分引擎",
"kind": "report",
"path": "/rd/policyscore"
},
{
"key": "rdannualbudget",
"label": "年度研发费用预算",
"kind": "list",
"path": "/rd/rdannualbudget"
},
{
"key": "ipfreetag",
"label": "归档自由标签管理",
"kind": "list",
"path": "/rd/ipfreetag"
},
{
"key": "iparchivesearch",
"label": "归档跨类型全文检索",
"kind": "list",
"path": "/rd/iparchivesearch"
},
{
"key": "patentfee",
"label": "专利费用明细台账",
"kind": "list",
"path": "/rd/patentfee"
}
],
"lab": [
{
"key": "samples",
"label": "检测样品",
"kind": "list",
"path": "/lab/samples"
},
{
"key": "sample-flow",
"label": "样品全流程追溯",
"kind": "list",
"path": "/lab/sample-flow"
},
{
"key": "instruments",
"label": "仪器设备",
"kind": "list",
"path": "/lab/instruments"
},
{
"key": "reservations",
"label": "仪器预约与利用率",
"kind": "list",
"path": "/lab/reservations"
},
{
"key": "maints",
"label": "校准维保维修",
"kind": "list",
"path": "/lab/maints"
},
{
"key": "tasks",
"label": "实验检测任务",
"kind": "list",
"path": "/lab/tasks"
},
{
"key": "deviations",
"label": "偏差 OOS/OOT",
"kind": "list",
"path": "/lab/deviations"
},
{
"key": "methods",
"label": "检测方法库",
"kind": "list",
"path": "/lab/methods"
},
{
"key": "reagents",
"label": "试剂耗材",
"kind": "list",
"path": "/lab/reagents"
},
{
"key": "haz",
"label": "危险品双人双锁",
"kind": "list",
"path": "/lab/haz"
},
{
"key": "stocktake",
"label": "库存盘点",
"kind": "list",
"path": "/lab/stocktake"
},
{
"key": "reports",
"label": "检测报告",
"kind": "list",
"path": "/lab/reports"
},
{
"key": "report-approval",
"label": "报告三级审批",
"kind": "list",
"path": "/lab/report-approval"
},
{
"key": "archives",
"label": "原始记录归档与导出",
"kind": "list",
"path": "/lab/archives"
},
{
"key": "eln",
"label": "电子实验记录本",
"kind": "list",
"path": "/lab/eln"
},
{
"key": "audits",
"label": "内部审核",
"kind": "list",
"path": "/lab/audits"
},
{
"key": "costs",
"label": "成本与预算",
"kind": "list",
"path": "/lab/costs"
},
{
"key": "ehs",
"label": "安全与环境 EHS",
"kind": "list",
"path": "/lab/ehs"
},
{
"key": "cross-dept",
"label": "跨部门接口联动",
"kind": "list",
"path": "/lab/cross-dept"
}
],
"design": [
{
"key": "cslcontract",
"label": "CSL合同台账·客户项目合同结算链",
"kind": "list",
"path": "/design/cslcontract"
},
{
"key": "external-portal",
"label": "外部协作设计院安全门户",
"kind": "portal",
"path": "/design/external-portal"
},
{
"key": "labip-closure",
"label": "知识产权/实验室接口数据闭环",
"kind": "list",
"path": "/design/labip-closure"
}
],
"supervision": [
{
"key": "patrolplan",
"label": "旁站计划与巡视路线(方案→自动生成+点位打卡)",
"kind": "list",
"path": "/supervision/patrolplan"
}
],
"mfg": [
{
"key": "fertwipstock",
"label": "半成品在制品库存",
"kind": "list",
"path": "/mfg/fertwipstock"
}
],
"ehs": [
{
"key": "env-tax",
"label": "环保税费台账",
"kind": "list",
"path": "/ehs/env-tax"
},
{
"key": "contractor-edu",
"label": "外来人员安全教育",
"kind": "list",
"path": "/ehs/contractor-edu"
}
],
"archive": [
{
"key": "batchimport",
"label": "批量导入文件夹结构",
"kind": "list",
"path": "/archive/batchimport"
},
{
"key": "drillrecord",
"label": "灾难恢复演练与备份日志",
"kind": "report",
"path": "/archive/drillrecord"
}
],
"budget": [
{
"key": "hrlaborrate",
"label": "HR部门工时费率管理",
"kind": "list",
"path": "/budget/hrlaborrate"
},
{
"key": "salesorderwbs",
"label": "销售合同→WBS材料费联动",
"kind": "report",
"path": "/budget/salesorderwbs"
},
{
"key": "invprojectlink",
"label": "项目-库存正式关联与实时余额",
"kind": "list",
"path": "/budget/invprojectlink"
}
],
"ops": [
{
"key": "govreporttpl",
"label": "差异化报表模板管理",
"kind": "report",
"path": "/ops/govreporttpl"
}
],
"crm": [
{
"key": "mobile-expense-invoice",
"label": "移动报销发票直通车",
"kind": "portal",
"path": "/crm/mobile-expense-invoice"
},
{
"key": "expensecontrol",
"label": "费用与预算控制",
"kind": "report",
"path": "/crm/expensecontrol"
},
{
"key": "mobile-expense-invoice",
"label": "移动报销发票直通车",
"kind": "portal",
"path": "/crm/mobile-expense-invoice"
}
],
"payment": [
{
"key": "debt-ledger",
"label": "全口径债务台账",
"kind": "report",
"path": "/payment/debt-ledger"
},
{
"key": "contract-fee-items",
"label": "合同费用明细与综合成本",
"kind": "list",
"path": "/payment/contract-fee-items"
},
{
"key": "repayment",
"label": "还本付息",
"kind": "list",
"path": "/payment/repayment"
},
{
"key": "debt-ledger",
"label": "全口径债务台账",
"kind": "report",
"path": "/payment/debt-ledger"
}
],
"finance": [
{
"key": "threeway-match",
"label": "三单匹配(PO/GR/Invoice",
"kind": "list",
"path": "/finance/threeway-match"
},
{
"key": "lease-rights",
"label": "使用权资产与租赁负债(新租赁准则)",
"kind": "list",
"path": "/finance/lease-rights"
},
{
"key": "asset-impairment",
"label": "资产减值测试",
"kind": "list",
"path": "/finance/asset-impairment"
},
{
"key": "cip",
"label": "在建工程与转固流程",
"kind": "list",
"path": "/finance/cip"
},
{
"key": "cost-auto-link",
"label": "跨模块成本自动归集管道",
"kind": "list",
"path": "/finance/cost-auto-link"
},
{
"key": "payroll",
"label": "薪资与社保公积金分摊",
"kind": "list",
"path": "/finance/payroll"
},
{
"key": "cash-flow-indirect",
"label": "现金流量表(间接法)与合并报表",
"kind": "report",
"path": "/finance/cash-flow-indirect"
},
{
"key": "auditor-access",
"label": "财务合规与审计只读查询",
"kind": "report",
"path": "/finance/auditor-access"
}
],
"legal": [
{
"key": "ipInfringement",
"label": "IP侵权处置工单",
"kind": "list",
"path": "/legal/ipInfringement"
},
{
"key": "contractApprovalFlow",
"label": "合同法务审批流",
"kind": "list",
"path": "/legal/contractApprovalFlow"
},
{
"key": "contractAuthCheck",
"label": "合同授权前置校验",
"kind": "list",
"path": "/legal/contractAuthCheck"
}
],
"audit": [
{
"key": "economic",
"label": "经济责任审计",
"kind": "list",
"path": "/audit/economic"
},
{
"key": "caats",
"label": "数据分析(CAATs",
"kind": "list",
"path": "/audit/caats"
}
],
"culture": [
{
"key": "content",
"label": "内容创作与审核",
"kind": "list",
"path": "/culture/content"
},
{
"key": "cultureMobile",
"label": "移动端文化功能",
"kind": "list",
"path": "/culture/cultureMobile"
}
],
"itasset": [
{
"key": "remoteassist",
"label": "IT远程协助",
"kind": "list",
"path": "/itasset/remoteassist"
},
{
"key": "dlppolicy",
"label": "DLP策略管理",
"kind": "list",
"path": "/itasset/dlppolicy"
}
],
"admin": [
{
"key": "doc-template",
"label": "公文模板库",
"kind": "list",
"path": "/admin/doc-template"
},
{
"key": "remote-assist",
"label": "IT远程协助",
"kind": "list",
"path": "/admin/remote-assist"
},
{
"key": "dlp-policy",
"label": "DLP数据防泄漏策略",
"kind": "list",
"path": "/admin/dlp-policy"
},
{
"key": "official-doc",
"label": "公文模板归档中心",
"kind": "list",
"path": "/admin/official-doc"
}
]
}
}