优化公共配置版手机开单、订单卡片与购料布局
This commit is contained in:
1 parent
a691e56331
commit
ea4e2cbe61
3 files changed
+100
-5
No files matched your search
@@ -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 `<details class="panel order-template-panel entry-tool" id="order-template-panel"><summary>开单模板<span class="small muted">选择或保存常用模板</span></summary><div class="entry-tool-body"><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></div></details>`;
|
||||
}
|
||||
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(){
|
||||
|
||||
Reference in new issue
Block a user