it_manager/locations: редактор шаблона этикеток, раздельная печать QR/EAN и карточка поставщика.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user