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];