From f4ad8718315745209486bfd2cc16dd501d7c7d7f Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sat, 1 Jun 2024 00:45:13 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix=20:=20=E4=BF=AE=E6=94=B9=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E6=95=B0=E6=8D=AE=E5=9B=9E=E6=98=BE=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=8F=8A=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DetailComponent/CollectionDetail.vue | 31 +--- .../DetailComponent/SummaryDetail.vue | 141 ++++++++---------- .../project-demand/requirement/detail.vue | 4 +- src/views/project-demand/summary/detail.vue | 40 +---- .../project-management/filing/detail.vue | 40 ++--- src/views/project-management/filing/index.vue | 7 +- .../implementation/detail.vue | 46 ++---- .../implementation/index.vue | 4 +- .../project-management/initiation/detail.vue | 85 ++--------- .../project-management/initiation/index.vue | 4 +- 10 files changed, 108 insertions(+), 294 deletions(-) diff --git a/src/components/DetailComponent/CollectionDetail.vue b/src/components/DetailComponent/CollectionDetail.vue index ffed32d..a5aebfa 100644 --- a/src/components/DetailComponent/CollectionDetail.vue +++ b/src/components/DetailComponent/CollectionDetail.vue @@ -7,17 +7,17 @@ {{ formData.requirementName }} - - - {{ formData.companyIds }} - - + + + + + {{ formData.collectType }} - + {{ formData.deadline }} @@ -71,13 +71,11 @@ diff --git a/src/components/TagAndFileUpload.vue b/src/components/TagAndFileUpload.vue index 5b2289a..d29dac5 100644 --- a/src/components/TagAndFileUpload.vue +++ b/src/components/TagAndFileUpload.vue @@ -2,8 +2,8 @@ - - + + handleDelete(row), type: 'primary'}) // } - // if (buttons.has("report")) { + if (buttons.has("report")) { btn.push({label: '需求上报', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'}) - // } + } return (
{ diff --git a/src/views/project-demand/requirement/upload.vue b/src/views/project-demand/requirement/upload.vue new file mode 100644 index 0000000..6c0bff8 --- /dev/null +++ b/src/views/project-demand/requirement/upload.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/views/project-demand/summary/api/index.js b/src/views/project-demand/summary/api/index.js index 3baa2ef..531c4a4 100644 --- a/src/views/project-demand/summary/api/index.js +++ b/src/views/project-demand/summary/api/index.js @@ -38,3 +38,11 @@ export const resubmitReported = (data) => { data: data }); }; + +export const getCollectAttachment = (params) => { + return request({ + url: '/workflow/mosr/requirement/collect/attachments', + method: "get", + params:params + }); +}; diff --git a/src/views/project-demand/summary/upload.vue b/src/views/project-demand/summary/upload.vue new file mode 100644 index 0000000..6c0bff8 --- /dev/null +++ b/src/views/project-demand/summary/upload.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/views/project-management/filing/attachment.vue b/src/views/project-management/filing/attachment.vue index 0752f87..ebda94b 100644 --- a/src/views/project-management/filing/attachment.vue +++ b/src/views/project-management/filing/attachment.vue @@ -1,111 +1,204 @@ - diff --git a/src/views/project-management/filing/index.vue b/src/views/project-management/filing/index.vue index 4cb549a..d72753c 100644 --- a/src/views/project-management/filing/index.vue +++ b/src/views/project-management/filing/index.vue @@ -207,9 +207,9 @@ const tableConfig = reactive({ if (buttons.has("details")) { btn.push({label: '详情', prem: ['mosr:requirement:info'], func: () => handleDetail(row), type: 'primary'}) } - if (buttons.has("attachments")) { + // if (buttons.has("attachments")) { btn.push({label: '附件', prem: ['mosr:requirement:resubmit'], func: () => handleAttachment(row), type: 'primary'}) - } + // } if (buttons.has("entry")) { btn.push({label: '结项', prem: ['mosr:requirement:del'], func: () => handleConclusion(row), type: 'primary'}) } @@ -265,8 +265,8 @@ const handleAttachment = (row) => { router.push({ name: 'Filing/attachment', query: { - id: row.requirementId, - projectId: row.projectId + id: row.projectId, + requirementId:row.requirementId } }) } diff --git a/src/views/project-management/filing/upload.vue b/src/views/project-management/filing/upload.vue new file mode 100644 index 0000000..6c0bff8 --- /dev/null +++ b/src/views/project-management/filing/upload.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/src/views/project-management/implementation/attachment.vue b/src/views/project-management/implementation/attachment.vue index b0a6f48..88e2215 100644 --- a/src/views/project-management/implementation/attachment.vue +++ b/src/views/project-management/implementation/attachment.vue @@ -1,7 +1,7 @@