feat: product/service as separate column next to stage
Moved out of inline subtitle. New "Продукт/услуга" column between Компания and Этап in both manager and РОП tables. colspan of empty-state rows bumped to 7 / 6. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c726bf9d36
commit
c25eabfa4c
@ -50,7 +50,7 @@ function renderManagerView(){
|
||||
.sort((a,b) => b.days - a.days);
|
||||
|
||||
if(deals.length === 0){
|
||||
tbody.innerHTML = `<tr><td colspan="6" style="text-align:center;color:#999;padding:30px">Нет сделок на контроле. Создайте первую через «+ Сделка».</td></tr>`;
|
||||
tbody.innerHTML = `<tr><td colspan="7" style="text-align:center;color:#999;padding:30px">Нет сделок на контроле. Создайте первую через «+ Сделка».</td></tr>`;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -59,9 +59,9 @@ function renderManagerView(){
|
||||
<td>
|
||||
<b>${escapeHtml(d.company)}</b>
|
||||
${d.managerAway ? '<span class="away-badge">отсутствует</span>' : ''}
|
||||
${d.product ? `<div style="font-size:12px;color:#444">📦 ${escapeHtml(d.product)}</div>` : ''}
|
||||
${d.tag ? `<div style="font-size:11px;color:#666">${escapeHtml(d.tag)}</div>` : ''}
|
||||
</td>
|
||||
<td>${d.product ? escapeHtml(d.product) : '<span style="color:#999">—</span>'}</td>
|
||||
<td>${escapeHtml(d.stage)}</td>
|
||||
<td class="status-cell">
|
||||
<textarea data-id="${d.id}" placeholder="Внесите итог сегодняшнего контакта (мин. ${window.MIN_STATUS_LEN} симв.)">${escapeHtml(d.currentStatus||"")}</textarea>
|
||||
@ -106,16 +106,14 @@ function renderRopView(){
|
||||
|
||||
const tbody = $("#rop-tbody");
|
||||
if(all.length === 0){
|
||||
tbody.innerHTML = `<tr><td colspan="5" style="text-align:center;color:#999;padding:30px">Нет активных сделок</td></tr>`;
|
||||
tbody.innerHTML = `<tr><td colspan="6" style="text-align:center;color:#999;padding:30px">Нет активных сделок</td></tr>`;
|
||||
return;
|
||||
}
|
||||
tbody.innerHTML = all.map(({d, days, color}) => `
|
||||
<tr class="row-${color} ${d.managerAway?'row-away':''}">
|
||||
<td>${escapeHtml(d.manager)}${d.managerAway ? ' <span class="away-badge">отсут.</span>' : ''}</td>
|
||||
<td>
|
||||
${escapeHtml(d.company)}
|
||||
${d.product ? `<div style="font-size:11px;color:#666">📦 ${escapeHtml(d.product)}</div>` : ''}
|
||||
</td>
|
||||
<td>${escapeHtml(d.company)}</td>
|
||||
<td>${d.product ? escapeHtml(d.product) : '<span style="color:#999">—</span>'}</td>
|
||||
<td>${escapeHtml(d.stage)}</td>
|
||||
<td><span class="days-badge ${days >= 2 ? 'urgent' : ''}">${days}</span></td>
|
||||
<td>${escapeHtml(d.currentStatus || "—")}</td>
|
||||
|
||||
@ -90,6 +90,7 @@ td.status-cell textarea:focus{background:#fff;outline:2px solid var(--primary)}
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Компания</th>
|
||||
<th>Продукт/услуга</th>
|
||||
<th>Этап</th>
|
||||
<th>Текущий статус (Лог дня)</th>
|
||||
<th>Дней без обнов.</th>
|
||||
@ -118,6 +119,7 @@ td.status-cell textarea:focus{background:#fff;outline:2px solid var(--primary)}
|
||||
<tr>
|
||||
<th>Менеджер</th>
|
||||
<th>Компания</th>
|
||||
<th>Продукт/услуга</th>
|
||||
<th>Этап</th>
|
||||
<th>Дней без обнов.</th>
|
||||
<th>Статус</th>
|
||||
|
||||
Reference in New Issue
Block a user