| | |
| | | import cn.iocoder.yudao.module.mes.controller.admin.qc.oqc.vo.MesQcOqcPageReqVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.qc.oqc.vo.MesQcOqcRespVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.qc.oqc.vo.MesQcOqcSaveReqVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.qc.oqc.vo.MesQcOqcRetestReqVO; |
| | | import cn.iocoder.yudao.module.mes.controller.admin.qc.oqc.vo.MesQcOqcApprovalReqVO; |
| | | import cn.iocoder.yudao.module.crm.api.customer.CrmCustomerApi; |
| | | import cn.iocoder.yudao.module.crm.api.customer.dto.CrmCustomerRespDTO; |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.md.item.MesMdItemDO; |
| | |
| | | public CommonResult<Boolean> finishOqc(@RequestParam("id") Long id) { |
| | | oqcService.finishOqc(id); |
| | | return success(true); |
| | | } |
| | | |
| | | @PostMapping("/retest") @Operation(summary = "销售质检复检") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:retest')") |
| | | public CommonResult<Boolean> retestOqc(@Valid @RequestBody MesQcOqcRetestReqVO reqVO) { |
| | | oqcService.retestOqc(reqVO); |
| | | return success(true); |
| | | } |
| | | @PostMapping("/sales-approve") @Operation(summary = "销售部审批") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:sales-approve')") |
| | | public CommonResult<Boolean> salesApprove(@Valid @RequestBody MesQcOqcApprovalReqVO reqVO) { |
| | | oqcService.salesApprove(reqVO.getId(), reqVO.getApproved(), reqVO.getOpinion()); |
| | | return success(true); |
| | | } |
| | | @PostMapping("/company-approve") @Operation(summary = "公司质检审批销售出货") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:company-approve')") |
| | | public CommonResult<Boolean> companyApprove(@Valid @RequestBody MesQcOqcApprovalReqVO reqVO) { |
| | | oqcService.companyApprove(reqVO.getId(), reqVO.getApproved(), reqVO.getOpinion()); |
| | | return success(true); |
| | | } |
| | | @GetMapping("/actions") @Operation(summary = "销售质检流程记录") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:query')") |
| | | public CommonResult<List<cn.iocoder.yudao.module.mes.dal.dataobject.qc.oqc.MesQcOqcActionDO>> actions(@RequestParam Long id) { |
| | | return success(oqcService.getActions(id)); |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |