From a843945505734bd35af6e9e00fd28e9bb4bae318 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 5 Dec 2024 18:18:42 +0300 Subject: [PATCH] =?utf8?q?[ERP-258]=20=D0=B8=D0=BD=D0=B4=D0=B5=D0=BA=D1=81?= =?utf8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/shift-transfer/update.php | 11 +++++++++++ erp24/web/js/shift-transfer/update.js | 2 ++ 2 files changed, 13 insertions(+) diff --git a/erp24/views/shift-transfer/update.php b/erp24/views/shift-transfer/update.php index 1cc954af..c5f42439 100644 --- a/erp24/views/shift-transfer/update.php +++ b/erp24/views/shift-transfer/update.php @@ -92,6 +92,17 @@ $this->registerCss(' 'min' => 0, 'max' => 2000, 'columns' => [ + [ + 'name' => 'index', + 'title' => '№', + 'value' => function () { + static $counter = 1; + return $counter++; + }, + 'headerOptions' => [ + 'style' => 'width: 40px;', + ] + ], [ 'name' => 'product_guid', 'title' => 'Продукт', diff --git a/erp24/web/js/shift-transfer/update.js b/erp24/web/js/shift-transfer/update.js index 5614ad28..fcc7d8a9 100644 --- a/erp24/web/js/shift-transfer/update.js +++ b/erp24/web/js/shift-transfer/update.js @@ -114,5 +114,7 @@ $(document).ready(() => { } }).on('afterAddRow', function(e, row, currentIndex) { setMultipleInputHandlers(currentIndex, row); + const index = $(row).find('#shifttransfer-shiftremainscopy-' + currentIndex + '-index'); + index.val(currentIndex); }); }); -- 2.39.5