Browse Source

[fix] 售后管理

修改售后第一次维护设备前端页面
修改展示物料子表的设备履历数据新增销售单号和生产单号作为查询条件
修改展示物料子表的设备履历数据后端接口由关联物料号改成关联物料号、销售订单号、生产单号
dev
liuxiaoxu 4 months ago
parent
commit
5d86ec1476
  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. 4
      ruoyi-admin/src/main/resources/templates/aftersales/warehouseOutOrder/maintenanceEquipmentOne.html

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

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

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

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

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

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

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

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

Loading…
Cancel
Save