From 1498eff8df14d0c4963fa32745ecb2a495eac3cb Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 04 八月 2026 09:38:26 +0800
Subject: [PATCH] refactor(srm): 重构供应商证书字段命名并修复表单依赖逻辑

---
 src/views/mes/pd/project/detail/index.vue |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/views/mes/pd/project/detail/index.vue b/src/views/mes/pd/project/detail/index.vue
index be5f1f1..36da5ce 100644
--- a/src/views/mes/pd/project/detail/index.vue
+++ b/src/views/mes/pd/project/detail/index.vue
@@ -59,7 +59,7 @@
 );
 
 const materialFormType = computed<FormType>(() =>
-  isPendingPublish.value || isPendingUpload.value || isPendingAudit.value ? 'update' : 'detail',
+  isPendingPublish.value || isPendingUpload.value ? 'update' : 'detail',
 );
 
 const [Descriptions] = useDescription({
@@ -169,35 +169,30 @@
             label: $t('common.edit'),
             type: 'primary',
             icon: ACTION_ICON.EDIT,
-            auth: ['mes:pd-project:update'],
             ifShow: isFormEditable,
             onClick: handleEdit,
           },
           {
             label: '鍙戝竷',
             type: 'primary',
-            auth: ['mes:pd-project:update'],
             ifShow: isPendingPublish,
             onClick: handlePublish,
           },
           {
             label: '纭涓婁紶',
             type: 'primary',
-            auth: ['mes:pd-project:update'],
             ifShow: isPendingUpload,
             onClick: handleUpload,
           },
           {
             label: '瀹℃牳閫氳繃',
             type: 'primary',
-            auth: ['mes:pd-project:audit'],
             ifShow: isPendingAudit,
             onClick: handleAudit,
           },
           {
             label: '褰掓。',
             type: 'default',
-            auth: ['mes:pd-project:archive'],
             ifShow: isPendingArchive,
             onClick: handleArchive,
           },
@@ -223,7 +218,7 @@
         <Tabs.TabPane key="workflow" tab="娴佺▼杩涘害" :force-render="true">
           <WorkflowTimeline :status="project.status ?? 0" />
         </Tabs.TabPane>
-        <Tabs.TabPane v-if="!isPendingAudit" key="material" tab="璁捐璧勬枡" :force-render="true">
+        <Tabs.TabPane v-if="!isPendingAudit" key="material" tab="璁捐璧勬枡">
           <p v-if="isPendingPublish" class="mb-3 text-sm text-amber-600">
             璇峰厛鍙戝竷浠诲姟鍚庡啀涓婁紶璁捐璧勬枡
           </p>
@@ -233,7 +228,7 @@
             :project-status="project.status"
           />
         </Tabs.TabPane>
-        <Tabs.TabPane v-if="isPendingAudit" key="audit" tab="璧勬枡瀹℃牳" :force-render="true">
+        <Tabs.TabPane v-if="isPendingAudit" key="audit" tab="璧勬枡瀹℃牳">
           <DocumentAuditList :project-id="projectId" @success="loadProjectDetail" />
         </Tabs.TabPane>
       </Tabs>

--
Gitblit v1.9.3