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 @@ + + +
+