普通订单取消须麦麦审批并按录错作废冲回

This commit is contained in:
summer committed 2026-10-23 00:38:04 +08:00
1 parent 46530c29b8
commit 27a11e9b35
28 files changed
+759 -60

No files matched your search

+3 -1
View File
@@ -57,11 +57,13 @@ function orderRow(order){
if(order.status==='confirmed')hints.push('旧单账务未补齐,利润尚未记账');
if(legacyUnallocated)hints.push('原单货品成本未分项,计入未分项成本');
if(profitMismatch)hints.push('成本与利润流水不一致,待复核');
if(excluded)hints.push('原售价与货品成本已冲回,实际费用保留');
if(excluded)hints.push(order.cancellationApproved?'录错作废已获麦麦批准,本单销售、成本与收款记账已撤销,原单和审批记录保留':'原售价与货品成本已冲回,实际费用保留');
}
return {
id:order.id,number:order.number,paper_number:order.paper_number,date:order.date,created:order.created,
...(order.price_lock_id?{price_lock_id:order.price_lock_id}:{}),
...(order.cancellationPending?{cancellationPending:order.cancellationPending}:{}),
...(order.cancellationApproved?{cancellationApproved:order.cancellationApproved}:{}),
...(materialPoolIds.length?{materialPoolIds,materialCostPending}:{}),
customer:order.customer,salesperson:order.salesperson,status:order.status,note:order.note,
types:[...new Set(order.lines.map(lineType))],