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 c92431ad..1f58271f 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 @@ -251,6 +251,31 @@ public class WarehouseStorageOrderController extends BaseController } + + /** + * 入库-采购单(采购入库)详情 + */ + @GetMapping("/storagePurchaseDetail/{warehouseStorageId}") + public String storagePurchaseDetail(@PathVariable("warehouseStorageId") Long warehouseStorageId, ModelMap mmap) + { + WarehouseStorageOrder warehouseStorageOrder = warehouseStorageOrderService.selectWarehouseStorageOrderById(warehouseStorageId); + mmap.put("warehouseStorageOrder", warehouseStorageOrder); + return prefix + "/storagePurchaseDetail"; + } + + /** + * 修改保存入库-采购单(采购入库)详情 + */ + @RequiresPermissions("warehouse:storageOrder:storagePurchaseDetail") + @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) + @PostMapping("/storagePurchaseDetail") + @ResponseBody + public AjaxResult storagePurchaseDetailSave(@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 804ca755..96e53255 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html @@ -85,6 +85,7 @@ var storageMakeInFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeIn')}]]; var storageRefundsExchangesFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageRefundsExchanges')}]]; + var storagePurchaseDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storagePurchaseDetail')}]]; var storageMakeDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeDetail')}]]; var storageMakeInDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeInDetail')}]]; var storageOutOrderDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageOutOrderDetail')}]]; @@ -237,7 +238,7 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('编辑 '); + //actions.push('编辑 '); /*暂收-采购单(仓库入库)*/ if (row.warehouseDeptType == 1 && row.warehouseOrderType == 0 && row.warehouseStorageStatus == 0 ){ @@ -254,6 +255,8 @@ /*入库-采购单(采购入库)*/ if ( row.warehouseDeptType == 0 && row.warehouseOrderType == 0 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ actions.push('入库 '); + actions.push('详情 '); + } /*入库-采购单(仓库入库)*/ if ( row.warehouseDeptType == 1 && row.warehouseOrderType == 0 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ @@ -311,6 +314,12 @@ $.modal.open("入库",url); }; + /*入库-采购单(采购入库)详情*/ + function storagePurchaseDetail(warehouseStorageId){ + var url = ctx + 'warehouse/storageOrder/storagePurchaseDetail/' + warehouseStorageId; + $.modal.open("详情",url); + }; + /*入库-采购单(仓库入库)*/ function storagePurchaseWarehouse(warehouseStorageId){ var url = ctx + 'warehouse/storageOrder/storagePurchaseWarehouse/' + 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 index 477c1ddb..fc6bb348 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrderDetail.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrderDetail.html @@ -48,7 +48,7 @@
- +
@@ -56,7 +56,7 @@
-
@@ -64,13 +64,13 @@
- +
- +
diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseDetail.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseDetail.html new file mode 100644 index 00000000..4d2e3080 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseDetail.html @@ -0,0 +1,375 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+ + + + + + \ No newline at end of file