From 4bba9c49a5f3cf3a3928ef0f6be025ecd96c4631 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Wed, 22 May 2024 10:31:57 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E5=93=81=E8=B4=A8=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E5=AE=A2=E8=AF=89=E9=80=9A=E7=9F=A5=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=93=81=E8=B4=A8=E5=AE=A2=E8=AF=89=E9=80=9A=E7=9F=A5=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=20=E6=96=B0=E5=A2=9E=E5=93=81?= =?UTF-8?q?=E8=B4=A8=E5=AE=A2=E8=AF=89=E9=80=9A=E7=9F=A5=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=A1=B5=E9=9D=A2=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=93=81=E8=B4=A8=E5=AE=A2=E8=AF=89=E9=80=9A=E7=9F=A5Controlle?= =?UTF-8?q?r=E5=B1=82=20=E5=93=81=E8=B4=A8=E9=80=80=E6=A3=80=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=96=B0=E5=A2=9E=E6=98=AF=E5=90=A6=E7=BB=93=E6=A1=88?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...salesComplaintNoticeDetailServiceImpl.java | 1 + .../QualityComplaintNoticeController.java | 188 +++++++++ .../complaintNotice/complaintNotice.html | 174 ++++++++ .../quality/complaintNotice/detail.html | 336 +++++++++++++++ .../returnInspectionProcessing.html | 382 ++++++++++++++++++ 5 files changed, 1081 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityComplaintNoticeController.java create mode 100644 ruoyi-admin/src/main/resources/templates/quality/complaintNotice/complaintNotice.html create mode 100644 ruoyi-admin/src/main/resources/templates/quality/complaintNotice/detail.html create mode 100644 ruoyi-admin/src/main/resources/templates/quality/complaintNotice/returnInspectionProcessing.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesComplaintNoticeDetailServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesComplaintNoticeDetailServiceImpl.java index 364fc969..05f0b630 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesComplaintNoticeDetailServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesComplaintNoticeDetailServiceImpl.java @@ -143,6 +143,7 @@ public class AftersalesComplaintNoticeDetailServiceImpl implements IAftersalesCo aftersalesComplaintNotice.setRemark(aftersalesComplaintNoticeDetail.getRemark()); aftersalesComplaintNotice.setCustomerName(aftersalesComplaintNoticeDetail.getCustomerName()); aftersalesComplaintNotice.setCustomerId(aftersalesComplaintNoticeDetail.getCustomerId()); + aftersalesComplaintNotice.setClosingProcedures(aftersalesComplaintNoticeDetail.getClosingProcedures()); complaintNoticeMapper.updateAftersalesComplaintNotice(aftersalesComplaintNotice); String complaintNoticeCode = aftersalesComplaintNoticeDetail.getComplaintNoticeCode(); List aftersalesMaterialVOs = aftersalesComplaintNoticeDetail.getAftersalesMaterialVOs(); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityComplaintNoticeController.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityComplaintNoticeController.java new file mode 100644 index 00000000..2984298a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityComplaintNoticeController.java @@ -0,0 +1,188 @@ +package com.ruoyi.quality.controller; + +import com.ruoyi.aftersales.domain.AftersalesComplaintNotice; +import com.ruoyi.aftersales.domain.AftersalesComplaintNoticeDetail; +import com.ruoyi.aftersales.domain.vo.AftersalesMaterialVO; +import com.ruoyi.aftersales.service.IAftersalesComplaintNoticeDetailService; +import com.ruoyi.aftersales.service.IAftersalesComplaintNoticeService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.SysMakeOrder; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + + +/** + * 售后客诉通知单Controller + * + * @author 刘晓旭 + * @date 2024-05-22 + */ +@Controller +@RequestMapping("/quality/complaintNotice") +public class QualityComplaintNoticeController extends BaseController { + + + private String prefix = "quality/complaintNotice"; + + @Autowired + private IAftersalesComplaintNoticeService aftersalesComplaintNoticeService; + + @Autowired + private IAftersalesComplaintNoticeDetailService complaintNoticeDetailService; + + @RequiresPermissions("quality:complaintNotice:view") + @GetMapping() + public String complaintNotice() + { + return prefix + "/complaintNotice"; + } + + /** + * 查询售后客诉通知单列表 + */ + @RequiresPermissions("quality:complaintNotice:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(AftersalesComplaintNotice complaintNotice) + { + startPage(); + List list = aftersalesComplaintNoticeService.selectAftersalesComplaintNoticeList(complaintNotice); + return getDataTable(list); + } + + /** + * 导出售后客诉通知单列表 + */ + @RequiresPermissions("quality:complaintNotice:export") + @Log(title = "售后客诉通知单", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(AftersalesComplaintNoticeDetail aftersalesComplaintNoticeDetail) + { + List complaintNoticeDetails = complaintNoticeDetailService.selectAftersalesComplaintNoticeDetailList(aftersalesComplaintNoticeDetail); + ExcelUtil util = new ExcelUtil(AftersalesComplaintNoticeDetail.class); + return util.exportExcel(complaintNoticeDetails, "售后客诉通知单数据"); + } + + /** + * 新增售后客诉通知单 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存售后客诉通知单 + */ + @RequiresPermissions("quality:complaintNotice:add") + @Log(title = "售后客诉通知单", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(@RequestBody AftersalesComplaintNoticeDetail complaintNoticeDetail) + { + return toAjax(complaintNoticeDetailService.insertAftersalesComplaintNoticeDetail(complaintNoticeDetail)); + } + + /** + * 修改售后客诉通知单 + */ + @GetMapping("/returnInspectionProcessing/{complaintNoticeId}") + public String edit(@PathVariable("complaintNoticeId") Long complaintNoticeId, ModelMap mmap) + { + AftersalesComplaintNotice aftersalesComplaintNotice = aftersalesComplaintNoticeService.selectAftersalesComplaintNoticeById(complaintNoticeId); + mmap.put("aftersalesComplaintNotice", aftersalesComplaintNotice); + return prefix + "/returnInspectionProcessing"; + } + + /** + * 修改保存售后客诉通知单 + */ + @RequiresPermissions("quality:complaintNotice:returnInspectionProcessing") + @Log(title = "售后客诉通知单", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(@RequestBody AftersalesComplaintNoticeDetail aftersalesComplaintNoticeDetail) + { + return toAjax(complaintNoticeDetailService.updateAftersalesComplaintNoticeDetail(aftersalesComplaintNoticeDetail)); + } + + /** + * 售后客诉通知单详情 + */ + @GetMapping("/detail/{complaintNoticeId}") + public String detail(@PathVariable("complaintNoticeId") Long complaintNoticeId, ModelMap mmap) + { + AftersalesComplaintNotice aftersalesComplaintNotice = aftersalesComplaintNoticeService.selectAftersalesComplaintNoticeById(complaintNoticeId); + mmap.put("aftersalesComplaintNotice", aftersalesComplaintNotice); + return prefix + "/detail"; + } + + + /** + * 删除售后客诉通知单 + */ + @RequiresPermissions("quality:complaintNotice:remove") + @Log(title = "售后客诉通知单", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(aftersalesComplaintNoticeService.deleteAftersalesComplaintNoticeByIds(ids)); + } + + /** + * 查找与客户id关联的生产单号 + * */ + @ResponseBody + @GetMapping("/getMakeNosByCustomerId/{customerId}") + public List getCustomers(@PathVariable String customerId) { + List list = aftersalesComplaintNoticeService.selectMakeOrdersByCustomerId(customerId); + return list; + } + + + /** + * 查找与客户生产单号有关的物料信息 + */ + @GetMapping("/materialSelect") + public String materialSelect(@RequestParam String makeNo,ModelMap modelMap) + { + modelMap.put("makeNo",makeNo); + return prefix + "/materialSelect"; + } + + /** + * 查找与客户生产单号有关的物料信息 + * */ + @ResponseBody + @PostMapping("/getMaterialInfoByMakeNo") + public TableDataInfo getMaterialInfoByMakeNo(@RequestParam String makeNo){ + startPage(); + List list = aftersalesComplaintNoticeService.selectMaterialInfoByMakeNo(makeNo); + return getDataTable(list); + } + + /** + * 编辑操作的时候查询数据库中已有的物料信息 + * */ + @ResponseBody + @PostMapping("/getMaterialListByNoticeCode") + public TableDataInfo getMaterialListByNoticeCode(AftersalesComplaintNoticeDetail complaintNoticeDetail){ + startPage(); + List list = complaintNoticeDetailService.selectMaterialListByNoticeCode(complaintNoticeDetail.getComplaintNoticeCode()); + return getDataTable(list); + } + +} diff --git a/ruoyi-admin/src/main/resources/templates/quality/complaintNotice/complaintNotice.html b/ruoyi-admin/src/main/resources/templates/quality/complaintNotice/complaintNotice.html new file mode 100644 index 00000000..8a58c195 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/complaintNotice/complaintNotice.html @@ -0,0 +1,174 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/complaintNotice/detail.html b/ruoyi-admin/src/main/resources/templates/quality/complaintNotice/detail.html new file mode 100644 index 00000000..7d312c8e --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/complaintNotice/detail.html @@ -0,0 +1,336 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/complaintNotice/returnInspectionProcessing.html b/ruoyi-admin/src/main/resources/templates/quality/complaintNotice/returnInspectionProcessing.html new file mode 100644 index 00000000..78192768 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/complaintNotice/returnInspectionProcessing.html @@ -0,0 +1,382 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + \ No newline at end of file