contract_GOLDSUN.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <style>
  9. @page {
  10. width: 210mm;
  11. height: 297mm;
  12. }
  13. * {
  14. margin: 0;
  15. padding: 0;
  16. font-family: 'Times New Roman', "SimSun";
  17. }
  18. html,
  19. body {
  20. width: 100%;
  21. height: 100%;
  22. font-size: 9px;
  23. }
  24. .con {
  25. text-align: center;
  26. }
  27. .title {
  28. font-size: 11px;
  29. }
  30. table td {
  31. padding: 1px;
  32. vertical-align: top;
  33. }
  34. .tip {
  35. width: 100%;
  36. height: 40px;
  37. text-align: left;
  38. }
  39. .tip tr td:nth-child(1) {
  40. width: 80px;
  41. }
  42. .putImg {
  43. position: relative;
  44. width: 100%;
  45. }
  46. /* .putImg img {
  47. position: absolute;
  48. width: 200px;
  49. height: 200px;
  50. left: 35%;
  51. margin-left: -200px;
  52. } */
  53. .one {
  54. width: 100%;
  55. text-align: left;
  56. border-top: 1px solid black;
  57. border-bottom: 1px solid black;
  58. border-left: 1px solid black;
  59. }
  60. thead {
  61. font-weight: 600;
  62. }
  63. .one tr td {
  64. border-right: 1px solid black;
  65. }
  66. .two {
  67. width: 100%;
  68. text-align: left;
  69. border-top: 1px solid black;
  70. border-left: 1px solid black;
  71. }
  72. .two td {
  73. border: 0;
  74. border-right: 1px solid black;
  75. border-bottom: 1px solid black;
  76. }
  77. .border {
  78. border-right: 1px solid black;
  79. }
  80. .ta_inner thead {
  81. color: #0647eb;
  82. }
  83. .ta_inner tr td {
  84. border: 0 !important;
  85. }
  86. .three {
  87. width: 100%;
  88. border: 1px solid black;
  89. /* text-align: left; */
  90. }
  91. .three thead {
  92. text-align: center;
  93. line-height: 30px;
  94. color: #0647eb;
  95. }
  96. .three th {
  97. border-right: 1px solid black;
  98. border-bottom: 1px solid black;
  99. }
  100. .three td {
  101. line-height: 30px;
  102. border-right: 1px solid black;
  103. border-bottom: 1px solid black;
  104. /* border-right: 1px solid black; */
  105. }
  106. .four {
  107. width: 100%;
  108. border-left: 1px solid black;
  109. border-top: 1px solid black;
  110. text-align: left;
  111. line-height: 15px;
  112. }
  113. .four tr td {
  114. vertical-align: middle;
  115. border-right: 1px solid black;
  116. border-bottom: 1px solid black;
  117. }
  118. .five {
  119. width: 100%;
  120. border-top: 1px solid black;
  121. border-left: 1px solid black;
  122. }
  123. .five tr td {
  124. vertical-align: middle;
  125. border-right: 1px solid black;
  126. border-bottom: 1px solid black;
  127. }
  128. </style>
  129. </head>
  130. <body style="font-size: 13px;">
  131. <div class="con">
  132. <table border="0" cellpadding="0" cellspacing="0" style="margin:auto">
  133. <tr style="white-space: nowrap;">
  134. <td style="width: 70px; padding-right: 10px; vertical-align: middle">
  135. <!-- 企业logo -->
  136. <img th:src="${huaWeiUrl}+${company.logo}" alt="" fit="scale-down" style="height: 60px; width: 60px;" />
  137. </td>
  138. <td style="text-align: center;vertical-align: middle">
  139. <!-- 企业英文名称 -->
  140. <h2>
  141. <div style="margin-bottom: 5px;font-weight: 700" th:text="${company.nameEnglish}" />
  142. </h2>
  143. <!-- 企业地址 -->
  144. <div class="title" th:text="'Add: '+${company.addressEnglish}+','+
  145. ${company.cityEnglish}+','+
  146. ${company.provinceEnglish}+','+
  147. ${company.countryEnglish}+','+
  148. ${company.zipCode}" />
  149. </td>
  150. <td style="width: 70px;"></td>
  151. </tr>
  152. </table>
  153. <div class="title">
  154. <h2 style="color: #0647eb; padding: 10px">PROFORMA INVOICE</h2>
  155. </div>
  156. <!-- 左上角的表格单号和日期 -->
  157. <table class="tip">
  158. <tr>
  159. <td style="width: 60%">PI NO.:<span th:text="${contract.code}" /></td>
  160. <td></td>
  161. </tr>
  162. <tr>
  163. <td>PI DATE:<span th:text="${approvedDate}" /></td>
  164. <td></td>
  165. </tr>
  166. </table>
  167. <!-- 第一个表格 -->
  168. <div class="putImg" style="position: relative">
  169. <div style="position: absolute;top:0px;left: 10px"><img style="width: 200px; height: 200px;" th:src="${huaWeiUrl}+${company.companySeal}" alt="" srcset="" /></div>
  170. <table class="one" cellspacing="0" cellpadding="0">
  171. <thead>
  172. <tr>
  173. <!-- 卖方 -->
  174. <td width="50%" style="color: #0647eb;">VENDOR:</td>
  175. <!-- 买方 -->
  176. <td style="color: #0647eb;">BUYER:</td>
  177. </tr>
  178. </thead>
  179. <tbody>
  180. <tr style="position: relative">
  181. <td>
  182. <!-- 卖方名称 -->
  183. <span th:text="${company.nameEnglish}" />
  184. </td>
  185. <td>
  186. <!-- 买方名称 -->
  187. <span th:text="${contract.customerCompanyName}" />
  188. </td>
  189. </tr>
  190. <tr style="height:20px">
  191. <td></td>
  192. <td></td>
  193. </tr>
  194. <tr>
  195. <td>
  196. <!-- 卖方地址+邮编+市+省+国家 -->
  197. <span th:text="${company.addressEnglish}+', '+${company.zipCode}+', '+${company.cityEnglish}+', '+${company.provinceEnglish}+', '+${company.countryEnglish}" />
  198. </td>
  199. <td>
  200. <p th:if="${contract.customerCityName != contract.customerState}">
  201. <!-- 买方地址+邮编+市+省+国家 -->
  202. <span th:text="${contract.customerAddr}+', '+${contract.customerZipCode}+', '+${contract.customerCityName}+', '+${contract.customerState}+', '+${contract.customerCountryEnName} " />
  203. </p>
  204. <p th:if="${contract.customerCityName == contract.customerState}">
  205. <!-- 买方地址+邮编+市+国家 -->
  206. <span th:text="${contract.customerAddr}+', '+${contract.customerZipCode}+', '+${contract.customerCityName}+', '+${contract.customerCountryEnName} " />
  207. </p>
  208. <!-- 买方其他信息家 -->
  209. <span th:text="${contract.customerOtherMsg}" />
  210. </td>
  211. </tr>
  212. <tr style="height:20px">
  213. <td></td>
  214. <td></td>
  215. </tr>
  216. <tr>
  217. <td>
  218. <table class="ta_inner">
  219. <tr>
  220. <td>CONTACT:</td>
  221. <td>
  222. <!-- 卖方联系人 -->
  223. <span th:text="${company.contacts}" />
  224. </td>
  225. </tr>
  226. </table>
  227. </td>
  228. <td>
  229. <table class="ta_inner">
  230. <tr>
  231. <td>
  232. CONTACT:
  233. </td>
  234. <td>
  235. <!-- 买方联系人 -->
  236. <span th:text="${contract.customerName}" />
  237. </td>
  238. </tr>
  239. </table>
  240. </td>
  241. </tr>
  242. <tr>
  243. <td>
  244. <table class="ta_inner">
  245. <tr>
  246. <td>TEL.:</td>
  247. <td>
  248. <!-- 卖方联系电话 -->
  249. <span th:text="${company.mobile}" />
  250. </td>
  251. </tr>
  252. </table>
  253. </td>
  254. <td>
  255. <table class="ta_inner">
  256. <tr>
  257. <td>
  258. TEL.:
  259. </td>
  260. <td>
  261. <!-- 买方联系电话 -->
  262. <span th:text="${contract.customerTel}" />
  263. </td>
  264. </tr>
  265. </table>
  266. </td>
  267. </tr>
  268. </tbody>
  269. </table>
  270. </div>
  271. <br />
  272. <!-- 第二个表格 -->
  273. <table class="two" cellspacing="0" cellpadding="0" border="0">
  274. <tr>
  275. <td width="33.33%">
  276. <table class="ta_inner" cellspacing="0" cellpadding="0" border="0px">
  277. <thead>
  278. <tr>
  279. <!-- 原产国 -->
  280. <td>COUNTRY OF ORIGIN:</td>
  281. </tr>
  282. </thead>
  283. <tr>
  284. <td>
  285. <!-- 卖方国家名称 -->
  286. <span th:text="${company.countryEnglish}" />
  287. </td>
  288. </tr>
  289. </table>
  290. </td>
  291. <td width="33.33%">
  292. <table class="ta_inner">
  293. <thead>
  294. <tr>
  295. <!-- 目的国 -->
  296. <td>COUNTRY OF DESTINATION:</td>
  297. </tr>
  298. </thead>
  299. <tr>
  300. <td>
  301. <span th:text="${contract.customerCountryId}" />
  302. </td>
  303. </tr>
  304. </table>
  305. </td>
  306. <td>
  307. <table class="ta_inner">
  308. <thead>
  309. <tr>
  310. <!-- 装运港 -->
  311. <td>PLACE OF DISCHARGE:</td>
  312. </tr>
  313. </thead>
  314. <tr>
  315. <!-- 装运港 -->
  316. <td th:if="${contract.shippingType} eq 1">
  317. <span th:text="${contract.wharf}" />
  318. </td>
  319. <td th:if="${contract.shippingType} eq 2">
  320. <span th:text="${contract.wharf}" />
  321. </td>
  322. <td th:if="${contract.shippingType} eq 3">
  323. <span th:text="${company.cityEnglish}" />
  324. </td>
  325. </tr>
  326. </table>
  327. </td>
  328. </tr>
  329. <tr>
  330. <td>
  331. <table class="ta_inner">
  332. <thead>
  333. <tr>
  334. <!-- 贸易方式 -->
  335. <td>TERMS OF DELIVERY:</td>
  336. </tr>
  337. </thead>
  338. <tr>
  339. <td>
  340. <!-- 贸易方式 -->
  341. <span th:text="${contract.tradeModeName}" />
  342. </td>
  343. </tr>
  344. </table>
  345. </td>
  346. <td>
  347. <table class="ta_inner">
  348. <thead>
  349. <tr>
  350. <!-- 货币代码 -->
  351. <td>CURRENCY:</td>
  352. </tr>
  353. </thead>
  354. <tr>
  355. <td>
  356. <!-- 货币代码 -->
  357. <span th:text="${currencyCode}" />
  358. </td>
  359. </tr>
  360. </table>
  361. </td>
  362. <td>
  363. <table class="ta_inner">
  364. <thead>
  365. <tr>
  366. <!-- 运输方式 -->
  367. <td>EXPORT BY/VIA:</td>
  368. </tr>
  369. </thead>
  370. <tr>
  371. <!-- 运输方式 -->
  372. <td th:if="${contract.shippingType} eq 1">BY AIR</td>
  373. <td th:if="${contract.shippingType} eq 2">BY SEA</td>
  374. <td th:if="${contract.shippingType} eq 3">BY EXPRESS</td>
  375. </tr>
  376. </table>
  377. </td>
  378. </tr>
  379. <tr>
  380. <td>
  381. <table class="ta_inner">
  382. <thead>
  383. <tr>
  384. <!-- 交货期 -->
  385. <td>DELIVERY TIME:</td>
  386. </tr>
  387. </thead>
  388. <tr>
  389. <td>
  390. <!-- 交货期 -->
  391. <span th:text="${contract.deliveryDay}" />DAYS
  392. </td>
  393. </tr>
  394. </table>
  395. </td>
  396. <td colspan="2">
  397. <table class="ta_inner">
  398. <thead>
  399. <tr>
  400. <!-- 付款条件 -->
  401. <td>TERMS OF PAYMENT:</td>
  402. </tr>
  403. </thead>
  404. <tr>
  405. <td>
  406. <!-- 付款条件 -->
  407. <span th:text="${contract.paymentRemark}" />
  408. </td>
  409. </tr>
  410. </table>
  411. </td>
  412. </tr>
  413. </table>
  414. <br />
  415. <!-- 第三个表格 -->
  416. <table class="three" cellspacing="0" cellpadding="0" border="0">
  417. <thead>
  418. <tr>
  419. <th style="width: 10%">
  420. NO.
  421. </th>
  422. <th style="width: 35%">
  423. <!-- 货物描述 -->
  424. COMMODITY, SPECIFICATION
  425. </th>
  426. <th style="width: 12%">
  427. UNIT
  428. </th>
  429. <th style="width: 13%">
  430. QUANTITY
  431. </th>
  432. <th style="width: 15%">
  433. UNIT PRICE
  434. </th>
  435. <th style="width: 15%; border-right: 0;">
  436. TOTAL PRICE
  437. </th>
  438. </tr>
  439. </thead>
  440. <tr th:each="product,index:${products}">
  441. <td>
  442. <span th:text="${index.index}+1" />
  443. </td>
  444. <td>
  445. <span th:text="${product.productNameEn}" />
  446. <!-- <br />
  447. HS CODE:<span th:text="${product.customsCode}" /> -->
  448. </td>
  449. <td>
  450. <span th:text="${product.unit}" />
  451. </td>
  452. <td>
  453. <span th:text="${product.quantity}" />
  454. </td>
  455. <td>
  456. <span th:text="${currencyType}+''+${product.price}" />
  457. </td>
  458. <td style="border-right: 0;">
  459. <span th:text="${currencyType}+''+${product.sumPrice}" />
  460. </td>
  461. </tr>
  462. <tr style="color: #0647eb;">
  463. <td colspan="2" style="font-weight: 600;">
  464. SUBTOTAL:
  465. </td>
  466. <td></td>
  467. <td>
  468. <span th:text="${productTotalCount}" />
  469. </td>
  470. <td></td>
  471. <td style="border-right: 0;">
  472. <span th:text="${currencyType}+''+${productTotalAmount}" />
  473. </td>
  474. </tr>
  475. <tr th:each="project,index:${projects}">
  476. <td colspan="5" style="text-align: right; font-weight: 600; color: #0647eb;">
  477. <span th:text="${project.projectName}" />:
  478. </td>
  479. <td style="border-right: 0;">
  480. <span th:text="${currencyType}+''+${project.projectPrice}" />
  481. </td>
  482. </tr>
  483. <tr>
  484. <td colspan="5" style="text-align: right; font-weight: 600; color: #0647eb;">
  485. TOTAL PRICE:
  486. <!-- <span th:text="${contract.tradeModeName}" /> VALUE: -->
  487. </td>
  488. <td style="border-right: 0;">
  489. <span th:text="${currencyType}+''+${contractTotalAmount}" />
  490. </td>
  491. </tr>
  492. <tr>
  493. <td colspan="6" style="text-align: left; border-right: 0; border-bottom: 0; font-weight: 600;">
  494. <span th:text="${moneyEn}" />
  495. </td>
  496. </tr>
  497. </table>
  498. <br />
  499. <!-- 第四个表格 -->
  500. <table class="four" cellspacing="0" cellpadding="0">
  501. <thead>
  502. <tr>
  503. <th style="width: 100%; color: #0647eb; text-align: left; font-weight: 600;; border-bottom: 1px solid black;">
  504. ACCOUNT INFORMATION:
  505. </th>
  506. </tr>
  507. </thead>
  508. <tr>
  509. <!-- paypal -->
  510. <td th:if="${contract.payWay} eq 1">
  511. <p>
  512. <!-- 账号 -->
  513. <span th:text="${contract.companyBankCard}" />
  514. </p>
  515. </td>
  516. <!-- 银行 -->
  517. <td th:if="${contract.payWay} eq 2 or ${contract.payWay} eq 3">
  518. <p>
  519. <!-- 收款人名称 -->
  520. Beneficiary Name :<span th:text="${contract.collName}" />
  521. </p>
  522. <p>
  523. <!-- 银行名称 -->
  524. Beneficiary Bank :<span th:text="${contract.companyBankName}" />
  525. </p>
  526. <p>
  527. <!-- 银行地址 -->
  528. Beneficiary Bank Address :<span th:text="${contract.companyBankAddr}" />
  529. </p>
  530. <p>
  531. <!-- 企业账户卡号 -->
  532. Beneficiary Account Number :<span th:text="${contract.companyBankCard}" />
  533. </p>
  534. <p>
  535. <!-- 银行swift code -->
  536. Swift Code :<span th:text="${contract.companyBankSwiftCode}" />
  537. </p>
  538. <p>
  539. <!-- 收款人地址 -->
  540. Beneficiary Address:<span th:text="${contract.collAddress}" />
  541. </p>
  542. </td>
  543. <!-- 西联 -->
  544. <td th:if="${contract.payWay} eq 4">
  545. <p>
  546. <!-- 名 -->
  547. First Name(Forname): :<span th:text="${contract.companyBankCard}" />
  548. </p>
  549. <p>
  550. <!-- 姓 -->
  551. Last Name(Surname) :<span th:text="${contract.companyBankName}" />
  552. </p>
  553. </td>
  554. </tr>
  555. </table>
  556. <br />
  557. <br />
  558. <!-- 尾部 -->
  559. <table cellspacing="0" cellpadding="0" style="width:100%;border:0;text-align: left;">
  560. <thead style="color: #0647eb;">
  561. <tr>
  562. <td style="width: 50%">CONFIRMED BY VENDOR:</td>
  563. <td style="width: 50%">CONFIRMED BY BUYER:</td>
  564. </tr>
  565. </thead>
  566. <tr>
  567. <td style="width: 50%; position: relative;">
  568. <!-- 卖方:企业中英文名称 -->
  569. <span th:text="${company.nameEnglish}" />
  570. <div style="padding: 10px 0 0 10px; position: absolute; top: -160px">
  571. </div>
  572. </td>
  573. <td style="width: 50%; vertical-align: top">
  574. <!-- 买方:客户公司 -->
  575. <span th:text="${contract.customerCompanyName}" />
  576. </td>
  577. </tr>
  578. </table>
  579. </div>
  580. </body>
  581. </html>