@pksep/zod-shared 0.0.514 → 0.0.515
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.
- package/dist/action/enums/enums.d.ts +6 -1
- package/dist/action/enums/enums.js +5 -0
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +0 -3
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +0 -1
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +0 -3
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +0 -1
- package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +0 -3
- package/dist/production-tasks/dto/get-production-task-by-user.dto.js +0 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +4 -4
- package/dist/user/dto/update-user-table-config.dto.d.ts +30 -0
- package/dist/user/dto/update-user-table-config.dto.js +10 -0
- package/dist/user/index.d.ts +2 -0
- package/dist/user/index.js +2 -0
- package/dist/user/schemas/user-table-config.schema.d.ts +168 -0
- package/dist/user/schemas/user-table-config.schema.js +29 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/tables-config/enum.d.ts +41 -0
- package/dist/utils/tables-config/enum.js +78 -0
- package/dist/utils/tables-config/methods.d.ts +5 -0
- package/dist/utils/tables-config/methods.js +31 -0
- package/dist/utils/tables-config/tables-array.d.ts +9 -0
- package/dist/utils/tables-config/tables-array.js +188 -0
- package/package.json +1 -1
|
@@ -34,7 +34,8 @@ export declare enum ActionEntityTypes {
|
|
|
34
34
|
contact = "contact",
|
|
35
35
|
company = "company",
|
|
36
36
|
revision = "revision",
|
|
37
|
-
thread_entity = "thread_entity"
|
|
37
|
+
thread_entity = "thread_entity",
|
|
38
|
+
user_table_config = "user_table_config"
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
41
|
* enum для обращения к моделям в бд
|
|
@@ -180,4 +181,8 @@ export declare const ActionEntityTypesDB: {
|
|
|
180
181
|
readonly name: "thread_entity";
|
|
181
182
|
readonly attributes: readonly ["id"];
|
|
182
183
|
};
|
|
184
|
+
readonly user_table_config: {
|
|
185
|
+
readonly name: "user_table_configs";
|
|
186
|
+
readonly attributes: readonly ["id"];
|
|
187
|
+
};
|
|
183
188
|
};
|
|
@@ -39,6 +39,7 @@ var ActionEntityTypes;
|
|
|
39
39
|
ActionEntityTypes["company"] = "company";
|
|
40
40
|
ActionEntityTypes["revision"] = "revision";
|
|
41
41
|
ActionEntityTypes["thread_entity"] = "thread_entity";
|
|
42
|
+
ActionEntityTypes["user_table_config"] = "user_table_config";
|
|
42
43
|
})(ActionEntityTypes || (exports.ActionEntityTypes = ActionEntityTypes = {}));
|
|
43
44
|
/**
|
|
44
45
|
* enum для обращения к моделям в бд
|
|
@@ -126,5 +127,9 @@ exports.ActionEntityTypesDB = {
|
|
|
126
127
|
[ActionEntityTypes.thread_entity]: {
|
|
127
128
|
name: 'thread_entity',
|
|
128
129
|
attributes: ['id']
|
|
130
|
+
},
|
|
131
|
+
[ActionEntityTypes.user_table_config]: {
|
|
132
|
+
name: 'user_table_configs',
|
|
133
|
+
attributes: ['id']
|
|
129
134
|
}
|
|
130
135
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
3
3
|
equipmentId: z.ZodNumber;
|
|
4
|
-
searchString: z.ZodOptional<z.ZodString>;
|
|
5
4
|
taskId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
5
|
range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7
6
|
start: z.ZodAny;
|
|
@@ -16,7 +15,6 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
|
16
15
|
onlyTOperation: z.ZodOptional<z.ZodNumber>;
|
|
17
16
|
}, "strip", z.ZodTypeAny, {
|
|
18
17
|
equipmentId: number;
|
|
19
|
-
searchString?: string | undefined;
|
|
20
18
|
range?: {
|
|
21
19
|
start?: any;
|
|
22
20
|
end?: any;
|
|
@@ -25,7 +23,6 @@ export declare const GetProductionTaskByEquipmentDtoZod: z.ZodObject<{
|
|
|
25
23
|
onlyTOperation?: number | undefined;
|
|
26
24
|
}, {
|
|
27
25
|
equipmentId: number;
|
|
28
|
-
searchString?: string | undefined;
|
|
29
26
|
range?: {
|
|
30
27
|
start?: any;
|
|
31
28
|
end?: any;
|
|
@@ -4,7 +4,6 @@ exports.GetProductionTaskByEquipmentDtoZod = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.GetProductionTaskByEquipmentDtoZod = zod_1.z.object({
|
|
6
6
|
equipmentId: zod_1.z.number().int(),
|
|
7
|
-
searchString: zod_1.z.string().optional(),
|
|
8
7
|
taskId: zod_1.z.number().int().nullish(),
|
|
9
8
|
range: zod_1.z
|
|
10
9
|
.object({
|
|
@@ -2,7 +2,6 @@ import { z } from 'zod';
|
|
|
2
2
|
import { StockOrderType } from '../../utils';
|
|
3
3
|
export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
|
|
4
4
|
operationTypeId: z.ZodNumber;
|
|
5
|
-
searchString: z.ZodOptional<z.ZodString>;
|
|
6
5
|
taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
7
6
|
onlyTOperation: z.ZodOptional<z.ZodNumber>;
|
|
8
7
|
range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -20,7 +19,6 @@ export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
|
|
|
20
19
|
}, "strip", z.ZodTypeAny, {
|
|
21
20
|
equipmentIds: number[] | null;
|
|
22
21
|
operationTypeId: number;
|
|
23
|
-
searchString?: string | undefined;
|
|
24
22
|
range?: {
|
|
25
23
|
start?: any;
|
|
26
24
|
end?: any;
|
|
@@ -31,7 +29,6 @@ export declare const GetProductionTaskByOperationDtoZod: z.ZodObject<{
|
|
|
31
29
|
}, {
|
|
32
30
|
operationTypeId: number;
|
|
33
31
|
equipmentIds?: number[] | null | undefined;
|
|
34
|
-
searchString?: string | undefined;
|
|
35
32
|
range?: {
|
|
36
33
|
start?: any;
|
|
37
34
|
end?: any;
|
|
@@ -5,7 +5,6 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const utils_1 = require("../../utils");
|
|
6
6
|
exports.GetProductionTaskByOperationDtoZod = zod_1.z.object({
|
|
7
7
|
operationTypeId: zod_1.z.number().int(),
|
|
8
|
-
searchString: zod_1.z.string().optional(),
|
|
9
8
|
taskId: zod_1.z.number().int().nullable().default(null).optional(),
|
|
10
9
|
onlyTOperation: zod_1.z.number().int().optional(),
|
|
11
10
|
range: zod_1.z
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
|
|
3
3
|
userId: z.ZodNumber;
|
|
4
|
-
searchString: z.ZodOptional<z.ZodString>;
|
|
5
4
|
taskId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
6
5
|
onlyTOperation: z.ZodOptional<z.ZodNumber>;
|
|
7
6
|
range: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -16,7 +15,6 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
|
|
|
16
15
|
}>>>;
|
|
17
16
|
}, "strip", z.ZodTypeAny, {
|
|
18
17
|
userId: number;
|
|
19
|
-
searchString?: string | undefined;
|
|
20
18
|
range?: {
|
|
21
19
|
start?: any;
|
|
22
20
|
end?: any;
|
|
@@ -25,7 +23,6 @@ export declare const GetProductionTaskByUserDtoZod: z.ZodObject<{
|
|
|
25
23
|
onlyTOperation?: number | undefined;
|
|
26
24
|
}, {
|
|
27
25
|
userId: number;
|
|
28
|
-
searchString?: string | undefined;
|
|
29
26
|
range?: {
|
|
30
27
|
start?: any;
|
|
31
28
|
end?: any;
|
|
@@ -4,7 +4,6 @@ exports.GetProductionTaskByUserDtoZod = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.GetProductionTaskByUserDtoZod = zod_1.z.object({
|
|
6
6
|
userId: zod_1.z.number().int(),
|
|
7
|
-
searchString: zod_1.z.string().optional(),
|
|
8
7
|
taskId: zod_1.z.number().int().nullable().default(null).optional(),
|
|
9
8
|
onlyTOperation: zod_1.z.number().int().optional(),
|
|
10
9
|
range: zod_1.z
|
|
@@ -333,12 +333,12 @@ export interface IUnicalUsers extends IUnicalEntity {
|
|
|
333
333
|
tabel?: string;
|
|
334
334
|
}
|
|
335
335
|
export interface IWorkloadByEntityResponse {
|
|
336
|
-
responsibleInfo: any;
|
|
337
|
-
operationWorkload: IWorkloadByOperationData[];
|
|
338
|
-
}
|
|
339
|
-
export interface IWorkloadByOperationData {
|
|
340
336
|
operationName: string;
|
|
341
337
|
typeOperationId: number | string;
|
|
338
|
+
workloadData: IWorkloadData[];
|
|
339
|
+
}
|
|
340
|
+
export interface IWorkloadData {
|
|
341
|
+
responsibleInfo: any;
|
|
342
342
|
positionsByDate: IWorkloadPositionByDate[];
|
|
343
343
|
}
|
|
344
344
|
export interface IWorkloadPositionSchema {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const UpdateUserTableConfigDtoSchema: z.ZodObject<{
|
|
3
|
+
userId: z.ZodNumber;
|
|
4
|
+
configKey: z.ZodString;
|
|
5
|
+
newConfigObject: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6
|
+
columnName: z.ZodNativeEnum<typeof import("../..").tablesEnumConfig>;
|
|
7
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
columnName: import("../..").tablesEnumConfig;
|
|
10
|
+
isShow: boolean;
|
|
11
|
+
}, {
|
|
12
|
+
columnName: import("../..").tablesEnumConfig;
|
|
13
|
+
isShow?: boolean | undefined;
|
|
14
|
+
}>, "many">>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
userId: number;
|
|
17
|
+
configKey: string;
|
|
18
|
+
newConfigObject: {
|
|
19
|
+
columnName: import("../..").tablesEnumConfig;
|
|
20
|
+
isShow: boolean;
|
|
21
|
+
}[];
|
|
22
|
+
}, {
|
|
23
|
+
userId: number;
|
|
24
|
+
configKey: string;
|
|
25
|
+
newConfigObject?: {
|
|
26
|
+
columnName: import("../..").tablesEnumConfig;
|
|
27
|
+
isShow?: boolean | undefined;
|
|
28
|
+
}[] | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type UpdateUserTableConfigDtoType = z.infer<typeof UpdateUserTableConfigDtoSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateUserTableConfigDtoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const user_table_config_schema_1 = require("../schemas/user-table-config.schema");
|
|
6
|
+
exports.UpdateUserTableConfigDtoSchema = zod_1.z.object({
|
|
7
|
+
userId: zod_1.z.number(),
|
|
8
|
+
configKey: zod_1.z.string(),
|
|
9
|
+
newConfigObject: zod_1.z.array(user_table_config_schema_1.UserTableConfigItemSchema).default([])
|
|
10
|
+
});
|
package/dist/user/index.d.ts
CHANGED
package/dist/user/index.js
CHANGED
|
@@ -24,3 +24,5 @@ __exportStar(require("./dto/tabel-unique.dto"), exports);
|
|
|
24
24
|
__exportStar(require("./default-value/model"), exports);
|
|
25
25
|
__exportStar(require("./dto/auth-user.dto"), exports);
|
|
26
26
|
__exportStar(require("./enums"), exports);
|
|
27
|
+
__exportStar(require("./schemas/user-table-config.schema"), exports);
|
|
28
|
+
__exportStar(require("./dto/update-user-table-config.dto"), exports);
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { tablesEnumConfig } from '../../utils';
|
|
3
|
+
export declare const UserTableConfigItemSchema: z.ZodObject<{
|
|
4
|
+
columnName: z.ZodNativeEnum<typeof tablesEnumConfig>;
|
|
5
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
columnName: tablesEnumConfig;
|
|
8
|
+
isShow: boolean;
|
|
9
|
+
}, {
|
|
10
|
+
columnName: tablesEnumConfig;
|
|
11
|
+
isShow?: boolean | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export type UserTableConfigItem = z.infer<typeof UserTableConfigItemSchema>;
|
|
14
|
+
export declare const UserTableConfigSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodNumber;
|
|
16
|
+
user_id: z.ZodNumber;
|
|
17
|
+
metalworking: z.ZodArray<z.ZodObject<{
|
|
18
|
+
columnName: z.ZodNativeEnum<typeof tablesEnumConfig>;
|
|
19
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
columnName: tablesEnumConfig;
|
|
22
|
+
isShow: boolean;
|
|
23
|
+
}, {
|
|
24
|
+
columnName: tablesEnumConfig;
|
|
25
|
+
isShow?: boolean | undefined;
|
|
26
|
+
}>, "many">;
|
|
27
|
+
metalworking_deficit_by_assemble: z.ZodArray<z.ZodObject<{
|
|
28
|
+
columnName: z.ZodNativeEnum<typeof tablesEnumConfig>;
|
|
29
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
columnName: tablesEnumConfig;
|
|
32
|
+
isShow: boolean;
|
|
33
|
+
}, {
|
|
34
|
+
columnName: tablesEnumConfig;
|
|
35
|
+
isShow?: boolean | undefined;
|
|
36
|
+
}>, "many">;
|
|
37
|
+
online_board_production: z.ZodArray<z.ZodObject<{
|
|
38
|
+
columnName: z.ZodNativeEnum<typeof tablesEnumConfig>;
|
|
39
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
columnName: tablesEnumConfig;
|
|
42
|
+
isShow: boolean;
|
|
43
|
+
}, {
|
|
44
|
+
columnName: tablesEnumConfig;
|
|
45
|
+
isShow?: boolean | undefined;
|
|
46
|
+
}>, "many">;
|
|
47
|
+
online_board: z.ZodArray<z.ZodObject<{
|
|
48
|
+
columnName: z.ZodNativeEnum<typeof tablesEnumConfig>;
|
|
49
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
columnName: tablesEnumConfig;
|
|
52
|
+
isShow: boolean;
|
|
53
|
+
}, {
|
|
54
|
+
columnName: tablesEnumConfig;
|
|
55
|
+
isShow?: boolean | undefined;
|
|
56
|
+
}>, "many">;
|
|
57
|
+
assemble: z.ZodArray<z.ZodObject<{
|
|
58
|
+
columnName: z.ZodNativeEnum<typeof tablesEnumConfig>;
|
|
59
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
columnName: tablesEnumConfig;
|
|
62
|
+
isShow: boolean;
|
|
63
|
+
}, {
|
|
64
|
+
columnName: tablesEnumConfig;
|
|
65
|
+
isShow?: boolean | undefined;
|
|
66
|
+
}>, "many">;
|
|
67
|
+
production_task_by_user: z.ZodArray<z.ZodObject<{
|
|
68
|
+
columnName: z.ZodNativeEnum<typeof tablesEnumConfig>;
|
|
69
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
columnName: tablesEnumConfig;
|
|
72
|
+
isShow: boolean;
|
|
73
|
+
}, {
|
|
74
|
+
columnName: tablesEnumConfig;
|
|
75
|
+
isShow?: boolean | undefined;
|
|
76
|
+
}>, "many">;
|
|
77
|
+
production_task_by_equipment: z.ZodArray<z.ZodObject<{
|
|
78
|
+
columnName: z.ZodNativeEnum<typeof tablesEnumConfig>;
|
|
79
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
columnName: tablesEnumConfig;
|
|
82
|
+
isShow: boolean;
|
|
83
|
+
}, {
|
|
84
|
+
columnName: tablesEnumConfig;
|
|
85
|
+
isShow?: boolean | undefined;
|
|
86
|
+
}>, "many">;
|
|
87
|
+
production_task_by_operation: z.ZodArray<z.ZodObject<{
|
|
88
|
+
columnName: z.ZodNativeEnum<typeof tablesEnumConfig>;
|
|
89
|
+
isShow: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
columnName: tablesEnumConfig;
|
|
92
|
+
isShow: boolean;
|
|
93
|
+
}, {
|
|
94
|
+
columnName: tablesEnumConfig;
|
|
95
|
+
isShow?: boolean | undefined;
|
|
96
|
+
}>, "many">;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
id: number;
|
|
99
|
+
assemble: {
|
|
100
|
+
columnName: tablesEnumConfig;
|
|
101
|
+
isShow: boolean;
|
|
102
|
+
}[];
|
|
103
|
+
user_id: number;
|
|
104
|
+
metalworking: {
|
|
105
|
+
columnName: tablesEnumConfig;
|
|
106
|
+
isShow: boolean;
|
|
107
|
+
}[];
|
|
108
|
+
metalworking_deficit_by_assemble: {
|
|
109
|
+
columnName: tablesEnumConfig;
|
|
110
|
+
isShow: boolean;
|
|
111
|
+
}[];
|
|
112
|
+
online_board_production: {
|
|
113
|
+
columnName: tablesEnumConfig;
|
|
114
|
+
isShow: boolean;
|
|
115
|
+
}[];
|
|
116
|
+
online_board: {
|
|
117
|
+
columnName: tablesEnumConfig;
|
|
118
|
+
isShow: boolean;
|
|
119
|
+
}[];
|
|
120
|
+
production_task_by_user: {
|
|
121
|
+
columnName: tablesEnumConfig;
|
|
122
|
+
isShow: boolean;
|
|
123
|
+
}[];
|
|
124
|
+
production_task_by_equipment: {
|
|
125
|
+
columnName: tablesEnumConfig;
|
|
126
|
+
isShow: boolean;
|
|
127
|
+
}[];
|
|
128
|
+
production_task_by_operation: {
|
|
129
|
+
columnName: tablesEnumConfig;
|
|
130
|
+
isShow: boolean;
|
|
131
|
+
}[];
|
|
132
|
+
}, {
|
|
133
|
+
id: number;
|
|
134
|
+
assemble: {
|
|
135
|
+
columnName: tablesEnumConfig;
|
|
136
|
+
isShow?: boolean | undefined;
|
|
137
|
+
}[];
|
|
138
|
+
user_id: number;
|
|
139
|
+
metalworking: {
|
|
140
|
+
columnName: tablesEnumConfig;
|
|
141
|
+
isShow?: boolean | undefined;
|
|
142
|
+
}[];
|
|
143
|
+
metalworking_deficit_by_assemble: {
|
|
144
|
+
columnName: tablesEnumConfig;
|
|
145
|
+
isShow?: boolean | undefined;
|
|
146
|
+
}[];
|
|
147
|
+
online_board_production: {
|
|
148
|
+
columnName: tablesEnumConfig;
|
|
149
|
+
isShow?: boolean | undefined;
|
|
150
|
+
}[];
|
|
151
|
+
online_board: {
|
|
152
|
+
columnName: tablesEnumConfig;
|
|
153
|
+
isShow?: boolean | undefined;
|
|
154
|
+
}[];
|
|
155
|
+
production_task_by_user: {
|
|
156
|
+
columnName: tablesEnumConfig;
|
|
157
|
+
isShow?: boolean | undefined;
|
|
158
|
+
}[];
|
|
159
|
+
production_task_by_equipment: {
|
|
160
|
+
columnName: tablesEnumConfig;
|
|
161
|
+
isShow?: boolean | undefined;
|
|
162
|
+
}[];
|
|
163
|
+
production_task_by_operation: {
|
|
164
|
+
columnName: tablesEnumConfig;
|
|
165
|
+
isShow?: boolean | undefined;
|
|
166
|
+
}[];
|
|
167
|
+
}>;
|
|
168
|
+
export type ModelUserTableConfig = z.infer<typeof UserTableConfigSchema>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserTableConfigSchema = exports.UserTableConfigItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
6
|
+
exports.UserTableConfigItemSchema = zod_1.z.object({
|
|
7
|
+
columnName: zod_1.z.nativeEnum(utils_1.tablesEnumConfig),
|
|
8
|
+
isShow: zod_1.z.boolean().default(true)
|
|
9
|
+
});
|
|
10
|
+
exports.UserTableConfigSchema = zod_1.z.object({
|
|
11
|
+
id: zod_1.z.number().int().positive(),
|
|
12
|
+
user_id: zod_1.z.number().int().positive(),
|
|
13
|
+
// Металлообработка
|
|
14
|
+
metalworking: zod_1.z.array(exports.UserTableConfigItemSchema),
|
|
15
|
+
// Онлайн табло для МО по ПЗ Сборки
|
|
16
|
+
metalworking_deficit_by_assemble: zod_1.z.array(exports.UserTableConfigItemSchema),
|
|
17
|
+
// Онлайн табло по ПЗ
|
|
18
|
+
online_board_production: zod_1.z.array(exports.UserTableConfigItemSchema),
|
|
19
|
+
// Онлайн табло
|
|
20
|
+
online_board: zod_1.z.array(exports.UserTableConfigItemSchema),
|
|
21
|
+
// Сборка
|
|
22
|
+
assemble: zod_1.z.array(exports.UserTableConfigItemSchema),
|
|
23
|
+
// ПЗ для пользователя
|
|
24
|
+
production_task_by_user: zod_1.z.array(exports.UserTableConfigItemSchema),
|
|
25
|
+
// ПЗ по оборудованию
|
|
26
|
+
production_task_by_equipment: zod_1.z.array(exports.UserTableConfigItemSchema),
|
|
27
|
+
// ПЗ по операции
|
|
28
|
+
production_task_by_operation: zod_1.z.array(exports.UserTableConfigItemSchema)
|
|
29
|
+
});
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -24,3 +24,6 @@ export * from './interfaces';
|
|
|
24
24
|
export * from './methods/utils';
|
|
25
25
|
export * from './promise-pool';
|
|
26
26
|
export * from './default-value/default-value';
|
|
27
|
+
export * from './tables-config/enum';
|
|
28
|
+
export * from './tables-config/methods';
|
|
29
|
+
export * from './tables-config/tables-array';
|
package/dist/utils/index.js
CHANGED
|
@@ -40,3 +40,6 @@ __exportStar(require("./interfaces"), exports);
|
|
|
40
40
|
__exportStar(require("./methods/utils"), exports);
|
|
41
41
|
__exportStar(require("./promise-pool"), exports);
|
|
42
42
|
__exportStar(require("./default-value/default-value"), exports);
|
|
43
|
+
__exportStar(require("./tables-config/enum"), exports);
|
|
44
|
+
__exportStar(require("./tables-config/methods"), exports);
|
|
45
|
+
__exportStar(require("./tables-config/tables-array"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare enum tablesEnumConfig {
|
|
2
|
+
number = "number",
|
|
3
|
+
image = "image",
|
|
4
|
+
designation = "designation",
|
|
5
|
+
name = "name",
|
|
6
|
+
description = "description",
|
|
7
|
+
createMarkLabel = "createMarkLabel",
|
|
8
|
+
calculatedCreateTime = "calculatedCreateTime",
|
|
9
|
+
calculateNeedsTime = "calculateNeedsTime",
|
|
10
|
+
calculateAssembleTime = "calculateAssembleTime",
|
|
11
|
+
orderedByProduction = "orderedByProduction",
|
|
12
|
+
ordered = "ordered",
|
|
13
|
+
deficitChildCreateTime = "deficitChildCreateTime",
|
|
14
|
+
remainingByProductionTask = "remainingByProductionTask",
|
|
15
|
+
dateByUrgency = "dateByUrgency",
|
|
16
|
+
dateShipment = "dateShipment",
|
|
17
|
+
material = "material",
|
|
18
|
+
operationsLength = "operationsLength",
|
|
19
|
+
timeToProduction = "timeToProduction",
|
|
20
|
+
waste = "waste",
|
|
21
|
+
relativeProductionTaskId = "relativeProductionTaskId",
|
|
22
|
+
productionTaskDueDate = "productionTaskDueDate",
|
|
23
|
+
responsibleEquipment = "responsibleEquipment",
|
|
24
|
+
responsibleUserName = "responsibleUserName",
|
|
25
|
+
startTime = "startTime",
|
|
26
|
+
deficitByProductionTask = "deficitByProductionTask",
|
|
27
|
+
deficitByCurrentProductionTask = "deficitByCurrentProductionTask",
|
|
28
|
+
operationFullName = "operationFullName",
|
|
29
|
+
entityType = "entityType",
|
|
30
|
+
totalTimePerItem = "totalTimePerItem",
|
|
31
|
+
totalTime = "totalTime",
|
|
32
|
+
productionTaskId = "productionTaskId",
|
|
33
|
+
totalRemainingTime = "totalRemainingTime",
|
|
34
|
+
operationList = "operationList",
|
|
35
|
+
prevOperation = "prevOperation",
|
|
36
|
+
currentOperation = "currentOperation",
|
|
37
|
+
nextOperation = "nextOperation",
|
|
38
|
+
readyToComplect = "readyToComplect",
|
|
39
|
+
readyInProcent = "readyInProcent",
|
|
40
|
+
readyToAssembleQuantity = "readyToAssembleQuantity"
|
|
41
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tablesEnumConfig = void 0;
|
|
4
|
+
var tablesEnumConfig;
|
|
5
|
+
(function (tablesEnumConfig) {
|
|
6
|
+
tablesEnumConfig["number"] = "number";
|
|
7
|
+
tablesEnumConfig["image"] = "image";
|
|
8
|
+
// обозначение
|
|
9
|
+
tablesEnumConfig["designation"] = "designation";
|
|
10
|
+
// наименование
|
|
11
|
+
tablesEnumConfig["name"] = "name";
|
|
12
|
+
// описание
|
|
13
|
+
tablesEnumConfig["description"] = "description";
|
|
14
|
+
// Создать отметку
|
|
15
|
+
tablesEnumConfig["createMarkLabel"] = "createMarkLabel";
|
|
16
|
+
// Требуемое время готовности
|
|
17
|
+
tablesEnumConfig["calculatedCreateTime"] = "calculatedCreateTime";
|
|
18
|
+
// Расчетная дата изготовления
|
|
19
|
+
tablesEnumConfig["calculateNeedsTime"] = "calculateNeedsTime";
|
|
20
|
+
// Расчетное время выполнения ч/мин
|
|
21
|
+
tablesEnumConfig["calculateAssembleTime"] = "calculateAssembleTime";
|
|
22
|
+
// заказано по ПЗ
|
|
23
|
+
tablesEnumConfig["orderedByProduction"] = "orderedByProduction";
|
|
24
|
+
// заказано
|
|
25
|
+
tablesEnumConfig["ordered"] = "ordered";
|
|
26
|
+
// Время изг. дефицитных Д/СБ
|
|
27
|
+
tablesEnumConfig["deficitChildCreateTime"] = "deficitChildCreateTime";
|
|
28
|
+
// Осталось сделать по ПЗ
|
|
29
|
+
tablesEnumConfig["remainingByProductionTask"] = "remainingByProductionTask";
|
|
30
|
+
// дата по срочности
|
|
31
|
+
tablesEnumConfig["dateByUrgency"] = "dateByUrgency";
|
|
32
|
+
// планируемая дата отгрузки
|
|
33
|
+
tablesEnumConfig["dateShipment"] = "dateShipment";
|
|
34
|
+
tablesEnumConfig["material"] = "material";
|
|
35
|
+
tablesEnumConfig["operationsLength"] = "operationsLength";
|
|
36
|
+
tablesEnumConfig["timeToProduction"] = "timeToProduction";
|
|
37
|
+
tablesEnumConfig["waste"] = "waste";
|
|
38
|
+
// Номер ПЗ родителя
|
|
39
|
+
tablesEnumConfig["relativeProductionTaskId"] = "relativeProductionTaskId";
|
|
40
|
+
// Дата выполнения ПЗ
|
|
41
|
+
tablesEnumConfig["productionTaskDueDate"] = "productionTaskDueDate";
|
|
42
|
+
// Оборудование
|
|
43
|
+
tablesEnumConfig["responsibleEquipment"] = "responsibleEquipment";
|
|
44
|
+
// ответственный пользователь
|
|
45
|
+
tablesEnumConfig["responsibleUserName"] = "responsibleUserName";
|
|
46
|
+
// начало работ
|
|
47
|
+
tablesEnumConfig["startTime"] = "startTime";
|
|
48
|
+
// Дефицит по ПЗ
|
|
49
|
+
tablesEnumConfig["deficitByProductionTask"] = "deficitByProductionTask";
|
|
50
|
+
// Заказано по текущему ПЗ
|
|
51
|
+
tablesEnumConfig["deficitByCurrentProductionTask"] = "deficitByCurrentProductionTask";
|
|
52
|
+
// название операции
|
|
53
|
+
tablesEnumConfig["operationFullName"] = "operationFullName";
|
|
54
|
+
// Тип
|
|
55
|
+
tablesEnumConfig["entityType"] = "entityType";
|
|
56
|
+
// время выполнения 1 шт
|
|
57
|
+
tablesEnumConfig["totalTimePerItem"] = "totalTimePerItem";
|
|
58
|
+
// время выполнения Всего по ПЗ
|
|
59
|
+
tablesEnumConfig["totalTime"] = "totalTime";
|
|
60
|
+
// Номер ПЗ
|
|
61
|
+
tablesEnumConfig["productionTaskId"] = "productionTaskId";
|
|
62
|
+
// время выполнения Осталось на ПЗ
|
|
63
|
+
tablesEnumConfig["totalRemainingTime"] = "totalRemainingTime";
|
|
64
|
+
// список операций
|
|
65
|
+
tablesEnumConfig["operationList"] = "operationList";
|
|
66
|
+
// Предыдущая операция
|
|
67
|
+
tablesEnumConfig["prevOperation"] = "prevOperation";
|
|
68
|
+
// текущая операция
|
|
69
|
+
tablesEnumConfig["currentOperation"] = "currentOperation";
|
|
70
|
+
// следующая операция
|
|
71
|
+
tablesEnumConfig["nextOperation"] = "nextOperation";
|
|
72
|
+
// Готово к комплектации
|
|
73
|
+
tablesEnumConfig["readyToComplect"] = "readyToComplect";
|
|
74
|
+
// Готовность в %
|
|
75
|
+
tablesEnumConfig["readyInProcent"] = "readyInProcent";
|
|
76
|
+
// Готовность к сборке
|
|
77
|
+
tablesEnumConfig["readyToAssembleQuantity"] = "readyToAssembleQuantity";
|
|
78
|
+
})(tablesEnumConfig || (exports.tablesEnumConfig = tablesEnumConfig = {}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UserTableConfigItem } from '../../user';
|
|
2
|
+
import { tablesEnumConfig } from './enum';
|
|
3
|
+
export declare const generateDefaultConfigArray: (configArray: tablesEnumConfig[]) => UserTableConfigItem[];
|
|
4
|
+
export declare const checkMissingColumns: (columns: UserTableConfigItem[], arrayToCheck: tablesEnumConfig[]) => tablesEnumConfig[];
|
|
5
|
+
export declare const createCorrectColumnConfig: (columns: UserTableConfigItem[], arrayToCheck: tablesEnumConfig[]) => UserTableConfigItem[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createCorrectColumnConfig = exports.checkMissingColumns = exports.generateDefaultConfigArray = void 0;
|
|
4
|
+
const generateDefaultConfigArray = (configArray) => configArray.map(currentConfigitem => {
|
|
5
|
+
return {
|
|
6
|
+
columnName: currentConfigitem,
|
|
7
|
+
isShow: true
|
|
8
|
+
};
|
|
9
|
+
});
|
|
10
|
+
exports.generateDefaultConfigArray = generateDefaultConfigArray;
|
|
11
|
+
const checkMissingColumns = (columns, arrayToCheck) => {
|
|
12
|
+
const columnsSet = new Set();
|
|
13
|
+
columns.forEach(currentColumn => columnsSet.add(currentColumn.columnName));
|
|
14
|
+
const filteredItems = arrayToCheck.filter(currentItem => !columnsSet.has(currentItem));
|
|
15
|
+
return filteredItems;
|
|
16
|
+
};
|
|
17
|
+
exports.checkMissingColumns = checkMissingColumns;
|
|
18
|
+
const createCorrectColumnConfig = (columns, arrayToCheck) => {
|
|
19
|
+
const columnMap = new Map();
|
|
20
|
+
columns.forEach(currentColumn => {
|
|
21
|
+
columnMap.set(currentColumn.columnName, currentColumn);
|
|
22
|
+
});
|
|
23
|
+
const newColumnArray = arrayToCheck.map(currentItem => {
|
|
24
|
+
const currentItemFromMap = columnMap.get(currentItem);
|
|
25
|
+
return currentItemFromMap
|
|
26
|
+
? currentItemFromMap
|
|
27
|
+
: { columnName: currentItem, isShow: true };
|
|
28
|
+
});
|
|
29
|
+
return newColumnArray;
|
|
30
|
+
};
|
|
31
|
+
exports.createCorrectColumnConfig = createCorrectColumnConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { tablesEnumConfig } from './enum';
|
|
2
|
+
export declare const metalloworkingTableConfig: tablesEnumConfig[];
|
|
3
|
+
export declare const metalDeficitByAssembleTableConfig: tablesEnumConfig[];
|
|
4
|
+
export declare const onlineBoardProductionTableConfig: tablesEnumConfig[];
|
|
5
|
+
export declare const onlineBoardTableConfig: tablesEnumConfig[];
|
|
6
|
+
export declare const assembleTableConfig: tablesEnumConfig[];
|
|
7
|
+
export declare const productionTaskByUserTableConfig: tablesEnumConfig[];
|
|
8
|
+
export declare const productionTaskByOperationTableConfig: tablesEnumConfig[];
|
|
9
|
+
export declare const productionTaskByEquipmentTableConfig: tablesEnumConfig[];
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.productionTaskByEquipmentTableConfig = exports.productionTaskByOperationTableConfig = exports.productionTaskByUserTableConfig = exports.assembleTableConfig = exports.onlineBoardTableConfig = exports.onlineBoardProductionTableConfig = exports.metalDeficitByAssembleTableConfig = exports.metalloworkingTableConfig = void 0;
|
|
4
|
+
const enum_1 = require("./enum");
|
|
5
|
+
// металлообработка
|
|
6
|
+
exports.metalloworkingTableConfig = [
|
|
7
|
+
enum_1.tablesEnumConfig.number,
|
|
8
|
+
enum_1.tablesEnumConfig.image,
|
|
9
|
+
enum_1.tablesEnumConfig.designation,
|
|
10
|
+
enum_1.tablesEnumConfig.name,
|
|
11
|
+
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
12
|
+
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
13
|
+
enum_1.tablesEnumConfig.orderedByProduction,
|
|
14
|
+
enum_1.tablesEnumConfig.ordered,
|
|
15
|
+
enum_1.tablesEnumConfig.dateByUrgency,
|
|
16
|
+
enum_1.tablesEnumConfig.dateShipment,
|
|
17
|
+
enum_1.tablesEnumConfig.material,
|
|
18
|
+
enum_1.tablesEnumConfig.operationsLength,
|
|
19
|
+
enum_1.tablesEnumConfig.readyInProcent,
|
|
20
|
+
enum_1.tablesEnumConfig.timeToProduction,
|
|
21
|
+
enum_1.tablesEnumConfig.waste
|
|
22
|
+
];
|
|
23
|
+
// Онлайн табло для МО по ПЗ Сборки
|
|
24
|
+
exports.metalDeficitByAssembleTableConfig = [
|
|
25
|
+
enum_1.tablesEnumConfig.number,
|
|
26
|
+
enum_1.tablesEnumConfig.responsibleUserName,
|
|
27
|
+
enum_1.tablesEnumConfig.productionTaskDueDate,
|
|
28
|
+
enum_1.tablesEnumConfig.relativeProductionTaskId,
|
|
29
|
+
enum_1.tablesEnumConfig.image,
|
|
30
|
+
enum_1.tablesEnumConfig.designation,
|
|
31
|
+
enum_1.tablesEnumConfig.name,
|
|
32
|
+
enum_1.tablesEnumConfig.startTime,
|
|
33
|
+
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
34
|
+
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
35
|
+
enum_1.tablesEnumConfig.deficitByProductionTask,
|
|
36
|
+
enum_1.tablesEnumConfig.orderedByProduction,
|
|
37
|
+
enum_1.tablesEnumConfig.ordered,
|
|
38
|
+
enum_1.tablesEnumConfig.operationsLength,
|
|
39
|
+
enum_1.tablesEnumConfig.operationList,
|
|
40
|
+
enum_1.tablesEnumConfig.totalTimePerItem,
|
|
41
|
+
enum_1.tablesEnumConfig.totalTime,
|
|
42
|
+
enum_1.tablesEnumConfig.totalRemainingTime
|
|
43
|
+
];
|
|
44
|
+
// Онлайн табло по ПЗ
|
|
45
|
+
exports.onlineBoardProductionTableConfig = [
|
|
46
|
+
enum_1.tablesEnumConfig.number,
|
|
47
|
+
enum_1.tablesEnumConfig.productionTaskDueDate,
|
|
48
|
+
enum_1.tablesEnumConfig.productionTaskId,
|
|
49
|
+
enum_1.tablesEnumConfig.image,
|
|
50
|
+
enum_1.tablesEnumConfig.designation,
|
|
51
|
+
enum_1.tablesEnumConfig.name,
|
|
52
|
+
enum_1.tablesEnumConfig.entityType,
|
|
53
|
+
enum_1.tablesEnumConfig.dateByUrgency,
|
|
54
|
+
enum_1.tablesEnumConfig.startTime,
|
|
55
|
+
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
56
|
+
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
57
|
+
enum_1.tablesEnumConfig.dateShipment,
|
|
58
|
+
enum_1.tablesEnumConfig.deficitByCurrentProductionTask,
|
|
59
|
+
enum_1.tablesEnumConfig.deficitByProductionTask,
|
|
60
|
+
enum_1.tablesEnumConfig.ordered,
|
|
61
|
+
enum_1.tablesEnumConfig.readyToComplect,
|
|
62
|
+
enum_1.tablesEnumConfig.operationsLength,
|
|
63
|
+
enum_1.tablesEnumConfig.operationList,
|
|
64
|
+
enum_1.tablesEnumConfig.totalTimePerItem,
|
|
65
|
+
enum_1.tablesEnumConfig.totalTime,
|
|
66
|
+
enum_1.tablesEnumConfig.totalRemainingTime
|
|
67
|
+
];
|
|
68
|
+
// Онлайн табло
|
|
69
|
+
exports.onlineBoardTableConfig = [
|
|
70
|
+
enum_1.tablesEnumConfig.number,
|
|
71
|
+
enum_1.tablesEnumConfig.image,
|
|
72
|
+
enum_1.tablesEnumConfig.designation,
|
|
73
|
+
enum_1.tablesEnumConfig.name,
|
|
74
|
+
enum_1.tablesEnumConfig.entityType,
|
|
75
|
+
enum_1.tablesEnumConfig.dateByUrgency,
|
|
76
|
+
enum_1.tablesEnumConfig.startTime,
|
|
77
|
+
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
78
|
+
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
79
|
+
enum_1.tablesEnumConfig.dateShipment,
|
|
80
|
+
enum_1.tablesEnumConfig.deficitByProductionTask,
|
|
81
|
+
enum_1.tablesEnumConfig.ordered,
|
|
82
|
+
enum_1.tablesEnumConfig.readyToComplect,
|
|
83
|
+
enum_1.tablesEnumConfig.operationsLength,
|
|
84
|
+
enum_1.tablesEnumConfig.operationList,
|
|
85
|
+
enum_1.tablesEnumConfig.totalTimePerItem,
|
|
86
|
+
enum_1.tablesEnumConfig.totalTime,
|
|
87
|
+
enum_1.tablesEnumConfig.totalRemainingTime
|
|
88
|
+
];
|
|
89
|
+
// сборка
|
|
90
|
+
exports.assembleTableConfig = [
|
|
91
|
+
enum_1.tablesEnumConfig.number,
|
|
92
|
+
enum_1.tablesEnumConfig.entityType,
|
|
93
|
+
enum_1.tablesEnumConfig.image,
|
|
94
|
+
enum_1.tablesEnumConfig.designation,
|
|
95
|
+
enum_1.tablesEnumConfig.name,
|
|
96
|
+
enum_1.tablesEnumConfig.ordered,
|
|
97
|
+
enum_1.tablesEnumConfig.startTime,
|
|
98
|
+
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
99
|
+
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
100
|
+
enum_1.tablesEnumConfig.dateByUrgency,
|
|
101
|
+
enum_1.tablesEnumConfig.dateShipment,
|
|
102
|
+
enum_1.tablesEnumConfig.operationsLength,
|
|
103
|
+
enum_1.tablesEnumConfig.readyInProcent,
|
|
104
|
+
enum_1.tablesEnumConfig.readyToComplect,
|
|
105
|
+
enum_1.tablesEnumConfig.readyToAssembleQuantity,
|
|
106
|
+
enum_1.tablesEnumConfig.timeToProduction
|
|
107
|
+
];
|
|
108
|
+
// Производственные задания для пользователя
|
|
109
|
+
exports.productionTaskByUserTableConfig = [
|
|
110
|
+
enum_1.tablesEnumConfig.number,
|
|
111
|
+
enum_1.tablesEnumConfig.productionTaskId,
|
|
112
|
+
enum_1.tablesEnumConfig.responsibleUserName,
|
|
113
|
+
enum_1.tablesEnumConfig.productionTaskDueDate,
|
|
114
|
+
enum_1.tablesEnumConfig.description,
|
|
115
|
+
enum_1.tablesEnumConfig.createMarkLabel,
|
|
116
|
+
enum_1.tablesEnumConfig.entityType,
|
|
117
|
+
enum_1.tablesEnumConfig.image,
|
|
118
|
+
enum_1.tablesEnumConfig.designation,
|
|
119
|
+
enum_1.tablesEnumConfig.name,
|
|
120
|
+
enum_1.tablesEnumConfig.deficitChildCreateTime,
|
|
121
|
+
enum_1.tablesEnumConfig.startTime,
|
|
122
|
+
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
123
|
+
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
124
|
+
enum_1.tablesEnumConfig.orderedByProduction,
|
|
125
|
+
enum_1.tablesEnumConfig.remainingByProductionTask,
|
|
126
|
+
enum_1.tablesEnumConfig.timeToProduction,
|
|
127
|
+
enum_1.tablesEnumConfig.operationsLength,
|
|
128
|
+
enum_1.tablesEnumConfig.prevOperation,
|
|
129
|
+
enum_1.tablesEnumConfig.currentOperation,
|
|
130
|
+
enum_1.tablesEnumConfig.nextOperation,
|
|
131
|
+
enum_1.tablesEnumConfig.totalTimePerItem,
|
|
132
|
+
enum_1.tablesEnumConfig.totalTime,
|
|
133
|
+
enum_1.tablesEnumConfig.totalRemainingTime
|
|
134
|
+
];
|
|
135
|
+
// Производственные задания по операции
|
|
136
|
+
exports.productionTaskByOperationTableConfig = [
|
|
137
|
+
enum_1.tablesEnumConfig.number,
|
|
138
|
+
enum_1.tablesEnumConfig.productionTaskId,
|
|
139
|
+
enum_1.tablesEnumConfig.responsibleEquipment,
|
|
140
|
+
enum_1.tablesEnumConfig.productionTaskDueDate,
|
|
141
|
+
enum_1.tablesEnumConfig.description,
|
|
142
|
+
enum_1.tablesEnumConfig.createMarkLabel,
|
|
143
|
+
enum_1.tablesEnumConfig.entityType,
|
|
144
|
+
enum_1.tablesEnumConfig.image,
|
|
145
|
+
enum_1.tablesEnumConfig.designation,
|
|
146
|
+
enum_1.tablesEnumConfig.name,
|
|
147
|
+
enum_1.tablesEnumConfig.startTime,
|
|
148
|
+
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
149
|
+
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
150
|
+
enum_1.tablesEnumConfig.calculateAssembleTime,
|
|
151
|
+
enum_1.tablesEnumConfig.orderedByProduction,
|
|
152
|
+
enum_1.tablesEnumConfig.remainingByProductionTask,
|
|
153
|
+
enum_1.tablesEnumConfig.timeToProduction,
|
|
154
|
+
enum_1.tablesEnumConfig.operationsLength,
|
|
155
|
+
enum_1.tablesEnumConfig.prevOperation,
|
|
156
|
+
enum_1.tablesEnumConfig.currentOperation,
|
|
157
|
+
enum_1.tablesEnumConfig.nextOperation,
|
|
158
|
+
enum_1.tablesEnumConfig.totalTimePerItem,
|
|
159
|
+
enum_1.tablesEnumConfig.totalTime,
|
|
160
|
+
enum_1.tablesEnumConfig.totalRemainingTime
|
|
161
|
+
];
|
|
162
|
+
// Производственные задания по оборудованию
|
|
163
|
+
exports.productionTaskByEquipmentTableConfig = [
|
|
164
|
+
enum_1.tablesEnumConfig.number,
|
|
165
|
+
enum_1.tablesEnumConfig.productionTaskId,
|
|
166
|
+
enum_1.tablesEnumConfig.responsibleEquipment,
|
|
167
|
+
enum_1.tablesEnumConfig.productionTaskDueDate,
|
|
168
|
+
enum_1.tablesEnumConfig.description,
|
|
169
|
+
enum_1.tablesEnumConfig.createMarkLabel,
|
|
170
|
+
enum_1.tablesEnumConfig.entityType,
|
|
171
|
+
enum_1.tablesEnumConfig.image,
|
|
172
|
+
enum_1.tablesEnumConfig.designation,
|
|
173
|
+
enum_1.tablesEnumConfig.name,
|
|
174
|
+
enum_1.tablesEnumConfig.startTime,
|
|
175
|
+
enum_1.tablesEnumConfig.calculatedCreateTime,
|
|
176
|
+
enum_1.tablesEnumConfig.calculateNeedsTime,
|
|
177
|
+
enum_1.tablesEnumConfig.calculateAssembleTime,
|
|
178
|
+
enum_1.tablesEnumConfig.orderedByProduction,
|
|
179
|
+
enum_1.tablesEnumConfig.remainingByProductionTask,
|
|
180
|
+
enum_1.tablesEnumConfig.timeToProduction,
|
|
181
|
+
enum_1.tablesEnumConfig.operationsLength,
|
|
182
|
+
enum_1.tablesEnumConfig.prevOperation,
|
|
183
|
+
enum_1.tablesEnumConfig.currentOperation,
|
|
184
|
+
enum_1.tablesEnumConfig.nextOperation,
|
|
185
|
+
enum_1.tablesEnumConfig.totalTimePerItem,
|
|
186
|
+
enum_1.tablesEnumConfig.totalTime,
|
|
187
|
+
enum_1.tablesEnumConfig.totalRemainingTime
|
|
188
|
+
];
|