整合公共店铺配置与动态员工管理,保留最新订单功能及历史账兼容

This commit is contained in:
summer committed 2026-12-04 00:53:53 +08:00
commit b87f774386
84 files changed
+1622 -715

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ function orderTemplateControls(){
}
function orderTemplatesPanelHTML(){
if(orderTemplateUser!==session.user.id){orderTemplateRows=null;orderTemplateSelection='';orderTemplateUser=session.user.id;}
return `<section class="panel order-template-panel" id="order-template-panel"><div class="panel-title"><h2>开单模板</h2><span class="small muted">${teamMode()?'按成员分别保存':'麦麦与助理共用'}</span></div><div id="order-template-controls">${orderTemplateControls()}</div><p class="small muted order-template-hint">用于普通开单,可以保存未填完的表单。客户称呼和内部备注不存入模板,套用时留空;业务日期和费用日期用今天;每日料价随本次订单日期读取。</p><div class="small" id="order-template-status" aria-live="polite"></div></section>`;
return `<section class="panel order-template-panel" id="order-template-panel"><div class="panel-title"><h2>开单模板</h2><span class="small muted">${teamMode()?'按成员分别保存':'店主与助理共用'}</span></div><div id="order-template-controls">${orderTemplateControls()}</div><p class="small muted order-template-hint">用于普通开单,可以保存未填完的表单。客户称呼和内部备注不存入模板,套用时留空;业务日期和费用日期用今天;每日料价随本次订单日期读取。</p><div class="small" id="order-template-status" aria-live="polite"></div></section>`;
}
function orderTemplateStatus(message,error=false){const node=$('#order-template-status');if(node){node.textContent=message;node.className='small'+(error?' danger-text':' muted');}}
async function loadOrderTemplates(){