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
| 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 },
| });
| };
|
|