同步 ERP 经营办理与验收站工具、MES 制造执行及 PLM 页面更新

This commit is contained in:
Developer
2026-12-06 16:19:58 +08:00
parent cde72c1163
commit b209487661
234 changed files with 41794 additions and 258 deletions

View File

@@ -0,0 +1,8 @@
'use strict'
// 普通 ERP 通讯由站点转发到 8030,受信员工处理程序仍使用同源 /submit。
module.exports = function configureErpGateway(source) {
const declaration = /^([ \t]*(?:var|let|const) url\s*=).*$/gm
if ((source.match(declaration) || []).length !== 1) throw new Error('请核对主通讯变量 url 的声明')
return source.replace(declaration, "$1 window.location.origin + '/erp-service'")
}