fix
This commit is contained in:
@@ -25,7 +25,7 @@ export function getPage(params?: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/page',
|
||||
method: 'get',
|
||||
params
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export function getPage(params?: any) {
|
||||
export function getObj(id: string | number) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/' + id,
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ export function addObj(obj: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/submit',
|
||||
method: 'post',
|
||||
data: obj
|
||||
data: obj,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ export function tempStore(obj: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/temp-store',
|
||||
method: 'post',
|
||||
data: obj
|
||||
data: obj,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ export function submitObj(obj: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/submit',
|
||||
method: 'post',
|
||||
data: obj
|
||||
data: obj,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ export function assignAgent(applyId: number | string, mode: 'random' | 'designat
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/assign-agent',
|
||||
method: 'post',
|
||||
data: { id: String(applyId), mode, agentId: agentId || undefined }
|
||||
data: { id: String(applyId), mode, agentId: agentId || undefined },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ export function sendToAgent(applyId: number | string) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/sendToAgent',
|
||||
method: 'post',
|
||||
data: { id: String(applyId) }
|
||||
data: { id: String(applyId) },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ export function revokeAgent(applyId: number | string) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/revokeAgent',
|
||||
method: 'post',
|
||||
data: { id: String(applyId) }
|
||||
data: { id: String(applyId) },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ export function saveImplementType(id: number | string, implementType: string) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/save-implement-type',
|
||||
method: 'post',
|
||||
data: { id: id, implementType }
|
||||
data: { id: id, implementType },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ export function editObj(obj: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/edit',
|
||||
method: 'post',
|
||||
data: obj
|
||||
data: obj,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ export function delObj(id: number) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/delete',
|
||||
method: 'post',
|
||||
data: id
|
||||
data: id,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ export function getApplyFiles(purchaseId: string | number) {
|
||||
return request({
|
||||
url: '/purchase/purchasingfiles/applyFiles',
|
||||
method: 'post',
|
||||
params: { purchaseId }
|
||||
params: { purchaseId },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ export function getContracts(params?: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/getContracts',
|
||||
method: 'get',
|
||||
params
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -183,17 +183,11 @@ export function getContracts(params?: any) {
|
||||
* @param representorTeacherNo 需求部门初审-指定采购代表人(单人)
|
||||
* @param representors 需求部门初审-部门多人逗号分隔
|
||||
*/
|
||||
export function implementApply(
|
||||
id: number,
|
||||
fileIds: string[],
|
||||
implementType?: string,
|
||||
representorTeacherNo?: string,
|
||||
representors?: string
|
||||
) {
|
||||
export function implementApply(id: number, fileIds: string[], implementType?: string, representorTeacherNo?: string, representors?: string) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/implement',
|
||||
method: 'get',
|
||||
params: { id, fileIds, implementType, representorTeacherNo, representors }
|
||||
params: { id, fileIds, implementType, representorTeacherNo, representors },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -203,15 +197,11 @@ export function implementApply(
|
||||
* @param representorTeacherNo 需求部门初审-指定采购代表人(单人,用户ID或工号)
|
||||
* @param representors 需求部门初审-部门多人由系统抽取(多人,用户ID或工号逗号分隔)
|
||||
*/
|
||||
export function startFileFlow(
|
||||
id: number,
|
||||
representorTeacherNo?: string,
|
||||
representors?: string
|
||||
) {
|
||||
export function startFileFlow(id: number, representorTeacherNo?: string, representors?: string) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/startFileFlow',
|
||||
method: 'post',
|
||||
data: { id, representorTeacherNo, representors }
|
||||
data: { id, representorTeacherNo, representors },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -221,7 +211,7 @@ export function startFileFlow(
|
||||
export function getDeptMembers() {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/getDeptMembers',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -231,7 +221,7 @@ export function getDeptMembers() {
|
||||
export function getSecondDeptList() {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/getSecondDeptList',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -243,7 +233,7 @@ export function searchTeachers(keyword: string) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/searchTeachers',
|
||||
method: 'get',
|
||||
params: { keyword }
|
||||
params: { keyword },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -258,7 +248,7 @@ export function saveRepresentor(id: number, representorTeacherNo?: string, repre
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/save-representor',
|
||||
method: 'post',
|
||||
data: { id, representorTeacherNo, representors, representorType: identity }
|
||||
data: { id, representorTeacherNo, representors, representorType: identity },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -296,7 +286,7 @@ export function getAgentPendingList(params?: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingdoc/agent/list',
|
||||
method: 'get',
|
||||
params
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -307,7 +297,7 @@ export function getAgentPendingList(params?: any) {
|
||||
export function getAgentRequirementFiles(applyId: number | string) {
|
||||
return request({
|
||||
url: `/purchase/purchasingdoc/agent/requirement/${applyId}`,
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -318,7 +308,7 @@ export function getAgentRequirementFiles(applyId: number | string) {
|
||||
export function getAgentApplyDetail(applyId: number | string) {
|
||||
return request({
|
||||
url: `/purchase/purchasingdoc/agent/detail/${applyId}`,
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -330,7 +320,7 @@ export function uploadAgentDoc(data: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingdoc/upload',
|
||||
method: 'post',
|
||||
data
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -342,7 +332,7 @@ export function reuploadAgentDoc(data: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingdoc/reupload',
|
||||
method: 'post',
|
||||
data
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -353,7 +343,7 @@ export function reuploadAgentDoc(data: any) {
|
||||
export function getDocList(applyId: number | string) {
|
||||
return request({
|
||||
url: `/purchase/purchasingdoc/list/${applyId}`,
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -366,7 +356,7 @@ export function downloadFileById(fileId: string) {
|
||||
url: '/purchase/purchasingfiles/downloadById',
|
||||
method: 'get',
|
||||
params: { fileId },
|
||||
responseType: 'blob'
|
||||
responseType: 'blob',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -375,7 +365,7 @@ export function previewFileById(fileId: string) {
|
||||
url: '/purchase/purchasingfiles/previewById',
|
||||
method: 'get',
|
||||
params: { fileId },
|
||||
responseType: 'blob'
|
||||
responseType: 'blob',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -387,7 +377,7 @@ export function listDownloadUrls(purchaseId: string | number) {
|
||||
return request({
|
||||
url: '/purchase/purchasingfiles/listDownloadUrls',
|
||||
method: 'get',
|
||||
params: { purchaseId }
|
||||
params: { purchaseId },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -399,7 +389,6 @@ export function updateFiles(data: { purchaseId: string; fileIds: string[] }) {
|
||||
return request({
|
||||
url: '/purchase/purchasingfiles/updateFiles',
|
||||
method: 'post',
|
||||
data
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user