attorneytext.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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: 25px"
  22. width="1000px"
  23. class="tablePart0"
  24. >
  25. <tr>
  26. <td style="width: 100%; font-family: FangSong">
  27. {{ item.pickupAllName }}:
  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
  44. style="width: 100%; font-family: FangSong; line-height: 40px"
  45. padding-right="20px"
  46. >
  47. &nbsp;&nbsp; 兹委任{{
  48. item.carrierName
  49. }}
  50. 前来贵港办理我公司的货权提货和水路运输事宜,品种:{{
  51. item.materialName
  52. }};外轮船名:{{ item.realForeignShipName }}; 数量:{{
  53. item.purchaseOrderMaterialNum
  54. }}
  55. 湿吨(如遇该轮最后一批提货请清场),物流流向:{{
  56. item.portName1
  57. }}。望贵公司予以支持为盼。
  58. </td>
  59. </tr>
  60. </table>
  61. <!-- tablePart2 -->
  62. <table
  63. border="0"
  64. cellpadding="10"
  65. cellspacing="0"
  66. style="border-top: 0px; line-height: 40px"
  67. width="1000px"
  68. class="tablePart2"
  69. >
  70. <tr>
  71. <th style="width: 3%"></th>
  72. <th
  73. style="width: 16.5%; padding-left: 2 px; font-family: FangSong"
  74. >
  75. 提货联系人:
  76. </th>
  77. <td style="width: 10.5%; font-family: FangSong">
  78. {{ item.attorneyPickupContactPerson }}
  79. </td>
  80. <th style="width: 3%"></th>
  81. <th style="width: 13%; font-family: FangSong">身份证号:</th>
  82. <td style="width: 59%; font-family: FangSong">
  83. {{ item.attorneyPickupIdcard }}
  84. </td>
  85. </tr>
  86. </table>
  87. <!-- tablePart3 -->
  88. <table
  89. border="0"
  90. cellpadding="10"
  91. cellspacing="0"
  92. style="border-top: 0px; line-height: 40px"
  93. width="1000px"
  94. class="tablePart3"
  95. >
  96. <tr>
  97. <th style="width: 3%"></th>
  98. <th style="width: 13.5%; font-family: FangSong">联系电话:</th>
  99. <td style="width: 98%; font-family: FangSong">
  100. {{ item.attorneyContactTelephone }}
  101. </td>
  102. </tr>
  103. </table>
  104. <!-- tablePart4 -->
  105. <table
  106. border="1"
  107. cellpadding="10"
  108. cellspacing="0"
  109. style="border-top: 0px; line-height: 40px"
  110. width="1000px"
  111. class="tablePart4"
  112. >
  113. <tr>
  114. <th style="width: 0.4%"></th>
  115. <th style="width: 12.5%; font-family: FangSong">顺颂商祺!</th>
  116. </tr>
  117. </table>
  118. <table
  119. border="1"
  120. cellpadding="10"
  121. cellspacing="0"
  122. style="border-top: 0px; line-height: 40px"
  123. width="1000px"
  124. class="tablePart5"
  125. >
  126. <tr>
  127. <th style="width: 0.3%"></th>
  128. <th style="width: 10.5%; font-family: FangSong">
  129. (传真件/扫描件有效)
  130. </th>
  131. </tr>
  132. </table>
  133. </div>
  134. <div class="luokuan">
  135. <!-- tablePart6 -->
  136. <table
  137. border="0"
  138. cellpadding="10"
  139. cellspacing="0"
  140. style="
  141. margin: auto;
  142. margin-top: 5px;
  143. font-size: 25px;
  144. line-height: 40px;
  145. "
  146. width="1000px"
  147. class="tablePart6"
  148. >
  149. <tr>
  150. <td style="width: 38%"></td>
  151. </tr>
  152. <tr>
  153. <td style="width: 38%"></td>
  154. </tr>
  155. <tr>
  156. <td style="width: 38%"></td>
  157. </tr>
  158. <tr>
  159. <td style="width: 38%"></td>
  160. </tr>
  161. <tr>
  162. <th style="width: 50px"></th>
  163. <th style="width: 50px"></th>
  164. <td style="width: 50px"></td>
  165. <td style="width: 50px"></td>
  166. <td style="width: 50px"></td>
  167. <td style="width: 38%; font-family: FangSong">
  168. {{ item.shipperName }}
  169. </td>
  170. </tr>
  171. </table>
  172. </div>
  173. <div>
  174. <!-- tablePart7 -->
  175. <table
  176. border="0"
  177. cellpadding="10"
  178. cellspacing="0"
  179. style="
  180. margin: auto;
  181. margin-top: 5px;
  182. font-size: 25px;
  183. font-family: FangSong;
  184. line-height: 40px;
  185. "
  186. width="1000px"
  187. class="tablePart7"
  188. >
  189. <tr>
  190. <td style="width: 63%"></td>
  191. <td style="width: 1%">{{ item.year }}</td>
  192. <th style="width: 3%">年</th>
  193. <td style="width: 0.7%">{{ item.month }}</td>
  194. <th style="width: 3%">月</th>
  195. <td style="width: 0.7%">{{ item.date }}</td>
  196. <th style="width: 3%">日</th>
  197. <th style="width: 5%"></th>
  198. </tr>
  199. </table>
  200. </div>
  201. </div>
  202. </div>
  203. <div class="buttns">
  204. <el-button class="buttn" type="primary" @click="getPdf()">
  205. <i class="el-icon-download">{{ "\xa0\xa0" }}</i
  206. >导出(委托书pdf)
  207. </el-button>
  208. </div>
  209. </div>
  210. </template>
  211. <script>
  212. import table from "@/components/DilCommonUI/packages/table/src/table.vue";
  213. import PageTitle from "@/components/Page/Title";
  214. export default {
  215. components: { table },
  216. components: { PageTitle },
  217. name: "Login",
  218. data() {
  219. return {
  220. amsShipDeliveryNameLists: [],
  221. htmlTitle: "委托书"
  222. };
  223. },
  224. created() {
  225. this.getwts();
  226. },
  227. methods: {
  228. backScan() {
  229. this.$router.go(-2);
  230. },
  231. getwts() {
  232. // console.log(this.$route.params.test)
  233. this.amsShipDeliveryNameLists = JSON.parse(
  234. this.$route.params.test
  235. ).amsShipDeliveryNameList;
  236. console.log(this.amsShipDeliveryNameLists);
  237. // this.amsShipDeliveryNameLists = this.$route.params.test;
  238. console.log(this.amsShipDeliveryNameLists);
  239. this.amsShipDeliveryNameLists.forEach(e => {
  240. e.year = e.attorneyTime.split("-")[0];
  241. e.month = e.attorneyTime.split("-")[1];
  242. e.date = e.attorneyTime.split("-")[2].split(" ")[0];
  243. });
  244. }
  245. }
  246. };
  247. </script>
  248. <style lang="scss" scoped>
  249. .title {
  250. text-align: center;
  251. margin-bottom: 30px;
  252. .titleText {
  253. font-size: 45px;
  254. font-family: SimSun;
  255. font-weight: 900;
  256. line-height: 40px;
  257. }
  258. }
  259. .buttns {
  260. display: flex;
  261. flex-wrap: nowrap;
  262. margin-top: 20px;
  263. margin-left: 465px;
  264. .buttn {
  265. margin-left: 10px;
  266. width: 260px;
  267. }
  268. }
  269. .luokuan {
  270. margin-top: 150px !important;
  271. }
  272. .tableBody {
  273. table,
  274. th,
  275. td {
  276. border: 0px solid black;
  277. font-size: 25px;
  278. margin: auto;
  279. }
  280. .tablePart1 th {
  281. border-top: 1px solid black;
  282. }
  283. .tablePart2 td,
  284. th {
  285. border-top: 0px;
  286. }
  287. .tablePart3 td,
  288. th {
  289. border-top: 0px;
  290. }
  291. .tablePart4 td,
  292. th {
  293. border-top: 0px;
  294. }
  295. .tablePart5 td,
  296. th {
  297. border-top: 0px;
  298. }
  299. }
  300. .blank {
  301. width: 100%;
  302. height: 50px;
  303. }
  304. </style>