From afabcef3a14c5844076769c229c4aa4c3fa3ae10 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Tue, 19 Nov 2024 17:43:08 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E4=BF=AE=E6=94=B9=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E9=A1=B5=E9=9D=A2,?= =?UTF-8?q?=E4=BB=A5=E9=80=89=E6=8B=A9=E9=87=87=E8=B4=AD=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=8D=95=E5=8F=B7=E6=94=B9=E4=B8=BA=E5=B7=B2=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=20=E6=96=B0=E5=A2=9E=E7=94=A8=E4=BA=8E=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=8C=89=E7=85=A7?= =?UTF-8?q?=E6=96=B0=E7=89=88prd=E8=B0=83=E6=95=B4=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E5=89=8D=E7=AB=AF=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E9=9D=A2=EF=BC=9A=E6=96=B0=E5=A2=9E=E5=86=BB?= =?UTF-8?q?=E7=BB=93=E6=9C=80=E5=8F=B3=E4=BE=A7=E4=B8=80=E5=88=97=EF=BC=9B?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=A0=8F=E8=B0=83=E6=95=B4=E4=B8=BA=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E6=A0=B7=E5=BC=8F=EF=BC=8C=E8=A1=A8=E5=A4=B4=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=B8=BA=E7=BB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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PurchaseOrderController.java | 38 + .../mapper/PurchaseOrderChildMapper.java | 12 +- .../impl/PurchaseOrderChildServiceImpl.java | 16 +- .../purchase/PurchaseOrderChildMapper.xml | 6 + .../purchase/purchaseOrder/purchaseOrder.html | 21 +- .../purchaseOrder/taskFzjlVerify.html | 709 ++++-------------- .../purchasePlan/addPurchaseOrder.html | 4 +- 7 files changed, 242 insertions(+), 564 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 4ca7831b..b7e2c69b 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 @@ -411,6 +411,44 @@ public class PurchaseOrderController extends BaseController } return new PurchaseOrderVo(); } + + + + /** + * 加载采购订单审核页面 + */ + @GetMapping("/auditPurchaseOrder/{purchaseOrderId}") + public String auditPurchaseOrder(@PathVariable("purchaseOrderId") Long purchaseOrderId,ModelMap mmap){ + //purchasePlanCodes去除重复数据,purchasePlanCodeArray作为数组类型去除 + //查询相关采购计划数据 + PurchaseOrder purchaseOrder = purchaseOrderService.selectPurchaseOrderById(purchaseOrderId); + //根据采购计划编号查询对应的采购报价数据 + //再根据采购计划编号分组查询对应的采购报价数据分组 + mmap.put("purchaseOrder", purchaseOrder); + return prefix + "/taskFzjlVerify"; + } + + + + + /** + * 采购订单审核页面采购信息列表 + * */ + @PostMapping ("/selectOrderChildMaterialList") + @ResponseBody + public TableDataInfo selectOrderChildMaterialList(PurchaseOrder purchaseOrder){ + startPage(); + String purchaseOrderCode = purchaseOrder.getPurchaseOrderCode(); + List list = purchaseOrderChildService.selectPurchaseOrderChildByOrderCode(purchaseOrderCode); + return getDataTable(list); + } + + + + + + + /** * 删除采购订单 */ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseOrderChildMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseOrderChildMapper.java index c7a27278..ff217e66 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseOrderChildMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/mapper/PurchaseOrderChildMapper.java @@ -38,6 +38,16 @@ public interface PurchaseOrderChildMapper List selectPurchaseOrderChildListByCodes(List purchaseOrderCodes); + + /** + * 通过采购订单号查询采购订单子表列表 + * + * @param purchaseOrderCode 采购订单号 + * @return 采购订单子表集合 + */ + List selectPurchaseOrderChildByOrderCode(String purchaseOrderCode); + + /** * 新增采购订单子表 * @@ -101,7 +111,7 @@ public interface PurchaseOrderChildMapper */ public int restorePurchaseOrderChildById(Long purchaseOrderChildId); - List selectPurchaseOrderChildByOrderCode(String purchaseOrderCode); + List selectPurchaseOrderChildByOrderCodeTotal(String purchaseOrderCode); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderChildServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderChildServiceImpl.java index fa2f8dd0..d88add37 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderChildServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderChildServiceImpl.java @@ -47,6 +47,18 @@ public class PurchaseOrderChildServiceImpl implements IPurchaseOrderChildService return purchaseOrderChildMapper.selectPurchaseOrderChildList(purchaseOrderChild); } + /** + * 根据采购订单号查询采购订单子表 + * + * @param purchaseOrderCode 采购订单号 + * @return 结果 + */ + @Override + public List selectPurchaseOrderChildByOrderCode(String purchaseOrderCode){ + return purchaseOrderChildMapper.selectPurchaseOrderChildByOrderCode(purchaseOrderCode); + } + + /** * 新增采购订单子表 * @@ -136,10 +148,6 @@ public class PurchaseOrderChildServiceImpl implements IPurchaseOrderChildService return purchaseOrderChildMapper.restorePurchaseOrderChildById(purchaseOrderChildId); } - @Override - public List selectPurchaseOrderChildByOrderCode(String purchaseOrderCode){ - return purchaseOrderChildMapper.selectPurchaseOrderChildByOrderCode(purchaseOrderCode); - } @Override public List selectPurchaseOrderChildByOrderCodeTotal(String purchaseOrderCode){ diff --git a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml index 28160d70..80bc2227 100644 --- a/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/purchase/PurchaseOrderChildMapper.xml @@ -53,6 +53,12 @@ + + + insert into purchase_order_child 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 f15d2baa..ed852c82 100644 --- a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html +++ b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html @@ -87,6 +87,8 @@ restoreUrl: prefix + "/restore/{id}", exportUrl: prefix + "/export", modalName: "采购订单", + fixedColumns: true, // 启用冻结列 + fixedRightNumber: 1, // 冻结右列个数 columns: [{ checkbox: true }, @@ -192,14 +194,9 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('编辑 '); - actions.push('删除 '); - if(row.delFlag == '0'){ - actions.push('作废 '); - }else{ - actions.push('恢复 '); - } - return actions.join(''); + actions.push('审核 '); + var actionLinks = actions.join(''); + return $.table.dropdownToggle(actionLinks); } }] }; @@ -208,6 +205,14 @@ + //打开采购订单审核页面 + function openAudit(purchaseOrderId){ + var url = prefix + "/auditPurchaseOrder/" + purchaseOrderId; + $.modal.open("采购订单审核", url); + } + + + // 导出 function exportExcel(formId) { // $.table.set(); diff --git a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/taskFzjlVerify.html b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/taskFzjlVerify.html index 146f5200..5b57c6be 100644 --- a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/taskFzjlVerify.html +++ b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/taskFzjlVerify.html @@ -1,619 +1,230 @@ - - - +
-
- - - - - - - - -