bdgldiary.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049
  1. <template>
  2. <div>
  3. <el-button class="box1" @click="daochu">导出</el-button>
  4. <div class="word" id="contents">
  5. <p
  6. style="
  7. font-size: 16pt;
  8. font-weight: 600;
  9. text-align: center;
  10. margin-botttom: 30px;
  11. color: black;
  12. font-family: 'songti';
  13. "
  14. >
  15. 《连队要事日记》
  16. </p>
  17. <!-- <div style="margin-bottom: 5px; color: black">
  18. <span class="tTime">{{ message.blogDate }}</span>
  19. <span class="tWeek" style="margin-left: 40px">星期</span>
  20. <span class="tWeather" style="margin-left: 50px"
  21. >天气:{{ message.weather }}</span
  22. >
  23. <span style="margin-left: 380px">值班员:{{ message.peopleName }}</span>
  24. </div> -->
  25. <table
  26. class="b1"
  27. border="none"
  28. style="
  29. border-collapse: collapse;
  30. mso-border-left-alt: 0.5pt solid windowtext;
  31. mso-border-top-alt: 0.5pt solid windowtext;
  32. mso-border-right-alt: 0.5pt solid windowtext;
  33. mso-border-bottom-alt: 0.5pt solid windowtext;
  34. mso-border-insideh: 0.5pt solid windowtext;
  35. mso-border-insidev: 0.5pt solid windowtext;
  36. mso-padding-alt: 0pt 0pt 0pt 0pt;
  37. width: 930px;
  38. color: black;
  39. font-size: 16px;
  40. font-weight: 500;
  41. border: none;
  42. "
  43. >
  44. <tr
  45. height="30"
  46. align="center"
  47. style="border: none; font-family: 'songti'"
  48. >
  49. <td
  50. colspan="3"
  51. height="40"
  52. style="border: none; font-family: 'fangsong'"
  53. >
  54. {{ message.blogDate | dataFormats }}
  55. </td>
  56. <td colspan="2" style="border: none; font-family: 'songti'">
  57. <span style="font-family: 'fangsong'">{{ message.week }}</span>
  58. </td>
  59. <td colspan="6" style="border: none; font-family: 'songti'">
  60. 天气:<span style="font-family: 'fangsong'">{{
  61. message.weather
  62. }}</span>
  63. </td>
  64. <td colspan="3" style="border: none; font-family: 'songti'">
  65. 值班员:
  66. <span style="font-family: 'fangsong'">{{
  67. message.peopleName
  68. }}</span>
  69. </td>
  70. </tr>
  71. </table>
  72. <table
  73. class="b1"
  74. border="1"
  75. style="
  76. border-collapse: collapse;
  77. mso-border-left-alt: 0.5pt solid windowtext;
  78. mso-border-top-alt: 0.5pt solid windowtext;
  79. mso-border-right-alt: 0.5pt solid windowtext;
  80. mso-border-bottom-alt: 0.5pt solid windowtext;
  81. mso-border-insideh: 0.5pt solid windowtext;
  82. mso-border-insidev: 0.5pt solid windowtext;
  83. mso-padding-alt: 0pt 0pt 0pt 0pt;
  84. width: 930px;
  85. margin-bottom: 8px;
  86. border-color: black;
  87. color: black;
  88. font-size: 16px;
  89. font-weight: 500;
  90. "
  91. >
  92. <!-- 实力 -->
  93. <tr
  94. class="JR_tr"
  95. height="30"
  96. align="center"
  97. style="font-family: 'songti'"
  98. >
  99. <td
  100. colspan="2"
  101. rowspan="2"
  102. class="JR_left"
  103. style="font-family: 'songti'"
  104. >
  105. 实力
  106. </td>
  107. <td
  108. colspan="6"
  109. style="letter-spacing: 10px; font-family: 'songti'"
  110. class="JR_left"
  111. >
  112. 编制人数
  113. </td>
  114. <td
  115. colspan="6"
  116. style="letter-spacing: 10px; font-family: 'songti'"
  117. class="JR_left"
  118. >
  119. 现有人数
  120. </td>
  121. </tr>
  122. <tr class="JR_tr" height="30" align="center">
  123. <td width="68" class="JR_left" style="font-family: 'songti'">干部</td>
  124. <td width="68" class="JR_left" style="font-family: 'fangsong'">
  125. {{ message.orgcadre }}
  126. </td>
  127. <td width="68" class="JR_left" style="font-family: 'songti'">战士</td>
  128. <td width="68" class="JR_left" style="font-family: 'fangsong'">
  129. {{ message.orgsoldier }}
  130. </td>
  131. <td width="68" class="JR_left" style="font-family: 'songti'">合计</td>
  132. <td width="68" class="JR_left" style="font-family: 'fangsong'">
  133. {{ message.orgcadre + message.orgsoldier }}
  134. </td>
  135. <td width="68" class="JR_left" style="font-family: 'songti'">干部</td>
  136. <td width="68" class="JR_left" style="font-family: 'fangsong'">
  137. {{ message.nowcadre }}
  138. </td>
  139. <td width="68" class="JR_left" style="font-family: 'songti'">战士</td>
  140. <td width="68" class="JR_left" style="font-family: 'fangsong'">
  141. {{ message.nowsoldier }}
  142. </td>
  143. <td width="68" class="JR_left" style="font-family: 'songti'">合计</td>
  144. <td width="68" class="JR_left" style="font-family: 'fangsong'">
  145. {{ message.nowcadre + message.nowsoldier }}
  146. </td>
  147. </tr>
  148. <!-- 训练、教育或者执行其他任务情况 -->
  149. <tr class="JR_tr" height="20" align="center">
  150. <td :rowspan="number" class="JR_left">
  151. <p align="center" style="margin: 0 15px; font-family: 'songti'">
  152. 训 <br />
  153. 练 <br />
  154. 、 <br />
  155. 教 <br />
  156. 育 <br />
  157. 或 <br />
  158. 者 <br />
  159. 执 <br />
  160. 行 <br />
  161. 其 <br />
  162. 他 <br />
  163. 任 <br />
  164. 务 <br />
  165. 情 <br />
  166. </p>
  167. </td>
  168. <td
  169. rowspan="2"
  170. width="68"
  171. class="JR_left"
  172. style="font-family: 'songti'"
  173. >
  174. 区分
  175. </td>
  176. <td
  177. colspan="9"
  178. rowspan="2"
  179. style="letter-spacing: 20px; font-family: 'songti'"
  180. class="JR_left"
  181. align="center"
  182. >
  183. 内容
  184. </td>
  185. <td colspan="3" class="JR_left" style="font-family: 'songti'">
  186. 人数
  187. </td>
  188. </tr>
  189. <tr class="JR_tr" height="30" align="center">
  190. <td class="JR_left" style="font-family: 'songti'">应到</td>
  191. <td class="JR_left" style="font-family: 'songti'">实到</td>
  192. <td class="JR_left" style="font-family: 'songti'">到课率</td>
  193. </tr>
  194. <tr
  195. style="font-family: 'fangsong'"
  196. class="JR_tr"
  197. height="70"
  198. align="center"
  199. v-for="(items, index) in message.weekworkRegisters"
  200. :key="index + ' '"
  201. v-show="
  202. message.weekworkRegisters != null ||
  203. message.weekworkRegisters.length > 0
  204. "
  205. >
  206. <td class="JR_right" height="70">{{ items.dateline }}</td>
  207. <td
  208. style="text-align: left"
  209. colspan="9"
  210. v-html="
  211. items.startTime +
  212. '-' +
  213. items.endTime +
  214. items.contents +
  215. '(组织人:' +
  216. items.organizer +
  217. ')'
  218. "
  219. ></td>
  220. <td class="JR_right" height="70">{{ items.shouldArrive }}</td>
  221. <td class="JR_right" height="70">{{ items.realTo }}</td>
  222. <td class="JR_right" height="70">{{ items.percentage }}</td>
  223. </tr>
  224. <tr
  225. class="JR_tr"
  226. height="70"
  227. align="center"
  228. v-if="
  229. message.weekworkRegisters == null ||
  230. message.weekworkRegisters.length < 4 ||
  231. message.weekworkRegisters.length == 0
  232. "
  233. >
  234. <td class="JR_left" height="70" style="font-family: 'songti'"></td>
  235. <td class="JR_right" colspan="9"></td>
  236. <td class="JR_right"></td>
  237. <td class="JR_right"></td>
  238. <td class="JR_right"></td>
  239. </tr>
  240. <tr
  241. class="JR_tr"
  242. height="70"
  243. align="center"
  244. v-if="
  245. message.weekworkRegisters == null ||
  246. message.weekworkRegisters.length < 3 ||
  247. message.weekworkRegisters.length == 0
  248. "
  249. >
  250. <td class="JR_left" height="70" style="font-family: 'songti'"></td>
  251. <td class="JR_right" colspan="9"></td>
  252. <td class="JR_right"></td>
  253. <td class="JR_right"></td>
  254. <td class="JR_right"></td>
  255. </tr>
  256. <tr
  257. class="JR_tr"
  258. height="70"
  259. align="center"
  260. v-if="
  261. message.weekworkRegisters == null ||
  262. message.weekworkRegisters.length < 2 ||
  263. message.weekworkRegisters.length == 0
  264. "
  265. >
  266. <td class="JR_left" height="70" style="font-family: 'songti'"></td>
  267. <td class="JR_right" colspan="9"></td>
  268. <td class="JR_right"></td>
  269. <td class="JR_right"></td>
  270. <td class="JR_right"></td>
  271. </tr>
  272. <tr
  273. class="JR_tr"
  274. height="70"
  275. align="center"
  276. v-if="
  277. message.weekworkRegisters == null ||
  278. message.weekworkRegisters.length < 1 ||
  279. message.weekworkRegisters.length == 0
  280. "
  281. >
  282. <td class="JR_left" height="70" style="font-family: 'songti'"></td>
  283. <td class="JR_right" colspan="9"></td>
  284. <td class="JR_right"></td>
  285. <td class="JR_right"></td>
  286. <td class="JR_right"></td>
  287. </tr>
  288. <!-- 公差勤务 -->
  289. <tr class="JR_tr">
  290. <td colspan="2">
  291. <p align="center" class="JR_left" style="font-family: 'songti'">
  292. 公差勤务
  293. </p>
  294. </td>
  295. <td
  296. style="font-family: 'fangsong'"
  297. colspan="12"
  298. class="JR_right"
  299. v-html="message.tolerance"
  300. ></td>
  301. </tr>
  302. <tr class="JR_tr">
  303. <!-- 人员装备变动 -->
  304. <td colspan="2" class="JR_left">
  305. <p align="center" style="font-family: 'songti'">
  306. 人员或 <br />
  307. 装备变动
  308. </p>
  309. </td>
  310. <td
  311. style="font-family: 'fangsong'"
  312. colspan="12"
  313. class="JR_right"
  314. v-html="message.transfer"
  315. >
  316. <p></p>
  317. </td>
  318. </tr>
  319. <!-- 武器装备检查情况 -->
  320. <tr class="JR_tr">
  321. <td height="150" rowspan=":count($xlian)" colspan="2" class="JR_left">
  322. <p align="center" style="font-family: 'songti'">
  323. 武 内 <br />
  324. 器 务 <br />
  325. 装 卫 <br />
  326. 备 生 <br />
  327. 、 检 <br />
  328. 军 查 <br />
  329. 容 情 <br />
  330. 风 况 <br />
  331. 记 <br />
  332. </p>
  333. </td>
  334. <td
  335. style="font-family: 'fangsong'"
  336. colspan="12"
  337. class="JR_right"
  338. v-html="message.internal"
  339. >
  340. <p></p>
  341. </td>
  342. </tr>
  343. <!-- 查铺查哨 -->
  344. <tr class="JR_tr" style="font-family: 'songti'">
  345. <td :rowspan="chapu" class="JR_left">
  346. <p align="center" style="font-family: 'songti'">
  347. 查 <br />
  348. 铺 <br />
  349. 查 <br />
  350. </p>
  351. </td>
  352. <td class="JR_left">
  353. <p align="center" style="font-family: 'songti'">检查人</p>
  354. </td>
  355. <td class="JR_left">
  356. <p align="center" style="font-family: 'songti'">时 间</p>
  357. </td>
  358. <td class="JR_left">
  359. <p align="center" style="font-family: 'songti'">领班员</p>
  360. </td>
  361. <td class="JR_left" colspan="2">
  362. <p align="center" style="font-family: 'songti'">卫兵姓名</p>
  363. </td>
  364. <td class="JR_left" colspan="8">
  365. <p
  366. align="center"
  367. style="letter-spacing: 10px; font-family: 'songti'"
  368. >
  369. 检 查 情 况
  370. </p>
  371. </td>
  372. </tr>
  373. <tr
  374. v-for="(item, index) in message.inspect"
  375. :key="index + ' '"
  376. class="JR_tr"
  377. style="font-family: 'fangsong'"
  378. >
  379. <td class="JR_right">
  380. <p align="center">{{ item.peopleName }}</p>
  381. </td>
  382. <td class="JR_right">
  383. <p align="center">{{ item.examineDate }}</p>
  384. </td>
  385. <td class="JR_right">
  386. <p align="center">{{ item.foremanName }}</p>
  387. </td>
  388. <td class="JR_right" colspan="2">
  389. <p align="center">{{ item.sentryName }}</p>
  390. </td>
  391. <td class="JR_right" colspan="8">
  392. <p align="center">{{ item.dialogue }}</p>
  393. </td>
  394. </tr>
  395. <!-- <tr class="JR_tr" height="30">
  396. <td class="JR_right"><p align="center">&nbsp;</p></td>
  397. <td class="JR_right"><p align="center"></p></td>
  398. <td class="JR_right"><p align="center"></p></td>
  399. <td class="JR_right" colspan="2"><p align="center"></p></td>
  400. <td class="JR_right" colspan="8"><p align="center"></p></td>
  401. </tr>
  402. <tr class="JR_tr" height="30">
  403. <td class="JR_right"><p align="center">&nbsp;</p></td>
  404. <td class="JR_right"><p align="center"></p></td>
  405. <td class="JR_right"><p align="center"></p></td>
  406. <td class="JR_right" colspan="2"><p align="center"></p></td>
  407. <td class="JR_right" colspan="8"><p align="center"></p></td>
  408. </tr> -->
  409. <!-- 派班情况 -->
  410. <tr class="JR_tr" style="font-family: 'songti'">
  411. <td class="JR_left" rowspan="4">
  412. <p align="center" style="font-family: 'songti'">
  413. 派 <br />
  414. 班 <br />
  415. 情 <br />
  416. </p>
  417. </td>
  418. <td class="JR_left">
  419. <p align="center" style="font-family: 'songti'">职务</p>
  420. </td>
  421. <td class="JR_left">
  422. <p align="center" style="font-family: 'songti'">交班者</p>
  423. </td>
  424. <td class="JR_left">
  425. <p align="center" style="font-family: 'songti'">接班者</p>
  426. </td>
  427. <td class="JR_left" colspan="2">
  428. <p align="center" style="font-family: 'songti'">组织者</p>
  429. </td>
  430. <td class="JR_left" colspan="8">
  431. <p
  432. align="center"
  433. style="letter-spacing: 10px; font-family: 'songti'"
  434. >
  435. 交 接 情 况
  436. </p>
  437. </td>
  438. </tr>
  439. <tr class="JR_tr" height="30" align="center">
  440. <td class="JR_left" style="font-family: 'songti'">值班员</td>
  441. <td class="JR_right">
  442. <p align="center" style="font-family: 'fangsong'">
  443. {{ message.dutya }}
  444. </p>
  445. </td>
  446. <td class="JR_right">
  447. <p align="center" style="font-family: 'fangsong'">
  448. {{ message.dutyb }}
  449. </p>
  450. </td>
  451. <td class="JR_right" colspan="2">
  452. <p align="center" style="font-family: 'fangsong'">
  453. {{ message.dutylead }}
  454. </p>
  455. </td>
  456. <td class="JR_right" colspan="8"><p align="center"></p></td>
  457. </tr>
  458. <tr class="JR_tr" height="30" align="center">
  459. <td class="JR_left" style="font-family: 'songti'">值日员</td>
  460. <td class="JR_right">
  461. <p align="center" style="font-family: 'fangsong'">
  462. {{ message.dutyc }}
  463. </p>
  464. </td>
  465. <td class="JR_right">
  466. <p align="center" style="font-family: 'fangsong'">
  467. {{ message.dutyd }}
  468. </p>
  469. </td>
  470. <td
  471. class="JR_left"
  472. colspan="2"
  473. rowspan="2"
  474. style="font-family: 'fangsong'"
  475. >
  476. <div style="margin-bottom: 10px">交接时间</div>
  477. {{ message.dutyDate | dataFormat }}
  478. </td>
  479. <td class="JR_right" colspan="8"></td>
  480. </tr>
  481. <tr class="JR_tr" height="30" align="center">
  482. <td class="JR_left" style="font-family: 'songti'">厨房值班</td>
  483. <td class="JR_right">
  484. <p align="center" style="font-family: 'fangsong'">
  485. {{ message.dutye }}
  486. </p>
  487. </td>
  488. <td class="JR_right">
  489. <p align="center" style="font-family: 'fangsong'">
  490. {{ message.dutyf }}
  491. </p>
  492. </td>
  493. <td class="JR_right" colspan="8" style="font-family: 'fangsong'"></td>
  494. </tr>
  495. <!-- 临时来队亲属 -->
  496. <tr class="JR_tr" height="30" style="font-family: 'songti'">
  497. <td :rowspan="qinshu" class="JR_left">
  498. <p align="center" style="margin: 0 15px; font-family: 'songti'">
  499. 临 <br />
  500. 时 <br />
  501. 来 <br />
  502. 队 <br />
  503. 亲 <br />
  504. </p>
  505. </td>
  506. <td class="JR_left" height="30" rowspan="2">
  507. <p align="center" style="font-family: 'songti'">军人姓名</p>
  508. </td>
  509. <td class="JR_left" height="30" rowspan="2">
  510. <p align="center" style="font-family: 'songti'">亲属姓名</p>
  511. </td>
  512. <td class="JR_left" height="30" rowspan="2">
  513. <p align="center" style="font-family: 'songti'">关&nbsp; 系</p>
  514. </td>
  515. <td class="JR_left" height="30" colspan="2">
  516. <p align="center" style="font-family: 'songti'">时 间</p>
  517. </td>
  518. <td class="JR_left" height="30" colspan="8">
  519. <p
  520. align="center"
  521. style="letter-spacing: 5px; font-family: 'songti'"
  522. >
  523. 病 号 及 处 理 情 况
  524. </p>
  525. </td>
  526. </tr>
  527. <tr class="JR_tr" height="30" align="center">
  528. <td class="JR_left" height="30" style="font-family: 'songti'">
  529. 来队
  530. </td>
  531. <td class="JR_left" height="30" style="font-family: 'songti'">
  532. 离队
  533. </td>
  534. <td
  535. style="font-family: 'fangsong'"
  536. class="JR_right"
  537. height="30"
  538. colspan="8"
  539. :rowspan="qinshu2"
  540. v-html="message.invalid"
  541. >
  542. <p align="left" style="font-family: 'fangsong'"></p>
  543. </td>
  544. </tr>
  545. <tr
  546. style="font-family: 'fangsong'"
  547. class="JR_tr"
  548. v-for="(item1, i) in message.kinsfolk"
  549. :key="i + ''"
  550. v-show="message.kinsfolk != null || message.kinsfolk.length > 0"
  551. >
  552. <td class="JR_right" height="30">
  553. <p align="center">{{ item1.peopleName }}</p>
  554. </td>
  555. <td class="JR_right" height="30">
  556. <p align="center">{{ item1.name }}</p>
  557. </td>
  558. <td class="JR_right" height="30">
  559. <p align="center">{{ item1.relation }}</p>
  560. </td>
  561. <td class="JR_right" height="30">
  562. <p align="center">{{ item1.comeDate }}</p>
  563. </td>
  564. <td class="JR_right" height="30">
  565. <p align="center">{{ item1.leaveDate }}</p>
  566. </td>
  567. </tr>
  568. <tr
  569. style="font-family: 'fangsong'"
  570. class="JR_tr"
  571. v-if="message.kinsfolk == null || message.kinsfolk.length == 0"
  572. >
  573. <td class="JR_right" height="30">
  574. <p align="center"></p>
  575. </td>
  576. <td class="JR_right" height="30">
  577. <p align="center"></p>
  578. </td>
  579. <td class="JR_right" height="30">
  580. <p align="center"></p>
  581. </td>
  582. <td class="JR_right" height="30">
  583. <p align="center"></p>
  584. </td>
  585. <td class="JR_right" height="30">
  586. <p align="center"></p>
  587. </td>
  588. </tr>
  589. <tr
  590. style="font-family: 'fangsong'"
  591. class="JR_tr"
  592. v-if="message.kinsfolk == null || message.kinsfolk.length == 0"
  593. >
  594. <td class="JR_right" height="30">
  595. <p align="center"></p>
  596. </td>
  597. <td class="JR_right" height="30">
  598. <p align="center"></p>
  599. </td>
  600. <td class="JR_right" height="30">
  601. <p align="center"></p>
  602. </td>
  603. <td class="JR_right" height="30">
  604. <p align="center"></p>
  605. </td>
  606. <td class="JR_right" height="30">
  607. <p align="center"></p>
  608. </td>
  609. </tr>
  610. <!-- <tr></tr> -->
  611. <!-- <tr class="JR_tr" height="30">
  612. <td class="JR_right" height="30"><p align="center"></p></td>
  613. <td class="JR_right" height="30"><p align="center"></p></td>
  614. <td class="JR_right" height="30"><p align="center"></p></td>
  615. <td class="JR_right" height="30"><p align="center"></p></td>
  616. <td class="JR_right" height="30"><p align="center"></p></td>
  617. </tr> -->
  618. <!-- 请假外出休假 -->
  619. <tr
  620. class="JR_tr"
  621. align="center"
  622. height="30"
  623. style="font-family: 'songti'"
  624. >
  625. <td :rowspan="qingjia" class="JR_left">
  626. <p align="center" style="margin: 0 15px; font-family: 'songti'">
  627. 请 <br />
  628. 假 <br />
  629. 外 <br />
  630. 出 <br />
  631. 、 <br />
  632. 探 <br />
  633. 亲 <br />
  634. 休 <br />
  635. </p>
  636. </td>
  637. <td class="JR_left" style="font-family: 'songti'">姓&nbsp; 名</td>
  638. <td class="JR_left" style="font-family: 'songti'">职&nbsp; 务</td>
  639. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  640. 事&nbsp;&nbsp;&nbsp; 由
  641. </td>
  642. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  643. 时数或 <br />
  644. 天&nbsp; 数
  645. </td>
  646. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  647. 准假部 <br />
  648. 门(人)
  649. </td>
  650. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  651. 离 队 <br />
  652. 时 间
  653. </td>
  654. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  655. 归 队 <br />
  656. 时 间
  657. </td>
  658. <td class="JR_left" colspan="3" style="font-family: 'songti'">
  659. 超(误)假 <br />
  660. 时(天)数
  661. </td>
  662. </tr>
  663. <tr
  664. class="JR_tr"
  665. height="30"
  666. style="font-family: 'fangsong'"
  667. v-for="(item, i) in message.bdglLeaves"
  668. :key="i"
  669. >
  670. <td class="JR_right">
  671. <p align="center">{{ item.peopleName }}</p>
  672. </td>
  673. <td class="JR_right">
  674. <p align="center">
  675. <dict-tag :options="dict.type.post_Level" :value="item.postId" />
  676. </p>
  677. </td>
  678. <td class="JR_right" colspan="2">
  679. <p align="center">{{ item.leaveReason }}</p>
  680. </td>
  681. <td class="JR_right" colspan="2">
  682. <p align="center">{{ time[i] }}</p>
  683. </td>
  684. <td class="JR_right" colspan="2">
  685. <p align="center">{{ item.peopleName1 }}</p>
  686. </td>
  687. <td class="JR_right" colspan="2">
  688. <p align="center">{{ item.departureTime }}</p>
  689. </td>
  690. <td class="JR_right" colspan="2">
  691. <p align="center">{{ item.returnTime }}</p>
  692. </td>
  693. <td class="JR_right" colspan="3">
  694. <p align="center">{{ guiTime[i] }}</p>
  695. </td>
  696. </tr>
  697. <tr
  698. class="JR_tr"
  699. height="30"
  700. style="font-family: 'fangsong'"
  701. v-if="
  702. this.message.bdglLeaves == null ||
  703. this.message.bdglLeaves.length < 5
  704. "
  705. >
  706. <td class="JR_right"><p align="center"></p></td>
  707. <td class="JR_right"><p align="center"></p></td>
  708. <td class="JR_right" colspan="2"><p align="center"></p></td>
  709. <td class="JR_right" colspan="2"><p align="center"></p></td>
  710. <td class="JR_right" colspan="2"><p align="center"></p></td>
  711. <td class="JR_right" colspan="2"><p align="center"></p></td>
  712. <td class="JR_right" colspan="2"><p align="center"></p></td>
  713. <td class="JR_right" colspan="3"><p align="center"></p></td>
  714. </tr>
  715. <tr
  716. class="JR_tr"
  717. height="30"
  718. style="font-family: 'fangsong'"
  719. v-if="
  720. this.message.bdglLeaves == null ||
  721. this.message.bdglLeaves.length < 4
  722. "
  723. >
  724. <td class="JR_right"><p align="center"></p></td>
  725. <td class="JR_right"><p align="center"></p></td>
  726. <td class="JR_right" colspan="2"><p align="center"></p></td>
  727. <td class="JR_right" colspan="2"><p align="center"></p></td>
  728. <td class="JR_right" colspan="2"><p align="center"></p></td>
  729. <td class="JR_right" colspan="2"><p align="center"></p></td>
  730. <td class="JR_right" colspan="2"><p align="center"></p></td>
  731. <td class="JR_right" colspan="3"><p align="center"></p></td>
  732. </tr>
  733. <tr
  734. class="JR_tr"
  735. height="30"
  736. style="font-family: 'fangsong'"
  737. v-if="
  738. this.message.bdglLeaves == null ||
  739. this.message.bdglLeaves.length < 3
  740. "
  741. >
  742. <td class="JR_right"><p align="center"></p></td>
  743. <td class="JR_right"><p align="center"></p></td>
  744. <td class="JR_right" colspan="2"><p align="center"></p></td>
  745. <td class="JR_right" colspan="2"><p align="center"></p></td>
  746. <td class="JR_right" colspan="2"><p align="center"></p></td>
  747. <td class="JR_right" colspan="2"><p align="center"></p></td>
  748. <td class="JR_right" colspan="2"><p align="center"></p></td>
  749. <td class="JR_right" colspan="3"><p align="center"></p></td>
  750. </tr>
  751. <tr
  752. class="JR_tr"
  753. height="30"
  754. style="font-family: 'fangsong'"
  755. v-if="
  756. this.message.bdglLeaves == null ||
  757. this.message.bdglLeaves.length < 2
  758. "
  759. >
  760. <td class="JR_right"><p align="center"></p></td>
  761. <td class="JR_right"><p align="center"></p></td>
  762. <td class="JR_right" colspan="2"><p align="center"></p></td>
  763. <td class="JR_right" colspan="2"><p align="center"></p></td>
  764. <td class="JR_right" colspan="2"><p align="center"></p></td>
  765. <td class="JR_right" colspan="2"><p align="center"></p></td>
  766. <td class="JR_right" colspan="2"><p align="center"></p></td>
  767. <td class="JR_right" colspan="3"><p align="center"></p></td>
  768. </tr>
  769. <tr
  770. class="JR_tr"
  771. height="30"
  772. style="font-family: 'fangsong'"
  773. v-if="
  774. this.message.bdglLeaves == null ||
  775. this.message.bdglLeaves.length < 1
  776. "
  777. >
  778. <td class="JR_right"><p align="center"></p></td>
  779. <td class="JR_right"><p align="center"></p></td>
  780. <td class="JR_right" colspan="2"><p align="center"></p></td>
  781. <td class="JR_right" colspan="2"><p align="center"></p></td>
  782. <td class="JR_right" colspan="2"><p align="center"></p></td>
  783. <td class="JR_right" colspan="2"><p align="center"></p></td>
  784. <td class="JR_right" colspan="2"><p align="center"></p></td>
  785. <td class="JR_right" colspan="3"><p align="center"></p></td>
  786. </tr>
  787. <!-- 上级通知 -->
  788. <tr class="JR_tr">
  789. <td class="JR_left" width="101" style="font-family: 'songti'">
  790. <p align="center" style="margin: 0 15px; font-family: 'songti'">
  791. 上 <br />
  792. 级 <br />
  793. 通 <br />
  794. 知 <br />
  795. 、 <br />
  796. 指 <br />
  797. 示 <br />
  798. 及 <br />
  799. 其 <br />
  800. 他 <br />
  801. 重 <br />
  802. 要 <br />
  803. 事 <br />
  804. </p>
  805. </td>
  806. <td
  807. class="JR_right"
  808. colspan="15"
  809. style="white-space: normal; font-family: 'fangsong'"
  810. v-html="message.notice"
  811. ></td>
  812. </tr>
  813. </table>
  814. <table
  815. class="b1"
  816. border="none"
  817. style="
  818. border-collapse: collapse;
  819. mso-border-left-alt: 0.5pt solid windowtext;
  820. mso-border-top-alt: 0.5pt solid windowtext;
  821. mso-border-right-alt: 0.5pt solid windowtext;
  822. mso-border-bottom-alt: 0.5pt solid windowtext;
  823. mso-border-insideh: 0.5pt solid windowtext;
  824. mso-border-insidev: 0.5pt solid windowtext;
  825. mso-padding-alt: 0pt 0pt 0pt 0pt;
  826. width: 930px;
  827. color: black;
  828. font-size: 16px;
  829. font-weight: 500;
  830. border: none;
  831. "
  832. >
  833. <tr
  834. height="30"
  835. style="
  836. border: none;
  837. font-family: 'songti';
  838. display: flex;
  839. justify-content: space-between;
  840. height: 70px;
  841. "
  842. >
  843. <td colspan="2" style="border: none">
  844. <p style="border: none; font-family: 'songti'">
  845. 连队首长签字: {{ message.sz }}
  846. </p>
  847. </td>
  848. <td colspan="10" style="border: none; width: 250px"></td>
  849. <td
  850. colspan="2"
  851. style="border: none; font-family: '宋体'; display: inline-block"
  852. >
  853. <p style="border: none; font-family: '宋体'">
  854. 时&nbsp;&nbsp;间:
  855. {{ message.blogDate | dataFormaty }}
  856. </p>
  857. </td>
  858. </tr>
  859. </table>
  860. <!-- <span
  861. style="
  862. margin-left: 48px;
  863. color: black;
  864. font-family: 'fangsong';
  865. font-size: 16px;
  866. font-weight: 600;
  867. "
  868. >连队首长签字:</span
  869. >
  870. <span
  871. style="
  872. margin-left: 615px;
  873. color: black;
  874. letter-spacing: 15px;
  875. font-family: 'fangsong';
  876. font-size: 16px;
  877. font-weight: 600;
  878. "
  879. >&nbsp;&nbsp;时&nbsp;&nbsp;&nbsp;&nbsp;分</span
  880. > -->
  881. </div>
  882. </div>
  883. </template>
  884. <script>
  885. import { lookWord } from "@/utils/look_word.js";
  886. import "@/utils/lodJs.js";
  887. export default {
  888. name: "bdgleven",
  889. props: ["message"],
  890. dicts: ["post_Level"],
  891. data() {
  892. return {
  893. title: "连队要事日记",
  894. style:
  895. ".b1{width:630px !important};.JR_tr {height: 40px;};.JR_left{text-align:center;font-size: 1em; font-family: '楷体_GB2312';};.JR_right{ font-size: 1em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1em; font-family: 仿宋_GB2312; text-align: right}",
  896. chapu: 4,
  897. qinshu: 4,
  898. week: "",
  899. qinshu2: 3,
  900. number: 6,
  901. time: [],
  902. guiTime: [],
  903. qingjia: 1,
  904. };
  905. },
  906. created() {
  907. this.chapu = this.chapus();
  908. this.qinshu = this.qinshus();
  909. this.week = this.getWeek(this.message.blogDate);
  910. this.qinshu2 = this.qinshus2();
  911. this.xunlian();
  912. this.qingjias();
  913. },
  914. mounted() {},
  915. methods: {
  916. daochu() {
  917. lookWord(this.title, "#contents", this.style);
  918. },
  919. chapus() {
  920. if (this.message.inspect != null) return this.message.inspect.length + 1;
  921. },
  922. qinshus() {
  923. if (this.message.kinsfolk != null) {
  924. return this.message.kinsfolk.length + 2;
  925. }
  926. return 4;
  927. },
  928. qinshus2() {
  929. if (this.message.kinsfolk != null) {
  930. return this.message.kinsfolk.length + 1;
  931. }
  932. return 3;
  933. },
  934. xunlian() {
  935. this.getTian();
  936. this.getCao();
  937. if (this.message.weekworkRegisters != null) {
  938. if (this.message.weekworkRegisters.length > 4) {
  939. this.number += this.message.weekworkRegisters.length - 4;
  940. }
  941. }
  942. },
  943. qingjias() {
  944. if (this.message.bdglLeaves != null) {
  945. if (this.message.bdglLeaves.length > 5) {
  946. this.qingjia += this.message.bdglLeaves.length;
  947. } else {
  948. this.qingjia +=
  949. 5 - this.message.bdglLeaves.length + this.message.bdglLeaves.length;
  950. }
  951. } else {
  952. this.qingjia += 5;
  953. }
  954. },
  955. /*
  956.  获取当前星期几
  957. */
  958. getWeek(dateString) {
  959. var dateArray = dateString.split("-");
  960. var date = new Date(
  961. dateArray[0],
  962. parseInt(dateArray[1] - 1),
  963. dateArray[2]
  964. );
  965. return "星期" + "日一二三四五六".charAt(date.getDay());
  966. },
  967. // 计算请假天数
  968. getTian() {
  969. if (this.message.bdglLeaves != null) {
  970. this.message.bdglLeaves.forEach((element) => {
  971. var dateBegin = new Date(element.startTime).getTime();
  972. var dateBegins = new Date(element.endTime).getTime();
  973. var num = dateBegins - dateBegin;
  974. num = num / (1000 * 3600 * 24);
  975. this.time.push(num);
  976. });
  977. }
  978. },
  979. // 计算超时天数
  980. getCao() {
  981. if (this.message.bdglLeaves != null) {
  982. this.message.bdglLeaves.forEach((element) => {
  983. var dateBegin = new Date(element.actualreturntime).getTime();
  984. var dateBegins = new Date(element.returnTime).getTime();
  985. var num = dateBegin - dateBegins;
  986. num = num / (1000 * 3600 * 24);
  987. if (num < 0) {
  988. num = 0;
  989. }
  990. this.guiTime.push(num);
  991. });
  992. }
  993. },
  994. /*
  995.  标准时间转换格式
  996. */
  997. getDate(timesDate) {
  998. var date = new Date(timesDate);
  999. var y = date.getFullYear();
  1000. var m = date.getMonth() + 1;
  1001. m = m < 10 ? "0" + m : m;
  1002. var d = date.getDate();
  1003. d = d < 10 ? "0" + d : d;
  1004. var h = date.getHours();
  1005. var minute = date.getMinutes();
  1006. minute = minute < 10 ? "0" + minute : minute;
  1007. let time = y + "-" + m + "-" + d; //这里如果不需要小时 分 后边的可以不需要拼接
  1008. return time;
  1009. },
  1010. },
  1011. };
  1012. </script>
  1013. <style scoped>
  1014. tbody {
  1015. color: #fff;
  1016. text-align: center;
  1017. margin: auto;
  1018. }
  1019. tr:last-child {
  1020. border-bottom: 1px solid;
  1021. }
  1022. ::v-deep .el-dialog {
  1023. margin-right: 100px !important;
  1024. }
  1025. .tTime {
  1026. margin-left: 100px;
  1027. }
  1028. .box1 {
  1029. position: absolute;
  1030. right: 30px;
  1031. top: 80px;
  1032. border: 1px solid rgb(129, 130, 131);
  1033. border-radius: 5px;
  1034. }
  1035. </style>