From 59eb4b23ccf55900a945b57a9261694a84f0c507 Mon Sep 17 00:00:00 2001
From: liuminghui <468701464@qq.com>
Date: Thu, 29 Oct 2026 11:37:31 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86=E5=A5=97?=
=?UTF-8?q?=E9=A4=90=E5=8E=BB=E9=99=A4=E7=94=9F=E6=95=88=E5=92=8C=E5=A4=B1?=
=?UTF-8?q?=E6=95=88=E6=97=A5=E6=9C=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../impl/BmsCustomerPriceSetServiceImpl.java | 25 ++++-------
.../customerinfo/customeredit/index.vue | 42 ++-----------------
.../customerinfo/index.vue | 25 +----------
3 files changed, 14 insertions(+), 78 deletions(-)
diff --git a/bms-back/bms-system/src/main/java/com/bms/customer/customerinfo/service/impl/BmsCustomerPriceSetServiceImpl.java b/bms-back/bms-system/src/main/java/com/bms/customer/customerinfo/service/impl/BmsCustomerPriceSetServiceImpl.java
index 022d5376..834d556c 100644
--- a/bms-back/bms-system/src/main/java/com/bms/customer/customerinfo/service/impl/BmsCustomerPriceSetServiceImpl.java
+++ b/bms-back/bms-system/src/main/java/com/bms/customer/customerinfo/service/impl/BmsCustomerPriceSetServiceImpl.java
@@ -73,14 +73,6 @@ public class BmsCustomerPriceSetServiceImpl implements IBmsCustomerPriceSetServi
{
throw new ServiceException("仅生效中的套餐允许绑定,当前套餐状态不可用");
}
- if (bind.getPrBegindate() == null)
- {
- throw new ServiceException("绑定生效日期不能为空");
- }
- if (bind.getPrEnddate() != null && bind.getPrBegindate().after(bind.getPrEnddate()))
- {
- throw new ServiceException("失效日期不能早于生效日期");
- }
if (bind.getBindPriority() == null || bind.getBindPriority() < 1)
{
bind.setBindPriority(1);
@@ -105,6 +97,15 @@ public class BmsCustomerPriceSetServiceImpl implements IBmsCustomerPriceSetServi
if (existing != null)
{
bind.setCustomerPricesetId(existing.getCustomerPricesetId());
+ // 弹框已不再采集生效/失效日期,未传入时保留库中原值
+ if (bind.getPrBegindate() == null)
+ {
+ bind.setPrBegindate(existing.getPrBegindate());
+ }
+ if (bind.getPrEnddate() == null)
+ {
+ bind.setPrEnddate(existing.getPrEnddate());
+ }
rows = bindMapper.updateBind(bind);
}
else
@@ -144,14 +145,6 @@ public class BmsCustomerPriceSetServiceImpl implements IBmsCustomerPriceSetServi
{
throw new ServiceException("仅生效中的套餐允许绑定,当前套餐状态不可用");
}
- if (req.getPrBegindate() == null)
- {
- throw new ServiceException("绑定生效日期不能为空");
- }
- if (req.getPrEnddate() != null && req.getPrBegindate().after(req.getPrEnddate()))
- {
- throw new ServiceException("失效日期不能早于生效日期");
- }
Integer priority = (req.getBindPriority() == null || req.getBindPriority() < 1) ? 1 : req.getBindPriority();
boolean overwrite = Boolean.TRUE.equals(req.getOverwriteExisting());
diff --git a/bms-front/src/views/customersuppliermanagement/customerinfo/customeredit/index.vue b/bms-front/src/views/customersuppliermanagement/customerinfo/customeredit/index.vue
index 9082a236..0a9b1060 100644
--- a/bms-front/src/views/customersuppliermanagement/customerinfo/customeredit/index.vue
+++ b/bms-front/src/views/customersuppliermanagement/customerinfo/customeredit/index.vue
@@ -661,7 +661,6 @@
filterable
placeholder="请选择生效中的套餐"
style="width: 100%;"
- @change="onPriceSetChange"
>