diff --git a/app/Services/AppointmentCertService.php b/app/Services/AppointmentCertService.php index 9fd9c45a..b820b751 100644 --- a/app/Services/AppointmentCertService.php +++ b/app/Services/AppointmentCertService.php @@ -110,12 +110,12 @@ public function generatePdfResponse(array $content): \Illuminate\Http\Response ['소 속', $content['department'] ?? '-', 40], ['연 락 처', $content['phone'] ?? '-', 40], ]); - // 위촉(재직)기간 / 계약자격 + // 위촉기간 / 계약자격 $hireDate = $content['hire_date'] ?? ''; $resignDate = $content['resign_date'] ?? ''; $periodDisplay = $hireDate ? $hireDate.' ~ '.($resignDate ?: '현재') : '-'; $this->addTableRow($pdf, $font, [ - ['위촉기간', $periodDisplay, 40], + ['위촉기간', $periodDisplay, 45], ['계약자격', $content['contract_type'] ?? '-', 40], ]); // 용도 diff --git a/resources/views/approvals/create.blade.php b/resources/views/approvals/create.blade.php index 4ada3b3c..6e3eea78 100644 --- a/resources/views/approvals/create.blade.php +++ b/resources/views/approvals/create.blade.php @@ -1282,7 +1282,7 @@ function printAppointmentCertPreview() { const content = document.getElementById('appointment-cert-preview-content').innerHTML; const win = window.open('', '_blank', 'width=800,height=1000'); win.document.write('위촉증명서'); - win.document.write(''); + win.document.write(''); win.document.write('
'); win.document.write(content); win.document.write('
'); @@ -1292,13 +1292,14 @@ function printAppointmentCertPreview() { function buildAppointmentCertPreviewHtml(d) { const e = (s) => { const div = document.createElement('div'); div.textContent = s; return div.innerHTML; }; - const thStyle = 'border:1px solid #333; padding:16px 18px; background:#f8f9fa; font-weight:600; text-align:left; white-space:nowrap; width:140px; font-size:16px;'; - const tdStyle = 'border:1px solid #333; padding:16px 18px; font-size:16px;'; + const thStyle = 'border:1px solid #333; padding:16px 14px; background:#f8f9fa; font-weight:600; text-align:left; white-space:nowrap; font-size:15px;'; + const tdStyle = 'border:1px solid #333; padding:16px 14px; font-size:15px; white-space:nowrap;'; return `

위 촉 증 명 서

- +
+ @@ -1314,7 +1315,7 @@ function buildAppointmentCertPreviewHtml(d) { - + diff --git a/resources/views/approvals/show.blade.php b/resources/views/approvals/show.blade.php index 408ba1ae..faa59274 100644 --- a/resources/views/approvals/show.blade.php +++ b/resources/views/approvals/show.blade.php @@ -599,7 +599,7 @@ function printAppointmentCertShowPreview() { const content = document.getElementById('appointment-cert-show-preview-content').innerHTML; const win = window.open('', '_blank', 'width=800,height=1000'); win.document.write('위촉증명서'); - win.document.write(''); + win.document.write(''); win.document.write('
'); win.document.write(content); win.document.write('
'); @@ -609,16 +609,17 @@ function printAppointmentCertShowPreview() { function _buildAppointmentCertHtml(d) { const e = (s) => { const div = document.createElement('div'); div.textContent = s; return div.innerHTML; }; - const thStyle = 'border:1px solid #333; padding:16px 18px; background:#f8f9fa; font-weight:600; text-align:left; white-space:nowrap; width:140px; font-size:16px;'; - const tdStyle = 'border:1px solid #333; padding:16px 18px; font-size:16px;'; + const thStyle = 'border:1px solid #333; padding:16px 14px; background:#f8f9fa; font-weight:600; text-align:left; white-space:nowrap; font-size:15px;'; + const tdStyle = 'border:1px solid #333; padding:16px 14px; font-size:15px; white-space:nowrap;'; return `

위 촉 증 명 서

-
성 명 ${e(d.name)}${e(d.phone)}
위촉(재직)기간위촉기간 ${e(d.hireDate)} ~ ${e(d.resignDate)} 계약자격 ${e(d.contractType)}
+
+ - +
성 명${e(d.name)}
주민등록번호${e(d.resident)}
소 속${e(d.department)}연 락 처${e(d.phone)}
위촉(재직)기간${e(d.hireDate)} ~ ${e(d.resignDate)}계약자격${e(d.contractType)}
위촉기간${e(d.hireDate)} ~ ${e(d.resignDate)}계약자격${e(d.contractType)}
용 도${e(d.purpose)}

위와 같이 위촉하였음을 증명합니다.