From b4567028ed9a4d6e9c8eb2f2ba928b1ea2e9088c Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Wed, 20 Nov 2024 17:04:02 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E9=87=87=E8=B4=AD=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=87=87=E8=B4=AD=E5=85=A5=E5=BA=93=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E9=A1=B5=E9=9D=A2=20=E9=87=87=E8=B4=AD=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E9=80=9A=E7=9F=A5=E6=8C=89=E9=92=AE=E5=92=8C?= =?UTF-8?q?=E5=85=B6=E6=96=B9=E6=B3=95=20=E9=87=87=E8=B4=AD=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=AD=90=E8=A1=A8=E6=95=B0=E6=8D=AE=E5=BA=93=E5=92=8C?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E7=B1=BB=E6=96=B0=E5=A2=9E=20notifyHasArrive?= =?UTF-8?q?dNum=E3=80=81notifyArriveNum=E3=80=81temporaryNum=E3=80=81tempo?= =?UTF-8?q?raryNum=EF=BC=9Bmapper.xml=E7=9A=84=E6=89=80=E6=9C=89=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E6=96=B0=E5=A2=9EotifyHasArrivedNum=E3=80=81notifyArr?= =?UTF-8?q?iveNum=E3=80=81temporaryNum=E3=80=81temporaryNum=EF=BC=9B=20?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95Controller=E5=B1=82?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E5=8A=A0=E8=BD=BD=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E9=80=9A=E7=9F=A5=E5=8D=95=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E6=8E=A5=E5=8F=A3=EF=BC=9B=E5=8E=BB=E6=8E=89?= =?UTF-8?q?detailListGroupedBySupplier=E6=8E=A5=E5=8F=A3=EF=BC=9B=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7=E8=AE=A2=E5=8D=95=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PurchaseOrderController.java | 37 +-- .../purchase/domain/PurchaseOrderChild.java | 50 ++++ .../controller/SysMakeOrderController.java | 3 +- .../service/impl/SysMakeOrderServiceImpl.java | 3 +- .../purchase/PurchaseOrderChildMapper.xml | 18 +- .../purchaseOrder/addPurchaseStorage.html | 241 +++++++----------- .../purchase/purchaseOrder/purchaseOrder.html | 11 + 7 files changed, 182 insertions(+), 181 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 ba203a6b..50fc93eb 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 @@ -203,13 +203,10 @@ public class PurchaseOrderController extends BaseController /** * 加载采购入库通知单弹窗 */ - @GetMapping("/addPurchaseOrderStorage/{purchaseOrderCode}") - public String addPurchaseOrderStorage(@PathVariable("purchaseOrderCode") String purchaseOrderCode,ModelMap mmap){ - //purchasePlanCodes去除重复数据,purchasePlanCodeArray作为数组类型去除 - //查询相关采购计划数据 - PurchaseOrder purchaseOrder = purchaseOrderService.selectPurchaseOrderByOrderCode(purchaseOrderCode); - //根据采购计划编号查询对应的采购报价数据 - //再根据采购计划编号分组查询对应的采购报价数据分组 + @GetMapping("/addPurchaseStorage/{purchaseOrderId}") + public String addPurchaseStorage(@PathVariable("purchaseOrderId") Long purchaseOrderId,ModelMap mmap){ + + PurchaseOrder purchaseOrder = purchaseOrderService.selectPurchaseOrderById(purchaseOrderId); mmap.put("purchaseOrder", purchaseOrder); return prefix + "/addPurchaseStorage"; } @@ -230,21 +227,6 @@ public class PurchaseOrderController extends BaseController -// @ResponseBody -// @RequestMapping("/detailListGroupedBySupplier") -// public Map> detailListGroupedBySupplier(String qualityOrderCode) { -// PurchaseOrderChild purchaseOrderChild = new PurchaseOrderChild(); -// purchaseOrderChild.setPurchaseOrderCode(qualityOrderCode); -// List allDetails = purchaseOrderChildService.selectPurchaseOrderStorageByPurchaseOrderCode(qualityOrderCode); -// Map> groupedDetails = allDetails.stream() -// .collect(Collectors.groupingBy(PurchaseOrderChild::getSupplierCode)); -// return groupedDetails; -// } - - - - - /** * 加载审批弹窗 * @param taskId @@ -330,13 +312,8 @@ public class PurchaseOrderController extends BaseController - - - - - /** - * 采购订单审核页面采购信息列表 + * 采购订单审核页面和采购入库单采购信息列表 * */ @PostMapping ("/selectOrderChildMaterialList") @ResponseBody @@ -349,10 +326,6 @@ public class PurchaseOrderController extends BaseController - - - - /** * 删除采购订单 */ 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 5a569f99..59505b7d 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 @@ -81,6 +81,19 @@ public class PurchaseOrderChild extends BaseEntity @Excel(name = "共享库存占用数") private Integer sharedInventoryOccupancyNum; + /** 通知已到货数 */ + private Integer notifyHasArrivedNum; + + /** '通知到货数' */ + private Integer notifyArriveNum; + + /** '暂收数' */ + private Integer temporaryNum; + + /** '已入库数' */ + private Integer hasStorageNum; + + /** 计划交付时间 */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "计划交付时间", width = 30, dateFormat = "yyyy-MM-dd") @@ -240,6 +253,39 @@ public class PurchaseOrderChild extends BaseEntity this.sharedInventoryOccupancyNum = sharedInventoryOccupancyNum; } + + public Integer getNotifyHasArrivedNum() { + return notifyHasArrivedNum; + } + + public void setNotifyHasArrivedNum(Integer notifyHasArrivedNum) { + this.notifyHasArrivedNum = notifyHasArrivedNum; + } + + public Integer getNotifyArriveNum() { + return notifyArriveNum; + } + + public void setNotifyArriveNum(Integer notifyArriveNum) { + this.notifyArriveNum = notifyArriveNum; + } + + public Integer getTemporaryNum() { + return temporaryNum; + } + + public void setTemporaryNum(Integer temporaryNum) { + this.temporaryNum = temporaryNum; + } + + public Integer getHasStorageNum() { + return hasStorageNum; + } + + public void setHasStorageNum(Integer hasStorageNum) { + this.hasStorageNum = hasStorageNum; + } + public void setPlanDeliveryTime(Date planDeliveryTime) { this.planDeliveryTime = planDeliveryTime; @@ -279,6 +325,10 @@ public class PurchaseOrderChild extends BaseEntity .append("planPurchaseNum", getPlanPurchaseNum()) .append("actualPurchaseNum", getActualPurchaseNum()) .append("sharedInventoryOccupancyNum", getSharedInventoryOccupancyNum()) + .append("notifyHasArrivedNum", getNotifyHasArrivedNum()) + .append("notifyArriveNum", getNotifyArriveNum()) + .append("temporaryNum", getTemporaryNum()) + .append("hasStorageNum", getHasStorageNum()) .append("planDeliveryTime", getPlanDeliveryTime()) .append("createBy", getCreateBy()) .append("createTime", getCreateTime()) 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 1a848b3d..54c90bdf 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 @@ -490,7 +490,8 @@ public class SysMakeOrderController extends BaseController makeOrder.setCustomerId(sysSalesOrder.getEnterpriseCode()); makeOrder.setCustomerOderCode(sysSalesOrder.getSalesOrderNumber()); makeOrder.setMaterial(String.valueOf(sysSalesOrder.getMaterialSum())); - makeOrder.setMaterialSum(sysSalesOrder.getEnterpriseSum()); + //这个类型需要注意 + // makeOrder.setMaterialSum(sysSalesOrder.getEnterpriseSum()); } } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysMakeOrderServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysMakeOrderServiceImpl.java index fa372669..4014ce44 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysMakeOrderServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysMakeOrderServiceImpl.java @@ -258,7 +258,8 @@ public class SysMakeOrderServiceImpl implements ISysMakeOrderService makeOrder.setCustomerId(sysSalesOrderVo.getEnterpriseCode()); makeOrder.setCustomerName(sysSalesOrderVo.getEnterpriseName()); makeOrder.setCustomerOderCode(sysSalesOrderVo.getSalesOrderNumber()); - makeOrder.setMaterialSum(sysSalesOrderVo.getEnterpriseSum()); + //这里需要注意一下类型 + //makeOrder.setMaterialSum(sysSalesOrderVo.getEnterpriseSum()); makeOrder.setMaterial(String.valueOf(sysSalesOrderVo.getMaterialSum())); String makeNo = redisCache.generateBillNo("PO"); makeOrder.setMakeNo(makeNo); diff --git a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml index 80bc2227..0cd9fad5 100644 --- a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml @@ -22,6 +22,10 @@ + + + + @@ -31,7 +35,7 @@ - select purchase_order_child_id, purchase_order_code, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, material_model, warehouse_dept, material_noRmb_sum, material_rmb_sum, plan_purchase_num, actual_purchase_num, shared_inventory_occupancy_num, plan_delivery_time, create_by, create_time, update_by, update_time, del_flag from purchase_order_child + select purchase_order_child_id, purchase_order_code, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, material_model, warehouse_dept, material_noRmb_sum, material_rmb_sum, plan_purchase_num, actual_purchase_num, shared_inventory_occupancy_num, notify_arrive_num, notify_has_arrived_num, has_storage_num, temporary_num,plan_delivery_time, create_by, create_time, update_by, update_time, del_flag from purchase_order_child
- +
- +
- +
- +
- + +
+ +
+
+ + +
+
- +
- - -
- -
- + + + + +
+
+
+
+
+
+
+ \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html index fb64773a..0643b3b2 100644 --- a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html +++ b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html @@ -72,6 +72,9 @@ var removeFlag = [[${@permission.hasPermi('purchase:purchaseOrder:remove')}]]; var cancelFlag = [[${@permission.hasPermi('purchase:purchaseOrder:cancel')}]]; var restoreFlag = [[${@permission.hasPermi('purchase:purchaseOrder:restore')}]]; + + var addPurchaseStorageFlag = [[${@permission.hasPermi('purchase:purchaseOrder:addPurchaseStorage')}]]; + var warehouseStorageStatusDatas = [[${@dict.getType('eceiptStatus')}]]; var paymentStatusDatas = [[${@dict.getType('sys_pay_close')}]]; var useStatusDatas = [[${@dict.getType('useStatus')}]]; @@ -236,6 +239,8 @@ if(row.auditStatus=="1" && row.useStatus=="1" && !row.cancelInstanceId) { // 作废 actions.push(' 作废'); + //入库通知 + actions.push(' 入库通知'); // 已作废 } @@ -337,6 +342,12 @@ } + //入库通知 + function addPurchaseStorage(purchaseOrderId) { + var url = prefix + "/addPurchaseStorage/" + purchaseOrderId; + $.modal.open("入库通知", url); + } + \ No newline at end of file