<form autocomplete="off" @submit.prevent="guardarEditar" id="modal_form_agencias">
    <div class="modal fade" id="modal_agencias" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">{{ titulo }}</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="form-row">
                        <div class="col-sm-12">
                            <div class="form-group">
                                <label for="nombre">Descripción</label>
                                <input type="text" id="nombre" class="form-control" v-model="dataForm.descripcion">
                            </div>
                        </div>
                    </div>
                    <div class="form-row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label for="nombre">Tarifa min</label>
                                <input type="number" id="tarifa" class="form-control" v-model="dataForm.tarifa">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label for="nombre">Peso min</label>
                                <input type="number" id="tarifa" class="form-control" step="any" v-model="dataForm.pesomin">
                            </div>
                        </div>
                        <div class="col-md-4">
                            <div class="form-group">
                                <label for="aplicar">Fórmula a aplicar</label>
                                <select id="aplicar" class="form-control" v-model="dataForm.aplicar">
                                    <option value="" disabled>Seleccione un elemento</option>
                                    <option value="0" selected="">Peso</option>
                                </select>
                            </div>
                        </div>
                        
                    </div>
                    <div class="form-row">
                        <div class="col-sm-4">
                            <div class="form-group">
                                <label for="nombre">% min ganancia</label>
                                <div class="input-group">
                                    <div class="input-group-prepend">
                                        <span class="input-group-text">
                                            <i class="fas fa-percentage fa-fw"></i>
                                        </span>
                                    </div>
                                    <input type="number" id="procentaje" class="form-control" step="any" v-model="dataForm.porcentaje">
                                </div>
                            </div>
                        </div>
                        <div class="col-md-8">
                            <div class="form-group">
                                <label for="aplicar">Servicio</label>
                                <select id="aplicar" class="form-control" v-model="dataForm.servicio">
                                    <option value="" disabled>Seleccione un elemento</option>
                                    <option value="0" selected="">Retiro en la oficina</option>
                                    <option value="1" selected="">Puerta a puerta</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-12">
                            <div class=" alert alert-warning" role="alert" v-for="row in errorForm">
                                {{ row }}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary  btn-sm" data-dismiss="modal">Cerrar</button>
                    <button v-if="cargando" class="btn btn-sm btn-primary" disabled>
                        <i class="loader loader-info"></i>
                    </button>
                    <button v-else type="submit" class="btn btn-primary btn-sm">{{ accion }}</button>
                </div>
            </div>
        </div>
    </div>
</form>