研发图纸文件管理系统-前端项目
he wei
2023-09-20 c0e36244c61614b5fd21eb73be1ceca09b2f7afb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import axios from "@/assets/axios";
 
/**
 * 下载
 * @param {*} filePath 文件路径
 * @param {*} oprateReason 下载原因
 * @param {*} oprateInfo 物料就传id  产品传parentCode + "_" + customCode
 * @param {*} oprateVersion 物料传0 产品传versionId
 * @param {*} type 物料传13 产品传12
 * @returns 
 */
export const downLoadFileByFilePath = (
  filePath,
  oprateReason,
  oprateInfo,
  oprateVersion,
  type
) => {
  return axios({
    method: "GET",
    url: "bomFeedbak/downLoadFileByFilePath",
    params: { filePath, oprateReason, oprateInfo, oprateVersion, type },
    responseType: "blob",
  });
};