Se pueden exportar las planillas de un barrio a pdf
This commit is contained in:
parent
25d5830462
commit
4939dbbd83
Binary file not shown.
|
@ -10,3 +10,4 @@ Homestead.json
|
||||||
Homestead.yaml
|
Homestead.yaml
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
|
.idea
|
||||||
|
|
|
@ -78,6 +78,11 @@
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/dragonmantank/cron-expression" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/dragonmantank/cron-expression" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/http-message" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/http-message" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php80" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php80" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/setasign/fpdi" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/paragonie/random_compat" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/mpdf/mpdf" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/php-http/message-factory" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/myclabs/deep-copy" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
|
|
@ -75,6 +75,13 @@
|
||||||
<path value="$PROJECT_DIR$/vendor/dragonmantank/cron-expression" />
|
<path value="$PROJECT_DIR$/vendor/dragonmantank/cron-expression" />
|
||||||
<path value="$PROJECT_DIR$/vendor/psr/http-message" />
|
<path value="$PROJECT_DIR$/vendor/psr/http-message" />
|
||||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php80" />
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php80" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/rmccue/requests" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/prexview/prexview" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/setasign/fpdi" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/mpdf/mpdf" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/php-http/message-factory" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/myclabs/deep-copy" />
|
||||||
</include_path>
|
</include_path>
|
||||||
</component>
|
</component>
|
||||||
<component name="PhpProjectSharedConfiguration" php_language_level="7.2">
|
<component name="PhpProjectSharedConfiguration" php_language_level="7.2">
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import BotonAdminSubpedidoRow from "./BotonAdminSubpedidoRow";
|
import BotonAdminSubpedidoRow from "./SubpedidoRowBotonAdmin";
|
||||||
export default {
|
export default {
|
||||||
name: "SubpedidoRow",
|
name: "SubpedidoRow",
|
||||||
components: {BotonAdminSubpedidoRow},
|
components: {BotonAdminSubpedidoRow},
|
||||||
|
|
|
@ -1,5 +1,15 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="container is-max-widescreen is-max-desktop animate__animated" :class="animation" v-show="!init">
|
<div class="container is-max-widescreen is-max-desktop animate__animated" :class="animation" v-show="!init">
|
||||||
|
<div class="buttons is-right">
|
||||||
|
<a class="button is-info" :href="'/admin/exportar-planillas-a-pdf/'+gdc">
|
||||||
|
<span>
|
||||||
|
Imprimir Planillas
|
||||||
|
</span>
|
||||||
|
<span class="icon is-small">
|
||||||
|
<i class="fas fa-print"></i>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<table v-show="this.subpedidos.length !== 0" class="table is-fullwidth is-striped is-bordered">
|
<table v-show="this.subpedidos.length !== 0" class="table is-fullwidth is-striped is-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -1 +1,40 @@
|
||||||
<?php
|
<!doctype html>
|
||||||
|
<style>
|
||||||
|
tr:nth-child(even) {
|
||||||
|
background: #CCC
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<h3>{{$subpedido->nombre}}</h3>
|
||||||
|
|
||||||
|
<table style="width: 100%">
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
Producto
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Cantidad
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Control 1
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Control 2
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Control 3
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
@foreach($subpedido->productos as $producto)
|
||||||
|
@if(!$producto->bono)
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{ $producto->nombre }}
|
||||||
|
</td>
|
||||||
|
<td style="text-align: center">
|
||||||
|
{{ $producto->pivot->cantidad }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
|
|
@ -34,8 +34,10 @@ Route::get('/admin/obtener_sesion', function() {
|
||||||
return $sesion;
|
return $sesion;
|
||||||
})->name('admin_obtener_sesion');
|
})->name('admin_obtener_sesion');
|
||||||
|
|
||||||
Route::middleware(['auth', 'admin'])->group( function () {
|
Route::get('/admin/exportar-planillas-a-pdf/{gdc}', 'AdminController@exportarPlanillasAPdf');
|
||||||
|
|
||||||
|
Route::middleware(['auth', 'admin'])->group( function () {
|
||||||
|
//Route::get('/admin/exportar-planillas-a-pdf/{gdc}', 'AdminController@exportarPlanillasAPdf');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::middleware('auth')->group( function() {
|
Route::middleware('auth')->group( function() {
|
||||||
|
|
Loading…
Reference in New Issue