From f2f17f41f696bb862e2d9475d0e84a3b8aab9dc9 Mon Sep 17 00:00:00 2001 From: wuweihua <88888888> Date: Tue, 8 Sep 2026 17:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ExcelImportDialog/index.vue | 40 ++++++++++++++++++- .../src/views/price/basic/product/index.vue | 4 +- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/bms-front/src/components/ExcelImportDialog/index.vue b/bms-front/src/components/ExcelImportDialog/index.vue index e3c6c92d..3b6adf2f 100644 --- a/bms-front/src/components/ExcelImportDialog/index.vue +++ b/bms-front/src/components/ExcelImportDialog/index.vue @@ -50,7 +50,10 @@
- {{ updateSupportLabel }} + + {{ updateSupportLabel }} + +
{{ updateSupportHint }}
@@ -105,6 +108,11 @@ const props = defineProps({ type: String, default: '是否更新已经存在的数据' }, + // 勾选框下方补充说明(长文案放这里,避免与复选框挤叠) + updateSupportHint: { + type: String, + default: '' + }, // 打开时是否默认勾选“更新已存在” defaultUpdateSupport: { type: Boolean, @@ -350,8 +358,38 @@ defineExpose({ open }) } .update-checkbox { + display: flex !important; + align-items: flex-start; + height: auto !important; + white-space: normal; font-weight: 500; color: var(--el-text-color-primary); + width: 100%; +} + +.update-checkbox :deep(.el-checkbox__input) { + margin-top: 3px; + flex-shrink: 0; +} + +.update-checkbox :deep(.el-checkbox__label) { + white-space: normal; + line-height: 1.5; + word-break: break-word; + padding-left: 8px; +} + +.update-label { + display: inline-block; + line-height: 1.5; +} + +.update-hint { + margin: 6px 0 0 22px; + font-size: 12px; + color: var(--el-text-color-secondary); + line-height: 1.6; + word-break: break-word; } .import-tips { diff --git a/bms-front/src/views/price/basic/product/index.vue b/bms-front/src/views/price/basic/product/index.vue index 17a40002..6c18b83d 100644 --- a/bms-front/src/views/price/basic/product/index.vue +++ b/bms-front/src/views/price/basic/product/index.vue @@ -223,8 +223,10 @@ ref="importRef" title="产品 Excel 导入" action="/price/product/importData" + width="560px" :default-update-support="true" - update-support-label="是否更新已存在的产品主数据(国家明细:新生效日晚于上次则保留历史,上次失效日=本次生效日)" + update-support-label="是否更新已存在的产品主数据" + update-support-hint="国家明细:新生效日晚于上次则保留历史,上次失效日=本次生效日" @success="() => tableRef.refresh()" />