From 82e00bb323dbf82c514125a2cc205548fc64caeb Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Fri, 31 May 2024 09:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E5=85=A5=E5=BA=93=E5=8D=95?= =?UTF-8?q?=20=E6=96=B0=E5=A2=9E=20=E5=85=A5=E5=BA=93-=E5=A7=94=E5=A4=96?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2storageOu?= =?UTF-8?q?tOrderDetail.html=20=E6=96=B0=E5=A2=9E=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=8C=89=E9=92=AE=20=E5=90=8E=E7=AB=AF=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=A7=94=E5=A4=96=E5=85=A5=E5=BA=93=E6=9D=83=E9=99=90=E5=AD=97?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarehouseStorageOrderController.java | 33 +- .../warehouse/storageOrder/storageOrder.html | 7 + .../storageOrder/storageOutOrderDetail.html | 378 ++++++++++++++++++ 3 files changed, 411 insertions(+), 7 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrderDetail.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseStorageOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseStorageOrderController.java index 7b014cea..c92431ad 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseStorageOrderController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseStorageOrderController.java @@ -314,7 +314,7 @@ public class WarehouseStorageOrderController extends BaseController /** * 修改保存入库-委外单 */ - @RequiresPermissions("warehouse:storageOrder:storagePurchaseWarehouse") + @RequiresPermissions("warehouse:storageOrder:storageOutOrder") @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) @PostMapping("/storageOutOrder") @ResponseBody @@ -324,6 +324,29 @@ public class WarehouseStorageOrderController extends BaseController } + /** + * 入库-委外单详情 + */ + @GetMapping("/storageOutOrderDetail/{warehouseStorageId}") + public String storageOutOrderDetail(@PathVariable("warehouseStorageId") Long warehouseStorageId, ModelMap mmap) + { + WarehouseStorageOrder warehouseStorageOrder = warehouseStorageOrderService.selectWarehouseStorageOrderById(warehouseStorageId); + mmap.put("warehouseStorageOrder", warehouseStorageOrder); + return prefix + "/storageOutOrderDetail"; + } + + /** + * 修改保存入库-委外单详情 + */ + @RequiresPermissions("warehouse:storageOrder:storageOutOrderDetail") + @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) + @PostMapping("/storageOutOrderDetail") + @ResponseBody + public AjaxResult storageOutOrderDetailSave(@RequestBody WarehouseStorageOrder warehouseStorageOrder) + { + return toAjax(warehouseStorageOrderService.updateWarehouseStorageOrder(warehouseStorageOrder)); + } + /** * 入库-委外单 供应商物料详情列表 */ @@ -360,7 +383,6 @@ public class WarehouseStorageOrderController extends BaseController } - /** * 入库-生产订单(生产入库)详情 */ @@ -420,11 +442,8 @@ public class WarehouseStorageOrderController extends BaseController return toAjax(warehouseStorageOrderService.updateStorageMake(warehouseStorageOrder)); } - - - /** - * 入库-生产订单(委内入库) + * 入库-生产订单(委内入库)详情 */ @GetMapping("/storageMakeInDetail/{warehouseStorageId}") public String storageMakeInDetail(@PathVariable("warehouseStorageId") Long warehouseStorageId, ModelMap mmap) @@ -435,7 +454,7 @@ public class WarehouseStorageOrderController extends BaseController } /** - * 修改保存入库-生产订单(委内入库) + * 修改保存入库-生产订单(委内入库)详情 */ @RequiresPermissions("warehouse:storageOrder:storageMakeInDetail") @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html index cbfdac32..804ca755 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html @@ -87,6 +87,7 @@ var storageMakeDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeDetail')}]]; var storageMakeInDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeInDetail')}]]; + var storageOutOrderDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageOutOrderDetail')}]]; var warehouseStorageStatusDatas = [[${@dict.getType('warehouse_storage_status')}]]; @@ -261,6 +262,7 @@ /*入库-委外单*/ if ( row.warehouseStorageType == 4 && row.warehouseOrderType == 3 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ actions.push('入库 '); + actions.push('详情 '); } /*入库-生产订单(生产入库)*/ if ( row.warehouseStorageType == 5 && row.warehouseDeptType == 1 && row.warehouseOrderType == 1 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ @@ -333,6 +335,11 @@ $.modal.open("入库",url); }; + /*入库-委外单详情*/ + function storageOutOrderDetail(warehouseStorageId){ + var url = ctx + 'warehouse/storageOrder/storageOutOrderDetail/' + warehouseStorageId; + $.modal.open("详情",url); + }; /*入库-生产订单(委内入库)*/ function storageMakeIn(warehouseStorageId){ diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrderDetail.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrderDetail.html new file mode 100644 index 00000000..477c1ddb --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrderDetail.html @@ -0,0 +1,378 @@ + + +
+