From f7808ef72f88e2805a8d801b2054d250cbe06b96 Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Sun, 7 Apr 2024 11:16:40 +0800 Subject: [PATCH] '123' --- .../customer/CustomerController.java | 5 +- .../web/controller/quot/QuotController.java | 30 ++ .../main/java/com/ruoyi/quot/domain/Quot.java | 86 +++- .../main/resources/mapper/quot/QuotMapper.xml | 49 ++- ruoyi-ui/src/api/quot/quot.js | 13 +- ruoyi-ui/src/assets/styles/element-ui.scss | 10 +- ruoyi-ui/src/views/quot/quot/index.vue | 378 +++++++++++++++--- 7 files changed, 487 insertions(+), 84 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java index cb0632d..ebec916 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java @@ -127,18 +127,19 @@ public class CustomerController extends BaseController { String cus_id = customer.getCusId(); if(StringUtils.isEmpty(cus_id)){ + customer.setCusId(UUID.fastUUID().toString()); customer.setCusCode(IdUtils.createNo("KH_",2)); customer.setCreateBy(getUsername()); customerService.insertCustomer(customer); //提交OA中间表 TODO //.... - return toAjax(customerService.insertCustomer(customer)); + return success(); }else{ customer.setUpdateBy(getUsername()); customerService.updateCustomer(customer); //提交OA中间表 TODO //.... - return toAjax(customerService.updateCustomer(customer)); + return success(); } } 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 9cb71f4..e7205ca 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 @@ -8,6 +8,7 @@ import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.file.FileUploadUtils; import com.ruoyi.common.utils.file.MinioUtil; import com.ruoyi.common.utils.uuid.UUID; +import com.ruoyi.customer.domain.Customer; import com.ruoyi.quot.domain.QuotFile; import com.ruoyi.quot.service.IQuotFileService; import com.ruoyi.web.utils.IdUtils; @@ -86,6 +87,9 @@ public class QuotController extends BaseController quot.setQuotId(UUID.fastUUID().toString()); quot.setQuotCode(IdUtils.createNo("BJD_",2)); quot.setCreateBy(getUsername()); + + String quotJsxzGroup = quot.getQuotJsxzGroup(); + System.out.println(quotJsxzGroup); return toAjax(quotService.insertQuot(quot)); } @@ -115,6 +119,7 @@ public class QuotController extends BaseController /** * 头像上传SysNoticeMapper */ + @PreAuthorize("@ss.hasPermi('quot:quot:list')") @Log(title = "上传报价附件", businessType = BusinessType.INSERT) @PostMapping("/quotFile") public AjaxResult quotFile(@RequestParam("quotFile") MultipartFile file,@RequestParam("relation_id") String relation_id,@RequestParam("file_type") String file_type) throws Exception @@ -175,4 +180,29 @@ public class QuotController extends BaseController } return success(); } + + /** + * 提交报价单 + */ + @PreAuthorize("@ss.hasPermi('customer:customer:commit')") + @Log(title = "报价单提交", businessType = BusinessType.OTHER) + @PostMapping("/commitQuot") + public AjaxResult commitQuot(@RequestBody Quot quot) + { + String quot_id = quot.getQuotId(); + if(StringUtils.isEmpty(quot_id)){ + quot.setQuotId(UUID.fastUUID().toString()); + quot.setQuotCode(IdUtils.createNo("BJD_",2)); + quot.setCreateBy(getUsername()); + quot.setQuotApprovalStatus("1");//提交报价组 + quotService.insertQuot(quot); + return success(); + }else{ + quot.setUpdateBy(getUsername()); + quot.setQuotApprovalStatus("1");//提交报价组 + quotService.updateQuot(quot); + 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 9f47524..c8a4a63 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 @@ -94,6 +94,29 @@ public class Quot extends BaseEntity @Excel(name = "创建人") private String createName; + + + /** 技术协助 */ + private String quotJsxzStandard;//技术协助-标准 + private String quotJsxzApprovalStatus;//技术协助-协助状态 + private String quotJsxzChapter;//技术协助-是否需要技术章 + private String quotJsxzTechnicalRequirement;//技术协助-技术要求 + private String quotJsxzGroup;//技术协助-分组 + private String quotJsxzConfirmId;//技术协助-技术确认单id + + private String quotJsxzConfirmCode;//技术协助-技术确认单号 + private String quotJsxzTlApprovalStatus;//技术协助-特缆协助状态 + private String quotJsxzTlRemark;//技术协助-特缆协助说明 + + private String quotJsxzDyApprovalStatus;//技术协助-低压协助状态 + private String quotJsxzDyRemark;//技术协助-低压协助说明 + + private String quotJsxzZyApprovalStatus;//技术协助-中压协助状态 + private String quotJsxzZyRemark;//技术协助-中压协助说明 + + private String quotJsxzQtApprovalStatus;//技术协助-其他协助状态 + private String quotJsxzQtRemark;//技术协助-其他协助说明 + /** 报价单-产品信息 */ private List quotMaterialList; @@ -217,19 +240,13 @@ public class Quot extends BaseEntity { return quotQuotationFrom; } - public void setQuotQuotationRequire(String quotQuotationRequire) - { - this.quotQuotationRequire = quotQuotationRequire; - } + public void setQuotQuotationRequire(String quotQuotationRequire) { this.quotQuotationRequire = quotQuotationRequire; } public String getQuotQuotationRequire() { return quotQuotationRequire; } - public void setQuotFeedbackExplanation(String quotFeedbackExplanation) - { - this.quotFeedbackExplanation = quotFeedbackExplanation; - } + public void setQuotFeedbackExplanation(String quotFeedbackExplanation) { this.quotFeedbackExplanation = quotFeedbackExplanation; } public String getQuotFeedbackExplanation() { @@ -262,10 +279,7 @@ public class Quot extends BaseEntity { return quotCheckUserName; } - public void setQuotCheckUserNickname(String quotCheckUserNickname) - { - this.quotCheckUserNickname = quotCheckUserNickname; - } + public void setQuotCheckUserNickname(String quotCheckUserNickname) { this.quotCheckUserNickname = quotCheckUserNickname; } public String getQuotCheckUserNickname() { @@ -293,6 +307,54 @@ public class Quot extends BaseEntity this.quotMaterialList = quotMaterialList; } + public String getQuotJsxzStandard() {return quotJsxzStandard;} + public void setQuotJsxzStandard(String quotJsxzStandard) {this.quotJsxzStandard = quotJsxzStandard; } + + public String getQuotJsxzApprovalStatus() {return quotJsxzApprovalStatus; } + public void setQuotJsxzApproval_status(String quotJsxzApproval_status) {this.quotJsxzApprovalStatus = quotJsxzApprovalStatus; } + + public String getQuotJsxzChapter() {return quotJsxzChapter; } + public void setQuotJsxzChapter(String quotJsxzChapter) {this.quotJsxzChapter = quotJsxzChapter; } + + public String getQuotJsxzTechnicalRequirement() {return quotJsxzTechnicalRequirement; } + public void setQuotJsxzTechnicalRequirement(String quotJsxzTechnicalRequirement) {this.quotJsxzTechnicalRequirement = quotJsxzTechnicalRequirement; } + + public String getQuotJsxzGroup() {return quotJsxzGroup; } + public void setQuotJsxzGroup(String quotJsxzGroup) { this.quotJsxzGroup = quotJsxzGroup; } + + public String getQuotJsxzConfirmId() { return quotJsxzConfirmId; } + public void setQuotJsxzConfirmId(String quotJsxzConfirmId) { this.quotJsxzConfirmId = quotJsxzConfirmId; } + + + public void setQuotJsxzApprovalStatus(String quotJsxzApprovalStatus) { this.quotJsxzApprovalStatus = quotJsxzApprovalStatus; } + + public String getQuotJsxzConfirmCode() { return quotJsxzConfirmCode; } + public void setQuotJsxzConfirmCode(String quotJsxzConfirmCode) { this.quotJsxzConfirmCode = quotJsxzConfirmCode; } + + public String getQuotJsxzTlApprovalStatus() { return quotJsxzTlApprovalStatus; } + public void setQuotJsxzTlApprovalStatus(String quotJsxzTlApprovalStatus) { this.quotJsxzTlApprovalStatus = quotJsxzTlApprovalStatus; } + + public String getQuotJsxzTlRemark() { return quotJsxzTlRemark; } + public void setQuotJsxzTlRemark(String quotJsxzTlRemark) { this.quotJsxzTlRemark = quotJsxzTlRemark; } + + public String getQuotJsxzDyApprovalStatus() { return quotJsxzDyApprovalStatus; } + public void setQuotJsxzDyApprovalStatus(String quotJsxzDyApprovalStatus) { this.quotJsxzDyApprovalStatus = quotJsxzDyApprovalStatus; } + + public String getQuotJsxzDyRemark() { return quotJsxzDyRemark; } + public void setQuotJsxzDyRemark(String quotJsxzDyRemark) { this.quotJsxzDyRemark = quotJsxzDyRemark; } + + public String getQuotJsxzZyApprovalStatus() { return quotJsxzZyApprovalStatus; } + public void setQuotJsxzZyApprovalStatus(String quotJsxzZyApprovalStatus) { this.quotJsxzZyApprovalStatus = quotJsxzZyApprovalStatus; } + + public String getQuotJsxzZyRemark() { return quotJsxzZyRemark; } + public void setQuotJsxzZyRemark(String quotJsxzZyRemark) { this.quotJsxzZyRemark = quotJsxzZyRemark; } + + public String getQuotJsxzQtApprovalStatus() { return quotJsxzQtApprovalStatus; } + public void setQuotJsxzQtApprovalStatus(String quotJsxzQtApprovalStatus) { this.quotJsxzQtApprovalStatus = quotJsxzQtApprovalStatus; } + + public String getQuotJsxzQtRemark() { return quotJsxzQtRemark; } + public void setQuotJsxzQtRemark(String quotJsxzQtRemark) { this.quotJsxzQtRemark = quotJsxzQtRemark; } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml index 56f4db6..0cb8840 100644 --- a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml @@ -31,6 +31,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + + @@ -48,7 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - LEFT JOIN sys_user u on u.user_name=a.create_by + left join sys_user u on u.user_name=a.create_by + left join sys_dept d on u.dept_id = d.dept_id @@ -57,7 +65,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 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, a.quot_check_user_nickname, a.quot_approval_status, - 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_jsxz_standard,a.quot_jsxz_approval_status,a.quot_jsxz_chapter, + a.quot_jsxz_technical_requirement,a.quot_jsxz_group,a.quot_jsxz_confirm_id from quot a @@ -75,8 +86,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"