dialysisPrintOrder.vue 107KB

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