From c78889e71d16d26c03ff59746db47c6d4d2b98e0 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期一, 03 三月 2025 20:41:25 +0800
Subject: [PATCH] Merge branch 'master' into dev

---
 src/views/projectProcess/detail/index.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/views/projectProcess/detail/index.vue b/src/views/projectProcess/detail/index.vue
index 545c0f1..22a4f97 100644
--- a/src/views/projectProcess/detail/index.vue
+++ b/src/views/projectProcess/detail/index.vue
@@ -23,7 +23,7 @@
         <div @click="changeTab(4, 'remaining')" :class="{'item-warm': true, 'remaining-color': true, 'active': 4 === selectTabId}">鍓╀綑浜嬮」<span v-if="detailData && detailData.statistics">锛坽{detailData.statistics.remainingTaskNum}}锛�</span></div>
         <div @click="changeTab(5, 'timely')" :class="{'item-warm': true, 'timely-color': true, 'active': 5 === selectTabId}">鎸夋椂瀹屾垚<span v-if="detailData && detailData.statistics">锛坽{detailData.statistics.timelyFinishedTaskNum}}锛�</span></div>
         <div @click="changeTab(6, 'overtime')" :class="{'item-warm': true, 'overtime-color': true, 'active': 6 === selectTabId}">瓒呮椂浜嬮」锛�0锛�</div>
-        <div @click="changeTab(7, 'willOvertime')" :class="{'item-warm': true, 'willOvertime-color': true, 'active': 7 === selectTabId}">涓存湡浜嬮」锛�0锛�</div>
+<!--        <div @click="changeTab(7, 'willOvertime')" :class="{'item-warm': true, 'willOvertime-color': true, 'active': 7 === selectTabId}">涓存湡浜嬮」锛�0锛�</div>-->
         <div @click="changeTab(8, 'urge')" :class="{'item-warm': true, 'urge-color': true, 'active': 8 === selectTabId}">鐫e姙浜嬮」锛�0锛�</div>
       </div>
       <div style="display: flex;justify-content: center;align-items: center;margin-top: 20px; position: relative">
@@ -491,9 +491,19 @@
         this.total = res.total
       })
     },
+    isProject(id) {
+      const numericPattern = /^\d+(\.\d+)?$/;
+      return numericPattern.test(id)
+    },
     // 鏌ヨ璇︽儏
     getProjectProcessInfo() {
-      getProjectProcessDetail(this.queryParams.projectId, this.queryParams.processDefId).then(res => {
+      const projectType = this.isProject(this.queryParams.projectId) ? "PROJECT" : "ENGINEERING"
+      const param = {
+        projectId: this.queryParams.projectId,
+        processDefId: this.queryParams.processDefId,
+        projectType: projectType
+      }
+      getProjectProcessDetail(param).then(res => {
         this.detailData = res.data
         this.taskList = res.taskList
         this.total = res.total

--
Gitblit v1.8.0