gaoluyang
昨天 cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a
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),
          },
        ]"