it_manager/locations: редактор шаблона этикеток, раздельная печать QR/EAN и карточка поставщика.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-07 16:40:48 +03:00
parent 82ad90c661
commit d54f6fbe42
18 changed files with 1192 additions and 66 deletions
+4 -2
View File
@@ -151,11 +151,13 @@ function itBulkClearSelection() {
itBulkUpdate();
}
function itEquipmentOpenLabels() {
function itEquipmentOpenLabels(codes) {
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 url = '/it-manager/equipment/labels/?ids=' + encodeURIComponent(ids.join(','));
var mode = codes || 'both';
var url = '/it-manager/equipment/labels/?ids=' + encodeURIComponent(ids.join(',')) +
'&codes=' + encodeURIComponent(mode);
window.open(url, '_blank', 'noopener');
}