<form autocomplete="off" @submit.prevent="guardarConvertir" id="modal_form_convertir">
    <div class="modal fade" id="modal_convertir" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">Guardar pedido</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-group">
                        <label for="fecha">Fecha:</label>
                        <input type="date" class="form-control" id="fecha" v-model="dataForm.fecha">
                    </div>
                    <div class="form-group">
                        <label for="almacen">Almacen:</label>
                        <select id="almacen" class="form-control" v-model="dataForm.almacen">
                            <option :value="0" disabled>SELECCIONE UN ELEMENTO</option>
                            <?php foreach ($almacenes as $row) : ?>
                                <option value="<?= $row['alm_id'] ?>"><?= $row['alm_nombre'] ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="divisa">Divisa:</label>
                        <select id="divisa" class="form-control" v-model="dataForm.divisa">
                            <option :value="0" disabled>SELECCIONE UN ELEMENTO</option>
                            <?php foreach ($divisas as $row) : ?>
                                <option value="<?= $row['div_id'] ?>"><?= $row['div_nombre'] ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="serie">Serie:</label>
                        <select id="serie" class="form-control" v-model="dataForm.serie">
                            <option :value="0" disabled>SELECCIONE UN ELEMENTO</option>
                            <?php foreach ($series as $row) : ?>
                                <option value="<?= $row['ser_id'] ?>"><?= $row['ser_descripcion'] ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>
                    <div class="alert alert-warning" v-for="row in errorForm">{{ row }}</div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary  btn-sm" data-dismiss="modal">Cerrar</button>
                    <button v-if="loader_convertir_pedido" 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">Guardar</button>
                </div>
            </div>
        </div>
    </div>
</form>
