From d9065d33d253ed58ff746af8ed7f3e9b6e890c49 Mon Sep 17 00:00:00 2001 From: chenhao <852066789@qq.com> Date: Tue, 19 Aug 2025 11:37:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(partner):=20=E6=96=B0=E5=A2=9E=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=94=A8=E6=88=B7=E5=AD=97=E6=AE=B5=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 PartnerInfo 模型中添加 systemUserId 和 systemUserName 字段 - 更新相关 mapper 和 SQL 文件以支持新增字段 - 修改前端模板,增加系统用户选择功能 -优化订单审批流程,增加对代理商系统用户的验证 - 修复邮件发送开关逻辑 --- .../inventory/delivery/delivery.html | 2 +- .../templates/inventory/execution/edit.html | 8 ++-- .../templates/inventory/outer/edit.html | 18 +++++---- .../templates/inventory/outer/outer.html | 6 +-- .../templates/layout/product-list.html | 7 +++- .../templates/project/order/edit.html | 9 +++-- .../templates/system/partner/add.html | 38 ++++++++++++++++++- .../templates/system/partner/edit.html | 32 ++++++++++++++++ .../com/ruoyi/sip/domain/PartnerInfo.java | 2 + .../ruoyi/sip/domain/ProjectOrderInfo.java | 2 + .../ruoyi/sip/mapper/PartnerInfoMapper.java | 1 + .../sip/service/IPartnerInfoService.java | 1 + .../impl/ExecutionTrackServiceImpl.java | 2 +- .../impl/InventoryOuterServiceImpl.java | 20 ++++++---- .../service/impl/PartnerInfoServiceImpl.java | 9 +++++ .../impl/ProjectOrderInfoServiceImpl.java | 6 +++ .../com/ruoyi/sip/utils/TemplateMailUtil.java | 2 +- .../mapper/sip/ProjectOrderInfoMapper.xml | 2 +- .../mapper/system/PartnerInfoMapper.xml | 25 ++++++++---- 19 files changed, 151 insertions(+), 41 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/inventory/delivery/delivery.html b/ruoyi-admin/src/main/resources/templates/inventory/delivery/delivery.html index 89c59390..a2b6b26f 100644 --- a/ruoyi-admin/src/main/resources/templates/inventory/delivery/delivery.html +++ b/ruoyi-admin/src/main/resources/templates/inventory/delivery/delivery.html @@ -137,7 +137,7 @@ align: 'center', formatter: function (value, row, index) { var actions = []; - actions.push('发货记录 '); + actions.push('发货记录 '); return actions.join(''); } diff --git a/ruoyi-admin/src/main/resources/templates/inventory/execution/edit.html b/ruoyi-admin/src/main/resources/templates/inventory/execution/edit.html index 2b24e196..50be29d6 100644 --- a/ruoyi-admin/src/main/resources/templates/inventory/execution/edit.html +++ b/ruoyi-admin/src/main/resources/templates/inventory/execution/edit.html @@ -519,7 +519,7 @@ formatter: function (value, row, index) { var actions = []; let disabled = Number(row.quantity) <= Number(row.generatedQuantity) + Number(row.confirmQuantity) - actions.push(`出库`); return actions.join(''); } @@ -761,13 +761,13 @@ function initWarehouseTable(data) { formatter: function (value, row, index) { var actions = []; if (row.outerStatus === '1' || row.outerStatus === '4') { - actions.push(`撤销`); - actions.push(`确认出库`); + actions.push(`撤销`); + actions.push(`确认出库`); } else { // actions.push('查看详情'); - actions.push(`查看详情`); + actions.push(`查看详情`); } return actions.join(''); } diff --git a/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html b/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html index 7eb77645..bdf9ee95 100644 --- a/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html +++ b/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html @@ -112,8 +112,8 @@
| 物流单号: | -+ | + | 发货方式: |