Express router for sewing analytics related routes
Methods
(static) get/analytics/sewing/dateWise/efficiency/location/:location() → {Array.<batchEfficiencyOutPutQuantityDetails>}
Route to fetch date wise efficiency for location
Parameters:
| Name | Type | Description |
|---|---|---|
req.param.location |
String | The location |
req.query.batchNumber |
String | null | The batch number associated with location |
req.query.startDate |
String | The start date to fetch efficiency details in format of yyyymmdd |
req.query.endDate |
String | null | The end date to fetch efficiency details in format of yyyymmdd |
Returns:
The list of batch efficiency and output quantity in location module:routers/v7/analytics/sewing~batchEfficiencyOutPutQuantityDetails
- Type
- Array.<batchEfficiencyOutPutQuantityDetails>
(static) get/analytics/sewing/defects/location/:location() → {Array.<DHUDefectDetails>}
Route to return defect details based on location, batch, date and each hour within the date
Parameters:
| Name | Type | Description |
|---|---|---|
req.param.location |
String | The location |
req.query.batchNumber |
String | null | The batch number in location |
req.query.startDate |
String | The start date in format of yyyymmdd |
req.query.endDate |
String | null | The end date in format of yyyymmdd |
Returns:
DHUDefectDetails The list of defect details based on location module:routers/v7/analytics/sewing~DHUDefectDetails
- Type
- Array.<DHUDefectDetails>
(static) get/analytics/sewing/overView() → {Array.<locationOverViewDetails>}
Route to fetch DHU and Efficiency overview
Parameters:
| Name | Type | Description |
|---|---|---|
req.query.startDate |
String | The start date to fetch overView details in format of yyyymmdd |
req.query.endDate |
String | null | The end date to fetch overView details in format of yyyymmdd |
Returns:
The list of batch overView details combination of location and batch module:routers/v7/analytics/sewing~locationOverViewDetails
- Type
- Array.<locationOverViewDetails>
Type Definitions
batchEfficiencyOutPutQuantityDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
batchEfficiencyOutPutQuantityDetails.date |
String | The date outPut quantity |
batchEfficiencyOutPutQuantityDetails.batchNumber |
String | The batch number for mentioned location |
batchEfficiencyOutPutQuantityDetails.ocNumber |
String | The oc number |
batchEfficiencyOutPutQuantityDetails.productCode |
String | The product code associated with oc number |
batchEfficiencyOutPutQuantityDetails.productDescription |
String | The product description associated with product |
batchEfficiencyOutPutQuantityDetails.batchTargetQuantity |
number | The batch target quantity |
batchEfficiencyOutPutQuantityDetails.totalOutputQuantity |
number | The total output quantity |
batchEfficiencyOutPutQuantityDetails.efficiency |
number | The efficiency in combination of oc number, batch number and date |
batchEfficiencyOutPutQuantityDetails.sam |
number | The sam for product |
batchEfficiencyOutPutQuantityDetails.hourlyDetails |
Array.<hourlyDetails> | The batch hourly details module:routers/v7/analytics/sewing~hourlyDetails |
defectDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
defectDetails.defectType |
String | The hourly defect type |
defectDetails.quantity |
String | The hourly defect type quantity |
DHUDefectDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
DHUDefectDetails.date |
String | The date of defect details |
DHUDefectDetails.batchNumber |
String | The batch for mentioned location |
DHUDefectDetails.ocNumber |
String | The oc number |
DHUDefectDetails.productCode |
String | The product code associated with oc number |
DHUDefectDetails.productDescription |
String | The product description associated with product |
DHUDefectDetails.totalPassedQuantity |
number | The total passed quantity |
DHUDefectDetails.totalReworkedQuantity |
number | The total rework quantity |
DHUDefectDetails.totalRejectedQuantity |
number | The total rejected quantity |
ListOfBatchEfficiency.hourDetails |
Array.<hourDetails> | The defect hourly details module:routers/v7/analytics/sewing~hourDetails |
hourDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
hourDetails.hour |
String | The hour in 24 hours format |
hourDetails.hourEfficiency |
number | The hour efficiency |
hourDetails.passedQuantiy |
String | The hourly passed quantity |
hourDetails.reworkedQuantity |
String | The hourly rework quantity |
hourDetails.rejectedQuantity |
number | The hourly rejected quantity |
hourDetails.sewingSamProduced |
number | The sewing sam produced |
hourDetails.sewingMachineMinutes |
number | The sewing machine minutes |
hourDetails.defectDetails |
Array.<defectDetails> | The hourly defect details module:routers/v7/analytics/sewing~hourDetails |
hourlyDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
hourlyDetails.startTime |
String | The start time |
hourlyDetails.endTime |
String | The end time |
hourlyDetails.outputQuantity |
number | The output quantity between start and end time |
hourlyDetails.hourEfficiency |
number | The efficiency between start and end time |
hourlyDetails.sewingSamProduced |
number | The sewing sam produced |
hourlyDetails.sewingMachineMinutes |
number | The sewing machine minutes |
locationOverViewDetails
Type:
- Object
Properties:
| Name | Type | Description |
|---|---|---|
locationOverViewDetails.location |
String | The location |
locationOverViewDetails.locationWorkDays |
number | The location work days |
locationOverViewDetails.batchUnique |
number | The batch unique number |
locationOverViewDetails.batchNumber |
String | The batch number |
locationOverViewDetails.batchTargetQuantity |
number | The batch target quantity |
locationOverViewDetails.batchWorkDays |
number | The batch work days |
locationOverViewDetails.outputQuantity |
number | The batch output quantity |
locationOverViewDetails.sewingSamProduced |
number | The sewing sam produced |
locationOverViewDetails.sewingMachineMinutes |
number | The sewing machine minutes |
locationOverViewDetails.globalSamProduced |
number | The global sam produced |
locationOverViewDetails.globalMachineMinutes |
number | The global machines |
locationOverViewDetails.totalWorkStation |
number | The total workstations |
locationOverViewDetails.numberOfMachines |
number | The number of machines |
locationOverViewDetails.DHUPassedQuantity |
number | The DHU passed quantity |
locationOverViewDetails.DHUReworkedQuantity |
number | The DHU reWork quantity |
locationOverViewDetails.DHURejectedQuantity |
number | The DHU rejected quantity |