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 @@