Demo 范围:交企统H203-2表(道路货物运输月度生产情况)
需求文档:货运简化.docx、database.md、architecture.md;数据库脚本:init.sql
| 组件 | 要求 |
|---|---|
| JDK | 1.8 |
| Maven | 3.x |
| Node.js | 14+(Vue CLI) |
| MySQL | 5.7(本机 localhost:3305,账号 root/root) |
mysql --default-character-set=utf8mb4 -h localhost -P 3305 -u root -proot < docs/init.sql
init.sql 会重建 traffic_audit 库(含旧版表清理),并预置:
- 部门:湖北省交通运输厅
- 角色:三员 + 省厅业务员
- 账号:admin / admin123
- 6 条审核规则(RULE_001 ~ RULE_006)
# 方式一:直接运行
mvn spring-boot:run -f traffic-audit-server/pom.xml
# 方式二:后台运行(日志写入 backend.log,已提供脚本)
run-backend.cmd
8090/api/**(当前为 permitAll,便于 Demo)cd traffic-audit-web
npm install
npm run serve
8080admin / admin123(输入用户名密码后回车即可登录)docs/ 下 5 个模板:模板_交企统H203-2表_道路货物运输月度生产情况.xlsx → 报表期 2026-06模板_运政车辆.xlsx → 无需报表期模板_轨迹里程.xlsx → 报表期 2026-06模板_规上规下拆分运输量.xlsx → 报表期 2026-06模板_货运量周转量.xlsx → 报表期 2026-06(左半 1-6 月今年、右半 1-12 月去年)| 接口 | 说明 |
|---|---|
POST /api/import/h2032 |
导入 H203-2 月报(file + period) |
POST /api/import/transportAuth |
导入运政车辆(file) |
POST /api/import/trackMileage |
导入轨迹里程(file + period) |
POST /api/import/scaleSplit |
导入规上规下拆分(file + period) |
POST /api/import/freightTurnover |
导入模板_货运量周转量(file + period) |
POST /api/audit/execute?period= |
执行审核 |
GET /api/audit/results?period= |
查询审核结果 |
POST /api/audit/review |
审核确认/忽略(id + status + comment) |
GET /api/report/export/cityDetail?period= |
生成_货运量分市州明细 |
GET /api/report/export/freightRank?period= |
生成_货运量排名 |
GET /api/report/export/turnoverRank?period= |
生成_周转量排名 |
各市州所属组织机构.xlsx);规下 = 合计 − 规上。h2032_enterprise_monthly、freight_turnover_import),可复用本框架的导入→审核→报表链路。