refactor(quality): more changes to the system to perfect it
This commit is contained in:
@@ -312,9 +312,11 @@ export default function QualityRequest() {
|
||||
<SelectItem value="return to warehouse">
|
||||
Return to Warehouse
|
||||
</SelectItem>
|
||||
<SelectItem value="rework">Rework</SelectItem>
|
||||
<SelectItem value="grind">Grind</SelectItem>
|
||||
<SelectItem value="scrap">Scrap</SelectItem>
|
||||
<SelectItem value="send to rework">
|
||||
Send to Rework
|
||||
</SelectItem>
|
||||
<SelectItem value="send to grind">Send to Grind</SelectItem>
|
||||
<SelectItem value="send to scrap">Send to Scrap</SelectItem>
|
||||
</SelectGroup>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
@@ -410,7 +412,7 @@ export default function QualityRequest() {
|
||||
);
|
||||
},
|
||||
}),
|
||||
columnHelper.accessor("palletComplete", {
|
||||
columnHelper.accessor("canceled", {
|
||||
header: ({ column }) => {
|
||||
return (
|
||||
<Button
|
||||
|
||||
@@ -13,7 +13,12 @@ export const addNewPallet = async (data: any) => {
|
||||
* Post new pallets
|
||||
*/
|
||||
|
||||
const returnLabels = ["return to warehouse", "rework", "grind", "scrap"];
|
||||
const returnLabels = [
|
||||
"return to warehouse",
|
||||
"send to rework",
|
||||
"send to grind",
|
||||
"send to scrap",
|
||||
];
|
||||
|
||||
console.log(data, returnLabels.includes(data.palletStatusText));
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ export const qualityCycle = async () => {
|
||||
: lstQData[i].durationToMove,
|
||||
// how long did it take warehouse to move the pallet back again
|
||||
returnDurationToInspect:
|
||||
lstQData[i].palletStatus === 7
|
||||
lstQData[i].qualityDurationToInspect > 0
|
||||
? differenceInMinutes(
|
||||
new Date(Date.now()),
|
||||
lstQData[i].upd_date,
|
||||
|
||||
Reference in New Issue
Block a user