From 338d039f30b8b4c9c622c7cd7ce5001f7a59f2fd Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Fri, 31 May 2024 09:33:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E5=85=A5=E5=BA=93=E5=8D=95?= =?UTF-8?q?=20=E6=96=B0=E5=A2=9E=20=E5=85=A5=E5=BA=93-=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E8=AE=A2=E5=8D=95(=E5=A7=94=E5=86=85=E5=85=A5=E5=BA=93)?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2storageMakeInDetail.html=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AF=A6=E6=83=85=E6=8C=89=E9=92=AE=20?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E6=96=B0=E5=A2=9E=E8=AF=A6=E6=83=85=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20=E4=BF=AE=E6=94=B9=E4=B9=8B=E5=89=8D=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86=E7=89=A9=E7=90=86=E7=9B=B8=E5=85=B3=E5=92=8C?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=89=A9=E7=90=86=E7=9B=B8=E5=85=B3=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3=E7=9A=84URL=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarehouseStorageOrderController.java | 48 ++- .../warehouse/storageOrder/storageMake.html | 2 +- .../storageOrder/storageMakeDetail.html | 2 +- .../warehouse/storageOrder/storageMakeIn.html | 2 +- .../storageOrder/storageMakeInDetail.html | 332 ++++++++++++++++++ .../warehouse/storageOrder/storageOrder.html | 10 +- .../storageOrder/storageOutOrder.html | 2 +- .../storageOrder/storagePurchase.html | 2 +- .../storagePurchaseWarehouse.html | 2 +- .../storageOrder/storageRefundsExchanges.html | 2 +- .../storageOrder/temporaryOutOrder.html | 2 +- .../storageOrder/temporaryPurchase.html | 2 +- .../temporaryPurchaseWarehouse.html | 2 +- 13 files changed, 387 insertions(+), 23 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeInDetail.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 5ad364e4..7b014cea 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 @@ -146,7 +146,7 @@ public class WarehouseStorageOrderController extends BaseController * 暂收-采购单(仓库入库) 供应商物料详情列表 */ @ResponseBody - @RequestMapping("/temporaryPurchaseWarehouseDetail") + @RequestMapping("/temporaryPurchaseWarehouseDetailList") public Map> temporaryPurchaseWarehouseDetail(String warehouseStorageCode){ List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); @@ -154,7 +154,6 @@ public class WarehouseStorageOrderController extends BaseController } - /** * 暂收-采购单(采购入库) */ @@ -183,7 +182,7 @@ public class WarehouseStorageOrderController extends BaseController * 暂收-采购单(采购入库) 供应商物料详情列表 */ @ResponseBody - @RequestMapping("/temporaryPurchaseDetail") + @RequestMapping("/temporaryPurchaseDetailList") public Map> temporaryPurchaseDetail(String warehouseStorageCode){ List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); @@ -219,7 +218,7 @@ public class WarehouseStorageOrderController extends BaseController * 暂收-委外订单 供应商物料详情列表 */ @ResponseBody - @RequestMapping("/temporaryOutOrderDetail") + @RequestMapping("/temporaryOutOrderDetailList") public Map> temporaryOutOrderDetail(String warehouseStorageCode){ List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); @@ -256,7 +255,7 @@ public class WarehouseStorageOrderController extends BaseController * 入库-采购单(采购入库) 供应商物料详情列表 */ @ResponseBody - @RequestMapping("/storagePurchaseDetail") + @RequestMapping("/storagePurchaseDetailList") public Map> storagePurchaseDetail(String warehouseStorageCode){ List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); @@ -293,7 +292,7 @@ public class WarehouseStorageOrderController extends BaseController * 入库-采购单(仓库入库) 供应商物料详情列表 */ @ResponseBody - @RequestMapping("/storagePurchaseWarehouseDetail") + @RequestMapping("/storagePurchaseWarehouseDetailList") public Map> storagePurchaseWarehouseDetail(String warehouseStorageCode){ List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); @@ -329,7 +328,7 @@ public class WarehouseStorageOrderController extends BaseController * 入库-委外单 供应商物料详情列表 */ @ResponseBody - @RequestMapping("/storageOutOrderDetail") + @RequestMapping("/storageOutOrderDetailList") public Map> storageOutOrderDetail(String warehouseStorageCode){ List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getSupplierCode)); @@ -363,7 +362,7 @@ public class WarehouseStorageOrderController extends BaseController /** - * 入库-生产订单(生产入库) + * 入库-生产订单(生产入库)详情 */ @GetMapping("/storageMakeDetail/{warehouseStorageId}") public String storageMakeDetail(@PathVariable("warehouseStorageId") Long warehouseStorageId, ModelMap mmap) @@ -374,7 +373,7 @@ public class WarehouseStorageOrderController extends BaseController } /** - * 修改保存入库-生产订单(生产入库) + * 修改保存入库-生产订单(生产入库)详情 */ @RequiresPermissions("warehouse:storageOrder:storageMakeDetail") @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) @@ -390,7 +389,7 @@ public class WarehouseStorageOrderController extends BaseController * 入库-生产订单(生产入库) 客户物料详情列表 */ @ResponseBody - @RequestMapping("/storageMakeDetail") + @RequestMapping("/storageMakeDetailList") public Map> storageMakeDetail(String warehouseStorageCode){ List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getCustomerId)); @@ -422,11 +421,36 @@ public class WarehouseStorageOrderController extends BaseController } + + + /** + * 入库-生产订单(委内入库) + */ + @GetMapping("/storageMakeInDetail/{warehouseStorageId}") + public String storageMakeInDetail(@PathVariable("warehouseStorageId") Long warehouseStorageId, ModelMap mmap) + { + WarehouseStorageOrder warehouseStorageOrder = warehouseStorageOrderService.selectWarehouseStorageOrderById(warehouseStorageId); + mmap.put("warehouseStorageOrder", warehouseStorageOrder); + return prefix + "/storageMakeInDetail"; + } + + /** + * 修改保存入库-生产订单(委内入库) + */ + @RequiresPermissions("warehouse:storageOrder:storageMakeInDetail") + @Log(title = "仓库入库单", businessType = BusinessType.UPDATE) + @PostMapping("/storageMakeInDetail") + @ResponseBody + public AjaxResult storageMakeInDetailSave(@RequestBody WarehouseStorageOrder warehouseStorageOrder) + { + return toAjax(warehouseStorageOrderService.updateStorageMake(warehouseStorageOrder)); + } + /** * 入库-生产订单(委内入库) 客户物料详情列表 */ @ResponseBody - @RequestMapping("/storageMakeInDetail") + @RequestMapping("/storageMakeInDetailList") public Map> storageMakeInDetail(String warehouseStorageCode){ List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getCustomerId)); @@ -462,7 +486,7 @@ public class WarehouseStorageOrderController extends BaseController * 入库-退换货单 客户物料详情列表 */ @ResponseBody - @RequestMapping("/storageRefundsExchangesDetail") + @RequestMapping("/storageRefundsExchangesDetailList") public Map> storageRefundsExchangesDetail(String warehouseStorageCode){ List allDetails = storageOrderDetailService.selectStorageOrderDetailListByCode(warehouseStorageCode); Map> groupedDetails = allDetails.stream().collect(Collectors.groupingBy(WarehouseStorageOrderDetail::getCustomerId)); diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMake.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMake.html index 4f83de07..6e387af9 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMake.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMake.html @@ -163,7 +163,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/storageMakeDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/storageMakeDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var customerId in data) { if (data.hasOwnProperty(customerId)) { var customerData = data[customerId]; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeDetail.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeDetail.html index 9a4f41da..c2374ee8 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeDetail.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeDetail.html @@ -163,7 +163,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/storageMakeDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/storageMakeDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var customerId in data) { if (data.hasOwnProperty(customerId)) { var customerData = data[customerId]; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeIn.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeIn.html index ffece872..681bd845 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeIn.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeIn.html @@ -163,7 +163,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/storageMakeInDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/storageMakeInDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var customerId in data) { if (data.hasOwnProperty(customerId)) { var customerData = data[customerId]; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeInDetail.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeInDetail.html new file mode 100644 index 00000000..a95ac1a8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageMakeInDetail.html @@ -0,0 +1,332 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+ + + + + + \ 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 3b087079..cbfdac32 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOrder.html @@ -85,8 +85,9 @@ var storageMakeInFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeIn')}]]; var storageRefundsExchangesFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageRefundsExchanges')}]]; - var storageMakeDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeDetail')}]]; + var storageMakeInDetailFlag = [[${@permission.hasPermi('warehouse:storageOrder:storageMakeInDetail')}]]; + var warehouseStorageStatusDatas = [[${@dict.getType('warehouse_storage_status')}]]; var warehouseQualityStatusDatas = [[${@dict.getType('warehouse_quality_status')}]]; @@ -270,6 +271,7 @@ /*入库-生产订单(委内入库)*/ if ( row.warehouseStorageType == 2 && row.warehouseDeptType == 1 && row.warehouseOrderType == 1 && (row.warehouseStorageStatus == 2 || row.warehouseStorageStatus == 3) ){ actions.push('入库 '); + actions.push('详情 '); } /*入库-退换货单*/ @@ -338,6 +340,12 @@ $.modal.open("入库",url); }; + /*入库-生产订单(委内入库)详情*/ + function storageMakeInDetail(warehouseStorageId){ + var url = ctx + 'warehouse/storageOrder/storageMakeInDetail/' + warehouseStorageId; + $.modal.open("详情",url); + }; + /*入库-退换货单*/ function storageRefundsExchanges(warehouseStorageId){ var url = ctx + 'warehouse/storageOrder/storageRefundsExchanges/' + warehouseStorageId; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrder.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrder.html index 884447cf..75e81a5d 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrder.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageOutOrder.html @@ -170,7 +170,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/storageOutOrderDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/storageOutOrderDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var supplierCode in data) { if (data.hasOwnProperty(supplierCode)) { var supplierData = data[supplierCode]; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html index f8554359..9b5fcbe7 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchase.html @@ -170,7 +170,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/storagePurchaseDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/storagePurchaseDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var supplierCode in data) { if (data.hasOwnProperty(supplierCode)) { var supplierData = data[supplierCode]; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseWarehouse.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseWarehouse.html index 7d32ea08..3748e265 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseWarehouse.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storagePurchaseWarehouse.html @@ -170,7 +170,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/storagePurchaseWarehouseDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/storagePurchaseWarehouseDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var supplierCode in data) { if (data.hasOwnProperty(supplierCode)) { var supplierData = data[supplierCode]; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageRefundsExchanges.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageRefundsExchanges.html index b2a13f8b..179b4d28 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageRefundsExchanges.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/storageRefundsExchanges.html @@ -162,7 +162,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/storageRefundsExchangesDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/storageRefundsExchangesDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var supplierCode in data) { if (data.hasOwnProperty(supplierCode)) { var supplierData = data[supplierCode]; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryOutOrder.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryOutOrder.html index 697e8abd..74ee48de 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryOutOrder.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryOutOrder.html @@ -168,7 +168,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/temporaryOutOrderDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/temporaryOutOrderDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var supplierCode in data) { if (data.hasOwnProperty(supplierCode)) { var supplierData = data[supplierCode]; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchase.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchase.html index fc5d4873..b34a95ea 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchase.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchase.html @@ -167,7 +167,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/temporaryPurchaseDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/temporaryPurchaseDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var supplierCode in data) { if (data.hasOwnProperty(supplierCode)) { var supplierData = data[supplierCode]; diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchaseWarehouse.html b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchaseWarehouse.html index 76604e81..8b435b20 100644 --- a/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchaseWarehouse.html +++ b/ruoyi-admin/src/main/resources/templates/warehouse/storageOrder/temporaryPurchaseWarehouse.html @@ -168,7 +168,7 @@ // 假设qualityOrderCode已经定义或者可以通过某种方式获取到 var warehouseStorageCode = [[${warehouseStorageOrder.warehouseStorageCode}]]; // 这里需要实际赋值,比如从前端某个地方读取 - $.getJSON(prefix + "/temporaryPurchaseWarehouseDetail?warehouseStorageCode=" + warehouseStorageCode, function(data) { + $.getJSON(prefix + "/temporaryPurchaseWarehouseDetailList?warehouseStorageCode=" + warehouseStorageCode, function(data) { for (var supplierCode in data) { if (data.hasOwnProperty(supplierCode)) { var supplierData = data[supplierCode];