]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-426 Расширение тестовой группы магазинов при редактировании списания feature_zozirova_erp-360_autoplannogramma_build
authormarina <m.zozirova@gmail.com>
Tue, 10 Jun 2025 13:23:28 +0000 (16:23 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 10 Jun 2025 13:23:28 +0000 (16:23 +0300)
erp24/views/auto-plannogramma/index.php
erp24/web/js/autoplannogramma/autoplannogramma.js

index 64c2633793c6efe1f981b2694d4a24edaafee0e1..ef52591b0f8eb1e7c69181ef0b05f5526b755853 100644 (file)
@@ -164,10 +164,7 @@ $this->registerJsFile('/js/autoplannogramma/autoplannogramma.js', ['position' =>
             </div>
         </div>
     </div>
-    <div class="div alert">
-        <div class="alert text-center flash-message alert-info mb-1 py-1 m-5">Для редактирования планограммы необходимо выбрать неделю и год!</div>
-    </div>
-    <div class="table-wrapper" style=" pointer-events: none; opacity: 0.5;">
+    <div class="table-wrapper">
         <table class="table">
             <thead>
             <tr class="head">
index b210824725a3fc7e020dbe84bbeff27d621e3e63..e7a04e1e783da7713b98aeed95086229d0c83967 100644 (file)
@@ -103,7 +103,7 @@ $('.subcategory-link').on('click', function (e) {
                 const td = $(`
                     <td data-store-id="${storeId}">
                         <div style="display: flex; align-items: center;">
-                            <input type="number" class="btn btn-primary input"
+                            <input type="number" class="btn btn-primary input "
                                    value="${val.quantity}"
                                    data-id="${val.id}"
                                    data-guid="${item.product_id}"
@@ -111,7 +111,7 @@ $('.subcategory-link').on('click', function (e) {
                                    data-bs-toggle="tooltip" data-bs-placement="top"
                                    data-original-value="${val.quantity}"
                                    style="width: 100%; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; border-radius: .375rem; border: 1px solid #0d6efd;">
-                            <button class="reject-btn" style="border: none; background: transparent; cursor: pointer; margin-left: 5px;">
+                            <button class="reject-btn" style="border: none; background: transparent; cursor: pointer;">
                                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                                     <path d="M20 11v5a1 1 0 0 1-2 0v-4H7.414l1.293 1.293a1 1 0 0 1-1.414 1.414l-3-3a1 1 0 0 1 0-1.416l3-3a1 1 0 1 1 1.414 1.416L7.414 10H19a1 1 0 0 1 1 1z"
                                           fill="grey" stroke="none"/>
@@ -273,15 +273,6 @@ function resetStoreFilter() {
 
 $('.btn-apply').on('click', function () {
     applyStoreFilter();
-    if ($('#week').val() && $('#year').val()) {
-        $('.table-wrapper').css({
-            'pointer-events': 'auto',
-            'opacity': '1'
-        });
-        $('.flash-message').css({
-            'display': 'none'
-        });
-    }
     $('tr.inserted-row').remove();
 });
 $('.btn-reset').on('click', resetStoreFilter);
@@ -313,18 +304,4 @@ function getMonthNumberByWeek(week, year) {
         return startMonth;
     }
     return startMonth;
-}
-
-
-$(document).ready(function () {
-    if ($('#week').val().length > 0) {
-        $('#edit-button').click();
-    }
-
-    const flashMessage = $('.flash-message');
-
-    if (flashMessage.length) {
-        const delayTime = flashMessage.hasClass('alert-success') ? 5000 : 15000;
-        setTimeout(() => flashMessage.fadeOut(2000, () => flashMessage.remove()), delayTime);
-    }
-});
\ No newline at end of file
+}
\ No newline at end of file