|
|
|
|
|
|
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-4"> |
|
|
<div class="col-md-4"> |
|
|
<div class="form-group"> |
|
|
|
|
|
<label class="control-label" for="select-id-point-sale">Point de vente</label> |
|
|
|
|
|
<select class="form-control" id="select-id-point-sale" v-model="order.id_point_sale"> |
|
|
|
|
|
<option v-for="pointSale in pointsSale" v-if="pointSale.pointSaleDistribution[0].delivery == 1" :value="pointSale.id">{{ pointSale.name }}</option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<a v-if="producer.credit && order.id_user > 0" class="btn btn-xs btn-primary btn-credit" :href="baseUrl+'/user/credit?id='+user.id_user" v-for="user in users" v-if="user.id_user == order.id_user">{{ parseFloat(user.credit).toFixed(2).replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }}</a> |
|
|
<a v-if="producer.credit && order.id_user > 0" class="btn btn-xs btn-primary btn-credit" :href="baseUrl+'/user/credit?id='+user.id_user" v-for="user in users" v-if="user.id_user == order.id_user">{{ parseFloat(user.credit).toFixed(2).replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, "$1,")+' €' }}</a> |
|
|
<label class="control-label" for="select-id-user"> |
|
|
<label class="control-label" for="select-id-user"> |
|
|
|
|
|
|
|
|
</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">{{ user.lastname +' '+ user.name }}</option> |
|
|
|
|
|
|
|
|
<option v-for="user in users" :value="user.id_user" @click="userChange" :data-id-point-sale-favorite="user.id_point_sale_favorite">{{ user.lastname +' '+ user.name }}</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> |
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<label class="control-label" for="select-id-point-sale">Point de vente</label> |
|
|
|
|
|
<select class="form-control" id="select-id-point-sale" v-model="order.id_point_sale"> |
|
|
|
|
|
<option v-for="pointSale in pointsSale" v-if="pointSale.pointSaleDistribution[0].delivery == 1" :value="pointSale.id">{{ pointSale.name }}</option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="control-label" for="textarea-comment">Commentaire</label> |
|
|
<label class="control-label" for="textarea-comment">Commentaire</label> |
|
|
<textarea class="form-control" id="textarea-comment" v-model="order.comment"></textarea> |
|
|
<textarea class="form-control" id="textarea-comment" v-model="order.comment"></textarea> |