From d35aa859944b5fc71a61479c27e2ff48531b3b79 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Thu, 6 Jun 2024 10:13:29 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E4=BB=93=E5=BA=93=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E5=87=BA=E5=BA=93=E5=8D=95=20=E6=96=B0=E5=A2=9E=E8=AF=B7?= =?UTF-8?q?=E8=B4=AD=E5=8D=95-=E5=87=BA=E5=BA=93=E8=AF=A6=E6=83=85=20?= =?UTF-8?q?=E6=8C=89=E9=92=AE=20=E6=96=B0=E5=A2=9E=E8=AF=B7=E8=B4=AD?= =?UTF-8?q?=E5=8D=95-=E5=87=BA=E5=BA=93=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2requisitioningOutWarehouseDetail.html=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=AF=B7=E8=B4=AD=E5=8D=95-=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=90=8E=E7=AB=AF=E6=9F=A5=E8=AF=A2=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8E=A5=E5=8F=A3=20=E6=96=B0=E5=A2=9E=E8=AF=B7?= =?UTF-8?q?=E8=B4=AD=E5=8D=95-=E5=87=BA=E5=BA=93=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E4=BF=AE=E6=94=B9=E4=BF=9D=E5=AD=98=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarehouseOutOrderController.java | 23 +++ .../requisitioningOutWarehouse.html | 2 +- .../requisitioningOutWarehouseDetail.html | 190 ++++++++++++++++++ .../warehouseOutOrder/warehouseOutOrder.html | 8 + 4 files changed, 222 insertions(+), 1 deletion(-) create mode 100644 ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouseDetail.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseOutOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseOutOrderController.java index 3947944d..d2e6a827 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseOutOrderController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseOutOrderController.java @@ -314,6 +314,29 @@ public class WarehouseOutOrderController extends BaseController } + /** + * 请购单-出库详情 + */ + @GetMapping("/requisitioningOutWarehouseDetail/{outOrderId}") + public String requisitioningOutWarehouseDetail(@PathVariable("outOrderId") Long outOrderId, ModelMap mmap) + { + WarehouseOutOrder warehouseOutOrder = warehouseOutOrderService.selectWarehouseOutOrderById(outOrderId); + mmap.put("warehouseOutOrder", warehouseOutOrder); + return prefix + "/requisitioningOutWarehouseDetail"; + } + + /** + * 修改保存请购单-出库详情 + */ + @RequiresPermissions("warehouse:warehouseOutOrder:requisitioningOutWarehouseDetail") + @Log(title = "仓库出库单", businessType = BusinessType.UPDATE) + @PostMapping("/requisitioningOutWarehouseDetail") + @ResponseBody + public AjaxResult requisitioningOutWarehouseDetailSave(@RequestBody WarehouseOutOrder warehouseOutOrder) + { + return toAjax(warehouseOutOrderService.updatePrepareMaterial(warehouseOutOrder)); + } + /** * 退换货-出库 diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouse.html b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouse.html index 5d6cb1d8..44025a0a 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouse.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouse.html @@ -95,7 +95,7 @@ // 使用 JSON.stringify() 序列化数据 const jsonData = JSON.stringify(combinedData); // 发送 AJAX 请求到后端接口 - $.operate.saveJson(prefix + "/makeOutWarehouse", jsonData); + $.operate.saveJson(prefix + "/requisitioningOutWarehouse", jsonData); } //物料信息展示列表 diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouseDetail.html b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouseDetail.html new file mode 100644 index 00000000..bbcfb116 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouseDetail.html @@ -0,0 +1,190 @@ + + +
+