Update App.jsx via upload script - 2026-09-20 11:30:10

This commit is contained in:
mike 2026-09-20 11:30:21 +08:00
parent af97a49042
commit 1be0fe5270
1 changed files with 3 additions and 3 deletions

View File

@ -660,7 +660,7 @@ function productExportRows(p, categories) {
if (p.safetyStandard) rows.push({ labelKey: '安规/EMC标准', value: p.safetyStandard });
if (p.gridStandard) rows.push({ labelKey: '并网标准', value: p.gridStandard });
if (p.otherStandard) rows.push({ labelKey: '其他标准', value: p.otherStandard });
} else if (isBatteryCategory(cat) && p.type === 'UPS配套锂电池系统') {
} else if (isBatteryCategory(cat)) {
if (p.moduleType) rows.push({ labelKey: '模块类型', value: p.moduleType });
if (p.moduleCapacity) rows.push({ labelKey: '额定容量', value: p.moduleCapacity });
if (p.cellType) rows.push({ labelKey: '电芯类型', value: p.cellType });
@ -1018,7 +1018,7 @@ function powerInfoItems(p, categories) {
insertExtraSpecs(items, p.extraSpecs, 'label');
return items;
}
if (isBatteryCategory(cat) && p.type === 'UPS配套锂电池系统') {
if (isBatteryCategory(cat)) {
const items = [];
if (p.moduleType) items.push({ key: 'moduletype', label: '模块类型', value: p.moduleType });
if (p.moduleCapacity) items.push({ key: 'modulecap', label: '额定容量', value: p.moduleCapacity });
@ -5293,7 +5293,7 @@ function ProductForm({ draft, setDraft, onSave, onCancel, categories, onManage,
// 其他任何细分品类(机架式、在线式高频、工频、高频塔式、模块化,以及以后在"产品分组"里新增的
// 任何自定义细分品类)都自动落入这套完整的大功率UPS字段集,不用每次新增分类都要改代码。
const isRackLikeUps = isUps && !isMiniUps && !isOfflineOrLI;
const isBatterySystem = isBatteryCategory(cat) && draft.type === 'UPS配套锂电池系统';
const isBatterySystem = isBatteryCategory(cat);
// 光伏逆变器大类下只有这一套字段集,所以整个大类直接通用,同样不管以后新增什么细分品类名字
const isSolarHybridInverter = isInverterCategory(cat);
const maxKW = computeMaxPowerKW(draft.ratedPower, draft.ratedPowerUnit, draft.powerFactor);