🏢 优度鑫云管理后台
默认账号: admin / 123456

🏢 优度鑫云管理后台

退出登录
📊 仪表盘
👥 经销商
🏪 商户管理
✅ 审核中心0
🔌 设备管理
💰 分账配置
📡 IoT配置
📋 账单管理
🌳 层级数据树
📤 数据导出
🧠 AI模型配置
📈 谐波监控
⚙️ AI策略管理
📊 电能质量报告
标题
async function showGenerateBillModal(){ const merchants = await apiRequest('/merchants'); let merchantOptions = ''; if(merchants && merchants.length > 0){ merchants.forEach(m => { merchantOptions += ''; }); } let html = '
'; html += '
'; html += '
系统将自动计算该账期内的节电量和金额
'; modalType = 'generate-bill'; openModal('生成账单', html, true); } async function saveGenerateBill(){ const merchantId = document.getElementById('billMerchantId').value; const period = document.getElementById('billPeriod').value; if(!merchantId){ alert('请选择商户'); return; } if(!period){ alert('请输入账期'); return; } try { const res = await apiRequest('/bills/generate', 'POST', { merchant_id: parseInt(merchantId), billing_period: period }); alert('账单生成成功!商户:' + res.merchant_name + ' 账期:' + res.billing_period + ' 节电量:' + res.save_kwh + '度 金额:¥' + res.amount); closeModal(); loadBills(document.getElementById('mainContent')); } catch(e) { alert('生成失败:' + e.message); } }