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 diff --git a/ruoyi-system/src/main/resources/mapper/technicalConfirm/QuotJsqrMapper.xml b/ruoyi-system/src/main/resources/mapper/technicalConfirm/QuotJsqrMapper.xml index 6e28abf..3a69de8 100644 --- a/ruoyi-system/src/main/resources/mapper/technicalConfirm/QuotJsqrMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/technicalConfirm/QuotJsqrMapper.xml @@ -113,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and quot_jsqr_zy_approval_status = #{quotJsqrZyApprovalStatus} and quot_jsqr_qt_approval_status = #{quotJsqrQtApprovalStatus} + order by a.update_time desc diff --git a/ruoyi-ui/src/views/quot/quot/index.vue b/ruoyi-ui/src/views/quot/quot/index.vue index eed4a41..75257a1 100644 --- a/ruoyi-ui/src/views/quot/quot/index.vue +++ b/ruoyi-ui/src/views/quot/quot/index.vue @@ -342,7 +342,7 @@ - + 特缆协助 + + 操作人提交 + 操作人驳回 + 审核人提交 + 审核人驳回 + 组长提交 + 组长驳回 + @@ -185,6 +193,14 @@ + + + + + 上传文件 ({{this.quotJsqrTlFileNum}}) + + + @@ -260,6 +276,14 @@ 低压协助 + + 操作人提交 + 操作人驳回 + 审核人提交 + 审核人驳回 + 组长提交 + 组长驳回 + @@ -273,6 +297,14 @@ + + + + + 上传文件 ({{this.quotJsqrDyFileNum}}) + + + @@ -348,6 +380,14 @@ 中压协助 + + 操作人提交 + 操作人驳回 + 审核人提交 + 审核人驳回 + 组长提交 + 组长驳回 + @@ -361,6 +401,14 @@ + + + + + 上传文件 ({{this.quotJsqrZyFileNum}}) + + + @@ -436,6 +484,14 @@ 其他协助 + + 操作人提交 + 操作人驳回 + 审核人提交 + 审核人驳回 + 组长提交 + 组长驳回 + @@ -449,6 +505,14 @@ + + + + + 上传文件 ({{this.quotJsqrQtFileNum}}) + + + @@ -521,6 +585,41 @@ + + + + + 上传文件 + + + + + + {{(scope.row.fileSize / 1024).toFixed(2) + 'KB'}} + {{(scope.row.fileSize / 1024 / 1024).toFixed(2) + 'MB'}} + + + + + + + 下载 + + + 删除 + + + + +