From 048a1d039d347cf109e053961865f7b01d721643 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期三, 27 八月 2025 16:36:27 +0800
Subject: [PATCH] 修改

---
 src/views/safetyReview/projectManage/components/projectApproval.vue |   47 ++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 38 insertions(+), 9 deletions(-)

diff --git a/src/views/safetyReview/projectManage/components/projectApproval.vue b/src/views/safetyReview/projectManage/components/projectApproval.vue
index 10b6461..ca810ca 100644
--- a/src/views/safetyReview/projectManage/components/projectApproval.vue
+++ b/src/views/safetyReview/projectManage/components/projectApproval.vue
@@ -60,12 +60,12 @@
           <span v-else>否</span>
         </template>
       </el-table-column>
-      <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="180">
-        <template #default="scope">
-          <el-button link type="primary" :disabled="state.dataForm.state >= 2 || state.isAdmin" v-if="scope.row.teamLeader === 1" @click="scope.row.teamLeader = 0">取消组长</el-button>
-          <el-button link type="primary" :disabled="state.dataForm.state >= 2 || state.isAdmin" v-else @click="scope.row.teamLeader = 1">设为组长</el-button>
-        </template>
-      </el-table-column>
+<!--      <el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="180">-->
+<!--        <template #default="scope">-->
+<!--          <el-button link type="primary" :disabled="state.dataForm.state >= 2 || state.isAdmin" v-if="scope.row.teamLeader === 1" @click="scope.row.teamLeader = 0">取消组长</el-button>-->
+<!--          <el-button link type="primary" :disabled="state.dataForm.state >= 2 || state.isAdmin" v-else @click="scope.row.teamLeader = 1">设为组长</el-button>-->
+<!--        </template>-->
+<!--      </el-table-column>-->
     </el-table>
     <el-dialog
         v-model="dialogVisible"
@@ -108,7 +108,15 @@
 import {getToken} from "@/utils/auth";
 import axios from "axios";
 import {generateWordDocument} from "@/views/safetyReview/projectManage/components/exportWord";
-import {addProject, checkProject, choose, getCheckInfo, getFileInfo, getProjectList} from "@/api/projectManage";
+import {
+  addProject,
+  checkProject,
+  choose,
+  chooseBuildCheck,
+  getCheckInfo,
+  getFileInfo,
+  getProjectList
+} from "@/api/projectManage";
 import Cookies from "js-cookie";
 import moment from "moment";
 const emit = defineEmits(["getNextStatus","backStatus"]);
@@ -206,7 +214,7 @@
             step: 3,
             saveData: state.dataList
           }
-          const res = await choose(data);
+          const res = await chooseBuildCheck(data);
           if(res.code == 200){
             await getList()
             dialogVisible.value = true
@@ -263,9 +271,28 @@
     ElMessage.warning('审批不通过')
     emit('backStatus', state.projectId);
     dialogVisible.value = false
+    removeRandomNum()
+
+
   }else{
     ElMessage.warning(res.message)
   }
+}
+const removeRandomNum = () => {
+  const rnData = localStorage.getItem('randomNum')
+  let rnDataArray = []
+  if (rnData) {
+    try {
+      rnDataArray = JSON.parse(rnData);
+    } catch (e) {
+      console.error('数据解析失败,重置为空数组');
+    }
+  }
+  const indexRN = rnDataArray.findIndex(obj => obj.projectId == state.projectId)
+  if(indexRN !== -1){
+    rnDataArray.splice(indexRN,1)
+  }
+  localStorage.setItem('randomNum', JSON.stringify(rnDataArray));
 }
 
 const getList = async () => {
@@ -407,7 +434,9 @@
     return {
       ...item,
       selectionTime: item.selectionTime ? moment(item.selectionTime).format('YYYY年MM月DD日 HH:mm:ss') : '--',
-      expertRemark: item.expertRemark ? item.expertRemark : ''
+      expertRemark: item.expertRemark ? item.expertRemark : '',
+      phone: item.phone ? item.phone: '',
+      isInside: item.expertType == 1 ? '是' : item.expertType == 2 ? '否': ''
     }
   })
   data.expertNum = data.tableData.length

--
Gitblit v1.9.2