feat(shipping_notice): 支持客户 ODM 白名单与整单 ODM 选择收敛导出

- 客户主数据新增 odm_ids 白名单字段(含 Alembic 迁移),表单与管理端支持维护
- 导出库存命中行按客户白名单与整单 ODM 裁决收敛,新增 notice_odm_choice_service
- 工作台新增 odm-options / odm-choice 接口,投影行级候选并持久化用户选择
- 修复复核工作台跨 Run 切换时接收解析上下文残留
- 同步四语言 i18n、测试用例、funclist 与 shipping-notice 技术文档
This commit is contained in:
hugo committed 2026-09-16 19:50:12 +08:00
1 parent a032354cb9
commit d396371020
51 files changed
+2717 -109

No files matched your search

+8 -4
View File
@@ -2469,7 +2469,7 @@
"normalizer": "Text handling",
"displayName": "Rule name",
"displayNamePlaceholder": "For example: US customer sender email",
"evidenceLabel": "Evidence name in customer master data",
"evidenceLabel": "Evidence name in customer data",
"evidenceLabelPlaceholder": "For example: Customer business email",
"description": "Usage note (optional)",
"descriptionPlaceholder": "For example: Identifies Bill-to customers in the US region",
@@ -2482,8 +2482,8 @@
"addDefinition": "Add business definition",
"definitionSaved": "Identity definition saved",
"workflowTitle": "Configuration sequence",
"workflowHint": "1. Add identity definitions; 2. create, save, and publish a rule set; 3. return to customer master data to maintain customer or delivery-site evidence.",
"openCustomerMaster": "Open customer master data",
"workflowHint": "1. Add identity definitions; 2. create, save, and publish a rule set; 3. return to customer data to maintain customer or delivery-site evidence.",
"openCustomerMaster": "Open customer data",
"ruleSets": "Rule set versions",
"ruleSetHint": "Published snapshots are immutable. Replace or retire definitions before retiring a referenced order field.",
"publishedDefinitions": "Definitions actually published in this version",
@@ -2510,7 +2510,7 @@
"selectFieldHint": "Only currently published order-header fields enabled for customer identity can be selected."
},
"shippingCustomers": {
"title": "Shipping Customer Master Data",
"title": "Shipping Customer Data",
"subtitle": "Maintain stable customer identities, short codes, identifiers, and initial imports",
"add": "Add Customer",
"edit": "Edit Customer",
@@ -2595,12 +2595,16 @@
"shortCodeHint": "2-6 letters; saved in uppercase",
"status": "Status",
"remark": "Remark",
"odmIds": "ODM ID scope",
"odmIdsHint": "One ODM ID per line; leave empty for no restriction",
"odmIdsUnlimited": "Unrestricted",
"changeReason": "Change reason",
"changeReasonHint": "Required when changing short code or status"
},
"headers": {
"name": "Customer",
"shortCode": "Short code",
"odmIds": "ODM ID scope",
"status": "Status",
"identifiers": "Identifiers",
"identityEvidences": "Configured evidence",
+8
View File
@@ -2204,6 +2204,14 @@
"reservation_duplicate": "Duplicate reservation ID"
}
},
"odmConflict": {
"title": "This reservation matches multiple ODM IDs. Choose the ODM ID for this shipment",
"placeholder": "Select ODM ID",
"confirm": "Confirm & regenerate",
"saving": "Submitting...",
"hint": "Other lines on the same snapshot file use this ODM ID too; Excel generation retries automatically",
"column": "ODM ID"
},
"fulfillmentDecision": {
"title": "Line fulfillment decisions",
"subtitle": "Select inventory-ready or manually released lines to create an independent shipping notice and Excel.",
+1
View File
@@ -1,6 +1,7 @@
{
"generic": "Request failed.",
"codes": {
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "The selected ODM ID is not among the feasible candidates. Please choose again.",
"SHIPPING.FULFILLMENT_POLICY_INVALID": "The fulfillment policy or field capability binding is invalid.",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "The fulfillment policy was not found.",
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "The fulfillment policy was changed by another administrator. Refresh and try again.",
+1 -1
View File
@@ -101,7 +101,7 @@
"scheduleRuns": "Schedule Runs",
"receiptReports": "Receipt Files",
"shippingNotice": "Shipping Notice",
"shippingCustomers": "Customer Master Data",
"shippingCustomers": "Customer Data",
"shippingTasks": "Shipping Tasks",
"shippingMyTasks": "My To-Dos",
"feedback": "Feedback",
+8 -4
View File
@@ -2338,7 +2338,7 @@
"normalizer": "วิธีจัดการข้อความ",
"displayName": "ชื่อกฎ",
"displayNamePlaceholder": "เช่น อีเมลผู้ส่งของลูกค้าสหรัฐ",
"evidenceLabel": "ชื่อหลักฐานในข้อมูลหลักลูกค้า",
"evidenceLabel": "ชื่อหลักฐานในข้อมูลลูกค้า",
"evidenceLabelPlaceholder": "เช่น อีเมลธุรกิจของลูกค้า",
"description": "คำอธิบายการใช้ (ไม่บังคับ)",
"descriptionPlaceholder": "เช่น ใช้ระบุลูกค้าผู้ชำระเงินในภูมิภาคสหรัฐ",
@@ -2351,8 +2351,8 @@
"addDefinition": "เพิ่มนิยามธุรกิจ",
"definitionSaved": "บันทึกนิยามการระบุตัวตนแล้ว",
"workflowTitle": "ลำดับการตั้งค่า",
"workflowHint": "1. เพิ่มนิยามการระบุตัวตน 2. สร้าง บันทึก และเผยแพร่ชุดกฎ 3. กลับไปที่ข้อมูลหลักลูกค้าเพื่อดูแลหลักฐานของลูกค้าหรือสถานที่จัดส่ง",
"openCustomerMaster": "ไปที่ข้อมูลหลักลูกค้า",
"workflowHint": "1. เพิ่มนิยามการระบุตัวตน 2. สร้าง บันทึก และเผยแพร่ชุดกฎ 3. กลับไปที่ข้อมูลลูกค้าเพื่อดูแลหลักฐานของลูกค้าหรือสถานที่จัดส่ง",
"openCustomerMaster": "ไปที่ข้อมูลลูกค้า",
"ruleSets": "เวอร์ชันชุดกฎ",
"ruleSetHint": "สแนปช็อตที่เผยแพร่แล้วแก้ไขไม่ได้ ต้องแทนที่หรือเลิกใช้นิยามก่อนเลิกใช้ฟิลด์คำสั่งซื้อที่ถูกอ้างอิง",
"publishedDefinitions": "คำจำกัดความที่เผยแพร่จริงในเวอร์ชันนี้",
@@ -2379,7 +2379,7 @@
"selectFieldHint": "แสดงเฉพาะฟิลด์ Header ที่เปิดใช้สำหรับการระบุตัวตนลูกค้าในเวอร์ชันปัจจุบัน"
},
"shippingCustomers": {
"title": "ข้อมูลหลักลูกค้าขนส่ง",
"title": "ข้อมูลลูกค้าขนส่ง",
"subtitle": "จัดการตัวตนลูกค้า รหัสย่อ หลักฐานระบุตัวตน และการนำเข้าข้อมูลตั้งต้น",
"add": "เพิ่มลูกค้า",
"edit": "แก้ไขลูกค้า",
@@ -2464,12 +2464,16 @@
"shortCodeHint": "ตัวอักษร 2-6 ตัว บันทึกเป็นตัวพิมพ์ใหญ่",
"status": "สถานะ",
"remark": "หมายเหตุ",
"odmIds": "ขอบเขต ODM ID",
"odmIdsHint": "หนึ่ง ODM ID ต่อบรรทัด เว้นว่างหากไม่จำกัด",
"odmIdsUnlimited": "ไม่จำกัด",
"changeReason": "เหตุผลการเปลี่ยนแปลง",
"changeReasonHint": "ต้องระบุเมื่อแก้ไขรหัสย่อหรือสถานะ"
},
"headers": {
"name": "ลูกค้า",
"shortCode": "รหัสย่อ",
"odmIds": "ขอบเขต ODM ID",
"status": "สถานะ",
"identifiers": "หลักฐานระบุตัวตน",
"identityEvidences": "หลักฐานที่กำหนดค่า",
+8
View File
@@ -2204,6 +2204,14 @@
"reservation_duplicate": "Reservation ID ซ้ำ"
}
},
"odmConflict": {
"title": "ใบจองนี้ตรงกับ ODM ID หลายรายการ โปรดเลือก ODM ID ที่ใช้สำหรับการจัดส่งครั้งนี้",
"placeholder": "เลือก ODM ID",
"confirm": "ยืนยันและสร้างใหม่",
"saving": "กำลังส่ง...",
"hint": "แถวอื่นในไฟล์สแนปชอตเดียวกันจะใช้ ODM ID เดียวกัน และสร้าง Excel ใหม่โดยอัตโนมัติ",
"column": "ODM ID"
},
"fulfillmentDecision": {
"title": "การตัดสินใจการปฏิบัติตามบรรทัด",
"subtitle": "เลือกหลายบรรทัดที่สต็อกพร้อมหรืออนุมัติด้วยมือ เพื่อสร้างใบแจ้งการจัดส่งและ Excel แยกอิสระ",
+1
View File
@@ -1,6 +1,7 @@
{
"generic": "คำขอล้มเหลว",
"codes": {
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "ODM ID ที่เลือกไม่อยู่ในตัวเลือกที่ทำได้ โปรดเลือกใหม่",
"SHIPPING.FULFILLMENT_POLICY_INVALID": "นโยบายการปฏิบัติตามหรือการผูกความสามารถของฟิลด์ไม่ถูกต้อง",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "ไม่พบนโยบายการปฏิบัติตาม",
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "นโยบายการปฏิบัติตามถูกแก้ไขโดยผู้ดูแลรายอื่น โปรดรีเฟรชแล้วลองใหม่",
+1 -1
View File
@@ -92,7 +92,7 @@
"scheduleRuns": "บันทึกตารางงาน",
"receiptReports": "ไฟล์รับสินค้า",
"shippingNotice": "ใบแจ้งส่งสินค้า",
"shippingCustomers": "ข้อมูลหลักลูกค้า",
"shippingCustomers": "ข้อมูลลูกค้า",
"shippingTasks": "งานจัดส่ง",
"shippingMyTasks": "งานที่ต้องทำของฉัน",
"feedback": "ข้อเสนอแนะ",
+8 -4
View File
@@ -2581,7 +2581,7 @@
"normalizer": "文本处理方式",
"displayName": "规则名称",
"displayNamePlaceholder": "例如:美国客户发件人邮箱",
"evidenceLabel": "客户主数据中的证据名称",
"evidenceLabel": "客户数据中的证据名称",
"evidenceLabelPlaceholder": "例如:客户业务邮箱",
"description": "使用说明(可选)",
"descriptionPlaceholder": "例如:用于识别美国区域的账款客户",
@@ -2595,8 +2595,8 @@
"addDefinition": "新增业务定义",
"definitionSaved": "识别定义已保存",
"workflowTitle": "配置顺序",
"workflowHint": "1. 新增识别定义;2. 创建、保存并发布规则集;3. 返回客户主数据维护客户或送货站点证据。",
"openCustomerMaster": "前往客户主数据维护证据",
"workflowHint": "1. 新增识别定义;2. 创建、保存并发布规则集;3. 返回客户数据维护客户或送货站点证据。",
"openCustomerMaster": "前往客户数据维护证据",
"ruleSets": "规则集版本",
"ruleSetHint": "发布后规则快照不可修改;订单字段退役前必须先替换或退役引用它的定义。",
"publishedDefinitions": "本版本实际发布的识别定义",
@@ -2622,7 +2622,7 @@
}
},
"shippingCustomers": {
"title": "货代客户主数据",
"title": "货代客户数据",
"subtitle": "维护稳定客户身份、客户简码、识别证据与期初导入",
"add": "新增客户",
"edit": "编辑客户",
@@ -2707,12 +2707,16 @@
"shortCodeHint": "2-6 位英文字母,保存后统一转为大写",
"status": "状态",
"remark": "备注",
"odmIds": "ODM ID 范围",
"odmIdsHint": "每行一个 ODM ID;留空表示不限定",
"odmIdsUnlimited": "不限定",
"changeReason": "变更原因",
"changeReasonHint": "修改简码或状态时必须填写"
},
"headers": {
"name": "客户名称",
"shortCode": "简码",
"odmIds": "ODM ID 范围",
"status": "状态",
"identifiers": "识别证据",
"identityEvidences": "配置化证据",
+8
View File
@@ -2311,6 +2311,14 @@
"reservation_duplicate": "预约单号重复"
}
},
"odmConflict": {
"title": "该预约单命中多个 ODM ID,请选择本次发货使用的 ODM ID",
"placeholder": "请选择 ODM ID",
"confirm": "确认并重新生成",
"saving": "提交中...",
"hint": "同一快照文件的其他行会同步使用该 ODM ID,确认后自动重试生成 Excel",
"column": "ODM ID"
},
"fulfillmentDecision": {
"title": "行级履约决定",
"subtitle": "可多选库存满足或已人工放行的明细,生成独立发货通知和 Excel。",
+1
View File
@@ -1,6 +1,7 @@
{
"generic": "请求失败。",
"codes": {
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "所选 ODM ID 不在当前可行候选内,请重新选择。",
"SHIPPING.FULFILLMENT_POLICY_INVALID": "货代履约策略或字段能力绑定无效。",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "未找到货代履约策略。",
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "货代履约策略已被其他管理员修改,请刷新后重试。",
+1 -1
View File
@@ -101,7 +101,7 @@
"scheduleRuns": "排程记录",
"receiptReports": "收料文件",
"shippingNotice": "货代发货",
"shippingCustomers": "客户主数据",
"shippingCustomers": "客户数据",
"shippingTasks": "发货任务",
"shippingMyTasks": "我的待办",
"feedback": "意见反馈",
+8 -4
View File
@@ -2343,7 +2343,7 @@
"normalizer": "文字處理方式",
"displayName": "規則名稱",
"displayNamePlaceholder": "例如:美國客戶寄件者電子郵件",
"evidenceLabel": "客戶主資料中的證據名稱",
"evidenceLabel": "客戶資料中的證據名稱",
"evidenceLabelPlaceholder": "例如:客戶業務電子郵件",
"description": "使用說明(可選)",
"descriptionPlaceholder": "例如:用於識別美國區域的帳款客戶",
@@ -2356,8 +2356,8 @@
"addDefinition": "新增業務定義",
"definitionSaved": "識別定義已儲存",
"workflowTitle": "設定順序",
"workflowHint": "1. 新增識別定義;2. 建立、儲存並發布規則集;3. 返回客戶主資料維護客戶或送貨站點證據。",
"openCustomerMaster": "前往客戶主資料維護證據",
"workflowHint": "1. 新增識別定義;2. 建立、儲存並發布規則集;3. 返回客戶資料維護客戶或送貨站點證據。",
"openCustomerMaster": "前往客戶資料維護證據",
"ruleSets": "規則集版本",
"ruleSetHint": "發布後快照不可修改;退役訂單欄位前必須先替換或退役其引用定義。",
"publishedDefinitions": "本版本實際發布的識別定義",
@@ -2384,7 +2384,7 @@
"selectFieldHint": "只顯示目前版本中已啟用客戶識別的 Header 欄位"
},
"shippingCustomers": {
"title": "貨代客戶主資料",
"title": "貨代客戶資料",
"subtitle": "維護穩定客戶身份、客戶簡碼、識別證據與期初匯入",
"add": "新增客戶",
"edit": "編輯客戶",
@@ -2469,12 +2469,16 @@
"shortCodeHint": "2-6 位英文字母,儲存後統一轉為大寫",
"status": "狀態",
"remark": "備註",
"odmIds": "ODM ID 範圍",
"odmIdsHint": "每行一個 ODM ID;留空表示不限定",
"odmIdsUnlimited": "不限定",
"changeReason": "變更原因",
"changeReasonHint": "修改簡碼或狀態時必須填寫"
},
"headers": {
"name": "客戶名稱",
"shortCode": "簡碼",
"odmIds": "ODM ID 範圍",
"status": "狀態",
"identifiers": "識別證據",
"identityEvidences": "可設定證據",
+8
View File
@@ -2204,6 +2204,14 @@
"reservation_duplicate": "預約單號重複"
}
},
"odmConflict": {
"title": "該預約單命中多個 ODM ID,請選擇本次出貨使用的 ODM ID",
"placeholder": "請選擇 ODM ID",
"confirm": "確認並重新產生",
"saving": "提交中...",
"hint": "同一快照檔案的其他行會同步使用該 ODM ID,確認後自動重試產生 Excel",
"column": "ODM ID"
},
"fulfillmentDecision": {
"title": "行級履約決定",
"subtitle": "可多選庫存滿足或已人工放行的明細,產生獨立發貨通知和 Excel。",
+1
View File
@@ -1,6 +1,7 @@
{
"generic": "請求失敗。",
"codes": {
"SHIPPING.NOTICE_ODM_CHOICE_INVALID": "所選 ODM ID 不在當前可行候選內,請重新選擇。",
"SHIPPING.FULFILLMENT_POLICY_INVALID": "貨代履約策略或欄位能力綁定無效。",
"SHIPPING.FULFILLMENT_POLICY_NOT_FOUND": "找不到貨代履約策略。",
"SHIPPING.FULFILLMENT_POLICY_CONFLICT": "貨代履約策略已被其他管理員修改,請重新整理後再試。",
+1 -1
View File
@@ -101,7 +101,7 @@
"scheduleRuns": "排程記錄",
"receiptReports": "收料檔案",
"shippingNotice": "貨代發貨",
"shippingCustomers": "客戶主資料",
"shippingCustomers": "客戶資料",
"shippingTasks": "發貨任務",
"shippingMyTasks": "我的待辦",
"feedback": "意見反饋",