From 0a09b44ce60773e5b403b4b6f1420c9cae382ef4 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Thu, 30 May 2024 16:53:21 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E4=BB=93=E5=BA=93=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E5=85=A5=E5=BA=93=E5=8D=95=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=20=E5=85=A5=E5=BA=93-=E7=94=9F=E4=BA=A7=E8=AE=A2?= =?UTF-8?q?=E5=8D=95(=E5=A7=94=E5=86=85=E5=85=A5=E5=BA=93)=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2storageMakeIn.html=20=E6=96=B0=E5=A2=9E=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E6=8C=89=E9=92=AE=20=E5=90=8E=E7=AB=AF=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=85=A5=E5=BA=93=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarehouseStorageOrderController.java | 38 +- .../warehouse/storageOrder/storageMakeIn.html | 343 ++++++++++++++++++ .../warehouse/storageOrder/storageOrder.html | 14 +- 3 files changed, 393 insertions(+), 2 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeIn.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 8fa17492..c8ec9e28 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 @@ -280,7 +280,7 @@ public class WarehouseStorageOrderController extends BaseController /** * 修改保存入库-生产订单(生产入库) */ - @RequiresPermissions("warehouse:storageOrder:storagePurchaseWarehouse") + @RequiresPermissions("warehouse:storageOrder:storageMake") @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) @PostMapping("/storageMake") @ResponseBody @@ -301,4 +301,40 @@ public class WarehouseStorageOrderController extends BaseController return groupedDetails; } + + /** + * 入库-生产订单(委内入库) + */ + @GetMapping("/storageMakeIn/{warehouseStorageId}") + public String storageMakeIn(@PathVariable("warehouseStorageId") Long warehouseStorageId, ModelMap mmap) + { + WarehouseStorageOrder warehouseStorageOrder = warehouseStorageOrderService.selectWarehouseStorageOrderById(warehouseStorageId); + mmap.put("warehouseStorageOrder", warehouseStorageOrder); + return prefix + "/storageMakeIn"; + } + + /** + * 修改保存入库-生产订单(委内入库) + */ + @RequiresPermissions("warehouse:storageOrder:storageMakeIn") + @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) + @PostMapping("/storageMakeIn") + @ResponseBody + public AjaxResult storageMakeInSave(@RequestBody WarehouseStorageOrder warehouseStorageOrder) + { + return toAjax(warehouseStorageOrderService.updateStorageMake(warehouseStorageOrder)); + } + + + /** + * 入库-生产订单(委内入库) 客户物料详情列表 + */ + @ResponseBody + @RequestMapping("/storageMakeInDetail") + public Map> storageMakeInDetail(String warehouseStorageCode){ + List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); + Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getCustomerId)); + return groupedDetails; + } + } diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeIn.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeIn.html new file mode 100644 index 00000000..ffece872 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeIn.html @@ -0,0 +1,343 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+ + + + + + \ No newline at end of file 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 f4b5258f..6537b876 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html @@ -80,6 +80,8 @@ var storagePurchaseFlag = [[${@permission.hasPermi('warehouse:storageOrder:storagePurchase')}]]; var storagePurchaseWarehouseFlag = [[${@permission.hasPermi('warehouse:storageOrder:storagePurchaseWarehouse')}]]; var storageMakeFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMake')}]]; + var storageMakeInFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeIn')}]]; + var warehouseStorageStatusDatas = [[${@dict.getType('warehouse_storage_status')}]]; var warehouseQualityStatusDatas = [[${@dict.getType('warehouse_quality_status')}]]; @@ -246,9 +248,13 @@ actions.push('入库 '); } /*入库-生产订单(生产入库)*/ - if ( row.warehouseDeptType == 1 && row.warehouseOrderType == 1 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ + if ( row.warehouseStorageType == 5 && row.warehouseDeptType == 1 && row.warehouseOrderType == 1 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ actions.push('入库 '); } + /*入库-生产订单(委内入库)*/ + if ( row.warehouseStorageType == 2 && row.warehouseDeptType == 1 && row.warehouseOrderType == 1 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ + actions.push('入库 '); + } return actions.join(''); } }] @@ -286,6 +292,12 @@ $.modal.open("入库",url); }; + /*入库-生产订单(委内入库)*/ + function storageMakeIn(warehouseStorageId){ + var url = ctx + 'warehouse/storageOrder/storageMakeIn/' + warehouseStorageId; + $.modal.open("入库",url); + }; + \ No newline at end of file