From bd755d2f3c1016fb252a57e1bf9cee5a857c9a99 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Wed, 5 Jun 2024 16:06:18 +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=20=E6=8C=89=E9=92=AE=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AF=B7=E8=B4=AD=E5=8D=95--=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E9=A1=B5=E9=9D=A2requisitioningOutWarehouse.html=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AF=B7=E8=B4=AD=E5=8D=95--=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E5=90=8E=E7=AB=AF=E6=9F=A5=E8=AF=A2=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=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=E5=90=8E=E7=AB=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BF=9D=E5=AD=98=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarehouseOutOrderController.java | 24 +++ .../requisitioningOutWarehouse.html | 191 ++++++++++++++++++ .../warehouseOutOrder/warehouseOutOrder.html | 16 ++ 3 files changed, 231 insertions(+) create mode 100644 ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouse.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 3fb11f08..7fe3568d 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 @@ -214,4 +214,28 @@ public class WarehouseOutOrderController extends BaseController return toAjax(warehouseOutOrderService.updatePrepareMaterial(warehouseOutOrder)); } + + /** + * 请购单-出库 + */ + @GetMapping("/requisitioningOutWarehouse/{outOrderId}") + public String requisitioningOutWarehouse(@PathVariable("outOrderId") Long outOrderId, ModelMap mmap) + { + WarehouseOutOrder warehouseOutOrder = warehouseOutOrderService.selectWarehouseOutOrderById(outOrderId); + mmap.put("warehouseOutOrder", warehouseOutOrder); + return prefix + "/requisitioningOutWarehouse"; + } + + /** + * 修改保存请购单-出库 + */ + @RequiresPermissions("warehouse:warehouseOutOrder:requisitioningOutWarehouse") + @Log(title = "仓库出库单", businessType = BusinessType.UPDATE) + @PostMapping("/requisitioningOutWarehouse") + @ResponseBody + public AjaxResult requisitioningOutWarehouseSave(@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 new file mode 100644 index 00000000..5d6cb1d8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/requisitioningOutWarehouse.html @@ -0,0 +1,191 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/warehouseOutOrder.html b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/warehouseOutOrder.html index 093ff21f..a21c9b84 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/warehouseOutOrder.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/warehouseOutOrder.html @@ -71,6 +71,8 @@ var prepareMaterialFlag = [[${@permission.hasPermi('warehouse:warehouseOutOrder:prepareMaterial')}]]; var salesOutWarehouseFlag = [[${@permission.hasPermi('warehouse:warehouseOutOrder:salesOutWarehouse')}]]; var makeOutWarehouseFlag = [[${@permission.hasPermi('warehouse:warehouseOutOrder:makeOutWarehouse')}]]; + var requisitioningOutWarehouseFlag = [[${@permission.hasPermi('warehouse:warehouseOutOrder:requisitioningOutWarehouse')}]]; + var warehouseOutStatusDatas = [[${@dict.getType('warehouse_out_status')}]]; var warehouseOrderTypeDatas = [[${@dict.getType('warehouse_order_type')}]]; @@ -174,15 +176,23 @@ formatter: function(value, row, index) { var actions = []; actions.push('编辑 '); + /*销售单-准备物料*/ if (row.warehouseOutStatus == 0 && row.warehouseOrderType == 0 && row.warehouseOutType == 0){ actions.push('准备物料 '); } + /*销售单-出库*/ if (row.warehouseOutStatus == 4 && row.warehouseOrderType == 0 && row.warehouseOutType == 0){ actions.push('出库 '); } + /*生产单-出库*/ if (row.warehouseOutStatus == 4 && row.warehouseOrderType == 1 && row.warehouseOutType == 1){ actions.push('出库 '); } + /*请购单-出库*/ + if (row.warehouseOutStatus == 4 && row.warehouseOrderType == 2 && row.warehouseOutType == 2){ + actions.push('出库 '); + } + return actions.join(''); } @@ -208,6 +218,12 @@ var url = ctx + 'warehouse/warehouseOutOrder/makeOutWarehouse/' + outOrderId; $.modal.open("出库",url); } + + /*请购单-出库*/ + function requisitioningOutWarehouse(outOrderId){ + var url = ctx + 'warehouse/warehouseOutOrder/requisitioningOutWarehouse/' + outOrderId; + $.modal.open("出库",url); + } \ No newline at end of file