import axios from "@/assets/axios"; /** * 下载 * @param {*} filePath 文件路径 * @param {*} oprateReason 下载原因 * @param {*} oprateInfo 物料就传id 产品传parentCode + "_" + customCode * @param {*} oprateVersion 物料传0 产品传versionTime * @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", }); }; /** * 查询下载日志 * @param {*} oprateInfo 物料传Id 产品传parentCode + '_' + customCode * @param {*} type 物料13 产品12 * @returns */ export const getDownloadLog = (oprateInfo, type) => { return axios({ method: "GET", url: "docLog/getDownLoadNew", params: { oprateInfo, type }, }); }; /** * //根据物料id查询dwg历史 * @returns */ export const getDwgHisById = (materialId, pageCurr, pageSize) => { return axios({ method: "GET", url: "materialHistory/getDwgHisById", params: { materialId, pageCurr, pageSize }, }); }; /** * 根据物料id查询pic历史 目前用不上 * @returns */ export const getPicHisById = (materialId, pageCurr, pageSize) => { return axios({ method: "GET", url: "materialHistory/getPicHisById", params: { materialId, pageCurr, pageSize }, }); };