summaryrefslogtreecommitdiff
path: root/lib/mail/templates/custom-rfq-invitation.hbs
blob: 9303035b0b78e0c41b3219ec83fc5a3bd2cf35b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<!DOCTYPE html>
<html lang="{{language}}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RFQ 견적 요청</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.8;
            color: #333;
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f8fafc;
        }
        .container {
            background-color: white;
            border-radius: 12px;
            padding: 40px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            border: 1px solid #e2e8f0;
        }
        .header {
            border-bottom: 4px solid #1e40af;
            padding-bottom: 30px;
            margin-bottom: 40px;
            text-align: center;
        }
        .company-logo {
            font-size: 28px;
            font-weight: bold;
            color: #1e40af;
            margin-bottom: 10px;
            letter-spacing: -0.5px;
        }
        .greeting {
            font-size: 18px;
            color: #1f2937;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        .rfq-info {
            background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
            color: white;
            padding: 25px;
            border-radius: 10px;
            margin: 30px 0;
            text-align: center;
        }
        .rfq-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        .rfq-code {
            font-size: 18px;
            font-weight: 600;
            opacity: 0.9;
        }
        .project-section, .rfq-section, .contract-section, .notice-section {
            margin: 30px 0;
            padding: 25px;
            background-color: #f8fafc;
            border-radius: 8px;
            border-left: 5px solid #3b82f6;
        }
        .section-title {
            font-size: 20px;
            font-weight: bold;
            color: #1e40af;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e2e8f0;
        }
        .info-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 15px;
            margin: 20px 0;
        }
        .info-item {
            display: flex;
            margin-bottom: 12px;
        }
        .info-label {
            font-weight: 600;
            color: #4b5563;
            min-width: 120px;
            margin-right: 15px;
        }
        .info-value {
            color: #111827;
            flex: 1;
        }
        .warranty-box {
            background-color: #f0f9ff;
            border: 2px solid #3b82f6;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
            font-style: italic;
        }
        .requirements-list {
            background-color: #fef3c7;
            border-left: 4px solid #f59e0b;
            padding: 20px;
            margin: 20px 0;
            border-radius: 6px;
        }
        .requirements-list ul {
            margin: 0;
            padding-left: 20px;
        }
        .requirements-list li {
            margin: 8px 0;
            line-height: 1.6;
        }
        .contract-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 15px 0;
        }
        .contract-badge {
            background-color: #dcfce7;
            color: #166534;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            border: 2px solid #bbf7d0;
        }
        .contract-badge::before {
            content: "📄 ";
        }
        .notice-section {
            background-color: #fef2f2;
            border-left-color: #ef4444;
            border: 2px solid #fecaca;
        }
        .notice-list {
            list-style: disc;
            padding-left: 20px;
            margin: 15px 0;
        }
        .notice-list li {
            margin: 10px 0;
            line-height: 1.6;
            color: #7f1d1d;
        }
        .closing {
            margin-top: 40px;
            padding: 30px;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border-radius: 10px;
            text-align: center;
            font-style: italic;
            color: #4b5563;
        }
        .highlight-arrow {
            font-size: 18px;
            font-weight: bold;
            color: #dc2626;
            text-align: center;
            margin: 20px 0;
            background-color: #fef2f2;
            padding: 10px;
            border-radius: 6px;
            display: inline-block;
        }
        .footer-note {
            margin-top: 30px;
            padding: 20px;
            background-color: #f9fafb;
            border-radius: 6px;
            font-size: 14px;
            color: #6b7280;
            border: 1px solid #e5e7eb;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- Header -->
        <div class="header">
            <div class="company-logo">{{t 'email.company_name'}}</div>
        </div>

        <!-- Greeting -->
        <div class="greeting">
            안녕하세요.<br><br>
            귀사 일익 번창하심을 기원합니다.<br><br>
            폐사는 귀사와 표제 프로젝트의 품목에 대한 거래를 위해<br>
            다음 품목에 대해 귀사의 견적 제출을 요청하오니 아래 내용 및 당사 시스템 접속하시어<br>
            견적의 상세 내용 확인하신 뒤 견적마감일까지 견적 제출 바랍니다.<br><br>
            귀사의 견적은 반드시 견적마감일 이전에 폐사로 제출되어야 하며,<br>
            견적마감일 전 별도의 지연 통보 없이 미제출될 경우에는 대상에서 제외될 수 있습니다.
        </div>

        <!-- RFQ Information -->
        <div class="rfq-info">
            <div class="rfq-title">{{rfqTitle}}</div>
            <div class="rfq-code">RFQ No: {{rfqCode}}</div>
        </div>

        <!-- 1. 프로젝트 정보 -->
        <div class="project-section">
            <div class="section-title">1. 프로젝트 정보</div>
            <div class="info-grid">
                <div class="info-item">
                    <div class="info-label">프로젝트정보</div>
                    <div class="info-value">[{{projectCode}}] {{projectName}}</div>
                </div>
                <div class="info-item">
                    <div class="info-label">고객정보</div>
                    <div class="info-value">{{customerName}} ({{customerCode}})</div>
                </div>
                <div class="info-item">
                    <div class="info-label">선종</div>
                    <div class="info-value">{{shipType}} ({{shipClass}})</div>
                </div>
                <div class="info-item">
                    <div class="info-label">척수</div>
                    <div class="info-value">{{shipCount}}척</div>
                </div>
                <div class="info-item">
                    <div class="info-label">선급</div>
                    <div class="info-value">{{projectFlag}}</div>
                </div>
                <div class="info-item">
                    <div class="info-label">국적</div>
                    <div class="info-value">{{flag}}</div>
                </div>
                <div class="info-item">
                    <div class="info-label">계약발효일</div>
                    <div class="info-value">{{contractStartDate}} - {{contractEndDate}}</div>
                </div>
                <div class="info-item">
                    <div class="info-label">Key Event</div>
                    <div class="info-value">(S/C) {{scDate}} - (D/L) {{dlDate}}</div>
                </div>
            </div>
        </div>

        <!-- 2. 견적요청 정보 -->
        <div class="rfq-section">
            <div class="section-title">2. 견적요청 정보</div>
            <div class="info-grid">
                <div class="info-item">
                    <div class="info-label">PKG 정보</div>
                    <div class="info-value">[{{packageNo}}] {{packageName}}</div>
                </div>
                <div class="info-item">
                    <div class="info-label">자재그룹 정보</div>
                    <div class="info-value">[{{materialGroup}}] {{materialGroupDesc}}</div>
                </div>
                <div class="info-item">
                    <div class="info-label">품목</div>
                    <div class="info-value">{{#if itemCode}}{{itemCode}} - {{/if}}{{itemName}}</div>
                </div>
                <div class="info-item">
                    <div class="info-label">품목 수</div>
                    <div class="info-value">{{itemCount}}개</div>
                </div>
                <div class="info-item">
                    <div class="info-label">PR 번호</div>
                    <div class="info-value">{{#if prNumber}}{{prNumber}}{{else}}해당없음{{/if}}</div>
                </div>
                <div class="info-item">
                    <div class="info-label">PR 발행일</div>
                    <div class="info-value">{{#if prIssueDate}}{{prIssueDate}}{{else}}해당없음{{/if}}</div>
                </div>
            </div>

            <div class="warranty-box">
                <strong>Warranty</strong> {{warrantyDescription}}<br>
                {{repairDescription}}<br>
                {{totalWarrantyDescription}}
            </div>

            <div class="requirements-list">
                <strong>필수제출정보</strong>
                <ul>
                    {{#each requiredDocuments}}
                    <li>{{this}}</li>
                    {{/each}}
                </ul>
            </div>
        </div>

        <!-- 3. 필수 기본계약 -->
        <div class="contract-section">
            <div class="section-title">3. 필수 기본계약</div>
            <div class="contract-badges">
                {{#if contractRequirements.hasNda}}<span class="contract-badge">{{contractRequirements.ndaDescription}}</span>{{/if}}
                {{#if contractRequirements.hasGeneralGtc}}<span class="contract-badge">{{contractRequirements.generalGtcDescription}}</span>{{/if}}
                {{#if contractRequirements.hasProjectGtc}}<span class="contract-badge">{{contractRequirements.projectGtcDescription}}</span>{{/if}}
                {{#if contractRequirements.hasAgreement}}<span class="contract-badge">{{contractRequirements.agreementDescription}}</span>{{/if}}
            </div>

        </div>

        <!-- 4. 유의사항 -->
        <div class="notice-section">
            <div class="section-title">4. 유의사항</div>
            <ul class="notice-list">
                <li>발주자는 최저가 견적을 제출하지 않은 협력사를 선정할 수 있으며, 견적의 일부 또는 전부를 승인하거나 거절할 수 있고 거부하는 경우 별도 통보할 의무가 없다. 또한, 최종 탈락 사실을 통보할 의무도 없다.</li>
                <li>협력사는 견적 제출을 위해 소요되는 비용 일체를 부담하며, 최종 계약자로 선정되지 못한 경우에도 발주자에게 보상을 청구할 수 없다. 또한, 선주 승인조건으로 선정된 협력사는 반드시 선주 승인을 득한 후 작업에 착수하여야 하며, 승인 거절 시 계약은 미 체결, 해제될 수 있고 이 경우 협력사는 어떠한 보상도 청구할 수 없다.</li>
            </ul>
        </div>

        <!-- Closing -->
        <div class="closing">
            이번 기회를 통하여 귀사와의 협업으로 다가올 미래 조선/해양산업 시장에서 함께 성장해 나갈 수 있기를 기대합니다.
        </div>

        <!-- Footer Note -->
        <div class="footer-note">
            <p><strong>📧 발송 정보:</strong></p>
            <p>수신: {{vendorName}} ({{vendorCountry}})</p>
            <p>발신: {{companyName}} {{picName}} 프로 {{picTeam}}</p>
            <p>견적마감일: {{formattedDueDate}}</p>
            <p>발송일시: {{formatDate now 'YYYY-MM-DD HH:mm:ss'}}</p>
            <p>시스템: {{systemName}}</p>
            {{#if hasAttachments}}
            <p>첨부파일: {{attachmentsCount}}개 포함</p>
            {{/if}}
        </div>
    </div>
</body>
</html>