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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
| 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, oprateReason, oprateInfo) => {
| return axios({
| method: "GET",
| url: "product/downloadProduct",
| params: { productId, version, oprateReason, oprateInfo },
| 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 },
| });
| };
| /**
| * 查询当前使用的所有的产品 不分页
| * @returns
| */
| export const getCompareProduct = () => {
| return axios({
| method: "GET",
| url: "product/getCompareProduct",
| });
| };
| /**
| * 查询当前使用的所有的产品 不分页 (过滤掉锁定的)
| * @returns
| */
| export const getFkProduct = () => {
| return axios({
| method: "GET",
| url: "product/getFkProduct",
| });
| };
| /**
| * 查询用户的解锁操作
| * @returns
| */
| export const getUnlockByOwner = (
| createTime,
| createTime1,
| pageCurr,
| pageSize
| ) => {
| return axios({
| method: "GET",
| url: "productLockLog/getUnlockByOwner",
| params: {
| createTime,
| createTime1,
| pageCurr,
| pageSize,
| },
| });
| };
|
|