diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java index 1b33d4c1..44c236a9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java @@ -140,4 +140,27 @@ public class QualityRefundsExchangesController extends BaseController } + /** + * 结案 + */ + @GetMapping("/closingProcedures/{refundsExchangesId}") + public String closingProcedures(@PathVariable("refundsExchangesId") Long refundsExchangesId, ModelMap mmap) + { + QualityRefundsExchanges qualityRefundsExchanges = qualityRefundsExchangesService.selectQualityRefundsExchangesById(refundsExchangesId); + mmap.put("qualityRefundsExchanges", qualityRefundsExchanges); + return prefix + "/closingProcedures"; + } + + /** + * 修改保存结案 + */ + @RequiresPermissions("quality:refundsExchanges:closingProcedures") + @Log(title = "品质管理退换货单", businessType = BusinessType.UPDATE) + @PostMapping("/closingProcedures") + @ResponseBody + public AjaxResult closingProceduresSave(QualityRefundsExchanges qualityRefundsExchanges) + { + return toAjax(qualityRefundsExchangesService.updateRefundsExchangesStatus(qualityRefundsExchanges)); + } + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java index 8e3cf542..bf8aabcf 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java @@ -72,4 +72,7 @@ public interface IQualityRefundsExchangesService * @return */ int restoreQualityRefundsExchangesById(Long refundsExchangesId); + + /*修改退换货状态*/ + int updateRefundsExchangesStatus(QualityRefundsExchanges qualityRefundsExchanges); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java index 31862ddd..17573b23 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java @@ -157,6 +157,17 @@ public class QualityRefundsExchangesServiceImpl implements IQualityRefundsExchan return qualityRefundsExchangesMapper.restoreQualityRefundsExchangesById(refundsExchangesId); } + /*修改退换货状态*/ + @Override + public int updateRefundsExchangesStatus(QualityRefundsExchanges qualityRefundsExchanges) { + + String loginName = ShiroUtils.getLoginName(); + qualityRefundsExchanges.setUpdateBy(loginName); + qualityRefundsExchanges.setUpdateTime(DateUtils.getNowDate()); + qualityRefundsExchanges.setRefundsExchangesStatus("1"); + return qualityRefundsExchangesMapper.updateQualityRefundsExchanges(qualityRefundsExchanges); + } + /** *退换货单号: diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/closingProcedures.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/closingProcedures.html new file mode 100644 index 00000000..71eb673f --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/closingProcedures.html @@ -0,0 +1,46 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html index 5ea44599..aee14e7d 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html +++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html @@ -79,6 +79,9 @@ \ No newline at end of file