Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

dialysisPrintOrder.vue 107KB

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