quote-pdf.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>报价单</title>
  6. <style>
  7. * {
  8. margin: 0;
  9. padding: 0;
  10. box-sizing: border-box;
  11. }
  12. body {
  13. font-family: "SimSun", "Microsoft YaHei", Arial, sans-serif;
  14. font-size: 12px;
  15. line-height: 1.6;
  16. color: #333;
  17. padding: 20px;
  18. }
  19. .header {
  20. text-align: center;
  21. margin-bottom: 30px;
  22. border-bottom: 2px solid #333;
  23. padding-bottom: 20px;
  24. }
  25. .header h1 {
  26. font-size: 24px;
  27. font-weight: bold;
  28. margin-bottom: 10px;
  29. }
  30. .header .quote-no {
  31. font-size: 14px;
  32. color: #666;
  33. }
  34. .section {
  35. margin-bottom: 20px;
  36. }
  37. .section-title {
  38. font-size: 14px;
  39. font-weight: bold;
  40. background-color: #f5f5f5;
  41. padding: 8px 10px;
  42. margin-bottom: 10px;
  43. border-left: 4px solid #4caf50;
  44. }
  45. .info-table {
  46. width: 100%;
  47. border-collapse: collapse;
  48. margin-bottom: 15px;
  49. }
  50. .info-table td {
  51. padding: 6px 10px;
  52. border: 1px solid #ddd;
  53. }
  54. .info-table .label {
  55. width: 120px;
  56. background-color: #f9f9f9;
  57. font-weight: bold;
  58. }
  59. .product-table {
  60. width: 100%;
  61. border-collapse: collapse;
  62. margin-bottom: 15px;
  63. }
  64. .product-table th,
  65. .product-table td {
  66. padding: 8px 10px;
  67. border: 1px solid #ddd;
  68. text-align: left;
  69. }
  70. .product-table th {
  71. background-color: #4caf50;
  72. color: white;
  73. font-weight: bold;
  74. text-align: center;
  75. }
  76. .product-table .text-right {
  77. text-align: right;
  78. }
  79. .product-table .text-center {
  80. text-align: center;
  81. }
  82. .product-table tbody tr:nth-child(even) {
  83. background-color: #f9f9f9;
  84. }
  85. .amount-summary {
  86. width: 400px;
  87. float: right;
  88. margin-top: 20px;
  89. }
  90. .amount-summary table {
  91. width: 100%;
  92. border-collapse: collapse;
  93. }
  94. .amount-summary td {
  95. padding: 8px 10px;
  96. border: 1px solid #ddd;
  97. }
  98. .amount-summary .label {
  99. width: 150px;
  100. background-color: #f9f9f9;
  101. font-weight: bold;
  102. }
  103. .amount-summary .value {
  104. text-align: right;
  105. font-weight: bold;
  106. }
  107. .amount-summary .final-amount {
  108. background-color: #4caf50;
  109. color: white;
  110. font-size: 16px;
  111. }
  112. .terms {
  113. clear: both;
  114. padding-top: 20px;
  115. }
  116. .terms .content {
  117. padding: 10px;
  118. border: 1px solid #ddd;
  119. background-color: #fafafa;
  120. min-height: 60px;
  121. white-space: pre-wrap;
  122. }
  123. .footer {
  124. margin-top: 40px;
  125. padding-top: 20px;
  126. border-top: 1px solid #ddd;
  127. text-align: center;
  128. color: #666;
  129. font-size: 11px;
  130. }
  131. .signature {
  132. margin-top: 40px;
  133. display: flex;
  134. justify-content: space-between;
  135. }
  136. .signature .sign-box {
  137. width: 45%;
  138. }
  139. .signature .sign-line {
  140. border-bottom: 1px solid #333;
  141. margin-top: 40px;
  142. padding-bottom: 5px;
  143. }
  144. </style>
  145. </head>
  146. <body>
  147. <!-- 报价单头部 -->
  148. <div class="header">
  149. <h1>商务报价单</h1>
  150. <div class="quote-no">
  151. 编号: <span th:text="${quoteNo}">QUO20250101001</span> | 版本:
  152. <span th:text="${version}">V1.0</span>
  153. </div>
  154. </div>
  155. <!-- 基本信息 -->
  156. <div class="section">
  157. <div class="section-title">基本信息</div>
  158. <table class="info-table">
  159. <tr>
  160. <td class="label">报价主题</td>
  161. <td colspan="3" th:text="${quoteTitle}">
  162. 华为CRM系统采购报价
  163. </td>
  164. </tr>
  165. <tr>
  166. <td class="label">客户名称</td>
  167. <td th:text="${customerName}">华为技术有限公司</td>
  168. <td class="label">报价日期</td>
  169. <td th:text="${quoteDate}">2025-01-10</td>
  170. </tr>
  171. <tr>
  172. <td class="label">联系人</td>
  173. <td th:text="${contactName}">张伟</td>
  174. <td class="label">有效期至</td>
  175. <td th:text="${expireDate}">2025-02-09</td>
  176. </tr>
  177. <tr>
  178. <td class="label">联系电话</td>
  179. <td th:text="${contactMobile}">13800138000</td>
  180. <td class="label">负责人</td>
  181. <td th:text="${ownerUserName}">张三</td>
  182. </tr>
  183. <tr>
  184. <td class="label">联系邮箱</td>
  185. <td colspan="3" th:text="${contactEmail}">
  186. zhangwei@huawei.com
  187. </td>
  188. </tr>
  189. </table>
  190. </div>
  191. <!-- 产品明细 -->
  192. <div class="section">
  193. <div class="section-title">产品明细</div>
  194. <table class="product-table">
  195. <thead>
  196. <tr>
  197. <th style="width: 50px">序号</th>
  198. <th style="width: 120px">产品编号</th>
  199. <th>产品名称</th>
  200. <th style="width: 100px">规格型号</th>
  201. <th style="width: 60px">单位</th>
  202. <th style="width: 80px">数量</th>
  203. <th style="width: 100px">单价(元)</th>
  204. <th style="width: 80px">折扣(%)</th>
  205. <th style="width: 120px">小计(元)</th>
  206. </tr>
  207. </thead>
  208. <tbody>
  209. <tr th:each="product, iterStat : ${productList}">
  210. <td class="text-center" th:text="${iterStat.count}">
  211. 1
  212. </td>
  213. <td th:text="${product.productNo}">PRO001</td>
  214. <td th:text="${product.productName}">CRM管理系统</td>
  215. <td th:text="${product.model}">标准版</td>
  216. <td class="text-center" th:text="${product.unit}">
  217. 套
  218. </td>
  219. <td class="text-right" th:text="${product.quantity}">
  220. 1
  221. </td>
  222. <td
  223. class="text-right"
  224. th:text="${#numbers.formatDecimal(product.price, 1, 2)}"
  225. >
  226. 50000.00
  227. </td>
  228. <td
  229. class="text-center"
  230. th:text="${product.discount != null ? product.discount : 0}"
  231. >
  232. 0
  233. </td>
  234. <td
  235. class="text-right"
  236. th:text="${#numbers.formatDecimal(product.subtotal, 1, 2)}"
  237. >
  238. 50000.00
  239. </td>
  240. </tr>
  241. </tbody>
  242. </table>
  243. </div>
  244. <!-- 金额汇总 -->
  245. <div class="amount-summary">
  246. <table>
  247. <tr>
  248. <td class="label">产品总额:</td>
  249. <td class="value" th:text="${totalAmount}">150000.00</td>
  250. </tr>
  251. <tr>
  252. <td class="label">整单折扣:</td>
  253. <td
  254. class="value"
  255. th:text="${discountRate != null ? discountRate + '%' : '0%'}"
  256. >
  257. 10%
  258. </td>
  259. </tr>
  260. <tr>
  261. <td class="label">折扣金额:</td>
  262. <td class="value" th:text="${discountAmount}">15000.00</td>
  263. </tr>
  264. <tr class="final-amount">
  265. <td class="label">最终金额:</td>
  266. <td class="value" th:text="${finalAmount}">135000.00</td>
  267. </tr>
  268. </table>
  269. </div>
  270. <!-- 报价条款 -->
  271. <div class="section terms">
  272. <div class="section-title">付款条款</div>
  273. <div class="content" th:text="${paymentTerms}">
  274. 合同签订后7个工作日内支付30%预付款
  275. </div>
  276. </div>
  277. <div class="section terms">
  278. <div class="section-title">交付条款</div>
  279. <div class="content" th:text="${deliveryTerms}">
  280. 付款到账后15个工作日内完成部署
  281. </div>
  282. </div>
  283. <div class="section terms" th:if="${remark != null and remark != ''}">
  284. <div class="section-title">备注说明</div>
  285. <div class="content" th:text="${remark}">备注信息</div>
  286. </div>
  287. <!-- 签名区域 -->
  288. <div class="signature">
  289. <div class="sign-box">
  290. <div>供应商签字(盖章):</div>
  291. <div class="sign-line"></div>
  292. <div style="margin-top: 10px">日期: __________</div>
  293. </div>
  294. <div class="sign-box">
  295. <div>客户签字(盖章):</div>
  296. <div class="sign-line"></div>
  297. <div style="margin-top: 10px">日期: __________</div>
  298. </div>
  299. </div>
  300. <!-- 页脚 -->
  301. <div class="footer">
  302. <div>本报价单仅在有效期内有效,过期需重新确认价格</div>
  303. <div>
  304. 如有疑问,请联系负责人:
  305. <span th:text="${ownerUserName}">张三</span>
  306. </div>
  307. </div>
  308. </body>
  309. </html>