diff --git a/src/AppHeijunka.vue b/src/AppHeijunka.vue index 27442bb..6c1e239 100644 --- a/src/AppHeijunka.vue +++ b/src/AppHeijunka.vue @@ -20,6 +20,21 @@ const orders = ref( ) ) +const batchPlanning: ProductType[] = [ + 'shirt', + 'shirt', + 'shirt', + 'shirt', + 'shirt', + 'jeans', + 'jeans', + 'jeans', + 'shoes', + 'shoes', + 'hat', + 'hat' +] + const levelingPlanning: ProductType[] = [ 'shirt', 'shirt', @@ -57,11 +72,12 @@ const createdAt = new Date('2026-01-01').toLocaleDateString(undefined, {

You're selling shirts, jeans and shoes in a little town that is quite - specific: every day someone get to your shop and buys 1 item. + 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 shirts sell twice as much - as + You know, from your years of experience, that in 3 days, you sell + approximately 5 shirts, 3 jeans, 2 pairs of shoes and 2 hats.

+

Factory

- + + + + + + + + + + + + + + + + +
DayHour 1Hour 2Hour 3Hour 4
Day {{ day }} + +
+
+ +
+ Mean lead time: {{ heijunkaStore.meanLeadTime }}
@@ -309,6 +342,26 @@ const createdAt = new Date('2026-01-01').toLocaleDateString(undefined, {
Mean lead time: {{ heijunkaStore.meanLeadTime }}
+ +

+ The longer the lead time is, the longer it takes to have return on + investment. You 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. +

@@ -329,12 +382,6 @@ li { align-items: center; } -.day-production-plan { - display: flex; - gap: 0.5rem; - align-items: center; -} - .shop { display: flex; diff --git a/src/modules/heijkunka/heijunka-store.ts b/src/modules/heijkunka/heijunka-store.ts index 5bc748f..553469f 100644 --- a/src/modules/heijkunka/heijunka-store.ts +++ b/src/modules/heijkunka/heijunka-store.ts @@ -153,11 +153,6 @@ export const useHeijunkaStore = defineStore('heijunka', { Math.ceil(state.meta.currentHour / NUMBER_OF_HOURS_PER_DAY), gameEnded: (state) => state.meta.currentHour >= NUMBER_OF_DAYS * NUMBER_OF_HOURS_PER_DAY, - meanLeadTime: (state) => - getMean( - state.orders - .filter((o) => o.status === 'received') - .map((o) => o.leadTime) - ) + meanLeadTime: (state) => getMean(state.orders.map((o) => o.leadTime)) } })