Selaa lähdekoodia

Align demo floor labels with numeric 1/F-4/F production floors.

debrand
kelvin.yau 3 viikkoa sitten
vanhempi
commit
cc14aae1b1
3 muutettua tiedostoa jossa 17 lisäystä ja 17 poistoa
  1. +1
    -1
      src/components/JoWorkbench/newJobPickExecution.tsx
  2. +1
    -1
      src/components/Jodetail/newJobPickExecution.tsx
  3. +15
    -15
      src/config/demoFloors.ts

+ 1
- 1
src/components/JoWorkbench/newJobPickExecution.tsx Näytä tiedosto

@@ -1027,7 +1027,7 @@ const JobPickExecution: React.FC<Props> = ({ filterArgs, onBackToList, printerCo
return head; return head;
}; };


// B/F, then D/F, then A/F.
// 4/F, then 3/F, then 2/F.
const floorSortOrder = (floor: string): number => { const floorSortOrder = (floor: string): number => {
if (floor === FLOOR_B_KEY) return 4; if (floor === FLOOR_B_KEY) return 4;
if (floor === FLOOR_D_KEY) return 3; if (floor === FLOOR_D_KEY) return 3;


+ 1
- 1
src/components/Jodetail/newJobPickExecution.tsx Näytä tiedosto

@@ -694,7 +694,7 @@ const JobPickExecution: React.FC<Props> = ({ filterArgs, onBackToList }) => {
return head; return head;
}; };


// B/F, then D/F, then A/F.
// 4/F, then 3/F, then 2/F.
const floorSortOrder = (floor: string): number => { const floorSortOrder = (floor: string): number => {
if (floor === FLOOR_B_KEY) return 4; if (floor === FLOOR_B_KEY) return 4;
if (floor === FLOOR_D_KEY) return 3; if (floor === FLOOR_D_KEY) return 3;


+ 15
- 15
src/config/demoFloors.ts Näytä tiedosto

@@ -1,19 +1,19 @@
/** Floor and bin labels stored in the anonymized demo database. */
export const FLOOR_A = "A/F";
export const FLOOR_A_KEY = "AF";
export const FLOOR_B = "B/F";
export const FLOOR_B_KEY = "BF";
export const FLOOR_C = "C/F";
export const FLOOR_C_KEY = "CF";
export const FLOOR_D = "D/F";
export const FLOOR_D_KEY = "DF";
/** Floor and bin labels kept from the production copy. */
export const FLOOR_A = "2/F";
export const FLOOR_A_KEY = "2F";
export const FLOOR_B = "4/F";
export const FLOOR_B_KEY = "4F";
export const FLOOR_C = "1/F";
export const FLOOR_C_KEY = "1F";
export const FLOOR_D = "3/F";
export const FLOOR_D_KEY = "3F";


export const LOC_HOLD = "LOC-HOLD";
export const LOC_WIP = "LOC-WIP";
export const LOC_HOLD = "2F-W202-01-00";
export const LOC_WIP = "2F-W200-#A-00";
export const LOC_PREFIX = "LOC-"; export const LOC_PREFIX = "LOC-";


export const LABEL_A = "LABEL-A";
export const LABEL_B = "LABEL-B";
export const LABEL_A = "Label機 2F A+B";
export const LABEL_B = "Label機 4F 乾貨 C, D";


export const SETTING_SUPPLIERS_A = "DO.floor.suppliers.AF";
export const SETTING_SUPPLIERS_B = "DO.floor.suppliers.BF";
export const SETTING_SUPPLIERS_A = "DO.floor.suppliers.2F";
export const SETTING_SUPPLIERS_B = "DO.floor.suppliers.4F";

Ladataan…
Peruuta
Tallenna