From 5df6d6cd93ed5655065652a008189d1630fbfeab Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 29 十月 2026 16:34:34 +0800
Subject: [PATCH] change

---
 src/views/projectManagement/Management/projectDetail.vue |  345 +++++++++++++++++++-------------------------------------
 1 files changed, 118 insertions(+), 227 deletions(-)

diff --git a/src/views/projectManagement/Management/projectDetail.vue b/src/views/projectManagement/Management/projectDetail.vue
index be670cb..f8d9f9c 100644
--- a/src/views/projectManagement/Management/projectDetail.vue
+++ b/src/views/projectManagement/Management/projectDetail.vue
@@ -5,48 +5,41 @@
         <div class="header-title">椤圭洰璇︽儏</div>
         <div class="header-actions">
           <el-button style="color: white;background: #002FA7;" @click="openProgressReport">杩涘害姹囨姤</el-button>
-          <!-- <el-button type="danger" @click="openDiscussProgress">娲借皥杩涘害</el-button> -->
           <el-button @click="goBack">杩斿洖</el-button>
         </div>
       </div>
-      <el-steps v-if="steps.length > 0" :active="activeStep" align-center finish-status="success">
-        <el-step v-for="(s, idx) in steps" :key="idx" :title="s" />
-      </el-steps>
+      <div v-if="stageSteps.length > 0" class="progress-block">
+        <el-steps :active="activeStep" align-center finish-status="success">
+          <el-step v-for="(s, idx) in stageSteps" :key="idx" :title="s.name" />
+        </el-steps>
+        <div class="progress-percent">
+          <span class="progress-label">鏁翠綋杩涘害</span>
+          <el-progress :percentage="overallProgress" :stroke-width="12" style="flex: 1" />
+        </div>
+      </div>
     </el-card>
 
     <el-card class="content-card" shadow="never" v-loading="loading">
       <el-tabs v-model="activeTab">
         <el-tab-pane label="鍩虹璧勬枡" name="base">
           <el-descriptions :column="4" border>
-            <el-descriptions-item label="椤圭洰ID">{{ info.id ?? '-' }}</el-descriptions-item>
             <el-descriptions-item label="鍗曟嵁缂栧彿">{{ info.no || '-' }}</el-descriptions-item>
             <el-descriptions-item label="椤圭洰鍚嶇О">{{ info.title || '-' }}</el-descriptions-item>
             <el-descriptions-item label="瀹㈡埛鍚嶇О">{{ info.clientName || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="瀹㈡埛ID">{{ info.clientId ?? '-' }}</el-descriptions-item>
+            <el-descriptions-item label="椤圭洰鍒嗙被">{{ info.projectClassification || '-' }}</el-descriptions-item>
             <el-descriptions-item label="鐖堕」鐩�">{{ parentProjectLabel }}</el-descriptions-item>
-            <el-descriptions-item label="椤圭洰绫诲瀷">{{ projectTypeLabel }}</el-descriptions-item>
             <el-descriptions-item label="绔嬮」鏃ユ湡">{{ info.establishTime || '-' }}</el-descriptions-item>
             <el-descriptions-item label="椤圭洰鏉ユ簮">{{ info.source || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="绔嬮」浜�">{{ info.managerName || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="涓氬姟鍛�">{{ info.salesmanName || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="閮ㄩ棬">{{ info.departmentName || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="鍗曟嵁鐘舵��">
-              <dict-tag :options="bill_status" :value="String(info.status ?? '')" />
-            </el-descriptions-item>
+            <el-descriptions-item label="褰撳墠闃舵">{{ currentStageName }}</el-descriptions-item>
             <el-descriptions-item label="瀹℃牳鐘舵��">
               <dict-tag :options="project_management" :value="String(info.reviewStatus ?? '')" />
             </el-descriptions-item>
-            <el-descriptions-item label="璁″垝鐘舵��">
-              <dict-tag :options="plan_status" :value="String(info.stage ?? '')" />
-            </el-descriptions-item>
-            <el-descriptions-item label="棰勮宸ユ湡(澶�)">{{ estimatedDays }}</el-descriptions-item>
-            <el-descriptions-item label="璁″垝寮�濮嬫棩鏈�">{{ info.planStartTime || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="璁″垝瀹屾垚鏃ユ湡">{{ info.planEndTime || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="瀹為檯寮�濮嬫棩鏈�">{{ info.actualStartTime || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="瀹為檯瀹屾垚鏃ユ湡">{{ info.actualEndTime || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="璁㈠崟鏃ユ湡">{{ info.orderDate || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="椤圭洰閲戦">{{ info.orderAmount ?? '-' }}</el-descriptions-item>
-            <el-descriptions-item label="澶囨敞" :span="4">{{ info.remark || '-' }}</el-descriptions-item>
+          </el-descriptions>
+
+          <el-descriptions v-if="isFromContract" :column="3" border style="margin-top: 14px;">
+            <el-descriptions-item label="鍚堝悓瀹㈡埛">{{ info.clientName || '-' }}</el-descriptions-item>
+            <el-descriptions-item label="鍚堝悓閲戦(鍏�)">{{ info.orderAmount ?? '-' }}</el-descriptions-item>
+            <el-descriptions-item label="鍚堝悓鏃ユ湡">{{ info.orderDate || '-' }}</el-descriptions-item>
           </el-descriptions>
 
           <div class="attachment-block" v-if="attachments.length > 0">
@@ -59,81 +52,6 @@
               </div>
             </div>
           </div>
-
-          <el-divider content-position="left">浜у搧淇℃伅</el-divider>
-          <el-table :data="productRows" border show-summary :summary-method="summarizeProductTable">
-            <el-table-column align="center" label="搴忓彿" type="index" width="60" />
-            <el-table-column label="浜у搧澶х被" prop="productCategory" show-overflow-tooltip />
-            <el-table-column label="瑙勬牸鍨嬪彿" prop="specificationModel" show-overflow-tooltip />
-            <el-table-column label="鍗曚綅" prop="unit" width="90" />
-            <el-table-column label="鏁伴噺" prop="quantity" width="90" />
-            <el-table-column label="绋庣巼(%)" prop="taxRate" width="90" />
-            <el-table-column label="鍚◣鍗曚环(鍏�)" prop="taxInclusiveUnitPrice" :formatter="formattedNumber" />
-            <el-table-column label="鍚◣鎬讳环(鍏�)" prop="taxInclusiveTotalPrice" :formatter="formattedNumber" />
-            <el-table-column label="涓嶅惈绋庢�讳环(鍏�)" prop="taxExclusiveTotalPrice" :formatter="formattedNumber" />
-            <el-table-column label="鍙戠エ绫诲瀷" prop="invoiceType" width="110" />
-          </el-table>
-
-          <el-divider content-position="left">椤圭洰鍥㈤槦</el-divider>
-          <el-table :data="teamRows" border>
-            <el-table-column align="center" label="搴忓彿" type="index" width="60" />
-            <el-table-column label="濮撳悕" prop="userName" show-overflow-tooltip />
-            <el-table-column label="椤圭洰缁勮鑹�" prop="userRoleName" show-overflow-tooltip />
-            <el-table-column label="杩涘叆鏃ユ湡" prop="joinTime" width="140" />
-            <el-table-column label="绂诲紑鏃ユ湡" prop="departTime" width="140" />
-            <el-table-column label="鑱旂郴鏂瑰紡" prop="contact" show-overflow-tooltip />
-            <el-table-column label="澶囨敞" prop="remark" show-overflow-tooltip />
-          </el-table>
-
-          <el-divider content-position="left">鏀惰揣鍦板潃</el-divider>
-          <el-descriptions :column="3" border>
-            <el-descriptions-item label="鏀惰揣浜�">{{ shippingAddress.consignee || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="鑱旂郴鏂瑰紡">{{ shippingAddress.contract || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="鍦板潃">{{ shippingAddress.address || '-' }}</el-descriptions-item>
-          </el-descriptions>
-
-          <el-divider content-position="left">鑱旂郴淇℃伅</el-divider>
-          <el-descriptions :column="4" border>
-            <el-descriptions-item label="鑱旂郴浜�">{{ contractInfo.name || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="鎬у埆">{{ contractInfo.sex || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="鐢熸棩">{{ contractInfo.birthday || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="閮ㄩ棬">{{ contractInfo.department || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="鑱屽姟">{{ contractInfo.job || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="鎵嬫満鍙�">{{ contractInfo.phoneNumber || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="閭">{{ contractInfo.email || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="QQ">{{ contractInfo.qq || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="鍥哄畾鐢佃瘽">{{ contractInfo.lineaFissa || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="寰俊">{{ contractInfo.wx || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="绫嶈疮">{{ contractInfo.origineEtnica || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="娉曚汉浠h〃">{{ contractInfo.rappresentanteLegale || '-' }}</el-descriptions-item>
-          </el-descriptions>
-        </el-tab-pane>
-
-        <el-tab-pane label="椤圭洰绫诲瀷" name="plan">
-          <el-descriptions :column="4" border>
-            <el-descriptions-item label="绫诲瀷鍚嶇О">{{ projectPlan.name || '-' }}</el-descriptions-item>
-            <el-descriptions-item label="澶囨敞" :span="3">{{ projectPlan.description || '-' }}</el-descriptions-item>
-          </el-descriptions>
-
-          <div class="attachment-block" v-if="planAttachments.length > 0">
-            <div class="attachment-title">绫诲瀷闄勪欢</div>
-            <div class="attachment-list">
-              <div v-for="(att, idx) in planAttachments" :key="att.id || att.url || idx" class="attachment-item">
-                <el-icon><Document /></el-icon>
-                <span class="attachment-name">{{ att.name || att.fileName || att.url || '闄勪欢' }}</span>
-                <el-button link type="primary" size="small" @click="downloadAttachment(att)">涓嬭浇</el-button>
-              </div>
-            </div>
-          </div>
-
-          <el-table :data="planNodeRows" border style="margin-top: 14px;">
-            <el-table-column align="center" label="姝ラ" type="index" width="80" />
-            <el-table-column label="闃舵鍚嶇О" prop="name" min-width="160" show-overflow-tooltip />
-            <el-table-column label="璐熻矗浜�" prop="leaderName" width="140" show-overflow-tooltip />
-            <el-table-column label="棰勮宸ユ湡(澶�)" prop="estimatedDuration" width="140" />
-            <el-table-column label="宸ユ椂鍗曚环" prop="hourlyRate" width="120" />
-            <el-table-column label="浣滀笟鍐呭" prop="workContent" min-width="180" show-overflow-tooltip />
-          </el-table>
         </el-tab-pane>
 
         <el-tab-pane label="椤圭洰闃舵" name="stage">
@@ -147,13 +65,13 @@
             <el-table-column label="璁″垝缁撴潫" prop="planEndTime" width="120" />
             <el-table-column label="瀹為檯寮�濮�" prop="actualStartTime" width="120" />
             <el-table-column label="瀹為檯缁撴潫" prop="actualEndTime" width="120" />
-            <el-table-column label="棰勮宸ユ湡(澶�)" prop="estimatedDuration" width="130" />
+            <el-table-column label="鏈杩涘害鏃ユ湡" prop="reportDate" width="130" />
             <el-table-column label="闄勪欢" width="90" align="center">
               <template #default="{ row }">
                 <span>{{ row.attachmentCount }}</span>
               </template>
             </el-table-column>
-            <el-table-column v-if="false" label="鎿嶄綔" width="100" align="center" fixed="right" >
+            <el-table-column v-if="false" label="鎿嶄綔" width="100" align="center" fixed="right">
               <template #default="{ row }">
                 <el-button link type="danger" size="small" @click="handleDeleteStage(row)">鍒犻櫎</el-button>
               </template>
@@ -169,15 +87,9 @@
     :project-id="info.id"
     :project-info="info"
     :plan-nodes="planNodeRows"
+    :stage-records="stageNodeRows"
     :default-plan-node-id="defaultPlanNodeId"
     @submitted="handleProgressSubmitted"
-  />
-  <DiscussProgressDialog
-    v-model="discussProgressVisible"
-    :project-id="info.id"
-    :plan-nodes="planNodeRows"
-    :default-plan-node-id="defaultPlanNodeId"
-    @submitted="handleDiscussSubmitted"
   />
 </template>
 
@@ -186,54 +98,28 @@
 import { useRoute, useRouter } from 'vue-router'
 import { Document } from '@element-plus/icons-vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
-import { getProject, saveStage, listStage, deleteStage } from '@/api/projectManagement/project'
+import { getProject, saveStage, listStage, deleteStage, updateProject } from '@/api/projectManagement/project'
 import { listPlan } from '@/api/projectManagement/projectType'
 import ProgressReportDialog from '@/components/ProjectManagement/ProgressReportDialog.vue'
-import DiscussProgressDialog from '@/components/ProjectManagement/DiscussProgressDialog.vue'
 import useUserStore from '@/store/modules/user'
 
 const { proxy } = getCurrentInstance()
 const route = useRoute()
 const router = useRouter()
-const { bill_status, project_management, plan_status } = proxy.useDict('bill_status', 'project_management', 'plan_status')
+const { project_management } = proxy.useDict('project_management')
 
 const loading = ref(false)
 const activeTab = ref('base')
 const progressReportVisible = ref(false)
-const discussProgressVisible = ref(false)
 const userStore = useUserStore()
 
 const info = ref({})
-const shippingAddress = ref({})
-const contractInfo = ref({})
-const productRows = ref([])
-const teamRows = ref([])
 const attachments = ref([])
 const projectTypeMap = ref(new Map())
-const projectPlan = ref({})
 const planNodeRows = ref([])
-const planAttachments = ref([])
 const stageNodeRows = ref([])
 
-const estimatedDays = computed(() => {
-  const raw = info.value?.estimatedDays
-  const n = Number(raw)
-  if (Number.isFinite(n) && n > 0) return n
-  const start = info.value?.planStartTime
-  const end = info.value?.planEndTime
-  if (!start || !end) return 0
-  const startTime = new Date(`${start}T00:00:00`).getTime()
-  const endTime = new Date(`${end}T00:00:00`).getTime()
-  if (!Number.isFinite(startTime) || !Number.isFinite(endTime) || endTime < startTime) return 0
-  return Math.floor((endTime - startTime) / (24 * 60 * 60 * 1000)) + 1
-})
-
-const projectTypeLabel = computed(() => {
-  const id = info.value?.projectManagementPlanId
-  if (id === undefined || id === null || id === '') return '-'
-  const p = projectTypeMap.value.get(Number(id))
-  return p?.name || String(id)
-})
+const isFromContract = computed(() => info.value?.source === '涓氬姟瀹℃壒')
 
 const parentProjectLabel = computed(() => {
   return (
@@ -244,32 +130,62 @@
   )
 })
 
-const planStageEnum = computed(() => {
-  const list = Array.isArray(plan_status) ? plan_status : []
-  return list.map(i => ({ value: String(i.value), label: i.label }))
+// 鍚勯樁娈靛綋鍓嶈繘搴︼紙鍚屼竴闃舵澶氭姹囨姤鍙栨渶澶у�硷級
+const stageProgressMap = computed(() => {
+  const map = {}
+  stageNodeRows.value.forEach(r => {
+    const key = String(r.projectManagementPlanNodeId ?? '')
+    if (!key) return
+    map[key] = Math.max(map[key] || 0, Number(r.progress) || 0)
+  })
+  return map
 })
 
-const steps = computed(() => {
-  const nodes = Array.isArray(planNodeRows.value) ? planNodeRows.value : []
-  const sorted = [...nodes].sort((a, b) => Number(a.sort ?? 0) - Number(b.sort ?? 0))
-  const labels = sorted.map(i => i.name || i.workContent).filter(Boolean)
-  return labels.length > 0 ? labels : planStageEnum.value.map(i => i.label)
+// 闃舵杩涘害鏉℃暟鎹細浼樺厛浣跨敤椤圭洰涓婂悓姝ョ殑 planStage
+const stageSteps = computed(() => {
+  const planStages = Array.isArray(info.value?.planStage) ? info.value.planStage : []
+  if (planStages.length > 0) {
+    return [...planStages]
+      .sort((a, b) => Number(a.sort ?? 0) - Number(b.sort ?? 0))
+      .map(i => ({
+        id: i.id,
+        name: i.name || String(i.id ?? ''),
+        status: Number(i.planStageEnum) || 1,
+        progress: stageProgressMap.value[String(i.id)] ?? 0
+      }))
+  }
+  const nodes = [...(planNodeRows.value || [])].sort((a, b) => Number(a.sort ?? 0) - Number(b.sort ?? 0))
+  return nodes.map(n => {
+    const progress = stageProgressMap.value[String(n.id)] ?? 0
+    return {
+      id: n.id,
+      name: n.name || n.workContent || String(n.id ?? ''),
+      status: progress >= 100 ? 3 : progress > 0 ? 2 : 1,
+      progress
+    }
+  })
 })
 
 const activeStep = computed(() => {
-  const statusOrStage = info.value?.stage ?? info.value?.status
-  const enumList = planStageEnum.value
-  // 浼樺厛浣跨敤 planStageEnum 鐨� value 鍖归厤
-  const found = enumList.find(i => i.value === String(statusOrStage))
-  const label = found?.label
-  // 鍦ㄩ」鐩被鍨嬭妭鐐逛腑鏌ユ壘瀵瑰簲 label 鐨勪笅鏍�
-  const nodeLabels = steps.value
-  const idxByLabel = label ? nodeLabels.findIndex(l => String(l) === String(label)) : -1
-  if (idxByLabel >= 0) return idxByLabel + 1
-  // 鍥為��锛氬鏋� statusOrStage 鏄暟瀛楃储寮�
-  const n = Number(statusOrStage)
-  if (Number.isFinite(n) && n > 0) return Math.min(n, nodeLabels.length)
-  return 0
+  const idx = stageSteps.value.findIndex(s => s.status !== 3)
+  return idx === -1 ? stageSteps.value.length : idx
+})
+
+const currentStageName = computed(() => {
+  const current = stageSteps.value.find(s => s.status === 2) || stageSteps.value[activeStep.value]
+  return current?.name || '-'
+})
+
+const overallProgress = computed(() => {
+  const list = stageSteps.value
+  if (list.length === 0) return 0
+  const sum = list.reduce((acc, s) => acc + (Number(s.progress) || 0), 0)
+  return Math.round(sum / list.length)
+})
+
+const defaultPlanNodeId = computed(() => {
+  const next = stageSteps.value.find(s => s.status !== 3)
+  return next?.id ?? stageSteps.value[stageSteps.value.length - 1]?.id
 })
 
 function goBack() {
@@ -280,27 +196,30 @@
   progressReportVisible.value = true
 }
 
-function openDiscussProgress() {
-  discussProgressVisible.value = true
+async function saveTeamIfNeeded(teamList) {
+  if (!Array.isArray(teamList)) return
+  const attachmentIds = attachments.value
+    .map(a => a.id ?? a.fileId)
+    .filter(v => v !== undefined && v !== null && v !== '')
+    .map(String)
+  const res = await updateProject({
+    info: {
+      id: info.value?.id,
+      no: info.value?.no,
+      title: info.value?.title,
+      projectManagementPlanId: info.value?.projectManagementPlanId,
+      teamList,
+      attachmentIds
+    }
+  })
+  if (res?.code !== 200) throw new Error(res?.msg || '鍥㈤槦淇濆瓨澶辫触')
 }
-
-const defaultPlanNodeId = computed(() => {
-  const nodes = Array.isArray(planNodeRows.value) ? planNodeRows.value : []
-  if (nodes.length === 0) return undefined
-  const stageVal = info.value?.stage
-  const direct = nodes.find(n => String(n.id) === String(stageVal))
-  if (direct?.id) return direct.id
-  const sorted = [...nodes].sort((a, b) => Number(a.sort ?? 0) - Number(b.sort ?? 0))
-  const idx = Number(stageVal)
-  if (Number.isFinite(idx)) {
-    const byIndex = sorted[idx - 1] || sorted[idx] || sorted[0]
-    if (byIndex?.id) return byIndex.id
-  }
-  return sorted[0]?.id
-})
 
 async function handleProgressSubmitted(payload) {
   try {
+    if (Array.isArray(payload.teamList)) {
+      await saveTeamIfNeeded(payload.teamList)
+    }
     const nodes = Array.isArray(planNodeRows.value) ? planNodeRows.value : []
     const node = nodes.find(n => String(n.id) === String(payload.planNodeId)) || {}
     const description = payload.remark
@@ -312,13 +231,13 @@
       projectManagementInfoId: info.value?.id,
       description,
       actualLeaderId: userStore.id || info.value?.managerId,
-      actualLeaderName: userStore.nickName || info.value?.managerName || info.value?.managerName,
+      actualLeaderName: userStore.nickName || info.value?.managerName || '',
       estimatedDuration: Number(node.estimatedDuration ?? 0) || 0,
       planStartTime: payload.planStartTime || info.value?.planStartTime,
       planEndTime: payload.planEndTime || info.value?.planEndTime,
       actualStartTime: payload.actualStartTime || null,
       actualEndTime: payload.actualEndTime || null,
-      progress: Number(payload.totalProgress ?? payload.completionProgress ?? 0) || 0,
+      progress: Number(payload.completionProgress ?? payload.totalProgress ?? 0) || 0,
       storageBlobDTOs: Array.isArray(payload.storageBlobDTOs) ? payload.storageBlobDTOs : []
     }
     const res = await saveStage(req)
@@ -329,45 +248,14 @@
     }
     ElMessage.error(res?.msg || '鎻愪氦澶辫触')
   } catch (e) {
-    ElMessage.error('鎻愪氦澶辫触')
-  }
-}
-
-async function handleDiscussSubmitted(payload) {
-  try {
-    const nodes = Array.isArray(planNodeRows.value) ? planNodeRows.value : []
-    const node = nodes.find(n => String(n.id) === String(payload.planNodeId)) || {}
-    const req = {
-      id: null,
-      projectManagementPlanNodeId: payload.planNodeId,
-      projectManagementInfoId: info.value?.id,
-      description: payload.remark,
-      actualLeaderId: userStore.id || info.value?.managerId,
-      actualLeaderName: userStore.nickName || info.value?.managerName || info.value?.managerName,
-      estimatedDuration: Number(node.estimatedDuration ?? 0) || 0,
-      planStartTime: info.value?.planStartTime,
-      planEndTime: info.value?.planEndTime,
-      actualStartTime: info.value?.actualStartTime || null,
-      actualEndTime: info.value?.actualEndTime || null,
-      progress: Number(info.value?.progress ?? 0) || 0,
-      attachmentIds: Array.isArray(payload.attachmentIds) ? payload.attachmentIds : []
-    }
-    const res = await saveStage(req)
-    if (res?.code === 200) {
-      ElMessage.success('鎻愪氦鎴愬姛')
-      await Promise.all([loadDetail(), loadStageList()])
-      return
-    }
-    ElMessage.error(res?.msg || '鎻愪氦澶辫触')
-  } catch (e) {
-    ElMessage.error('鎻愪氦澶辫触')
+    ElMessage.error(e?.message || '鎻愪氦澶辫触')
   }
 }
 
 function downloadAttachment(row) {
   if (row?.url) {
     try {
-			proxy.$download.byUrl(row.url, row.originalFilename);
+      proxy.$download.byUrl(row.url, row.originalFilename)
       return
     } catch (e) {}
   }
@@ -403,11 +291,12 @@
     const records = Array.isArray(list) ? list : []
     stageNodeRows.value = records.map(r => {
       const attachmentList = Array.isArray(r.attachmentList) ? r.attachmentList : []
-      const attachmentIds = Array.isArray(r.attachmentIds) ? r.attachmentIds : []
+      const blobList = Array.isArray(r.storageBlobVOs) ? r.storageBlobVOs : []
       return {
         ...r,
         stageName: getPlanNodeName(r.projectManagementPlanNodeId),
-        attachmentCount: attachmentList.length || attachmentIds.length || 0
+        reportDate: r.createTime ? String(r.createTime).slice(0, 10) : '',
+        attachmentCount: attachmentList.length || blobList.length || 0
       }
     })
   } catch {
@@ -437,15 +326,11 @@
 function syncProjectPlan() {
   const id = info.value?.projectManagementPlanId
   if (id === undefined || id === null || id === '') {
-    projectPlan.value = {}
     planNodeRows.value = []
-    planAttachments.value = []
     return
   }
   const plan = projectTypeMap.value.get(Number(id)) || {}
-  projectPlan.value = plan || {}
   planNodeRows.value = Array.isArray(plan?.planNodeList) ? plan.planNodeList : []
-  planAttachments.value = Array.isArray(plan?.attachmentList) ? plan.attachmentList : []
 }
 
 async function loadDetail() {
@@ -456,10 +341,6 @@
     const res = await getProject(id)
     const detail = res?.data?.data ?? res?.data ?? res
     info.value = detail?.info || {}
-    shippingAddress.value = detail?.shippingAddress || {}
-    contractInfo.value = detail?.contractInfo || {}
-    productRows.value = Array.isArray(detail?.salesLedgerProductList) ? detail.salesLedgerProductList : []
-    teamRows.value = Array.isArray(detail?.info?.teamList) ? detail.info.teamList : []
     attachments.value = Array.isArray(detail?.info?.attachmentList) ? detail.info.attachmentList : []
     syncProjectPlan()
     await loadStageList()
@@ -475,12 +356,6 @@
 </script>
 
 <style scoped lang="scss">
-.section-bar {
-  width: 3px;
-  height: 14px;
-  background: #002FA7;
-  border-radius: 2px;
-}
 .header-card {
   margin-bottom: 14px;
 }
@@ -495,6 +370,23 @@
 .header-title {
   font-weight: 600;
   font-size: 16px;
+}
+
+.progress-block {
+  padding-top: 6px;
+}
+
+.progress-percent {
+  display: flex;
+  align-items: center;
+  gap: 12px;
+  margin-top: 16px;
+}
+
+.progress-label {
+  font-size: 13px;
+  color: #606266;
+  white-space: nowrap;
 }
 
 .content-card {
@@ -529,4 +421,3 @@
   white-space: nowrap;
 }
 </style>
-

--
Gitblit v1.9.3