Browse Source

[fix] 售后管理 仓库管理

修改售后第二次维护设备前端页面
修改展示物料子表的设备履历数据新增销售单号和生产单号作为查询条件
修改展示物料子表的设备履历数据后端接口由关联物料号改成关联物料号、销售订单号、生产单号
修改销售单出库 展示设备相关信息
修改展示出库单子表的设备履历数据新增销售单号和生产单号作为查询条件
修改展示出库单子表的设备履历数据后端接口由关联物料号改成关联物料号、销售订单号、生产单号
dev
liuxiaoxu 4 months ago
parent
commit
3a959165d6
  1. 6
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/controller/AftersalesWarehouseOutController.java
  2. 2
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAftersalesWarehouseOutService.java
  3. 6
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesWarehouseOutServiceImpl.java
  4. 6
      ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseOutOrderController.java
  5. 4
      ruoyi-admin/src/main/resources/templates/aftersales/warehouseOutOrder/maintenanceEquipmentTwo.html
  6. 2
      ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/salesOutWarehouse.html

6
ruoyi-admin/src/main/java/com/ruoyi/aftersales/controller/AftersalesWarehouseOutController.java

@ -374,11 +374,13 @@ public class AftersalesWarehouseOutController extends BaseController
*/
@PostMapping("/showAftersalesShippingDeviceListTwo")
@ResponseBody
public TableDataInfo showAftersalesShippingDeviceListTwo(@RequestParam("materialNo") String materialNo)
public TableDataInfo showAftersalesShippingDeviceListTwo(@RequestParam("materialNo") String materialNo,
@RequestParam("salesOrderCode") String salesOrderCode,
@RequestParam("makeNo") String makeNo)
{
startPage();
List<SelectShippingDeviceVO> list = warehouseOutOrderService.showAftersalesShippingDeviceListTwo(materialNo);
List<SelectShippingDeviceVO> list = warehouseOutOrderService.showAftersalesShippingDeviceListTwo(materialNo,salesOrderCode,makeNo);
return getDataTable(list);
}

2
ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAftersalesWarehouseOutService.java

@ -134,7 +134,7 @@ public interface IAftersalesWarehouseOutService
/**
* 展示售后第二次维护设备料号已选择添加出货设备的相关出货设备信息
*/
List<SelectShippingDeviceVO> showAftersalesShippingDeviceListTwo(String materialNo);
List<SelectShippingDeviceVO> showAftersalesShippingDeviceListTwo(String materialNo,String salesOrderCode,String makeNo);
/**
* 修改保存售后第二次维护设备

6
ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesWarehouseOutServiceImpl.java

@ -302,12 +302,14 @@ public class AftersalesWarehouseOutServiceImpl implements IAftersalesWarehouseOu
* 展示售后第二次维护设备料号已选择添加出货设备的相关出货设备信息
*/
@Override
public List<SelectShippingDeviceVO> showAftersalesShippingDeviceListTwo(String materialNo) {
public List<SelectShippingDeviceVO> showAftersalesShippingDeviceListTwo(String materialNo,String salesOrderCode,String makeNo) {
List<SelectShippingDeviceVO> selectShippingDeviceVOs = new ArrayList<>();
AfterSalesShippingDevice afterSalesShippingDevice = new AfterSalesShippingDevice();
afterSalesShippingDevice.setMaterialNo(materialNo);
List<AfterSalesShippingDevice> afterSalesShippingDevices = shippingDeviceMapper.selectShippingDeviceListByMaterialNo(afterSalesShippingDevice);
afterSalesShippingDevice.setSalesOrderCode(salesOrderCode);
afterSalesShippingDevice.setMakeNo(makeNo);
List<AfterSalesShippingDevice> afterSalesShippingDevices = shippingDeviceMapper.selectAfterSalesShippingDeviceByNoAndCode(afterSalesShippingDevice);
List<AfterSalesShippingDevice> filterAfterSalesShippingDevices = afterSalesShippingDevices.stream().filter(shippingDevice -> "0".equals(shippingDevice.getAddShippingDeviceFlag())).collect(Collectors.toList());
if (!StringUtils.isNotEmpty(filterAfterSalesShippingDevices)) {
// 记录日志

6
ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseOutOrderController.java

@ -237,10 +237,12 @@ public class WarehouseOutOrderController extends BaseController
*/
@PostMapping("/getShippingDeviceList")
@ResponseBody
public TableDataInfo getShippingDeviceList(@RequestParam("materialNo") String materialNo)
public TableDataInfo getShippingDeviceList(@RequestParam("materialNo") String materialNo,
@RequestParam("salesOrderCode") String salesOrderCode,
@RequestParam("makeNo") String makeNo)
{
startPage();
List<SelectShippingDeviceVO> list = aftersalesWarehouseOutService.showAftersalesShippingDeviceListTwo(materialNo);
List<SelectShippingDeviceVO> list = aftersalesWarehouseOutService.showAftersalesShippingDeviceListTwo(materialNo,salesOrderCode,makeNo);
return getDataTable(list);
}

4
ruoyi-admin/src/main/resources/templates/aftersales/warehouseOutOrder/maintenanceEquipmentTwo.html

@ -252,7 +252,9 @@
contentType: "application/x-www-form-urlencoded",
queryParams : {
// salesOrderCode: warehouseOutOrder.salesOrderCode,
materialNo: parentRow.materialNo
materialNo: parentRow.materialNo,
salesOrderCode:warehouseOutOrder.salesOrderCode,
makeNo:warehouseOutOrder.makeNo
},
columns: [
{

2
ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/salesOutWarehouse.html

@ -267,6 +267,8 @@
contentType: "application/x-www-form-urlencoded",
queryParams : {
materialNo: row.materialNo,
salesOrderCode:warehouseOutOrder.salesOrderCode,
makeNo:warehouseOutOrder.makeNo
},
columns: [
{

Loading…
Cancel
Save