From 1f578c5b8fb9bd32d2904ee004b0f10948757bba Mon Sep 17 00:00:00 2001 From: chenhao Date: Wed, 15 Oct 2025 15:16:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(project):=20=E6=9B=B4=E6=96=B0=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=E6=8A=98=E6=89=A3?= =?UTF-8?q?=E6=96=87=E6=A1=88=E5=8F=8A=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91?= =?UTF-8?q?-=20=E5=B0=86"=E5=88=A9=E6=B6=A6=E6=8A=98=E6=89=A3"=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E4=BF=AE=E6=94=B9=E4=B8=BA"=E5=95=86=E5=8A=A1?= =?UTF-8?q?=E6=8A=98=E6=89=A3"=20-=20=E4=BF=AE=E6=94=B9"=E7=BB=88=E7=AB=AF?= =?UTF-8?q?=E4=BA=A7=E5=93=81"=E4=B8=BA"=E7=A1=AC=E4=BB=B6=E4=BA=A7?= =?UTF-8?q?=E5=93=81"-=20=E4=BC=98=E5=8C=96=E6=80=BB=E4=BB=B7=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E9=80=BB=E8=BE=91=EF=BC=8C=E5=8C=BA=E5=88=86=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E3=80=81=E7=A1=AC=E4=BB=B6=E3=80=81=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=B0=8F=E8=AE=A1=20-=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=90=84=E5=88=86=E7=B1=BB=E6=8A=98=E5=90=8E=E5=B0=8F=E8=AE=A1?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E6=98=BE=E7=A4=BA-=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E6=A0=BC=E5=BC=8F=E5=8C=96=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E9=97=AE=E9=A2=98=20-=20=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=B5=81=E7=A8=8B=E4=B8=AD=E5=95=86=E5=8A=A1?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91-=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0CSS=E9=82=AE=E4=BB=B6=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=94=AF=E6=8C=81=20-=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E7=8A=B6=E6=80=81=E8=AE=BE=E7=BD=AE=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E9=81=BF=E5=85=8D=E9=87=8D=E5=A4=8D=E8=B5=8B?= =?UTF-8?q?=E5=80=BC=20-=E4=BF=AE=E5=A4=8D=E5=8F=91=E8=B4=A7=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E6=A0=A1=E9=AA=8C=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/inventory/outer/edit.html | 5 +- .../templates/layout/product-list.html | 69 +++++++++++++------ .../templates/project/order/approve.html | 3 +- .../web/exception/GlobalExceptionHandler.java | 2 + .../impl/OmsInventoryInnerServiceImpl.java | 4 +- .../impl/ProjectOrderInfoServiceImpl.java | 35 ++++++++-- 6 files changed, 85 insertions(+), 33 deletions(-) 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 00517089..834062ee 100644 --- a/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html +++ b/ruoyi-admin/src/main/resources/templates/inventory/outer/edit.html @@ -483,12 +483,13 @@ // return // } } else { + // arrays= productSnData.map(item => item.productSn) // if (productSnData.length != quantity) { // $.modal.msgError(`产品选中数量应与发货数量一致,应发货数量为[${quantity}]`) // return // } } - if (arrays.length<=0){ + if (productSnData.length <= 0 && arrays.length <= 0) { $.modal.msgError(`应发货数量应该大于0`) return } @@ -498,7 +499,7 @@ productSnList: arrays, logisticsCode: $('#logisticsCode').val(), productCode: productCode, - quantity: arrays.length, + quantity: productSnData.length <= 0 ? arrays.length : productSnData.length, warehouseId: warehouseId, logisticsCompany: $('#logisticsCompany').val(), deliveryType: $('#deliveryType').val(), diff --git a/ruoyi-admin/src/main/resources/templates/layout/product-list.html b/ruoyi-admin/src/main/resources/templates/layout/product-list.html index 5228b2fc..0c76e05d 100644 --- a/ruoyi-admin/src/main/resources/templates/layout/product-list.html +++ b/ruoyi-admin/src/main/resources/templates/layout/product-list.html @@ -25,7 +25,7 @@ 指导折扣 折扣 单价(¥) - 利润折扣 + 商务折扣 总价(¥) 折后总价(¥) 目录总价(¥) @@ -39,7 +39,7 @@
-

终端产品

+

硬件产品

@@ -55,7 +55,7 @@ 指导折扣 折扣 单价(¥) - 利润折扣 + 商务折扣 总价(¥) 折后总价(¥) 目录总价(¥) @@ -85,7 +85,7 @@ 指导折扣 折扣 单价(¥) - 利润折扣 + 商务折扣 总价(¥) 折后总价(¥) 目录总价(¥) @@ -106,7 +106,7 @@