add mean time

This commit is contained in:
Julien Calixte
2026-01-02 00:39:09 +01:00
parent bb17cd0011
commit e187e70f61
2 changed files with 46 additions and 16 deletions

View File

@@ -20,6 +20,21 @@ const orders = ref(
)
)
const levelingPlanning: ProductType[] = [
'shirt',
'shirt',
'jeans',
'shoes',
'hat',
'shirt',
'shirt',
'jeans',
'shoes',
'hat',
'shirt',
'jeans'
]
const orderIndex = (dayIndex: number, hourIndex: number) => {
return dayIndex * hoursCount + hourIndex
}
@@ -86,6 +101,10 @@ const createdAt = new Date('2026-01-01').toLocaleDateString(undefined, {
<button class="button-outline" @click="heijunkaStore.reset()">
reset
</button>
<button class="button-outline" @click="orders = levelingPlanning">
levelling
</button>
</section>
<section class="factory">
<h2>Factory</h2>
@@ -286,6 +305,10 @@ const createdAt = new Date('2026-01-01').toLocaleDateString(undefined, {
</ol>
</div>
</section>
<section class="dashboard">
Mean lead time: {{ heijunkaStore.meanLeadTime }}
</section>
</div>
</article>
</template>