研发图纸文件管理系统-前端项目
he wei
2024-01-12 36704dbc78007ca051633aa015c1094de3a2630a
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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,
  });
};