Update 2022-03-07
This commit is contained in:
@ -33,6 +33,13 @@
|
||||
</li>
|
||||
@endif
|
||||
|
||||
<li rol="presentation" class="dropdown">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
Operadores <span class="caret"></span>
|
||||
</a>
|
||||
@include('layout.menu.operadores')
|
||||
</li>
|
||||
|
||||
@if (\App\Contract\Auth::checkAccess('viewHerramientas'))
|
||||
<li role="presentation" class="dropdown">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
|
12
resources/views/layout/menu/operadores.blade.php
Normal file
12
resources/views/layout/menu/operadores.blade.php
Normal file
@ -0,0 +1,12 @@
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="http://provm.cl:8000/operadores">Listado</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://provm.cl:8000/ventas">Ventas</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://provm.cl:8000/facturas">Informe</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -257,14 +257,33 @@ function changeProyecto() {
|
||||
});
|
||||
$('#unidades').show();
|
||||
});
|
||||
$.post('{!!url('', ['p' => 'ajax', 'a' => 'operadores', 'ajax' => true])!!}', {"proyecto": proyecto}, function(data) {
|
||||
var operadores = $("select[name='operador']");
|
||||
operadores.html('').append($('<option></option>').attr('value', 0).html('---'));
|
||||
var info = $.parseJSON(data);
|
||||
$.each(info, function(i, e) {
|
||||
operadores.append($('<option></option>').attr('value', e.id).html(e.abreviacion));
|
||||
});
|
||||
$.ajax({
|
||||
url: 'https://provm.cl:8001/proyecto/' + proyecto + '/operadores',
|
||||
method: 'get',
|
||||
dataType: 'json'
|
||||
}).then(function(data) {
|
||||
var operadoress = $("select[name='operador']");
|
||||
operadores.html('').append($('<option></option>').attr('value', 0).html('---'));
|
||||
$.each(data.operadores, function(i, e) {
|
||||
operadores.append($('<option></option>').attr('value', e.id).html(e.operador.abreviacion));
|
||||
});
|
||||
|
||||
});
|
||||
/*$.getJSON('http://provm.cl:8001/proyecto/' + proyecto + '/operadores', function(data) {
|
||||
var operadores = $("select[name='operador']");
|
||||
operadores.html('').append($('<option></option>').attr('value', 0).html('---'));
|
||||
$.each(data.operadores, function(i, e) {
|
||||
operadores.append($('<option></option>').attr('value', e.id).html(e.operador.abreviacion));
|
||||
});
|
||||
});
|
||||
$.post('{!!url('', ['p' => 'ajax', 'a' => 'operadores', 'ajax' => true])!!}', {"proyecto": proyecto}, function(data) {
|
||||
var operadores = $("select[name='operador']");
|
||||
operadores.html('').append($('<option></option>').attr('value', 0).html('---'));
|
||||
var info = $.parseJSON(data);
|
||||
$.each(info, function(i, e) {
|
||||
operadores.append($('<option></option>').attr('value', e.id).html(e.abreviacion));
|
||||
});
|
||||
});*/
|
||||
}
|
||||
function agregarUnidad(tipo, name) {
|
||||
var proyecto = $("select[name='proyecto']").val();
|
||||
|
@ -8,7 +8,7 @@
|
||||
<div class="col-md-3">
|
||||
<select name="asociado" class="form-control">
|
||||
@foreach ($pie->venta()->propietario()->ventas() as $v)
|
||||
@if ($v->unidad()->id == $pie->venta()->unidad()->id)
|
||||
@if ($v->unidad()->id == $pie->venta()->unidad()->id or $v->pie == 0)
|
||||
@continue
|
||||
@endif
|
||||
<option value="{{$v->pie()->id}}">
|
||||
|
Reference in New Issue
Block a user