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 c16860e9..f7935216 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 @@ -408,4 +408,39 @@ public class WarehouseStorageOrderController extends BaseController return groupedDetails; } + + /** + * 入库-退换货单 + */ + @GetMapping("/storageRefundsExchanges/{warehouseStorageId}") + public String storageRefundsExchanges(@PathVariable("warehouseStorageId") Long warehouseStorageId, ModelMap mmap) + { + WarehouseStorageOrder warehouseStorageOrder = warehouseStorageOrderService.selectWarehouseStorageOrderById(warehouseStorageId); + mmap.put("warehouseStorageOrder", warehouseStorageOrder); + return prefix + "/storageRefundsExchanges"; + } + + /** + * 修改保存入库-退换货单 + */ + @RequiresPermissions("warehouse:storageOrder:storageRefundsExchanges") + @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) + @PostMapping("/storageRefundsExchanges") + @ResponseBody + public AjaxResult storageRefundsExchangesSave(@RequestBody WarehouseStorageOrder warehouseStorageOrder) + { + return toAjax(warehouseStorageOrderService.updateStorageMake(warehouseStorageOrder)); + } + + + /** + * 入库-退换货单 客户物料详情列表 + */ + @ResponseBody + @RequestMapping("/storageRefundsExchangesDetail") + public Map> storageRefundsExchangesDetail(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/storageOrder.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html index bf8db835..a69ad82d 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 storageMakeFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMake')}]]; var storageMakeInFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeIn')}]]; + var storageRefundsExchangesFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageRefundsExchanges')}]]; var warehouseStorageStatusDatas = [[${@dict.getType('warehouse_storage_status')}]]; @@ -268,6 +269,11 @@ if ( row.warehouseStorageType == 2 && row.warehouseDeptType == 1 && row.warehouseOrderType == 1 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ actions.push('入库 '); } + + /*入库-退换货单*/ + if ( row.warehouseStorageType == 3 && row.warehouseOrderType == 2 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ + actions.push('入库 '); + } return actions.join(''); } }] @@ -324,6 +330,12 @@ $.modal.open("入库",url); }; + /*入库-退换货单*/ + function storageRefundsExchanges(warehouseStorageId){ + var url = ctx + 'warehouse/storageOrder/storageRefundsExchanges/' + warehouseStorageId; + $.modal.open("入库",url); + }; + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageRefundsExchanges.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageRefundsExchanges.html new file mode 100644 index 00000000..b2a13f8b --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageRefundsExchanges.html @@ -0,0 +1,332 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+ + + + + + \ No newline at end of file