From: marina Date: Tue, 17 Jun 2025 08:20:52 +0000 (+0300) Subject: ERP-360 Сборка страницы автопм X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f5d8c842192efc7b49d46a85a4da04eb0c6ffc41;p=erp24_rep%2Fyii-erp24%2F.git ERP-360 Сборка страницы автопм --- diff --git a/erp24/views/auto-plannogramma/index.php b/erp24/views/auto-plannogramma/index.php index 8bd3ecfe..40c1cab3 100644 --- a/erp24/views/auto-plannogramma/index.php +++ b/erp24/views/auto-plannogramma/index.php @@ -347,6 +347,15 @@ $this->registerJsFile('/js/autoplannogramma/autoplannogramma.js', ['position' => writing-mode: sideways-lr; } + .custom-tooltip .tooltip-inner { + max-width: 300px; + white-space: pre-wrap; + color: #FFD700; + background-color: #333; + font-weight: 600; + } + + .input { padding: .375rem .75rem; font-size: 1rem; diff --git a/erp24/web/js/autoplannogramma/autoplannogramma.js b/erp24/web/js/autoplannogramma/autoplannogramma.js index f137d00f..6ac6f711 100644 --- a/erp24/web/js/autoplannogramma/autoplannogramma.js +++ b/erp24/web/js/autoplannogramma/autoplannogramma.js @@ -79,28 +79,6 @@ $('.subcategory .list-group-item').on('click', function (e) { return; } - // Updated generateTitleString function - const generateTitleString = (titleObj) => { - if (!titleObj || typeof titleObj !== 'object') return ''; - - const typeTitles = { - offline: '📦 Оффлайн', - online: '🌐 Онлайн', - marketplace: '🛒 Маркетплейс' - }; - - const parts = Object.entries(titleObj) - .map(([typeKey, typeValue]) => { - if (!typeValue || typeof typeValue !== 'object') return ''; - const lines = Object.entries(typeValue) - .map(([key, val]) => `- ${key.replace(/_/g, ' ')}: ${parseFloat(val).toFixed(2)}`); - return `${typeTitles[typeKey] || typeKey}:\n${lines.join('\n')}`; - }) - .filter(Boolean); - - return parts.join('\n\n'); - }; - const fragment = document.createDocumentFragment(); response.forEach(item => { @@ -421,4 +399,3 @@ function generateTitleString(titleObj) { return parts.join('\n\n'); } -