feat: 优化原料库上传功能和标签管理

- 在 `AddRawMaterialDrawer` 组件中添加 `onUpdate` 事件以刷新数据
- 更新 `constants.ts` 中操作列的宽度
- 增加 Ant Select 和 Modal 的样式
- 新增批量添加、修改和详情的 API 函数
- 优化 `add-raw-material-drawer` 组件,增加标签输入和删除确认模态框
- 更新 `ant-select.scss` 和 `ant-modal.scss` 样式文件
This commit is contained in:
rd
2025-09-17 15:57:19 +08:00
parent c08b13673f
commit bf7963234e
8 changed files with 265 additions and 45 deletions

View File

@ -22,7 +22,7 @@
}
}
.ant-modal-body {
padding: 24px 20px;
padding: 20px 24px;
}
.ant-modal-footer {
margin-top: 0;
@ -38,5 +38,30 @@
}
}
}
.ant-modal-confirm-body-wrapper {
.ant-modal-confirm-title {
.anticon {
font-size: 24px;
}
}
.ant-modal-confirm-content {
margin-top: 8px;
color: var(--Text-2, #55585F);
font-family: $font-family-regular;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 22px;
}
.ant-modal-confirm-btns {
display: flex;
justify-content: end;
margin-top: 24px;
}
}
}
}

View File

@ -36,6 +36,20 @@
border-color: $color-error !important;
}
&:not(.ant-select-disabled) {
&:hover {
.ant-select-selector {
border-color: rgb(var(--primary-6)) !important;
}
}
}
&-disabled {
.ant-select-selector {
background-color: var(--BG-200, #f2f3f5) !important;
}
}
}
.ant-select {
@ -57,6 +71,7 @@
&.ant-select-multiple {
.ant-select-selector {
height: fit-content !important;
padding: 0 12px 0 4px !important;
.ant-select-selection-overflow-item {

View File

@ -3,6 +3,13 @@
padding: 8px 12px 4px 12px;
}
&:not(.ant-input-textarea-disabled) {
&:hover {
.ant-input {
border-color: rgb(var(--primary-6)) !important;
}
}
}
&.ant-input-textarea-show-count {
&::after {
position: absolute;