Feat: presentation des hightlights

This commit is contained in:
Bertrand Benjamin 2021-08-11 18:46:10 +02:00
parent c2cc0d0e9c
commit 803c695909
3 changed files with 48 additions and 21 deletions

View File

@ -116,8 +116,6 @@ export default {
box-shadow: 2px 2px 5px gray; box-shadow: 2px 2px 5px gray;
border-left: 1rem solid black; border-left: 1rem solid black;
align-items: center;
justify-content: space-between;
width: 100%; width: 100%;
border-radius: 10px; border-radius: 10px;
} }

View File

@ -1,41 +1,44 @@
<template> <template>
<div id="hightlights"> <div class="hightlights">
<div class="hightlight"> <div class="hightlight">
<ul> <ul>
<li>{{ ca }}</li> <li>{{ ca }} </li>
<li>CA</li> <li>CA</li>
</ul> </ul>
</div> </div>
<div class="hightlight"> <div class="hightlight">
<ul> <ul>
<li>{{ caMean }}</li> <li>{{ caMean }} </li>
<li>CA moyen</li> <li>CA moyen</li>
</ul> </ul>
</div> </div>
<!--
<div class="hightlight"> <div class="hightlight">
<ul> <ul>
<li>{{ caTheo }}</li> <li>{{ caTheo }}</li>
<li>CA des séances effectuées</li> <li>CA des séances effectuées</li>
</ul> </ul>
</div> </div>
-->
<div class="hightlight"> <div class="hightlight">
<ul> <ul>
<li>{{ caTheo - ca }}</li> <li>{{ caUnFactured }} </li>
<li>Non facturé</li> <li>Non facturé</li>
</ul> </ul>
</div> </div>
<div class="hightlight"> <div class="hightlight">
<ul> <ul>
<li>{{ remuneration }}</li> <li>{{ remuneration }} </li>
<li>Rémunération</li> <li>Rémunération</li>
</ul> </ul>
</div> </div>
<div class="hightlight"> <div class="hightlight">
<ul> <ul>
<li>{{ remunerationMean }}</li> <li>{{ remunerationMean }} </li>
<li>Rémunération moyenne</li> <li>Rémunération moyenne</li>
</ul> </ul>
</div> </div>
<!--
<div class="hightlight"> <div class="hightlight">
<ul> <ul>
<li>{{ retrocession }}</li> <li>{{ retrocession }}</li>
@ -60,9 +63,10 @@
<li> CA pour la partie perso</li> <li> CA pour la partie perso</li>
</ul> </ul>
</div> </div>
-->
<div class="hightlight"> <div class="hightlight">
<ul> <ul>
<li>{{ caPersoUntouch }}</li> <li>{{ caPersoUntouch }} </li>
<li> CA perso non utilisé pour se rémunérer</li> <li> CA perso non utilisé pour se rémunérer</li>
</ul> </ul>
</div> </div>
@ -97,16 +101,17 @@ export default {
...mapGetters('travail', { ...mapGetters('travail', {
months: "months", months: "months",
}), }),
ca: function () {return caTotal(this.months)}, ca: function () {return caTotal(this.months).toLocaleString()},
caMean: function () {return caMean(this.months)}, caMean: function () {return caMean(this.months).toLocaleString()},
caTheo: function () {return caTheo(this.months)}, caTheo: function () {return caTheo(this.months).toLocaleString()},
remuneration: function () {return remuneration(this.months)}, caUnFactured: function () {return (caTheo(this.months) - caTotal(this.months)).toLocaleString()},
remunerationMean: function () {return remunerationMean(this.months)}, remuneration: function () {return remuneration(this.months).toLocaleString()},
retrocession: function () {return retrocession(this.months)}, remunerationMean: function () {return remunerationMean(this.months).toLocaleString()},
retrocessionMean: function () {return retrocessionMean(this.months)}, retrocession: function () {return retrocession(this.months).toLocaleString()},
caPro: function () {return caPro(this.months, this.caProPercentage)}, retrocessionMean: function () {return retrocessionMean(this.months).toLocaleString()},
caPerso: function () {return caPerso(this.months, this.caProPercentage)}, caPro: function () {return caPro(this.months, this.caProPercentage).toLocaleString()},
caPersoUntouch: function () {return caPersoUntouch(this.months, this.caProPercentage)}, caPerso: function () {return caPerso(this.months, this.caProPercentage).toLocaleString()},
caPersoUntouch: function () {return caPersoUntouch(this.months, this.caProPercentage).toLocaleString()},
}, },
mounted () { mounted () {
@ -117,4 +122,30 @@ export default {
</script> </script>
<style scoped> <style scoped>
.hightlights {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 20px;
}
.hightlight > ul{
list-style-type: none;
display: flex;
flex-flow: column wrap;
box-shadow: 2px 2px 5px gray;
border-left: 1rem solid black;
border-radius: 10px;
padding-inline-start: 0;
}
.hightlight > ul > li {
margin: 3px;
flex-direction: column-reverse;
}
.hightlight > ul :first-child{
font-size: 3rem;
font-weight: bold;
text-align: center;
}
.hightlight > ul :last-child{
text-align: end;
}
</style> </style>

View File

@ -1,11 +1,9 @@
<template> <template>
<h1>Sous de Margot</h1>
<section id="selector"> <section id="selector">
<month-selector/> <month-selector/>
</section> </section>
<div id="content"> <div id="content">
<section id="months"> <section id="months">
<h2> Mois </h2>
<create-month/> <create-month/>
<months-list/> <months-list/>
</section> </section>