dialysisPrintOrder.vue 108KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <template v-if="org_template_info.template_id == 1">
  6. <el-button
  7. :loading="loading"
  8. size="small"
  9. icon="el-icon-printer"
  10. @click="printThisPage"
  11. type="primary"
  12. >打印</el-button
  13. >
  14. </template>
  15. <template
  16. v-if="
  17. org_template_info.template_id == 2 ||
  18. org_template_info.template_id == 0
  19. "
  20. >
  21. <div>
  22. <el-button
  23. :loading="loading"
  24. size="small"
  25. icon="el-icon-printer"
  26. @click="printThisPage"
  27. type="primary"
  28. >打印全部</el-button
  29. >
  30. <el-button
  31. :loading="loading"
  32. size="small"
  33. icon="el-icon-printer"
  34. @click="printThisOnePage"
  35. type="primary"
  36. >打印纪录单</el-button
  37. >
  38. <el-button
  39. :loading="loading"
  40. size="small"
  41. icon="el-icon-printer"
  42. @click="printThisTwoPage"
  43. type="primary"
  44. >打印医嘱单</el-button
  45. >
  46. </div>
  47. </template>
  48. <template v-if="org_template_info.template_id == 3">
  49. <el-button
  50. :loading="loading"
  51. size="small"
  52. icon="el-icon-printer"
  53. @click="printThisPage"
  54. type="primary"
  55. >打印</el-button
  56. >
  57. </template>
  58. <template v-if="org_template_info.template_id == 4">
  59. <el-button
  60. :loading="loading"
  61. size="small"
  62. icon="el-icon-printer"
  63. @click="printThisPage"
  64. type="primary"
  65. >打印</el-button
  66. >
  67. </template>
  68. <template v-if="org_template_info.template_id == 5">
  69. <div>
  70. <el-button
  71. :loading="loading"
  72. size="small"
  73. icon="el-icon-printer"
  74. @click="printThisPage"
  75. type="primary"
  76. >打印全部</el-button
  77. >
  78. <el-button
  79. :loading="loading"
  80. size="small"
  81. icon="el-icon-printer"
  82. @click="printThisOnePage"
  83. type="primary"
  84. >打印纪录单</el-button
  85. >
  86. <el-button
  87. :loading="loading"
  88. size="small"
  89. icon="el-icon-printer"
  90. @click="printThisTwoPage"
  91. type="primary"
  92. >打印医嘱单</el-button
  93. >
  94. </div>
  95. </template>
  96. <template
  97. v-if="
  98. org_template_info.template_id == 6 ||
  99. org_template_info.template_id == 10 ||
  100. org_template_info.template_id == 11
  101. "
  102. >
  103. <el-button
  104. :loading="loading"
  105. size="small"
  106. icon="el-icon-printer"
  107. @click="printThisPage"
  108. type="primary"
  109. >打印</el-button
  110. >
  111. </template>
  112. <template v-if="org_template_info.template_id == 7">
  113. <el-button
  114. :loading="loading"
  115. size="small"
  116. icon="el-icon-printer"
  117. @click="printThisPage"
  118. type="primary"
  119. >打印</el-button
  120. >
  121. </template>
  122. <template v-if="org_template_info.template_id == 8">
  123. <el-button
  124. :loading="loading"
  125. size="small"
  126. icon="el-icon-printer"
  127. @click="printThisPage"
  128. type="primary"
  129. >打印</el-button
  130. >
  131. </template>
  132. <template v-if="org_template_info.template_id == 9">
  133. <el-button
  134. :loading="loading"
  135. size="small"
  136. icon="el-icon-printer"
  137. @click="printThisPage"
  138. type="primary"
  139. >打印</el-button
  140. >
  141. </template>
  142. <template v-if="org_template_info.template_id == 12">
  143. <el-button
  144. :loading="loading"
  145. size="small"
  146. icon="el-icon-printer"
  147. @click="printThisPage"
  148. type="primary"
  149. >打印</el-button
  150. >
  151. </template>
  152. <template v-if="org_template_info.template_id == 13">
  153. <el-button
  154. :loading="loading"
  155. size="small"
  156. icon="el-icon-printer"
  157. @click="printThisPage"
  158. type="primary"
  159. >打印</el-button
  160. >
  161. </template>
  162. <template
  163. v-if="
  164. org_template_info.template_id == 14 ||
  165. org_template_info.template_id == 0
  166. "
  167. >
  168. <div>
  169. <el-button
  170. :loading="loading"
  171. size="small"
  172. icon="el-icon-printer"
  173. @click="printThisPage"
  174. type="primary"
  175. >打印全部</el-button
  176. >
  177. <el-button
  178. :loading="loading"
  179. size="small"
  180. icon="el-icon-printer"
  181. @click="printThisOnePage"
  182. type="primary"
  183. >打印纪录单</el-button
  184. >
  185. <el-button
  186. :loading="loading"
  187. size="small"
  188. icon="el-icon-printer"
  189. @click="printThisTwoPage"
  190. type="primary"
  191. >打印医嘱单</el-button
  192. >
  193. </div>
  194. </template>
  195. <template v-if="org_template_info.template_id == 15">
  196. <el-button
  197. :loading="loading"
  198. size="small"
  199. icon="el-icon-printer"
  200. @click="printThisPage"
  201. type="primary"
  202. >打印</el-button
  203. >
  204. </template>
  205. <template v-if="org_template_info.template_id == 16">
  206. <el-button
  207. :loading="loading"
  208. size="small"
  209. icon="el-icon-printer"
  210. @click="printThisPage"
  211. type="primary"
  212. >打印</el-button
  213. >
  214. </template>
  215. <template v-if="org_template_info.template_id == 17">
  216. <el-button
  217. :loading="loading"
  218. size="small"
  219. icon="el-icon-printer"
  220. @click="printThisPage"
  221. type="primary"
  222. >打印</el-button
  223. >
  224. </template>
  225. <template v-if="org_template_info.template_id == 18">
  226. <el-button
  227. :loading="loading"
  228. size="small"
  229. icon="el-icon-printer"
  230. @click="printThisPage"
  231. type="primary"
  232. >打印</el-button
  233. >
  234. </template>
  235. <template v-if="org_template_info.template_id == 19">
  236. <el-button
  237. :loading="loading"
  238. size="small"
  239. icon="el-icon-printer"
  240. @click="printThisPage"
  241. type="primary"
  242. >打印</el-button
  243. >
  244. </template>
  245. <template v-if="org_template_info.template_id == 20">
  246. <el-button
  247. :loading="loading"
  248. size="small"
  249. icon="el-icon-printer"
  250. @click="printThisPage"
  251. type="primary"
  252. >打印</el-button
  253. >
  254. </template>
  255. <!-- <template v-if="org_template_info.template_id == 21">
  256. <el-button
  257. :loading="loading"
  258. size="small"
  259. icon="el-icon-printer"
  260. @click="printThisPage"
  261. type="primary"
  262. >打印</el-button
  263. >
  264. </template> -->
  265. <template
  266. v-if="
  267. org_template_info.template_id == 21 ||
  268. org_template_info.template_id == 0
  269. "
  270. >
  271. <div>
  272. <el-button
  273. :loading="loading"
  274. size="small"
  275. icon="el-icon-printer"
  276. @click="printThisPage"
  277. type="primary"
  278. >打印全部</el-button
  279. >
  280. <el-button
  281. :loading="loading"
  282. size="small"
  283. icon="el-icon-printer"
  284. @click="printThisOnePage"
  285. type="primary"
  286. >打印纪录单</el-button
  287. >
  288. <el-button
  289. :loading="loading"
  290. size="small"
  291. icon="el-icon-printer"
  292. @click="printThisTwoPage"
  293. type="primary"
  294. >打印医嘱单</el-button
  295. >
  296. </div>
  297. </template>
  298. <template v-if="org_template_info.template_id == 22">
  299. <div>
  300. <el-button
  301. :loading="loading"
  302. size="small"
  303. icon="el-icon-printer"
  304. @click="printThisPage"
  305. type="primary"
  306. >打印全部</el-button
  307. >
  308. <el-button
  309. :loading="loading"
  310. size="small"
  311. icon="el-icon-printer"
  312. @click="printThisOnePage"
  313. type="primary"
  314. >打印纪录单</el-button
  315. >
  316. <el-button
  317. :loading="loading"
  318. size="small"
  319. icon="el-icon-printer"
  320. @click="printThisTwoPage"
  321. type="primary"
  322. >打印医嘱单</el-button
  323. >
  324. </div>
  325. </template>
  326. <template v-if="org_template_info.template_id == 23">
  327. <el-button
  328. :loading="loading"
  329. size="small"
  330. icon="el-icon-printer"
  331. @click="printThisPage"
  332. type="primary"
  333. >打印</el-button
  334. >
  335. </template>
  336. <template v-if="org_template_info.template_id == 24">
  337. <el-button
  338. :loading="loading"
  339. size="small"
  340. icon="el-icon-printer"
  341. @click="printThisPage"
  342. type="primary"
  343. >打印</el-button
  344. >
  345. </template>
  346. <template v-if="org_template_info.template_id == 25">
  347. <el-button
  348. :loading="loading"
  349. size="small"
  350. icon="el-icon-printer"
  351. @click="printThisPage"
  352. type="primary"
  353. >打印</el-button
  354. >
  355. </template>
  356. <template v-if="org_template_info.template_id == 26">
  357. <el-button
  358. :loading="loading"
  359. size="small"
  360. icon="el-icon-printer"
  361. @click="printThisPage"
  362. type="primary"
  363. >打印</el-button
  364. >
  365. </template>
  366. <template
  367. v-if="
  368. org_template_info.template_id == 27 ||
  369. org_template_info.template_id == 0
  370. "
  371. >
  372. <div>
  373. <el-button
  374. :loading="loading"
  375. size="small"
  376. icon="el-icon-printer"
  377. @click="printThisPage"
  378. type="primary"
  379. >打印全部</el-button
  380. >
  381. <el-button
  382. :loading="loading"
  383. size="small"
  384. icon="el-icon-printer"
  385. @click="printThisOnePage"
  386. type="primary"
  387. >打印纪录单</el-button
  388. >
  389. <el-button
  390. :loading="loading"
  391. size="small"
  392. icon="el-icon-printer"
  393. @click="printThisTwoPage"
  394. type="primary"
  395. >打印医嘱单</el-button
  396. >
  397. </div>
  398. </template>
  399. <template v-if="org_template_info.template_id == 28">
  400. <el-button
  401. :loading="loading"
  402. size="small"
  403. icon="el-icon-printer"
  404. @click="printThisPage"
  405. type="primary"
  406. >打印</el-button
  407. >
  408. </template>
  409. <template v-if="org_template_info.template_id == 29">
  410. <el-button
  411. :loading="loading"
  412. size="small"
  413. icon="el-icon-printer"
  414. @click="printThisPage"
  415. type="primary"
  416. >打印</el-button
  417. >
  418. </template>
  419. <template v-if="org_template_info.template_id == 30">
  420. <el-button
  421. :loading="loading"
  422. size="small"
  423. icon="el-icon-printer"
  424. @click="printThisPage"
  425. type="primary"
  426. >打印</el-button
  427. >
  428. </template>
  429. <template v-if="org_template_info.template_id == 31">
  430. <el-button
  431. :loading="loading"
  432. size="small"
  433. icon="el-icon-printer"
  434. @click="printThisPage"
  435. type="primary"
  436. >打印</el-button
  437. >
  438. </template>
  439. <template v-if="org_template_info.template_id == 32">
  440. <el-button
  441. :loading="loading"
  442. size="small"
  443. icon="el-icon-printer"
  444. @click="printThisPage"
  445. type="primary"
  446. >打印</el-button
  447. >
  448. </template>
  449. <template v-if="org_template_info.template_id == 33">
  450. <div>
  451. <el-button
  452. :loading="loading"
  453. size="small"
  454. icon="el-icon-printer"
  455. @click="printThisPage"
  456. type="primary"
  457. >打印全部</el-button
  458. >
  459. <el-button
  460. :loading="loading"
  461. size="small"
  462. icon="el-icon-printer"
  463. @click="printThisOnePage"
  464. type="primary"
  465. >打印纪录单</el-button
  466. >
  467. <el-button
  468. :loading="loading"
  469. size="small"
  470. icon="el-icon-printer"
  471. @click="printThisTwoPage"
  472. type="primary"
  473. >打印医嘱单</el-button
  474. >
  475. </div>
  476. </template>
  477. <template v-if="org_template_info.template_id == 34">
  478. <el-button
  479. :loading="loading"
  480. size="small"
  481. icon="el-icon-printer"
  482. @click="printThisPage"
  483. type="primary"
  484. >打印</el-button
  485. >
  486. </template>
  487. <template v-if="org_template_info.template_id == 35">
  488. <el-button
  489. :loading="loading"
  490. size="small"
  491. icon="el-icon-printer"
  492. @click="printThisPage"
  493. type="primary"
  494. >打印</el-button
  495. >
  496. </template>
  497. <template v-if="org_template_info.template_id == 36">
  498. <div>
  499. <el-button
  500. :loading="loading"
  501. size="small"
  502. icon="el-icon-printer"
  503. @click="printThisPage"
  504. type="primary"
  505. >打印全部</el-button
  506. >
  507. <el-button
  508. :loading="loading"
  509. size="small"
  510. icon="el-icon-printer"
  511. @click="printThisOnePage"
  512. type="primary"
  513. >打印纪录单</el-button
  514. >
  515. <el-button
  516. :loading="loading"
  517. size="small"
  518. icon="el-icon-printer"
  519. @click="printThisTwoPage"
  520. type="primary"
  521. >打印医嘱单</el-button
  522. >
  523. </div>
  524. </template>
  525. <template v-if="org_template_info.template_id == 37">
  526. <el-button
  527. :loading="loading"
  528. size="small"
  529. icon="el-icon-printer"
  530. @click="printThisPage"
  531. type="primary"
  532. >打印</el-button
  533. >
  534. </template>
  535. <template v-if="org_template_info.template_id == 38">
  536. <el-button
  537. :loading="loading"
  538. size="small"
  539. icon="el-icon-printer"
  540. @click="printThisPage"
  541. type="primary"
  542. >打印</el-button
  543. >
  544. </template>
  545. <template v-if="org_template_info.template_id == 39">
  546. <el-button
  547. :loading="loading"
  548. size="small"
  549. icon="el-icon-printer"
  550. @click="printThisPage"
  551. type="primary"
  552. >打印</el-button
  553. >
  554. </template>
  555. <template v-if="org_template_info.template_id == 40">
  556. <el-button
  557. :loading="loading"
  558. size="small"
  559. icon="el-icon-printer"
  560. @click="printThisPage"
  561. type="primary"
  562. >打印</el-button
  563. >
  564. </template>
  565. <template v-if="org_template_info.template_id == 41">
  566. <el-button
  567. :loading="loading"
  568. size="small"
  569. icon="el-icon-printer"
  570. @click="printThisPage"
  571. type="primary"
  572. >打印</el-button
  573. >
  574. </template>
  575. </div>
  576. <div class="app-container" style="min-height:0;">
  577. <!--<div class="order-print-btn"-->
  578. <!--v-loading="loading"-->
  579. <!--element-loading-text="加载中"-->
  580. <!--element-loading-spinner="el-icon-loading"-->
  581. <!--element-loading-background="rgba(0, 0, 0, 0.8)"-->
  582. <!--style="width: 100%;">-->
  583. <!--</div>-->
  584. <!--<dialysis-print-order-two :patientInfo="patientInfo" :receiverTreatmentAccess="receiverTreatmentAccess" :predialysis="predialysis"></dialysis-print-order-two>-->
  585. <el-container class="newContainer">
  586. <div style="width:270px;margin-right:20px;">
  587. <div class="cell clearfix" style="margin-bottom:10px;">
  588. <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 130px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
  589. <el-input size="small" style="width:80px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  590. <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
  591. </div>
  592. <div class="cell clearfix" style="margin-bottom:10px;">
  593. <el-select v-model="patientStateVal" placeholder="全部患者状态" style="width:130px;margin-right:10px;" @change="handleStateChange">
  594. <el-option
  595. v-for="item in patient_state"
  596. :key="item.value"
  597. :label="item.label"
  598. :value="item.value">
  599. </el-option>
  600. </el-select>
  601. <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="width:130px;margin-right:10px;" @change="handleTreatChange">
  602. <el-option
  603. v-for="item in treat_state"
  604. :key="item.value"
  605. :label="item.label"
  606. :value="item.value">
  607. </el-option>
  608. </el-select>
  609. </div>
  610. <div class="cell clearfix" style="margin-bottom:10px;">
  611. <el-select v-model="scheduleStateVal" placeholder="班次" style="width:130px;margin-right:10px;" @change="handletimeType">
  612. <el-option
  613. v-for="item in schedule_options"
  614. :key="item.value"
  615. :label="item.label"
  616. :value="item.value">
  617. </el-option>
  618. </el-select>
  619. <el-select v-model="zoneVal" placeholder="分区" style="width:130px;margin-right:10px;" @change="handleZoneChange">
  620. <el-option
  621. v-for="item in zone_options"
  622. :key="item.id"
  623. :label="item.text"
  624. :value="item.id">
  625. </el-option>
  626. </el-select>
  627. </div>
  628. <div style="padding-right:20px;">
  629. <el-table
  630. ref="tab"
  631. @row-click="changePatient"
  632. highlight-current-row
  633. :data="tableData"
  634. height="480"
  635. border
  636. style="width: 100%">
  637. <el-table-column
  638. prop="date"
  639. label="患者"
  640. >
  641. <template slot-scope="scope">
  642. {{ scope.row.patient.name }}
  643. </template>
  644. </el-table-column>
  645. <el-table-column
  646. prop="name"
  647. label="透析号"
  648. >
  649. <template slot-scope="scope">
  650. {{ scope.row.patient.dialysis_no }}
  651. </template>
  652. </el-table-column>
  653. </el-table>
  654. </div>
  655. </div>
  656. <div class='dialysisPage' style="height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
  657. <DialysisPrintOrderOne
  658. v-bind:childResponse="childResponse"
  659. v-if="org_template_info.template_id == 1"
  660. >
  661. </DialysisPrintOrderOne>
  662. <DialysisPrintOrderTwo
  663. v-bind:childResponse="childResponse"
  664. v-if="
  665. org_template_info.template_id == 2 ||
  666. org_template_info.template_id == 0
  667. "
  668. ></DialysisPrintOrderTwo>
  669. <DialysisPrintOrderThree
  670. v-bind:childResponse="childResponse"
  671. v-if="org_template_info.template_id == 3"
  672. >
  673. </DialysisPrintOrderThree>
  674. <DialysisPrintOrderFour
  675. v-bind:childResponse="childResponse"
  676. v-if="org_template_info.template_id == 4"
  677. >
  678. </DialysisPrintOrderFour>
  679. <DialysisPrintOrderFive
  680. v-bind:childResponse="childResponse"
  681. v-if="org_template_info.template_id == 5"
  682. >
  683. </DialysisPrintOrderFive>
  684. <DialysisPrintOrderSix
  685. v-bind:childResponse="childResponse"
  686. v-if="org_template_info.template_id == 6"
  687. >
  688. </DialysisPrintOrderSix>
  689. <DialysisPrintOrderSeven
  690. v-bind:childResponse="childResponse"
  691. v-if="org_template_info.template_id == 7"
  692. >
  693. </DialysisPrintOrderSeven>
  694. <DialysisPrintOrderEight
  695. v-bind:childResponse="childResponse"
  696. v-if="org_template_info.template_id == 8"
  697. >
  698. </DialysisPrintOrderEight>
  699. <!--<DialysisPrintOrderTen></DialysisPrintOrderTen>-->
  700. <DialysisPrintOrderTen
  701. v-bind:childResponse="childResponse"
  702. v-if="org_template_info.template_id == 10"
  703. ></DialysisPrintOrderTen>
  704. <DialysisPrintOrderNine
  705. v-bind:childResponse="childResponse"
  706. v-if="org_template_info.template_id == 9"
  707. ></DialysisPrintOrderNine>
  708. <DialysisPrintOrderEleven
  709. v-bind:childResponse="childResponse"
  710. v-if="org_template_info.template_id == 11"
  711. ></DialysisPrintOrderEleven>
  712. <DialysisPrintOrderTwelve
  713. v-bind:childResponse="childResponse"
  714. v-if="org_template_info.template_id == 12"
  715. ></DialysisPrintOrderTwelve>
  716. <DialysisPrintOrderThirteen
  717. v-bind:childResponse="childResponse"
  718. v-if="org_template_info.template_id == 13"
  719. ></DialysisPrintOrderThirteen>
  720. <DialysisPrintOrderFourteen
  721. v-bind:childResponse="childResponse"
  722. v-if="org_template_info.template_id == 14"
  723. ></DialysisPrintOrderFourteen>
  724. <DialysisPrintOrderFifteen
  725. v-bind:childResponse="childResponse"
  726. v-if="org_template_info.template_id == 15"
  727. ></DialysisPrintOrderFifteen>
  728. <DialysisPrintOrderSixteen
  729. v-bind:childResponse="childResponse"
  730. v-if="org_template_info.template_id == 16"
  731. ></DialysisPrintOrderSixteen>
  732. <DialysisPrintOrderSeventeen
  733. v-bind:childResponse="childResponse"
  734. v-if="org_template_info.template_id == 17"
  735. ></DialysisPrintOrderSeventeen>
  736. <DialysisPrintOrderEighteen
  737. v-bind:childResponse="childResponse"
  738. v-if="org_template_info.template_id == 18"
  739. ></DialysisPrintOrderEighteen>
  740. <DialysisPrintOrderNineteen
  741. v-bind:childResponse="childResponse"
  742. v-if="org_template_info.template_id == 19"
  743. ></DialysisPrintOrderNineteen>
  744. <DialysisPrintOrderTwenty
  745. v-bind:childResponse="childResponse"
  746. v-if="org_template_info.template_id == 20"
  747. ></DialysisPrintOrderTwenty>
  748. <DialysisPrintOrderTwentyOne
  749. v-bind:childResponse="childResponse"
  750. v-if="org_template_info.template_id == 21"
  751. ></DialysisPrintOrderTwentyOne>
  752. <DialysisPrintOrderTwentyTwo
  753. v-bind:childResponse="childResponse"
  754. v-if="org_template_info.template_id == 22"
  755. ></DialysisPrintOrderTwentyTwo>
  756. <DialysisPrintOrderTwentyThree
  757. v-bind:childResponse="childResponse"
  758. v-if="org_template_info.template_id == 23"
  759. ></DialysisPrintOrderTwentyThree>
  760. <DialysisPrintOrderTwentyFour
  761. v-bind:childResponse="childResponse"
  762. v-if="org_template_info.template_id == 24"
  763. ></DialysisPrintOrderTwentyFour>
  764. <DialysisPrintOrderTwentyFive
  765. v-bind:childResponse="childResponse"
  766. v-if="org_template_info.template_id == 25"
  767. >
  768. </DialysisPrintOrderTwentyFive>
  769. <DialysisPrintOrderTwentySix
  770. v-bind:childResponse="childResponse"
  771. v-if="org_template_info.template_id == 26"
  772. >
  773. </DialysisPrintOrderTwentySix>
  774. <DialysisPrintOrderTwentySeven
  775. v-bind:childResponse="childResponse"
  776. v-if="org_template_info.template_id == 27"
  777. >
  778. </DialysisPrintOrderTwentySeven>
  779. <DialysisPrintOrderTwentyEight
  780. v-bind:childResponse="childResponse"
  781. v-if="org_template_info.template_id == 28"
  782. >
  783. </DialysisPrintOrderTwentyEight>
  784. <DialysisPrintOrderTwentyNine
  785. v-bind:childResponse="childResponse"
  786. v-if="org_template_info.template_id == 29"
  787. >
  788. </DialysisPrintOrderTwentyNine>
  789. <DialysisPrintOrderThirty
  790. v-bind:childResponse="childResponse"
  791. v-if="org_template_info.template_id == 30"
  792. >
  793. </DialysisPrintOrderThirty>
  794. <DialysisPrintOrderThirtyOne
  795. v-bind:childResponse="childResponse"
  796. v-if="org_template_info.template_id == 31"
  797. >
  798. </DialysisPrintOrderThirtyOne>
  799. <DialysisPrintOrderThirtyTwo
  800. v-bind:childResponse="childResponse"
  801. v-if="org_template_info.template_id == 32"
  802. >
  803. </DialysisPrintOrderThirtyTwo>
  804. <DialysisPrintOrderThirtyThree
  805. v-bind:childResponse="childResponse"
  806. v-if="org_template_info.template_id == 33"
  807. >
  808. </DialysisPrintOrderThirtyThree>
  809. <DialysisPrintOrderThirtyFour
  810. v-bind:childResponse="childResponse"
  811. v-if="org_template_info.template_id == 34"
  812. >
  813. </DialysisPrintOrderThirtyFour>
  814. <DialysisPrintOrderThirtyFive
  815. v-bind:childResponse="childResponse"
  816. v-if="org_template_info.template_id == 35"
  817. >
  818. </DialysisPrintOrderThirtyFive>
  819. <DialysisPrintOrderThirtySix
  820. v-bind:childResponse="childResponse"
  821. v-if="org_template_info.template_id == 36"
  822. >
  823. </DialysisPrintOrderThirtySix>
  824. <DialysisPrintOrderThirtySeven
  825. v-bind:childResponse="childResponse"
  826. v-if="org_template_info.template_id == 37"
  827. >
  828. </DialysisPrintOrderThirtySeven>
  829. <DialysisPrintOrderThirtyEight
  830. v-bind:childResponse="childResponse"
  831. v-if="org_template_info.template_id == 38"
  832. >
  833. </DialysisPrintOrderThirtyEight>
  834. <DialysisPrintOrderThirtyNine
  835. v-bind:childResponse="childResponse"
  836. v-if="org_template_info.template_id == 39"
  837. >
  838. </DialysisPrintOrderThirtyNine>
  839. <DialysisPrintOrderForty
  840. v-bind:childResponse="childResponse"
  841. v-if="org_template_info.template_id == 40"
  842. >
  843. </DialysisPrintOrderForty>
  844. <DialysisPrintOrderFortyOne
  845. v-bind:childResponse="childResponse"
  846. v-if="org_template_info.template_id == 41"
  847. >
  848. </DialysisPrintOrderFortyOne>
  849. </div>
  850. </el-container>
  851. </div>
  852. </div>
  853. </template>
  854. <script>
  855. import {
  856. getDialysisRecordInitData,
  857. getDialysisSchedules
  858. } from "@/api/dialysis_record";
  859. import { parseTime } from "@/utils";
  860. import { getDialysisRecord } from "@/api/dialysis";
  861. import { getDataConfig } from "@/utils/data";
  862. import { jsGetAge, uParseTime } from "@/utils/tools";
  863. import LabelBox from "./printItem/LabelBox";
  864. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  865. import DialysisPrintOrderOne from "./template/dialysisPrintOrderOne";
  866. import DialysisPrintOrderTwo from "./template/dialysisPrintOrderTwo";
  867. import DialysisPrintOrderThree from "./template/dialysisPrintOrderThree";
  868. import DialysisPrintOrderFour from "./template/DialysisPrintOrderFour";
  869. import DialysisPrintOrderFive from "./template/DialysisPrintOrderFive";
  870. import DialysisPrintOrderSix from "./template/DialysisPrintOrderSix";
  871. import DialysisPrintOrderSeven from "./template/DialysisPrintOrderSeven";
  872. import DialysisPrintOrderEight from "./template/DialysisPrintOrderEight";
  873. import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
  874. import print from "print-js";
  875. import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
  876. import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
  877. import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
  878. import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
  879. import DialysisPrintOrderFourteen from "./template/DialysisPrintOrderFourteen";
  880. import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
  881. import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
  882. import DialysisPrintOrderSeventeen from "./template/DialysisPrintOrderSeventeen";
  883. import DialysisPrintOrderEighteen from "./template/DialysisPrintOrderEighteen";
  884. import DialysisPrintOrderNineteen from "./template/DialysisPrintOrderNineteen";
  885. import DialysisPrintOrderTwenty from "./template/DialysisPrintOrderTwenty";
  886. import DialysisPrintOrderTwentyOne from "./template/DialysisPrintOrderTwentyOne";
  887. import DialysisPrintOrderTwentyTwo from "./template/DialysisPrintOrderTwentyTwo";
  888. import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
  889. import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
  890. import DialysisPrintOrderTwentyFive from "./template/DialysisPrintOrderTwentyFive";
  891. import DialysisPrintOrderTwentySix from "./template/DialysisPrintOrderTwentySix";
  892. import DialysisPrintOrderTwentySeven from "./template/DialysisPrintOrderTwentySeven";
  893. import DialysisPrintOrderTwentyEight from "./template/DialysisPrintOrderTwentyEight";
  894. import DialysisPrintOrderTwentyNine from "./template/DialysisPrintOrderTwentyNine";
  895. import DialysisPrintOrderThirty from "./template/DialysisPrintOrderThirty";
  896. import DialysisPrintOrderThirtyOne from "./template/DialysisPrintOrderThirtyOne";
  897. import DialysisPrintOrderThirtyTwo from "./template/DialysisPrintOrderThirtyTwo";
  898. import DialysisPrintOrderThirtyThree from "./template/DialysisPrintOrderThirtyThree";
  899. import DialysisPrintOrderThirtyFour from "./template/DialysisPrintOrderThirtyFour";
  900. import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFive";
  901. import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
  902. import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
  903. import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
  904. import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
  905. import DialysisPrintOrderForty from "./template/DialysisPrintOrderForty";
  906. import DialysisPrintOrderFortyOne from "./template/DialysisPrintOrderFortyOne";
  907. export default {
  908. name: "dialysisPrintOrder",
  909. components: {
  910. DialysisPrintOrderFortyOne,
  911. DialysisPrintOrderForty,
  912. DialysisPrintOrderThirtyNine,
  913. DialysisPrintOrderThirtyEight,
  914. DialysisPrintOrderThirtySeven,
  915. DialysisPrintOrderThirtySix,
  916. DialysisPrintOrderThirtyFive,
  917. DialysisPrintOrderThirtyFour,
  918. DialysisPrintOrderThirtyThree,
  919. DialysisPrintOrderThirtyTwo,
  920. DialysisPrintOrderThirtyOne,
  921. DialysisPrintOrderThirty,
  922. DialysisPrintOrderTwentyNine,
  923. DialysisPrintOrderTwentyEight,
  924. DialysisPrintOrderTwentySeven,
  925. DialysisPrintOrderTwentySix,
  926. DialysisPrintOrderTwentyFive,
  927. DialysisPrintOrderTwentyFour,
  928. DialysisPrintOrderTwentyThree,
  929. DialysisPrintOrderTwentyTwo,
  930. DialysisPrintOrderTwentyOne,
  931. DialysisPrintOrderTwenty,
  932. DialysisPrintOrderNineteen,
  933. DialysisPrintOrderEighteen,
  934. DialysisPrintOrderSeventeen,
  935. DialysisPrintOrderSixteen,
  936. DialysisPrintOrderFifteen,
  937. DialysisPrintOrderFourteen,
  938. DialysisPrintOrderThirteen,
  939. DialysisPrintOrderTwelve,
  940. DialysisPrintOrderEleven,
  941. DialysisPrintOrderTen,
  942. DialysisPrintOrderOne,
  943. DialysisPrintOrderTwo,
  944. DialysisPrintOrderThree,
  945. DialysisPrintOrderFour,
  946. DialysisPrintOrderFive,
  947. DialysisPrintOrderSix,
  948. DialysisPrintOrderSeven,
  949. DialysisPrintOrderEight,
  950. DialysisPrintOrderNine,
  951. LabelBox,
  952. BreadCrumb
  953. },
  954. data() {
  955. return {
  956. crumbs: [
  957. { path: false, name: "透析管理" },
  958. { path: false, name: "打印单" }
  959. ],
  960. childResponse: {},
  961. operators: [],
  962. adminUser: [],
  963. check: {},
  964. dialysisOrder: {
  965. DeviceNumber: []
  966. },
  967. operatorMaps: {},
  968. complications: [
  969. "低血压",
  970. "高血压",
  971. "心律失常",
  972. "头晕",
  973. "头痛",
  974. "呕吐",
  975. "抽搐",
  976. "出血",
  977. "心衰",
  978. "腹痛"
  979. ],
  980. jilurow: 0,
  981. advice_jilurow: 0,
  982. loading: false,
  983. orgname: "",
  984. patientInfo_gender_1: false,
  985. patientInfo_gender_2: false,
  986. patientInfo_source_2: false,
  987. patientInfo_source_1: false,
  988. modeOptions: {},
  989. replacementWays: [],
  990. perfusionApparatus: [],
  991. anticoagulantsConfit: {},
  992. bloodAccessParOpera: {},
  993. dialysateFormulationOptions: {},
  994. queryParams: {
  995. xtdate: "",
  996. xtno: ""
  997. },
  998. patientInfo: {
  999. birth: "",
  1000. age: "",
  1001. DialysisSchedule: {
  1002. device_number: { number: "" },
  1003. device_zone: { name: "" }
  1004. },
  1005. gender: 0
  1006. },
  1007. predialysis: {
  1008. score: "",
  1009. internal_fistula: "",
  1010. internal_fistula_skin: "",
  1011. catheter: "",
  1012. blood_access_part_opera_name: ""
  1013. },
  1014. afterdialysis: {
  1015. complications_index: ""
  1016. },
  1017. prescription: {
  1018. dialysate_formulation_name: "",
  1019. device: {}
  1020. },
  1021. advices: [],
  1022. users: [],
  1023. monitors: [],
  1024. summary: {},
  1025. receiverTreatmentAccess: {},
  1026. org_template_info: {},
  1027. doctor_advices: [],
  1028. advice_groups: [],
  1029. AlPanel: {
  1030. id: 0,
  1031. name: "",
  1032. type: 1,
  1033. shouji: 2,
  1034. weichi: 2,
  1035. zongliang: 2,
  1036. gaimingcheng: -1,
  1037. gaijiliang: -1,
  1038. shouji_unit: "mg",
  1039. weichi_unit: "mg/h",
  1040. zongliang_unit: "mg",
  1041. gaimingcheng_unit: "",
  1042. gaijiliang_unit: ""
  1043. },
  1044. //
  1045. tableData: [],
  1046. selected_date: new Date(),
  1047. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  1048. search_keyword: '', // 确定用于搜索的关键字
  1049. search_input: '', // 输入中的关键字
  1050. patient_state:[
  1051. {value: 0,label: '全部'},
  1052. {value: 1,label: '已签到'},
  1053. {value: 2,label: '未签到'},
  1054. {value: 3,label: '已上机'},
  1055. {value: 4,label: '已下机'},
  1056. ],
  1057. patientStateVal: 0,
  1058. treat_state:[
  1059. {value: 0,label: '全部'},
  1060. {value: 1,label: '待开处方'},
  1061. {value: 2,label: '待开小结'},
  1062. ],
  1063. treatStateVal: 0,
  1064. schedule_options:[
  1065. {value: 0,label: '全部'},
  1066. {value: 1,label: '上午'},
  1067. {value: 2,label: '下午'},
  1068. {value: 3,label: '晚上'},
  1069. ],
  1070. scheduleStateVal: 0,
  1071. zone_options:[
  1072. { id: 0, text: '全部' }
  1073. ],
  1074. zoneVal:0,
  1075. };
  1076. },
  1077. methods: {
  1078. getAdminUser(id) {
  1079. if (id == 0) {
  1080. return "";
  1081. }
  1082. if (id == undefined) {
  1083. return "";
  1084. }
  1085. for (let i = 0; i < this.adminUser.length; i++) {
  1086. if (this.adminUser[i].id == id) {
  1087. return this.adminUser[i].name;
  1088. }
  1089. }
  1090. },
  1091. getTime(value, temp) {
  1092. if (value == 0) {
  1093. return "";
  1094. }
  1095. if (value != undefined) {
  1096. return uParseTime(value, temp);
  1097. }
  1098. return "";
  1099. },
  1100. printThisPage() {
  1101. var ptime = Math.round(new Date().getTime() / 1000);
  1102. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1103. const style =
  1104. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  1105. const style2 =
  1106. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
  1107. const style3 =
  1108. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
  1109. // const style3 =
  1110. // '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 5px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  1111. //
  1112. const style5 =
  1113. '@media print {.dialysis-print-order {width: 960px; margin: 0 auto;}.dialysis-print-order .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.dialysis-print-order .order-title { margin: auto; font-weight: 600; text-align: center; font-size: 22px; padding: 10px 20px 0px 20px;}.dialysis-print-order .table-box { width: 100%; line-height: 18px; font-size: 14px;}.dialysis-print-order .print-table { width: 100%; text-align: center; border-collapse: collapse; line-height: 28px; font-size: 14px;}.dialysis-print-order .print-table-no { width: 100%; text-align: center; border-collapse: collapse; font-size: 14px;}.dialysis-print-order .under-line { border-bottom: 1px solid #999; width: 95%; text-align: center; margin-left: 2px;}.dialysis-print-order .title-box { text-align: center; font-size: 16px;}.dialysis-print-order .radio-lebel-box { font-weight: 400; cursor: pointer;}.dialysis-print-order .radio-no { opacity: 0; outline: none; position: absolute; margin: 0; width: 0; height: 0; z-index: -1;}.dialysis-print-order .radio-inner { white-space: nowrap; cursor: pointer; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle;}.dialysis-print-order .radio-fang { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 14px; background-color: #fff; z-index: 1; transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);}.dialysis-print-order .is-checked-radio::after { content: "√"; font-size: 15px;}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px;}.dialysis-print-order .print-table tr td { padding: 1px 1px; /*line-height: 25px;*/}.es-img { height: 25px;}.advice-name { text-align: left;}.advice-children { display: flex;}.title-box-pro { border: 0 #fff; line-height: 25px; height: 25px; text-align: left; padding-left: 10px !important;}.title-box-pro-tr { border: 0 #fff;}.text-align-left { text-align: left !important; padding-left: 10px !important; font-size: 14px !important; line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
  1114. const style6 =
  1115. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:16px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:16px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  1116. const style7 =
  1117. '@media print {.dialysis-print-order {width: 960px; margin: 0 auto;}.dialysis-print-order .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.dialysis-print-order .order-title { margin: auto; font-weight: 600; text-align: center; font-size: 22px; padding: 10px 20px 0px 20px;}.dialysis-print-order .table-box { width: 100%; line-height: 18px; font-size: 18px;}.dialysis-print-order .print-table { width: 100%; text-align: center; border-collapse: collapse; line-height: 28px; font-size: 18px;}.dialysis-print-order .print-table-no { width: 100%; text-align: center; border-collapse: collapse; font-size: 14px;}.dialysis-print-order .under-line { border-bottom: 1px solid #999; width: 95%; text-align: center; margin-left: 2px;}.dialysis-print-order .title-box { text-align: center; font-size: 16px;}.dialysis-print-order .radio-lebel-box { font-weight: 400; cursor: pointer;}.dialysis-print-order .radio-no { opacity: 0; outline: none; position: absolute; margin: 0; width: 0; height: 0; z-index: -1;}.dialysis-print-order .radio-inner { white-space: nowrap; cursor: pointer; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle;}.dialysis-print-order .radio-fang { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 18px; height: 18px; background-color: #fff; z-index: 1; transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46), background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);}.dialysis-print-order .is-checked-radio::after { content: "√"; font-size: 19px;}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px;}.dialysis-print-order .print-table tr td { padding: 1px 1px; /*line-height: 25px;*/}.es-img { height: 25px;}.advice-name { text-align: left;}.advice-children { display: flex;}.title-box-pro { border: 0 #fff; line-height: 25px; height: 25px; text-align: left; padding-left: 10px !important;}.title-box-pro-tr { border: 0 #fff;}.text-align-left { text-align: left !important; padding-left: 10px !important; font-size: 14px !important; line-height: 25px;}.print-table-tr-new td {line-height: 20px !important;}.border-top-solid {border: solid 1px #000;}.print-template-two tr {line-height: 30px;}}';
  1118. const style8 =
  1119. '@media print {.dialysis-print-order{width:960px;margin:0 auto;font-size:10px;}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:10px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.widthLength25{width: 25%;}.lineHeight{line-height: 20px;display: flex;justify-content: space-between;}';
  1120. if (this.org_template_info.template_id == 1) {
  1121. printJS({
  1122. printable: "dialysis-print-box",
  1123. type: "html",
  1124. style: style,
  1125. scanStyles: false
  1126. });
  1127. } else if (
  1128. this.org_template_info.template_id == 2 ||
  1129. this.org_template_info.template_id == 0
  1130. ) {
  1131. printJS({
  1132. printable: "dialysis-print-box-1",
  1133. type: "html",
  1134. style: style2,
  1135. scanStyles: false
  1136. });
  1137. } else if (this.org_template_info.template_id == 3) {
  1138. printJS({
  1139. printable: "dialysis-print-box",
  1140. type: "html",
  1141. style: style,
  1142. scanStyles: false
  1143. });
  1144. } else if (this.org_template_info.template_id == 4) {
  1145. printJS({
  1146. printable: "dialysis-print-box",
  1147. type: "html",
  1148. style: style,
  1149. scanStyles: false
  1150. });
  1151. } else if (this.org_template_info.template_id == 5) {
  1152. printJS({
  1153. printable: "dialysis-print-box-1",
  1154. type: "html",
  1155. style: style2,
  1156. scanStyles: false
  1157. });
  1158. } else if (
  1159. this.org_template_info.template_id == 6 ||
  1160. this.org_template_info.template_id == 10 ||
  1161. this.org_template_info.template_id == 11
  1162. ) {
  1163. printJS({
  1164. printable: "dialysis-print-box-1",
  1165. type: "html",
  1166. style: style2,
  1167. scanStyles: false
  1168. });
  1169. } else if (this.org_template_info.template_id == 7) {
  1170. printJS({
  1171. printable: "dialysis-print-box",
  1172. type: "html",
  1173. style: style,
  1174. scanStyles: false
  1175. });
  1176. } else if (this.org_template_info.template_id == 8) {
  1177. printJS({
  1178. printable: "dialysis-print-box",
  1179. type: "html",
  1180. style: style,
  1181. scanStyles: false
  1182. });
  1183. } else if (this.org_template_info.template_id == 9 || this.org_template_info.template_id==25) {
  1184. printJS({
  1185. printable: "dialysis-print-box",
  1186. type: "html",
  1187. style: style5,
  1188. scanStyles: false
  1189. });
  1190. } else if (this.org_template_info.template_id == 12) {
  1191. printJS({
  1192. printable: "dialysis-print-box",
  1193. type: "html",
  1194. style: style,
  1195. scanStyles: false
  1196. });
  1197. } else if (this.org_template_info.template_id == 13) {
  1198. printJS({
  1199. printable: "dialysis-print-box-1",
  1200. type: "html",
  1201. style: style3,
  1202. scanStyles: false
  1203. });
  1204. } else if (this.org_template_info.template_id == 14){
  1205. printJS({
  1206. printable: "dialysis-print-box",
  1207. type: "html",
  1208. style: style,
  1209. scanStyles: false
  1210. });
  1211. } else if (this.org_template_info.template_id == 15){
  1212. printJS({
  1213. printable: "dialysis-print-box",
  1214. type: "html",
  1215. style: style,
  1216. scanStyles: false
  1217. });
  1218. } else if (this.org_template_info.template_id == 16){
  1219. printJS({
  1220. printable: "dialysis-print-box",
  1221. type: "html",
  1222. style: style,
  1223. scanStyles: false
  1224. });
  1225. } else if (this.org_template_info.template_id == 17) {
  1226. printJS({
  1227. printable: "dialysis-print-box",
  1228. type: "html",
  1229. style: style6,
  1230. scanStyles: false
  1231. });
  1232. } else if (this.org_template_info.template_id == 18) {
  1233. printJS({
  1234. printable: "dialysis-print-box",
  1235. type: "html",
  1236. style: style,
  1237. scanStyles: false
  1238. });
  1239. } else if (this.org_template_info.template_id == 19) {
  1240. printJS({
  1241. printable: "dialysis-print-box-1",
  1242. type: "html",
  1243. style: style2,
  1244. scanStyles: false
  1245. });
  1246. } else if (this.org_template_info.template_id == 20) {
  1247. printJS({
  1248. printable: "dialysis-print-box",
  1249. type: "html",
  1250. style: style,
  1251. scanStyles: false
  1252. });
  1253. } else if (this.org_template_info.template_id == 21) {
  1254. printJS({
  1255. printable: "dialysis-print-box",
  1256. type: "html",
  1257. style: style,
  1258. scanStyles: false
  1259. });
  1260. } else if (this.org_template_info.template_id == 22) {
  1261. printJS({
  1262. printable: "dialysis-print-box-1",
  1263. type: "html",
  1264. style: style2,
  1265. scanStyles: false
  1266. });
  1267. } else if (this.org_template_info.template_id == 23){
  1268. printJS({
  1269. printable: "dialysis-print-box",
  1270. type: "html",
  1271. style: style,
  1272. scanStyles: false
  1273. });
  1274. } else if (this.org_template_info.template_id == 24){
  1275. printJS({
  1276. printable: "dialysis-print-box",
  1277. type: "html",
  1278. style: style,
  1279. scanStyles: false
  1280. });
  1281. } else if (this.org_template_info.template_id == 26) {
  1282. printJS({
  1283. printable: "dialysis-print-box",
  1284. type: "html",
  1285. style: style,
  1286. scanStyles: false
  1287. });
  1288. } else if (this.org_template_info.template_id == 27) {
  1289. printJS({
  1290. printable: "dialysis-print-box",
  1291. type: "html",
  1292. style: style,
  1293. scanStyles: false
  1294. });
  1295. } else if (this.org_template_info.template_id == 28) {
  1296. printJS({
  1297. printable: "dialysis-print-box",
  1298. type: "html",
  1299. style: style7,
  1300. scanStyles: false
  1301. });
  1302. } else if (this.org_template_info.template_id == 29) {
  1303. printJS({
  1304. printable: "dialysis-print-box",
  1305. type: "html",
  1306. style: style,
  1307. scanStyles: false
  1308. });
  1309. } else if (this.org_template_info.template_id == 30) {
  1310. printJS({
  1311. printable: "dialysis-print-box",
  1312. type: "html",
  1313. style: style,
  1314. scanStyles: false
  1315. });
  1316. } else if (this.org_template_info.template_id == 31) {
  1317. printJS({
  1318. printable: "dialysis-print-box-1",
  1319. type: "html",
  1320. style: style3,
  1321. scanStyles: false
  1322. });
  1323. } else if (this.org_template_info.template_id == 32) {
  1324. printJS({
  1325. printable: "dialysis-print-box",
  1326. type: "html",
  1327. style: style5,
  1328. scanStyles: false
  1329. });
  1330. } else if (this.org_template_info.template_id == 33) {
  1331. printJS({
  1332. printable: "dialysis-print-box-1",
  1333. type: "html",
  1334. style: style2,
  1335. scanStyles: false
  1336. });
  1337. } else if (this.org_template_info.template_id == 34) {
  1338. printJS({
  1339. printable: "dialysis-print-box-1",
  1340. type: "html",
  1341. style: style2,
  1342. scanStyles: false
  1343. });
  1344. } else if (this.org_template_info.template_id == 35) {
  1345. printJS({
  1346. printable: "dialysis-print-box",
  1347. type: "html",
  1348. style: style,
  1349. scanStyles: false
  1350. });
  1351. } else if (this.org_template_info.template_id == 36) {
  1352. printJS({
  1353. printable: "dialysis-print-box-1",
  1354. type: "html",
  1355. style: style,
  1356. scanStyles: false
  1357. });
  1358. } else if (this.org_template_info.template_id == 37) {
  1359. printJS({
  1360. printable: "dialysis-print-box",
  1361. type: "html",
  1362. style: style,
  1363. scanStyles: false
  1364. });
  1365. } else if (this.org_template_info.template_id == 38) {
  1366. printJS({
  1367. printable: "dialysis-print-box",
  1368. type: "html",
  1369. style: style8,
  1370. scanStyles: false
  1371. });
  1372. } else if (this.org_template_info.template_id == 39) {
  1373. printJS({
  1374. printable: "dialysis-print-box",
  1375. type: "html",
  1376. style: style3,
  1377. scanStyles: false
  1378. });
  1379. } else if (this.org_template_info.template_id == 40) {
  1380. printJS({
  1381. printable: "dialysis-print-box",
  1382. type: "html",
  1383. style: style5,
  1384. scanStyles: false
  1385. });
  1386. } else if (this.org_template_info.template_id == 41){
  1387. printJS({
  1388. printable: "dialysis-print-box-1",
  1389. type: "html",
  1390. style: style2,
  1391. scanStyles: false
  1392. });
  1393. }
  1394. },
  1395. printThisOnePage() {
  1396. var ptime = Math.round(new Date().getTime() / 1000);
  1397. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1398. const style =
  1399. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  1400. const style2 =
  1401. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  1402. if (this.org_template_info.template_id == 1) {
  1403. printJS({
  1404. printable: "dialysis-print-box",
  1405. type: "html",
  1406. style: style,
  1407. scanStyles: false
  1408. });
  1409. } else if (
  1410. this.org_template_info.template_id == 2 ||
  1411. this.org_template_info.template_id == 0 ||
  1412. this.org_template_info.template_id == 5 ||
  1413. this.org_template_info.template_id == 22 ||
  1414. this.org_template_info.template_id == 33
  1415. ) {
  1416. printJS({
  1417. printable: "dialysis-print-box-1-1",
  1418. type: "html",
  1419. style: style2,
  1420. scanStyles: false
  1421. });
  1422. } else if(this.org_template_info.template_id == 14){
  1423. printJS({
  1424. printable: "new-dialysis-1",
  1425. type: "html",
  1426. style: style,
  1427. scanStyles: false
  1428. });
  1429. } else if(this.org_template_info.template_id == 21){
  1430. printJS({
  1431. printable: "new-dialysis-1",
  1432. type: "html",
  1433. style: style,
  1434. scanStyles: false
  1435. });
  1436. } else if(this.org_template_info.template_id == 27){
  1437. printJS({
  1438. printable: "new-dialysis-1",
  1439. type: "html",
  1440. style: style,
  1441. scanStyles: false
  1442. });
  1443. } else if(this.org_template_info.template_id == 36){
  1444. printJS({
  1445. printable: "dialysis-print-box-1-1",
  1446. type: "html",
  1447. style: style,
  1448. scanStyles: false
  1449. });
  1450. }
  1451. },
  1452. printThisTwoPage() {
  1453. var ptime = Math.round(new Date().getTime() / 1000);
  1454. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  1455. const style =
  1456. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  1457. const style2 =
  1458. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  1459. if (this.org_template_info.template_id == 1) {
  1460. printJS({
  1461. printable: "dialysis-print-box",
  1462. type: "html",
  1463. style: style,
  1464. scanStyles: false
  1465. });
  1466. } else if (
  1467. this.org_template_info.template_id == 2 ||
  1468. this.org_template_info.template_id == 0 ||
  1469. this.org_template_info.template_id == 5 ||
  1470. this.org_template_info.template_id == 22 ||
  1471. this.org_template_info.template_id == 33
  1472. ) {
  1473. printJS({
  1474. printable: "dialysis-print-box-1-2",
  1475. type: "html",
  1476. style: style2,
  1477. scanStyles: false
  1478. });
  1479. }else if(this.org_template_info.template_id == 14){
  1480. printJS({
  1481. printable: "new-dialysis-2",
  1482. type: "html",
  1483. style: style,
  1484. scanStyles: false
  1485. });
  1486. } else if(this.org_template_info.template_id == 21){
  1487. printJS({
  1488. printable: "new-dialysis-2",
  1489. type: "html",
  1490. style: style,
  1491. scanStyles: false
  1492. });
  1493. } else if(this.org_template_info.template_id == 27){
  1494. printJS({
  1495. printable: "new-dialysis-2",
  1496. type: "html",
  1497. style: style,
  1498. scanStyles: false
  1499. });
  1500. } else if(this.org_template_info.template_id == 36){
  1501. printJS({
  1502. printable: "dialysis-print-box-1-2",
  1503. type: "html",
  1504. style: style,
  1505. scanStyles: false
  1506. });
  1507. }
  1508. },
  1509. getNumber() {
  1510. if (this.dialysisOrder != null) {
  1511. return (
  1512. this.patientInfo.DialysisSchedule.device_zone.name +
  1513. this.dialysisOrder.DeviceNumber.number
  1514. );
  1515. } else {
  1516. return (
  1517. this.patientInfo.DialysisSchedule.device_zone.name +
  1518. this.patientInfo.DialysisSchedule.device_number.number
  1519. );
  1520. }
  1521. },
  1522. getXuserName(id) {
  1523. if (id <= 0) {
  1524. return "";
  1525. }
  1526. var name = "";
  1527. if (this.users == null || typeof this.users.length === "undefined") {
  1528. return name;
  1529. }
  1530. var leng = this.users.length;
  1531. if (leng == 0) {
  1532. return name;
  1533. }
  1534. for (let index = 0; index < leng; index++) {
  1535. if (this.users[index].id == id) {
  1536. name = this.users[index].name;
  1537. break;
  1538. }
  1539. }
  1540. return name;
  1541. },
  1542. setAdminUserES(id) {
  1543. console.log(id);
  1544. if (id == 0) {
  1545. return "";
  1546. }
  1547. if (id in this.operatorMaps) {
  1548. return this.operatorMaps[id].url;
  1549. } else {
  1550. return "";
  1551. }
  1552. },
  1553. modeName(mode_id) {
  1554. return typeof this.modeOptions[mode_id] !== "undefined" &&
  1555. typeof this.modeOptions[mode_id].name !== "undefined"
  1556. ? this.modeOptions[mode_id].name
  1557. : "";
  1558. },
  1559. getDialysisRecord() {
  1560. this.loading = true;
  1561. getDialysisRecord(this.queryParams).then(response => {
  1562. if (response.data.state == 1) {
  1563. this.childResponse = response;
  1564. this.org_template_info = response.data.data.org_template_info;
  1565. this.loading = false;
  1566. // this.adminUser = response.data.data.users
  1567. // this.users = response.data.data.users
  1568. // this.patientInfo = response.data.data.patientInfo
  1569. // this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
  1570. // // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1571. // if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1572. // this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
  1573. // } else {
  1574. // this.patientInfo.first_dialysis_date = ''
  1575. // }
  1576. // this.check = response.data.data.check
  1577. // this.predialysis = response.data.data.PredialysisEvaluation
  1578. // this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
  1579. // this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1580. // this.operators = response.data.data.operators
  1581. // this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
  1582. // if (this.operators.length > 0) {
  1583. // var operatorsLen = this.operators.length
  1584. // for (var index = 0; index < operatorsLen; index++) {
  1585. // this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
  1586. // }
  1587. // }
  1588. // this.afterdialysis.txqnx = -1
  1589. // if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1590. // this.afterdialysis.txqnx = 0
  1591. // }
  1592. // if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1593. // this.afterdialysis.txqnx = 1
  1594. // }
  1595. // if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1596. // this.afterdialysis.txqnx = 2
  1597. // }
  1598. // if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1599. // this.afterdialysis.txqnx = 3
  1600. // }
  1601. // this.afterdialysis.complications = this.afterdialysis.complication.split(',')
  1602. // this.afterdialysis.complications_other = []
  1603. // this.afterdialysis.complications_index = []
  1604. // var acllen = this.afterdialysis.complications.length
  1605. // for (let index = 0; index < acllen; index++) {
  1606. // if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  1607. // this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
  1608. // } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  1609. // this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
  1610. // }
  1611. // }
  1612. // this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
  1613. // this.prescription = response.data.data.dialysisPrescription
  1614. // this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
  1615. // this.prescription.mode = this.modeName(this.prescription.mode_id)
  1616. // var rwLen = this.replacementWays.length
  1617. // this.prescription.replacement = ''
  1618. // for (let index = 0; index < rwLen; index++) {
  1619. // if (this.replacementWays[index].id == this.prescription.replacement_way) {
  1620. // this.prescription.replacement = this.replacementWays[index].name
  1621. // break
  1622. // }
  1623. // }
  1624. // this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
  1625. // var paLen = this.perfusionApparatus.length
  1626. // this.prescription.perfusion_apparatus_name = ''
  1627. // for (let index = 0; index < paLen; index++) {
  1628. // if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  1629. // this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
  1630. // break
  1631. // }
  1632. // }
  1633. // var acLen = this.anticoagulantsConfit.length
  1634. // var thisALID = this.prescription.anticoagulant
  1635. // this.prescription.anticoagulant_name = ''
  1636. // if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  1637. // this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
  1638. // this.AlPanel = this.anticoagulantsConfit[thisALID]
  1639. // }
  1640. // this.advices = response.data.data.advices
  1641. // this.monitors = response.data.data.monitors
  1642. // this.summary = response.data.data.summary
  1643. // this.org_template_info = response.data.data.org_template_info
  1644. // if (this.monitors.length < 8) {
  1645. // var nl = 8 - this.monitors.length
  1646. // for (let index = 0; index < nl; index++) {
  1647. // this.monitors.push([])
  1648. // }
  1649. // }
  1650. // this.jilurow = this.monitors.length + 1
  1651. // this.advice_jilurow = this.advices.length + 1
  1652. // var childMap = {}
  1653. // for (const index in this.advices) {
  1654. // if (this.advices[index].parent_id == 0) {
  1655. // continue
  1656. // }
  1657. // if (!(this.advices[index].parent_id in childMap)) {
  1658. // childMap[this.advices[index].parent_id] = []
  1659. // }
  1660. // childMap[this.advices[index].parent_id].push(this.advices[index])
  1661. // }
  1662. // var advices = []
  1663. // for (const index in this.advices) {
  1664. // if (this.advices[index].parent_id > 0) {
  1665. // continue
  1666. // }
  1667. // var item = this.advices[index]
  1668. // if (item.id in childMap) {
  1669. // item.children = childMap[item.id]
  1670. // } else {
  1671. // item.children = []
  1672. // }
  1673. // advices.push(item)
  1674. // }
  1675. // var leftAdvice = []
  1676. // var rightAdvice = []
  1677. // var adlen = advices.length
  1678. // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1679. // for (var i = 0; i < halfLen; i++) {
  1680. // leftAdvice.push(advices[i])
  1681. // rightAdvice.push(advices[i + halfLen])
  1682. // }
  1683. // if (halfLen < 5) {
  1684. // var nl = 5 - leftAdvice.length
  1685. // for (let index = 0; index < nl; index++) {
  1686. // leftAdvice.push([])
  1687. // }
  1688. // var nl = 5 - rightAdvice.length
  1689. // for (let index = 0; index < nl; index++) {
  1690. // rightAdvice.push([])
  1691. // }
  1692. // }
  1693. // this.advices = []
  1694. // for (var i = 0; i < halfLen; i++) {
  1695. // var item = []
  1696. // item.push(leftAdvice[i])
  1697. // item.push(rightAdvice[i])
  1698. // this.advices.push(item)
  1699. // }
  1700. // this.loading = false
  1701. // this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
  1702. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1703. // this.doctor_advices[index]['isShow'] = 2
  1704. // }
  1705. // if (this.doctor_advices.length > 0) {
  1706. // var group = this.newAdviceGroupObject()
  1707. // var initGroupBlock = function(group, advice) {
  1708. // group.group_no = advice.groupno
  1709. // }
  1710. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  1711. // var new_advice_index = 0
  1712. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  1713. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  1714. // var doctor_advice = {
  1715. // delivery_way: this.doctor_advices[index].delivery_way,
  1716. // execution_frequency: this.doctor_advices[index].execution_frequency,
  1717. // groupno: this.doctor_advices[index].groupno,
  1718. // id: this.doctor_advices[index].id,
  1719. // parent_id: this.doctor_advices[index].parent_id,
  1720. // children: this.doctor_advices[index].children,
  1721. // remark: this.doctor_advices[index].remark,
  1722. // execution_staff: this.doctor_advices[index].execution_staff,
  1723. // checker: this.doctor_advices[index].checker,
  1724. // advice_doctor: this.doctor_advices[index].advice_doctor,
  1725. // }
  1726. // doctor_advice['isShow'] = 1
  1727. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1728. // // this.doctor_advices.push(doctor_advice)
  1729. // }
  1730. // }
  1731. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1732. // const advice = this.doctor_advices[index]
  1733. // if (advice.groupno == 0) {
  1734. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1735. // if (advice.parent_id > 0) {
  1736. // if (this.advice_groups.length > 0) {
  1737. // var parent_group = this.advice_groups[
  1738. // this.advice_groups.length - 1
  1739. // ]
  1740. // if (parent_group.advices.length > 0) {
  1741. // if (parent_group.advices[0].id == advice.parent_id) {
  1742. // parent_group.advices.push(advice)
  1743. // }
  1744. // }
  1745. // }
  1746. // continue
  1747. // } else {
  1748. // if (group.group_no > 0) {
  1749. // this.advice_groups.push(group)
  1750. // group = this.newAdviceGroupObject()
  1751. // }
  1752. // initGroupBlock(group, advice)
  1753. // group.advices.push(advice)
  1754. // this.advice_groups.push(group)
  1755. // group = this.newAdviceGroupObject()
  1756. // continue
  1757. // }
  1758. // }
  1759. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  1760. // this.advice_groups.push(group)
  1761. // group = this.newAdviceGroupObject()
  1762. // }
  1763. // if (group.group_no == 0) {
  1764. // initGroupBlock(group, advice)
  1765. // }
  1766. // if (group.group_no == advice.groupno) {
  1767. // group.advices.push(advice)
  1768. // }
  1769. // }
  1770. // if (group.group_no > 0) {
  1771. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1772. // this.advice_groups.push(group)
  1773. // }
  1774. // }
  1775. // console.log(this.advice_groups)
  1776. } else {
  1777. this.loading = false;
  1778. this.$message.error("请求数据失败");
  1779. return false;
  1780. }
  1781. });
  1782. },
  1783. bloodAccessParOperaName(id) {
  1784. if (id in this.bloodAccessParOpera) {
  1785. return this.bloodAccessParOpera[id].name;
  1786. }
  1787. return "";
  1788. },
  1789. dialysateFormulationName(id) {
  1790. if (id in this.dialysateFormulationOptions) {
  1791. return this.dialysateFormulationOptions[id].name;
  1792. }
  1793. return "";
  1794. },
  1795. getAge: function(val) {
  1796. if (
  1797. this.org_template_info.template_id == 2 ||
  1798. this.org_template_info.template_id == 0
  1799. ) {
  1800. if (val.age == 0) {
  1801. return jsGetAge(val.birth, "-");
  1802. } else {
  1803. return val.age;
  1804. }
  1805. } else {
  1806. return jsGetAge(val.birth, "-");
  1807. }
  1808. },
  1809. newAdviceGroupObject: function() {
  1810. return Object.assign(
  1811. {},
  1812. {
  1813. group_no: 0,
  1814. // advice_doctor: 0,
  1815. // start_time: 0,
  1816. advices: []
  1817. // exec_staff: 0,
  1818. // exec_time: 0,
  1819. // checker: 0,
  1820. }
  1821. );
  1822. },
  1823. //日期
  1824. handleScheduleDateChange: function(index) {
  1825. this.treatStateVal = 0
  1826. this.patientStateVal = 0
  1827. this.zoneVal = 0
  1828. this.scheduleStateVal = 0
  1829. this.search_keyword = this.search_input = ''
  1830. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  1831. // zone: this.zone_selected,
  1832. // schedule_type: this.schedule_type_selected,
  1833. // schedule_date: this.selected_date,
  1834. // })
  1835. this.selected_date = index
  1836. this.$store.dispatch('SetSelectedDate', { selected_date: index })
  1837. this.requestDialysisSchedules()
  1838. },
  1839. //初始化数据
  1840. getInitData: function() {
  1841. getDialysisRecordInitData().then(rs => {
  1842. var resp = rs.data
  1843. if (resp.state == 1) {
  1844. var zones = resp.data.zones
  1845. var schedules = resp.data.schedules
  1846. var zone_options = [{ id: 0, text: '全部' }]
  1847. for (let z_i = 0; z_i < zones.length; z_i++) {
  1848. const zone = zones[z_i]
  1849. zone_options.push({ id: zone.id, text: zone.name })
  1850. }
  1851. this.zone_options = zone_options
  1852. // this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1853. this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
  1854. this.requestDialysisSchedules()
  1855. // this.getData()
  1856. } else {
  1857. this.$message.error(resp.msg)
  1858. }
  1859. })
  1860. },
  1861. // 班次
  1862. handletimeType: function(index) {
  1863. this.scheduleStateVal = index
  1864. this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
  1865. this.search_keyword = this.search_input = ''
  1866. this.getData()
  1867. },
  1868. //分区
  1869. handleZoneChange: function(index) {
  1870. this.zoneVal = index
  1871. this.$store.dispatch('SetZoneSelected', { zone_selected: index })
  1872. this.search_keyword = this.search_input = ''
  1873. this.getData()
  1874. },
  1875. //患者状态
  1876. handleStateChange: function(index) {
  1877. this.patientStateVal = index
  1878. this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
  1879. this.search_keyword = this.search_input = ''
  1880. this.getData()
  1881. },
  1882. handleTreatChange: function(index) {
  1883. this.treatStateVal = index
  1884. this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
  1885. this.search_keyword = this.search_input = ''
  1886. this.getData()
  1887. },
  1888. processedDialysisSchedules: function(schedules, zone_options) {
  1889. var zoneMap = {}
  1890. var scheduleMap = {}
  1891. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  1892. const zone = zone_options[z_i]
  1893. if (zone.id == 0) {
  1894. continue
  1895. }
  1896. scheduleMap[zone.id] = []
  1897. }
  1898. for (let index = 0; index < schedules.length; index++) {
  1899. const schedule = schedules[index]
  1900. scheduleMap[schedule.device_number.zone.id].push(schedule)
  1901. }
  1902. var zone_schedules = []
  1903. for (let index = 0; index < zone_options.length; index++) {
  1904. const zone = zone_options[index]
  1905. if (zone.id == 0) {
  1906. continue
  1907. }
  1908. var schedules = scheduleMap[zone.id]
  1909. zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
  1910. }
  1911. return zone_schedules
  1912. },
  1913. searchAction: function() {
  1914. this.search_keyword = this.search_input
  1915. this.scheduleStateVal = 0
  1916. this.zoneVal = 0
  1917. this.treatStateVal = 0
  1918. this.patientStateVal = 0
  1919. if(this.search_input != ''){
  1920. let arr = []
  1921. this.filtedSchedules.map(item => {
  1922. arr.push(...item.schedules)
  1923. })
  1924. this.tableData = arr
  1925. }else{
  1926. this.getData()
  1927. }
  1928. },
  1929. requestDialysisSchedules: function() {
  1930. var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
  1931. getDialysisSchedules(ymd).then(rs => {
  1932. var resp = rs.data
  1933. if (resp.state == 1) {
  1934. var schedules = resp.data.schedules
  1935. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1936. let newArr = []
  1937. this.zone_schedules.map(item => {
  1938. newArr.push(...item.schedules)
  1939. })
  1940. this.tableData = newArr
  1941. this.getData()
  1942. } else {
  1943. this.$message.error(resp.msg)
  1944. }
  1945. })
  1946. },
  1947. changePatient(schedual){
  1948. console.log(schedual)
  1949. var xtdate = parseTime(schedual.schedule_date, '{y}-{m}-{d}')
  1950. this.$router.push(
  1951. '/dialysis/print?xtdate=' + xtdate + '&xtno=' + schedual.patient.dialysis_no
  1952. )
  1953. // this.patient_id = schedual.patient_id;
  1954. // this.date = schedual.schedule_date;
  1955. // // this.getScheduleDetail();
  1956. // // this.getLongAdvice();
  1957. // var patient_id = schedual.patient_id;
  1958. // var date = schedual.schedule_date;
  1959. // this.$router.push({
  1960. // path: "/dialysis/details",
  1961. // query: {
  1962. // patient_id: patient_id,
  1963. // date: date,
  1964. // patient_name: schedual.patient.name
  1965. // }
  1966. // });
  1967. },
  1968. getData(){
  1969. let patientArr = []
  1970. patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  1971. console.log('patientArr',patientArr)
  1972. let arr1 = []
  1973. if(this.patientStateVal == 0){
  1974. arr1 = patientArr
  1975. console.log(arr1)
  1976. }else if(this.patientStateVal == 1){
  1977. let arr = []
  1978. arr = patientArr
  1979. for (let i = 0; i <arr.length; i++) {
  1980. for (let j = 0; j < arr[i].schedules.length; j++) {
  1981. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis == null || (arr[i].schedules[j].assessment_before_dislysis.weight_before == '' && arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure == '' && arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure == ''))) {
  1982. // 删除元素后改变i的值
  1983. arr[i].schedules.splice(j--, 1);
  1984. }
  1985. }
  1986. }
  1987. console.log("执行1",arr)
  1988. arr1 = arr
  1989. }else if(this.patientStateVal == 2){
  1990. let arr = []
  1991. arr = patientArr
  1992. for (let i = 0; i < arr.length; i++) {
  1993. for (let j = 0; j < arr[i].schedules.length; j++) {
  1994. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis != null && (arr[i].schedules[j].assessment_before_dislysis.weight_before != 0 || arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure != 0 || arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure != 0))) {
  1995. // 删除元素后改变i的值
  1996. console.log('几次')
  1997. arr[i].schedules.splice(j--, 1);
  1998. }
  1999. }
  2000. }
  2001. console.log("执行2",arr)
  2002. arr1 = arr
  2003. }else if(this.patientStateVal == 3){
  2004. let arr = []
  2005. arr = patientArr
  2006. for (let i = 0; i <arr.length; i++) {
  2007. for (let j = 0; j < arr[i].schedules.length; j++) {
  2008. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1))) {
  2009. // 删除元素后改变i的值
  2010. arr[i].schedules.splice(j--, 1);
  2011. }
  2012. }
  2013. }
  2014. console.log("执行1",arr)
  2015. arr1 = arr
  2016. }else if(this.patientStateVal == 4){
  2017. let arr = []
  2018. arr = patientArr
  2019. for (let i = 0; i < arr.length; i++) {
  2020. for (let j = 0; j < arr[i].schedules.length; j++) {
  2021. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order == null || (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2))) {
  2022. // 删除元素后改变i的值
  2023. arr[i].schedules.splice(j--, 1);
  2024. }
  2025. }
  2026. }
  2027. console.log("执行2",arr)
  2028. arr1 = arr
  2029. }
  2030. let arr2 = []
  2031. if(this.treatStateVal == 0){
  2032. arr2 = JSON.parse(JSON.stringify(arr1))
  2033. }else if(this.treatStateVal == 1){
  2034. let arr = []
  2035. arr = JSON.parse(JSON.stringify(arr1))
  2036. for (let i = 0; i < arr.length; i++) {
  2037. for (let j = 0; j < arr[i].schedules.length; j++) {
  2038. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].prescription != null || arr[i].schedules[j].prescription != null ? arr[i].schedules[j].prescription.creater != 0 : false)) {
  2039. // 删除元素后改变i的值
  2040. arr[i].schedules.splice(j--, 1);
  2041. }
  2042. }
  2043. }
  2044. arr2 = arr
  2045. }else if(this.treatStateVal == 2){
  2046. let arr = []
  2047. arr = JSON.parse(JSON.stringify(arr1))
  2048. for (let i = 0; i < arr.length; i++) {
  2049. for (let j = 0; j < arr[i].schedules.length; j++) {
  2050. if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
  2051. // 删除元素后改变i的值
  2052. arr[i].schedules.splice(j--, 1);
  2053. }
  2054. }
  2055. }
  2056. arr2 = arr
  2057. }
  2058. let arr3 = []
  2059. if(this.scheduleStateVal == 0){
  2060. arr3 = JSON.parse(JSON.stringify(arr2))
  2061. }else{
  2062. let arr = []
  2063. arr = JSON.parse(JSON.stringify(arr2))
  2064. for (let i = 0; i < arr.length; i++) {
  2065. for (let j = 0; j < arr[i].schedules.length; j++) {
  2066. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2067. // 删除元素后改变i的值
  2068. arr[i].schedules.splice(j--, 1);
  2069. }
  2070. }
  2071. }
  2072. arr3 = arr
  2073. console.log("上午",arr)
  2074. }
  2075. let arr4 = []
  2076. if(this.zoneVal == 0){
  2077. arr4 = JSON.parse(JSON.stringify(arr3))
  2078. }else{
  2079. let arr = []
  2080. arr = JSON.parse(JSON.stringify(arr3))
  2081. for (let i = 0; i < arr.length; i++) {
  2082. if (this.zoneVal != arr[i].zone_id) {
  2083. // 删除元素后改变i的值
  2084. arr.splice(i--, 1);
  2085. }
  2086. }
  2087. arr4 = arr
  2088. }
  2089. let newArr = []
  2090. arr4.map(item => {
  2091. newArr.push(...item.schedules)
  2092. })
  2093. this.tableData = newArr
  2094. console.log('table',this.tableData)
  2095. },
  2096. },
  2097. watch: {
  2098. "patientInfo.gender": function() {
  2099. if (this.patientInfo.gender == 1) {
  2100. this.patientInfo_gender_1 = true;
  2101. this.patientInfo_gender_2 = false;
  2102. } else if (this.patientInfo.gender == 2) {
  2103. this.patientInfo_gender_2 = true;
  2104. this.patientInfo_gender_1 = false;
  2105. } else {
  2106. this.patientInfo_gender_2 = false;
  2107. this.patientInfo_gender_1 = false;
  2108. }
  2109. },
  2110. "patientInfo.source": function() {
  2111. if (this.patientInfo.source == 1) {
  2112. this.patientInfo_source_1 = true;
  2113. this.patientInfo_source_2 = false;
  2114. } else if (this.patientInfo.source == 2) {
  2115. this.patientInfo_source_2 = true;
  2116. this.patientInfo_source_1 = false;
  2117. } else {
  2118. this.patientInfo_source_2 = false;
  2119. this.patientInfo_source_1 = false;
  2120. }
  2121. }
  2122. },
  2123. created() {
  2124. var schedule_type_selected = this.$store.getters.schedule_type_selected
  2125. var zone_selected = this.$store.getters.zone_selected
  2126. var patient_state_selected = this.$store.getters.patient_state_selected
  2127. var treat_state_selected = this.$store.getters.treat_state_selected
  2128. var selected_date = this.$store.getters.selected_date
  2129. if (schedule_type_selected) {
  2130. this.scheduleStateVal = schedule_type_selected.schedule_type_selected
  2131. }
  2132. if (zone_selected) {
  2133. this.zoneVal = zone_selected.zone_selected
  2134. }
  2135. if (patient_state_selected) {
  2136. this.patientStateVal = patient_state_selected.patient_state_selected
  2137. }
  2138. if (treat_state_selected) {
  2139. this.treatStateVal = treat_state_selected.treat_state_selected
  2140. }
  2141. if (selected_date.selected_date) {
  2142. this.selected_date = selected_date.selected_date
  2143. }
  2144. this.getInitData();
  2145. var xtuser = this.$store.getters.xt_user;
  2146. this.orgname = xtuser.org.org_name;
  2147. // this.orgname = "遂溪方济医院";
  2148. this.modeOptions = this.$store.getters.treatment_mode;
  2149. this.replacementWays = this.$store.getters.replacement_ways;
  2150. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  2151. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  2152. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  2153. var bloodAccessParOpera = getDataConfig(
  2154. "hemodialysis",
  2155. "vascular_access_desc"
  2156. );
  2157. for (var key in bloodAccessParOpera) {
  2158. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  2159. bloodAccessParOpera[key];
  2160. }
  2161. var dialysateFormulationOptions = getDataConfig(
  2162. "hemodialysis",
  2163. "dialysate_formulation"
  2164. );
  2165. for (var key in dialysateFormulationOptions) {
  2166. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  2167. dialysateFormulationOptions[key];
  2168. }
  2169. const xtdate = this.$route.query && this.$route.query.xtdate;
  2170. const xtno = this.$route.query && this.$route.query.xtno;
  2171. if (
  2172. typeof xtdate === "string" &&
  2173. xtdate.length > 0 &&
  2174. typeof xtno === "string" &&
  2175. xtno.length > 0
  2176. ) {
  2177. this.queryParams.xtdate = xtdate;
  2178. this.queryParams.xtno = xtno;
  2179. this.getDialysisRecord();
  2180. } else {
  2181. this.$message.error("参数不齐");
  2182. return false;
  2183. }
  2184. },
  2185. computed:{
  2186. filtedSchedules: function() {
  2187. var search_keyword = this.search_keyword
  2188. if (search_keyword.length > 0) {
  2189. var schedules = []
  2190. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  2191. const scheduleInfo = this.zone_schedules[o_i]
  2192. var originSchedules = scheduleInfo.schedules
  2193. if (originSchedules.length == 0) {
  2194. continue
  2195. }
  2196. var filtedSchedules = []
  2197. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  2198. const schedule = originSchedules[s_i]
  2199. if (schedule.patient.name.indexOf(search_keyword) != -1) {
  2200. filtedSchedules.push(schedule)
  2201. // break
  2202. }
  2203. }
  2204. if (filtedSchedules.length > 0) {
  2205. schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  2206. }
  2207. }
  2208. return schedules
  2209. }
  2210. }
  2211. },
  2212. };
  2213. </script>
  2214. <style>
  2215. .dialysis-print-order {
  2216. width: 960px;
  2217. margin: 0 auto;
  2218. }
  2219. .dialysis-print-order .order-yy-name {
  2220. margin: auto;
  2221. text-align: center;
  2222. font-size: 20px;
  2223. letter-spacing: 5px;
  2224. }
  2225. .dialysis-print-order .order-title {
  2226. margin: auto;
  2227. font-weight: 600;
  2228. text-align: center;
  2229. font-size: 22px;
  2230. padding: 10px;
  2231. }
  2232. .dialysis-print-order .table-box {
  2233. width: 100%;
  2234. line-height: 23px;
  2235. font-size: 14px;
  2236. }
  2237. .dialysis-print-order .print-table {
  2238. width: 100%;
  2239. text-align: center;
  2240. border-collapse: collapse;
  2241. line-height: 40px;
  2242. font-size: 14px;
  2243. border-color: #000;
  2244. }
  2245. .dialysis-print-order .print-table-no {
  2246. width: 100%;
  2247. text-align: center;
  2248. border-collapse: collapse;
  2249. font-size: 14px;
  2250. }
  2251. .dialysis-print-order .under-line {
  2252. border-bottom: 1px solid #999;
  2253. width: 95%;
  2254. text-align: center;
  2255. margin-left: 2px;
  2256. }
  2257. .dialysis-print-order .title-box {
  2258. text-align: center;
  2259. font-size: 16px;
  2260. }
  2261. .dialysis-print-order .radio-lebel-box {
  2262. font-weight: 400;
  2263. cursor: pointer;
  2264. }
  2265. .dialysis-print-order .radio-no {
  2266. opacity: 0;
  2267. outline: none;
  2268. position: absolute;
  2269. margin: 0;
  2270. width: 0;
  2271. height: 0;
  2272. z-index: -1;
  2273. }
  2274. .dialysis-print-order .radio-inner {
  2275. white-space: nowrap;
  2276. cursor: pointer;
  2277. outline: none;
  2278. display: inline-block;
  2279. line-height: 1;
  2280. position: relative;
  2281. vertical-align: middle;
  2282. }
  2283. .dialysis-print-order .radio-fang {
  2284. display: inline-block;
  2285. position: relative;
  2286. border: 1px solid #000;
  2287. box-sizing: border-box;
  2288. width: 14px;
  2289. height: 14px;
  2290. background-color: #fff;
  2291. z-index: 1;
  2292. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  2293. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  2294. }
  2295. .dialysis-print-order .is-checked-radio::after {
  2296. content: "√";
  2297. font-size: 15px;
  2298. }
  2299. .dialysis-print-order .print-table-no tr td {
  2300. padding: 8px 5px;
  2301. line-height: 25px;
  2302. }
  2303. .dialysis-print-order .print-table tr td {
  2304. padding: 1px 1px;
  2305. /*line-height: 25px;*/
  2306. }
  2307. .es-img {
  2308. height: 30px;
  2309. }
  2310. .advice-name {
  2311. text-align: left;
  2312. }
  2313. .advice-children {
  2314. display: flex;
  2315. }
  2316. .title-box-pro {
  2317. border: 0 #fff;
  2318. line-height: 25px;
  2319. height: 25px;
  2320. text-align: left;
  2321. padding-left: 10px !important;
  2322. }
  2323. .title-box-pro-tr {
  2324. border: 0 #fff;
  2325. }
  2326. .text-align-left {
  2327. text-align: left !important;
  2328. padding-left: 10px !important;
  2329. font-size: 14px !important;
  2330. line-height: 25px;
  2331. }
  2332. .print-table-tr-new td {
  2333. line-height: 20px !important;
  2334. }
  2335. .border-top-solid {
  2336. border: solid 1px #000;
  2337. }
  2338. .print-template-two tr {
  2339. line-height: 30px;
  2340. }
  2341. .table-box1 {
  2342. border: 1px solid #000;
  2343. width: 100%;
  2344. line-height: 30px;
  2345. font-size: 14px;
  2346. border-collapse: collapse;
  2347. }
  2348. .table-box1 tr {
  2349. border-bottom: 1px solid #000;
  2350. }
  2351. </style>
  2352. <style lang="scss">
  2353. .newContainer{
  2354. .dialysisPage::-webkit-scrollbar {
  2355. height: 15px;
  2356. }
  2357. .el-date-editor{
  2358. .el-input__inner{
  2359. padding-right:0px;
  2360. }
  2361. }
  2362. .el-table td, .el-table th{
  2363. text-align: center;
  2364. }
  2365. }
  2366. .newContainer::-webkit-scrollbar{
  2367. height: 15px !important;
  2368. }
  2369. </style>