| 问题描述 | 新型储能类型,实际并网容量信息页面,"新增储能单元"按钮要删除,应该只允许在项目基本信息里新增储能单元。 |
| 所属模块 | 实际并网信息 / - |
| 严重程度 | 严重(阻断流程:是) |
| 涉及类型 | 新型储能 |
| 提出人 | 文日明 |
| 处理人 / 状态 | 陈键泽 / 2.1.待开发 |

按钮定义 —— src/views/projectNew/components/actualInfo/components/tabItem.vue 第 66 行:
<th-button type="primary" icon="el-icon-plus" @click="addData"
v-if="!viewFlag && (swzOptions.includes(plantItem.type) || xxcnOptions.includes(plantItem.type))">
{{ xxcnOptions.includes(plantItem.type) ? '新增储能单元' : '新增发电单元' }}
</th-button>
xxcnOptions 对应"新型储能"类型,swzOptions 对应"生物质"类型;当前 v-if 条件对两种类型都放行,使新型储能项目在"实际并网容量信息"页面也能点击新增,与"只允许在项目基本信息里新增"的业务要求相冲突。
而"项目基本信息"页面确实已经提供了对应入口 —— src/views/projectNew/components/baseInfo/components/informationListXXCN.vue 第 403 行"新增发电单元"按钮(新型储能场站在基本信息里新增的储能单元,与实际并网容量信息展示的是同一份场站发电单元数据),证明"项目基本信息"入口链路完整可用,无需在"实际并网容量信息"页面重复保留入口。
修复代码文件:src/views/projectNew/components/actualInfo/components/tabItem.vue 第 66 行,去掉 xxcnOptions 分支,仅保留生物质(swzOptions)可在此页面新增:
<del><th-button type="primary" icon="el-icon-plus" @click="addData"
v-if="!viewFlag && (swzOptions.includes(plantItem.type) || xxcnOptions.includes(plantItem.type))">
{{ xxcnOptions.includes(plantItem.type) ? '新增储能单元' : '新增发电单元' }}
</th-button></del>
<ins><th-button type="primary" icon="el-icon-plus" @click="addData"
v-if="!viewFlag && swzOptions.includes(plantItem.type)">
新增发电单元
</th-button></ins>
同一行下方第 68 行的"删除储能单元/删除发电单元"按钮(delData)问题描述未提及需要一并移除,予以保留;如后续业务确认"实际并网容量信息"页面对新型储能也不应支持删除单元,可按同样方式收窄 v-if 条件。