|
|
|
|
|
|
|
|
<div id="app-report-index"> |
|
|
<div id="app-report-index"> |
|
|
<div id="parameters" class="col-md-6"> |
|
|
<div id="parameters" class="col-md-6"> |
|
|
<div id="nav-sections-report"> |
|
|
<div id="nav-sections-report"> |
|
|
<a v-for="section in sections" :class="'btn-section btn '+(currentSection == section.id ? 'btn-primary' : 'btn-default')" @click="changeSection(section)">{{ section.name }}<span v-if="currentSection == section.id"> <span class="glyphicon glyphicon-triangle-bottom"></span></span></a> |
|
|
|
|
|
|
|
|
<a v-for="section in sections" :class="'btn-section btn '+(currentSection == section.id ? 'btn-primary' : 'btn-default')" @click="changeSection(section)"><span :class="'fa '+section.icon"></span> {{ section.name }}<span v-if="currentSection == section.id"> <span class="glyphicon glyphicon-triangle-bottom"></span></span></a> |
|
|
</div> |
|
|
</div> |
|
|
<div id="section-users" class="panel panel-default section" v-show="currentSection == 'users'"> |
|
|
<div id="section-users" class="panel panel-default section" v-show="currentSection == 'users'"> |
|
|
<div class="panel-body"> |
|
|
<div class="panel-body"> |
|
|
|
|
|
|
|
|
Veuillez sélectionner un utilisateur et/ou un point de vente et/ou une distribution. |
|
|
Veuillez sélectionner un utilisateur et/ou un point de vente et/ou une distribution. |
|
|
</div> |
|
|
</div> |
|
|
<div class="section" v-if="countUsers() > 0"> |
|
|
<div class="section" v-if="countUsers() > 0"> |
|
|
<h3>{{ countUsers() }} Utilisateurs</h3> |
|
|
|
|
|
|
|
|
<h3><span class="fa fa-users"></span> {{ countUsers() }} Utilisateurs</h3> |
|
|
<template v-for="user in usersArray" v-if="user.checked"> |
|
|
<template v-for="user in usersArray" v-if="user.checked"> |
|
|
<span v-html="user.name+' '+user.lastname"></span><span class="comma">, </span> |
|
|
<span v-html="user.name+' '+user.lastname"></span><span class="comma">, </span> |
|
|
</template> |
|
|
</template> |
|
|
</div> |
|
|
</div> |
|
|
<div class="section" v-if="countPointsSale() > 0"> |
|
|
<div class="section" v-if="countPointsSale() > 0"> |
|
|
<h3>{{ countPointsSale() }} Points de vente</h3> |
|
|
|
|
|
|
|
|
<h3><span class="fa fa-map-marker"></span> {{ countPointsSale() }} Points de vente</h3> |
|
|
<template v-for="pointSale in pointsSaleArray" v-if="pointSale.checked"> |
|
|
<template v-for="pointSale in pointsSaleArray" v-if="pointSale.checked"> |
|
|
<span v-html="pointSale.name"></span><span class="comma">, </span> |
|
|
<span v-html="pointSale.name"></span><span class="comma">, </span> |
|
|
</template> |
|
|
</template> |
|
|
</div> |
|
|
</div> |
|
|
<div class="section" v-if="countDistributions() > 0"> |
|
|
<div class="section" v-if="countDistributions() > 0"> |
|
|
<h3>{{ countDistributions() }} Distributions</h3> |
|
|
|
|
|
|
|
|
<h3><span class="fa fa-calendar"></span> {{ countDistributions() }} Distributions</h3> |
|
|
<template v-for="distributionsMonth in distributionsByMonthArray"> |
|
|
<template v-for="distributionsMonth in distributionsByMonthArray"> |
|
|
<template v-for="distribution in distributionsMonth.distributions" v-if="distribution.checked"> |
|
|
<template v-for="distribution in distributionsMonth.distributions" v-if="distribution.checked"> |
|
|
<span v-html="distribution.date"></span><span class="comma">, </span> |
|
|
<span v-html="distribution.date"></span><span class="comma">, </span> |