-
- 添加营养耗材
-
耗材费用: 0.00
```
---
Thought Process
现在我还需要调整supplies-actions的CSS样式,因为现在只有费用显示,不需要justify-content: space-between了。
---
Edit file: src/views/parameter/basicPublicTemplate/enteralNutritionTemplate/addOrEditForm.vue
undefined
**Chunk 1**
Lines added: 8, lines removed: 2
```diff
@@ -1383,11 +1383,17 @@
}
- .product-actions,
- .supplies-actions {
+ .product-actions {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20px;
}
+
+ .supplies-actions {
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ margin-top: 20px;
+ }
.left-actions {
```
---
Thought Process
现在我还可以清理一些不再需要的CSS样式,比如.add-supplies-link的样式,因为已经不使用了。
---
Edit file: src/views/parameter/basicPublicTemplate/enteralNutritionTemplate/addOrEditForm.vue
undefined
**Chunk 1**
Lines added: undefined, lines removed: 8
```diff
@@ -1373,13 +1373,5 @@
}
- .add-supplies-link {
- color: #000000;
- cursor: pointer;
- text-decoration: underline;
- }
- .add-supplies-link:hover {
- color: #333333;
- }
.product-actions {
```
---
Thought Process
我应该考虑一下是否需要移除`addSupplies`函数,但是想想可能会在其他地方用到(比如用代码逻辑添加),或者未来可能需要恢复,所以暂时保留这些函数比较好。
主要的修改已经完成:
1. 移除了底部的"添加营养耗材"按钮
2. 移除了空状态下的"+ 添加营养耗材"链接
3. 调整了底部操作栏的布局,现在只显示费用
4. 清理了不再使用的CSS样式
用户现在看不到任何新增耗材的按钮了,但仍然保留了删除功能和费用显示。
---
完美!我已经成功移除了营养耗材的所有新增按钮。以下是具体的修改:
## 🚫 移除的新增按钮
### 1. **底部操作栏按钮**
- 移除了"添加营养耗材"按钮
- 保留了"耗材费用"显示
- 调整了布局,费用显示现在靠右对齐
### 2. **空状态添加链接**
- 移除了"+ 添加营养耗材"的可点击链接
- 保留了"暂无数据"的提示文字
### 3. **样式优化**
- 移除了不再使用的 `.add-supplies-link` 相关样式
- 调整了 `.supplies-actions` 的布局为右对齐
- 保持了与营养产品表格样式的一致性
## ✅ 保留的功能
- ✅ **删除功能**: 每行的
---