<button v-if="tillerIsSynchro" id="btn-tiller" class="btn btn-success btn-xs" disabled><span class="glyphicon glyphicon-refresh"></span> Synchronisé avec Tiller</button> | <button v-if="tillerIsSynchro" id="btn-tiller" class="btn btn-success btn-xs" disabled><span class="glyphicon glyphicon-refresh"></span> Synchronisé avec Tiller</button> | ||||
<button v-else id="btn-tiller" class="btn btn-xs btn-default" @click="synchroTiller"><span class="glyphicon glyphicon-refresh"></span> Synchroniser avec Tiller</button> | <button v-else id="btn-tiller" class="btn btn-xs btn-default" @click="synchroTiller"><span class="glyphicon glyphicon-refresh"></span> Synchroniser avec Tiller</button> | ||||
</template> | </template> | ||||
<button id="btn-add-order" @click="showModalFormOrderCreate = true" class="btn btn-xs btn-primary"><span class="glyphicon glyphicon-plus"></span> Ajouter une commande</button> | |||||
<button id="btn-add-order" @click="openModalFormOrderCreate" class="btn btn-xs btn-primary"><span class="glyphicon glyphicon-plus"></span> Ajouter une commande</button> | |||||
</div> | </div> | ||||
<div class="left"> | <div class="left"> | ||||
<a v-if="deliveryNoteExist(idActivePointSale)" :href="UrlManager.getBaseUrl()+'delivery-note/update?id='+deliveryNotes[idActivePointSale].id" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-file"></span> Bon de livraison</a> | <a v-if="deliveryNoteExist(idActivePointSale)" :href="UrlManager.getBaseUrl()+'delivery-note/update?id='+deliveryNotes[idActivePointSale].id" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-file"></span> Bon de livraison</a> | ||||
<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 class="column-user"> | <td class="column-user"> | ||||
<span v-if="order.user">{{ order.user.lastname+' '+order.user.name }}</span> | |||||
<span v-if="order.user"> | |||||
<template v-if="order.user.name_legal_person && order.user.name_legal_person.length"> | |||||
{{ order.user.name_legal_person }} | |||||
</template> | |||||
<template v-else> | |||||
{{ order.user.lastname+' '+order.user.name }} | |||||
</template> | |||||
</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> | ||||
</label> | </label> | ||||
<select class="form-control" v-model="order.id_user"> | <select class="form-control" v-model="order.id_user"> | ||||
<option value="0">--</option> | <option value="0">--</option> | ||||
<option v-for="user in users" :value="user.id_user" @click="userChange">{{ user.lastname +' '+ user.name }}</option> | |||||
<option v-for="user in users" :value="user.id_user" @click="userChange"> | |||||
<template v-if="user.name_legal_person && user.name_legal_person.length"> | |||||
{{ user.name_legal_person }} | |||||
</template> | |||||
<template v-else> | |||||
{{ user.lastname +' '+ user.name }} | |||||
</template> | |||||
</option> | |||||
</select> | </select> | ||||
<input v-model="order.username" type="text" class="form-control" placeholder="Ou saisissez ici le nom de l'utilisateur" /> | <input v-model="order.username" type="text" class="form-control" placeholder="Ou saisissez ici le nom de l'utilisateur" /> | ||||
</div> | </div> |
/* line 58, ../sass/_responsive.scss */ | /* line 58, ../sass/_responsive.scss */ | ||||
.distribution-index .modal-form-order .modal-container { | .distribution-index .modal-form-order .modal-container { | ||||
width: 100%; | width: 100%; | ||||
padding: 0px; | |||||
} | } | ||||
/* line 61, ../sass/_responsive.scss */ | |||||
/* line 62, ../sass/_responsive.scss */ | |||||
.distribution-index .modal-form-order .modal-container .modal-body { | |||||
padding-right: 15px; | |||||
} | |||||
/* line 64, ../sass/_responsive.scss */ | |||||
.distribution-index .modal-form-order .modal-container .modal-body table { | .distribution-index .modal-form-order .modal-container .modal-body table { | ||||
margin-bottom: 100px; | margin-bottom: 100px; | ||||
} | } | ||||
/* line 66, ../sass/_responsive.scss */ | |||||
/* line 70, ../sass/_responsive.scss */ | |||||
.distribution-index .modal-form-order .modal-container .modal-body table.table-products td.quantity .form-control { | |||||
width: 50px; | |||||
height: 52px; | |||||
} | |||||
/* line 78, ../sass/_responsive.scss */ | |||||
.distribution-index .modal-form-order .modal-container .modal-footer { | .distribution-index .modal-form-order .modal-container .modal-footer { | ||||
border-top-color: #f4f4f4; | border-top-color: #f4f4f4; | ||||
position: fixed; | position: fixed; | ||||
text-align: center; | text-align: center; | ||||
border-top: solid 1px #e0e0e0; | border-top: solid 1px #e0e0e0; | ||||
} | } | ||||
/* line 78, ../sass/_responsive.scss */ | |||||
/* line 90, ../sass/_responsive.scss */ | |||||
.distribution-index .modal-form-order .modal-container .modal-footer .actions-form button { | .distribution-index .modal-form-order .modal-container .modal-footer .actions-form button { | ||||
float: none; | float: none; | ||||
} | } | ||||
/* line 89, ../sass/_responsive.scss */ | |||||
/* line 101, ../sass/_responsive.scss */ | |||||
.distribution-index #orders #buttons-top-orders .left { | .distribution-index #orders #buttons-top-orders .left { | ||||
width: 100%; | width: 100%; | ||||
float: none; | float: none; | ||||
} | } | ||||
/* line 93, ../sass/_responsive.scss */ | |||||
/* line 105, ../sass/_responsive.scss */ | |||||
.distribution-index #orders #buttons-top-orders .right { | .distribution-index #orders #buttons-top-orders .right { | ||||
width: 100%; | width: 100%; | ||||
float: none; | float: none; | ||||
} | } | ||||
/* line 98, ../sass/_responsive.scss */ | |||||
/* line 110, ../sass/_responsive.scss */ | |||||
.distribution-index #orders #buttons-top-orders .btn { | .distribution-index #orders #buttons-top-orders .btn { | ||||
padding: 8px 15px; | padding: 8px 15px; | ||||
margin: 10px; | margin: 10px; | ||||
display: block; | display: block; | ||||
width: 100%; | width: 100%; | ||||
} | } | ||||
/* line 108, ../sass/_responsive.scss */ | |||||
/* line 120, ../sass/_responsive.scss */ | |||||
.distribution-index #orders #wrapper-nav-points-sale ul#nav-points-sale li { | .distribution-index #orders #wrapper-nav-points-sale ul#nav-points-sale li { | ||||
float: none; | float: none; | ||||
width: 100%; | width: 100%; | ||||
} | } | ||||
/* line 111, ../sass/_responsive.scss */ | |||||
/* line 123, ../sass/_responsive.scss */ | |||||
.distribution-index #orders #wrapper-nav-points-sale ul#nav-points-sale li a { | .distribution-index #orders #wrapper-nav-points-sale ul#nav-points-sale li a { | ||||
display: block; | display: block; | ||||
} | } | ||||
/* line 120, ../sass/_responsive.scss */ | |||||
/* line 132, ../sass/_responsive.scss */ | |||||
.distribution-index #orders table ul.dropdown-menu a { | .distribution-index #orders table ul.dropdown-menu a { | ||||
padding: 15px; | padding: 15px; | ||||
} | } | ||||
/* line 124, ../sass/_responsive.scss */ | |||||
/* line 136, ../sass/_responsive.scss */ | |||||
.distribution-index #orders table button { | .distribution-index #orders table button { | ||||
padding: 15px; | padding: 15px; | ||||
} | } | ||||
/* line 129, ../sass/_responsive.scss */ | |||||
/* line 141, ../sass/_responsive.scss */ | |||||
.distribution-index #orders table .column-origin, | .distribution-index #orders table .column-origin, | ||||
.distribution-index #orders table .column-point-sale, | .distribution-index #orders table .column-point-sale, | ||||
.distribution-index #orders table .column-state-payment, | .distribution-index #orders table .column-state-payment, |
var idOrder = event.currentTarget.getAttribute('data-id-order') ; | var idOrder = event.currentTarget.getAttribute('data-id-order') ; | ||||
this.idOrderUpdate = idOrder ; | this.idOrderUpdate = idOrder ; | ||||
this.showModalFormOrderUpdate = true ; | this.showModalFormOrderUpdate = true ; | ||||
this.initModalFormOrder() ; | |||||
}, | |||||
openModalFormOrderCreate: function() { | |||||
this.showModalFormOrderCreate = true ; | |||||
this.initModalFormOrder() ; | |||||
}, | |||||
initModalFormOrder: function() { | |||||
if($(window).height() < 768) { | |||||
setTimeout(function() { | |||||
$('.modal-body').css('height',$(window).height()) ; | |||||
$('.modal-body').css('maxHeight','unset') ; | |||||
},500); | |||||
} | |||||
}, | }, | ||||
orderPaymentModalClick: function(event) { | orderPaymentModalClick: function(event) { | ||||
var idOrder = event.currentTarget.getAttribute('data-id-order') ; | var idOrder = event.currentTarget.getAttribute('data-id-order') ; |
.modal-form-order { | .modal-form-order { | ||||
.modal-container { | .modal-container { | ||||
width: 100% ; | width: 100% ; | ||||
padding: 0px ; | |||||
.modal-body { | .modal-body { | ||||
padding-right: 15px ; | |||||
table { | table { | ||||
margin-bottom: 100px ; | margin-bottom: 100px ; | ||||
} | } | ||||
table.table-products { | |||||
td.quantity { | |||||
.form-control { | |||||
width: 50px ; | |||||
height: 52px ; | |||||
} | |||||
} | |||||
} | |||||
} | } | ||||
.modal-footer { | .modal-footer { | ||||
border-top-color: #f4f4f4; | border-top-color: #f4f4f4; |