attorneytext.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <template>
  2. <div class="tableAllDate">
  3. <page-title>返回</page-title>
  4. <div id="pdfDom">
  5. <div class="blank"></div>
  6. <!-- 循环遍历传过来的数组中的所有的对象,生成多张提货委托书 -->
  7. <div
  8. v-for="(item, index) in amsShipDeliveryNameLists"
  9. :key="index"
  10. style="margin-top:40px"
  11. >
  12. <div class="title">
  13. <i class="titleText" align="center">委托书</i>
  14. </div>
  15. <div>
  16. <!-- tablePart0 -->
  17. <table
  18. border="0"
  19. cellpadding="10"
  20. cellspacing="0"
  21. style="margin: auto;font-size:20px;"
  22. width="1000px"
  23. class="tablePart0"
  24. >
  25. <tr>
  26. <td style="width :100%">
  27. 江苏{{ item.carrierName }}港口集团股份有限公司:
  28. </td>
  29. </tr>
  30. </table>
  31. </div>
  32. <div class="tableBody">
  33. <!-- tablePart1 -->
  34. <table
  35. border="0"
  36. cellpadding="10"
  37. cellspacing="0"
  38. style="margin-top: 5px;"
  39. width="1000px"
  40. class="tablePart1"
  41. >
  42. <tr>
  43. <td style="width :100%" padding-right="20px">
  44. 兹委任重庆市万州区万港船务有限公司
  45. 前来贵港办理我公司的货权提货和水路运输事宜,品种:{{
  46. item.materialName
  47. }};外轮船名:{{ item.resultForeignShipName }}; 数量:{{
  48. item.purchaseOrderMaterialNum
  49. }}
  50. 湿吨(如遇最后一批提货,须清场);物流流向:万州港。望贵公司予以支持为盼。
  51. </td>
  52. </tr>
  53. </table>
  54. <!-- tablePart2 -->
  55. <table
  56. border="0"
  57. cellpadding="10"
  58. cellspacing="0"
  59. style="
  60. border-top: 0px"
  61. width="1000px"
  62. class="tablePart2"
  63. >
  64. <tr>
  65. <th style="width :16.5%">提货联系人:</th>
  66. <td style="width :10.5%">
  67. {{ item.attorneyPickupContactPerson }}
  68. </td>
  69. <th style="width :14%">身份证号:</th>
  70. <td style="width :59%">{{ item.attorneyPickupIdcard }}</td>
  71. </tr>
  72. </table>
  73. <!-- tablePart3 -->
  74. <table
  75. border="0"
  76. cellpadding="10"
  77. cellspacing="0"
  78. style="
  79. border-top: 0px"
  80. width="1000px"
  81. class="tablePart3"
  82. >
  83. <tr>
  84. <th style="width :16.5%">联系电话:</th>
  85. <td style="width :83.5%">
  86. {{ item.attorneyContactTelephone }}
  87. </td>
  88. </tr>
  89. </table>
  90. <!-- tablePart4 -->
  91. <table
  92. border="1"
  93. cellpadding="10"
  94. cellspacing="0"
  95. style="
  96. border-top: 0px"
  97. width="1000px"
  98. class="tablePart4"
  99. >
  100. <tr>
  101. <th style="width :10.5%">顺颂商祺!</th>
  102. </tr>
  103. </table>
  104. <table
  105. border="1"
  106. cellpadding="10"
  107. cellspacing="0"
  108. style="
  109. border-top: 0px"
  110. width="1000px"
  111. class="tablePart5"
  112. >
  113. <tr>
  114. <th style="width :10.5%">(传真件/扫描件有效)</th>
  115. </tr>
  116. </table>
  117. </div>
  118. <div>
  119. <!-- tablePart6 -->
  120. <table
  121. border="0"
  122. cellpadding="10"
  123. cellspacing="0"
  124. style="margin: auto;margin-top: 5px;font-size:20px;"
  125. width="1000px"
  126. class="tablePart6"
  127. >
  128. <tr>
  129. <td style="width :48.5%">{{ item.shipperName }}</td>
  130. </tr>
  131. </table>
  132. </div>
  133. <div>
  134. <!-- tablePart7 -->
  135. <table
  136. border="0"
  137. cellpadding="10"
  138. cellspacing="0"
  139. style="margin: auto;margin-top: 5px;font-size:20px;"
  140. width="1000px"
  141. class="tablePart7"
  142. >
  143. <tr>
  144. <td style="width :63%"></td>
  145. <td style="width :5%">{{ item.year }}</td>
  146. <th style="width :8%">年</th>
  147. <td style="width :3%">{{ item.month }}</td>
  148. <th style="width :8%">月</th>
  149. <td style="width :3%">{{ item.date }}</td>
  150. <th style="width :5%">日</th>
  151. </tr>
  152. </table>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="buttns">
  157. <el-button class="buttn" type="primary" @click="getPdf()">
  158. <i class="el-icon-download">{{ "\xa0\xa0" }}</i
  159. >导出(pdf)
  160. </el-button>
  161. </div>
  162. </div>
  163. </template>
  164. <script>
  165. import table from "@/components/DilCommonUI/packages/table/src/table.vue";
  166. import PageTitle from "@/components/Page/Title";
  167. export default {
  168. components: { table },
  169. components: { PageTitle },
  170. name: "Login",
  171. data() {
  172. return {
  173. amsShipDeliveryNameLists: [],
  174. htmlTitle: "委托书"
  175. };
  176. },
  177. created() {
  178. this.getwts();
  179. },
  180. methods: {
  181. backScan() {
  182. this.$router.go(-2);
  183. },
  184. getwts() {
  185. // console.log(this.$route.params.test)
  186. this.amsShipDeliveryNameLists = JSON.parse(
  187. this.$route.params.test
  188. ).amsShipDeliveryNameList;
  189. console.log(this.amsShipDeliveryNameLists);
  190. // this.amsShipDeliveryNameLists = this.$route.params.test;
  191. console.log(this.amsShipDeliveryNameLists);
  192. this.amsShipDeliveryNameLists.forEach(e => {
  193. e.year = e.attorneyTime.split("-")[0];
  194. e.month = e.attorneyTime.split("-")[1];
  195. e.date = e.attorneyTime.split("-")[2].split(" ")[0];
  196. });
  197. }
  198. }
  199. };
  200. </script>
  201. <style lang="scss" scoped>
  202. .title {
  203. text-align: center;
  204. margin-bottom: 30px;
  205. .titleText {
  206. font-size: 30px;
  207. }
  208. }
  209. .buttns {
  210. display: flex;
  211. flex-wrap: nowrap;
  212. margin-top: 20px;
  213. margin-left: 900px;
  214. .buttn {
  215. margin-left: 10px;
  216. width: 130px;
  217. }
  218. }
  219. .tableBody {
  220. table,
  221. th,
  222. td {
  223. border: 0px solid black;
  224. font-size: 20px;
  225. margin: auto;
  226. }
  227. .tablePart1 th {
  228. border-top: 1px solid black;
  229. }
  230. .tablePart2 td,
  231. th {
  232. border-top: 0px;
  233. }
  234. .tablePart3 td,
  235. th {
  236. border-top: 0px;
  237. }
  238. .tablePart4 td,
  239. th {
  240. border-top: 0px;
  241. }
  242. .tablePart5 td,
  243. th {
  244. border-top: 0px;
  245. }
  246. }
  247. .blank {
  248. width: 100%;
  249. height: 50px;
  250. }
  251. </style>