it_manager: одна кнопка печати этикетки по шаблону.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-07 16:57:59 +03:00
parent c87911ee55
commit f381d692dd
3 changed files with 8 additions and 14 deletions
+3 -4
View File
@@ -151,13 +151,12 @@ function itBulkClearSelection() {
itBulkUpdate();
}
function itEquipmentOpenLabels(codes) {
function itEquipmentOpenLabels() {
var checked = Array.prototype.slice.call(document.querySelectorAll('.it-equip-check:checked'));
if (!checked.length) return;
var ids = checked.map(function (cb) { return cb.value; });
var mode = codes || 'both';
var url = '/it-manager/equipment/labels/?ids=' + encodeURIComponent(ids.join(',')) +
'&codes=' + encodeURIComponent(mode);
// Печать строго по сохранённому шаблону (все блоки из layout)
var url = '/it-manager/equipment/labels/?ids=' + encodeURIComponent(ids.join(','));
window.open(url, '_blank', 'noopener');
}