| ${i+1} | ${orderBookIdentity(row,detailList.version)} 业务日期 ${e(row.date)} · ${row.kind==='recovery'?'已记录':badge(row)}${orderReviewBadge(row)} ${!['afterSale','orderAfterSale','recovery'].includes(row.kind)?orderEntryTimeHTML(row):''}${showOrderCopyEntry&&!['afterSale','orderAfterSale','recovery'].includes(row.kind)?button('+复制新增','copy-order','order-copy-button',`data-id="${e(row.id)}" aria-label="复制 ${e(row.paper_number||row.number)} 为新订单"`):''}${row.status==='cancelled'?'未计入汇总 ':''}${row.balance<0?'退款待处理 ':''} | ${row.types.map(e).join(' ')||'—'} | ${orderBookQuantity(row)}${row.kind==='recovery'?' 折后克重 ':''} | ${orderBookMoney(row,'sale')} | ${orderBookMoney(row,'material')} | ${orderBookMoney(row,'laborAndFees')}${orderBookFeeParts(row)} | ${orderBookMoney(row,'totalCost')}${row.unallocated?` 含未分项 ¥${yuan(row.unallocated)} `:''}${row.pendingCosts?'另有 '+row.pendingCosts+' 项费用未入账 ':''} | ${orderBookMoney(row,'profit')} | ${row.kind==='afterSale'?e(afterSalePayerName(row)+'支付'):e(row.note)||'—'}${row.costHint?` ${e(row.costHint)} `:''} | ${printStatusBadge(row)||'—'} |
`).join('')}