songshankun
2023-10-08 e8c72de17374fc43a6460fb94cf3aef657e79812
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
import request from "@/utils/request";
import axios from "axios";
 
//查询工序字典
export const listProdDic = async (data) => {
  return await request({
    url: "/api-s/v1/dict/getProcedureDictList",
    method: "post",
    data,
  });
};
 
export const updateProdDic = (data) => {
  return request({
    url: "/api-s/v1/dict/updateProcedureDict",
    method: "post",
    data,
  });
};
 
export const addProdDic = (data) => {
  return request({
    url: "/api-s/v1/dict/addProcedureDict",
    method: "post",
    data,
  });
};
 
export const delProdDic = (id) => {
  return request({
    url: `/api-s/v1/dict/deleteProcedureDict/${id}`,
    method: "delete",
    id,
  });
};
 
// 查询技能字典
export const listCapability = (data) => {
  console.log("字典");
  return request({
    url: "/api-s/v1/dict/getWorkerSkillDictList",
    method: "post",
    data,
  });
};
 
export const updateCapability = (data) => {
  return request({
    url: "/api-s/v1/dict/updateWorkerSkillDict",
    method: "post",
    data,
  });
};
 
export const addCapability = (data) => {
  return request({
    url: "/api-s/v1/dict/addWorkerSkillDict",
    method: "post",
    data,
  });
};
 
export const delCapability = (id) => {
  return request({
    url: `/api-s/v1/dict/deleteWorkerSkillDict/${id}`,
    method: "delete",
    id,
  });
};
 
//查询产线字典
export const getProductLineDictList = (data) => {
  return request({
    url: "/api-s/v1/dict/getProductLineDictList",
    method: "post",
    data,
  });
};
 
export const updateProductLineDict = (data) => {
  return request({
    url: "/api-s/v1/dict/updateProductLineDict",
    method: "post",
    data,
  });
};
 
export const addProductLineDict = (data) => {
  return request({
    url: "/api-s/v1/dict/addProductLineDict",
    method: "post",
    data,
  });
};
 
export const deleteProductLineDict = (id) => {
  return request({
    url: `/api-s/v1/dict/deleteProductLineDict/${id}`,
    method: "delete",
    id,
  });
};
 
// 物流公司
export const getLogisticCompanyList = (data) => {
  return request({
    url: "/api-s/v1/dict/getLogisticCompanyList",
    method: "post",
    data,
  });
};
 
export const updateLogisticCompany = (data) => {
  return request({
    url: "/api-s/v1/dict/updateLogisticCompany",
    method: "post",
    data,
  });
};
 
export const addLogisticCompany = (data) => {
  return request({
    url: "/api-s/v1/dict/addLogisticCompany",
    method: "post",
    data,
  });
};
 
export const deleteLogisticCompany = (id) => {
  return request({
    url: `/api-s/v1/dict/deleteLogisticCompany/${id}`,
    method: "delete",
    id,
  });
};
 
// 设备类型
export const getDeviceCategoryList = (data) => {
  return request({
    url: "/api-s/v1/dict/getDeviceCategoryList",
    method: "post",
    data,
  });
};
 
export const updateDeviceCategory = (data) => {
  return request({
    url: "/api-s/v1/dict/updateDeviceCategory",
    method: "post",
    data,
  });
};
 
export const addDeviceCategory = (data) => {
  return request({
    url: "/api-s/v1/dict/addDeviceCategory",
    method: "post",
    data,
  });
};
 
export const deleteDeviceCategory = (id) => {
  return request({
    url: `/api-s/v1/dict/deleteDeviceCategory/${id}`,
    method: "delete",
    id,
  });
};
// plc配置的列表
export const getMiniDictList = (data) => {
  return request({
    url: "/api-s/v1/dict/getMiniDictList",
    method: "post",
    data,
  });
};
// plc配置的更新
export const saveMiniDict = (data) => {
  return request({
    url: "/api-s/v1/dict/saveMiniDict",
    method: "post",
    data,
  });
};