userCenterTaberListPrint.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <template>
  2. <div id="print">
  3. <div style="text-align: center;color: #000;font-size: 18px;font-weight: 700;">
  4. <div>{{$i18n.locale=='zh'?'全球能源互联网发展合作组织及':'Global energy Internet development cooperation organization and'}}</div>
  5. <div>{{$i18n.locale=='zh'?'全球能源互联网联盟成员申请表':'Global energy Internet alliance membership application form'}}</div>
  6. </div>
  7. <div style="width: 100%;margin-top: 10px;" class="border">
  8. <div class="table-head">
  9. <table>
  10. <colgroup>
  11. <col style="width: 80px;" />
  12. <col />
  13. </colgroup>
  14. <thead>
  15. <tr class="linkCenter"><th>{{$t('common.Basicinformationofapplicant')}}</th></tr>
  16. </thead>
  17. </table>
  18. </div>
  19. <div class="table-body">
  20. <table>
  21. <colgroup><col style="width: 80px;" /><col /></colgroup>
  22. <tbody class="linkCenter">
  23. <tr>
  24. <td :style="$i18n.locale=='zh'?'width: 30%':'width:40%'" class="black">{{$t('common.FullChinesenameofthecompany')}}</td>
  25. <td :style="$i18n.locale=='zh'?'width: 70%':'width:60%'">{{form.unitZhName}}</td>
  26. </tr>
  27. <tr>
  28. <td :style="$i18n.locale=='zh'?'width: 30%':'width:40%'" class="black">{{$t('common.FullEnglishnameofunit')}}</td>
  29. <td :style="$i18n.locale=='zh'?'width: 70%':'width:60%'">{{form.unitEnName}}</td>
  30. </tr>
  31. <tr>
  32. <td :style="$i18n.locale=='zh'?'width: 30%':'width:40%'" class="black">{{$t('common.Unitaddress')}}</td>
  33. <td :style="$i18n.locale=='zh'?'width: 70%':'width:60%'">{{form.unitAddress}}</td>
  34. </tr>
  35. <tr>
  36. <td :style="$i18n.locale=='zh'?'width: 30%':'width:40%'" class="black">{{$t('common.PostalCode')}}</td>
  37. <td :style="$i18n.locale=='zh'?'width: 70%':'width:60%'">{{form.postalCode}}</td>
  38. </tr>
  39. <tr>
  40. <td :style="$i18n.locale=='zh'?'width: 30%':'width:40%'" class="black">{{$t('common.OfficialWebsite')}}</td>
  41. <td :style="$i18n.locale=='zh'?'width: 70%':'width:60%'">{{form.unitWebsite}}</td>
  42. </tr>
  43. <tr>
  44. <td :style="$i18n.locale=='zh'?'width: 30%':'width:40%'" class="black">{{$t('common.LegalRepresentative')}}</td>
  45. <td :style="$i18n.locale=='zh'?'width: 70%':'width:60%'" >{{form.corporateName}}</td>
  46. </tr>
  47. <tr>
  48. <td :style="$i18n.locale=='zh'?'width: 30%':'width:40%'" class="black">{{$t('common.Position')}}</td>
  49. <td :style="$i18n.locale=='zh'?'width: 70%':'width:60%'">{{form.duty}}</td>
  50. </tr>
  51. </tbody>
  52. </table>
  53. </div>
  54. <div style="width:100%">
  55. <div style="font-weight: 700;color: #000; text-align: center">{{$t('common.BriefIntroductionOfApplicant')}}</div>
  56. <p style="line-height: 30px;margin:0 40px 20px 20px;min-height: 200px;white-space:normal">{{form.unitIntroduction}}</p>
  57. </div>
  58. <div class="table-head">
  59. <table cellspacing="0" cellpadding="0"width="100%" height="100%">
  60. <colgroup>
  61. <col style="width: 80px;" />
  62. <col />
  63. </colgroup>
  64. <thead>
  65. <tr class="linkCenter"><th>{{$t('common.Contactbasicinformation')}}</th></tr>
  66. </thead>
  67. </table>
  68. </div>
  69. <div class="table-body">
  70. <table width="100%" cellpadding="0" cellspacing="0">
  71. <colgroup><col style="width: 80px;" /><col /></colgroup>
  72. <tbody class="linkCenter">
  73. <tr>
  74. <td style="width: 30%;" class="black">{{$t('common.fullName')}}</td>
  75. <td>{{form2.contactsName}}</td>
  76. <td class="black">{{$t('common.Department')}}</td>
  77. <td>{{form2.depart}}</td>
  78. </tr>
  79. <tr>
  80. <td class="black">{{$t('common.Position')}}</td>
  81. <td>{{form2.currentDuty}}</td>
  82. <td class="black">{{$t('common.ContactPhoneNumber')}}</td>
  83. <td>{{form2.telephoneNumber}}</td>
  84. </tr>
  85. <tr>
  86. <td class="black">{{$t('common.mobilePhone')}}</td>
  87. <td>{{form2.mobilePhone}}</td>
  88. <td class="black">{{$t('common.Emails')}}</td>
  89. <td>{{form2.email}}</td>
  90. </tr>
  91. <tr>
  92. <td class="black">{{$t('common.Fax')}}</td>
  93. <td>{{form2.faxNumber}}</td>
  94. </tr>
  95. </tbody>
  96. </table>
  97. </div>
  98. <div class="table-head" v-if="!form.leagueType">
  99. <table cellspacing="0" cellpadding="0"width="100%" height="100%">
  100. <colgroup>
  101. <col style="width: 80px;" />
  102. <col />
  103. </colgroup>
  104. <thead>
  105. <tr class="linkCenter"><th>{{$i18n.locale=='zh'?'全球能源互联网联盟':'Global Energy Internet '}}</th></tr>
  106. </thead>
  107. </table>
  108. </div>
  109. <div class="table-head">
  110. <table cellspacing="0" cellpadding="0"width="100%" height="100%">
  111. <colgroup>
  112. <col style="width: 80px;" />
  113. <col />
  114. </colgroup>
  115. <thead>
  116. <tr class="linkCenter"><th>{{$i18n.locale=='zh'?'选择加入的联盟':'Choose to join the Alliance'}}:</th></tr>
  117. </thead>
  118. </table>
  119. </div>
  120. <div class="table-body" v-if="form.leagueType">
  121. <table width="100%" cellpadding="0" cellspacing="0">
  122. <colgroup><col style="width: 80px;" /><col /></colgroup>
  123. <tbody class="linkCenter" >
  124. <div style="width: 100%;margin-top: 30px;margin-bottom: 30px;">
  125. <el-radio v-for="(item,index) in baseLeagueEntities" :label="form.leagueType.indexOf(item.leagueName) ==-1 ? index + 1 : index " v-model="index">{{$i18n.locale=='zh'?'全球能源互联网联盟':'Global Energy Internet '}}{{item.leagueName}}</el-radio>
  126. </div>
  127. </tbody>
  128. </table>
  129. </div>
  130. <div class="table-head">
  131. <table cellspacing="0" cellpadding="0"width="100%" height="100%">
  132. <colgroup>
  133. <col style="width: 80px;" />
  134. <col />
  135. </colgroup>
  136. <thead>
  137. <tr class="linkCenter"><span>{{$t('common.Statement')}}:</span></tr>
  138. </thead>
  139. </table>
  140. </div>
  141. <div class="table-body">
  142. <table width="100%" cellpadding="0" cellspacing="0">
  143. <div style="text-indent: 30px; line-height: 30px;">
  144. {{ $i18n.locale=='zh'?'本单位意愿加入全球能源互联网发展合作组织(GEIDCO),并遵守全球能源互联网发展合作组织章程。'
  145. :'We are willing to join the Global Energy Interconnection Development and Cooperation(GEIDCO) and abide by the articles of association of Global Energy Interconnection Development and Cooperation'}}
  146. </div>
  147. <div>{{$t('common.herebydeclarethat')}}:</div>
  148. <div style="margin-left: 65%;line-height: 30px;">
  149. <div style="margin-left: 30px;">{{$t('common.Unitseal')}}</div>
  150. <div>
  151. <span style="margin-right: 35px;">{{$t('common.year')}}</span>
  152. <span style="margin-right: 35px;">{{$t('common.Months')}}</span>
  153. <span style="margin-right: 35px;">{{$t('common.day')}}</span>
  154. </div>
  155. </div>
  156. </table>
  157. </div>
  158. </div>
  159. </div>
  160. </template>
  161. <script>
  162. import {getBaseLeagues } from '@/api/cooperation/baseLeagueEntity'
  163. export default {
  164. name:'userCenterTaberListPrint',
  165. props:['form',"form2"],
  166. data(){
  167. return{
  168. baseLeagueEntities:[],
  169. }
  170. },
  171. watch:{
  172. "$i18n.locale" () {
  173. this.getData();
  174. },
  175. },
  176. mounted(){
  177. this.getData();
  178. },
  179. methods:{
  180. getData(){
  181. getBaseLeagues({language:this.$i18n.locale.toUpperCase()}).then(result =>{
  182. const data = result.data
  183. this.baseLeagueEntities = data.baseLeagueInfos;
  184. });
  185. }
  186. }
  187. }
  188. </script>
  189. <style scoped>
  190. table{width: 80%;margin: 0 auto;border-collapse: collapse}
  191. #print .table-head{padding-right:17px;background-color:#e2efd9;color:#000;}
  192. #print.table-body{width:100%; }
  193. #print.table-head table,.table-body table{width:100%;}
  194. #print.table-body table tr:nth-child(2n+1){background-color:#f2f2f2;}
  195. .black {
  196. color: #000;
  197. font-weight: 700;
  198. font-size: 15px;
  199. }
  200. td {
  201. border: 1px solid #ccc;
  202. height: 40px;
  203. }
  204. .border {
  205. border: 1px solid #ccc;
  206. }
  207. @media print
  208. {
  209. table{
  210. border-collapse: collapse;
  211. border: none;
  212. width:100%;
  213. border: 1px solid #ccc;
  214. }
  215. td,th {
  216. padding:2px 4px;
  217. min-height:50px;
  218. line-height: 20px;
  219. font-size: 10px;
  220. border:1px solid #e6e6e6;
  221. }
  222. td,tr {
  223. /* width:15%; */
  224. font-size: 9px;
  225. background-color: #e5f5fb;
  226. background-color: #fbfbfb;
  227. border: 1px solid #ccc;
  228. }
  229. .none {
  230. display: none
  231. }
  232. span {
  233. margin-right:15px
  234. }
  235. .a4 {
  236. page-break-before: auto;
  237. page-break-after: always;
  238. }
  239. }
  240. .linkCenter{
  241. line-height:50px;
  242. text-align: center;
  243. }
  244. </style>