Happy New Year!
This commit is contained in:
miroman-afk
2021-12-29 13:17:03 +03:00
parent 1a7808f75b
commit 2702c4b6e9
31 changed files with 2013 additions and 3 deletions

View File

@@ -0,0 +1,41 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-toggle="modal" data-target="#items-delete" ng-click="returnModal('delete')">
<i class="material-icons md-24">arrow_back</i>
</button>
<h5 class="modal-title">Подробнее об удалениях в заказе № {{ order.code }}</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive">
<table class="table m-a-0">
<thead>
<tr>
<th>Удаленное блюдо</th>
<th>Количество удалений</th>
<th>Сумма удалений, BYN</th>
<th>Удалил</th>
<th>Причина удаления</th>
<th>Время удаления</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in order.items">
<td>{{ item.dish }}</td>
<td>{{ item.count }}</td>
<td class="text-right">{{ item.sale_price | curr }}</td>
<td>{{ item.who_deleted }}</td>
<td>{{ item.reason }}</td>
<td>{{ item.time }}</td>
</tr>
</tbody>
<thead>
<tr>
<th colspan="6" class="text-right">Всего {{ order.all_count }} удалений на сумму {{ order.all_sum | curr }} BYN</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,38 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-toggle="modal" data-target="#items-discount" ng-click="returnModal('discount')">
<i class="material-icons md-24">arrow_back</i>
</button>
<h5 class="modal-title">Подробнее о заказе № {{ order.title }}</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive">
<table class="table m-a-0">
<thead>
<tr>
<th>Блюдо (со скидкой)</th>
<th>Количество</th>
<th class="text-right">Цена, BYN</th>
<th class="text-right">Сумма, BYN</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in order.items">
<td>{{ item.name }} ({{ item.discount }}%)</td>
<td>{{ item.count }}</td>
<td class="text-right">{{ item.sale_price | curr }}</td>
<td class="text-right">{{ item.sum | curr }}</td>
</tr>
</tbody>
<thead>
<tr>
<th colspan="3"></th>
<th class="text-right">Итого: {{ order.total | curr }}</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,37 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-toggle="modal" data-target="#items-guests" ng-click="returnModal('guests')">
<i class="material-icons md-24">arrow_back</i>
</button>
<h5 class="modal-title">{{ order.title }}</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive">
<table class="table m-a-0">
<thead>
<tr>
<th>Блюдо</th>
<th>Количество</th>
<th class="text-right">Сумма, BYN</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in order.items">
<td>{{ item.name }}</td>
<td>{{ item.count }}</td>
<td class="text-right">{{ item.sale_price | curr }}</td>
</tr>
</tbody>
<thead>
<tr>
<th colspan="2"></th>
<th class="text-right">Итого: {{ order.total | curr }} BYN</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,41 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-toggle="modal" data-target="#items-staff" ng-click="returnModal('staff')">
<i class="material-icons md-24">arrow_back</i>
</button>
<h5 class="modal-title">{{ order.title }}</h5>
<p class="text-muted m-b-0">Открыл: {{ order.who_open }}</p>
<p class="text-muted m-b-0" ng-if="!order.hasOwnProperty('who_close')">{{NOT_CLOSED}}</p>
<p class="text-muted m-b-0" ng-if="order.hasOwnProperty('who_close')">Закрыл: {{ order.who_close }}</p>
</div>
<div class="modal-body p-lg">
<div class="table-responsive">
<table class="table m-a-0">
<thead>
<tr>
<th>Блюдо</th>
<th>Количество</th>
<th class="text-right">Сумма, BYN</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in order.items">
<td>{{ item.name }}</td>
<td>{{ item.count }}</td>
<td class="text-right">{{ item.sale_price | curr }}</td>
</tr>
</tbody>
<thead>
<tr>
<th colspan="2"></th>
<th class="text-right">Итого: {{ order.total | curr }}</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,55 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-toggle="modal" data-target="#items-total" ng-click="returnModal('total')">
<i class="material-icons md-24">arrow_back</i>
</button>
<h5 class="modal-title" style="padding-bottom: 12px;">Подробнее о заказе № {{ order.title }}</h5>
<div class="row">
<div class="col-xs-6 col-md-3">
<p class="text-muted m-b-0">Открыт</p>
<p class="m-b-0">{{ order.who_open }}</p>
<p class="m-b-0">{{ order.opened }}</p>
</div>
<div class="col-xs-6 col-md-3">
<div ng-if="getClosedDate(order.closed) == NOT_CLOSED">
<p class="text-muted m-b-0">{{NOT_CLOSED}}</p>
</div>
<div ng-if="getClosedDate(order.closed) != NOT_CLOSED">
<p class="text-muted m-b-0">Закрыт</p>
<p class="m-b-0">{{ order.who_close }}</p>
<p class="m-b-0">{{ order.closed }}</p>
</div>
</div>
</div>
</div>
<div class="modal-body p-lg">
<div class="table-responsive">
<table class="table m-a-0">
<thead>
<tr>
<th>Блюдо</th>
<th>Количество</th>
<th class="text-right">Сумма, BYN</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in order.items">
<td>{{ item.name }}</td>
<td>{{ item.count }}</td>
<td class="text-right">{{ item.sale_price | curr }}</td>
</tr>
</tbody>
<thead>
<tr>
<th colspan="2"></th>
<th class="text-right">Итого: {{ order.total | curr }} BYN</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,39 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h5 class="modal-title">{{ moreData.title }}</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive" ng-if="moreData.deleted_orders.length > 0">
<table class="table table-hover">
<thead>
<tr>
<th class="text-right">Заказ №</th>
<th class="text-right">Открыт</th>
<th class="text-right">Закрыт</th>
<th class="text-right">Сумма удалений, BYN</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="deleted_order in moreData.deleted_orders" ng-click="getItems('delete', deleted_order)">
<td class="text-right">{{ deleted_order.number }}</td>
<td class="text-right">{{ deleted_order.opened }}</td>
<td class="text-right">{{ getClosedDate(deleted_order.closed) }}</td>
<td class="text-right">{{ deleted_order.deleted_sum | curr}}</td>
</tr>
</tbody>
<thead>
<tr>
<th colspan="4" class="text-right">Удаление {{ moreData.total_count }} {{ GetCountDeletedPositions(more.total_count) }} на сумму {{ moreData.total_sum | curr }} BYN</th>
</tr>
</thead>
</table>
</div>
<div ng-if="moreData.deleted_orders.length == 0">
<div class="text-muted">Удаленных позиций нет</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,43 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h5 class="modal-title">{{ moreData.title }}</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive" ng-if="moreData.orders.length > 0">
<table class="table table-hover">
<thead>
<tr>
<th>Заказ №</th>
<th class="text-right">Без скидки, BYN</th>
<th class="text-right">Скидка, BYN</th>
<th class="text-right">Итого, BYN</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="order in moreData.orders" ng-click="getItems('discount', order)">
<td>{{ order.number }}</td>
<td class="text-right">{{ order.full_sum | curr }}</td>
<td class="text-right">{{ order.sale_sum | curr }}</td>
<td class="text-right">{{ order.order_sum | curr }}</td>
</tr>
</tbody>
<thead>
<tr>
<th>Всего: {{ discounts }} {{ GetCountTotalOrders(discounts) }}</th>
<th class="text-right">на сумму {{ moreData.amount | curr }}</th>
<th class="text-right">со скидой в: {{discounts_sum | curr }}</th>
<th class="text-right">Итого: {{ moreData.total_sum | curr }} BYN</th>
</tr>
</thead>
</table>
</div>
<div ng-if="moreData.orders.length == 0">
<div class="text-muted">Заказов со скидками нет</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,34 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h5 class="modal-title">{{ moreData.title }}</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive" ng-if="moreData.clients.length > 0">
<div ng-repeat="client in moreData.clients">
<table class="table m-a-0 table-hover">
<thead class="thead-inverses">
<tr>
<th class="text-right" style="text-align: left; width: 20%;" colspan="4">{{ client.name }}</th>
</tr>
</thead>
<tbody>
<tr ng-click="getItems('guests', client)">
<td class="text-right" style="width: 20%;">Заказ № {{ client.number }}</td>
<td class="text-right" style="width: 30%;">Открыт {{ client.opened }}</td>
<td class="text-right" style="width: 30%;">{{ client.closed }}</td>
<td class="text-right" style="width: 20%;">{{ client.sum | curr }} BYN</td>
</tr>
</tbody>
</table>
</div>
</div>
<div ng-if="moreData.clients.length == 0">
<div class="text-muted">Заказов от именованных гостей нет</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,75 @@
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content" style="background-image: url('../views/dashboard/images/new-year-1.jpg');">
<div class="modal-body" style="background-image: url('../views/dashboard/images/new-year-1.jpg');">
<button type="button" class="close text-white" data-dismiss="modal">&times;</button>
</div>
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="3"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="4"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img sglclick="nextImage()" ng-swipe-left="nextImage()" ng-swipe-right="previousImage()" class="d-block w-100 myCarousel img-responsive" src="../views/dashboard/images/new-year-1.jpg" alt="">
<div class="carousel-caption d-none d-md-block" style="text-align: left; right: 2em; left: 2em;">
<h4><i>С наступающим Новым годом и Рождеством!</i></h5>
<p><h6>Мы подготовили для Вас кое-что интересное!</h6></p>
</div>
</div>
<div class="carousel-item">
<img sglclick="nextImage()" ng-swipe-left="nextImage()" ng-swipe-right="previousImage()" class="d-block w-100 myCarousel img-responsive" id="myCarousel" src="../views/dashboard/images/2.png" alt="">
<div class="carousel-caption d-none d-md-block" style="text-align: left; right: 2em; left: 2em;">
<h4><i> · {{year_count}} · </i></h5>
<p><h6>Столько товаров вы продали за 2021 год!</h6></p>
</div>
</div>
<div class="carousel-item">
<img sglclick="nextImage()" ng-swipe-left="nextImage()" ng-swipe-right="previousImage()" class="d-block w-100 myCarousel img-responsive" id="myCarousel" src="../views/dashboard/images/6.png" alt="">
<div class="carousel-caption d-none d-md-block" style="text-align: left; right: 2em; left: 2em;">
<h4><i>Топ товаров проданных за 2021 год:</i></h5>
<h6 ng-repeat="top_dish in top_dishes" class="text-left">
<p> · {{ top_dish.name }} · {{ top_dish.count }} шт. на сумму {{ top_dish.sum | curr}} BYN </p>
</h6>
</div>
</div>
<div class="carousel-item">
<img sglclick="nextImage()" ng-swipe-left="nextImage()" ng-swipe-right="previousImage()" class="d-block w-100 myCarousel img-responsive" id="myCarousel" src="../views/dashboard/images/4.png" alt="">
<div class="carousel-caption d-none d-md-block" style="text-align: left; right: 2em; left: 2em;">
<h4><i>Наибольшее количество заказов:</i></h5>
<h6 ng-repeat="top_shift in top_shifts" class="text-left">
<p> {{ top_shift.date }}г. закрыто {{ top_shift.count }} заказов</p>
<p> На общую сумму {{ top_shift.sum | curr}} BYN </p>
</h6>
</div>
</div>
<div class="carousel-item">
<img sglclick="nextImage()" ng-swipe-left="nextImage()" ng-swipe-right="previousImage()" class="d-block w-100 myCarousel img-responsive" id="myCarousel" src="../views/dashboard/images/7.png" alt="">
<div class="carousel-caption d-none d-md-block" style="text-align: left; right: 2em; left: 2em;">
<h5><i>
<p>Дорогие коллеги, поздравляем вас с Новым годом и желаем вам в новом году еще больше успехов, побед и достижений!</p>
<p>Пускай ваши мечты сбудутся, а каждый день дарит приятные сюрпризы и отличное настроение!<p>
<p>Желаем, чтобы все, что вы делаете, приносило удовольствие и радость!</p>
</i>
</h5>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,42 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h5 class="modal-title">{{ staff.title }}</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive">
<table class="table m-a-0 table-hover">
<thead>
<tr>
<th>Заказ №</th>
<th>Открыт</th>
<th>Закрыт</th>
<th>Зал</th>
<th>Стол</th>
<th class="text-right">Итого, BYN</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="order in staff.orders" ng-click="getItems('staff', order)">
<td>{{order.number}}</td>
<td>{{order.opened}}</td>
<td>{{ getClosedDate(order.closed) }}</td>
<td>{{order.place}}</td>
<td>{{order.table}}</td>
<td class="text-right">{{order.sum | curr}}</td>
</tr>
</tbody>
<thead>
<tr>
<th class="text-left" colspan="4">Всего: {{staff.count}} {{ GetCountTotalOrders(staff.count) }}</th>
<th class="text-right" colspan="2">Итого: {{staff.total|curr}} BYN</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,47 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h5 class="modal-title">{{ table_ord.title }}</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive" ng-repeat="order in table_ord.orders">
<h5>Заказ № {{ order.number }}</h5>
<table class="table">
<thead>
<tr>
<th style="width: 35%">Блюдо</th>
<th style="width: 25%">Количество</th>
<th class="text-right" style="width: 40%">Сумма, BYN</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in order.items">
<td>{{ item.name }}</td>
<td>{{ item.count }}</td>
<td class="text-right">{{ item.sale_price | curr }}</td>
</tr>
</tbody>
<thead>
<tr>
<th colspan="3" class="text-right">Итого: {{ order.total | curr }} BYN</th>
</tr>
</thead>
</table>
<hr>
</div>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th colspan="2"></th>
<th class="text-right">Общий итог: {{ table_ord.total | curr }} BYN</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,40 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h5 class="modal-title">{{ moreData.title }}</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive" ng-if="moreData.orders.length > 0">
<table class="table table-hover">
<thead>
<tr>
<th>Заказ №</th>
<th>Открыт</th>
<th>Закрыт</th>
<th class="text-right">Итого, BYN</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="order in moreData.orders" ng-click="getItems('total', order)">
<td>{{ order.number }}</td>
<td>{{ order.opened }}</td>
<td>{{ getClosedDate(order.closed) }}</td>
<td class="text-right">{{ order.sum | curr }}</td>
</tr>
</tbody>
<thead>
<tr>
<th class="text-left" colspan="3">Всего: {{ moreData.count }} {{ GetCountTotalOrders(moreData.count) }}</th>
<th class="text-right">Итого: {{ moreData.sum | curr }} BYN</th>
</tr>
</thead>
</table>
</div>
<div ng-if="moreData.orders.length == 0">
<div class="text-muted">Закрытых заказов нет</div>
</div>
</div>
</div>