bdglcookbook.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. <template>
  2. <div>
  3. <el-button class="box1" @click="daochu">导出</el-button>
  4. <div class="word" id="contents">
  5. <p
  6. style="
  7. text-align: center;
  8. color: black;
  9. font-size: 18pt;
  10. font-weight: 600;
  11. font-family: 'heiti';
  12. "
  13. >
  14. 食堂食谱表
  15. </p>
  16. <p
  17. style="
  18. font-size: 16px;
  19. font-weight: 500;
  20. margin-left: 10px;
  21. color: black;
  22. font-family: 'fangsong';
  23. "
  24. >
  25. 使用时间:{{ message.startTime | dataFormaty }}—{{
  26. message.endTime | dataFormaty
  27. }}
  28. </p>
  29. <table
  30. class="b1"
  31. border="1"
  32. style="
  33. border-collapse: collapse;
  34. border: none;
  35. mso-border-left-alt: 0.5pt solid windowtext;
  36. mso-border-top-alt: 0.5pt solid windowtext;
  37. mso-border-right-alt: 0.5pt solid windowtext;
  38. mso-border-bottom-alt: 0.5pt solid windowtext;
  39. mso-border-insideh: 0.5pt solid windowtext;
  40. mso-border-insidev: 0.5pt solid windowtext;
  41. mso-padding-alt: 0pt 0pt 0pt 0pt;
  42. "
  43. width="930"
  44. bordercolor="black"
  45. >
  46. <colgroup>
  47. <col width="51" />
  48. <col width="58" />
  49. <col width="125" />
  50. <col width="130" />
  51. <col width="128" />
  52. <col width="130" />
  53. <col width="121" span="3" />
  54. </colgroup>
  55. <tbody style="font-size: 15px; font-weight: 500">
  56. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  57. <td colspan="2" align="center" class="JR_left">时间</td>
  58. <td width="111" align="center" class="JR_left">星期一</td>
  59. <td width="111" align="center" class="JR_left">星期二</td>
  60. <td width="111" align="center" class="JR_left">星期三</td>
  61. <td width="111" align="center" class="JR_left">星期四</td>
  62. <td width="111" align="center" class="JR_left">星期五</td>
  63. <td width="111" align="center" class="JR_left">星期六</td>
  64. <td width="111" align="center" class="JR_left">星期天</td>
  65. </tr>
  66. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  67. <td
  68. width="99"
  69. rowspan="4"
  70. align="center"
  71. class="JR_left"
  72. style="font-family: 'fangsong'"
  73. >
  74. 早餐
  75. </td>
  76. <td
  77. width="70"
  78. rowspan="2"
  79. align="center"
  80. class="JR_left"
  81. style="font-family: 'fangsong'"
  82. >
  83. 主食
  84. </td>
  85. <td
  86. align="center"
  87. style="white-space: normal; height: 45"
  88. class="JR_right"
  89. >
  90. 炊事员:{{ message.cookbookRegistrations[0].peopleNames }}
  91. </td>
  92. <td align="center" style="white-space: normal" class="JR_right">
  93. 炊事员:{{ message.cookbookRegistrations[6].peopleNames }}
  94. </td>
  95. <td align="center" style="white-space: normal" class="JR_right">
  96. 炊事员:{{ message.cookbookRegistrations[12].peopleNames }}
  97. </td>
  98. <td align="center" style="white-space: normal" class="JR_right">
  99. 炊事员:{{ message.cookbookRegistrations[18].peopleNames }}
  100. </td>
  101. <td align="center" style="white-space: normal" class="JR_right">
  102. 炊事员:{{ message.cookbookRegistrations[24].peopleNames }}
  103. </td>
  104. <td align="center" style="white-space: normal" class="JR_right">
  105. 炊事员:{{ message.cookbookRegistrations[30].peopleNames }}
  106. </td>
  107. <td align="center" style="white-space: normal" class="JR_right">
  108. 炊事员:{{ message.cookbookRegistrations[36].peopleNames }}
  109. </td>
  110. </tr>
  111. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  112. <td align="center" style="white-space: normal">
  113. {{ message.cookbookRegistrations[0].cookcategoryNames }}
  114. </td>
  115. <td align="center" style="white-space: normal">
  116. {{ message.cookbookRegistrations[6].cookcategoryNames }}
  117. </td>
  118. <td align="center" style="white-space: normal">
  119. {{ message.cookbookRegistrations[12].cookcategoryNames }}
  120. </td>
  121. <td align="center" style="white-space: normal">
  122. {{ message.cookbookRegistrations[18].cookcategoryNames }}
  123. </td>
  124. <td align="center" style="white-space: normal">
  125. {{ message.cookbookRegistrations[24].cookcategoryNames }}
  126. </td>
  127. <td align="center" style="white-space: normal">
  128. {{ message.cookbookRegistrations[30].cookcategoryNames }}
  129. </td>
  130. <td align="center" style="white-space: normal">
  131. {{ message.cookbookRegistrations[36].cookcategoryNames }}
  132. </td>
  133. </tr>
  134. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  135. <td
  136. width="70"
  137. rowspan="2"
  138. align="center"
  139. class="JR_left"
  140. style="font-family: 'fangsong'"
  141. >
  142. 副食
  143. </td>
  144. <td align="center" style="white-space: normal" class="JR_right">
  145. 炊事员:{{ message.cookbookRegistrations[1].peopleNames }}
  146. </td>
  147. <td align="center" style="white-space: normal" class="JR_right">
  148. 炊事员:{{ message.cookbookRegistrations[7].peopleNames }}
  149. </td>
  150. <td align="center" style="white-space: normal" class="JR_right">
  151. 炊事员:{{ message.cookbookRegistrations[13].peopleNames }}
  152. </td>
  153. <td align="center" style="white-space: normal" class="JR_right">
  154. 炊事员:{{ message.cookbookRegistrations[19].peopleNames }}
  155. </td>
  156. <td align="center" style="white-space: normal" class="JR_right">
  157. 炊事员:{{ message.cookbookRegistrations[25].peopleNames }}
  158. </td>
  159. <td align="center" style="white-space: normal" class="JR_right">
  160. 炊事员:{{ message.cookbookRegistrations[31].peopleNames }}
  161. </td>
  162. <td align="center" style="white-space: normal" class="JR_right">
  163. 炊事员:{{ message.cookbookRegistrations[37].peopleNames }}
  164. </td>
  165. </tr>
  166. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  167. <td align="center" style="white-space: normal" class="JR_right">
  168. {{ message.cookbookRegistrations[1].cookcategoryNames }}
  169. </td>
  170. <td align="center" style="white-space: normal" class="JR_right">
  171. {{ message.cookbookRegistrations[7].cookcategoryNames }}
  172. </td>
  173. <td align="center" style="white-space: normal" class="JR_right">
  174. {{ message.cookbookRegistrations[13].cookcategoryNames }}
  175. </td>
  176. <td align="center" style="white-space: normal" class="JR_right">
  177. {{ message.cookbookRegistrations[19].cookcategoryNames }}
  178. </td>
  179. <td align="center" style="white-space: normal" class="JR_right">
  180. {{ message.cookbookRegistrations[25].cookcategoryNames }}
  181. </td>
  182. <td align="center" style="white-space: normal" class="JR_right">
  183. {{ message.cookbookRegistrations[31].cookcategoryNames }}
  184. </td>
  185. <td align="center" style="white-space: normal" class="JR_right">
  186. {{ message.cookbookRegistrations[37].cookcategoryNames }}
  187. </td>
  188. </tr>
  189. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  190. <td
  191. width="99"
  192. rowspan="4"
  193. align="center"
  194. class="JR_left"
  195. style="font-family: 'fangsong'"
  196. >
  197. 午餐
  198. </td>
  199. <td
  200. width="70"
  201. rowspan="2"
  202. align="center"
  203. class="JR_left"
  204. style="font-family: 'fangsong'"
  205. >
  206. 主食
  207. </td>
  208. <td align="center" style="white-space: normal" class="JR_right">
  209. 炊事员:{{ message.cookbookRegistrations[2].peopleNames }}
  210. </td>
  211. <td align="center" style="white-space: normal" class="JR_right">
  212. 炊事员:{{ message.cookbookRegistrations[8].peopleNames }}
  213. </td>
  214. <td align="center" style="white-space: normal" class="JR_right">
  215. 炊事员:{{ message.cookbookRegistrations[14].peopleNames }}
  216. </td>
  217. <td align="center" style="white-space: normal" class="JR_right">
  218. 炊事员:{{ message.cookbookRegistrations[20].peopleNames }}
  219. </td>
  220. <td align="center" style="white-space: normal" class="JR_right">
  221. 炊事员:{{ message.cookbookRegistrations[26].peopleNames }}
  222. </td>
  223. <td align="center" style="white-space: normal" class="JR_right">
  224. 炊事员:{{ message.cookbookRegistrations[32].peopleNames }}
  225. </td>
  226. <td align="center" style="white-space: normal" class="JR_right">
  227. 炊事员:{{ message.cookbookRegistrations[38].peopleNames }}
  228. </td>
  229. </tr>
  230. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  231. <td align="center" style="white-space: normal" class="JR_right">
  232. {{ message.cookbookRegistrations[2].cookcategoryNames }}
  233. </td>
  234. <td align="center" style="white-space: normal" class="JR_right">
  235. {{ message.cookbookRegistrations[8].cookcategoryNames }}
  236. </td>
  237. <td align="center" style="white-space: normal" class="JR_right">
  238. {{ message.cookbookRegistrations[14].cookcategoryNames }}
  239. </td>
  240. <td align="center" style="white-space: normal" class="JR_right">
  241. {{ message.cookbookRegistrations[20].cookcategoryNames }}
  242. </td>
  243. <td align="center" style="white-space: normal" class="JR_right">
  244. {{ message.cookbookRegistrations[26].cookcategoryNames }}
  245. </td>
  246. <td align="center" style="white-space: normal" class="JR_right">
  247. {{ message.cookbookRegistrations[32].cookcategoryNames }}
  248. </td>
  249. <td align="center" style="white-space: normal" class="JR_right">
  250. {{ message.cookbookRegistrations[38].cookcategoryNames }}
  251. </td>
  252. </tr>
  253. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  254. <td
  255. width="70"
  256. rowspan="2"
  257. align="center"
  258. class="JR_left"
  259. style="font-family: 'fangsong'"
  260. >
  261. 副食
  262. </td>
  263. <td align="center" style="white-space: normal" class="JR_right">
  264. 炊事员:{{ message.cookbookRegistrations[3].peopleNames }}
  265. </td>
  266. <td align="center" style="white-space: normal" class="JR_right">
  267. 炊事员:{{ message.cookbookRegistrations[9].peopleNames }}
  268. </td>
  269. <td align="center" style="white-space: normal" class="JR_right">
  270. 炊事员:{{ message.cookbookRegistrations[15].peopleNames }}
  271. </td>
  272. <td align="center" style="white-space: normal" class="JR_right">
  273. 炊事员:{{ message.cookbookRegistrations[21].peopleNames }}
  274. </td>
  275. <td align="center" style="white-space: normal" class="JR_right">
  276. 炊事员:{{ message.cookbookRegistrations[27].peopleNames }}
  277. </td>
  278. <td align="center" style="white-space: normal" class="JR_right">
  279. 炊事员:{{ message.cookbookRegistrations[33].peopleNames }}
  280. </td>
  281. <td align="center" style="white-space: normal" class="JR_right">
  282. 炊事员:{{ message.cookbookRegistrations[39].peopleNames }}
  283. </td>
  284. </tr>
  285. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  286. <td align="center" style="white-space: normal">
  287. {{ message.cookbookRegistrations[3].cookcategoryNames }}
  288. </td>
  289. <td align="center" style="white-space: normal">
  290. {{ message.cookbookRegistrations[9].cookcategoryNames }}
  291. </td>
  292. <td align="center" style="white-space: normal">
  293. {{ message.cookbookRegistrations[15].cookcategoryNames }}
  294. </td>
  295. <td align="center" style="white-space: normal">
  296. {{ message.cookbookRegistrations[21].cookcategoryNames }}
  297. </td>
  298. <td align="center" style="white-space: normal">
  299. {{ message.cookbookRegistrations[27].cookcategoryNames }}
  300. </td>
  301. <td align="center" style="white-space: normal">
  302. {{ message.cookbookRegistrations[33].cookcategoryNames }}
  303. </td>
  304. <td align="center" style="white-space: normal">
  305. {{ message.cookbookRegistrations[39].cookcategoryNames }}
  306. </td>
  307. </tr>
  308. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  309. <td
  310. width="99"
  311. rowspan="4"
  312. align="center"
  313. class="JR_left"
  314. style="font-family: 'fangsong'"
  315. >
  316. 晚餐
  317. </td>
  318. <td
  319. width="70"
  320. rowspan="2"
  321. align="center"
  322. class="JR_left"
  323. style="font-family: 'fangsong'"
  324. >
  325. 主食
  326. </td>
  327. <td align="center" style="white-space: normal" class="JR_right">
  328. 炊事员:{{ message.cookbookRegistrations[4].peopleNames }}
  329. </td>
  330. <td align="center" style="white-space: normal" class="JR_right">
  331. 炊事员:{{ message.cookbookRegistrations[10].peopleNames }}
  332. </td>
  333. <td align="center" style="white-space: normal" class="JR_right">
  334. 炊事员:{{ message.cookbookRegistrations[16].peopleNames }}
  335. </td>
  336. <td align="center" style="white-space: normal" class="JR_right">
  337. 炊事员:{{ message.cookbookRegistrations[22].peopleNames }}
  338. </td>
  339. <td align="center" style="white-space: normal" class="JR_right">
  340. 炊事员:{{ message.cookbookRegistrations[28].peopleNames }}
  341. </td>
  342. <td align="center" style="white-space: normal" class="JR_right">
  343. 炊事员:{{ message.cookbookRegistrations[34].peopleNames }}
  344. </td>
  345. <td align="center" style="white-space: normal" class="JR_right">
  346. 炊事员:{{ message.cookbookRegistrations[40].peopleNames }}
  347. </td>
  348. </tr>
  349. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  350. <td align="center" style="white-space: normal" class="JR_right">
  351. {{ message.cookbookRegistrations[4].cookcategoryNames }}
  352. </td>
  353. <td align="center" style="white-space: normal" class="JR_right">
  354. {{ message.cookbookRegistrations[10].cookcategoryNames }}
  355. </td>
  356. <td align="center" style="white-space: normal" class="JR_right">
  357. {{ message.cookbookRegistrations[16].cookcategoryNames }}
  358. </td>
  359. <td align="center" style="white-space: normal" class="JR_right">
  360. {{ message.cookbookRegistrations[22].cookcategoryNames }}
  361. </td>
  362. <td align="center" style="white-space: normal" class="JR_right">
  363. {{ message.cookbookRegistrations[28].cookcategoryNames }}
  364. </td>
  365. <td align="center" style="white-space: normal" class="JR_right">
  366. {{ message.cookbookRegistrations[34].cookcategoryNames }}
  367. </td>
  368. <td align="center" style="white-space: normal" class="JR_right">
  369. {{ message.cookbookRegistrations[40].cookcategoryNames }}
  370. </td>
  371. </tr>
  372. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  373. <td
  374. width="70"
  375. rowspan="2"
  376. align="center"
  377. class="JR_left"
  378. style="font-family: 'fangsong'"
  379. >
  380. 副食
  381. </td>
  382. <td align="center" style="white-space: normal" class="JR_right">
  383. 炊事员:{{ message.cookbookRegistrations[5].peopleNames }}
  384. </td>
  385. <td align="center" style="white-space: normal" class="JR_right">
  386. 炊事员:{{ message.cookbookRegistrations[11].peopleNames }}
  387. </td>
  388. <td align="center" style="white-space: normal" class="JR_right">
  389. 炊事员:{{ message.cookbookRegistrations[17].peopleNames }}
  390. </td>
  391. <td align="center" style="white-space: normal" class="JR_right">
  392. 炊事员:{{ message.cookbookRegistrations[23].peopleNames }}
  393. </td>
  394. <td align="center" style="white-space: normal" class="JR_right">
  395. 炊事员:{{ message.cookbookRegistrations[29].peopleNames }}
  396. </td>
  397. <td align="center" style="white-space: normal" class="JR_right">
  398. 炊事员:{{ message.cookbookRegistrations[35].peopleNames }}
  399. </td>
  400. <td align="center" style="white-space: normal" class="JR_right">
  401. 炊事员:{{ message.cookbookRegistrations[41].peopleNames }}
  402. </td>
  403. </tr>
  404. <tr height="45" class="JR_tr" style="font-family: '宋体'">
  405. <td align="center" style="white-space: normal" class="JR_right">
  406. {{ message.cookbookRegistrations[5].cookcategoryNames }}
  407. </td>
  408. <td align="center" style="white-space: normal" class="JR_right">
  409. {{ message.cookbookRegistrations[11].cookcategoryNames }}
  410. </td>
  411. <td align="center" style="white-space: normal" class="JR_right">
  412. {{ message.cookbookRegistrations[17].cookcategoryNames }}
  413. </td>
  414. <td align="center" style="white-space: normal" class="JR_right">
  415. {{ message.cookbookRegistrations[23].cookcategoryNames }}
  416. </td>
  417. <td align="center" style="white-space: normal" class="JR_right">
  418. {{ message.cookbookRegistrations[29].cookcategoryNames }}
  419. </td>
  420. <td align="center" style="white-space: normal" class="JR_right">
  421. {{ message.cookbookRegistrations[35].cookcategoryNames }}
  422. </td>
  423. <td align="center" style="white-space: normal" class="JR_right">
  424. {{ message.cookbookRegistrations[41].cookcategoryNames }}
  425. </td>
  426. </tr>
  427. </tbody>
  428. <tr
  429. class="b1"
  430. style="
  431. border: none;
  432. color: black;
  433. font-size: 16px;
  434. font-weight: 500;
  435. line-height: 30px;
  436. width: 930px;
  437. font-family: 'fangsong';
  438. "
  439. >
  440. <td
  441. colspan="4"
  442. align="left"
  443. style="
  444. border: none;
  445. line-height: 45px;
  446. width: 360px;
  447. padding-left: 34px;
  448. "
  449. >
  450. 单位领导:
  451. </td>
  452. <td
  453. colspan="3"
  454. align="left"
  455. style="
  456. border: none;
  457. line-height: 45px;
  458. width: 360px;
  459. text-align: center;
  460. "
  461. >
  462. 经委会:
  463. </td>
  464. <td
  465. colspan="3"
  466. align="left"
  467. style="
  468. border: none;
  469. line-height: 45px;
  470. text-align: center;
  471. padding-left: 81px;
  472. "
  473. >
  474. 制表:
  475. </td>
  476. </tr>
  477. </table>
  478. <!-- <div
  479. style="width: 100%; height: 50px; margin-top: 20px; color: black"
  480. class="bottom"
  481. >
  482. <span style="margin-left: 30px">单位领导:</span>
  483. <span style="margin-left: 35%">经委会:</span>
  484. <span style="margin-left: 318px">制表:</span>
  485. </div> -->
  486. </div>
  487. </div>
  488. </template>
  489. <script>
  490. import { lookWord } from "@/utils/look_word.js";
  491. import "@/utils/lodJs.js";
  492. export default {
  493. name: "bdgleven",
  494. props: ["message"],
  495. data() {
  496. return {
  497. title: "食堂食谱表",
  498. style:
  499. ".b1{width:860px !important};.JR_tr {height: 40px;};.JR_left{width: 120px;font-size: 1.131em; font-family: '楷体_GB2312';};.JR_right{ font-size: 1.131em; font-family: 仿宋_GB2312;};.JR_bottom{border-left:0; font-size: 1.131em; font-family: 仿宋_GB2312; text-align: right}.bottom {font-size: 14px;display: flex;justify-content:center;}",
  500. };
  501. },
  502. methods: {
  503. daochu() {
  504. lookWord(this.title, "#contents", this.style, true);
  505. },
  506. },
  507. };
  508. </script>
  509. <style scoped>
  510. tbody {
  511. border: black;
  512. color: black;
  513. text-align: center;
  514. }
  515. tr:last-child {
  516. border-bottom: 1px solid;
  517. }
  518. .box1 {
  519. position: absolute;
  520. right: 30px;
  521. top: 80px;
  522. border: 1px solid rgb(129, 130, 131);
  523. border-radius: 5px;
  524. }
  525. .bottom {
  526. font-size: 14px;
  527. display: flex;
  528. justify-content: center;
  529. }
  530. </style>