From 5ae8e4be782cc6ec8a5597d38301a703a43ec774 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Fri, 31 May 2024 20:56:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/expense-manage/index.js | 6 + src/api/project-manage/index.js | 2 +- src/api/special-fund/index.js | 18 +++ src/components/AttachmentUpload.vue | 11 +- .../DetailComponent/ExpenseDetail.vue | 20 +-- src/components/DetailComponent/Opinion.vue | 9 +- src/components/TagAndFileUpload.vue | 118 ++++++++++++++++++ src/components/Tinymce.vue | 2 +- src/views/expense-management/share/add.vue | 36 +++++- src/views/expense-management/share/detail.vue | 82 +++++++++--- src/views/project-demand/requirement/add.vue | 46 ++++++- .../project-demand/requirement/detail.vue | 37 ++++-- .../project-demand/requirement/index.vue | 37 +++--- src/views/project-demand/summary/add.vue | 104 +++++++++------ src/views/project-demand/summary/index.vue | 9 +- .../project-management/filing/attachment.vue | 26 +++- .../project-management/filing/conclusion.vue | 2 + src/views/project-management/filing/index.vue | 2 +- .../implementation/attachment.vue | 2 +- .../implementation/check.vue | 2 + .../implementation/index.vue | 2 +- .../implementation/upload.vue | 4 +- .../project-management/initiation/apply.vue | 7 ++ .../project-management/initiation/index.vue | 6 +- .../project-management/initiation/upload.vue | 11 ++ src/views/special-fund/add.vue | 19 +-- src/views/special-fund/detail.vue | 21 ++-- src/views/special-fund/index.vue | 37 ++++-- .../workflow/process/common/InsertButton.vue | 20 +-- .../process/config/FormAuthorityConfig.vue | 1 - src/views/workflow/process/index.vue | 4 +- vite.config.js | 14 +-- 32 files changed, 550 insertions(+), 167 deletions(-) create mode 100644 src/components/TagAndFileUpload.vue create mode 100644 src/views/project-management/initiation/upload.vue diff --git a/src/api/expense-manage/index.js b/src/api/expense-manage/index.js index 8126b9c..926bfc2 100644 --- a/src/api/expense-manage/index.js +++ b/src/api/expense-manage/index.js @@ -13,3 +13,9 @@ export const getAllocationDetail = (allocationId) => { method: "get" }); }; +export const getAllocationProcess = () => { + return request({ + url: '/workflow/mosr/cost/allocation/process', + method: "get" + }); +}; diff --git a/src/api/project-manage/index.js b/src/api/project-manage/index.js index eb54d16..42a57b9 100644 --- a/src/api/project-manage/index.js +++ b/src/api/project-manage/index.js @@ -79,7 +79,7 @@ export const addLedger = (data) => { export const getTags = (projectId) => { return request({ - url: '/workflow/mosr/project/implementation/tags', + url: '/workflow/mosr/project/implementation/option', method: "get", params:{ projectId:projectId diff --git a/src/api/special-fund/index.js b/src/api/special-fund/index.js index 2b82339..f76b2c4 100644 --- a/src/api/special-fund/index.js +++ b/src/api/special-fund/index.js @@ -1,11 +1,29 @@ import request from '@/utils/request.js' export const getFundDetail = (specialFundId) => { + return request({ + url: `/workflow/mosr/special/fund/from/${specialFundId}`, + method: "get" + }); +}; +export const getFundDetailProcess = (specialFundId) => { return request({ url: `/workflow/mosr/special/fund/info/${specialFundId}`, method: "get" }); }; +export const getFundOption = () => { + return request({ + url: '/workflow/mosr/special/fund/option', + method: "get" + }); +}; +export const getFundProcess = (specialFundId) => { + return request({ + url: '/workflow/mosr/special/fund/process', + method: "get" + }); +}; export const addFund= (data) => { return request({ url: '/workflow/mosr/special/fund', diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue index 0b74133..765e88f 100644 --- a/src/components/AttachmentUpload.vue +++ b/src/components/AttachmentUpload.vue @@ -110,19 +110,20 @@ watch(() => props.showTable, (newVal) => { props.showTable = newVal }, {deep: true}) watch(() => props.otherFileList, (newVal) => { - newVal.forEach(item => { - allFileList.value.push(item) - }) + console.log('new',newVal) + // newVal?.forEach(item => { + allFileList.value=newVal + // }) }, {deep: true}) watch(() => props.formData.fileList, (newVal) => { if (props.preview) { - newVal.forEach(item => { + newVal?.forEach(item => { allFileList.value.push(item) }) } }, {deep: true}) watch(() => props.formData.singleFile, (newVal) => { - // singleFile.value = {} + console.log('singleFile',newVal) singleFile.value = newVal }, {deep: true}) const getAttachment = (val) => { diff --git a/src/components/DetailComponent/ExpenseDetail.vue b/src/components/DetailComponent/ExpenseDetail.vue index 5afbe05..47d95a6 100644 --- a/src/components/DetailComponent/ExpenseDetail.vue +++ b/src/components/DetailComponent/ExpenseDetail.vue @@ -2,16 +2,16 @@