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 1ab6f34b..05410abe 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 @@ -178,6 +178,30 @@ public class WarehouseStorageOrderController extends BaseController } + /** + * 暂收-采购单(采购入库)详情 + */ + @GetMapping("/temporaryPurchaseDetail/{warehouseStorageId}") + public String temporaryPurchaseDetail(@PathVariable("warehouseStorageId") Long warehouseStorageId, ModelMap mmap) + { + WarehouseStorageOrder warehouseStorageOrder = warehouseStorageOrderService.selectWarehouseStorageOrderById(warehouseStorageId); + mmap.put("warehouseStorageOrder", warehouseStorageOrder); + return prefix + "/temporaryPurchaseDetail"; + } + + /** + * 修改保存暂收-采购单(采购入库)详情 + */ + @RequiresPermissions("warehouse:storageOrder:temporaryPurchaseDetail") + @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) + @PostMapping("/temporaryPurchaseDetail") + @ResponseBody + public AjaxResult temporaryPurchaseDetailSave(@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 52966766..1c0c89e1 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,8 @@ var storageMakeInFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeIn')}]]; var storageRefundsExchangesFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageRefundsExchanges')}]]; + + var temporaryPurchaseDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:temporaryPurchaseDetail')}]]; var temporaryOutOrderDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:temporaryOutOrderDetail')}]]; var storagePurchaseDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storagePurchaseDetail')}]]; @@ -250,6 +252,8 @@ /*暂收-采购单(采购入库)*/ if (row.warehouseDeptType == 0 && row.warehouseOrderType == 0 && row.warehouseStorageStatus == 0 ){ actions.push('暂收 '); + actions.push('详情 '); + } /*暂收-委外单*/ if ( row.warehouseStorageType == 4 && row.warehouseOrderType == 3 && row.warehouseStorageStatus == 0 ){ @@ -310,6 +314,13 @@ $.modal.open("暂收",url); }; + /*暂收-采购单(采购入库)详情*/ + function temporaryPurchaseDetail(warehouseStorageId){ + var url = ctx + 'warehouse/storageOrder/temporaryPurchaseDetail/' + warehouseStorageId; + $.modal.open("详情",url); + }; + + /*暂收-委外单*/ function temporaryOutOrder(warehouseStorageId){ var url = ctx + 'warehouse/storageOrder/temporaryOutOrder/' + warehouseStorageId; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchaseDetail.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchaseDetail.html new file mode 100644 index 00000000..a89e8feb --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchaseDetail.html @@ -0,0 +1,351 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+ + + + + + \ No newline at end of file