Spaces:
Running
Running
// ================================================================= | |
// FACTORY CONFIGURATION FILE - v2.0 | |
// ================================================================= | |
// Real-world data model for Win Super Power Antenna factory. | |
// ================================================================= | |
export const MATERIALS_CONFIG = [ | |
// Frame Materials | |
{ name: "5/32 x 3/4 Tube", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 }, | |
{ name: "1/8 x 1/2 Tube", unit: "pcs", maxStock: 4000, currentStock: 4000, costPerUnit: 0, reorderPoint: 500 }, | |
{ name: "1/8 x 3/4 Tube", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 }, | |
{ name: "End Knob Round", unit: "pcs", maxStock: 3000, currentStock: 3000, costPerUnit: 0, reorderPoint: 300 }, | |
{ name: "End Knob Square 1/2x1/2", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 }, | |
{ name: "Dipole (CI Cup)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "U-Clip", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "12cm Round Tube 7/8 MF", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 }, | |
{ name: "15cm Round Tube 5/8 MF", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "5/8 x 4 CSK Screw", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 }, | |
{ name: "3/8 x 4 Screw", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 }, | |
// Wire/Connector Materials | |
{ name: "16 1/2 Ygr Wire", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "F-Connector Male (4005)", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 }, | |
{ name: "F-Connector Female (2002)", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 }, | |
// Booster Materials | |
{ name: "Macking Coil", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Coil 28gsm (25cm)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Coil 26gsm (16cm)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Coil 25gsm (36cm)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Resistor 1k", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "Resistor 100-ohm", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "Resistor 68k", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "Resistor 2k", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "Resistor 150-R", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "Resistor 10k", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "LED Multicolour", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "LED 5mm", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "PF 12", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "PF 39", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "PF 102 Indian", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "PF 102 Normal", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "Capacitor 25v 100uF", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Capacitor 25v 220uF", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Transistor (2355)", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 }, | |
// Power Supply Materials | |
{ name: "Plastic Box (Power)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Transformer", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "IN4007 Diode", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 }, | |
{ name: "5C 2V Wire 3-yard", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "4-Antenna Jack", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "AC Cord", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
// Packing Materials | |
{ name: "Packing Bag", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Warranty Card", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Round Sticker", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Box Plastic Cover", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }, | |
{ name: "Box Sticker", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 } | |
]; | |
export const RECIPES_CONFIG = { | |
// SUB-ASSEMBLIES | |
"Antenna Frame Assembly": { | |
"5/32 x 3/4 Tube": 1, "1/8 x 1/2 Tube": 8, "1/8 x 3/4 Tube": 2, "End Knob Round": 6, "End Knob Square 1/2x1/2": 2, | |
"Dipole (CI Cup)": 1, "U-Clip": 1, "12cm Round Tube 7/8 MF": 2, "15cm Round Tube 5/8 MF": 1, "5/8 x 4 CSK Screw": 2 | |
}, | |
"Booster Assembly": { | |
"Macking Coil": 1, "Coil 28gsm (25cm)": 1, "Coil 26gsm (16cm)": 2, "Resistor 1k": 1, "LED Multicolour": 1, "PF 12": 1, "PF 39": 2, "PF 102 Indian": 1, "PF 102 Normal": 2, | |
"Resistor 100-ohm": 1, "Resistor 68k": 2, "Resistor 2k": 1, "Resistor 150-R": 1, "Capacitor 25v 100uF": 1, "F-Connector Female (2002)": 1, "Transistor (2355)": 2 | |
}, | |
"Power Supply Assembly": { | |
"Plastic Box (Power)": 1, "Transformer": 1, "IN4007 Diode": 2, "Coil 25gsm (36cm)": 1, "5C 2V Wire 3-yard": 1, "4-Antenna Jack": 1, "F-Connector Female (2002)": 1, | |
"Resistor 10k": 1, "PF 102 Normal": 1, "Capacitor 25v 220uF": 1, "3/8 x 4 Screw": 2, "LED 5mm": 1, "AC Cord": 1 | |
}, | |
"Wire Assembly": { | |
"16 1/2 Ygr Wire": 1, "F-Connector Male (4005)": 2 | |
}, | |
"Packaging Set": { | |
"Packing Bag": 1, "Warranty Card": 1, "Round Sticker": 1, "Box Plastic Cover": 1, "Box Sticker": 1 | |
}, | |
// FINAL PRODUCT | |
"COMPLETE ANTENNA UNIT": { | |
// This recipe consumes the sub-assemblies. The app logic will need to handle this hierarchy. | |
// For now, list the raw materials directly. A future enhancement will be to nest recipes. | |
"5/32 x 3/4 Tube": 1, "1/8 x 1/2 Tube": 8, "1/8 x 3/4 Tube": 2, "End Knob Round": 6, "End Knob Square 1/2x1/2": 2, | |
"Dipole (CI Cup)": 1, "U-Clip": 1, "12cm Round Tube 7/8 MF": 2, "15cm Round Tube 5/8 MF": 1, "5/8 x 4 CSK Screw": 2, | |
"Macking Coil": 1, "Coil 28gsm (25cm)": 1, "Coil 26gsm (16cm)": 2, "Resistor 1k": 1, "LED Multicolour": 1, "PF 12": 1, "PF 39": 2, "PF 102 Indian": 1, "PF 102 Normal": 3, // 2 for booster + 1 for power | |
"Resistor 100-ohm": 1, "Resistor 68k": 2, "Resistor 2k": 1, "Resistor 150-R": 1, "Capacitor 25v 100uF": 1, "F-Connector Female (2002)": 2, // 1 for booster + 1 for power | |
"Transistor (2355)": 2, | |
"Plastic Box (Power)": 1, "Transformer": 1, "IN4007 Diode": 2, "Coil 25gsm (36cm)": 1, "5C 2V Wire 3-yard": 1, "4-Antenna Jack": 1, | |
"Resistor 10k": 1, "Capacitor 25v 220uF": 1, "3/8 x 4 Screw": 2, "LED 5mm": 1, "AC Cord": 1, | |
"16 1/2 Ygr Wire": 1, "F-Connector Male (4005)": 2, | |
"Packing Bag": 1, "Warranty Card": 1, "Round Sticker": 1, "Box Plastic Cover": 1, "Box Sticker": 1 | |
} | |
}; |