// 对账单管理
(() => {
Router.register('/plan-mgmt/reconciliation', async () => {
const html = `
|
|
${index + 1} |
${item.order_date || '—'} |
${item.contract_no || '—'} |
${item.material_name || '—'} |
${item.spec_model || '—'} |
${item.transport_no || '—'} |
${item.quantity || 0} |
${item.unit || '—'} |
${formatNumber(item.unit_price)} |
${formatNumber(item.total_amount)} |
${item.delivery_date || '—'} |
${item.shipment_date || '—'} |
|
`;
}).join('');
// 重置全选状态
const selectAllCheckbox = document.getElementById('select-all-reconciliation');
if (selectAllCheckbox) {
selectAllCheckbox.checked = false;
}
updateBatchDeleteButton();
} catch (err) {
console.error('加载对账单失败:', err);
const tbody = document.getElementById('reconciliation-list');
if (tbody) {
tbody.innerHTML = '