222 lines
8.4 KiB
HTML
222 lines
8.4 KiB
HTML
title = "machine/rulon-bags"
|
|
url = "/machine/rulon-bags/:filter"
|
|
layout = "platform_main"
|
|
is_hidden = 0
|
|
==
|
|
<?php
|
|
function onStart(){
|
|
$filter = $this->param('filter');
|
|
|
|
$this["rulons"] = Romanah\Gokbakja\Models\ProductionMachine::with(['bag_type', 'machine.building', 'employee', 'mechanic', 'color', 'shift'])
|
|
->with(['rulonAction' => function($q){
|
|
$q->with(['sewer_productions' => function ($subQuery) {
|
|
$subQuery->select('width','height','rulon_action_id', DB::raw('SUM(produced_bag_qty) as produced_bag_qty'));
|
|
}]);
|
|
}])->orderBy('date', 'DESC')->get();
|
|
|
|
}
|
|
?>
|
|
==
|
|
{% set records = builderList.records %}
|
|
{% set displayColumn = builderList.displayColumn %}
|
|
{% set noRecordsMessage = builderList.noRecordsMessage %}
|
|
{% set detailsPage = builderList.detailsPage %}
|
|
{% set detailsKeyColumn = builderList.detailsKeyColumn %}
|
|
{% set detailsUrlParameter = builderList.detailsUrlParameter %}
|
|
|
|
{% set machines = builderList2.records %}
|
|
{% set types = builderList4.records %}
|
|
{% set sizes = builderList3.records %}
|
|
|
|
{% put styles %}
|
|
<link href="{{'assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css'|theme}}" rel="stylesheet"
|
|
type="text/css" />
|
|
<link href="{{'assets/libs/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css'|theme}}" rel="stylesheet"
|
|
type="text/css" />
|
|
<link href="{{'assets/libs/datatables.net-select-bs4/css/select.bootstrap4.min.css'|theme}}" rel="stylesheet"
|
|
type="text/css" />
|
|
|
|
<link href="{{'assets/libs/select2/css/select2.min.css'|theme}}" rel="stylesheet" type="text/css">
|
|
{% endput %}
|
|
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<form action="/machine/rulon-bags/filter">
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
<div>
|
|
<label class="form-label">Seneleri Saýlaň</label>
|
|
|
|
<div class="input-daterange input-group" id="datepicker6"
|
|
data-date-format="d.m.yyyy" data-date-autoclose="true" data-provide="datepicker"
|
|
data-date-container='#datepicker6'>
|
|
<input type="text" class="form-control" name="start"
|
|
placeholder="Başlanýan sene" />
|
|
<input type="text" class="form-control" name="end"
|
|
placeholder="Gutarýan sene" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col">
|
|
<button type="submit" class="btn btn-primary waves-effect waves-light"
|
|
style="margin-top: 30px;width: 100%;">Hasabat</button>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row" id="all_amount">
|
|
<div class="col-md-6">
|
|
<h3 class="card-title" style="font-size: 22px;color: #1e2038;">Rulon Halta</h3>
|
|
<p class="card-title-desc" style="color: #6c6ff5;">Hasabat</p>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<table id="datatable-buttons" class="table table-striped table-bordered dt-responsive nowrap"
|
|
style="border-collapse: collapse; border-spacing: 0; width: 100%;" data-page-length='13'>
|
|
<thead>
|
|
<tr>
|
|
|
|
<th colspan="6" style="background: #ccd9e3;">Gelen Rulon</th>
|
|
<th colspan="3" style="background: #c7e4fd;">Öndürlen Halta</th>
|
|
<th colspan="3" style="background: bisque;">Halta</th>
|
|
<th colspan="2" style="background: #ffbbbb;">Jemi Öndürlen Halta</th>
|
|
<th>Turba agramy</th>
|
|
<th>Rulon Galyndysy</th>
|
|
<th rowspan="2">Brak %</th>
|
|
</tr>
|
|
<tr>
|
|
|
|
<th>NO</th>
|
|
<th>Sene</th>
|
|
<th>Stanok No</th>
|
|
<th>Reňki</th>
|
|
<th>Ini</th>
|
|
<th>Gram m2</th>
|
|
<th>Rulanyň agramy (kg)</th>
|
|
|
|
<th>Gramy</th>
|
|
<th>Ini</th>
|
|
<th>Boýy</th>
|
|
|
|
<th>Öndürlen Halta (arassa)</th>
|
|
<th>Öndürlen Halta (brak)</th>
|
|
<th>Sürülmedik</th>
|
|
|
|
<th>Sany</th>
|
|
<th>kg</th>
|
|
|
|
<th>kg</th>
|
|
<th>kg</th>
|
|
|
|
<!-- <th>Настройки</th> -->
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
{% for key, rulon in rulons %}
|
|
|
|
<tr>
|
|
<td>{{key+1}}</td>
|
|
<td>{{rulon.date|date('d.m.Y')}}</td>
|
|
<td>{{rulon.machine.name}}</td>
|
|
<td>{{rulon.color.name}}</td>
|
|
<td>{{rulon.width}}</td>
|
|
<td>{{rulon.gram}}</td>
|
|
<td>{{rulon.produced_weight}}</td>
|
|
|
|
<td>{{rulon.rulonAction}}</td>
|
|
<td>Ini</td>
|
|
<td>Boýy</td>
|
|
|
|
<td>Öndürlen Halta (arassa)</td>
|
|
<td>Öndürlen Halta (brak)</td>
|
|
<td>Sürülmedik</td>
|
|
|
|
<td>Sany</td>
|
|
<td>kg</td>
|
|
|
|
<td>kg</td>
|
|
<td>kg</td>
|
|
<td>Brak %</td>
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th>Sene</th>
|
|
<th>Stanok No</th>
|
|
<th>Reňki</th>
|
|
<th>Ini</th>
|
|
<th>Gram m2</th>
|
|
<th>Rulanyň agramy</th>
|
|
|
|
<th>Gramy</th>
|
|
<th>Ini</th>
|
|
<th>Boýy</th>
|
|
|
|
<th>Öndürlen Halta (arassa)</th>
|
|
<th>Öndürlen Halta (brak)</th>
|
|
<th>Sürülmedik</th>
|
|
|
|
<th>Sany</th>
|
|
<th>kg</th>
|
|
|
|
<th>kg</th>
|
|
<th>kg</th>
|
|
<th>Brak %</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog"
|
|
aria-labelledby="mySmallModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg" style="max-width: 1211px;">
|
|
<div class="modal-content" id="modal-form">
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% partial 'dataTableJs' %}
|
|
{% put scripts %}
|
|
<script src="{{'assets/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js'|theme}}"></script>
|
|
<script src="{{'assets/libs/select2/js/select2.min.js'|theme}}"></script>
|
|
<script src="{{'assets/js/pages/form-advanced.init.js'|theme}}"></script>
|
|
{% endput %}
|