diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java index 70f31264..3396cbc3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java @@ -90,7 +90,7 @@ public class SysSalesShippingInformController extends BaseController * 导出出货单1模板 * */ @RequiresPermissions("system:salesShippingInform:exportShippingOrderOne") - @Log(title = "采购订单", businessType = BusinessType.EXPORT) + @Log(title = "销售出货单", businessType = BusinessType.EXPORT) @GetMapping("/exportShippingOrderOne/{outOrderCode}") public void exportShippingOrderOne(@PathVariable("outOrderCode") String outOrderCode,HttpServletResponse response) { @@ -103,7 +103,7 @@ public class SysSalesShippingInformController extends BaseController * 导出出货单2模板 * */ @RequiresPermissions("system:salesShippingInform:exportShippingOrderTwo") - @Log(title = "采购订单", businessType = BusinessType.EXPORT) + @Log(title = "销售出货单", businessType = BusinessType.EXPORT) @GetMapping("/exportShippingOrderTwo/{outOrderCode}") public void exportShippingOrderTwo(@PathVariable("outOrderCode") String outOrderCode,HttpServletResponse response) { @@ -116,7 +116,7 @@ public class SysSalesShippingInformController extends BaseController * 导出出货单通知单模板 * */ @RequiresPermissions("system:salesShippingInform:exportShippingInformOrder") - @Log(title = "采购订单", businessType = BusinessType.EXPORT) + @Log(title = "销售出货单", businessType = BusinessType.EXPORT) @GetMapping("/exportShippingInformOrder/{outOrderCode}") public void exportShippingInformOrder(@PathVariable("outOrderCode") String outOrderCode,HttpServletResponse response) { diff --git a/ruoyi-admin/src/main/resources/templates/system/salesOrder/salesDeliverGoods.html b/ruoyi-admin/src/main/resources/templates/system/salesOrder/salesDeliverGoods.html index 073fe82e..79ccbff1 100644 --- a/ruoyi-admin/src/main/resources/templates/system/salesOrder/salesDeliverGoods.html +++ b/ruoyi-admin/src/main/resources/templates/system/salesOrder/salesDeliverGoods.html @@ -50,19 +50,22 @@
- +
- + +
- +
- +
@@ -138,6 +141,70 @@ $.operate.saveJson(prefix + "/salesDeliverGoods", jsonData); } + + + loadCustomerDelivery(); + //获取已经选择客户Id相关的生产单号 + function loadCustomerDelivery() { + const url = ctx + 'system/customer/shippingList'; + const data = { + enterpriseCode: sysSalesOrder.enterpriseCode, + }; + + // 使用 $.ajax 发送请求 + $.ajax({ + type: 'POST', + url: url, + dataType: 'json', + data: data, + success: function(response) { + console.log("response:", response); + + if (response.code === 0 && Array.isArray(response.rows) && response.rows.length > 0) { + const selectElement = $('#customerDelivery'); + selectElement.empty(); + + // 存储每个客户名称对应的信息 + const customerDataMap = {}; + + // 遍历返回的数据,添加为下拉框的选项并存储数据 + $.each(response.rows, function(index, item) { + const customerName = item.customerName; + customerDataMap[customerName] = item; // 存储数据 + + // 添加选项到下拉框 + selectElement.append($('