From 53ee38de3b1359a34c0f2a239b689dbeb3b3c2e4 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Fri, 24 May 2024 11:04:09 +0800 Subject: [PATCH] '123' --- ABAP_AS_WITH_POOL.jcoDestination | 4 +- .../web/controller/quot/QuotController.java | 14 +++ .../controller/redBook/RedBookController.java | 4 +- .../main/java/com/ruoyi/quot/domain/Quot.java | 29 +++++++ .../com/ruoyi/quot/domain/QuotMaterial.java | 13 +++ .../com/ruoyi/quot/service/IQuotService.java | 9 ++ .../quot/service/impl/QuotServiceImpl.java | 11 +++ .../main/resources/mapper/quot/QuotMapper.xml | 37 ++++++-- ruoyi-ui/src/api/quot/quot.js | 13 +++ ruoyi-ui/src/views/quot/quot/index.vue | 87 +++++++++++++++---- ruoyi-ui/src/views/redBook/quots.vue | 8 +- 11 files changed, 196 insertions(+), 33 deletions(-) diff --git a/ABAP_AS_WITH_POOL.jcoDestination b/ABAP_AS_WITH_POOL.jcoDestination index e577736..9ae2767 100644 --- a/ABAP_AS_WITH_POOL.jcoDestination +++ b/ABAP_AS_WITH_POOL.jcoDestination @@ -1,5 +1,5 @@ #for tests only ! -#Wed May 22 11:19:09 CST 2024 +#Fri May 24 10:59:58 CST 2024 jco.destination.pool_capacity=10 jco.client.lang=ZH jco.client.ashost=172.19.0.120 @@ -7,5 +7,5 @@ jco.client.saprouter= jco.client.user=RFC jco.client.sysnr=00 jco.destination.peak_limit=10 -jco.client.passwd=gQwxMDXz:z%]%(D`z%xN*]YwLtg])onxv2:/*QW3OBRYL2x0 +jco.client.passwd=eh#cz-.rtcXe[J,v=]]kN+:WMGkUk|l**Lw)XHiZ5XN)Zm0` jco.client.client=300 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 b1df323..67cfaa7 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 @@ -86,6 +86,18 @@ public class QuotController extends BaseController util.exportExcel(response, list, "报价数据"); } + /** + * 报价单打印状态修改 + */ + @PreAuthorize("@ss.hasPermi('quot:quot:changQuotPrintStatus')") + @Log(title = "报价单打印状态修改", businessType = BusinessType.UPDATE) + @PutMapping("/changQuotPrintStatus") + public AjaxResult changQuotPrintStatus(@RequestBody Quot quot) + { + quot.setQuotPrintUserName(getUsername()); + return toAjax(quotService.changQuotPrintStatus(quot)); + } + /** * 获取报价详细信息 */ @@ -146,6 +158,7 @@ public class QuotController extends BaseController quot.setQuotId(UUID.fastUUID().toString()); quot.setQuotCode(IdUtils.createNo("BJD_",2)); quot.setCreateBy(getUsername()); + quot.setQuotSalesmanCode(getUsername()); quot.setUpdateBy(getUsername()); return toAjax(quotService.insertQuot(quot)); } @@ -270,6 +283,7 @@ public class QuotController extends BaseController quot.setQuotId(UUID.fastUUID().toString()); quot.setQuotCode(IdUtils.createNo("BJD_",2)); quot.setCreateBy(getUsername()); + quot.setQuotSalesmanCode(getUsername()); quotService.insertQuot(quot); sendNoticeToBjz(quot); return success(); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/redBook/RedBookController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/redBook/RedBookController.java index 1cfa631..634bc14 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/redBook/RedBookController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/redBook/RedBookController.java @@ -228,7 +228,7 @@ public class RedBookController extends BaseController * @param quot * @return */ - @DataSource(DataSourceType.MASTER) + /*@DataSource(DataSourceType.MASTER) @Log(title = "提交红本报价单", businessType = BusinessType.UPDATE) @PostMapping("/commitQuot") public AjaxResult commitQuot(HttpServletResponse response, @RequestBody OAQuot quot) @@ -237,7 +237,7 @@ public class RedBookController extends BaseController quot.setUpdateBy(getUsername()); redBookService.updateOAQuot(quot); return success(quot); - } + }*/ /** * 报价单生成 * @param quot 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 c05aab0..b2ea157 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 @@ -24,6 +24,9 @@ public class Quot extends BaseEntity @Excel(name = "报价单号") private String quotCode; + /** 业务员账号 */ + private String quotSalesmanCode; + /** 业务员编码 */ private String quotSalesmanBm; @@ -76,6 +79,17 @@ public class Quot extends BaseEntity @Excel(name = "反馈说明") private String quotFeedbackExplanation; + /** 铝价 */ + private String quotLvPrice; + + /** 铜价 */ + private String quotTongPrice; + + /** 是否打印 */ + private String quotPrint; + /** 打印人 */ + private String quotPrintUserName; + /** 总价 */ private String quotTotalPrice; @@ -145,6 +159,9 @@ public class Quot extends BaseEntity { return quotCode; } + public String getQuotSalesmanCode() { return quotSalesmanCode; } + + public void setQuotSalesmanCode(String quotSalesmanCode) { this.quotSalesmanCode = quotSalesmanCode; } public void setQuotSalesmanBm(String quotSalesmanBm) { this.quotSalesmanBm = quotSalesmanBm; @@ -253,6 +270,18 @@ public class Quot extends BaseEntity { return quotFeedbackExplanation; } + public String getQuotLvPrice() { return quotLvPrice; } + + public void setQuotLvPrice(String quotLvPrice) { this.quotLvPrice = quotLvPrice; } + public String getQuotTongPrice() { return quotTongPrice; } + + public void setQuotTongPrice(String quotTongPrice) { this.quotTongPrice = quotTongPrice; } + public String getQuotPrint() { return quotPrint; } + + public void setQuotPrint(String quotPrint) { this.quotPrint = quotPrint; } + public String getQuotPrintUserName() { return quotPrintUserName; } + + public void setQuotPrintUserName(String quotPrintUserName) { this.quotPrintUserName = quotPrintUserName; } public void setQuotQuantity(String quotQuantity) { this.quotQuantity = quotQuantity; diff --git a/ruoyi-system/src/main/java/com/ruoyi/quot/domain/QuotMaterial.java b/ruoyi-system/src/main/java/com/ruoyi/quot/domain/QuotMaterial.java index e882da1..97417f7 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/quot/domain/QuotMaterial.java +++ b/ruoyi-system/src/main/java/com/ruoyi/quot/domain/QuotMaterial.java @@ -32,6 +32,9 @@ public class QuotMaterial extends BaseEntity @Excel(name = "电压") private String matDiany; + /** 标准 */ + private String matStandard; + /** 单位 */ @Excel(name = "单位") private String matDanw; @@ -40,6 +43,10 @@ public class QuotMaterial extends BaseEntity @Excel(name = "数量") private BigDecimal matSl; + /** 备注 */ + @Excel(name = "备注") + private String matRemark; + /** */ private String quotId; @@ -88,6 +95,9 @@ public class QuotMaterial extends BaseEntity { return matDanw; } + public String getMatStandard() { return matStandard; } + + public void setMatStandard(String matStandard) { this.matStandard = matStandard; } public void setMatSl(BigDecimal matSl) { this.matSl = matSl; @@ -97,6 +107,9 @@ public class QuotMaterial extends BaseEntity { return matSl; } + public String getMatRemark() { return matRemark; } + + public void setMatRemark(String matRemark) { this.matRemark = matRemark; } public void setQuotId(String quotId) { this.quotId = quotId; 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 eec06e1..7a261ee 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 @@ -1,6 +1,8 @@ package com.ruoyi.quot.service; import java.util.List; + +import com.ruoyi.customer.domain.Customer; import com.ruoyi.quot.domain.Quot; /** @@ -72,4 +74,11 @@ public interface IQuotService * @return */ Quot selectQuotByQuotHjId(String quotHjId); + + /** + * 报价单打印状态修改 + * @param quot + * @return + */ + int changQuotPrintStatus(Quot quot); } 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 a30a560..09d3b80 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 @@ -5,6 +5,7 @@ import java.util.List; import com.ruoyi.common.annotation.DataScope; import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.uuid.UUID; +import com.ruoyi.customer.domain.Customer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; @@ -133,6 +134,16 @@ public class QuotServiceImpl implements IQuotService return quotMapper.selectQuotByQuotHjId(quotHjId); } + /** + * 报价单打印状态修改 + * @param quot + * @return + */ + @Override + public int changQuotPrintStatus(Quot quot) { + return quotMapper.updateQuot(quot); + } + /** * 新增报价单-产品信息 * diff --git a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml index 6653bb1..034ae9e 100644 --- a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml @@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -26,6 +27,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + @@ -66,25 +71,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + left join sys_user u on u.user_name=a.create_by left join sys_user u2 on u2.user_name=a.quot_check_user_name + left join sys_user u3 on u3.user_name=a.quot_print_user_name left join sys_dept d on u.dept_id = d.dept_id left join quot_jsqr q on q.quot_jsqr_id = a.quot_jsxz_confirm_id left join quot_hj h on h.quot_hj_id = a.quot_hj_id - select a.quot_id, a.quot_code, a.quot_salesman_bm, a.quot_salesman_name, a.quot_customer_bm, + select a.quot_id, a.quot_code, a.quot_salesman_code, a.quot_salesman_bm, a.quot_salesman_name, a.quot_customer_bm, a.quot_customer_name,a.quot_salesman_dept_id, a.quot_salesman_dept_name, a.quot_address, a.quot_phone, a.quot_inquiry_date, 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_lv_price,a.quot_tong_price,a.quot_print,u3.nick_name quot_print_user_name, a.create_by, a.create_time, a.update_by, a.update_time, u.nick_name create_name, a.quot_jsxz_standard,a.quot_jsxz_approval_status,a.quot_jsxz_chapter, @@ -117,10 +126,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"