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 1f58271f..120c675d 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 @@ -313,6 +313,30 @@ public class WarehouseStorageOrderController extends BaseController } + /** + * 入库-采购单(仓库入库)详情 + */ + @GetMapping("/storagePurchaseWarehouseDetail/{warehouseStorageId}") + public String storagePurchaseWarehouseDetail(@PathVariable("warehouseStorageId") Long warehouseStorageId, ModelMap mmap) + { + WarehouseStorageOrder warehouseStorageOrder = warehouseStorageOrderService.selectWarehouseStorageOrderById(warehouseStorageId); + mmap.put("warehouseStorageOrder", warehouseStorageOrder); + return prefix + "/storagePurchaseWarehouseDetail"; + } + + /** + * 修改保存入库-采购单(仓库入库)详情 + */ + @RequiresPermissions("warehouse:storageOrder:storagePurchaseWarehouseDetail") + @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) + @PostMapping("/storagePurchaseWarehouseDetail") + @ResponseBody + public AjaxResult storagePurchaseWarehouseDetailSave(@RequestBody WarehouseStorageOrder warehouseStorageOrder) + { + return toAjax(warehouseStorageOrderService.updateWarehouseStorageOrder(warehouseStorageOrder)); + } + + /** * 入库-采购单(仓库入库) 供应商物料详情列表 */ 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 96e53255..8c4fc105 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html @@ -86,6 +86,7 @@ var storageRefundsExchangesFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageRefundsExchanges')}]]; var storagePurchaseDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storagePurchaseDetail')}]]; + var storagePurchaseWarehouseDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storagePurchaseWarehouseDetail')}]]; var storageMakeDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeDetail')}]]; var storageMakeInDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeInDetail')}]]; var storageOutOrderDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageOutOrderDetail')}]]; @@ -261,6 +262,8 @@ /*入库-采购单(仓库入库)*/ if ( row.warehouseDeptType == 1 && row.warehouseOrderType == 0 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ actions.push('入库 '); + actions.push('详情 '); + } /*入库-委外单*/ if ( row.warehouseStorageType == 4 && row.warehouseOrderType == 3 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ @@ -326,6 +329,12 @@ $.modal.open("入库",url); }; + /*入库-采购单(仓库入库)详情*/ + function storagePurchaseWarehouseDetail(warehouseStorageId){ + var url = ctx + 'warehouse/storageOrder/storagePurchaseWarehouseDetail/' + warehouseStorageId; + $.modal.open("详情",url); + }; + /*入库-生产订单(生产入库)*/ function storageMake(warehouseStorageId){ var url = ctx + 'warehouse/storageOrder/storageMake/' + warehouseStorageId; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseWarehouseDetail.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseWarehouseDetail.html new file mode 100644 index 00000000..a04d814e --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseWarehouseDetail.html @@ -0,0 +1,367 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+ + + + + + \ No newline at end of file