From a366387260397d05117de216864ecc297aa6552a Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Fri, 12 Apr 2024 13:10:31 +0800 Subject: [PATCH] '123' --- .../web/controller/quot/QuotController.java | 22 ++++++++++++++++ ruoyi-ui/src/api/quot/quot.js | 11 ++++++++ ruoyi-ui/src/views/quot/quot/index.vue | 26 +++++++++++++++---- 3 files changed, 54 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 a98b165..8baac09 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 @@ -274,4 +274,26 @@ public class QuotController extends BaseController } return success(); } + + /** + * 报价组提交反馈 + */ + @PreAuthorize("@ss.hasPermi('quot:quot:feedback')") + @Log(title = "报价组提交反馈", businessType = BusinessType.OTHER) + @PostMapping("/feedbackQuot") + public AjaxResult feedbackQuot(@RequestBody Quot quot) + { + String quot_id = quot.getQuotId(); + + Quot info = quotService.selectQuotByQuotId(quot_id); + String quot_jsxz_approval_status = quot.getQuotId(); + if("1".equals(quot_jsxz_approval_status)){ + return error("技术协助还未完成"); + }else{ + info.setQuotApprovalStatus("2"); + } + quotService.updateQuot(info); + return success(); + } + } diff --git a/ruoyi-ui/src/api/quot/quot.js b/ruoyi-ui/src/api/quot/quot.js index 96c9c1f..a99d951 100644 --- a/ruoyi-ui/src/api/quot/quot.js +++ b/ruoyi-ui/src/api/quot/quot.js @@ -79,3 +79,14 @@ export function commitJsQuot(data) { }) } +//提交反馈按钮 +export function feedbackQuot(data) { + return request({ + url: '/quot/quot/feedbackQuot', + method: 'post', + data: data + }) +} + + + diff --git a/ruoyi-ui/src/views/quot/quot/index.vue b/ruoyi-ui/src/views/quot/quot/index.vue index 521853f..94137b0 100644 --- a/ruoyi-ui/src/views/quot/quot/index.vue +++ b/ruoyi-ui/src/views/quot/quot/index.vue @@ -515,7 +515,7 @@ name="quotFile" :action="uploadUrl" :headers="headers" - :data="{ relation_id: this.form.quotId,file_type: 'quotXjFile' }" + :data="{ relation_id: this.form.quotId,file_type: 'quotFkFile' }" :on-success="handleAvatarSuccess" :show-file-list="false" :limit="1" @@ -543,7 +543,7 @@ - + 保 存 提 交 提交技术协助 - 提交反馈 - 驳回 + 提交反馈 + 驳回 @@ -616,7 +616,7 @@ }