From 318753b8c9b776b1fe972f9b7b770cde3f40b660 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Wed, 6 Nov 2024 14:11:06 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=94=AE=E5=90=8E=E7=AE=A1=E7=90=86?= =?UTF-8?q?=20=E6=8C=89=E7=85=A7=E6=96=B0=E7=89=88prd=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=94=AE=E5=90=8E=E7=BB=B4=E6=8A=A4=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=87=BA=E5=BA=93=E5=89=8D=E7=AB=AF=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E4=B8=94=E4=BF=AE=E6=94=B9=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=A1=A8=E5=A4=B4=E7=9A=84=E6=8C=89=E9=92=AE=EF=BC=8C?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=87=87=E7=94=A8=E7=BB=9F=E4=B8=80=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=EF=BC=9B=E4=BF=AE=E6=94=B9=E6=93=8D=E4=BD=9C=E6=A0=8F?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F=E6=A0=B7=E5=BC=8F=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=EF=BC=8C=E6=93=8D=E4=BD=9C=E6=A0=8F=E5=BC=95=E7=94=A8?= =?UTF-8?q?$.table.dropdownToggle=E6=96=B9=E6=B3=95=EF=BC=9B=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E5=A4=9A=E4=BD=99=E7=9A=84=E5=88=97=E8=A1=A8=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=AD=97=E6=AE=B5=EF=BC=9B=E4=BA=A4=E4=BB=98=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E3=80=81=E6=94=B6=E8=B4=A7=E5=9C=B0=E5=9D=80=E3=80=81?= =?UTF-8?q?=E5=85=B3=E8=81=94=E8=AE=A2=E5=8D=95=E5=8F=B7=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=8A=A0=E4=B8=8Atooltip=E6=96=B9=E6=B3=95=EF=BC=8C=E8=B6=85?= =?UTF-8?q?=E8=BF=875=E4=B8=AA=E5=AD=97=E7=AC=A6=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=86=85=E5=AE=B9=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=94=AE=E5=90=8E=E5=87=BA=E5=BA=93=E5=8D=95?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E6=96=B9=E6=B3=95=EF=BC=8C=E5=AD=98=E5=85=A5?= =?UTF-8?q?=E5=94=AE=E5=90=8E=E7=BB=B4=E6=8A=A4=E8=AE=BE=E5=A4=87=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E7=9A=84=E5=80=BC=E6=9D=A5=E8=87=AA=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=9F=A5=E6=89=BE=E7=9A=84=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/WarehouseOutOrderServiceImpl.java | 11 +- .../aftersalesOutOrder.html | 369 +++++++++--------- 2 files changed, 186 insertions(+), 194 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderServiceImpl.java index 0cd82f3b..a8bfce46 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderServiceImpl.java @@ -309,14 +309,17 @@ public class WarehouseOutOrderServiceImpl implements IWarehouseOutOrderService //生成售后出库单 private int buildAftersalesOutOrder(WarehouseOutOrder warehouseOutOrder) { + String outOrderCode = warehouseOutOrder.getOutOrderCode(); + WarehouseOutOrder newWarehouseOutOrder = warehouseOutOrderMapper.selectWarehouseOutOrderByCode(outOrderCode); + AftersalesOutOrder aftersalesOutOrder = new AftersalesOutOrder(); String loginName = ShiroUtils.getLoginName(); - warehouseOutOrder.setCreateBy(loginName); - warehouseOutOrder.setCreateTime(new Date()); + newWarehouseOutOrder.setCreateBy(loginName); + newWarehouseOutOrder.setCreateTime(new Date()); //更改出库状态为 第一次维护设备信息 - warehouseOutOrder.setWarehouseOutStatus("1"); - BeanUtils.copyProperties(warehouseOutOrder,aftersalesOutOrder); + newWarehouseOutOrder.setWarehouseOutStatus("1"); + BeanUtils.copyProperties(newWarehouseOutOrder,aftersalesOutOrder); return aftersalesOutOrderMapper.insertAftersalesOutOrder(aftersalesOutOrder); } diff --git a/ruoyi-admin/src/main/resources/templates/aftersales/aftersalesOutOrder/aftersalesOutOrder.html b/ruoyi-admin/src/main/resources/templates/aftersales/aftersalesOutOrder/aftersalesOutOrder.html index d3af55f5..784e1b35 100644 --- a/ruoyi-admin/src/main/resources/templates/aftersales/aftersalesOutOrder/aftersalesOutOrder.html +++ b/ruoyi-admin/src/main/resources/templates/aftersales/aftersalesOutOrder/aftersalesOutOrder.html @@ -4,92 +4,81 @@ -
-
-
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - - - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
+
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+
+
+