// 【重要】必须使用 const Component 作为组件变量名 // ONE-OS 小程序 - 还车应结款审批办理(参照 web 端还车应结款-查看,适配移动端) // 独立预览页:完整审批能力已内嵌于「审批中心.jsx」,本页供 Axhub 单独打开预览。 const { useState, useMemo, useRef, useEffect } = React; const moment = window.moment || window.dayjs; const COLOR_PRIMARY = '#16D1A1'; const COLOR_PRIMARY_DEEP = '#00BFA5'; const COLOR_PRIMARY_SOFT = 'rgba(22, 209, 161, 0.12)'; const COLOR_TEXT = '#1D2129'; const COLOR_TEXT_SEC = '#4E5969'; const COLOR_MUTED = '#86909C'; const COLOR_LINE = '#E5E6EB'; const COLOR_BG = '#FFFFFF'; const COLOR_PAGE = '#F2F3F5'; const COLOR_SUCCESS = '#00B42A'; const COLOR_DANGER = '#F53F3F'; const COLOR_WARN = '#FF7D00'; const FONT_FAMILY = '-apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, sans-serif'; const antd = (() => { const raw = window.antd; if (!raw) return {}; return raw.default && typeof raw.default === 'object' ? { ...raw, ...raw.default } : raw; })(); const message = antd.message || { info: () => {}, success: () => {}, warning: () => {} }; const Drawer = antd.Drawer; const formatMoney = (val) => { const n = parseFloat(val); if (Number.isNaN(n)) return val || '—'; return `¥${n.toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`; }; const formatYuan = (val) => { const n = parseFloat(val); if (Number.isNaN(n)) return '—'; return `${n.toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })} 元`; }; const DEFAULT_TASK = { bizNo: 'HC-2026-0418', plateNo: '粤B58888F', customerName: '嘉兴某某物流有限公司', projectName: '嘉兴腾4.5T租赁', pendingSettle: '927.50', depositAmount: '5000.00', refundTotal: '4072.50', payTotal: '0.00', actualRent: '0.00', }; const Component = function ReturnSettlementApproveStandalone() { const task = window.__returnSettlementTask || DEFAULT_TASK; const handleBack = () => { if (window.__returnSettlementBack) window.__returnSettlementBack(); else message.info('返回审批中心(原型)'); }; return (