FPSMS-frontend
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

98 строки
2.6 KiB

  1. export interface BomUomLabel {
  2. uomId?: number | null;
  3. code?: string | null;
  4. udfudesc?: string | null;
  5. label?: string | null;
  6. }
  7. export interface BomUomQtyValue {
  8. qty?: number | string | null;
  9. uom?: BomUomLabel | null;
  10. }
  11. export interface BomMaterialUomOption {
  12. uomId: number;
  13. label: string;
  14. code?: string | null;
  15. }
  16. export interface BomHeaderUomAlignmentPreview {
  17. bomId: number;
  18. bomCode?: string | null;
  19. bomName?: string | null;
  20. itemId?: number | null;
  21. canApply: boolean;
  22. skipReason?: string | null;
  23. beforeOutputQty?: number | string | null;
  24. afterOutputQty?: number | string | null;
  25. beforeOutputQtyStock?: number | string | null;
  26. afterOutputQtyStock?: number | string | null;
  27. beforeUom?: BomUomLabel | null;
  28. afterUom?: BomUomLabel | null;
  29. beforeBaseUom?: BomUomLabel | null;
  30. afterBaseUom?: BomUomLabel | null;
  31. beforeStockUom?: BomUomLabel | null;
  32. afterStockUom?: BomUomLabel | null;
  33. }
  34. export interface BomMaterialUomAlignmentPreview {
  35. bomId: number;
  36. bomCode?: string | null;
  37. bomName?: string | null;
  38. bomMaterialId: number;
  39. itemId?: number | null;
  40. itemCode?: string | null;
  41. itemName?: string | null;
  42. canApply: boolean;
  43. skipReason?: string | null;
  44. warnings?: string[];
  45. beforeSaleQty?: BomUomQtyValue | null;
  46. afterSaleQty?: BomUomQtyValue | null;
  47. beforeStockQty?: BomUomQtyValue | null;
  48. afterStockQty?: BomUomQtyValue | null;
  49. beforeBaseQty?: BomUomQtyValue | null;
  50. afterBaseQty?: BomUomQtyValue | null;
  51. beforeRecipeQty?: BomUomQtyValue | null;
  52. afterRecipeQty?: BomUomQtyValue | null;
  53. availableRecipeUoms?: BomMaterialUomOption[];
  54. suggestedRecipeUomId?: number | null;
  55. }
  56. export interface BomUomAlignmentSkipped {
  57. bomId?: number | null;
  58. bomCode?: string | null;
  59. bomMaterialId?: number | null;
  60. itemCode?: string | null;
  61. reason: string;
  62. }
  63. export interface BomUomAlignmentPreviewResponse {
  64. headers: BomHeaderUomAlignmentPreview[];
  65. materials: BomMaterialUomAlignmentPreview[];
  66. skipped: BomUomAlignmentSkipped[];
  67. }
  68. export type BomMaterialQtyAnchor = "SALE_QTY" | "STOCK_QTY" | "BASE_QTY" | "RECIPE_QTY";
  69. export interface BomMaterialQtyRecalculateResponse {
  70. saleQty?: number | string | null;
  71. stockQty?: number | string | null;
  72. baseQty?: number | string | null;
  73. saleUom?: string | null;
  74. stockUom?: string | null;
  75. baseUom?: string | null;
  76. }
  77. export interface BomHeaderOutputQtyRecalculateResponse {
  78. stockQty?: number | string | null;
  79. baseQty?: number | string | null;
  80. baseUom?: string | null;
  81. baseUomId?: number | null;
  82. }
  83. export interface BomUomAlignmentApplyResponse {
  84. headersUpdated: number;
  85. materialsUpdated: number;
  86. message?: string | null;
  87. }