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,933 @@
1
+ const pdfDisplayIds = {
2
+ orderColumnSetting: 8001, // 匯出生產製造工單-工單顯示欄
3
+ processColumnSetting: 8002, // 匯出生產製造工單-工序顯示欄
4
+ workColumnSetting: 8003, // 匯出生產製造工單-工位顯示欄
5
+ batchQrcode: 9001, // 匯出批次二維碼-工單顯示欄
6
+ orderQrcode: 10001, // 匯出批次二維碼-工單顯示欄
7
+ serialNumber: 11001, // 匯出序號-工單顯示欄
8
+ };
9
+
10
+ const productionOrderDefaultColumn = {
11
+ displayId: pdfDisplayIds.orderColumnSetting, // 匯出生產製造工單-工單顯示欄
12
+ columnSetting: [
13
+ {
14
+ order: 1, // display順序
15
+ isCustom: false,
16
+ columnKey: 'productionOrderNumber', // 工單號碼
17
+ customFieldID: null, // 自定義欄位id
18
+ hideable: true,
19
+ },
20
+ {
21
+ order: 2, // display順序
22
+ isCustom: false,
23
+ columnKey: 'partNumber', // 產品料號
24
+ customFieldID: null, // 自定義欄位id
25
+ hideable: true,
26
+ },
27
+ {
28
+ order: 3, // display順序
29
+ isCustom: false,
30
+ columnKey: 'productName', // 產品名稱
31
+ customFieldID: null, // 自定義欄位id
32
+ hideable: true,
33
+ },
34
+ {
35
+ order: 4, // display順序
36
+ isCustom: false,
37
+ columnKey: 'productionOrderRequiredThroughput', // 需求工件數
38
+ customFieldID: null, // 自定義欄位id
39
+ hideable: true,
40
+ },
41
+ {
42
+ order: 5, // display順序
43
+ isCustom: false,
44
+ columnKey: 'productionOrderExpectedStartDate', // 預計開工日
45
+ customFieldID: null, // 自定義欄位id
46
+ hideable: true,
47
+ },
48
+ {
49
+ order: 6, // display順序
50
+ isCustom: false,
51
+ columnKey: 'productionOrderExpectedDueDate', // 計畫完工日
52
+ customFieldID: null, // 自定義欄位id
53
+ hideable: true,
54
+ },
55
+ {
56
+ order: 7, // display順序
57
+ isCustom: false,
58
+ columnKey: 'craftPath', // 工藝路徑
59
+ customFieldID: null, // 自定義欄位id
60
+ hideable: true,
61
+ },
62
+ {
63
+ order: 8, // display順序
64
+ isCustom: false,
65
+ columnKey: 'productionOrderPriority', // 重要排序
66
+ customFieldID: null, // 自定義欄位id
67
+ hideable: true,
68
+ },
69
+ // {
70
+ // order: 9, // display順序
71
+ // isCustom: false,
72
+ // columnKey: 'batchNumber', // 批次號
73
+ // customFieldID: null, // 自定義欄位id
74
+ // hideable: false,
75
+ // },
76
+ {
77
+ order: 9, // display順序
78
+ isCustom: false,
79
+ columnKey: 'materialSpec', // 规格
80
+ customFieldID: null, // 自定義欄位id
81
+ hideable: true,
82
+ },
83
+ // 以下自定義
84
+ // hide
85
+ {
86
+ order: null,
87
+ isCustom: false,
88
+ columnKey: 'orderNumber', // 訂單編號
89
+ customFieldID: null, // 自定義欄位id
90
+ hideable: true, // 可否改變欄配置顯示狀態
91
+ },
92
+ {
93
+ order: null,
94
+ isCustom: false,
95
+ columnKey: 'customerName', // 客戶名稱
96
+ customFieldID: null, // 自定義欄位id
97
+ hideable: true,
98
+ },
99
+ {
100
+ order: null,
101
+ isCustom: false,
102
+ columnKey: 'orderExpectedDue', // 訂單預交日
103
+ customFieldID: null, // 自定義欄位id
104
+ hideable: true,
105
+ },
106
+ // {
107
+ // order: null,
108
+ // isCustom: false,
109
+ // columnKey: 'materialSpec', // 規格
110
+ // customFieldID: null, // 自定義欄位id
111
+ // hideable: true,
112
+ // },
113
+ {
114
+ order: null,
115
+ isCustom: false,
116
+ columnKey: 'materialUnit', // 單位
117
+ customFieldID: null, // 自定義欄位id
118
+ hideable: true,
119
+ },
120
+ {
121
+ order: null,
122
+ isCustom: false,
123
+ columnKey: 'materialType', // 物料類型
124
+ customFieldID: null, // 自定義欄位id
125
+ hideable: true,
126
+ },
127
+ {
128
+ order: null,
129
+ isCustom: false,
130
+ columnKey: 'materialProperty', // 物料屬性
131
+ customFieldID: null, // 自定義欄位id
132
+ hideable: true,
133
+ },
134
+ {
135
+ order: null,
136
+ isCustom: false,
137
+ columnKey: 'materialState', // 物料狀態
138
+ customFieldID: null, // 自定義欄位id
139
+ hideable: true,
140
+ },
141
+ {
142
+ order: null, // display順序
143
+ isCustom: false,
144
+ columnKey: 'processRemark', // 工艺备注
145
+ customFieldID: null, // 自定義欄位id
146
+ hideable: true,
147
+ },
148
+ ],
149
+ };
150
+
151
+ const processOrderDefaultColumn = {
152
+ displayId: pdfDisplayIds.processColumnSetting, // 匯出生產製造工單-工序顯示欄
153
+ columnSetting: [
154
+ {
155
+ order: 1, // display順序
156
+ isCustom: false,
157
+ columnKey: 'processOrderSnQrcode', // 工序子工單號碼
158
+ customFieldID: null, // 自定義欄位id
159
+ hideable: true,
160
+ },
161
+ {
162
+ order: 2, // display順序
163
+ isCustom: false,
164
+ columnKey: 'productionProcess', // 工序
165
+ customFieldID: null, // 自定義欄位id
166
+ hideable: false, // 可否改變欄配置顯示狀態
167
+ },
168
+ {
169
+ order: 3, // display順序
170
+ isCustom: false,
171
+ columnKey: 'productionProcessName', // 工序名稱
172
+ customFieldID: null, // 自定義欄位id
173
+ hideable: false,
174
+ },
175
+ {
176
+ order: 4, // display順序
177
+ isCustom: false,
178
+ columnKey: 'productionProcessNumber', // 工序代碼
179
+ customFieldID: null, // 自定義欄位id
180
+ hideable: true,
181
+ },
182
+ {
183
+ order: 5, // display順序
184
+ isCustom: false,
185
+ columnKey: 'routeProcessStandardTime', // 标准工时
186
+ customFieldID: null, // 自定義欄位id
187
+ hideable: true,
188
+ },
189
+ {
190
+ order: 6, // display順序
191
+ isCustom: false,
192
+ columnKey: 'routeWorkingHourUnit', // 工时单位
193
+ customFieldID: null, // 自定義欄位id
194
+ hideable: true,
195
+ },
196
+ {
197
+ order: 7, // display順序
198
+ isCustom: false,
199
+ columnKey: 'routeProcessRequirements', // 工艺要求
200
+ customFieldID: null, // 自定義欄位id
201
+ hideable: true,
202
+ },
203
+ {
204
+ order: 8, // display順序
205
+ isCustom: false,
206
+ columnKey: 'routeProcessRemarks', // 备注说明
207
+ customFieldID: null, // 自定義欄位id
208
+ hideable: true,
209
+ },
210
+ // 以下自定義
211
+ // hide
212
+ {
213
+ order: null,
214
+ isCustom: false,
215
+ columnKey: 'processOrderRequiredThroughput', // 需求工件數
216
+ customFieldID: null, // 自定義欄位id
217
+ hideable: true,
218
+ },
219
+ {
220
+ order: null,
221
+ isCustom: false,
222
+ columnKey: 'processOrderExpectedStartDate', // 預計開工日
223
+ customFieldID: null, // 自定義欄位id
224
+ hideable: true,
225
+ },
226
+ {
227
+ order: null,
228
+ isCustom: false,
229
+ columnKey: 'processOrderExpectedDueDate', // 計畫完工日
230
+ customFieldID: null, // 自定義欄位id
231
+ hideable: true,
232
+ },
233
+ {
234
+ order: null,
235
+ isCustom: false,
236
+ columnKey: 'processOrderPriority', // 重要排序
237
+ customFieldID: null, // 自定義欄位id
238
+ hideable: true,
239
+ },
240
+ ],
241
+ };
242
+
243
+ const workOrderDefaultColumn = {
244
+ displayId: pdfDisplayIds.workColumnSetting, // 計畫制定新增/編輯-工位顯示欄
245
+ columnSetting: [
246
+ {
247
+ order: 1, // display順序
248
+ isCustom: false,
249
+ columnKey: 'subOrder', // 工位子工單號
250
+ customFieldID: null, // 自定義欄位id
251
+ hideable: false,
252
+ },
253
+ // {
254
+ // order: 2, // display順序
255
+ // isCustom: false,
256
+ // columnKey: 'equipGroupName', // 機群名稱
257
+ // customFieldID: null, // 自定義欄位id
258
+ // hideable: false, // 可否改變欄配置顯示狀態
259
+ // },
260
+ // {
261
+ // order: 3, // display順序
262
+ // isCustom: false,
263
+ // columnKey: 'equipName', // 機台/工位
264
+ // customFieldID: null, // 自定義欄位id
265
+ // hideable: false,
266
+ // },
267
+ {
268
+ order: 4, // display順序
269
+ isCustom: false,
270
+ columnKey: 'requiredThroughput', // 需求工件數
271
+ customFieldID: null, // 自定義欄位id
272
+ hideable: true,
273
+ },
274
+ {
275
+ order: 5, // display順序
276
+ isCustom: false,
277
+ columnKey: 'expectedStartDate', // 預計開工日
278
+ customFieldID: null, // 自定義欄位id
279
+ hideable: false,
280
+ },
281
+ {
282
+ order: 6, // display順序
283
+ isCustom: false,
284
+ columnKey: 'expectedDueDate', // 計畫完工日
285
+ customFieldID: null, // 自定義欄位id
286
+ hideable: false,
287
+ },
288
+ {
289
+ order: 7, // hide
290
+ isCustom: false,
291
+ columnKey: 'productionFileName', // 加工程式
292
+ customFieldID: null, // 自定義欄位id
293
+ hideable: true,
294
+ },
295
+ // 以下自定義
296
+ // hide
297
+ {
298
+ order: null, // display順序
299
+ isCustom: false,
300
+ columnKey: 'singlePieceCycle', // 單件週期(秒)
301
+ customFieldID: null, // 自定義欄位id
302
+ hideable: true,
303
+ },
304
+ {
305
+ order: null, // display順序
306
+ isCustom: false,
307
+ columnKey: 'standardTotalTime', // 預計總工時(秒)
308
+ customFieldID: null, // 自定義欄位id
309
+ hideable: true,
310
+ },
311
+ {
312
+ order: null, // display順序
313
+ isCustom: false,
314
+ columnKey: 'shiftName', // 班別
315
+ customFieldID: null, // 自定義欄位id
316
+ hideable: false,
317
+ },
318
+ {
319
+ order: null, // display順序
320
+ isCustom: false,
321
+ columnKey: 'empNumber', // 工號
322
+ customFieldID: null, // 自定義欄位id
323
+ hideable: false,
324
+ },
325
+ {
326
+ order: null, // display順序
327
+ isCustom: false,
328
+ columnKey: 'expectedTuningTime', // 預計調機時長
329
+ customFieldID: null, // 自定義欄位id
330
+ hideable: true,
331
+ },
332
+ ],
333
+ };
334
+
335
+ const batchQrcodeDefaultColumn = {
336
+ displayId: pdfDisplayIds.batchQrcode, // 匯出批次二維碼-工單顯示欄
337
+ columnSetting: [
338
+ {
339
+ order: 1, // display順序
340
+ isCustom: false,
341
+ columnKey: 'batchNumber', // 批次號
342
+ customFieldID: null, // 自定義欄位id
343
+ hideable: false,
344
+ },
345
+ {
346
+ order: 2, // display順序
347
+ isCustom: false,
348
+ columnKey: 'partNumber', // 產品料號
349
+ customFieldID: null, // 自定義欄位id
350
+ hideable: true,
351
+ },
352
+ {
353
+ order: 3, // display順序
354
+ isCustom: false,
355
+ columnKey: 'productName', // 產品名稱
356
+ customFieldID: null, // 自定義欄位id
357
+ hideable: true,
358
+ },
359
+ {
360
+ order: 4, // display順序
361
+ isCustom: false,
362
+ columnKey: 'batchSize', // 批次數量
363
+ customFieldID: null, // 自定義欄位id
364
+ hideable: false,
365
+ },
366
+ {
367
+ order: 5, // display順序
368
+ isCustom: false,
369
+ columnKey: 'productionOrderNumber', // 工單號碼
370
+ customFieldID: null, // 自定義欄位id
371
+ hideable: true,
372
+ },
373
+ {
374
+ order: 6, // display順序
375
+ isCustom: false,
376
+ columnKey: 'processList', // 工序列表
377
+ customFieldID: null, // 自定義欄位id
378
+ hideable: false,
379
+ },
380
+ // hide
381
+ {
382
+ order: null,
383
+ isCustom: false,
384
+ columnKey: 'orderNumber', // 訂單編號
385
+ customFieldID: null,
386
+ hideable: true, // 可否改變欄配置顯示狀態
387
+ },
388
+ {
389
+ order: null,
390
+ isCustom: false,
391
+ columnKey: 'customerName', // 客戶名稱
392
+ customFieldID: null, // 自定義欄位id
393
+ hideable: true,
394
+ },
395
+ {
396
+ order: null,
397
+ isCustom: false,
398
+ columnKey: 'orderExpectedDue', // 訂單預交日
399
+ customFieldID: null, // 自定義欄位id
400
+ hideable: true,
401
+ },
402
+ {
403
+ order: null,
404
+ isCustom: false,
405
+ columnKey: 'materialSpec', // 規格
406
+ customFieldID: null, // 自定義欄位id
407
+ hideable: true,
408
+ },
409
+ {
410
+ order: null,
411
+ isCustom: false,
412
+ columnKey: 'materialUnit', // 單位
413
+ customFieldID: null, // 自定義欄位id
414
+ hideable: true,
415
+ },
416
+ {
417
+ order: null,
418
+ isCustom: false,
419
+ columnKey: 'materialType', // 物料類型
420
+ customFieldID: null, // 自定義欄位id
421
+ hideable: true,
422
+ },
423
+ {
424
+ order: null,
425
+ isCustom: false,
426
+ columnKey: 'materialProperty', // 物料屬性
427
+ customFieldID: null, // 自定義欄位id
428
+ hideable: true,
429
+ },
430
+ {
431
+ order: null,
432
+ isCustom: false,
433
+ columnKey: 'materialState', // 物料狀態
434
+ customFieldID: null, // 自定義欄位id
435
+ hideable: true,
436
+ },
437
+ {
438
+ order: null,
439
+ isCustom: false,
440
+ columnKey: 'productionOrderRequiredThroughput', // 需求工件數
441
+ customFieldID: null, // 自定義欄位id
442
+ hideable: true,
443
+ },
444
+ {
445
+ order: null,
446
+ isCustom: false,
447
+ columnKey: 'productionOrderExpectedStartDate', // 預計開工日
448
+ customFieldID: null, // 自定義欄位id
449
+ hideable: true,
450
+ },
451
+ {
452
+ order: null, // display順序
453
+ isCustom: false,
454
+ columnKey: 'productionOrderExpectedDueDate', // 計畫完工日
455
+ customFieldID: null, // 自定義欄位id
456
+ hideable: true,
457
+ },
458
+ {
459
+ order: null, // display順序
460
+ isCustom: false,
461
+ columnKey: 'craftPath', // 工藝路徑
462
+ customFieldID: null, // 自定義欄位id
463
+ hideable: true,
464
+ },
465
+ {
466
+ order: null, // display順序
467
+ isCustom: false,
468
+ columnKey: 'productionOrderPriority', // 重要排序
469
+ customFieldID: null, // 自定義欄位id
470
+ hideable: true,
471
+ },
472
+ // 以下自定義
473
+ ],
474
+ };
475
+
476
+ const productionQrcodeDefaultColumn = {
477
+ displayId: pdfDisplayIds.batchQrcode, // 匯出批次二維碼-工單顯示欄
478
+ columnSetting: [
479
+ {
480
+ order: 1, // display順序
481
+ isCustom: false,
482
+ columnKey: 'productionOrderNumber', // 工單號碼
483
+ customFieldID: null, // 自定義欄位id
484
+ hideable: false,
485
+ },
486
+ {
487
+ order: 2, // display順序
488
+ isCustom: false,
489
+ columnKey: 'partNumber', // 產品料號
490
+ customFieldID: null, // 自定義欄位id
491
+ hideable: true,
492
+ },
493
+ {
494
+ order: 3, // display順序
495
+ isCustom: false,
496
+ columnKey: 'productName', // 產品名稱
497
+ customFieldID: null, // 自定義欄位id
498
+ hideable: true,
499
+ },
500
+ {
501
+ order: 4, // display順序
502
+ isCustom: false,
503
+ columnKey: 'materialSpec', // 規格
504
+ customFieldID: null, // 自定義欄位id
505
+ hideable: true,
506
+ },
507
+ {
508
+ order: 5, // display順序
509
+ isCustom: false,
510
+ columnKey: 'productionOrderRequiredThroughput', // 需求工件數
511
+ customFieldID: null, // 自定義欄位id
512
+ hideable: true,
513
+ },
514
+ {
515
+ order: 6, // display順序
516
+ isCustom: false,
517
+ columnKey: 'productionOrderExpectedStartDate', // 預計開工日
518
+ customFieldID: null, // 自定義欄位id
519
+ hideable: true,
520
+ },
521
+ {
522
+ order: 7, // display順序
523
+ isCustom: false,
524
+ columnKey: 'productionOrderExpectedDueDate', // 計畫完工日
525
+ customFieldID: null, // 自定義欄位id
526
+ hideable: true,
527
+ },
528
+ // hide
529
+ {
530
+ order: null,
531
+ isCustom: false,
532
+ columnKey: 'orderNumber', // 訂單編號
533
+ customFieldID: null,
534
+ hideable: true, // 可否改變欄配置顯示狀態
535
+ },
536
+ {
537
+ order: null,
538
+ isCustom: false,
539
+ columnKey: 'customerName', // 客戶名稱
540
+ customFieldID: null, // 自定義欄位id
541
+ hideable: true,
542
+ },
543
+ {
544
+ order: null,
545
+ isCustom: false,
546
+ columnKey: 'orderExpectedDue', // 訂單預交日
547
+ customFieldID: null, // 自定義欄位id
548
+ hideable: true,
549
+ },
550
+ {
551
+ order: null,
552
+ isCustom: false,
553
+ columnKey: 'materialUnit', // 單位
554
+ customFieldID: null, // 自定義欄位id
555
+ hideable: true,
556
+ },
557
+ {
558
+ order: null,
559
+ isCustom: false,
560
+ columnKey: 'materialType', // 物料類型
561
+ customFieldID: null, // 自定義欄位id
562
+ hideable: true,
563
+ },
564
+ {
565
+ order: null,
566
+ isCustom: false,
567
+ columnKey: 'materialProperty', // 物料屬性
568
+ customFieldID: null, // 自定義欄位id
569
+ hideable: true,
570
+ },
571
+ {
572
+ order: null,
573
+ isCustom: false,
574
+ columnKey: 'materialState', // 物料狀態
575
+ customFieldID: null, // 自定義欄位id
576
+ hideable: true,
577
+ },
578
+ {
579
+ order: null, // display順序
580
+ isCustom: false,
581
+ columnKey: 'craftPath', // 工藝路徑
582
+ customFieldID: null, // 自定義欄位id
583
+ hideable: true,
584
+ },
585
+ {
586
+ order: null, // display順序
587
+ isCustom: false,
588
+ columnKey: 'productionOrderPriority', // 重要排序
589
+ customFieldID: null, // 自定義欄位id
590
+ hideable: true,
591
+ },
592
+ // 以下自定義
593
+ ],
594
+ };
595
+ const productionQrcodeDefaultColumnForProcess = {
596
+ displayId: pdfDisplayIds.batchQrcode, // 匯出批次二維碼-工單顯示欄
597
+ columnSetting: [
598
+ {
599
+ order: 1, // display順序
600
+ isCustom: false,
601
+ columnKey: 'productionOrderNumber', // 工單號碼
602
+ customFieldID: null, // 自定義欄位id
603
+ hideable: false,
604
+ },
605
+ {
606
+ order: 2, // display順序
607
+ isCustom: false,
608
+ columnKey: 'partNumber', // 產品料號
609
+ customFieldID: null, // 自定義欄位id
610
+ hideable: true,
611
+ },
612
+ {
613
+ order: 3, // display順序
614
+ isCustom: false,
615
+ columnKey: 'productName', // 產品名稱
616
+ customFieldID: null, // 自定義欄位id
617
+ hideable: true,
618
+ },
619
+ {
620
+ order: 4, // display順序
621
+ isCustom: false,
622
+ columnKey: 'materialSpec', // 規格
623
+ customFieldID: null, // 自定義欄位id
624
+ hideable: true,
625
+ },
626
+ {
627
+ order: 5, // display順序
628
+ isCustom: false,
629
+ columnKey: 'processRequires', // 需求工件數
630
+ customFieldID: null, // 自定義欄位id
631
+ hideable: true,
632
+ },
633
+ {
634
+ order: 6, // display順序
635
+ isCustom: false,
636
+ columnKey: 'productionOrderExpectedStartDate', // 預計開工日
637
+ customFieldID: null, // 自定義欄位id
638
+ hideable: true,
639
+ },
640
+ {
641
+ order: 7, // display順序
642
+ isCustom: false,
643
+ columnKey: 'productionOrderExpectedDueDate', // 計畫完工日
644
+ customFieldID: null, // 自定義欄位id
645
+ hideable: true,
646
+ },
647
+ // hide
648
+ {
649
+ order: null,
650
+ isCustom: false,
651
+ columnKey: 'orderNumber', // 訂單編號
652
+ customFieldID: null,
653
+ hideable: true, // 可否改變欄配置顯示狀態
654
+ },
655
+ {
656
+ order: null,
657
+ isCustom: false,
658
+ columnKey: 'customerName', // 客戶名稱
659
+ customFieldID: null, // 自定義欄位id
660
+ hideable: true,
661
+ },
662
+ {
663
+ order: null,
664
+ isCustom: false,
665
+ columnKey: 'orderExpectedDue', // 訂單預交日
666
+ customFieldID: null, // 自定義欄位id
667
+ hideable: true,
668
+ },
669
+ {
670
+ order: null,
671
+ isCustom: false,
672
+ columnKey: 'materialUnit', // 單位
673
+ customFieldID: null, // 自定義欄位id
674
+ hideable: true,
675
+ },
676
+ {
677
+ order: null,
678
+ isCustom: false,
679
+ columnKey: 'materialType', // 物料類型
680
+ customFieldID: null, // 自定義欄位id
681
+ hideable: true,
682
+ },
683
+ {
684
+ order: null,
685
+ isCustom: false,
686
+ columnKey: 'materialProperty', // 物料屬性
687
+ customFieldID: null, // 自定義欄位id
688
+ hideable: true,
689
+ },
690
+ {
691
+ order: null,
692
+ isCustom: false,
693
+ columnKey: 'materialState', // 物料狀態
694
+ customFieldID: null, // 自定義欄位id
695
+ hideable: true,
696
+ },
697
+ {
698
+ order: null, // display順序
699
+ isCustom: false,
700
+ columnKey: 'craftPath', // 工藝路徑
701
+ customFieldID: null, // 自定義欄位id
702
+ hideable: true,
703
+ },
704
+ {
705
+ order: null, // display順序
706
+ isCustom: false,
707
+ columnKey: 'productionOrderPriority', // 重要排序
708
+ customFieldID: null, // 自定義欄位id
709
+ hideable: true,
710
+ },
711
+ // 以下自定義
712
+ ],
713
+ };
714
+
715
+ const snExportDefaultColumn = {
716
+ displayId: pdfDisplayIds.serialNumber, // 匯出序號-工單顯示欄
717
+ columnSetting: [
718
+ {
719
+ order: 1,
720
+ isCustom: false,
721
+ columnKey: 'orderNumber', // 訂單編號
722
+ customFieldID: null,
723
+ hideable: true, // 可否改變欄配置顯示狀態
724
+ },
725
+ {
726
+ order: 2,
727
+ isCustom: false,
728
+ columnKey: 'customerName', // 客戶名稱
729
+ customFieldID: null, // 自定義欄位id
730
+ hideable: true,
731
+ },
732
+ {
733
+ order: 3,
734
+ isCustom: false,
735
+ columnKey: 'orderExpectedDue', // 訂單預交日
736
+ customFieldID: null, // 自定義欄位id
737
+ hideable: true,
738
+ },
739
+ {
740
+ order: 4, // display順序
741
+ isCustom: false,
742
+ columnKey: 'productionOrderNumber', // 工單號碼
743
+ customFieldID: null, // 自定義欄位id
744
+ hideable: true,
745
+ },
746
+ {
747
+ order: 5, // display順序
748
+ isCustom: false,
749
+ columnKey: 'partNumber', // 產品料號
750
+ customFieldID: null, // 自定義欄位id
751
+ hideable: true,
752
+ },
753
+ {
754
+ order: 6, // display順序
755
+ isCustom: false,
756
+ columnKey: 'productName', // 產品名稱
757
+ customFieldID: null, // 自定義欄位id
758
+ hideable: true,
759
+ },
760
+ {
761
+ order: 7,
762
+ isCustom: false,
763
+ columnKey: 'materialSpec', // 規格
764
+ customFieldID: null, // 自定義欄位id
765
+ hideable: true,
766
+ },
767
+ {
768
+ order: 8,
769
+ isCustom: false,
770
+ columnKey: 'materialUnit', // 單位
771
+ customFieldID: null, // 自定義欄位id
772
+ hideable: true,
773
+ },
774
+ {
775
+ order: 9,
776
+ isCustom: false,
777
+ columnKey: 'materialType', // 物料類型
778
+ customFieldID: null, // 自定義欄位id
779
+ hideable: true,
780
+ },
781
+ {
782
+ order: 10,
783
+ isCustom: false,
784
+ columnKey: 'materialProperty', // 物料屬性
785
+ customFieldID: null, // 自定義欄位id
786
+ hideable: true,
787
+ },
788
+ {
789
+ order: 11,
790
+ isCustom: false,
791
+ columnKey: 'materialState', // 物料狀態
792
+ customFieldID: null, // 自定義欄位id
793
+ hideable: true,
794
+ },
795
+ {
796
+ order: 12,
797
+ isCustom: false,
798
+ columnKey: 'productionOrderRequiredThroughput', // 需求工件數
799
+ customFieldID: null, // 自定義欄位id
800
+ hideable: true,
801
+ },
802
+ {
803
+ order: 13,
804
+ isCustom: false,
805
+ columnKey: 'serialNumberCount', // 已綁訂數量
806
+ customFieldID: null, // 自定義欄位id
807
+ hideable: true,
808
+ },
809
+ {
810
+ order: 14,
811
+ isCustom: false,
812
+ columnKey: 'productionOrderExpectedStartDate', // 預計開工日
813
+ customFieldID: null, // 自定義欄位id
814
+ hideable: true,
815
+ },
816
+ {
817
+ order: 15, // display順序
818
+ isCustom: false,
819
+ columnKey: 'productionOrderExpectedDueDate', // 計畫完工日
820
+ customFieldID: null, // 自定義欄位id
821
+ hideable: true,
822
+ },
823
+ {
824
+ order: 16, // display順序
825
+ isCustom: false,
826
+ columnKey: 'craftPath', // 工藝路徑
827
+ customFieldID: null, // 自定義欄位id
828
+ hideable: true,
829
+ },
830
+ {
831
+ order: 17, // display順序
832
+ isCustom: false,
833
+ columnKey: 'productionOrderPriority', // 重要排序
834
+ customFieldID: null, // 自定義欄位id
835
+ hideable: true,
836
+ },
837
+ // 以下自定義
838
+ ],
839
+ };
840
+
841
+ const productionOrderTranslationKey = {
842
+ orderNumber: 'orderNumber',
843
+ customerName: 'customerName',
844
+ orderExpectedDue: 'orderExpectedDue',
845
+ productionOrderNumber: 'productionOrderNumber',
846
+ partNumber: 'productNumber',
847
+ productName: 'productName',
848
+ productionOrderRequiredThroughput: 'workOrderRequirementsNumber',
849
+ productionOrderExpectedStartDate: 'expectedStartDate',
850
+ productionOrderExpectedDueDate: 'expectedDueDate',
851
+ craftPath: 'processRouteName',
852
+ productionOrderPriority: 'importantSort',
853
+ materialSpec: 'materialSpec',
854
+ materialUnit: 'materialUnit',
855
+ materialType: 'materialType',
856
+ materialProperty: 'materialProperty',
857
+ materialState: 'materialState',
858
+ productionOrderConsDate: 'productionOrderConsDate',
859
+ batchNumberRule: 'batchNumberRule',
860
+ productionOrderStatus: 'orderStatus',
861
+ processList: 'processList',
862
+ batchSize: 'batchSize',
863
+ };
864
+
865
+ const processOrderTranslationKey = {
866
+ productionProcess: 'processSequence',
867
+ productionProcessName: 'processName',
868
+ productionProcessNumber: 'processNumber',
869
+ processOrderRequiredThroughput: 'processRequirementsNumber',
870
+ processOrderExpectedStartDate: 'expectedStartDate',
871
+ processOrderExpectedDueDate: 'expectedDueDate',
872
+ sourceType: 'cloudImport',
873
+ processOrderStatus: 'progressStatus',
874
+ processOrderPriority: 'importantSort',
875
+ processOrderSnQrcode: 'processOrderSn',
876
+ processOrderLastModify: 'updateTime',
877
+ routeProcessID: 'routeID',
878
+ processOrderRemark: 'remark',
879
+ routeProcessStandardTime: 'standardTime',
880
+ routeWorkingHourUnit: 'workTimeUnit',
881
+ routeProcessRequirements: 'technologicalRequirements',
882
+ routeProcessRemarks: 'description',
883
+ };
884
+
885
+ const workOrderTranslationKey = {
886
+ productionProcess: 'productionProcess',
887
+ productionProcessName: 'processName',
888
+ productionProcessNumber: 'processNumber',
889
+ processOrderRequiredThroughput: 'requiredThroughput',
890
+ processOrderExpectedStartDate: 'expectedStartDate',
891
+ processOrderExpectedDueDate: 'expectedDueDate',
892
+ sourceType: 'cloudImport',
893
+ processOrderStatus: 'progressStatus',
894
+ // processOrderPriority: 'priority',
895
+ processOrderPriority: 'importantSort',
896
+ processOrderSnQrcode: 'processOrderSn',
897
+ processOrderLastModify: 'updateTime',
898
+ routeProcessID: 'routeID',
899
+ processOrderRemark: 'remark',
900
+ // equipGroupName: 'groupName',
901
+ // equipName: 'equipName',
902
+ singlePieceCycle: 'singlePieceCycle',
903
+ standardTotalTime: 'standardTotalTime',
904
+ shiftName: 'shiftName',
905
+ empNumber: 'empNumber',
906
+ expectedTuningTime: 'expectedTuningTime',
907
+ requiredThroughput: 'partCountRequired',
908
+ expectedStartDate: 'expectedStartDate',
909
+ expectedDueDate: 'expectedDueDate',
910
+ workOrderStatus: 'progressStatus',
911
+ // batchNumber: 'batchNumber',
912
+ remark: 'remark',
913
+ subOrder: 'workOrderSerialNumber',
914
+ productionFileName: 'productionFileName',
915
+ expectedImplementStaff: 'expectedImplementStaff',
916
+ productionProcessTransferCount: 'productionProcessTransferCount',
917
+ standardTime: 'standardTime',
918
+ transferTime: 'transferTime',
919
+ };
920
+
921
+ export default {
922
+ productionOrderDefaultColumn,
923
+ processOrderDefaultColumn,
924
+ workOrderDefaultColumn,
925
+ batchQrcodeDefaultColumn,
926
+ productionQrcodeDefaultColumn,
927
+ snExportDefaultColumn,
928
+ productionOrderTranslationKey,
929
+ processOrderTranslationKey,
930
+ workOrderTranslationKey,
931
+ pdfDisplayIds,
932
+ productionQrcodeDefaultColumnForProcess,
933
+ };