fix: индикатор качества цены во всех таблицах конфигуратора; убраны заголовки колонки
price_quality теперь показывается не только на вкладке Base (renderTab), но и на остальных вкладках конфигуратора (renderMultiSelectTab, renderMultiSelectTabWithSections) — раньше индикатор был виден только в выпадающем списке поиска. Колонка-индикатор везде без текстового заголовка (только тултип), включая колонку «Качество» в прайслисте. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
702b459fc0
commit
0fa7b0b1b6
@@ -1560,6 +1560,7 @@ function renderMultiSelectTab(components) {
|
|||||||
<table class="w-full">
|
<table class="w-full">
|
||||||
<thead class="bg-gray-50">
|
<thead class="bg-gray-50">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th class="px-2 py-2 w-6" title="Качество цены"></th>
|
||||||
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase">LOT</th>
|
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase">LOT</th>
|
||||||
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase">Описание</th>
|
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase">Описание</th>
|
||||||
<th class="px-3 py-2 text-right text-xs font-medium text-gray-500 uppercase w-24">Estimate</th>
|
<th class="px-3 py-2 text-right text-xs font-medium text-gray-500 uppercase w-24">Estimate</th>
|
||||||
@@ -1578,6 +1579,7 @@ function renderMultiSelectTab(components) {
|
|||||||
|
|
||||||
html += `
|
html += `
|
||||||
<tr class="hover:bg-gray-50">
|
<tr class="hover:bg-gray-50">
|
||||||
|
<td class="px-2 py-2 text-center">${qualityDotHtml(comp?.price_quality)}</td>
|
||||||
<td class="px-3 py-2 min-w-48">
|
<td class="px-3 py-2 min-w-48">
|
||||||
<div class="autocomplete-wrapper relative">
|
<div class="autocomplete-wrapper relative">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
@@ -1610,7 +1612,7 @@ function renderMultiSelectTab(components) {
|
|||||||
// Add empty row for new item
|
// Add empty row for new item
|
||||||
html += `
|
html += `
|
||||||
<tr class="hover:bg-gray-50 bg-gray-50">
|
<tr class="hover:bg-gray-50 bg-gray-50">
|
||||||
<td class="px-3 py-2" colspan="2">
|
<td class="px-3 py-2" colspan="3">
|
||||||
<div class="autocomplete-wrapper relative">
|
<div class="autocomplete-wrapper relative">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
id="input-new-item"
|
id="input-new-item"
|
||||||
@@ -1665,6 +1667,7 @@ function renderMultiSelectTabWithSections(sections) {
|
|||||||
<table class="w-full">
|
<table class="w-full">
|
||||||
<thead class="bg-gray-50">
|
<thead class="bg-gray-50">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th class="px-2 py-2 w-6" title="Качество цены"></th>
|
||||||
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase">LOT</th>
|
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase">LOT</th>
|
||||||
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase">Описание</th>
|
<th class="px-3 py-2 text-left text-xs font-medium text-gray-500 uppercase">Описание</th>
|
||||||
<th class="px-3 py-2 text-right text-xs font-medium text-gray-500 uppercase w-24">Estimate</th>
|
<th class="px-3 py-2 text-right text-xs font-medium text-gray-500 uppercase w-24">Estimate</th>
|
||||||
@@ -1687,6 +1690,7 @@ function renderMultiSelectTabWithSections(sections) {
|
|||||||
|
|
||||||
html += `
|
html += `
|
||||||
<tr class="hover:bg-gray-50">
|
<tr class="hover:bg-gray-50">
|
||||||
|
<td class="px-2 py-2 text-center">${qualityDotHtml(comp?.price_quality)}</td>
|
||||||
<td class="px-3 py-2 min-w-48">
|
<td class="px-3 py-2 min-w-48">
|
||||||
<div class="autocomplete-wrapper relative">
|
<div class="autocomplete-wrapper relative">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
@@ -1720,7 +1724,7 @@ function renderMultiSelectTabWithSections(sections) {
|
|||||||
// Add empty row for new item in this section
|
// Add empty row for new item in this section
|
||||||
html += `
|
html += `
|
||||||
<tr class="hover:bg-gray-50 bg-gray-50">
|
<tr class="hover:bg-gray-50 bg-gray-50">
|
||||||
<td class="px-3 py-2" colspan="2">
|
<td class="px-3 py-2" colspan="3">
|
||||||
<div class="autocomplete-wrapper relative">
|
<div class="autocomplete-wrapper relative">
|
||||||
<input type="text"
|
<input type="text"
|
||||||
id="input-section-${sectionId}"
|
id="input-section-${sectionId}"
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Категория</th>
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Категория</th>
|
||||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Описание</th>
|
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">Описание</th>
|
||||||
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase">Цена, $</th>
|
<th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase">Цена, $</th>
|
||||||
<th class="px-6 py-3 text-center text-xs font-medium text-gray-500 uppercase">Качество</th>
|
<th class="px-6 py-3 w-6" title="Качество цены"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="items-body" class="bg-white divide-y divide-gray-200">
|
<tbody id="items-body" class="bg-white divide-y divide-gray-200">
|
||||||
|
|||||||
Reference in New Issue
Block a user