diff --git a/App.jsx b/App.jsx index 9aa5123..9627c5d 100644 --- a/App.jsx +++ b/App.jsx @@ -624,7 +624,7 @@ function insertExtraSpecs(list, extraSpecs, labelProp) { function productExportRows(p, categories) { const cat = (categories || []).find(c => c.id === p.category); const rows = []; - if (isInverterCategory(cat) && p.type === '太阳能混网逆变器') { + if (isInverterCategory(cat) && ['太阳能混网逆变器', '并网/离网逆变器'].includes(p.type)) { if (p.batteryType) rows.push({ labelKey: '电池类型', value: p.batteryType }); if (p.batteryVoltage) rows.push({ labelKey: '电池电压', value: p.batteryVoltage }); if (p.maxChargingVoltage) rows.push({ labelKey: '最大充电电压', value: p.maxChargingVoltage }); @@ -978,7 +978,7 @@ function computeMaxPowerKW(ratedPower, ratedPowerUnit, powerFactor) { } function powerInfoItems(p, categories) { const cat = (categories || []).find(c => c.id === p.category); - if (isInverterCategory(cat) && p.type === '太阳能混网逆变器') { + if (isInverterCategory(cat) && ['太阳能混网逆变器', '并网/离网逆变器'].includes(p.type)) { const items = []; if (p.batteryType) items.push({ key: 'batterytype', label: '电池类型', value: p.batteryType }); if (p.batteryVoltage) items.push({ key: 'batteryvoltage', label: '电池电压', value: p.batteryVoltage }); @@ -5291,7 +5291,7 @@ function ProductForm({ draft, setDraft, onSave, onCancel, categories, onManage, const isOfflineOrLI = isUps && (draft.type === '离线式UPS' || draft.type === '在线互动式UPS'); const isRackLikeUps = isUps && ['机架式UPS', '在线式高频UPS', '工频UPS', '高频塔式UPS', '模块化UPS'].includes(draft.type); const isBatterySystem = isBatteryCategory(cat) && draft.type === 'UPS配套锂电池系统'; - const isSolarHybridInverter = isInverterCategory(cat) && draft.type === '太阳能混网逆变器'; + const isSolarHybridInverter = isInverterCategory(cat) && ['太阳能混网逆变器', '并网/离网逆变器'].includes(draft.type); const maxKW = computeMaxPowerKW(draft.ratedPower, draft.ratedPowerUnit, draft.powerFactor); const extraNames = draft.extraNames || []; const [imageUploading, setImageUploading] = useState(false);