支持三人台账、库存更正审批与每日人数增量
This commit is contained in:
1 parent
8d9039aacf
commit
f6bdfcf10d
57 files changed
+2536
-564
No files matched your search
@@ -100,7 +100,7 @@ function renderOrderEditForm(){
|
||||
}else{
|
||||
$('#main').innerHTML=headingHTML+`<div class="note" role="status" id="order-edit-save-intro">${e(intro)}本次沿用原单号 ${e(order.paper_number||order.number)}。</div>`+orderEditConflictHTML(entry)+`<form id="order-form" data-order-edit="true"><input type="hidden" name="rounding_mode" value="${e(draft.rounding_mode||'cent')}"><input type="hidden" name="orderId" value="${e(entry.id)}"><input type="hidden" name="revision" value="${e(entry.revision)}"><section class="panel"><div class="panel-title"><h2>客户与单据</h2><span class="small muted">修改内容单独暂存,可刷新后继续</span></div><div class="grid four">${dateField('date',draft.date)}${field('原纸单编号','paper_number',order.paper_number||order.number,'text','readonly')}${field('客户称呼/代号(必填)','customer',draft.customer||'','text','required maxlength="60"')}${field('开单人(必填)','salesperson',draft.salesperson||'','text','required maxlength="30"')}${accountFields(draft.payment_account)}</div><p class="small muted">选择客户实际付款的方式与收款人。修改业务日期会重新核算对应日期的订单与库存,原单号保留。</p></section><section class="panel"><div class="panel-title"><h2>商品明细</h2><span class="small muted">金价与工费分开填写</span></div><div id="lines">${draft.lines.map((line,index)=>lineHTML(line,index+1,{materialPool:true})).join('')}</div><div class="form-actions">${button('+ 添加商品','add-line')}<span class="small muted">填写本单最终实际交付的商品、克重与金额。</span></div></section>${feeHTML(draft)}<section class="panel"><div class="grid two">${moneyField('整单优惠/抹零(元)','discount',draft.discount??'0')}<label>客户单备注<textarea name="note" maxlength="240" rows="2">${e(draft.note||'')}</textarea></label></div><div class="form-actions"><div><span class="small muted">更正后成交合计/客户实收</span><div id="create-total" class="summary-amount">待填写</div><div id="create-rounding-note" class="small muted order-rounding-note" aria-live="polite"></div></div></div></section>${orderEditReviewHTML(entry)}</form>`;
|
||||
const paymentNote=orderEditPaymentNote(order);if(paymentNote)$('#order-form [name="payment_recipient"]').closest('.grid').insertAdjacentHTML('afterend',paymentNote);
|
||||
updateTotal();loadMaterialPoolChoices(true);
|
||||
updateTotal();loadMaterialPoolChoices(true);if(typeof loadReimbursementFundingOptions==='function')loadReimbursementFundingOptions(true);
|
||||
}
|
||||
rememberOrderEditDraft();applyOrderEditRestrictions();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user