bdgldiary.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037
  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 | dataFormat }}
  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. {{ message.dutyDate | dataFormat }}<br />
  477. </td>
  478. <td class="JR_right" colspan="8"></td>
  479. </tr>
  480. <tr class="JR_tr" height="30" align="center">
  481. <td class="JR_left" style="font-family: 'songti'">厨房值班</td>
  482. <td class="JR_right">
  483. <p align="center" style="font-family: 'fangsong'">
  484. {{ message.dutye }}
  485. </p>
  486. </td>
  487. <td class="JR_right">
  488. <p align="center" style="font-family: 'fangsong'">
  489. {{ message.dutyf }}
  490. </p>
  491. </td>
  492. <td class="JR_right" colspan="8" style="font-family: 'fangsong'"></td>
  493. </tr>
  494. <!-- 临时来队亲属 -->
  495. <tr class="JR_tr" height="30" style="font-family: 'songti'">
  496. <td :rowspan="qinshu" class="JR_left">
  497. <p align="center" style="margin: 0 15px; font-family: 'songti'">
  498. 临 <br />
  499. 时 <br />
  500. 来 <br />
  501. 队 <br />
  502. 亲 <br />
  503. </p>
  504. </td>
  505. <td class="JR_left" height="30" rowspan="2">
  506. <p align="center" style="font-family: 'songti'">军人姓名</p>
  507. </td>
  508. <td class="JR_left" height="30" rowspan="2">
  509. <p align="center" style="font-family: 'songti'">亲属姓名</p>
  510. </td>
  511. <td class="JR_left" height="30" rowspan="2">
  512. <p align="center" style="font-family: 'songti'">关&nbsp; 系</p>
  513. </td>
  514. <td class="JR_left" height="30" colspan="2">
  515. <p align="center" style="font-family: 'songti'">时 间</p>
  516. </td>
  517. <td class="JR_left" height="30" colspan="8">
  518. <p
  519. align="center"
  520. style="letter-spacing: 5px; font-family: 'songti'"
  521. >
  522. 病 号 及 处 理 情 况
  523. </p>
  524. </td>
  525. </tr>
  526. <tr class="JR_tr" height="30" align="center">
  527. <td class="JR_left" height="30" style="font-family: 'songti'">
  528. 来队
  529. </td>
  530. <td class="JR_left" height="30" style="font-family: 'songti'">
  531. 离队
  532. </td>
  533. <td
  534. style="font-family: 'fangsong'"
  535. class="JR_right"
  536. height="30"
  537. colspan="8"
  538. :rowspan="qinshu2"
  539. v-html="message.invalid"
  540. >
  541. <p align="left" style="font-family: 'fangsong'"></p>
  542. </td>
  543. </tr>
  544. <tr
  545. style="font-family: 'fangsong'"
  546. class="JR_tr"
  547. v-for="(item1, i) in message.kinsfolk"
  548. :key="i + ''"
  549. v-show="message.kinsfolk != null || message.kinsfolk.length > 0"
  550. >
  551. <td class="JR_right" height="30">
  552. <p align="center">{{ item1.peopleName }}</p>
  553. </td>
  554. <td class="JR_right" height="30">
  555. <p align="center">{{ item1.name }}</p>
  556. </td>
  557. <td class="JR_right" height="30">
  558. <p align="center">{{ item1.relation }}</p>
  559. </td>
  560. <td class="JR_right" height="30">
  561. <p align="center">{{ item1.comeDate }}</p>
  562. </td>
  563. <td class="JR_right" height="30">
  564. <p align="center">{{ item1.leaveDate }}</p>
  565. </td>
  566. </tr>
  567. <tr
  568. style="font-family: 'fangsong'"
  569. class="JR_tr"
  570. v-if="message.kinsfolk == null || message.kinsfolk.length == 0"
  571. >
  572. <td class="JR_right" height="30">
  573. <p align="center"></p>
  574. </td>
  575. <td class="JR_right" height="30">
  576. <p align="center"></p>
  577. </td>
  578. <td class="JR_right" height="30">
  579. <p align="center"></p>
  580. </td>
  581. <td class="JR_right" height="30">
  582. <p align="center"></p>
  583. </td>
  584. <td class="JR_right" height="30">
  585. <p align="center"></p>
  586. </td>
  587. </tr>
  588. <tr
  589. style="font-family: 'fangsong'"
  590. class="JR_tr"
  591. v-if="message.kinsfolk == null || message.kinsfolk.length == 0"
  592. >
  593. <td class="JR_right" height="30">
  594. <p align="center"></p>
  595. </td>
  596. <td class="JR_right" height="30">
  597. <p align="center"></p>
  598. </td>
  599. <td class="JR_right" height="30">
  600. <p align="center"></p>
  601. </td>
  602. <td class="JR_right" height="30">
  603. <p align="center"></p>
  604. </td>
  605. <td class="JR_right" height="30">
  606. <p align="center"></p>
  607. </td>
  608. </tr>
  609. <!-- <tr></tr> -->
  610. <!-- <tr class="JR_tr" height="30">
  611. <td class="JR_right" height="30"><p align="center"></p></td>
  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. </tr> -->
  617. <!-- 请假外出休假 -->
  618. <tr
  619. class="JR_tr"
  620. align="center"
  621. height="30"
  622. style="font-family: 'songti'"
  623. >
  624. <td :rowspan="qingjia" class="JR_left">
  625. <p align="center" style="margin: 0 15px; font-family: 'songti'">
  626. 请 <br />
  627. 假 <br />
  628. 外 <br />
  629. 出 <br />
  630. 、 <br />
  631. 探 <br />
  632. 亲 <br />
  633. 休 <br />
  634. </p>
  635. </td>
  636. <td class="JR_left" style="font-family: 'songti'">姓&nbsp; 名</td>
  637. <td class="JR_left" style="font-family: 'songti'">职&nbsp; 务</td>
  638. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  639. 事&nbsp;&nbsp;&nbsp; 由
  640. </td>
  641. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  642. 时数或 <br />
  643. 天&nbsp; 数
  644. </td>
  645. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  646. 准假部 <br />
  647. 门(人)
  648. </td>
  649. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  650. 离 队 <br />
  651. 时 间
  652. </td>
  653. <td class="JR_left" colspan="2" style="font-family: 'songti'">
  654. 归 队 <br />
  655. 时 间
  656. </td>
  657. <td class="JR_left" colspan="3" style="font-family: 'songti'">
  658. 超(误)假 <br />
  659. 时(天)数
  660. </td>
  661. </tr>
  662. <tr
  663. class="JR_tr"
  664. height="30"
  665. style="font-family: 'fangsong'"
  666. v-for="(item, i) in message.bdglLeaves"
  667. :key="i"
  668. >
  669. <td class="JR_right">
  670. <p align="center">{{ item.peopleName }}</p>
  671. </td>
  672. <td class="JR_right">
  673. <p align="center">
  674. <dict-tag :options="dict.type.post_Level" :value="item.postId" />
  675. </p>
  676. </td>
  677. <td class="JR_right" colspan="2">
  678. <p align="center">{{ item.leaveReason }}</p>
  679. </td>
  680. <td class="JR_right" colspan="2">
  681. <p align="center">{{ time[i] }}</p>
  682. </td>
  683. <td class="JR_right" colspan="2">
  684. <p align="center">{{ item.peopleName1 }}</p>
  685. </td>
  686. <td class="JR_right" colspan="2">
  687. <p align="center">{{ item.departureTime }}</p>
  688. </td>
  689. <td class="JR_right" colspan="2">
  690. <p align="center">{{ item.returnTime }}</p>
  691. </td>
  692. <td class="JR_right" colspan="3">
  693. <p align="center">{{ guiTime[i] }}</p>
  694. </td>
  695. </tr>
  696. <tr
  697. class="JR_tr"
  698. height="30"
  699. style="font-family: 'fangsong'"
  700. v-if="
  701. this.message.bdglLeaves == null ||
  702. this.message.bdglLeaves.length < 5
  703. "
  704. >
  705. <td class="JR_right"><p align="center"></p></td>
  706. <td class="JR_right"><p align="center"></p></td>
  707. <td class="JR_right" colspan="2"><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="3"><p align="center"></p></td>
  713. </tr>
  714. <tr
  715. class="JR_tr"
  716. height="30"
  717. style="font-family: 'fangsong'"
  718. v-if="
  719. this.message.bdglLeaves == null ||
  720. this.message.bdglLeaves.length < 4
  721. "
  722. >
  723. <td class="JR_right"><p align="center"></p></td>
  724. <td class="JR_right"><p align="center"></p></td>
  725. <td class="JR_right" colspan="2"><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="3"><p align="center"></p></td>
  731. </tr>
  732. <tr
  733. class="JR_tr"
  734. height="30"
  735. style="font-family: 'fangsong'"
  736. v-if="
  737. this.message.bdglLeaves == null ||
  738. this.message.bdglLeaves.length < 3
  739. "
  740. >
  741. <td class="JR_right"><p align="center"></p></td>
  742. <td class="JR_right"><p align="center"></p></td>
  743. <td class="JR_right" colspan="2"><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="3"><p align="center"></p></td>
  749. </tr>
  750. <tr
  751. class="JR_tr"
  752. height="30"
  753. style="font-family: 'fangsong'"
  754. v-if="
  755. this.message.bdglLeaves == null ||
  756. this.message.bdglLeaves.length < 2
  757. "
  758. >
  759. <td class="JR_right"><p align="center"></p></td>
  760. <td class="JR_right"><p align="center"></p></td>
  761. <td class="JR_right" colspan="2"><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="3"><p align="center"></p></td>
  767. </tr>
  768. <tr
  769. class="JR_tr"
  770. height="30"
  771. style="font-family: 'fangsong'"
  772. v-if="
  773. this.message.bdglLeaves == null ||
  774. this.message.bdglLeaves.length < 1
  775. "
  776. >
  777. <td class="JR_right"><p align="center"></p></td>
  778. <td class="JR_right"><p align="center"></p></td>
  779. <td class="JR_right" colspan="2"><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="3"><p align="center"></p></td>
  785. </tr>
  786. <!-- 上级通知 -->
  787. <tr class="JR_tr">
  788. <td class="JR_left" width="101" style="font-family: 'songti'">
  789. <p align="center" style="margin: 0 15px; font-family: 'songti'">
  790. 上 <br />
  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. </p>
  804. </td>
  805. <td
  806. class="JR_right"
  807. colspan="15"
  808. style="white-space: normal; font-family: 'fangsong'"
  809. v-html="message.notice"
  810. ></td>
  811. </tr>
  812. </table>
  813. <table
  814. class="b1"
  815. border="none"
  816. style="
  817. border-collapse: collapse;
  818. mso-border-left-alt: 0.5pt solid windowtext;
  819. mso-border-top-alt: 0.5pt solid windowtext;
  820. mso-border-right-alt: 0.5pt solid windowtext;
  821. mso-border-bottom-alt: 0.5pt solid windowtext;
  822. mso-border-insideh: 0.5pt solid windowtext;
  823. mso-border-insidev: 0.5pt solid windowtext;
  824. mso-padding-alt: 0pt 0pt 0pt 0pt;
  825. width: 930px;
  826. color: black;
  827. font-size: 16px;
  828. font-weight: 500;
  829. border: none;
  830. "
  831. >
  832. <tr height="30" style="border: none; font-family: 'songti'">
  833. <td colspan="3" style="border: none"></td>
  834. <td colspan="6" style="border: none"></td>
  835. <td colspan="2" height="40" style="border: none">
  836. <p style="border: none; font-family: 'songti'">
  837. 连队首长签字: {{ message.sz }}
  838. </p>
  839. </td>
  840. <td colspan="3" style="border: none; font-family: 'songti'">
  841. <p style="border: none; font-family: 'songti'">
  842. &nbsp;&nbsp;时&nbsp;&nbsp;&nbsp;&nbsp;分
  843. </p>
  844. </td>
  845. </tr>
  846. </table>
  847. <!-- <span
  848. style="
  849. margin-left: 48px;
  850. color: black;
  851. font-family: 'fangsong';
  852. font-size: 16px;
  853. font-weight: 600;
  854. "
  855. >连队首长签字:</span
  856. >
  857. <span
  858. style="
  859. margin-left: 615px;
  860. color: black;
  861. letter-spacing: 15px;
  862. font-family: 'fangsong';
  863. font-size: 16px;
  864. font-weight: 600;
  865. "
  866. >&nbsp;&nbsp;时&nbsp;&nbsp;&nbsp;&nbsp;分</span
  867. > -->
  868. </div>
  869. </div>
  870. </template>
  871. <script>
  872. import { lookWord } from "@/utils/look_word.js";
  873. import "@/utils/lodJs.js";
  874. export default {
  875. name: "bdgleven",
  876. props: ["message"],
  877. dicts: ["post_Level"],
  878. data() {
  879. return {
  880. title: "连队要事日记",
  881. style:
  882. ".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}",
  883. chapu: 4,
  884. qinshu: 4,
  885. week: "",
  886. qinshu2: 3,
  887. number: 6,
  888. time: [],
  889. guiTime: [],
  890. qingjia: 1,
  891. };
  892. },
  893. created() {
  894. this.chapu = this.chapus();
  895. this.qinshu = this.qinshus();
  896. this.week = this.getWeek(this.message.blogDate);
  897. this.qinshu2 = this.qinshus2();
  898. this.xunlian();
  899. this.qingjias();
  900. },
  901. mounted() {},
  902. methods: {
  903. daochu() {
  904. lookWord(this.title, "#contents", this.style);
  905. },
  906. chapus() {
  907. if (this.message.inspect != null) return this.message.inspect.length + 1;
  908. },
  909. qinshus() {
  910. if (this.message.kinsfolk != null) {
  911. return this.message.kinsfolk.length + 2;
  912. }
  913. return 4;
  914. },
  915. qinshus2() {
  916. if (this.message.kinsfolk != null) {
  917. return this.message.kinsfolk.length + 1;
  918. }
  919. return 3;
  920. },
  921. xunlian() {
  922. this.getTian();
  923. this.getCao();
  924. if (this.message.weekworkRegisters != null) {
  925. if (this.message.weekworkRegisters.length > 4) {
  926. this.number += this.message.weekworkRegisters.length - 4;
  927. }
  928. }
  929. },
  930. qingjias() {
  931. if (this.message.bdglLeaves != null) {
  932. if (this.message.bdglLeaves.length > 5) {
  933. this.qingjia += this.message.bdglLeaves.length;
  934. } else {
  935. this.qingjia +=
  936. 5 - this.message.bdglLeaves.length + this.message.bdglLeaves.length;
  937. }
  938. } else {
  939. this.qingjia += 5;
  940. }
  941. },
  942. /*
  943.  获取当前星期几
  944. */
  945. getWeek(dateString) {
  946. var dateArray = dateString.split("-");
  947. var date = new Date(
  948. dateArray[0],
  949. parseInt(dateArray[1] - 1),
  950. dateArray[2]
  951. );
  952. return "星期" + "日一二三四五六".charAt(date.getDay());
  953. },
  954. // 计算请假天数
  955. getTian() {
  956. if (this.message.bdglLeaves != null) {
  957. this.message.bdglLeaves.forEach((element) => {
  958. var dateBegin = new Date(element.startTime).getTime();
  959. var dateBegins = new Date(element.endTime).getTime();
  960. var num = dateBegins - dateBegin;
  961. num = num / (1000 * 3600 * 24);
  962. this.time.push(num);
  963. });
  964. }
  965. },
  966. // 计算超时天数
  967. getCao() {
  968. if (this.message.bdglLeaves != null) {
  969. this.message.bdglLeaves.forEach((element) => {
  970. var dateBegin = new Date(element.actualreturntime).getTime();
  971. var dateBegins = new Date(element.returnTime).getTime();
  972. var num = dateBegin - dateBegins;
  973. num = num / (1000 * 3600 * 24);
  974. if (num < 0) {
  975. num = 0;
  976. }
  977. this.guiTime.push(num);
  978. });
  979. }
  980. },
  981. /*
  982.  标准时间转换格式
  983. */
  984. getDate(timesDate) {
  985. var date = new Date(timesDate);
  986. var y = date.getFullYear();
  987. var m = date.getMonth() + 1;
  988. m = m < 10 ? "0" + m : m;
  989. var d = date.getDate();
  990. d = d < 10 ? "0" + d : d;
  991. var h = date.getHours();
  992. var minute = date.getMinutes();
  993. minute = minute < 10 ? "0" + minute : minute;
  994. let time = y + "-" + m + "-" + d; //这里如果不需要小时 分 后边的可以不需要拼接
  995. return time;
  996. },
  997. },
  998. };
  999. </script>
  1000. <style scoped>
  1001. tbody {
  1002. color: #fff;
  1003. text-align: center;
  1004. margin: auto;
  1005. }
  1006. tr:last-child {
  1007. border-bottom: 1px solid;
  1008. }
  1009. ::v-deep .el-dialog {
  1010. margin-right: 100px !important;
  1011. }
  1012. .tTime {
  1013. margin-left: 100px;
  1014. }
  1015. .box1 {
  1016. position: absolute;
  1017. right: 30px;
  1018. top: 80px;
  1019. border: 1px solid rgb(129, 130, 131);
  1020. border-radius: 5px;
  1021. }
  1022. </style>