|
|
|
|
|
|
|
|
<table class="table table-condensed table-bordered table-hover" v-if="countOrdersByPointSale[idActivePointSale] > 0 || (idActivePointSale == 0 && orders.length > 0)"> |
|
|
<table class="table table-condensed table-bordered table-hover" v-if="countOrdersByPointSale[idActivePointSale] > 0 || (idActivePointSale == 0 && orders.length > 0)"> |
|
|
<thead> |
|
|
<thead> |
|
|
<tr> |
|
|
<tr> |
|
|
<th v-if="idActivePointSale > 0"> |
|
|
|
|
|
|
|
|
<th class="column-checkbox" v-if="idActivePointSale > 0"> |
|
|
<input type="checkbox" v-model="checkboxSelectAllOrders" @change="selectAllOrdersEvent" /> |
|
|
<input type="checkbox" v-model="checkboxSelectAllOrders" @change="selectAllOrdersEvent" /> |
|
|
</th> |
|
|
</th> |
|
|
<th>Origine</th> |
|
|
|
|
|
<th>État</th> |
|
|
|
|
|
<th>Utilisateur</th> |
|
|
|
|
|
<th v-if="idActivePointSale == 0">Point de vente</th> |
|
|
|
|
|
<th>Montant</th> |
|
|
|
|
|
<th>Paiement</th> |
|
|
|
|
|
<th></th> |
|
|
|
|
|
<th v-if="producer.tiller">Tiller</th> |
|
|
|
|
|
<th></th> |
|
|
|
|
|
<th></th> |
|
|
|
|
|
|
|
|
<th class="column-origin">Origine</th> |
|
|
|
|
|
<th class="column-state">État</th> |
|
|
|
|
|
<th class="column-user">Utilisateur</th> |
|
|
|
|
|
<th class="column-point-sale" v-if="idActivePointSale == 0">Point de vente</th> |
|
|
|
|
|
<th class="column-amount">Montant</th> |
|
|
|
|
|
<th class="column-state-payment">Paiement</th> |
|
|
|
|
|
<th class="column-payment"></th> |
|
|
|
|
|
<th class="column-tiller" v-if="producer.tiller">Tiller</th> |
|
|
|
|
|
<th class="column-actions"></th> |
|
|
|
|
|
<th class="column-delivery-note"></th> |
|
|
</tr> |
|
|
</tr> |
|
|
</thead> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tbody> |
|
|
<template v-for="(order, key, index) in orders" v-if="idActivePointSale == 0 || idActivePointSale == order.id_point_sale"> |
|
|
<template v-for="(order, key, index) in orders" v-if="idActivePointSale == 0 || idActivePointSale == order.id_point_sale"> |
|
|
<tr> |
|
|
<tr> |
|
|
<td v-if="idActivePointSale > 0"> |
|
|
|
|
|
|
|
|
<td class="column-checkbox" v-if="idActivePointSale > 0"> |
|
|
<input type="checkbox" v-model="order.selected" /> |
|
|
<input type="checkbox" v-model="order.selected" /> |
|
|
</td> |
|
|
</td> |
|
|
<td> |
|
|
|
|
|
|
|
|
<td class="column-origin"> |
|
|
<label class="label label-success" v-if="order.origin == 'user'">client</label> |
|
|
<label class="label label-success" v-if="order.origin == 'user'">client</label> |
|
|
<label class="label label-default" v-else-if="order.origin == 'auto'">auto</label> |
|
|
<label class="label label-default" v-else-if="order.origin == 'auto'">auto</label> |
|
|
<label class="label label-warning" v-else>admin</label> |
|
|
<label class="label label-warning" v-else>admin</label> |
|
|
</td> |
|
|
</td> |
|
|
<td> |
|
|
|
|
|
|
|
|
<td class="column-state"> |
|
|
<span class="label label-danger" v-if="order.date_delete"><span class="glyphicon glyphicon-trash"></span></span> |
|
|
<span class="label label-danger" v-if="order.date_delete"><span class="glyphicon glyphicon-trash"></span></span> |
|
|
<span class="label label-warning" v-if="order.date_update"><span class="glyphicon glyphicon-pencil"></span></span> |
|
|
<span class="label label-warning" v-if="order.date_update"><span class="glyphicon glyphicon-pencil"></span></span> |
|
|
<span class="label label-success" v-if="!order.date_update && !order.date_delete"><span class="glyphicon glyphicon-check"></span></span> |
|
|
<span class="label label-success" v-if="!order.date_update && !order.date_delete"><span class="glyphicon glyphicon-check"></span></span> |
|
|
</td> |
|
|
</td> |
|
|
<td> |
|
|
|
|
|
|
|
|
<td class="column-user"> |
|
|
<span v-if="order.user">{{ order.user.lastname+' '+order.user.name }}</span> |
|
|
<span v-if="order.user">{{ order.user.lastname+' '+order.user.name }}</span> |
|
|
<span v-else>{{ order.username }}</span> |
|
|
<span v-else>{{ order.username }}</span> |
|
|
<span v-if="order.comment && order.comment.length > 0" class="glyphicon glyphicon-comment"></span> |
|
|
<span v-if="order.comment && order.comment.length > 0" class="glyphicon glyphicon-comment"></span> |
|
|
</td> |
|
|
</td> |
|
|
<td v-if="idActivePointSale == 0"> |
|
|
|
|
|
|
|
|
<td class="column-point-sale" v-if="idActivePointSale == 0"> |
|
|
{{ order.pointSale.name }} |
|
|
{{ order.pointSale.name }} |
|
|
</td> |
|
|
</td> |
|
|
<td>{{ order.amount.toFixed(2).replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }}</td> |
|
|
|
|
|
|
|
|
<td class="column-amount">{{ order.amount.toFixed(2).replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }}</td> |
|
|
<td class="column-state-payment"> |
|
|
<td class="column-state-payment"> |
|
|
<div class="input-group"> |
|
|
<div class="input-group"> |
|
|
<span class="label label-success input-group-addon" v-if="order.amount_paid == order.amount">payé</span> |
|
|
<span class="label label-success input-group-addon" v-if="order.amount_paid == order.amount">payé</span> |
|
|
|
|
|
|
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</td> |
|
|
<td v-if="producer.tiller" class="tiller"> |
|
|
|
|
|
|
|
|
<td v-if="producer.tiller" class="tiller column-tiller"> |
|
|
<input v-if="order.tiller_synchronization == true" type="checkbox" checked="checked" :id="'checkbox-tiller-synchronization-'+order.id" :data-id-order="order.id" @change="changeSynchroTiller" /> |
|
|
<input v-if="order.tiller_synchronization == true" type="checkbox" checked="checked" :id="'checkbox-tiller-synchronization-'+order.id" :data-id-order="order.id" @change="changeSynchroTiller" /> |
|
|
<input v-else type="checkbox" :id="'checkbox-tiller-synchronization-'+order.id" :data-id-order="order.id" @change="changeSynchroTiller" /> |
|
|
<input v-else type="checkbox" :id="'checkbox-tiller-synchronization-'+order.id" :data-id-order="order.id" @change="changeSynchroTiller" /> |
|
|
<label :for="'checkbox-tiller-synchronization-'+order.id">Tiller</label> |
|
|
<label :for="'checkbox-tiller-synchronization-'+order.id">Tiller</label> |
|
|
|
|
|
|
|
|
</modal> |
|
|
</modal> |
|
|
|
|
|
|
|
|
</td> |
|
|
</td> |
|
|
<td> |
|
|
|
|
|
|
|
|
<td class="column-delivery-note"> |
|
|
<a v-if="order.id_delivery_note" class="btn btn-default btn-xs" :href="UrlManager.getBaseUrl()+'delivery-note/update?id='+order.id_delivery_note"> |
|
|
<a v-if="order.id_delivery_note" class="btn btn-default btn-xs" :href="UrlManager.getBaseUrl()+'delivery-note/update?id='+order.id_delivery_note"> |
|
|
<span class="glyphicon glyphicon-file"></span> BL |
|
|
<span class="glyphicon glyphicon-file"></span> BL |
|
|
</a> |
|
|
</a> |