diff --git a/App.jsx b/App.jsx index 432835c..c711b63 100644 --- a/App.jsx +++ b/App.jsx @@ -314,6 +314,15 @@ const TRANSLATION_DICTIONARY = { '控制管理': { en: 'Interface', fr: 'Interface', ru: 'Интерфейс', es: 'Interfaz', ar: 'الواجهة' }, '湿度': { en: 'Humidity', fr: 'Humidité', ru: 'Влажность', es: 'Humedad', ar: 'الرطوبة' }, '噪音': { en: 'Noise Level', fr: 'Niveau sonore', ru: 'Уровень шума', es: 'Nivel de ruido', ar: 'مستوى الضوضاء' }, + '相数': { en: 'Phase', fr: 'Phase', ru: 'Фаза', es: 'Fase', ar: 'الطور' }, + '输入功率因数': { en: 'Input Power Factor', fr: "Facteur de puissance d'entrée", ru: 'Входной коэффициент мощности', es: 'Factor de potencia de entrada', ar: 'معامل قدرة الدخل' }, + '转换时间(市电到电池)': { en: 'Transfer Time (AC to Battery)', fr: 'Temps de transfert (secteur vers batterie)', ru: 'Время переключения (сеть на батарею)', es: 'Tiempo de transferencia (red a batería)', ar: 'وقت التحويل (من الشبكة إلى البطارية)' }, + '峰值电流比': { en: 'Current Crest Ratio', fr: 'Facteur de crête de courant', ru: 'Пик-фактор тока', es: 'Relación de cresta de corriente', ar: 'نسبة ذروة التيار' }, + '谐波失真': { en: 'Harmonic Distortion', fr: 'Distorsion harmonique', ru: 'Гармонические искажения', es: 'Distorsión armónica', ar: 'التشويه التوافقي' }, + '效率(市电模式)': { en: 'Efficiency (AC Mode)', fr: 'Rendement (mode secteur)', ru: 'КПД (сетевой режим)', es: 'Eficiencia (modo red)', ar: 'الكفاءة (وضع الشبكة)' }, + '效率(电池模式)': { en: 'Efficiency (Battery Mode)', fr: 'Rendement (mode batterie)', ru: 'КПД (режим батареи)', es: 'Eficiencia (modo batería)', ar: 'الكفاءة (وضع البطارية)' }, + '充电电压': { en: 'Charging Voltage', fr: 'Tension de charge', ru: 'Напряжение зарядки', es: 'Voltaje de carga', ar: 'جهد الشحن' }, + '可选SNMP': { en: 'Optional SNMP', fr: 'SNMP en option', ru: 'SNMP (опционально)', es: 'SNMP opcional', ar: 'SNMP اختياري' }, '电压': { en: 'Voltage', fr: 'Tension', ru: 'Напряжение', es: 'Voltaje', ar: 'الجهد' }, '视载功率': { en: 'Rated Power (VA)', fr: 'Puissance nominale (VA)', ru: 'Номинальная мощность (ВА)', es: 'Potencia nominal (VA)', ar: 'الطاقة الاسمية (فولت أمبير)' }, '功率因数': { en: 'Power Factor', fr: 'Facteur de puissance', ru: 'Коэффициент мощности', es: 'Factor de potencia', ar: 'معامل القدرة' }, @@ -415,6 +424,35 @@ 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') { + 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 }); + if (p.inputVoltageRange) rows.push({ labelKey: '输入电压范围', value: p.inputVoltageRange }); + if (p.inputFrequency) rows.push({ labelKey: '输入频率', value: p.inputFrequency }); + if (p.inputPowerFactor) rows.push({ labelKey: '输入功率因数', value: p.inputPowerFactor }); + if (p.outputVoltage) rows.push({ labelKey: '输出电压', value: p.outputVoltage }); + if (p.outputVoltageRange) rows.push({ labelKey: '输出电压范围', value: p.outputVoltageRange }); + if (p.frequencyRangeBatteryMode) rows.push({ labelKey: '频率范围(电池模式)', value: p.frequencyRangeBatteryMode }); + if (p.currentCrestRatio) rows.push({ labelKey: '峰值电流比', value: p.currentCrestRatio }); + if (p.harmonicDistortion) rows.push({ labelKey: '谐波失真', value: p.harmonicDistortion }); + if (p.transferTimeAcToBattery) rows.push({ labelKey: '转换时间(市电到电池)', value: p.transferTimeAcToBattery }); + if (p.transferTime) rows.push({ labelKey: '转换时间', value: p.transferTime }); + if (p.waveform) rows.push({ labelKey: '波形', value: p.waveform }); + if (p.efficiencyAcMode) rows.push({ labelKey: '效率(市电模式)', value: p.efficiencyAcMode }); + if (p.efficiencyBatteryMode) rows.push({ labelKey: '效率(电池模式)', value: p.efficiencyBatteryMode }); + if (p.batterySpec) rows.push({ labelKey: '电池型号和数量', value: p.batterySpec }); + if (p.chargeCurrent) rows.push({ labelKey: '充电电流', value: p.chargeCurrent }); + if (p.chargeTime) rows.push({ labelKey: '充电时间', value: p.chargeTime }); + if (p.chargingVoltage) rows.push({ labelKey: '充电电压', value: p.chargingVoltage }); + if (p.lcdDisplay) rows.push({ labelKey: 'LCD显示', value: p.lcdDisplay }); + 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.humidity) rows.push({ labelKey: '湿度', value: p.humidity }); + if (p.noiseLevel) rows.push({ labelKey: '噪音', value: p.noiseLevel }); + 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') { const maxKW = computeMaxPowerKW(p.ratedPower, p.ratedPowerUnit, p.powerFactor); if (p.ratedPower) rows.push({ labelKey: '视载功率', value: `${p.ratedPower} ${p.ratedPowerUnit || 'VA'}` }); @@ -522,6 +560,16 @@ const blankProduct = () => ({ interfacePort: '', // 控制管理/接口,如 "USB/RS232 port(optional), support windows xp/vista, 7/8/11 and MAC" humidity: '', // 湿度,如 "0-90% RH@0-40℃(Non-condensing)" noiseLevel: '', // 噪音,如 "Less than 40dB(1m spacing)" + // 机架式UPS(真双变换在线式)专属字段 + phase: '', // 相数,如 "1-phase input/1-phase output" + inputPowerFactor: '', // 输入功率因数,如 "≥0.99@100% load" + transferTimeAcToBattery: '', // 转换时间(市电到电池),如 "0ms" + currentCrestRatio: '', // 峰值电流比,如 "3:1" + harmonicDistortion: '', // 谐波失真,如 "≤3% THD (Linear Load), ≤5% THD (Non-linear Load)" + efficiencyAcMode: '', // 效率(市电模式),如 "88%" + efficiencyBatteryMode: '', // 效率(电池模式),如 "83%" + chargingVoltage: '', // 充电电压,如 "27.4VDC±1%" + optionalSnmp: '', // 可选SNMP,如 "Power management from SNMP manager and web browser" batterySpec: '', // 电池型号和数量,如 "12V4.5AH*1"(迷你UPS/离线式/在线互动式UPS共用) dimensions: '', // 尺寸(mm)(迷你UPS/离线式/在线互动式UPS共用) netWeight: '', // 净重(kg)(迷你UPS/离线式/在线互动式UPS共用) @@ -570,6 +618,38 @@ function powerInfoItems(p, categories) { if (p.netWeight) items.push({ key: 'weight', label: '净重(kg)', value: p.netWeight }); return items; } + if (isUpsCategory(cat) && p.type === '机架式UPS') { + const items = []; + if (p.phase) items.push({ key: 'phase', label: '相数', value: p.phase }); + if (p.powerOrCapacity) items.push({ key: 'capacity', label: '容量', value: p.powerOrCapacity }); + if (p.inputVoltage) items.push({ key: 'inputvoltage', label: '输入电压', value: p.inputVoltage }); + if (p.inputVoltageRange) items.push({ key: 'inputvoltagerange', label: '输入电压范围', value: p.inputVoltageRange }); + if (p.inputFrequency) items.push({ key: 'inputfreq', label: '输入频率', value: p.inputFrequency }); + if (p.inputPowerFactor) items.push({ key: 'inputpf', label: '输入功率因数', value: p.inputPowerFactor }); + if (p.outputVoltage) items.push({ key: 'outputvoltage', label: '输出电压', value: p.outputVoltage }); + if (p.outputVoltageRange) items.push({ key: 'outputvoltagerange', label: '输出电压范围', value: p.outputVoltageRange }); + if (p.frequencyRangeBatteryMode) items.push({ key: 'freqrange', label: '频率范围(电池模式)', value: p.frequencyRangeBatteryMode }); + if (p.currentCrestRatio) items.push({ key: 'crestratio', label: '峰值电流比', value: p.currentCrestRatio }); + if (p.harmonicDistortion) items.push({ key: 'thd', label: '谐波失真', value: p.harmonicDistortion }); + if (p.transferTimeAcToBattery) items.push({ key: 'transferacbat', label: '转换时间(市电到电池)', value: p.transferTimeAcToBattery }); + if (p.transferTime) items.push({ key: 'transfertime', label: '转换时间', value: p.transferTime }); + if (p.waveform) items.push({ key: 'waveform', label: '波形', value: p.waveform }); + if (p.efficiencyAcMode) items.push({ key: 'effac', label: '效率(市电模式)', value: p.efficiencyAcMode }); + if (p.efficiencyBatteryMode) items.push({ key: 'effbat', label: '效率(电池模式)', value: p.efficiencyBatteryMode }); + if (p.batterySpec) items.push({ key: 'batteryspec', label: '电池型号和数量', value: p.batterySpec }); + if (p.chargeCurrent) items.push({ key: 'chargecurrent', label: '充电电流', value: p.chargeCurrent }); + if (p.chargeTime) items.push({ key: 'chargetime', label: '充电时间', value: p.chargeTime }); + if (p.chargingVoltage) items.push({ key: 'chargingvoltage', label: '充电电压', value: p.chargingVoltage }); + if (p.lcdDisplay) items.push({ key: 'lcddisplay', label: 'LCD显示', value: p.lcdDisplay }); + 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.humidity) items.push({ key: 'humidity', label: '湿度', value: p.humidity }); + if (p.noiseLevel) items.push({ key: 'noiselevel', label: '噪音', value: p.noiseLevel }); + if (p.interfacePort) items.push({ key: 'interfaceport', label: '控制管理', value: p.interfacePort }); + if (p.optionalSnmp) items.push({ key: 'snmp', label: '可选SNMP', value: p.optionalSnmp }); + return items; + } if (isUpsCategory(cat) && p.type !== '迷你UPS') { const maxKW = computeMaxPowerKW(p.ratedPower, p.ratedPowerUnit, p.powerFactor); return [ @@ -1987,6 +2067,11 @@ function MainApp({ username, onLogout }) { lcdDisplay: p.lcdDisplay || '', ledDisplay: p.ledDisplay || '', fullProtection: p.fullProtection || '', alarmInfo: p.alarmInfo || '', interfacePort: p.interfacePort || '', humidity: p.humidity || '', noiseLevel: p.noiseLevel || '', + phase: p.phase || '', inputPowerFactor: p.inputPowerFactor || '', + transferTimeAcToBattery: p.transferTimeAcToBattery || '', currentCrestRatio: p.currentCrestRatio || '', + harmonicDistortion: p.harmonicDistortion || '', efficiencyAcMode: p.efficiencyAcMode || '', + efficiencyBatteryMode: p.efficiencyBatteryMode || '', chargingVoltage: p.chargingVoltage || '', + optionalSnmp: p.optionalSnmp || '', batterySpec: p.batterySpec || '', dimensions: p.dimensions || '', netWeight: p.netWeight || '', notes: p.notes || '', })); setAiImportDrafts(drafts); @@ -2037,6 +2122,11 @@ function MainApp({ username, onLogout }) { lcdDisplay: d.lcdDisplay || '', ledDisplay: d.ledDisplay || '', fullProtection: d.fullProtection || '', alarmInfo: d.alarmInfo || '', interfacePort: d.interfacePort || '', humidity: d.humidity || '', noiseLevel: d.noiseLevel || '', + phase: d.phase || '', inputPowerFactor: d.inputPowerFactor || '', + transferTimeAcToBattery: d.transferTimeAcToBattery || '', currentCrestRatio: d.currentCrestRatio || '', + harmonicDistortion: d.harmonicDistortion || '', efficiencyAcMode: d.efficiencyAcMode || '', + efficiencyBatteryMode: d.efficiencyBatteryMode || '', chargingVoltage: d.chargingVoltage || '', + optionalSnmp: d.optionalSnmp || '', batterySpec: d.batterySpec || '', dimensions: d.dimensions || '', netWeight: d.netWeight || '', notes: d.notes || '', }; } @@ -3622,6 +3712,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 maxKW = computeMaxPowerKW(draft.ratedPower, draft.ratedPowerUnit, draft.powerFactor); const extraNames = draft.extraNames || []; const [imageUploading, setImageUploading] = useState(false); @@ -3768,7 +3859,60 @@ function ProductForm({ draft, setDraft, onSave, onCancel, categories, onManage, )} - {isUps && isOfflineOrLI ? ( + {isUps && isRackUps ? ( + <> +
+
相数 set({ phase: e.target.value })} placeholder="如:1-phase input/1-phase output" />
+
容量 set({ powerOrCapacity: e.target.value })} placeholder="如:1000VA/800W" />
+
+
+
输入电压(标称电压) set({ inputVoltage: e.target.value })} placeholder="如:100/110/115/120/127VAC or 200/208/220/230/240VAC" />
+
输入电压范围 set({ inputVoltageRange: e.target.value })} placeholder="如:85-140VAC or 160-280VAC at100%load" />
+
+
+
输入频率范围 set({ inputFrequency: e.target.value })} placeholder="如:40Hz~70Hz" />
+
输入功率因数 set({ inputPowerFactor: e.target.value })} placeholder="如:≥0.99@100% load" />
+
+
+
输出电压 set({ outputVoltage: e.target.value })} placeholder="如:100/110/115/120/127VAC or 200/208/220/230/240VAC" />
+
输出电压范围(电压调整率) set({ outputVoltageRange: e.target.value })} placeholder="如:±1%" />
+
+
+
频率范围(电池模式) set({ frequencyRangeBatteryMode: e.target.value })} placeholder="如:50Hz±0.25Hz or 60Hz±0.3Hz" />
+
峰值电流比 set({ currentCrestRatio: e.target.value })} placeholder="如:3:1" />
+
+
谐波失真 set({ harmonicDistortion: e.target.value })} placeholder="如:≤3% THD (Linear Load), ≤5% THD (Non-linear Load)" />
+
+
转换时间(市电到电池) set({ transferTimeAcToBattery: e.target.value })} placeholder="如:0ms" />
+
转换时间(逆变到旁路) set({ transferTime: e.target.value })} placeholder="如:4ms (Typical)" />
+
+
+
波形(电池模式) set({ waveform: e.target.value })} placeholder="如:pure sine wave" />
+
效率(市电模式) set({ efficiencyAcMode: e.target.value })} placeholder="如:88%" />
+
+
+
效率(电池模式) set({ efficiencyBatteryMode: e.target.value })} placeholder="如:83%" />
+
充电电流 set({ chargeCurrent: e.target.value })} placeholder="如:1.0A" />
+
+
+
充电电压 set({ chargingVoltage: e.target.value })} placeholder="如:27.4VDC±1%" />
+
充电时间 set({ chargeTime: e.target.value })} placeholder="如:4 hours recover to 90% capacity" />
+
+
电池型号和数量 set({ batterySpec: spaceToAsterisk(e.target.value) })} placeholder="如:12V/9AH x2" />
+
+
尺寸(mm) set({ dimensions: spaceToAsterisk(e.target.value) })} placeholder="如:310*438*88[2U]" />
+
净重(kg) set({ netWeight: e.target.value })} placeholder="如:12" />
+
+
LCD显示(能显示哪些信息) set({ lcdDisplay: e.target.value })} placeholder="如:UPS status, Load level, Battery level, Input/Output voltage" />
+
警告提示(各种蜂鸣报警的规律)