fix: keep unmatched BPM records out of the order center

This commit is contained in:
abaishu0730 committed 2026-10-23 15:39:38 +08:00
1 parent 8b2339ec81
commit 5c34851347
5 files changed
+21 -17

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
window.BusinessRecordViews=(()=>{
async function render(container,options,kind){
const {api,esc,formatDate,user,isActive}=options,view=kind==='orders'?'notification-orders':'notification-batches',filters=window.RecordState.read(view);
const states=kind==='orders'?['candidate','identified','preparing','archived','pending','batched','blocked','failed','unknown','sent','capturing','archiving','ignored']:['prepared','sending','unknown','failed','sent','cancelled'];
const states=kind==='orders'?['identified','preparing','archived','pending','batched','blocked','failed','unknown','sent','capturing','archiving','ignored']:['prepared','sending','unknown','failed','sent','cancelled'];
const labels={candidate:'未匹配通知规则',disabled:'未开启',empty:'无匹配惠州明细',not_applicable:'历史订单,不追加通知',ignored:'历史保留,不自动补发',identified:'已识别',preparing:'准备归档',archived:'已归档',pending:'等待汇总',batched:'已编入批次',blocked:'受阻',failed:'失败',unknown:'待核实',sent:'已提交邮件服务器',capturing:'采集中',archiving:'归档中',prepared:'已冻结待发',sending:'发送中',cancelled:'已取消'};
const catalogs={categories:new Map(),connections:new Map()};
const select=(name,label)=>`<label class="small" for="business-${name}">${label}</label><select class="form-select" id="business-${name}" name="${name}"><option value="">全部</option>${filters[name]?`<option selected value="${esc(filters[name])}">${esc(filters[name])}</option>`:''}</select>`;