You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.2 KiB

2 weeks ago
2 weeks ago
  1. package com.xujie.modules.inspection.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.xujie.common.utils.PageUtils;
  4. import com.xujie.modules.inspection.data.*;
  5. import com.xujie.modules.inspection.entity.InspectionRequestHeader;
  6. import com.xujie.modules.inspection.entity.QcPersonList;
  7. import com.xujie.modules.order.vo.PODetailVo;
  8. import org.springframework.web.multipart.MultipartFile;
  9. import java.io.IOException;
  10. import java.util.List;
  11. /**
  12. * <p>
  13. * 检验申请单头表 服务类
  14. * </p>
  15. * @since 2026-05-21
  16. */
  17. public interface InspectionRequestService extends IService<InspectionRequestHeader> {
  18. PageUtils myPage(InspectionRequestHeader page);
  19. PageUtils queryPoPage(InspectionRequestItemVO vo);
  20. PageUtils queryPoSupplierPage(InspectionRequestItemVO vo);
  21. PageUtils queryPoSupplierOrderPage(InspectionRequestItemVO vo);
  22. void saveRequest(InspectionRequestSaveVO vo);
  23. void cancel(String requestNo);
  24. void delete(String requestNo);
  25. /**
  26. * 确认验货申请
  27. */
  28. void confirm(String requestNo);
  29. /**
  30. * 审核验货申请
  31. */
  32. void audit(String requestNo);
  33. /**
  34. * 预览上传的 Excel 数据
  35. */
  36. List<InspectionRequestExcelDTO> previewUpload(MultipartFile file) throws IOException;
  37. /**
  38. * 批量保存上传的数据
  39. */
  40. void batchSave(MultipartFile file) throws Exception;
  41. PageUtils getQcPersonList(QcPersonList qc);
  42. void schedule(InspectionScheduleVO vo);
  43. List<InspectionScheduleViewVO> queryScheduleView(String qcOperator, String site, String startDate);
  44. void updateRequest(InspectionRequestHeader header);
  45. /**
  46. * 开始验货
  47. */
  48. void startInspection(String requestNo, Integer itemNo);
  49. /**
  50. * 刷新明细的验货结果
  51. * 将明细状态改为验货完成如果所有明细都是验货完成则主记录也改为验货完成
  52. */
  53. void refreshInspectionResult(String site, String requestNo, Integer itemNo);
  54. /**
  55. * 回滚验货结果
  56. * 将明细状态从验货完成回滚到验货中如果存在未完成的明细则主记录也回滚到验货中
  57. */
  58. void rollbackInspectionResult(String site, String requestNo, Integer itemNo);
  59. }