feat(shipping-notice): 完善订单模板解析与库存 RPA 调度流程

- 新增行字段补充合并与订单模板匹配能力
- 优化运行时解析策略、签名校验及资料验证
- 完善库存 RPA 归档、收尾与 Worker 启动流程
- 补充前后端测试、多语言文案及功能文档
This commit is contained in:
hugo committed 2026-09-09 14:32:43 +08:00
1 parent 8f2f568f92
commit dabf140e41
45 files changed
+2007 -151

No files matched your search

@@ -37,8 +37,7 @@ def main() -> int:
"SHIPPING_NOTICE_RPA_WORKER_BROWSER_PROFILE_DIR",
"backend/data/shipping_notice/freight_rpa/browser_profile",
)
if not os.environ.get("SHIPPING_NOTICE_RPA_WORKER_BROWSER_CHANNEL") and not os.environ.get("SHIPPING_NOTICE_RPA_WORKER_BROWSER_EXECUTABLE_PATH"):
os.environ.setdefault("SHIPPING_NOTICE_RPA_WORKER_BROWSER_CHANNEL", "msedge")
# 不默认 msedge:未设置 CHANNEL 时走 Playwright 捆绑 Chromium(需先 playwright install chromium)。
worker = _load_worker()
username = worker._env("SHIPPING_NOTICE_RPA_WORKER_CRANE_USERNAME")
@@ -37,9 +37,7 @@ def main() -> int:
"SHIPPING_NOTICE_RPA_WORKER_BROWSER_PROFILE_DIR",
"backend/data/shipping_notice/freight_rpa/browser_profile",
)
# Playwright 自带 Chromium 未安装时,回退到本机 Edge(Windows 开发机常见情况)。
if not os.environ.get("SHIPPING_NOTICE_RPA_WORKER_BROWSER_CHANNEL") and not os.environ.get("SHIPPING_NOTICE_RPA_WORKER_BROWSER_EXECUTABLE_PATH"):
os.environ.setdefault("SHIPPING_NOTICE_RPA_WORKER_BROWSER_CHANNEL", "msedge")
# 不默认 msedge:未设置 CHANNEL 时走 Playwright 捆绑 Chromium(需先 playwright install chromium)。
worker = _load_worker()
username = worker._env("SHIPPING_NOTICE_RPA_WORKER_DSV_USERNAME")