feat: collect BPM field evidence and equip ZCode mapping assistant

This commit is contained in:
abaishu0730 committed 2026-10-20 10:40:52 +08:00
1 parent 24dbbb74c3
commit d4070e08f9
30 files changed
+453 -61

No files matched your search

+5 -2
View File
@@ -10,8 +10,11 @@ function extractTitle(title){
for(let i=0;i<matches.length;i++){
const match=matches[i],label=match[1],value=text.slice(match.index+match[0].length,matches[i+1]?.index??text.length).trim();
if(['业务模式','客户简称'].includes(label)&&value.includes('惠州'))factoryHints.push({source:label,value,status:'待核实额外通知'});
if(label==='订单号'){
current={orderNo:value,text:''};orders.push(current);
if(label==='订单号'&&!/(?:原|参考)$/.test(text.slice(0,match.index))){
// Unknown labels and pipe-separated titles still delimit the identifier.
// Keep their original content in the notification paragraph below.
const identifier=/^([A-Za-z0-9][A-Za-z0-9._/-]*)(?=$|\s|[\p{Script=Han}|,,;;])/u.exec(value)?.[1]||value;
current={orderNo:identifier,text:''};orders.push(current);
if(!value)issues.push('标题中的订单号为空,不能遗漏该订单段落');
}
if(current&&retained.has(label))current.text+=`${label}:${value}`;