bdglcookbook.vue 20 KB

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