@pksep/zod-shared 0.0.506 → 0.0.507
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/assemble/dto/create-assemble-kit.dto.d.ts +2 -2
- package/dist/assemble/dto/get-assemble-operation-count.dto.d.ts +2 -2
- package/dist/assemble/schemas/assemble-coming.schema.d.ts +7 -7
- package/dist/assemble/schemas/assemble.schema.d.ts +1 -1
- package/dist/cbed/dto/up-create-cbed.dto.d.ts +2 -2
- package/dist/cbed/schemas/cbed.schema.d.ts +20 -14
- package/dist/cbed/schemas/cbed.schema.js +2 -0
- package/dist/detal/dto/update-detal.dto.d.ts +2 -2
- package/dist/detal/schemas/detal-deficit.schema.d.ts +85 -277
- package/dist/detal/schemas/detal.schema.d.ts +92 -283
- package/dist/detal/schemas/detal.schema.js +2 -0
- package/dist/equipment/dto/create-equipment.dto.js +1 -1
- package/dist/equipment/dto/update-equipment.dto.js +1 -9
- package/dist/material/schemas/material.schema.d.ts +2 -2
- package/dist/moving/schemas/moving.schema.d.ts +125 -111
- package/dist/operations/dto/update-create-operation.dto.d.ts +3 -0
- package/dist/operations/dto/update-create-operation.dto.js +1 -0
- package/dist/product/dto/up-create-product.dto.d.ts +5 -5
- package/dist/product/schemas/product-deficit.schema.d.ts +12 -12
- package/dist/product/schemas/product.schema.d.ts +12 -12
- package/dist/production-tasks/dto/get-deficits-detal-by-production-task.dto.d.ts +2 -2
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.d.ts +18 -0
- package/dist/production-tasks/dto/get-production-task-by-equipment.dto.js +7 -0
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.d.ts +21 -0
- package/dist/production-tasks/dto/get-production-task-by-operation.dto.js +8 -0
- package/dist/production-tasks/dto/get-production-task-by-user.dto.d.ts +18 -0
- package/dist/production-tasks/dto/get-production-task-by-user.dto.js +8 -1
- package/dist/production-tasks/dto/get-taks-by-toperation.dto.d.ts +3 -0
- package/dist/production-tasks/dto/get-taks-by-toperation.dto.js +4 -0
- package/dist/production-tasks/dto/plan-production-task.dto.d.ts +6 -0
- package/dist/production-tasks/dto/plan-production-task.dto.js +2 -0
- package/dist/production-tasks/dto/set-start-time-detal.dto.d.ts +3 -3
- package/dist/production-tasks/dto/set-start-time-detal.dto.js +1 -1
- package/dist/production-tasks/interfaces/production-tasks.d.ts +96 -1
- package/dist/production-tasks/methods/methods.d.ts +2 -0
- package/dist/production-tasks/methods/methods.js +36 -4
- package/dist/production-tasks/schemas/operation-positions.schema.d.ts +3 -0
- package/dist/production-tasks/schemas/operation-positions.schema.js +1 -0
- package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.d.ts +3 -3
- package/dist/production-tasks/schemas/production-taks-start-time-detal.schema.js +1 -1
- package/dist/role/schemas/role.schema.d.ts +125 -111
- package/dist/sclad/schemas/remains.schema.d.ts +4 -4
- package/dist/specification/schema/attributes.schema.d.ts +184 -462
- package/dist/tech-process/index.d.ts +1 -0
- package/dist/tech-process/index.js +1 -0
- package/dist/tech-process/schemas/tech-process-with-options.schema.d.ts +306 -0
- package/dist/tech-process/schemas/tech-process-with-options.schema.js +8 -0
- package/dist/tech-process/schemas/tech-process.schema.d.ts +8 -1
- package/dist/user/schemas/user.schema.d.ts +84 -74
- package/dist/utils/methods.d.ts +1 -1
- package/dist/utils/methods.js +2 -4
- package/dist/utils/operation.d.ts +1 -0
- package/dist/utils/operation.js +8 -1
- package/package.json +1 -1
|
@@ -77,6 +77,8 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
77
77
|
ban: z.ZodDefault<z.ZodBoolean>;
|
|
78
78
|
min_remaining: z.ZodDefault<z.ZodNumber>;
|
|
79
79
|
remainder_after_coming: z.ZodDefault<z.ZodNumber>;
|
|
80
|
+
task_relative_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
81
|
+
task_relative_type: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("../..").IzdType>>>;
|
|
80
82
|
quantity: z.ZodDefault<z.ZodNumber>;
|
|
81
83
|
deficit: z.ZodDefault<z.ZodNumber>;
|
|
82
84
|
shipments_kolvo: z.ZodDefault<z.ZodNumber>;
|
|
@@ -114,21 +116,23 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
114
116
|
shipments_kolvo: number;
|
|
115
117
|
min_remaining: number;
|
|
116
118
|
responsibleId: number | null;
|
|
117
|
-
|
|
118
|
-
shipments_deficit: number;
|
|
119
|
+
remainder_after_coming: number;
|
|
119
120
|
deficit: number;
|
|
121
|
+
shipments_deficit: number;
|
|
122
|
+
production_ordered: number;
|
|
123
|
+
deficit_by_sclad: number;
|
|
120
124
|
ava_path: string | null;
|
|
121
125
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
122
126
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
127
|
+
in_kit: number;
|
|
123
128
|
listPokDet: import("../..").EntityCommonSpecificationArray | null;
|
|
124
|
-
listDetal: import("../..").EntityCommonSpecificationArray | null;
|
|
125
129
|
listCbed: import("../..").EntityCommonSpecificationArray | null;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
listDetal: import("../..").EntityCommonSpecificationArray | null;
|
|
131
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
132
|
+
task_relative_id?: number | null | undefined;
|
|
133
|
+
task_relative_type?: import("../..").IzdType | null | undefined;
|
|
129
134
|
discontinued?: boolean | undefined;
|
|
130
135
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
131
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
132
136
|
}, {
|
|
133
137
|
designation: string | null;
|
|
134
138
|
description: string | null;
|
|
@@ -141,23 +145,25 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
141
145
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
142
146
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
143
147
|
listPokDet: import("../..").EntityCommonSpecificationArray | null;
|
|
144
|
-
listDetal: import("../..").EntityCommonSpecificationArray | null;
|
|
145
148
|
listCbed: import("../..").EntityCommonSpecificationArray | null;
|
|
149
|
+
listDetal: import("../..").EntityCommonSpecificationArray | null;
|
|
146
150
|
ban?: boolean | undefined;
|
|
147
151
|
cbed?: import("../../cbed").CbedRelativeType[] | undefined;
|
|
148
152
|
attention?: boolean | undefined;
|
|
149
153
|
quantity?: number | undefined;
|
|
150
154
|
shipments_kolvo?: number | undefined;
|
|
151
155
|
min_remaining?: number | undefined;
|
|
152
|
-
|
|
153
|
-
shipments_deficit?: number | undefined;
|
|
156
|
+
remainder_after_coming?: number | undefined;
|
|
154
157
|
deficit?: number | undefined;
|
|
158
|
+
shipments_deficit?: number | undefined;
|
|
159
|
+
production_ordered?: number | undefined;
|
|
160
|
+
deficit_by_sclad?: number | undefined;
|
|
161
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
155
162
|
in_kit?: number | undefined;
|
|
163
|
+
task_relative_id?: number | null | undefined;
|
|
164
|
+
task_relative_type?: import("../..").IzdType | null | undefined;
|
|
156
165
|
discontinued?: boolean | undefined;
|
|
157
166
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
158
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
159
|
-
remainder_after_coming?: number | undefined;
|
|
160
|
-
deficit_by_sclad?: number | undefined;
|
|
161
167
|
}>, "many">;
|
|
162
168
|
products: z.ZodArray<z.ZodObject<{
|
|
163
169
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -197,49 +203,49 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
197
203
|
shipments_kolvo: number;
|
|
198
204
|
min_remaining: number;
|
|
199
205
|
responsibleId: number | null;
|
|
200
|
-
production_ordered: number;
|
|
201
|
-
shipments_deficit: number;
|
|
202
206
|
deficit: number;
|
|
203
|
-
|
|
207
|
+
shipments_deficit: number;
|
|
208
|
+
production_ordered: number;
|
|
204
209
|
ava_path: string | null;
|
|
205
210
|
parametrs: import("../../cbed").CbedVariableField[];
|
|
206
211
|
characteristic: import("../../cbed").CbedVariableField[];
|
|
212
|
+
in_kit: number;
|
|
207
213
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
208
|
-
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
209
214
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
210
|
-
|
|
215
|
+
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
216
|
+
articl: string | null;
|
|
211
217
|
is_custom: boolean;
|
|
212
218
|
id?: number | null | undefined;
|
|
219
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
213
220
|
discontinued?: boolean | undefined;
|
|
214
221
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
215
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
216
222
|
}, {
|
|
217
223
|
designation: string | null;
|
|
218
224
|
description: string | null;
|
|
219
225
|
name: string;
|
|
220
226
|
materialList: import("../..").EntityCommonSpecificationArray;
|
|
221
227
|
responsibleId: number | null;
|
|
222
|
-
articl: string | null;
|
|
223
228
|
ava_path: string | null;
|
|
224
229
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
225
|
-
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
226
230
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
231
|
+
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
232
|
+
articl: string | null;
|
|
227
233
|
ban?: boolean | undefined;
|
|
228
234
|
id?: number | null | undefined;
|
|
229
235
|
attention?: boolean | undefined;
|
|
230
236
|
quantity?: number | undefined;
|
|
231
237
|
shipments_kolvo?: number | undefined;
|
|
232
238
|
min_remaining?: number | undefined;
|
|
233
|
-
production_ordered?: number | undefined;
|
|
234
|
-
shipments_deficit?: number | undefined;
|
|
235
239
|
deficit?: number | undefined;
|
|
240
|
+
shipments_deficit?: number | undefined;
|
|
241
|
+
production_ordered?: number | undefined;
|
|
242
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
236
243
|
parametrs?: import("../../cbed").CbedVariableField[] | undefined;
|
|
237
244
|
characteristic?: import("../../cbed").CbedVariableField[] | undefined;
|
|
238
245
|
in_kit?: number | undefined;
|
|
239
|
-
is_custom?: boolean | undefined;
|
|
240
246
|
discontinued?: boolean | undefined;
|
|
241
247
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
242
|
-
|
|
248
|
+
is_custom?: boolean | undefined;
|
|
243
249
|
}>, "many">;
|
|
244
250
|
actions: z.ZodArray<z.ZodObject<{
|
|
245
251
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -382,49 +388,49 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
382
388
|
shipments_kolvo: number;
|
|
383
389
|
min_remaining: number;
|
|
384
390
|
responsibleId: number | null;
|
|
385
|
-
production_ordered: number;
|
|
386
|
-
shipments_deficit: number;
|
|
387
391
|
deficit: number;
|
|
388
|
-
|
|
392
|
+
shipments_deficit: number;
|
|
393
|
+
production_ordered: number;
|
|
389
394
|
ava_path: string | null;
|
|
390
395
|
parametrs: import("../../cbed").CbedVariableField[];
|
|
391
396
|
characteristic: import("../../cbed").CbedVariableField[];
|
|
397
|
+
in_kit: number;
|
|
392
398
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
393
|
-
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
394
399
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
395
|
-
|
|
400
|
+
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
401
|
+
articl: string | null;
|
|
396
402
|
is_custom: boolean;
|
|
397
403
|
id?: number | null | undefined;
|
|
404
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
398
405
|
discontinued?: boolean | undefined;
|
|
399
406
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
400
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
401
407
|
}, {
|
|
402
408
|
designation: string | null;
|
|
403
409
|
description: string | null;
|
|
404
410
|
name: string;
|
|
405
411
|
materialList: import("../..").EntityCommonSpecificationArray;
|
|
406
412
|
responsibleId: number | null;
|
|
407
|
-
articl: string | null;
|
|
408
413
|
ava_path: string | null;
|
|
409
414
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
410
|
-
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
411
415
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
416
|
+
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
417
|
+
articl: string | null;
|
|
412
418
|
ban?: boolean | undefined;
|
|
413
419
|
id?: number | null | undefined;
|
|
414
420
|
attention?: boolean | undefined;
|
|
415
421
|
quantity?: number | undefined;
|
|
416
422
|
shipments_kolvo?: number | undefined;
|
|
417
423
|
min_remaining?: number | undefined;
|
|
418
|
-
production_ordered?: number | undefined;
|
|
419
|
-
shipments_deficit?: number | undefined;
|
|
420
424
|
deficit?: number | undefined;
|
|
425
|
+
shipments_deficit?: number | undefined;
|
|
426
|
+
production_ordered?: number | undefined;
|
|
427
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
421
428
|
parametrs?: import("../../cbed").CbedVariableField[] | undefined;
|
|
422
429
|
characteristic?: import("../../cbed").CbedVariableField[] | undefined;
|
|
423
430
|
in_kit?: number | undefined;
|
|
424
|
-
is_custom?: boolean | undefined;
|
|
425
431
|
discontinued?: boolean | undefined;
|
|
426
432
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
427
|
-
|
|
433
|
+
is_custom?: boolean | undefined;
|
|
428
434
|
}>, "many">;
|
|
429
435
|
responsibleForDocuments: z.ZodArray<z.ZodObject<{
|
|
430
436
|
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -567,22 +573,22 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
567
573
|
shipments_kolvo: number;
|
|
568
574
|
min_remaining: number;
|
|
569
575
|
responsibleId: number | null;
|
|
570
|
-
production_ordered: number;
|
|
571
|
-
shipments_deficit: number;
|
|
572
576
|
deficit: number;
|
|
573
|
-
|
|
577
|
+
shipments_deficit: number;
|
|
578
|
+
production_ordered: number;
|
|
574
579
|
ava_path: string | null;
|
|
575
580
|
parametrs: import("../../cbed").CbedVariableField[];
|
|
576
581
|
characteristic: import("../../cbed").CbedVariableField[];
|
|
582
|
+
in_kit: number;
|
|
577
583
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
578
|
-
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
579
584
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
580
|
-
|
|
585
|
+
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
586
|
+
articl: string | null;
|
|
581
587
|
is_custom: boolean;
|
|
582
588
|
id?: number | null | undefined;
|
|
589
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
583
590
|
discontinued?: boolean | undefined;
|
|
584
591
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
585
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
586
592
|
}[];
|
|
587
593
|
remote_work: boolean;
|
|
588
594
|
tabel: string;
|
|
@@ -609,21 +615,23 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
609
615
|
shipments_kolvo: number;
|
|
610
616
|
min_remaining: number;
|
|
611
617
|
responsibleId: number | null;
|
|
612
|
-
|
|
613
|
-
shipments_deficit: number;
|
|
618
|
+
remainder_after_coming: number;
|
|
614
619
|
deficit: number;
|
|
620
|
+
shipments_deficit: number;
|
|
621
|
+
production_ordered: number;
|
|
622
|
+
deficit_by_sclad: number;
|
|
615
623
|
ava_path: string | null;
|
|
616
624
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
617
625
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
626
|
+
in_kit: number;
|
|
618
627
|
listPokDet: import("../..").EntityCommonSpecificationArray | null;
|
|
619
|
-
listDetal: import("../..").EntityCommonSpecificationArray | null;
|
|
620
628
|
listCbed: import("../..").EntityCommonSpecificationArray | null;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
629
|
+
listDetal: import("../..").EntityCommonSpecificationArray | null;
|
|
630
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
631
|
+
task_relative_id?: number | null | undefined;
|
|
632
|
+
task_relative_type?: import("../..").IzdType | null | undefined;
|
|
624
633
|
discontinued?: boolean | undefined;
|
|
625
634
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
626
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
627
635
|
}[];
|
|
628
636
|
responsibleForProduct: {
|
|
629
637
|
ban: boolean;
|
|
@@ -636,22 +644,22 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
636
644
|
shipments_kolvo: number;
|
|
637
645
|
min_remaining: number;
|
|
638
646
|
responsibleId: number | null;
|
|
639
|
-
production_ordered: number;
|
|
640
|
-
shipments_deficit: number;
|
|
641
647
|
deficit: number;
|
|
642
|
-
|
|
648
|
+
shipments_deficit: number;
|
|
649
|
+
production_ordered: number;
|
|
643
650
|
ava_path: string | null;
|
|
644
651
|
parametrs: import("../../cbed").CbedVariableField[];
|
|
645
652
|
characteristic: import("../../cbed").CbedVariableField[];
|
|
653
|
+
in_kit: number;
|
|
646
654
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
647
|
-
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
648
655
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
649
|
-
|
|
656
|
+
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
657
|
+
articl: string | null;
|
|
650
658
|
is_custom: boolean;
|
|
651
659
|
id?: number | null | undefined;
|
|
660
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
652
661
|
discontinued?: boolean | undefined;
|
|
653
662
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
654
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
655
663
|
}[];
|
|
656
664
|
responsibleForDocuments: {
|
|
657
665
|
path: string;
|
|
@@ -739,27 +747,27 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
739
747
|
name: string;
|
|
740
748
|
materialList: import("../..").EntityCommonSpecificationArray;
|
|
741
749
|
responsibleId: number | null;
|
|
742
|
-
articl: string | null;
|
|
743
750
|
ava_path: string | null;
|
|
744
751
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
745
|
-
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
746
752
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
753
|
+
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
754
|
+
articl: string | null;
|
|
747
755
|
ban?: boolean | undefined;
|
|
748
756
|
id?: number | null | undefined;
|
|
749
757
|
attention?: boolean | undefined;
|
|
750
758
|
quantity?: number | undefined;
|
|
751
759
|
shipments_kolvo?: number | undefined;
|
|
752
760
|
min_remaining?: number | undefined;
|
|
753
|
-
production_ordered?: number | undefined;
|
|
754
|
-
shipments_deficit?: number | undefined;
|
|
755
761
|
deficit?: number | undefined;
|
|
762
|
+
shipments_deficit?: number | undefined;
|
|
763
|
+
production_ordered?: number | undefined;
|
|
764
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
756
765
|
parametrs?: import("../../cbed").CbedVariableField[] | undefined;
|
|
757
766
|
characteristic?: import("../../cbed").CbedVariableField[] | undefined;
|
|
758
767
|
in_kit?: number | undefined;
|
|
759
|
-
is_custom?: boolean | undefined;
|
|
760
768
|
discontinued?: boolean | undefined;
|
|
761
769
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
762
|
-
|
|
770
|
+
is_custom?: boolean | undefined;
|
|
763
771
|
}[];
|
|
764
772
|
tabel: string;
|
|
765
773
|
dateWork: string | null;
|
|
@@ -783,23 +791,25 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
783
791
|
parametrs: import("../../cbed").CbedParametrsField | null;
|
|
784
792
|
characteristic: import("../../cbed").CbedCharacteristicField | null;
|
|
785
793
|
listPokDet: import("../..").EntityCommonSpecificationArray | null;
|
|
786
|
-
listDetal: import("../..").EntityCommonSpecificationArray | null;
|
|
787
794
|
listCbed: import("../..").EntityCommonSpecificationArray | null;
|
|
795
|
+
listDetal: import("../..").EntityCommonSpecificationArray | null;
|
|
788
796
|
ban?: boolean | undefined;
|
|
789
797
|
cbed?: import("../../cbed").CbedRelativeType[] | undefined;
|
|
790
798
|
attention?: boolean | undefined;
|
|
791
799
|
quantity?: number | undefined;
|
|
792
800
|
shipments_kolvo?: number | undefined;
|
|
793
801
|
min_remaining?: number | undefined;
|
|
794
|
-
|
|
795
|
-
shipments_deficit?: number | undefined;
|
|
802
|
+
remainder_after_coming?: number | undefined;
|
|
796
803
|
deficit?: number | undefined;
|
|
804
|
+
shipments_deficit?: number | undefined;
|
|
805
|
+
production_ordered?: number | undefined;
|
|
806
|
+
deficit_by_sclad?: number | undefined;
|
|
807
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
797
808
|
in_kit?: number | undefined;
|
|
809
|
+
task_relative_id?: number | null | undefined;
|
|
810
|
+
task_relative_type?: import("../..").IzdType | null | undefined;
|
|
798
811
|
discontinued?: boolean | undefined;
|
|
799
812
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
800
|
-
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
801
|
-
remainder_after_coming?: number | undefined;
|
|
802
|
-
deficit_by_sclad?: number | undefined;
|
|
803
813
|
}[];
|
|
804
814
|
responsibleForProduct: {
|
|
805
815
|
designation: string | null;
|
|
@@ -807,27 +817,27 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
807
817
|
name: string;
|
|
808
818
|
materialList: import("../..").EntityCommonSpecificationArray;
|
|
809
819
|
responsibleId: number | null;
|
|
810
|
-
articl: string | null;
|
|
811
820
|
ava_path: string | null;
|
|
812
821
|
listPokDet: import("../..").EntityCommonSpecificationArray;
|
|
813
|
-
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
814
822
|
listCbed: import("../..").EntityCommonSpecificationArray;
|
|
823
|
+
listDetal: import("../..").EntityCommonSpecificationArray;
|
|
824
|
+
articl: string | null;
|
|
815
825
|
ban?: boolean | undefined;
|
|
816
826
|
id?: number | null | undefined;
|
|
817
827
|
attention?: boolean | undefined;
|
|
818
828
|
quantity?: number | undefined;
|
|
819
829
|
shipments_kolvo?: number | undefined;
|
|
820
830
|
min_remaining?: number | undefined;
|
|
821
|
-
production_ordered?: number | undefined;
|
|
822
|
-
shipments_deficit?: number | undefined;
|
|
823
831
|
deficit?: number | undefined;
|
|
832
|
+
shipments_deficit?: number | undefined;
|
|
833
|
+
production_ordered?: number | undefined;
|
|
834
|
+
production_time_metalloworking?: import("../..").ProductionTimeType | null | undefined;
|
|
824
835
|
parametrs?: import("../../cbed").CbedVariableField[] | undefined;
|
|
825
836
|
characteristic?: import("../../cbed").CbedVariableField[] | undefined;
|
|
826
837
|
in_kit?: number | undefined;
|
|
827
|
-
is_custom?: boolean | undefined;
|
|
828
838
|
discontinued?: boolean | undefined;
|
|
829
839
|
production_time_assemble?: import("../..").ProductionTimeType | null | undefined;
|
|
830
|
-
|
|
840
|
+
is_custom?: boolean | undefined;
|
|
831
841
|
}[];
|
|
832
842
|
responsibleForDocuments: {
|
|
833
843
|
path: string;
|
package/dist/utils/methods.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare function isThisExclusionDesignation(designation: string, isProduc
|
|
|
34
34
|
* @returns
|
|
35
35
|
* Функция подсчитывает необходимый остаток по ПЗ
|
|
36
36
|
*/
|
|
37
|
-
export declare const leftToDoByProductionTask: (marks: ModelMarks[], myQuantity: number
|
|
37
|
+
export declare const leftToDoByProductionTask: (marks: ModelMarks[], myQuantity: number) => number;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @param startDate
|
package/dist/utils/methods.js
CHANGED
|
@@ -106,12 +106,10 @@ function isThisExclusionDesignation(designation, isProduct = false) {
|
|
|
106
106
|
* @returns
|
|
107
107
|
* Функция подсчитывает необходимый остаток по ПЗ
|
|
108
108
|
*/
|
|
109
|
-
const leftToDoByProductionTask = (marks, myQuantity
|
|
109
|
+
const leftToDoByProductionTask = (marks, myQuantity) => {
|
|
110
110
|
if (!marks)
|
|
111
111
|
return myQuantity;
|
|
112
|
-
const createByMarks = marks.reduce((curr, mark) => mark.
|
|
113
|
-
? curr + Number(mark.kol)
|
|
114
|
-
: curr, 0);
|
|
112
|
+
const createByMarks = marks.reduce((curr, mark) => curr + Number(mark.kol), 0);
|
|
115
113
|
return moreMinusNum(myQuantity - createByMarks);
|
|
116
114
|
};
|
|
117
115
|
exports.leftToDoByProductionTask = leftToDoByProductionTask;
|
|
@@ -29,6 +29,7 @@ export declare class OperationTime {
|
|
|
29
29
|
private timeKolvo;
|
|
30
30
|
}
|
|
31
31
|
export declare function worksHors(operation: any, kolvo_all?: number): number;
|
|
32
|
+
export declare const clculateOperationsTime: (operations: any[], quantity?: number) => number;
|
|
32
33
|
/**
|
|
33
34
|
* Функция получает время выполнения
|
|
34
35
|
* @param operation
|
package/dist/utils/operation.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.calculatePercentWork = exports.precentWorksAsOperation = exports.statusWorkings = exports.OperationTime = exports.useCalcParametersCbedProductMinute = exports.useCalcParametersCbedProduct = exports.useCalcParametersDetals = void 0;
|
|
12
|
+
exports.calculatePercentWork = exports.precentWorksAsOperation = exports.statusWorkings = exports.clculateOperationsTime = exports.OperationTime = exports.useCalcParametersCbedProductMinute = exports.useCalcParametersCbedProduct = exports.useCalcParametersDetals = void 0;
|
|
13
13
|
exports.getStatus = getStatus;
|
|
14
14
|
exports.worksHors = worksHors;
|
|
15
15
|
exports.workingForMarks = workingForMarks;
|
|
@@ -128,6 +128,13 @@ function worksHors(operation, kolvo_all = 1) {
|
|
|
128
128
|
const ot = new OperationTime(operation, kolvo_all);
|
|
129
129
|
return ot.count;
|
|
130
130
|
}
|
|
131
|
+
const clculateOperationsTime = (operations, quantity = 1) => operations.reduce((summ, operation) => {
|
|
132
|
+
const currentOperationTime = new OperationTime(operation, quantity);
|
|
133
|
+
return (currentOperationTime === null || currentOperationTime === void 0 ? void 0 : currentOperationTime.count)
|
|
134
|
+
? summ + (currentOperationTime === null || currentOperationTime === void 0 ? void 0 : currentOperationTime.count)
|
|
135
|
+
: summ;
|
|
136
|
+
}, 0);
|
|
137
|
+
exports.clculateOperationsTime = clculateOperationsTime;
|
|
131
138
|
/**
|
|
132
139
|
* Функция получает время выполнения
|
|
133
140
|
* @param operation
|