From dae39dea7e2874ebe2f17438949255ce8331ecef Mon Sep 17 00:00:00 2001
From: 董国庆 <364620639@qq.com>
Date: 星期四, 26 六月 2025 19:30:45 +0800
Subject: [PATCH] 修改权限

---
 laboratory/src/views/reportLibrary/processDevelopment/components/approval/index.vue |   40 ++++++++++++++++++++++++++++++++++++----
 1 files changed, 36 insertions(+), 4 deletions(-)

diff --git a/laboratory/src/views/reportLibrary/processDevelopment/components/approval/index.vue b/laboratory/src/views/reportLibrary/processDevelopment/components/approval/index.vue
index 7458017..0ba5079 100644
--- a/laboratory/src/views/reportLibrary/processDevelopment/components/approval/index.vue
+++ b/laboratory/src/views/reportLibrary/processDevelopment/components/approval/index.vue
@@ -56,6 +56,16 @@
                                 <ai-editor :readOnly="true" :value="form.reportText" style="width: 100%;"
                                     placeholder="请输入报告正文" />
                             </el-form-item>
+                            <div class="header-title" style="width: 100%">
+                <div class="header-title-left">
+                  <img src="@/assets/public/headercard.png" />
+                  <div>附件</div>
+                </div>
+              </div>
+              <el-form-item prop="name" style="margin-top: -18px">
+                <el-upload action="#" :file-list="fileList" disabled>
+                </el-upload>
+              </el-form-item>
 
                         </el-form>
                     </template>
@@ -78,7 +88,7 @@
                             <div class="resolve" :class="status == '2' && 'activeStatus'" @click.stop="status = 2">
                                 通过
                             </div>
-                            <div class="reject" :class="status == '3' && 'activeStatus'" @click.stop="status = 3">
+                            <div class="reject" :class="status == '4' && 'activeStatus'" @click.stop="status = 4">
                                 驳回
                             </div>
                         </div>
@@ -96,7 +106,7 @@
         </div>
         <div slot="footer" class="dialog-footer">
             <el-button @click="handleClose">{{obj.isDetail ? '关闭' : '取 消'}}</el-button>
-            <el-button type="primary" @click="handleApprove" v-if="!obj.isDetail">通过</el-button>
+            <el-button type="primary" @click="handleApprove" v-if="!obj.isDetail">确定</el-button>
         </div>
     </el-dialog>
 </template>
@@ -105,6 +115,7 @@
 import ApprovalProcess from '@/components/approvalProcess'
 import AiEditor from '@/components/AiEditor'
 import { getDetail } from '../../service';
+import { customUploadRequest, getFullUrl } from "@/utils/utils";
 
 
 export default {
@@ -144,8 +155,10 @@
                 updateBy: "",
                 auditRemark: "",
                 auditPersonName: "",
+                feasibilityReportFiles: [],
                 auditTime: ""
             },
+            fileList: [],
             tableData: [],
             rules: {},
             status: "2",
@@ -158,6 +171,7 @@
         },
     },
     methods: {
+        getFullUrl,
         open() {
             if (!this.obj.id) {
                 this.$message.error('缺少必要参数');
@@ -171,6 +185,23 @@
                     ...data,
                     processData: []
                 };
+                if (
+            data.feasibilityReportFiles &&
+            data.feasibilityReportFiles.length > 0
+          ) {
+            this.fileList =
+              data.feasibilityReportFiles.map((file) => {
+                return {
+                  name: file.fileName,
+                  url: getFullUrl(file.fileUrl),
+                  uid: file.id,
+                };
+              });
+            this.form.feasibilityReportFiles =data.feasibilityReportFiles;
+          } else {
+            this.fileList = [];
+            this.form.feasibilityReportFiles = [];
+          }
 
                 this.tableData = data.projectTeam ?
                     [{ ...data.projectTeam, staffName: data.staffNames || '' }] :
@@ -189,9 +220,10 @@
 
                 if (data.status == 2 || data.status == 3) {
                     processData.push({
-                        type: data.status === 2 ? "primary" : "danger",
+                        type: "primary",
                         mode: "list",
                         fields: [
+                        { label: "审核结果:", value: data.status == 4 ? '驳回' : "通过" || "" },
                             { label: "审批意见:", value: data.auditRemark || "" },
                             { label: "审核人:", value: data.auditPersonName || "" },
                             { label: "审核时间:", value: data.auditTime || "" },
@@ -220,7 +252,7 @@
                         type: "success",
                         mode: "list",
                         fields: [
-                            { label: "已评定" },
+                            { label: "评定状态:已评定" },
                             { label: "评定人:", value: data.evaluatePersonName || "" },
                             { label: "评定时间:", value: data.evaluateTime || "" }
                         ],

--
Gitblit v1.7.1