From: Alexander Smirnov Date: Thu, 5 Dec 2024 15:18:42 +0000 (+0300) Subject: [ERP-258] индексы X-Git-Tag: 1.7~189^2~7 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=a843945505734bd35af6e9e00fd28e9bb4bae318;p=erp24_rep%2Fyii-erp24%2F.git [ERP-258] индексы --- 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); }); });