研发图纸文件管理系统-前端项目
he wei
2022-09-17 4fb882e6dff547547ca49233b0f7d67d2b253ab6
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import axios from "@/assets/axios";
 
/**
 * 产品列表
 * @returns 
 */
export const getList = (pageCurr, pageSize, data) => {
  return axios({
    method: "GET",
    url: "product/getAllProduct",
    params: { pageCurr, pageSize, ...data }
  })
}
/**
 * 产品列表 不分页
 * @returns 
 */
export const getAllProducts = () => {
  return axios({
    method: "GET",
    url: "product/getUpBomUseProduct"
  })
}
/**
 * 产品下载(产品id和版本<当前最新版本>)
 * @returns 
 */
export const downloadBom = (productId, version) => {
  return axios({
    method: "GET",
    url: "product/downloadProduct",
    params: { productId, version },
    responseType: "blob"
  })
}
 
/**
 * 根据母料型号查询子件信息及有关联的散装件信息
 * @returns 
 */
export const getBomAndMaterial = (productId, version) => {
  return axios({
    method: "GET",
    url: "product/getBomAndMaterial",
    params: { productId, version }
  })
}
 
/**
 * 批量修改关联关系
 * @returns 
 */
export const materialRelatedSubmit = (data) => {
  return axios({
    method: "POST",
    url: "worksheetMain/materialRelatedSubmit",
    data
  })
}
/**
 * 上传产品
 * @returns 
 */
export const addProduct = (data) => {
  return axios({
    method: "POST",
    url: "product",
    data
  })
}
/**
 * 产品指定版本的激活 锁定
 * customCode=1&enabled=1&parentCode=1&version=1
 * @returns 
 */
export const setpHistoryEnable = (params) => {
  return axios({
    method: "GET",
    url: "product/setpHistoryEnable",
    params
  })
}
/**
 * 产品操作日志查询
 * customCode=1&parentCode=1
 * @returns 
 */
export const getLogList = (params) => {
  return axios({
    method: "GET",
    url: "productLockLog/listByParentCodeAndCustomCode",
    params
  })
}
/**
 * 根据产品id查询被锁定的物料dwg和产品丝印
 * @returns 
 */
export const getLockedList = (productId) => {
  return axios({
    method: "GET",
    url: "product/getLockedByProductId",
    params: { productId }
  })
}