personnelRoster.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <template>
  2. <div>
  3. <el-button class="box1" @click="daochu">导出</el-button>
  4. <div class="word" id="contents" style="font-family: 'fangsong'">
  5. <p
  6. style="
  7. font-size: 14pt;
  8. font-weight: 900;
  9. margin-botttom: 30px;
  10. color: black;
  11. text-align: center;
  12. "
  13. >
  14. 《人员名册》
  15. </p>
  16. <table
  17. border="1"
  18. style="
  19. border-collapse: collapse;
  20. border: none;
  21. mso-border-left-alt: 0.5pt solid windowtext;
  22. mso-border-top-alt: 0.5pt solid windowtext;
  23. mso-border-right-alt: 0.5pt solid windowtext;
  24. mso-border-bottom-alt: 0.5pt solid windowtext;
  25. mso-border-insideh: 0.5pt solid windowtext;
  26. mso-border-insidev: 0.5pt solid windowtext;
  27. mso-padding-alt: 0pt 0pt 0pt 0pt;
  28. "
  29. width="900"
  30. align="center"
  31. bordercolor="black"
  32. >
  33. <tbody>
  34. <tr class="JR_tr" height="40" align="center">
  35. <td class="JR_left" rowspan="2">日期</td>
  36. <td class="JR_left" colspan="3">编制人数</td>
  37. <td class="JR_left" colspan="3">在位人数</td>
  38. <td class="JR_left" colspan="3">超(缺)编人员情况</td>
  39. </tr>
  40. <tr class="JR_tr" height="40" align="center">
  41. <td class="JR_left">干部</td>
  42. <td class="JR_left">士官</td>
  43. <td class="JR_left">义务兵</td>
  44. <td class="JR_left">干部</td>
  45. <td class="JR_left">士官</td>
  46. <td class="JR_left">义务兵</td>
  47. <td class="JR_left">干部</td>
  48. <td class="JR_left">士官</td>
  49. <td class="JR_left">义务兵</td>
  50. </tr>
  51. <tr class="JR_tr" height="40" align="center">
  52. <td class="JR_right"></td>
  53. <td class="JR_right"></td>
  54. <td class="JR_right"></td>
  55. <td class="JR_right"></td>
  56. <td class="JR_right"></td>
  57. <td class="JR_right"></td>
  58. <td class="JR_right"></td>
  59. <td class="JR_right"></td>
  60. <td class="JR_right"></td>
  61. <td class="JR_right"></td>
  62. </tr>
  63. <tr class="JR_tr" height="40" align="center">
  64. <td></td>
  65. <td></td>
  66. <td></td>
  67. <td></td>
  68. <td></td>
  69. <td></td>
  70. <td></td>
  71. <td></td>
  72. <td></td>
  73. <td></td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. <p
  78. align="right"
  79. style="margin: 20px 200px 5px 0px; font-size: 16px; color: black"
  80. >
  81. 日期
  82. </p>
  83. <table
  84. border="1"
  85. style="
  86. border-collapse: collapse;
  87. border: none;
  88. mso-border-left-alt: 0.5pt solid windowtext;
  89. mso-border-top-alt: 0.5pt solid windowtext;
  90. mso-border-right-alt: 0.5pt solid windowtext;
  91. mso-border-bottom-alt: 0.5pt solid windowtext;
  92. mso-border-insideh: 0.5pt solid windowtext;
  93. mso-border-insidev: 0.5pt solid windowtext;
  94. mso-padding-alt: 0pt 0pt 0pt 0pt;
  95. "
  96. width="900"
  97. align="center"
  98. bordercolor="black"
  99. >
  100. <tbody>
  101. <tr class="JR_tr" height="40" align="center">
  102. <td class="JR_left">姓名</td>
  103. <td class="JR_left">职务</td>
  104. <td class="JR_left">军衔</td>
  105. <td class="JR_left">名族</td>
  106. <td class="JR_left">籍贯</td>
  107. <td class="JR_left">出生<br />年月</td>
  108. <td class="JR_left">入伍<br />年月</td>
  109. <td class="JR_left">
  110. 入党(团)<br />
  111. 时间
  112. </td>
  113. <td class="JR_left">文化<br />程度</td>
  114. <td class="JR_left">婚姻<br />状况</td>
  115. <td class="JR_left">家庭住址及联系方式</td>
  116. <td class="JR_left">备注</td>
  117. </tr>
  118. <tr class="JR_tr" height="40" align="center">
  119. <td class="JR_right">{{ message.name }}</td>
  120. <td class="JR_right">{{ message.postId }}</td>
  121. <td class="JR_right">{{ message.rankId }}</td>
  122. <td class="JR_right">{{ message.nationId }}</td>
  123. <td class="JR_right">{{ message.origin }}</td>
  124. <td class="JR_right">{{ message.birthDate }}</td>
  125. <td class="JR_right">{{ message.enlistDate }}</td>
  126. <td class="JR_right">{{ message.partyDate }}</td>
  127. <td class="JR_right">{{ message.educationId }}</td>
  128. <td class="JR_right">{{ message.marryList }}</td>
  129. <td class="JR_right">{{ message.live }}{{ message.phone }}</td>
  130. <td class="JR_right"></td>
  131. </tr>
  132. <tr class="JR_tr" height="40" align="center">
  133. <td></td>
  134. <td></td>
  135. <td></td>
  136. <td></td>
  137. <td></td>
  138. <td></td>
  139. <td></td>
  140. <td></td>
  141. <td></td>
  142. <td></td>
  143. <td></td>
  144. <td></td>
  145. </tr>
  146. </tbody>
  147. </table>
  148. </div>
  149. </div>
  150. </template>
  151. <script>
  152. import { lookWord } from "@/utils/look_word.js";
  153. import "@/utils/lodJs.js";
  154. export default {
  155. name: "bdgleven",
  156. props: ["message"],
  157. data() {
  158. return {
  159. title: "人员名册",
  160. style:
  161. ".JR_tr {height: 40px;};.JR_left{font-size: 1.331em; font-family: '楷体_GB2312';};.JR_right{ font-size: 1.331em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1.331em; font-family: 仿宋_GB2312; text-align: right}",
  162. };
  163. },
  164. methods: {
  165. daochu() {
  166. lookWord(this.title, "#contents", this.style, true);
  167. },
  168. },
  169. };
  170. </script>
  171. <style scoped>
  172. tbody {
  173. color: #fff;
  174. text-align: center;
  175. }
  176. tr:last-child {
  177. border-bottom: 1px solid;
  178. }
  179. .box1 {
  180. position: absolute;
  181. right: 30px;
  182. top: 80px;
  183. border: 1px solid rgb(129, 130, 131);
  184. border-radius: 5px;
  185. }
  186. </style>