- [INSTALL ORDER] CS 노트 있으면 작업 완료 후 표시.
This commit is contained in:
Hyojin Ahn 2026-05-06 08:55:14 -04:00
parent c48c0a97da
commit d242cf7fc6
2 changed files with 33 additions and 1 deletions

View File

@ -879,6 +879,7 @@ function renderWorkNotes(row){
const req = (row.di_request_note || '').trim(); const req = (row.di_request_note || '').trim();
const work = (row.di_work_note || '').trim(); const work = (row.di_work_note || '').trim();
const cs = (row.di_cs_note || '').trim();
let html = ''; let html = '';
@ -900,6 +901,15 @@ function renderWorkNotes(row){
`; `;
} }
if(cs){
html += `
<div class="small text-muted mb-1">
<strong>CS:</strong>
${escapeHtml(cs)}
</div>
`;
}
area.innerHTML = html; area.innerHTML = html;
} }
@ -1429,6 +1439,7 @@ function renderList(){
rows.forEach(row => { rows.forEach(row => {
const req = (row.di_request_note || '').trim(); const req = (row.di_request_note || '').trim();
const work = (row.di_work_note || '').trim(); const work = (row.di_work_note || '').trim();
const cs = (row.di_cs_note || '').trim();
html += ` html += `
<tr data-uid="${row.di_uid}" class="status-${row.di_status}"> <tr data-uid="${row.di_uid}" class="status-${row.di_status}">
@ -1467,6 +1478,12 @@ function renderList(){
<strong>Work:</strong> ${escapeHtml(work)} <strong>Work:</strong> ${escapeHtml(work)}
</div> </div>
` : ''} ` : ''}
${cs ? `
<div class="small text-muted">
<strong>CS:</strong> ${escapeHtml(cs)}
</div>
` : ''}
</td> </td>
</tr> </tr>
`; `;
@ -1492,15 +1509,30 @@ function renderWorkCell(row){
// 기본 텍스트 // 기본 텍스트
let main = ''; let main = '';
// cs note 있음 = 후속작업 있음
const afterWork = (row.di_cs_note || '').trim();
if(status === 'A'){ if(status === 'A'){
main = `${renderWorkType(row.di_work_type)}`; main = `${renderWorkType(row.di_work_type)}`;
}else if(status === 'P'){ }else if(status === 'P'){
main = `<span class="fw-bold small"> Done</span>`; main = `<span class="fw-bold small"> Done</span>`;
if(afterWork.length > 0){
main = main + `<span class="badge bg-dark text-white ms-2">CS</span>`;
}
}else if(status === 'M'){ }else if(status === 'M'){
main = `<span class="fw-bold small"> Modified</span>`; main = `<span class="fw-bold small"> Modified</span>`;
if(afterWork.length > 0){
main = main + `<span class="badge bg-dark text-white ms-2">CS</span>`;
}
}else if(status === 'X'){ }else if(status === 'X'){
main = `<span class="fw-bold small"> Cancelled</span>`; main = `<span class="fw-bold small"> Cancelled</span>`;
if(afterWork.length > 0){
main = main + `<span class="badge bg-dark text-white ms-2">CS</span>`;
} }
}
// 보조 아이콘 // 보조 아이콘
const icons = []; const icons = [];

View File

@ -137,7 +137,7 @@
<div class="d-flex justify-content-between align-items-center"> <div class="d-flex justify-content-between align-items-center">
<label class="form-label small">Due date</label> <label class="form-label small">Due date</label>
<div> <div>
<input class="form-check-input me-2" type="checkbox" id="iwLockDate"><label class="form-check-label small" for="iwLockDate">Preferred Date</label> <input class="form-check-input me-2" type="checkbox" id="iwLockDate"><label class="form-check-label small" for="iwLockDate">Fixed Date</label>
</div> </div>
</div> </div>
<input type="text" id="iwScheduleDate" class="form-control form-control-sm date-picker-form" autocomplete="off" placeholder="yyyy-mm-dd" readonly> <input type="text" id="iwScheduleDate" class="form-control form-control-sm date-picker-form" autocomplete="off" placeholder="yyyy-mm-dd" readonly>