import axios from "@/assets/axios"; /** * 列表 * @returns */ export const getList = (pageNum, pageSize, data) => { return axios({ method: "POST", url: "technicalSpecification/getInfo", params: { pageNum, pageSize, ...data }, }); }; /** * 解析规格书说明 * multipartFile * @returns */ export const excelParse = (data) => { return axios({ method: "POST", url: "technicalSpecification/excelParse", headers: { "Content-Type": "multipart/form-data", }, data, }); }; /** * 解析规格书说明 * file1 file2 * technicalSpecificationStr * @returns */ export const upload = (data) => { return axios({ method: "POST", url: "technicalSpecification/upload", headers: { "Content-Type": "multipart/form-data", }, data, }); }; /** * 更新锁定状态 * {id lockFlag reason} * @returns */ export const updateLock = (params) => { return axios({ method: "POST", url: "technicalSpecification/updateLock", params, }); }; /** * 查询指定id的说明书的锁定日志 * {id} * @returns */ export const getLogs = (id) => { return axios({ method: "GET", url: "technicalSpecificationLog/getLockLogInfoById", params: { id }, }); }; /** * 查询指定技术规格书的所有版本 * {applyCustomCode, applyMaterialCode, applyModel} * @returns */ export const getVersions = (params) => { return axios({ method: "POST", url: "technicalSpecification/getVersionByInfo", params, }); };