From 421f06fcc104c859fc6c1e7d370ac9870773be42 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Wed, 12 Jun 2024 20:33:56 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E7=94=9F=E4=BA=A7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=9A=E4=BF=AE=E6=94=B9=E6=96=B0=E5=A2=9E=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E5=A7=94=E5=86=85=E5=85=A5=E5=BA=93=E5=8D=95=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=96=B0=E5=A2=9E=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=94=80=E5=94=AE=E8=AE=A2=E5=8D=95=E7=B1=BB=E5=9E=8B=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=EF=BC=8C=E6=96=B0=E5=A2=9E=E7=94=9F=E4=BA=A7=E5=A7=94?= =?UTF-8?q?=E5=86=85=E5=85=A5=E5=BA=93=E5=AF=B9=E8=B1=A1=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=85=A5=E5=BA=93=E5=A7=94=E5=86=85=E5=8A=A0=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E6=8A=A5=E4=BB=B7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SysMakeOrderController.java | 13 + .../com/ruoyi/system/domain/SysMakeOrder.java | 13 +- .../templates/erp/inboundOrder/add.html | 351 ++++++++++++++++-- .../erp/inboundOrder/inboundOrder.html | 144 ++++--- .../system/makeorder/addProcessInbound.html | 316 +++++----------- .../templates/system/makeorder/addpick.html | 8 +- 6 files changed, 517 insertions(+), 328 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java index 147e2f46..2a1aabbb 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysMakeOrderController.java @@ -9,10 +9,12 @@ import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.erp.service.IErpMaterialService; import com.ruoyi.system.domain.SysMakeOrder; import com.ruoyi.system.domain.SysMakeorderDept; +import com.ruoyi.system.domain.SysSalesOrder; import com.ruoyi.system.domain.SysSalesOrderChild; import com.ruoyi.system.dto.SysEquipMaterialDto; import com.ruoyi.system.dto.SysMakeorderDeptDto; @@ -52,6 +54,9 @@ public class SysMakeOrderController extends BaseController @Autowired private ISysSalesOrderChildService salesOrderChildService; + @Autowired + private ISysSalesOrderService salesOrderService; + @GetMapping("/test") public AjaxResult test(){ sysMakeOrderService.generateMakeOrderBySalesOrderCode("XS20240411007"); @@ -108,6 +113,10 @@ public class SysMakeOrderController extends BaseController { mmap.put("currentUser", ShiroUtils.getSysUser()); SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); + SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); + if(StringUtils.isNotNull(sysSalesOrder)){ + sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); + } mmap.put("sysMakeOrder", sysMakeOrder); return prefix + "/addPick"; } @@ -120,6 +129,10 @@ public class SysMakeOrderController extends BaseController { mmap.put("currentUser", ShiroUtils.getSysUser()); SysMakeOrder sysMakeOrder = sysMakeOrderService.selectSysMakeOrderById(id); + SysSalesOrder sysSalesOrder = salesOrderService.selectSysSalesOrderBySalesOrderCode(sysMakeOrder.getSaleNo()); + if(StringUtils.isNotNull(sysSalesOrder)){ + sysMakeOrder.setOrderType(sysSalesOrder.getSalesOrderType()); + } mmap.put("sysMakeOrder", sysMakeOrder); return prefix + "/addProcessInbound"; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysMakeOrder.java b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysMakeOrder.java index 8ef85dd1..5055782f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysMakeOrder.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysMakeOrder.java @@ -42,6 +42,8 @@ public class SysMakeOrder extends BaseEntity @Excel(name = "关联销售订单号") private String saleNo; + @Excel(name = "订单类型") + private String orderType; /** 业务员 */ @Excel(name = "业务员") private String Salesman; @@ -158,7 +160,16 @@ public class SysMakeOrder extends BaseEntity this.Salesman = Salesman; } - public String getSalesman() + + public String getOrderType() { + return orderType; + } + + public void setOrderType(String orderType) { + this.orderType = orderType; + } + + public String getSalesman() { return Salesman; } diff --git a/ruoyi-admin/src/main/resources/templates/erp/inboundOrder/add.html b/ruoyi-admin/src/main/resources/templates/erp/inboundOrder/add.html index a36608c4..23f8dbe5 100644 --- a/ruoyi-admin/src/main/resources/templates/erp/inboundOrder/add.html +++ b/ruoyi-admin/src/main/resources/templates/erp/inboundOrder/add.html @@ -6,18 +6,6 @@
-
- -
- -
-
-
- -
- -
-
@@ -30,39 +18,338 @@
-
- +
+
- +
-
- -
- -
-
-
- +
+
-
- -
- -
-
+
+
+