From 0f2bfc0775cea7fed9f8d77a35b6bebd9e17df4a Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Fri, 22 Nov 2024 08:54:21 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E9=87=87=E8=B4=AD=E7=AE=A1=E7=90=86=20?= =?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=E6=96=B0=E5=A2=9E=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=92=8C=E5=85=B6=E6=96=B9=E6=B3=95=20?= =?UTF-8?q?=E6=8C=89=E7=85=A7prd=E8=B0=83=E6=95=B4=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=20=E6=96=B0=E5=A2=9E=E6=89=93=E5=BC=80=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E5=90=8E=E7=AB=AF=E6=8E=A5=E5=8F=A3=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BF=9D=E5=AD=98=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=90=8E=E7=AB=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/PurchaseOrderController.java | 20 + .../service/IPurchaseOrderService.java | 2 + .../impl/PurchaseOrderServiceImpl.java | 10 + .../purchase/purchaseOrder/detail.html | 695 +++++------------- .../purchase/purchaseOrder/purchaseOrder.html | 10 +- 5 files changed, 211 insertions(+), 526 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 5c2ea0e2..213a1145 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 @@ -191,6 +191,9 @@ public class PurchaseOrderController extends BaseController + /** + * 打开采购订单详情页面 + */ @GetMapping("/detail/{purchaseOrderId}") public String detail(@PathVariable("purchaseOrderId") Long purchaseOrderChildId, ModelMap mmap) { @@ -200,6 +203,23 @@ public class PurchaseOrderController extends BaseController return prefix + "/detail"; } + + + /** + * 采购订单详情提交 + */ + @Log(title = "采购订单", businessType = BusinessType.INSERT) + @PostMapping("/detail") + @ResponseBody + public AjaxResult detailSave(PurchaseOrder purchaseOrder) { + + return toAjax(purchaseOrderService.detailSave(purchaseOrder)); + } + + + + + /** * 加载采购入库通知单弹窗 */ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/IPurchaseOrderService.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/IPurchaseOrderService.java index 06bff188..16a70df5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/IPurchaseOrderService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/IPurchaseOrderService.java @@ -127,4 +127,6 @@ public interface IPurchaseOrderService * */ int addPurchaseStorageSave(PurchaseOrder purchaseOrder); + + int detailSave(PurchaseOrder purchaseOrder); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderServiceImpl.java index 86cdf310..a5b54e49 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/purchase/service/impl/PurchaseOrderServiceImpl.java @@ -1403,6 +1403,16 @@ public class PurchaseOrderServiceImpl implements IPurchaseOrderService } } + + /** + * 提交采购订单详情 + * */ + @Override + public int detailSave(PurchaseOrder purchaseOrder) { + + return 1; + } + /** * 启动流程实例 * */ diff --git a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/detail.html b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/detail.html index 6a251343..6cd8ee1d 100644 --- a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/detail.html +++ b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/detail.html @@ -1,112 +1,105 @@ - + - - - - - +
-
-
- -
- -
-
-
- - -
-
-
+ -
+ + +
+
+
+

已选择采购计划单号:

-
-
+
-
+
+ +
+
- -
-

公司地址:

-
- -
- -
-
-
- -
- -
-
-
- -
- + + +
+
+
+

已选择供应商:

+
-
-
- -
- +
+ +
+ +
+ + +
+ +
-
- -
- + +
+
+
+

公司收货信息:

+
-
-
-
-

订单合计:

-
- -
- +
+ + +
+ +
+ +
+ +
-
-
- -
- + +
+ +
+ +
+ + +
+ +
+ + +
+ +
-
- -
- + + +
+
+
+

采购信息:

+
-
-
- -
- +
+
+
+
-
-
+ + + +
- - - + \ 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 41d3336a..da4cb084 100644 --- a/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html +++ b/ruoyi-admin/src/main/resources/templates/purchase/purchaseOrder/purchaseOrder.html @@ -270,8 +270,7 @@ actions.push(' 进度查看 '); } - - //actions.push('审核 '); + actions.push('详情 '); var actionLinks = actions.join(''); return $.table.dropdownToggle(actionLinks); } @@ -353,6 +352,13 @@ $.modal.open("入库通知", url); } + + //详情 + function detail(purchaseOrderId) { + var url = prefix + "/detail/" + purchaseOrderId; + $.modal.open("详情", url); + } + \ No newline at end of file