From d492b3f29d9ba813005f7512c81f8eecdf278c6c Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Mon, 8 Apr 2024 15:56:14 +0800 Subject: [PATCH] '123123' --- .../web/controller/quot/QuotController.java | 8 +- .../main/resources/mapper/quot/QuotMapper.xml | 1 + .../technicalConfirm/QuotJsqrMapper.xml | 1 + ruoyi-ui/src/views/quot/quot/index.vue | 2 +- .../technicalConfirm/index.vue | 189 +++++++++++++++++- 5 files changed, 196 insertions(+), 5 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 239e0f8..7876e6f 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 @@ -122,7 +122,7 @@ public class QuotController extends BaseController /** * 头像上传SysNoticeMapper */ - @PreAuthorize("@ss.hasPermi('quot:quot:list')") + @PreAuthorize("@ss.hasAnyPermi('quot:quot:list,jsqr:jsqr: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 @@ -170,7 +170,7 @@ public class QuotController extends BaseController /** * 删除附件列表 */ - @PreAuthorize("@ss.hasPermi('quot:quot:list')") + @PreAuthorize("@ss.hasAnyPermi('quot:quot:list,jsqr:jsqr:list')") @PostMapping("/quotFileDelete") public AjaxResult quotFileDelete(QuotFile quotFile) { String fileId = quotFile.getFileId(); @@ -230,15 +230,19 @@ public class QuotController extends BaseController //特缆、低压、中压、其他 协助状态设置 if(quotJsxzGroup.indexOf("TL")!=-1){ quotJsqr.setQuotJsqrTlApprovalStatus("1"); + quotJsqr.setQuotJsqrTlOperateStatus("0"); } if(quotJsxzGroup.indexOf("DY")!=-1){ quotJsqr.setQuotJsqrDyApprovalStatus("1"); + quotJsqr.setQuotJsqrDyOperateStatus("0"); } if(quotJsxzGroup.indexOf("ZY")!=-1){ quotJsqr.setQuotJsqrZyApprovalStatus("1"); + quotJsqr.setQuotJsqrZyOperateStatus("0"); } if(quotJsxzGroup.indexOf("QT")!=-1){ quotJsqr.setQuotJsqrQtApprovalStatus("1"); + quotJsqr.setQuotJsqrQtOperateStatus("0"); } quotJsqr.setCreateBy(getUsername()); diff --git a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml index e9dc09b..e98205a 100644 --- a/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/quot/QuotMapper.xml @@ -86,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ${params.dataScope} + order by a.update_time desc