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 @@ -
-
-
-
-
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - - - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- - -
-
-
+
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+
+
+