From cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:03:32 +0800
Subject: [PATCH] feat(mdm): 物料列表隐藏辅单位与销售价列
---
src/views/mes/pd/project/modules/document-audit-list.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/views/mes/pd/project/modules/document-audit-list.vue b/src/views/mes/pd/project/modules/document-audit-list.vue
index 9b29cac..64fd6e1 100644
--- a/src/views/mes/pd/project/modules/document-audit-list.vue
+++ b/src/views/mes/pd/project/modules/document-audit-list.vue
@@ -49,6 +49,7 @@
{ field: 'auditNo', title: '瀹℃牳鍗曞彿', minWidth: 140 },
{ field: 'documentName', title: '璧勬枡鍚嶇О', minWidth: 160 },
{ field: 'documentVersion', title: '璧勬枡鐗堟湰', minWidth: 90 },
+ { field: 'fileUrl', title: '鏂囦欢', minWidth: 140, slots: { default: 'file' } },
{ field: 'reviewerNickname', title: '瀹℃牳浜�', minWidth: 100 },
{ field: 'auditStatus', title: '瀹℃牳鐘舵��', minWidth: 100, cellRender: { name: 'CellDict', props: { type: DICT_TYPE.MES_PD_DOCUMENT_AUDIT_STATUS } } },
{ field: 'auditTime', title: '瀹℃牳鏃堕棿', minWidth: 160, formatter: 'formatDateTime' },
@@ -63,6 +64,7 @@
return await getPdDocumentAuditPage({
pageNo: page.currentPage,
pageSize: page.pageSize,
+ projectId: props.projectId,
...formValues,
});
},
@@ -77,6 +79,12 @@
<template>
<AuditFormModal @success="handleRefresh" />
<Grid table-title="璧勬枡瀹℃牳">
+ <template #file="{ row }">
+ <a v-if="row.fileUrl" :href="row.fileUrl" target="_blank" class="text-primary">
+ {{ row.fileName || '鏌ョ湅鏂囦欢' }}
+ </a>
+ <span v-else class="text-gray-400">-</span>
+ </template>
<template #actions="{ row }">
<TableAction
:actions="[
@@ -84,7 +92,7 @@
label: '瀹℃牳',
type: 'link',
icon: ACTION_ICON.EDIT,
- auth: ['mes:pd-document-audit:update'],
+ ifShow: row.auditStatus === 0,
onClick: handleAudit.bind(null, row),
},
]"
--
Gitblit v1.9.3