将助理成员显示名称统一为娜娜和小昊
This commit is contained in:
1 parent
f4ac7502d3
commit
518513e630
28 files changed
+120
-96
No files matched your search
@@ -76,7 +76,7 @@ async function renderOrderEdit(){
|
||||
function orderEditLatestHTML(result){
|
||||
if(!result?.order)return '<p>重新读取最新订单后,核对原记录再继续。</p>';
|
||||
const order=result.order;
|
||||
return `<details open><summary>当前已保存的订单</summary><p class="small">${e(order.date)} · ${e(order.customer||'未填客户称呼')} · 开单人 ${e(order.salesperson)} · ${e(order.payment_account)} · 成交 ${orderAmount(order.total,order.rounding_mode)}</p><div class="table-wrap"><table><thead><tr><th>商品</th><th>克重/数量</th><th>成交金额</th><th>货品成本</th></tr></thead><tbody>${order.lines.map(line=>`<tr><td>${e(line.name)}</td><td>${line.unit==='g'?grams(line.quantity)+'g':e(line.quantity)+'件'}</td><td>¥${yuan(line.sale)}</td><td>${line.cost==null?'待补':'¥'+yuan(line.cost)}</td></tr>`).join('')}</tbody></table></div><p class="small">实际费用 ¥${yuan(order.directCost)};客户单备注:${e(order.note||'无')}</p>${orderInternalNoteHTML(order)}</details>`;
|
||||
return `<details open><summary>当前已保存的订单</summary><p class="small">${e(order.date)} · ${e(order.customer||'未填客户称呼')} · 开单人 ${e(order.salesperson)} · ${e(accountDisplayName(order.payment_account))} · 成交 ${orderAmount(order.total,order.rounding_mode)}</p><div class="table-wrap"><table><thead><tr><th>商品</th><th>克重/数量</th><th>成交金额</th><th>货品成本</th></tr></thead><tbody>${order.lines.map(line=>`<tr><td>${e(line.name)}</td><td>${line.unit==='g'?grams(line.quantity)+'g':e(line.quantity)+'件'}</td><td>¥${yuan(line.sale)}</td><td>${line.cost==null?'待补':'¥'+yuan(line.cost)}</td></tr>`).join('')}</tbody></table></div><p class="small">实际费用 ¥${yuan(order.directCost)};客户单备注:${e(order.note||'无')}</p>${orderInternalNoteHTML(order)}</details>`;
|
||||
}
|
||||
function orderEditConflictHTML(entry){
|
||||
if(!entry.conflicted)return '';
|
||||
|
||||
Reference in new issue
Block a user