syntec3-0-ui-components-test 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +5 -0
  2. package/dist/S3_0UC_main.csv +4 -0
  3. package/dist/S3_0UC_sub.csv +2 -0
  4. package/dist/globalVariableS3_0UC.json +1 -0
  5. package/dist/style.css +1 -0
  6. package/dist/syntec3-0-ui-components.es.js +19518 -0
  7. package/dist/syntec3-0-ui-components.es.js.map +1 -0
  8. package/dist/syntec3-0-ui-components.umd.js +23 -0
  9. package/dist/syntec3-0-ui-components.umd.js.map +1 -0
  10. package/dist/vite.svg +1 -0
  11. package/dist/web.config +17 -0
  12. package/package.json +137 -0
  13. package/src/App.vue +31 -0
  14. package/src/assets/fonts/genYoGothicTW-normal.js +7 -0
  15. package/src/assets/image/defaultImage.png +0 -0
  16. package/src/assets/vue.svg +1 -0
  17. package/src/components/Layout/modules/fullPageGlobal.vue +113 -0
  18. package/src/components/Layout/modules/viewFile/config.js +65 -0
  19. package/src/components/Layout/modules/viewFile/createView.vue +1000 -0
  20. package/src/components/Layout/modules/viewFile/filterCriteria.vue +816 -0
  21. package/src/components/Layout/modules/viewFile/viewList.vue +291 -0
  22. package/src/components/Layout/modules/viewFile/viewManageTool.js +271 -0
  23. package/src/components/Layout/modules/viewFile/viewRecord.vue +472 -0
  24. package/src/components/Layout/modules/viewFile/viewTabs.vue +542 -0
  25. package/src/components/Layout/tools/GlobalDialog.vue +115 -0
  26. package/src/components/Pagination.vue +139 -0
  27. package/src/components/columnConfigNext.vue +273 -0
  28. package/src/components/customFilter/customFilter.vue +492 -0
  29. package/src/components/customFilter/filterCriteria.vue +769 -0
  30. package/src/components/customTable/components/headerOperation/index.vue +136 -0
  31. package/src/components/customTable/components/headerTabs/index.vue +171 -0
  32. package/src/components/customTable/components/tableContent/index.vue +440 -0
  33. package/src/components/customTable/index.vue +305 -0
  34. package/src/components/dialog.vue +85 -0
  35. package/src/components/pageContent.vue +48 -0
  36. package/src/components/popover.vue +402 -0
  37. package/src/configFiles/apiFile/baseApiList.json +11 -0
  38. package/src/configFiles/apiFile/coreApiList.json +24 -0
  39. package/src/configFiles/apiFile/mesApiList.json +4 -0
  40. package/src/configFiles/apiFile/mmsApiList.json +3 -0
  41. package/src/configFiles/errorCode.json +291 -0
  42. package/src/configFiles/version.js +2 -0
  43. package/src/i18n/lang/en-us.json +2060 -0
  44. package/src/i18n/lang/errorCodeTranslate.mjs +847 -0
  45. package/src/i18n/lang/zh-cn.json +2062 -0
  46. package/src/i18n/lang/zh-tw.json +2059 -0
  47. package/src/index.js +115 -0
  48. package/src/main.js +51 -0
  49. package/src/plugins/excel.js +88 -0
  50. package/src/router/index.js +41 -0
  51. package/src/scriptFiles/apiConfig/baseApis.js +10 -0
  52. package/src/scriptFiles/apiConfig/mesApis.js +10 -0
  53. package/src/scriptFiles/apiConfig/mmsApis.js +10 -0
  54. package/src/scriptFiles/apiConfig/privateCloudCoreApis.js +13 -0
  55. package/src/scriptFiles/apiConfig/serviceRoute.js +23 -0
  56. package/src/scriptFiles/apis/baseApiFunction.js +63 -0
  57. package/src/scriptFiles/apis/mesApiFunction.js +15 -0
  58. package/src/scriptFiles/apis/mmsApiFunction.js +9 -0
  59. package/src/scriptFiles/apis/privateCloudCoreApiFunction.js +101 -0
  60. package/src/scriptFiles/backendApiFunction.js +11 -0
  61. package/src/scriptFiles/checkApiErrorMechanism.js +137 -0
  62. package/src/scriptFiles/common/objectDataProcessing.js +65 -0
  63. package/src/scss/base/commom.scss +1068 -0
  64. package/src/scss/base/dialog.scss +45 -0
  65. package/src/scss/base/index.scss +3 -0
  66. package/src/scss/base/table.scss +28 -0
  67. package/src/store/index.js +25 -0
  68. package/src/store/module/langStore.js +116 -0
  69. package/src/style.css +52 -0
  70. package/src/utils/excel.js +86 -0
  71. package/src/utils/formula.js +69 -0
  72. package/src/utils/https.js +13 -0
  73. package/src/utils/i18n.js +42 -0
  74. package/src/utils/shiftSelect.js +164 -0
  75. package/src/utils/summation.js +77 -0
  76. package/src/utils/tableWidth.js +29 -0
  77. package/src/utils/toolFun.js +93 -0
  78. package/src/views/productionWorkOrder/components/columnConfig.vue +242 -0
  79. package/src/views/productionWorkOrder/components/docCustomFieldForm.vue +739 -0
  80. package/src/views/productionWorkOrder/components/filePreview.vue +148 -0
  81. package/src/views/productionWorkOrder/components/querySearch.vue +363 -0
  82. package/src/views/productionWorkOrder/configFiles/excelImportErrorCode.json +94 -0
  83. package/src/views/productionWorkOrder/configFiles/pdfDefaultConfig.js +933 -0
  84. package/src/views/productionWorkOrder/configFiles/planMakingScript.js +600 -0
  85. package/src/views/productionWorkOrder/configFiles/productionRelatedScript.js +368 -0
  86. package/src/views/productionWorkOrder/configFiles/rulse.js +23 -0
  87. package/src/views/productionWorkOrder/configFiles/status.js +50 -0
  88. package/src/views/productionWorkOrder/index.vue +2174 -0
  89. package/src/views/productionWorkOrder/productionFlowLabel/component/addCirculationLabel.vue +394 -0
  90. package/src/views/productionWorkOrder/productionFlowLabel/component/circulationLabelTable.vue +124 -0
  91. package/src/views/productionWorkOrder/productionFlowLabel/component/materialPartFilePreview.vue +167 -0
  92. package/src/views/productionWorkOrder/productionFlowLabel/component/workOrderInformation.vue +28 -0
  93. package/src/views/productionWorkOrder/productionFlowLabel/index.vue +604 -0
  94. package/src/views/production_work_order/components/priorityTooltip.vue +53 -0
  95. package/src/views/production_work_order/index.vue +1307 -0
  96. package/src/views/review_record/components/materialInfo.vue +50 -0
  97. package/src/views/review_record/components/rootCause.vue +42 -0
  98. package/src/views/review_record/components/workDetail.vue +115 -0
  99. package/src/views/review_record/index.vue +884 -0
@@ -0,0 +1,368 @@
1
+ import i18n from '@/utils/i18n';
2
+ import orderStatus from './status';
3
+
4
+ export default {
5
+ // 工單狀態chip背景色
6
+ orderStatusColor(status) {
7
+ switch (status) {
8
+ case orderStatus.orderProgressStatus.workEnd: {
9
+ return '#E0F2F1';
10
+ }
11
+ case orderStatus.orderProgressStatus.pauseProcessing: {
12
+ // return 'yellow lighten-5';
13
+ return '#e7692ee3';
14
+ }
15
+ case orderStatus.orderProgressStatus.workStart: {
16
+ // return 'amber lighten-5';
17
+ return '#1b9600';
18
+ }
19
+ case orderStatus.orderProgressStatus.noStart: {
20
+ return '#E3F2FD';
21
+ }
22
+ case orderStatus.orderProgressStatus.closed: {
23
+ return '#EFEBE9';
24
+ }
25
+ case orderStatus.orderProgressStatus.overdueEnd: {
26
+ return '#F3E5F5';
27
+ }
28
+ case orderStatus.orderProgressStatus.overdueStart: {
29
+ return '#FFEBEE';
30
+ }
31
+ case orderStatus.orderProgressStatus.returnDispatch: {
32
+ return '#E0E0E0';
33
+ }
34
+ case orderStatus.orderProgressStatus.changing: {
35
+ return '#d4c0a2';
36
+ }
37
+ case orderStatus.orderProgressStatus.handling: {
38
+ return '#d9001b';
39
+ }
40
+ default: {
41
+ return '#EEEEEE';
42
+ }
43
+ }
44
+ },
45
+ // 工序
46
+ orderStatusColors(status) {
47
+ switch (status) {
48
+ case orderStatus.orderProgressStatuss.workEnd: {
49
+ return '#E0F2F1';
50
+ }
51
+ case orderStatus.orderProgressStatuss.pauseProcessing: {
52
+ // return 'yellow lighten-5';
53
+ return '#e7692ee3';
54
+ }
55
+ case orderStatus.orderProgressStatuss.workStart: {
56
+ // return 'amber lighten-5';
57
+ return '#1b9600';
58
+ }
59
+ case orderStatus.orderProgressStatuss.noStart: {
60
+ return '#E3F2FD';
61
+ }
62
+ case orderStatus.orderProgressStatuss.closed: {
63
+ return '#EFEBE9';
64
+ }
65
+ case orderStatus.orderProgressStatuss.overdueEnd: {
66
+ return '#F3E5F5';
67
+ }
68
+ case orderStatus.orderProgressStatuss.overdueStart: {
69
+ return '#FFEBEE';
70
+ }
71
+ case orderStatus.orderProgressStatuss.returnDispatch: {
72
+ return '#E0E0E0';
73
+ }
74
+ case orderStatus.orderProgressStatuss.changing: {
75
+ return '#d4c0a2';
76
+ }
77
+ case orderStatus.orderProgressStatuss.handling: {
78
+ return '#d9001b';
79
+ }
80
+ default: {
81
+ return '#EEEEEE';
82
+ }
83
+ }
84
+ },
85
+
86
+ // 工單狀態chip文字色
87
+ orderStatusTextColor(status) {
88
+ switch (status) {
89
+ case orderStatus.orderProgressStatus.workEnd: {
90
+ return '#009688'; // teal
91
+ }
92
+ case orderStatus.orderProgressStatus.pauseProcessing: {
93
+ // return '#FDD835'; // yellow darken-1
94
+ return '#ffffff';
95
+ }
96
+ case orderStatus.orderProgressStatus.workStart: {
97
+ // return '#FFA000'; // amber darken-2
98
+ return '#ffffff';
99
+ }
100
+ case orderStatus.orderProgressStatus.noStart: {
101
+ return '#1E88E5'; // blue darken-1
102
+ }
103
+ case orderStatus.orderProgressStatus.closed: {
104
+ return '#A1887F'; // brown lighten-2
105
+ }
106
+ case orderStatus.orderProgressStatus.overdueEnd: {
107
+ return '#7B1FA2'; // purple darken-2
108
+ }
109
+ case orderStatus.orderProgressStatus.overdueStart: {
110
+ return '#EF5350'; // #EF5350
111
+ }
112
+ case orderStatus.orderProgressStatus.returnDispatch: {
113
+ return '#757575'; // grey darken-1
114
+ }
115
+ case orderStatus.orderProgressStatus.changing: {
116
+ return '#694917';
117
+ }
118
+ case orderStatus.orderProgressStatus.handling: {
119
+ return '#fbe6e9';
120
+ }
121
+ default: {
122
+ return '#BDBDBD'; // grey
123
+ }
124
+ }
125
+ },
126
+ // 工序
127
+ orderStatusTextColors(status) {
128
+ switch (status) {
129
+ case orderStatus.orderProgressStatuss.workEnd: {
130
+ return '#009688'; // teal
131
+ }
132
+ case orderStatus.orderProgressStatuss.pauseProcessing: {
133
+ // return '#FDD835'; // yellow darken-1
134
+ return '#e7692ee3';
135
+ }
136
+ case orderStatus.orderProgressStatuss.workStart: {
137
+ // return '#FFA000'; // amber darken-2
138
+ return '#1b9600';
139
+ }
140
+ case orderStatus.orderProgressStatuss.noStart: {
141
+ return '#1E88E5'; // blue darken-1
142
+ }
143
+ case orderStatus.orderProgressStatuss.closed: {
144
+ return '#A1887F'; // brown lighten-2
145
+ }
146
+ case orderStatus.orderProgressStatuss.overdueEnd: {
147
+ return '#7B1FA2'; // purple darken-2
148
+ }
149
+ case orderStatus.orderProgressStatuss.overdueStart: {
150
+ return '#EF5350'; // #EF5350
151
+ }
152
+ case orderStatus.orderProgressStatuss.returnDispatch: {
153
+ return '#757575'; // grey darken-1
154
+ }
155
+ case orderStatus.orderProgressStatuss.changing: {
156
+ return '#694917';
157
+ }
158
+ case orderStatus.orderProgressStatuss.handling: {
159
+ return '#fbe6e9';
160
+ }
161
+ default: {
162
+ return '#BDBDBD'; // grey
163
+ }
164
+ }
165
+ },
166
+ // 工序工單狀態chip背景色
167
+ processOrderStatusColor(status) {
168
+ switch (status) {
169
+ case orderStatus.orderProgressStatus.workEnd: {
170
+ return '#E0F2F1';
171
+ }
172
+ case orderStatus.orderProgressStatus.workStart: {
173
+ return '#FFF8E1';
174
+ }
175
+ case orderStatus.orderProgressStatus.noStart: {
176
+ return '#E3F2FD';
177
+ }
178
+ case orderStatus.orderProgressStatus.closed: {
179
+ return '#EFEBE9';
180
+ }
181
+ case orderStatus.orderProgressStatus.overdueEnd: {
182
+ return '#F3E5F5';
183
+ }
184
+ case orderStatus.orderProgressStatus.overdueStart: {
185
+ return '#FFEBEE';
186
+ }
187
+ default: {
188
+ return '#EEEEEE';
189
+ }
190
+ }
191
+ },
192
+ // 工序狀態chip文字色
193
+ processOrderStatusTextColor(status) {
194
+ switch (status) {
195
+ case orderStatus.orderProgressStatus.workEnd: {
196
+ return '#009688'; // teal
197
+ }
198
+ case orderStatus.orderProgressStatus.workStart: {
199
+ return '#FFA000'; // amber darken-2
200
+ }
201
+ case orderStatus.orderProgressStatus.noStart: {
202
+ return '#1E88E5'; // blue darken-1
203
+ }
204
+ case orderStatus.orderProgressStatus.closed: {
205
+ return '#A1887F'; // brown lighten-2
206
+ }
207
+ case orderStatus.orderProgressStatus.overdueEnd: {
208
+ return '#7B1FA2'; // purple darken-2
209
+ }
210
+ case orderStatus.orderProgressStatus.overdueStart: {
211
+ return '#EF5350'; // #EF5350
212
+ }
213
+ default: {
214
+ return '#BDBDBD'; // grey
215
+ }
216
+ }
217
+ },
218
+ // 计划制定工单字体颜色
219
+ orderTagStatusColor(status) {
220
+ if (status === orderStatus.orderPlanStatus.noDispatch) {
221
+ return 'grey';
222
+ }
223
+ if (status === orderStatus.orderPlanStatus.noStart) {
224
+ return '#1E88E5';
225
+ }
226
+ if (status === orderStatus.orderPlanStatus.underExecution) {
227
+ return '#ffffff';
228
+ }
229
+ if (status === orderStatus.orderPlanStatus.finished) {
230
+ return '#009688';
231
+ }
232
+ if (status === orderStatus.orderPlanStatus.closed) {
233
+ return 'grey';
234
+ }
235
+ if (status === orderStatus.orderPlanStatus.alreadyOverdue) {
236
+ return '#EF5350';
237
+ }
238
+ return '#ffb300';
239
+ },
240
+ // 计划制定工单字体背景颜色
241
+ orderGetChipStatusColor(status) {
242
+ if (status === orderStatus.orderPlanStatus.noDispatch) {
243
+ return '#eeeeee';
244
+ }
245
+ if (status === orderStatus.orderPlanStatus.noStart) {
246
+ return '#E3F2FD';
247
+ }
248
+ if (status === orderStatus.orderPlanStatus.underExecution) {
249
+ return '#1b9600';
250
+ }
251
+ if (status === orderStatus.orderPlanStatus.finished) {
252
+ return '#E0F2F1';
253
+ }
254
+ if (status === orderStatus.orderPlanStatus.closed) {
255
+ return '#eeeeee';
256
+ }
257
+ if (status === orderStatus.orderPlanStatus.alreadyOverdue) {
258
+ return '#FFEBEE';
259
+ }
260
+ return '#ffb300';
261
+ },
262
+ // 新代工單匯入模板Header
263
+ excelImportHeader() {
264
+ return [
265
+ {
266
+ text: '#', width: '50px', value: 'index', align: 'center', sortable: false,
267
+ },
268
+ {
269
+ text: `${i18n.global.t('orderNumber')}*`, width: '140px', value: 'orderNumber', align: 'center', sortable: false,
270
+ },
271
+ {
272
+ text: i18n.global.t('customerName'), width: '80px', value: 'customerName', align: 'center', sortable: false,
273
+ },
274
+ {
275
+ text: i18n.global.t('orderExpectedDue'), width: '150px', value: 'orderExpectedDue', align: 'center', sortable: false,
276
+ },
277
+ {
278
+ text: `${i18n.global.t('productionOrderNumber')}*`, width: '130px', value: 'productionOrderNumber', align: 'center', sortable: false,
279
+ },
280
+ {
281
+ text: `${i18n.global.t('partNumber')}*`, width: '140px', value: 'partNumber', align: 'center', sortable: false,
282
+ },
283
+ {
284
+ text: `${i18n.global.t('requiredThroughput')}*(${i18n.global.t('woNumber')})`, width: '120px', value: 'productionOrderRequiredThroughput', align: 'center', sortable: false,
285
+ },
286
+ {
287
+ text: `${i18n.global.t('startDate')}(${i18n.global.t('woNumber')})`, width: '150px', value: 'productionOrderExpectedStartDate', align: 'center', sortable: false,
288
+ },
289
+ {
290
+ text: `${i18n.global.t('finishDate')}(${i18n.global.t('woNumber')})`, width: '150px', value: 'productionOrderExpectedDueDate', align: 'center', sortable: false,
291
+ },
292
+ {
293
+ text: `${i18n.global.t('craftPath')}*`, width: '120px', value: 'craftPath', align: 'center', sortable: false,
294
+ },
295
+ {
296
+ text: `${i18n.global.t('productionProcess')}*`, width: '120px', value: 'productionProcess', align: 'center', sortable: false,
297
+ },
298
+ {
299
+ text: `${i18n.global.t('requiredThroughput')}*(${i18n.global.t('productionProcess')})`, width: '120px', value: 'processOrderRequiredThroughput', align: 'center', sortable: false,
300
+ },
301
+ {
302
+ text: `${i18n.global.t('startDate')}(${i18n.global.t('productionProcess')})`, width: '150px', value: 'processOrderExpectedStartDate', align: 'center', sortable: false,
303
+ },
304
+ {
305
+ text: `${i18n.global.t('finishDate')}(${i18n.global.t('productionProcess')})`, width: '150px', value: 'processOrderExpectedDueDate', align: 'center', sortable: false,
306
+ },
307
+ {
308
+ text: i18n.global.t('empNumber'), width: '120px', value: 'empNumber', align: 'center', sortable: false,
309
+ },
310
+ {
311
+ text: i18n.global.t('failureReason'), width: '150px', value: 'resultDescription', align: 'center', sortable: false,
312
+ },
313
+ {
314
+ text: i18n.global.t('checkResult'), width: '80px', value: 'result', align: 'center', sortable: false,
315
+ },
316
+ ];
317
+ },
318
+ // 重要排序icon
319
+ priorityIcon(status) {
320
+ switch (status) {
321
+ case orderStatus.priorityStatus.topPriority: {
322
+ return 'mdi mdi-star-circle';
323
+ }
324
+ case orderStatus.priorityStatus.priority: {
325
+ return 'mdi mdi-chevron-double-up';
326
+ }
327
+ case orderStatus.priorityStatus.normal: {
328
+ return 'mdi mdi-equal';
329
+ }
330
+ case orderStatus.priorityStatus.secondary: {
331
+ return 'mdi mdi-chevron-double-down';
332
+ }
333
+ default: {
334
+ return 'mdi mdi-chevron-triple-down';
335
+ }
336
+ }
337
+ },
338
+
339
+ // 重要排序Color
340
+ priorityColor(status) {
341
+ switch (status) {
342
+ case orderStatus.priorityStatus.topPriority: {
343
+ return 'red';
344
+ }
345
+ case orderStatus.priorityStatus.priority: {
346
+ return 'orange';
347
+ }
348
+ case orderStatus.priorityStatus.normal: {
349
+ return 'green';
350
+ }
351
+ case orderStatus.priorityStatus.secondary: {
352
+ return '#4481b8';
353
+ }
354
+ default: {
355
+ return 'grey';
356
+ }
357
+ }
358
+ },
359
+ // 重要排序列表
360
+ priorityList() {
361
+ const priorityArray = [];
362
+ const tempList = Object.entries(orderStatus.priorityStatus);
363
+ for (let i = 0; i < tempList.length; i += 1) {
364
+ priorityArray.push({ text: i18n.global.t(tempList[i][0]), value: tempList[i][1] });
365
+ }
366
+ return priorityArray;
367
+ },
368
+ };
@@ -0,0 +1,23 @@
1
+ import i18n from '@/utils/i18n.js';
2
+ export const trimVailite = (rule, value, callback) => {
3
+ if(value && String(value) !== String(value).trim()){
4
+ callback(new Error(i18n.global.t('haveSpace')));
5
+ }
6
+ callback();
7
+ };
8
+ export const numberVailite = (rule, value, callback) => {
9
+ if (!value && value !== 0) {
10
+ callback(i18n.global.t('requiredField'));
11
+ }
12
+ if (value <= 0) {
13
+ callback(i18n.global.t('cantLessZero'));
14
+ }
15
+ if(String(value).length > 10) {
16
+ callback(i18n.global.t('integerBitsMustNotExceed10Digits'));
17
+ }
18
+ const rep = /[.]/;
19
+ if (rep.test(value)) {
20
+ callback(i18n.global.t('numerical'));
21
+ }
22
+ callback();
23
+ };
@@ -0,0 +1,50 @@
1
+ const orderProgressStatus = {
2
+ noDispatch: 1, // 未派工
3
+ noStart: 2, // 未开工
4
+ workStart: 3, // 已开工
5
+ pauseProcessing: 4, // 暂停加工
6
+ workEnd: 5, // 已完工
7
+ closed: 6, // 已关闭
8
+ overdueStart: 7, // 逾期开工
9
+ overdueEnd: 8, // 逾期完工
10
+ // returnDispatch: 9, // 退回派工
11
+ // changing: 9, // 调机中
12
+ // handling: 10, // 异常处理中
13
+ };
14
+ const orderProgressStatuss = {
15
+ noDispatch: 1, // 未派工
16
+ noStart: 2, // 未开工
17
+ workStart: 3, // 已开工
18
+ workEnd: 4, // 已完工
19
+ closed: 5, // 已关闭
20
+ overdueStart: 6, // 逾期开工
21
+ overdueEnd: 7, // 逾期完工
22
+ };
23
+ // 计划制定工单状态
24
+ const orderPlanStatus = {
25
+ noDispatch: 0, // 未派工
26
+ noStart: 1, // 未开工
27
+ underExecution: 2, // 已开工
28
+ finished: 3, // 已完工
29
+ alreadyOverdue: 4, // 已逾期
30
+ closed: 5, // 已关闭
31
+ };
32
+ const priorityStatus = {
33
+ topPriority: 4, // 最优先
34
+ priority: 3, // 优先
35
+ normal: 2, // 正常
36
+ secondary: 1, // 次要
37
+ leastImportant: 0, // 最次要
38
+ };
39
+ // 选择模版
40
+ const selectedTemplate = {
41
+ onlyImportWork: 0, // 仅汇入工单
42
+ workOrdersProcessDetails: 1, // 汇入工单及工序明细
43
+ };
44
+ export default {
45
+ orderProgressStatus,
46
+ orderProgressStatuss,
47
+ orderPlanStatus,
48
+ priorityStatus,
49
+ selectedTemplate,
50
+ };