From 39c91a126bd8cef5b3791bd8c79875fa82a94956 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Fri, 21 Jun 2024 16:30:09 +0800 Subject: [PATCH] '222222' --- .../web/controller/quot/QuotController.java | 15 ++++++++++ .../main/java/com/ruoyi/quot/domain/Quot.java | 6 ++++ .../com/ruoyi/quot/mapper/QuotMapper.java | 6 ++++ .../com/ruoyi/quot/service/IQuotService.java | 5 ++++ .../quot/service/impl/QuotServiceImpl.java | 8 ++++++ .../main/resources/mapper/quot/QuotMapper.xml | 9 ++++-- ruoyi-ui/src/api/quot/quot.js | 9 ++++++ ruoyi-ui/src/views/quot/quot/index.vue | 28 +++++++++++++++++-- 8 files changed, 80 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java index 0da6853..e220602 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/quot/QuotController.java @@ -887,6 +887,21 @@ public class QuotController extends BaseController return success(); } + /** + * 下载反馈附件-更新报价单状态为已处理 + */ + @PostMapping("/setHandle") + public AjaxResult setHandle(Quot quot) { + String quotId = quot.getQuotId(); + try { + quotService.setHandle(quotId); + }catch(Exception e){ + return error("系统异常!"); + } + return success(); + } + + /** * 统计有效报价单模块-获取报价单数据 */ diff --git a/ruoyi-system/src/main/java/com/ruoyi/quot/domain/Quot.java b/ruoyi-system/src/main/java/com/ruoyi/quot/domain/Quot.java index eba39fd..d04f524 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quot/domain/Quot.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quot/domain/Quot.java @@ -119,6 +119,9 @@ public class Quot extends BaseEntity /** 创建人 */ private String createName; + /** 营销经理下载反馈附件情况 */ + private String quotHandle; + /** 技术协助 */ @@ -364,6 +367,9 @@ public class Quot extends BaseEntity public String getCreateName() {return createName;} public void setCreateName(String createName) {this.createName = createName;} + public String getQuotHandle() { return quotHandle; } + + public void setQuotHandle(String quotHandle) { this.quotHandle = quotHandle; } public List getQuotMaterialList() { return quotMaterialList; } public void setQuotMaterialList(List quotMaterialList) diff --git a/ruoyi-system/src/main/java/com/ruoyi/quot/mapper/QuotMapper.java b/ruoyi-system/src/main/java/com/ruoyi/quot/mapper/QuotMapper.java index db66ce5..89a7bb9 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quot/mapper/QuotMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quot/mapper/QuotMapper.java @@ -148,6 +148,11 @@ public interface QuotMapper */ String getCode(String type); + /** + * 下载反馈附件-更新报价单状态为已处理 + * @param quotId + */ + void setHandle(String quotId); /** * 统计有效报价单模块-获取报价单数据 @@ -155,4 +160,5 @@ public interface QuotMapper * @return */ List selectStatisticsQuotList(Quot quot); + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/quot/service/IQuotService.java b/ruoyi-system/src/main/java/com/ruoyi/quot/service/IQuotService.java index 5a24511..f547eee 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quot/service/IQuotService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quot/service/IQuotService.java @@ -131,6 +131,11 @@ public interface IQuotService */ void updateQuotAllPassInfo(Quot quot); + /** + * 下载反馈附件-更新报价单状态为已处理 + * @param quotId + */ + void setHandle(String quotId); /** * 统计有效报价单模块-获取报价单数据 diff --git a/ruoyi-system/src/main/java/com/ruoyi/quot/service/impl/QuotServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/quot/service/impl/QuotServiceImpl.java index 279cd87..f9dfcd8 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quot/service/impl/QuotServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quot/service/impl/QuotServiceImpl.java @@ -279,6 +279,14 @@ public class QuotServiceImpl implements IQuotService quotMapper.updateQuot(quot); } + /** + * 下载反馈附件-更新报价单状态为已处理 + * @param quotId + */ + @Override + public void setHandle(String quotId) { + quotMapper.setHandle(quotId); + } /** * 统计有效报价单模块-获取报价单数据 diff --git a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml index ae99598..4d13c50 100644 --- a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml @@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -115,7 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.quot_quotation_require, a.quot_feedback_explanation, a.quot_quantity, a.quot_total_price, a.quot_check_user_name, u2.nick_name quot_check_user_nickname, a.quot_approval_status,a.quot_materials_count, a.quot_lv_price,a.quot_tong_price,a.quot_matprice_diff,a.quot_matprice_diff2,a.quot_print,a.quot_print_user_name,u3.nick_name quot_print_user_nickName, - a.create_by, a.create_time, a.update_by, a.update_time, u.nick_name create_name, + a.create_by, a.create_time, a.update_by, a.update_time, u.nick_name create_name,a.quot_handle, a.quot_jsxz_standard,a.quot_jsxz_approval_status,a.quot_jsxz_chapter, a.quot_jsxz_technical_requirement,a.quot_jsxz_group_values,a.quot_jsxz_confirm_id, @@ -161,7 +162,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.quot_project, a.quot_quotation_date, a.quot_quotation_from, a.quot_quotation_require, a.quot_feedback_explanation, a.quot_quantity, a.quot_total_price, a.quot_check_user_name, u2.nick_name quot_check_user_nickname, a.quot_approval_status, a.quot_materials_count,a.quot_lv_price,a.quot_tong_price,a.quot_matprice_diff,a.quot_matprice_diff2,a.quot_print,a.quot_print_user_name,u3.nick_name quot_print_user_nickName, - a.create_by, a.create_time, a.update_by, a.update_time, + a.create_by, a.create_time, a.update_by, a.update_time,a.quot_handle, a.quot_jsxz_standard,a.quot_jsxz_approval_status,a.quot_jsxz_chapter, a.quot_jsxz_technical_requirement,a.quot_jsxz_group_values,a.quot_jsxz_confirm_id, @@ -513,7 +514,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" {call GetSerialNo(#{type,mode=IN,jdbcType=VARCHAR})} - + + update quot set quot_handle = '1' where quot_id = #{quotId} + diff --git a/ruoyi-ui/src/api/quot/quot.js b/ruoyi-ui/src/api/quot/quot.js index e09e114..5fbd4db 100644 --- a/ruoyi-ui/src/api/quot/quot.js +++ b/ruoyi-ui/src/api/quot/quot.js @@ -176,6 +176,15 @@ export function rejectQuot(data) { }) } +//下载反馈附件-更新报价单状态为已处理 +export function setHandle(quotId) { + return request({ + url: '/quot/quot/setHandle', + method: 'post', + params: {quotId:quotId} + }) +} + //统计有效报价单模块-获取报价单数据 diff --git a/ruoyi-ui/src/views/quot/quot/index.vue b/ruoyi-ui/src/views/quot/quot/index.vue index 4f8fa58..f63c238 100644 --- a/ruoyi-ui/src/views/quot/quot/index.vue +++ b/ruoyi-ui/src/views/quot/quot/index.vue @@ -161,6 +161,11 @@ + + +