diff --git a/App.jsx b/App.jsx index ee25b31..61c32f4 100644 --- a/App.jsx +++ b/App.jsx @@ -696,7 +696,7 @@ function productExportRows(p, categories) { if (p.noiseLevel) rows.push({ labelKey: '噪音', value: p.noiseLevel }); if (p.dimensions) rows.push({ labelKey: '尺寸(mm)', value: p.dimensions }); if (p.netWeight) rows.push({ labelKey: '净重(kg)', value: p.netWeight }); - } else if (isUpsCategory(cat) && (p.type === '机架式UPS' || p.type === '在线式高频UPS')) { + } else if (isUpsCategory(cat) && ['机架式UPS', '在线式高频UPS', '工频UPS', '高频塔式UPS', '模块化UPS'].includes(p.type)) { if (p.phase) rows.push({ labelKey: '相数', value: p.phase }); if (p.powerOrCapacity) rows.push({ labelKey: '容量', value: p.powerOrCapacity }); if (p.inputVoltage) rows.push({ labelKey: '输入电压', value: p.inputVoltage }); @@ -724,8 +724,11 @@ function productExportRows(p, categories) { if (p.alarmInfo) rows.push({ labelKey: '警告提示', value: p.alarmInfo }); if (p.dimensions) rows.push({ labelKey: '尺寸(mm)', value: p.dimensions }); if (p.netWeight) rows.push({ labelKey: '净重(kg)', value: p.netWeight }); + if (p.operatingTemp) rows.push({ labelKey: '运行温度', value: p.operatingTemp }); + if (p.storageTemp) rows.push({ labelKey: '存储温度', value: p.storageTemp }); if (p.humidity) rows.push({ labelKey: '湿度', value: p.humidity }); if (p.noiseLevel) rows.push({ labelKey: '噪音', value: p.noiseLevel }); + if (p.protectionClass) rows.push({ labelKey: '防护等级', value: p.protectionClass }); if (p.interfacePort) rows.push({ labelKey: '控制管理', value: p.interfacePort }); if (p.optionalSnmp) rows.push({ labelKey: '可选SNMP', value: p.optionalSnmp }); } else if (isUpsCategory(cat) && p.type !== '迷你UPS') { @@ -1063,7 +1066,7 @@ function powerInfoItems(p, categories) { if (p.container40hq) items.push({ key: 'container40hq', label: '40高柜装箱数量', value: p.container40hq }); return items; } - if (isUpsCategory(cat) && (p.type === '机架式UPS' || p.type === '在线式高频UPS')) { + if (isUpsCategory(cat) && ['机架式UPS', '在线式高频UPS', '工频UPS', '高频塔式UPS', '模块化UPS'].includes(p.type)) { const items = []; if (p.phase) items.push({ key: 'phase', label: '相数', value: p.phase }); if (p.powerOrCapacity) items.push({ key: 'capacity', label: '容量', value: p.powerOrCapacity }); @@ -1092,8 +1095,11 @@ function powerInfoItems(p, categories) { if (p.alarmInfo) items.push({ key: 'alarminfo', label: '警告提示', value: p.alarmInfo }); if (p.dimensions) items.push({ key: 'dim', label: '尺寸(mm)', value: p.dimensions }); if (p.netWeight) items.push({ key: 'weight', label: '净重(kg)', value: p.netWeight }); + if (p.operatingTemp) items.push({ key: 'operatingtemp', label: '运行温度', value: p.operatingTemp }); + if (p.storageTemp) items.push({ key: 'storagetemp', label: '存储温度', value: p.storageTemp }); if (p.humidity) items.push({ key: 'humidity', label: '湿度', value: p.humidity }); if (p.noiseLevel) items.push({ key: 'noiselevel', label: '噪音', value: p.noiseLevel }); + if (p.protectionClass) items.push({ key: 'protectionclass', label: '防护等级', value: p.protectionClass }); if (p.interfacePort) items.push({ key: 'interfaceport', label: '控制管理', value: p.interfacePort }); if (p.optionalSnmp) items.push({ key: 'snmp', label: '可选SNMP', value: p.optionalSnmp }); insertExtraSpecs(items, p.extraSpecs, 'label'); @@ -5248,9 +5254,7 @@ function ProductForm({ draft, setDraft, onSave, onCancel, categories, onManage, const isUps = isUpsCategory(cat); const isMiniUps = isUps && draft.type === '迷你UPS'; const isOfflineOrLI = isUps && (draft.type === '离线式UPS' || draft.type === '在线互动式UPS'); - const isRackUps = isUps && draft.type === '机架式UPS'; - const isOnlineHighFreq = isUps && draft.type === '在线式高频UPS'; - const isRackLikeUps = isRackUps || isOnlineHighFreq; + 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 maxKW = computeMaxPowerKW(draft.ratedPower, draft.ratedPowerUnit, draft.powerFactor); @@ -5558,14 +5562,14 @@ function ProductForm({ draft, setDraft, onSave, onCancel, categories, onManage,