<form action="#" autocomplete="off" @submit.prevent="guardarEditar" id="modal_form_cajas">
    <div class="modal fade" id="modal-caja" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header mh">
                    <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-group">
                        <label for="cajqqw2-codigo">Código</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-hashtag"></i>
                                </span>
                            </div>
                            <input type="text" id="impr-codigo" class="form-control" v-model="dataForm.codigo">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="caj-descripcion">Descripción</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-pencil-alt"></i>
                                </span>
                            </div>
                            <input type="text" id="impr-descripcion" class="form-control" v-model="dataForm.descripcion">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="impresoras">Métodos de Pago</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-question-circle"></i>
                                </span>
                            </div>
                            <select id="caj-impresoras" class="form-control custom-select" v-model="dataForm.metododepago">
                                <option value="" disabled>Seleccionar un Método de Pago</option>
                                <option v-for="row in metodosDePago" :value="row.mp_id">{{ row.mp_codigo }}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="impresoras">Impresoras</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-question-circle"></i>
                                </span>
                            </div>
                            <select id="caj-impresoras" class="form-control custom-select" v-model="dataForm.impresora">
                                <option value="" disabled>Seleccionar una Impresora</option>
                                <option v-for="row in impresoras" :value="row.id">{{ row.descripcion }}</option>
                            </select>
                        </div>
                    </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 type="submit" class="btn btn-primary  btn-sm">{{ accion }}</button>
                </div>
            </div>
        </div>
    </div>
</form>