From 1931624cd606d7ed78a3a6d91b4ee6d75670cf86 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Sun, 30 Jun 2024 20:23:24 +0800 Subject: [PATCH] =?UTF-8?q?feat]=20=E6=B6=89=E5=8F=8A=E7=89=A9=E6=96=99?= =?UTF-8?q?=E9=83=A8=E5=88=86=EF=BC=8C=E6=A0=B9=E6=8D=AE=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E6=95=B4=E5=90=88=E9=87=87=E8=B4=AD=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E8=BD=AC=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E5=B7=B2=E8=8E=B7=E5=8F=96=EF=BC=8C=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E7=9A=84=E9=87=87=E8=B4=AD=E7=89=A9=E6=96=99?= =?UTF-8?q?=E7=94=9F=E6=88=90=E9=87=87=E8=B4=AD=E5=85=A5=E5=BA=93=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=8D=95=EF=BC=8C=E6=9F=A5=E8=AF=A2=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=8D=95=E6=95=B0=E6=8D=AE=E5=9C=A8=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E5=85=A5=E5=BA=93=E4=B8=AD=EF=BC=8C=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E7=89=A9=E6=96=99=E4=BB=B7=E6=A0=BC=E5=B7=B2=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=EF=BC=8C=E5=8F=AF=E6=B7=BB=E5=8A=A0=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E6=95=B0=E6=8D=AE,=E5=85=A5=E5=BA=93=E5=8D=95?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E5=85=A5=E5=BA=93=E6=9A=82=E6=94=B6=E5=B7=B2?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=9A=82=E6=94=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PurchaseOrderController.java | 8 +- .../controller/PurchasePlanController.java | 2 +- .../purchase/domain/PurchaseOrderChild.java | 10 + .../src/main/resources/application.yml | 1 - .../purchase/PurchaseOrderChildMapper.xml | 2 +- .../purchase/PurchasePlanChildMapper.xml | 4 +- .../purchaseOrder/addPurchaseStorage.html | 2 +- .../purchasePlan/addPurchaseOrder.html | 184 ++++++++++-------- .../storageOrder/storagePurchase.html | 2 + 9 files changed, 130 insertions(+), 85 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchaseOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchaseOrderController.java index c0ffb290..945d0ea8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchaseOrderController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchaseOrderController.java @@ -154,7 +154,6 @@ public class PurchaseOrderController extends BaseController for (int i = 0; i < planCodes.length - 1; i++) { String planCode = planCodes[i]; String correlationCode = correlationCodes[i]; - String purchaseQuote = purchaseQuoteCodes[i]; if (planCode != null) { PurchaseOrderChild material = new PurchaseOrderChild(); child.setPurchaseOrderCode(purchaseOrder.getPurchaseOrderCode()); @@ -186,6 +185,7 @@ public class PurchaseOrderController extends BaseController material.setPurchaseQuoteCode(purchaseOrder.getPurchaseOrderCode()); material.setSupplierCode(child.getSupplierCode()); material.setMaterialUnit(child.getMaterialUnit()); + material.setWarehouseDept(child.getWarehouseDept()); material.setSupplierName(child.getSupplierName()); material.setMaterialCode(child.getMaterialCode()); material.setMaterialName(child.getMaterialName()); @@ -206,7 +206,7 @@ public class PurchaseOrderController extends BaseController material.setMaterialNoRmbSum(child.getMaterialNoRmbSum()); material.setCorrelationCode(correlationCode); material.setPurchasePlanCode(planCode); - material.setPurchaseQuoteCode(purchaseQuote); + material.setPurchaseQuoteCode(child.getPurchaseQuoteCode()); material.setEceiptStatus("0"); material.setPaymentStatus("0"); material.setDelFlag("0"); @@ -220,7 +220,8 @@ public class PurchaseOrderController extends BaseController } child.setMaterialNoRmb(BigDecimal.ZERO); } - else if ((child.getCorrelationCode().contains(",")==false) && child.getPurchasePlanCode() != null) { + else if ((child.getCorrelationCode().contains(",")==false) + && child.getPurchasePlanCode() != null) { PurchaseOrderChild material = new PurchaseOrderChild(); child.setPurchaseOrderCode(purchaseOrder.getPurchaseOrderCode()); //获取物料供应商采购价格 @@ -250,6 +251,7 @@ public class PurchaseOrderController extends BaseController material.setPurchaseOrderCode(purchaseOrder.getPurchaseOrderCode()); material.setSupplierCode(child.getSupplierCode()); material.setMaterialUnit(child.getMaterialUnit()); + material.setWarehouseDept(child.getWarehouseDept()); material.setSupplierName(child.getSupplierName()); material.setMaterialCode(child.getMaterialCode()); material.setMaterialName(child.getMaterialName()); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanController.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanController.java index eab8ca9b..7c4589b5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/controller/PurchasePlanController.java @@ -134,7 +134,7 @@ public class PurchasePlanController extends BaseController //用stream流处理相同供应商\物料\ //将供应商信息解析成List mmap.put("purchasePlanList", purchasePlanList); - mmap.put("purchasePlanCodes", uniquePurchasePlanCodes); + mmap.put("purchasePlanCodes", purchasePlanCodeArray); mmap.put("purchasePlanChildList", purchasePlanChildList); return prefix + "/addPurchaseOrder"; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseOrderChild.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseOrderChild.java index 42f52729..29852448 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseOrderChild.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/domain/PurchaseOrderChild.java @@ -144,12 +144,22 @@ public class PurchaseOrderChild extends BaseEntity @Excel(name = "通知到货数量") private Integer notifyArriveNum; + private Integer notifyHasArriveNum; + /** 实际已到货数量 */ @Excel(name = "实际已到货数量") private Integer actualHasArrivedNum; private Integer notifyArrivedNum; + public Integer getNotifyHasArriveNum() { + return notifyHasArriveNum; + } + + public void setNotifyHasArriveNum(Integer notifyHasArriveNum) { + this.notifyHasArriveNum = notifyHasArriveNum; + } + public Integer getNotifyArrivedNum() { return notifyArrivedNum; } diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index cb3dd94b..b0cc9dd7 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -38,7 +38,6 @@ logging: level: com.ruoyi: debug org.springframework: warn - org.activiti.db.sql: debug diff --git a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml index 0e2c0946..423b7e9d 100644 --- a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml @@ -173,7 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" material_photo_url = #{materialPhotourl} material_process_method = #{materialProcessMethod}, material_unit = #{materialUnit}, - warehouse_dept = #{warehouseDept}, + warehousezDept = #{warehouseDept}, material_no_rmb = #{materialNoRmb}, material_rmb = #{materialRmb}, material_num = #{materialNum}, diff --git a/ruoyi-admin/src/main/resources/mapper/purchase/PurchasePlanChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/purchase/PurchasePlanChildMapper.xml index 4a53433e..da194649 100644 --- a/ruoyi-admin/src/main/resources/mapper/purchase/PurchasePlanChildMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/purchase/PurchasePlanChildMapper.xml @@ -230,8 +230,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" left join purchase_plan as plan on plan.purchase_plan_code = planChild.purchase_plan_code where plan.purchase_plan_code IN - #{purchasePlanCode} - + #{purchasePlanCode} + group by material_code \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html index e8b9d436..9235ef9e 100644 --- a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html +++ b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/addPurchaseStorage.html @@ -114,7 +114,7 @@ {title: '计划采购数',field: 'materialNum',}, {title: '实际采购数',field: 'materialRealNum',}, {title: '交付时间',field: 'deliveryTime',}, - {title: '通知已到货数',field: 'notifyHasArrivedNum', + {title: '通知已到货数',field: 'notifyArriveNum', formatter: function (value, row, index) { if (value == null || value == '') { return 0; diff --git a/ruoyi-admin/src/main/resources/templates/purchase/purchasePlan/addPurchaseOrder.html b/ruoyi-admin/src/main/resources/templates/purchase/purchasePlan/addPurchaseOrder.html index f010beaf..34d2d5c9 100644 --- a/ruoyi-admin/src/main/resources/templates/purchase/purchasePlan/addPurchaseOrder.html +++ b/ruoyi-admin/src/main/resources/templates/purchase/purchasePlan/addPurchaseOrder.html @@ -2,6 +2,8 @@ + +
@@ -9,7 +11,7 @@
- +
@@ -78,6 +80,8 @@
+ + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html index a9b8ac0c..7d34a6f9 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html @@ -3,6 +3,7 @@ +