| | |
| | | } |
| | | |
| | | export interface PageParams extends PageParam { |
| | | projectId?: number; |
| | | auditNo?: string; |
| | | documentId?: number; |
| | | documentName?: string; |
| | |
| | | ); |
| | | |
| | | const materialFormType = computed<FormType>(() => |
| | | isPendingPublish.value || isPendingUpload.value || isPendingAudit.value ? 'update' : 'detail', |
| | | isPendingPublish.value || isPendingUpload.value ? 'update' : 'detail', |
| | | ); |
| | | |
| | | const [Descriptions] = useDescription({ |
| | |
| | | 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, |
| | | }, |
| | |
| | | <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> |
| | |
| | | :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> |
| | |
| | | return await getPdDocumentAuditPage({ |
| | | pageNo: page.currentPage, |
| | | pageSize: page.pageSize, |
| | | projectId: props.projectId, |
| | | ...formValues, |
| | | }); |
| | | }, |
| | |
| | | label: '审核', |
| | | type: 'link', |
| | | icon: ACTION_ICON.EDIT, |
| | | auth: ['mes:pd-document-audit:update'], |
| | | ifShow: row.auditStatus === 0, |
| | | onClick: handleAudit.bind(null, row), |
| | | }, |
| | | ]" |