From d78550904d6930a54b90b17ce69ce1c23f6938fc Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Fri, 2 Jan 2026 14:34:55 +0100 Subject: [PATCH] add some notes in article --- src/AppHeijunka.vue | 397 +++++++++++++++++++++++--------------------- 1 file changed, 212 insertions(+), 185 deletions(-) diff --git a/src/AppHeijunka.vue b/src/AppHeijunka.vue index 930bff1..33b26ce 100644 --- a/src/AppHeijunka.vue +++ b/src/AppHeijunka.vue @@ -19,8 +19,6 @@ import OrderItem from '@/modules/heijkunka/assets/OrderItem.vue' const days = Array.from({ length: NUMBER_OF_DAYS }, (_, i) => i + 1) const hours = Array.from({ length: NUMBER_OF_HOURS_PER_DAY }, (_, i) => i + 1) -const hoursCount = hours.length - const orders = ref( Array.from( { length: days.length * hours.length }, @@ -59,7 +57,7 @@ const levelingPlanning: ProductType[] = [ ] const orderIndex = (dayIndex: number, hourIndex: number) => { - return dayIndex * hoursCount + hourIndex + return dayIndex * hours.length + hourIndex } const heijunkaStore = useHeijunkaStore() @@ -77,77 +75,84 @@ const createdAt = new Date('2026-01-01').toLocaleDateString(undefined, {

{{ createdAt }}

-
-

- You're selling shirts, jeans and shoes in a little town that is quite - specific: every hour someone get to your shop and buys 1 item and they - won't leave until they are satisfied! -

-

- You know, from your years of experience, that in 3 days, you sell - approximately -

+

+ You're selling shirts, jeans and shoes in a little town that is quite + specific: every hour someone get to your shop and buys 1 item and they + won't leave until they are satisfied! +

+

+ You know, from your years of experience, that in 3 days, you sell + approximately +

+
    -
  • 5 shirts
  • -
  • 3 jeans
  • -
  • 2 pairs of shoes
  • -
  • 2 hats
  • +
  • 5 shirts
  • +
  • 3 jeans
  • +
  • 2 pairs of shoes
  • +
  • 2 hats
-

- As there are 4 hours of production per day, you must produce 4 products - per day to meet the 12 orders every 3 days. At the end, you produce 1 - product every hour. -

-
-

Factory

+
    +
  • +
  • +
  • +
  • +
+
+

+ As there are 4 hours of production per day, you must produce 4 products + per day to meet the 12 orders every 3 days. At the end, you produce 1 + product every hour. +

+
+

Factory

- - - - - - - - - - - - - - - - -
DayHour 1Hour 2Hour 3Hour 4
Day {{ day }} - -
-
+ + + + + + + + + + + + + + + + +
DayHour 1Hour 2Hour 3Hour 4
Day {{ day }} + +
+ -
- - - + + - - -
- -
-
+ +
- - day: {{ heijunkaStore.currentDay }} | current hour: - {{ heijunkaStore.meta.currentHour }} hours - +
- -
- Mean lead time: {{ heijunkaStore.meanLeadTime }} -
- Orders made: {{ heijunkaStore.orders.length }} -
- - - -
-
-

Inventory

- -
- -
-
- -
-
- -
-
- -
-
-
-

Orders

-
    -
  1. - - - - - - - {{ order.product }} | {{ order.leadTime }} - -
  2. -
-
-
- -
- Mean lead time: {{ heijunkaStore.meanLeadTime }} -
- Orders made: {{ heijunkaStore.orders.length }} -
- -

- The longer the lead time is, the longer it takes to have return on - investment. You already paid for the raw material, the workforce, the - machines but until the client receives the product you won't get paid. -

-

- The more stock there is, the more latent payments there are and the more - paymeents are still waiting, the more you need to be good at planning - batches. -

-

- Producing a bit of everything with small batches is the way to go and - that's the core of Heijunka -

-

What heijunka needs: SMED

-

- We didn't talk here about how we manage products that need different - time to be produced. -

+ +
+ + day: {{ heijunkaStore.currentDay }} | current hour: + {{ heijunkaStore.meta.currentHour }} hours +
+ +
+ Mean lead time: {{ heijunkaStore.meanLeadTime }} +
+ Orders made: {{ heijunkaStore.orders.length }} +
+ + + +
+
+

Inventory

+ +
+ +
+
+ +
+
+ +
+
+ +
+
+
+

Orders

+
    +
  1. + + + + + + + {{ order.product }} | {{ order.leadTime }} + +
  2. +
+
+
+ +
+ Mean lead time: {{ heijunkaStore.meanLeadTime }} +
+ Orders made: {{ heijunkaStore.orders.length }} +
+ +

+ The longer the lead time is, the longer it takes to have return on + investment. You already paid for the raw material, the workforce, the + machines but until the client receives the product you won't get paid. +

+

Batching is more convenient

+

+ As the raw materials are not the same, you must plan . Making big batches + makes the production easier: you add stock so you. +

+

+ But here comes the bullwhip effect: if you plan with margin, your + suppliers do it too, with margin. These margins add up and even a slight + change in priority demands a high change in the supply network. +

+

+ The more stock there is, the more latent payments there are and the more + paymeents are still waiting, the more you need to be good at planning + batches. +

+

+ So producing a bit of everything with small batches is the way to + go and that's the core of Heijunka. +

+

+ But heijunka needs conditions. First: + SMED +

+

+ We didn't talk here about how we manage products that need different time + to be produced. There are multiple difficulties when we try to level the + production: by doing everything every day you must have much more + flexibility in + what you can make per day. +

+

Heijunka is fun

+

There's no ///

@@ -294,6 +313,14 @@ main { gap: 1rem; } +.columns { + display: flex; + + li { + line-height: 1.5rem; + } +} + li { display: flex; gap: 1rem;