fix : 修复项目实施附件查询及上传功能、代码文件优化

This commit is contained in:
2024-06-03 15:39:22 +08:00
parent 1ee92f698e
commit abe80eafdc
21 changed files with 86 additions and 1164 deletions

View File

@@ -82,18 +82,3 @@ export const deleteDemand = (id) => {
method: "delete"
});
};
//需求征集附件列表(归档)
export const getRequirementAttachment = (params) => {
return request({
url: '/workflow/mosr/requirement/attachments',
method: "get",
params:params
});
};
export const uploadRequirementAttachment= (data) => {
return request({
url: '/workflow/mosr/requirement/upload',
method: "post",
data: data
});
};

View File

@@ -0,0 +1,55 @@
import request from '@/utils/request'
export const fileUp = (url, data) => {
return request({
url,
method: 'post',
data,
headers: {
'Content-Type': 'multipart/form-data'
}
})
}
export const requirementReported = (data) => {
return request({
url: '/workflow/mosr/requirement/reported',
method: "post",
data: data
});
};
export const getProcessInfo = () => {
return request({
url: '/workflow/mosr/requirement/collect/process',
method: "get"
});
};
export const getDetail = (projectId) => {
return request({
url: `/workflow/mosr/requirement/collect/info/${projectId}`,
method: "get"
});
};
export const resubmitReported = (data) => {
return request({
url: '/workflow/mosr/requirement/collect/resubmit',
method: "post",
data: data
});
};
export const getCollectAttachment = (params) => {
return request({
url: '/workflow/mosr/requirement/collect/attachments',
method: "get",
params:params
});
};
export const uploadCollectAttachment= (data) => {
return request({
url: '/workflow/mosr/requirement/collect/upload',
method: "post",
data: data
});
};

View File

@@ -8,3 +8,10 @@ export const searchFileList = (params) => {
params: params
});
};
export const uploadFileList = (data) => {
return request({
url: '/workflow/mosr/attachment/upload',
method: "post",
data: data
});
};

View File

@@ -34,13 +34,6 @@ export const getInitiationAttachment = (params) => {
params:params
});
};
export const uploadInitiationAttachment= (data) => {
return request({
url: '/workflow/mosr/project/approval/upload',
method: "post",
data: data
});
};
//项目实施
export const getCheckDetail = (projectId) => {
return request({
@@ -69,20 +62,7 @@ export const getProjectCheckProcess = (projectId) => {
method: "get"
});
};
export const getImplementationAttachment = (params) => {
return request({
url: '/workflow/mosr/project/implementation/attachments',
method: "get",
params:params
});
};
export const uploadAttachment= (data) => {
return request({
url: '/workflow/mosr/project/implementation/upload',
method: "post",
data: data
});
};
export const addLedger = (data) => {
return request({
url: '/workflow/mosr/expense/ledger',
@@ -125,17 +105,3 @@ export const getProjectConclusionProcess = () => {
method: "get"
});
};
export const getFilingAttachment = (params) => {
return request({
url: '/workflow/mosr/project/filing/attachments',
method: "get",
params:params
});
};
export const uploadFilingAttachment= (data) => {
return request({
url: '/workflow/mosr/project/filing/upload',
method: "post",
data: data
});
};