batch_print_order_six.vue 101KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <el-button
  6. :loading="loading"
  7. size="small"
  8. icon="el-icon-printer"
  9. @click="printAction"
  10. type="primary"
  11. >打印
  12. </el-button>
  13. </div>
  14. <div class="app-container">
  15. <div id="print_content">
  16. <div
  17. v-for="(record, t) in records"
  18. :key="t"
  19. class="print_page_main_content"
  20. >
  21. <div style="display:inline-block;width:100%;text-align:center;">
  22. <div
  23. class="order-yy-name"
  24. style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
  25. >
  26. {{ orgname }}
  27. </div>
  28. <div
  29. class="order-title"
  30. style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
  31. >
  32. 血液净化治疗记录单
  33. </div>
  34. </div>
  35. <div class="row">
  36. <div class="inline_block">
  37. 姓名:
  38. <div class="under_line" style="width: 50px;text-align: center;">
  39. {{ record.patient.name }}
  40. </div>
  41. </div>
  42. <div class="inline_block" style="margin-left: 10px;">
  43. 性别:
  44. <div class="under_line" style="width: 30px;text-align: center;">
  45. {{ record.patient.gender == 1 ? "男" : "女" }}
  46. </div>
  47. </div>
  48. <div class="inline_block" style="margin-left: 10px;">
  49. 年龄:
  50. <div class="under_line" style="width: 30px;text-align: center;">
  51. {{ record.patient.age }}
  52. </div>
  53. </div>
  54. <div class="inline_block">
  55. 门诊:
  56. <div class="under_line" style="width: 30px;text-align: center;">
  57. <check-box :checked="record.patient.source == 1"></check-box>
  58. </div>
  59. </div>
  60. <div class="inline_block">
  61. 病区:
  62. <div class="under_line" style="width: 50px;text-align: center;">
  63. {{ "/" }}
  64. </div>
  65. </div>
  66. <div class="inline_block">
  67. 床号:
  68. <div class="under_line" style="width: 50px;text-align: center;">
  69. {{ "/" }}
  70. </div>
  71. </div>
  72. <div class="inline_block">
  73. 透析号:
  74. <div class="under_line" style="width: 70px;text-align: center;">
  75. {{ record.patient.dialysis_no }}
  76. </div>
  77. </div>
  78. <div class="inline_block" style="margin-left: 5px;">
  79. 住院号/门诊号:
  80. <div
  81. class="under_line"
  82. style="width: 70px;text-align: left"
  83. v-if="record.patient.admission_number"
  84. >
  85. {{ record.patient.admission_number }}
  86. </div>
  87. <div
  88. class="under_line"
  89. style="width: 70px;text-align: le
  90. ft"
  91. v-else
  92. >
  93. {{ "/" }}
  94. </div>
  95. </div>
  96. </div>
  97. <div class="row">
  98. <div class="inline_block">
  99. 入科方式:
  100. <div
  101. v-for="(item, i) in way_arr"
  102. class="under_line"
  103. v-if="record.receive_assessment.way == item.id"
  104. style="width: 180px;text-align: left"
  105. >
  106. {{ item.name }}
  107. </div>
  108. </div>
  109. <div class="inline_block" style="margin-left: 10px;">
  110. 诊断:
  111. <div
  112. class="under_line"
  113. style="width: 740px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;white-space: unset;"
  114. >
  115. {{ record.patient.diagnose }}
  116. </div>
  117. </div>
  118. </div>
  119. <div
  120. class="row"
  121. :class="record.totallength > 14 ? 'margin-bottom-300' : ''"
  122. >
  123. <table class="proj_table">
  124. <tbody>
  125. <tr>
  126. <td
  127. colspan="2"
  128. style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;"
  129. >
  130. 透析前情况
  131. </td>
  132. </tr>
  133. <tr>
  134. <td colspan="2">
  135. <div
  136. class="row"
  137. style="padding: 2px 0;line-height:23px;display:flex;"
  138. >
  139. <div class="inline_block" style="flex:1;">
  140. 本次透析日期:
  141. <div
  142. class="under_line"
  143. style="width: 120px;text-align: center"
  144. >
  145. {{ getTime(record.schedule_date, "{y}-{m}-{d}") }}
  146. </div>
  147. </div>
  148. <div class="inline_block" style="flex:1;">
  149. 透析次数:
  150. <div
  151. class="under_line"
  152. style="width: 70px;text-align: center"
  153. >
  154. {{
  155. record.patient.total_dialysis +
  156. record.patient.user_sys_before_count
  157. ? record.patient.total_dialysis +
  158. record.patient.user_sys_before_count
  159. : "/"
  160. }}
  161. </div>
  162. </div>
  163. <div class="inline_block" style="flex:1;">
  164. 透前症状:
  165. <div
  166. class="under_line"
  167. style="width: 150px;text-align: center"
  168. >
  169. {{
  170. record.assessment_before_dislysis &&
  171. record.assessment_before_dislysis
  172. .symptom_before_dialysis
  173. ? record.assessment_before_dislysis
  174. .symptom_before_dialysis
  175. : "/"
  176. }}
  177. </div>
  178. </div>
  179. </div>
  180. <div class="row" style="padding: 2px 0;line-height:23px;">
  181. <div class="inline_block">
  182. T:
  183. <div
  184. class="under_line"
  185. style="width: 50px;text-align: center"
  186. >
  187. {{
  188. record.assessment_before_dislysis &&
  189. record.assessment_before_dislysis.temperature
  190. ? record.assessment_before_dislysis.temperature
  191. : "/"
  192. }}
  193. </div>
  194. °C
  195. </div>
  196. <div class="inline_block" style="margin-left:10px;">
  197. P:
  198. <div
  199. class="under_line"
  200. style="width: 50px;text-align: center;"
  201. >
  202. {{
  203. record.assessment_before_dislysis &&
  204. record.assessment_before_dislysis.pulse_frequency
  205. ? record.assessment_before_dislysis
  206. .pulse_frequency
  207. : "/"
  208. }}
  209. </div>
  210. 次/分
  211. </div>
  212. <div class="inline_block" style="margin-left:10px;">
  213. R:
  214. <div
  215. class="under_line"
  216. style="width: 50px;text-align: center;"
  217. >
  218. {{
  219. record.assessment_before_dislysis &&
  220. record.assessment_before_dislysis.breathing_rate
  221. ? record.assessment_before_dislysis.breathing_rate
  222. : "/"
  223. }}
  224. </div>
  225. 次/分
  226. </div>
  227. <div class="inline_block" style="margin-left:10px;">
  228. BP:
  229. <div
  230. class="under_line"
  231. style="width: 50px;text-align: center;"
  232. >
  233. {{
  234. record.assessment_before_dislysis &&
  235. record.assessment_before_dislysis
  236. .systolic_blood_pressure
  237. ? record.assessment_before_dislysis
  238. .systolic_blood_pressure
  239. : "/"
  240. }}
  241. </div>
  242. /
  243. <div
  244. class="under_line"
  245. style="width: 50px;text-align: center;"
  246. >
  247. {{
  248. record.assessment_before_dislysis &&
  249. record.assessment_before_dislysis
  250. .diastolic_blood_pressure
  251. ? record.assessment_before_dislysis
  252. .diastolic_blood_pressure
  253. : "/"
  254. }}
  255. </div>
  256. mmHg
  257. </div>
  258. <div class="inline_block" style="margin-left:10px;">
  259. 血管通路:
  260. <div
  261. class="under_line"
  262. style="width: 200px;text-align: center;"
  263. >
  264. {{
  265. QueryPartById(
  266. record.assessment_before_dislysis &&
  267. record.assessment_before_dislysis
  268. .blood_access_part_id
  269. ? record.assessment_before_dislysis
  270. .blood_access_part_id
  271. : 0
  272. )
  273. }}
  274. {{
  275. record.assessment_before_dislysis &&
  276. record.assessment_before_dislysis
  277. .blood_access_part_opera_name
  278. ? record.assessment_before_dislysis
  279. .blood_access_part_opera_name
  280. : ""
  281. }}
  282. </div>
  283. </div>
  284. </div>
  285. <div
  286. class="row"
  287. style="padding: 2px 0;line-height:23px;display:flex;"
  288. >
  289. <div class="inline_block" style="flex:1;">
  290. 内瘘:
  291. <div
  292. class="under_line"
  293. style="width: 120px;text-align: center"
  294. >
  295. {{
  296. record.assessment_before_dislysis &&
  297. record.assessment_before_dislysis.internal_fistula
  298. ? record.assessment_before_dislysis
  299. .internal_fistula
  300. : "/"
  301. }}
  302. </div>
  303. </div>
  304. <div
  305. class="inline_block"
  306. style="margin-left:10px;flex:1;"
  307. >
  308. 导管:
  309. <div
  310. class="under_line"
  311. style="width: 120px;text-align: center"
  312. >
  313. {{
  314. record.assessment_before_dislysis &&
  315. record.assessment_before_dislysis.catheter
  316. ? record.assessment_before_dislysis.catheter
  317. : "/"
  318. }}
  319. </div>
  320. </div>
  321. <div
  322. class="inline_block"
  323. style="margin-left:10px;flex:1;"
  324. >
  325. 穿刺方式:
  326. <div
  327. class="under_line"
  328. style="width: 100px;text-align: center"
  329. v-if="!record.assessment_before_dislysis"
  330. ></div>
  331. <div
  332. v-if="record.assessment_before_dislysis"
  333. style="display: inline-block;"
  334. >
  335. <div
  336. class="under_line"
  337. style="width: 100px;text-align: center"
  338. v-if="
  339. record.assessment_before_dislysis.puncture_way ==
  340. 0
  341. "
  342. ></div>
  343. <div
  344. class="under_line"
  345. style="width: 100px;text-align: center"
  346. v-if="
  347. record.assessment_before_dislysis.puncture_way ==
  348. 1
  349. "
  350. >
  351. 绳梯
  352. </div>
  353. <div
  354. class="under_line"
  355. style="width: 100px;text-align: center"
  356. v-if="
  357. record.assessment_before_dislysis.puncture_way ==
  358. 2
  359. "
  360. >
  361. 扣眼
  362. </div>
  363. <div
  364. class="under_line"
  365. style="width: 100px;text-align: center"
  366. v-if="
  367. record.assessment_before_dislysis.puncture_way ==
  368. 3
  369. "
  370. >
  371. 区域
  372. </div>
  373. </div>
  374. </div>
  375. <div
  376. class="inline_block"
  377. style="margin-left:10px;flex:1;"
  378. >
  379. 穿刺针:
  380. <div
  381. class="under_line"
  382. style="width: 100px;text-align: center"
  383. >
  384. {{
  385. record.assessment_before_dislysis &&
  386. record.assessment_before_dislysis.puncture_needle
  387. ? record.assessment_before_dislysis
  388. .puncture_needle
  389. : "/"
  390. }}
  391. </div>
  392. </div>
  393. </div>
  394. <div
  395. class="row"
  396. style="padding: 2px 0;line-height:23px;display:flex;"
  397. >
  398. <div class="inline_block" style="flex:1;">
  399. 透析方式:
  400. <div
  401. class="under_line"
  402. style="width: 100px;text-align: center;font-weight:600;"
  403. v-if="!record.prescription"
  404. ></div>
  405. <div
  406. v-if="record.prescription"
  407. style="display: inline-block;"
  408. >
  409. <div
  410. class="under_line"
  411. style="width: 100px;text-align: center;font-weight:600;"
  412. v-if="!record.prescription.mode_id"
  413. ></div>
  414. <div
  415. class="under_line"
  416. style="width: 100px;text-align: center;font-weight:600;"
  417. v-if="record.prescription.mode_id == 1"
  418. >
  419. HD
  420. </div>
  421. <div
  422. class="under_line"
  423. style="width: 100px;text-align: center;font-weight:600;"
  424. v-if="record.prescription.mode_id == 2"
  425. >
  426. HDF
  427. </div>
  428. <div
  429. class="under_line"
  430. style="width: 100px;text-align: center;font-weight:600;"
  431. v-if="record.prescription.mode_id == 3"
  432. >
  433. HD+HP
  434. </div>
  435. <div
  436. class="under_line"
  437. style="width: 100px;text-align: center;font-weight:600;"
  438. v-if="record.prescription.mode_id == 4"
  439. >
  440. HP
  441. </div>
  442. <div
  443. class="under_line"
  444. style="width: 100px;text-align: center;font-weight:600;"
  445. v-if="record.prescription.mode_id == 5"
  446. >
  447. HF
  448. </div>
  449. <div
  450. class="under_line"
  451. style="width: 100px;text-align: center;font-weight:600;"
  452. v-if="record.prescription.mode_id == 6"
  453. >
  454. SCUF
  455. </div>
  456. <div
  457. class="under_line"
  458. style="width: 100px;text-align: center;font-weight:600;"
  459. v-if="record.prescription.mode_id == 7"
  460. >
  461. IUF
  462. </div>
  463. <div
  464. class="under_line"
  465. style="width: 100px;text-align: center;font-weight:600;"
  466. v-if="record.prescription.mode_id == 8"
  467. >
  468. HFHD
  469. </div>
  470. <div
  471. class="under_line"
  472. style="width: 100px;text-align: center;font-weight:600;"
  473. v-if="record.prescription.mode_id == 9"
  474. >
  475. HFHD+HP
  476. </div>
  477. <div
  478. class="under_line"
  479. style="width: 100px;text-align: center;font-weight:600;"
  480. v-if="record.prescription.mode_id == 10"
  481. >
  482. PHF
  483. </div>
  484. <div
  485. class="under_line"
  486. style="width: 100px;text-align: center;font-weight:600;"
  487. v-if="record.prescription.mode_id == 11"
  488. >
  489. HFR
  490. </div>
  491. <div
  492. class="under_line"
  493. style="width: 100px;text-align: center;font-weight:600;"
  494. v-if="record.prescription.mode_id == 12"
  495. >
  496. HDF+HP
  497. </div>
  498. <div
  499. class="under_line"
  500. style="width: 100px;text-align: center;font-weight:600;"
  501. v-if="record.prescription.mode_id == 13"
  502. >
  503. CRRT
  504. </div>
  505. <div
  506. class="under_line"
  507. style="width: 100px;text-align: center;font-weight:600;"
  508. v-if="record.prescription.mode_id == 14"
  509. >
  510. 腹水回输
  511. </div>
  512. <div
  513. class="under_line"
  514. style="width: 100px;text-align: center;font-weight:600;"
  515. v-if="record.prescription.mode_id == 19"
  516. >
  517. IUF+HD
  518. </div>
  519. </div>
  520. </div>
  521. <div
  522. class="inline_block"
  523. style="margin-left:10px;flex:1;"
  524. >
  525. 置换方式:
  526. <div
  527. class="under_line"
  528. style="width: 100px;text-align: center"
  529. >
  530. /
  531. </div>
  532. </div>
  533. <div
  534. class="inline_block"
  535. style="margin-left:10px;flex:1;"
  536. >
  537. 置换量:
  538. <div
  539. class="under_line"
  540. style="width: 70px;text-align: center"
  541. >
  542. {{
  543. record.prescription &&
  544. record.prescription.displace_liqui_value
  545. ? record.prescription.displace_liqui_value
  546. : "/"
  547. }}
  548. </div>
  549. L
  550. </div>
  551. <div
  552. class="inline_block"
  553. style="margin-left:10px;flex:1;"
  554. >
  555. 血流量:
  556. <div
  557. class="under_line"
  558. style="width: 50px;text-align: center"
  559. >
  560. {{
  561. record.prescription &&
  562. record.prescription.blood_flow_volume
  563. ? record.prescription.blood_flow_volume
  564. : "/"
  565. }}
  566. </div>
  567. ml/min
  568. </div>
  569. <div
  570. class="inline_block"
  571. style="margin-left:10px;flex:1;"
  572. >
  573. 透析时间:
  574. <div
  575. class="under_line"
  576. style="width: 50px;text-align: center"
  577. >
  578. {{
  579. record.prescription &&
  580. record.prescription.dialysis_duration_hour
  581. ? record.prescription.dialysis_duration_hour
  582. : "/"
  583. }}
  584. </div>
  585. h
  586. </div>
  587. </div>
  588. <div
  589. class="row"
  590. style="padding: 2px 0;line-height:23px;display:flex;"
  591. >
  592. <div class="inline_block" style="flex:1;">
  593. 透析(滤)器:
  594. <div
  595. class="under_line"
  596. style="width: 100px;text-align: center"
  597. >
  598. {{
  599. record.prescription &&
  600. record.prescription.dialyzer_perfusion_apparatus
  601. ? record.prescription.dialyzer_perfusion_apparatus
  602. : "/"
  603. }}
  604. </div>
  605. </div>
  606. <div class="inline_block" style="flex:1;">
  607. 灌流器:
  608. <div
  609. class="under_line"
  610. style="width: 70px;text-align: center"
  611. >
  612. /
  613. </div>
  614. </div>
  615. <div class="inline_block" style="flex:1;">
  616. 干体重:
  617. <div
  618. class="under_line"
  619. style="width: 150px;text-align: center"
  620. >
  621. {{
  622. record.assessment_before_dislysis &&
  623. record.assessment_before_dislysis.dry_weight
  624. ? record.assessment_before_dislysis.dry_weight
  625. : "/"
  626. }}
  627. </div>
  628. kg
  629. </div>
  630. </div>
  631. <div
  632. class="row"
  633. style="padding: 2px 0;line-height:23px;display:flex;"
  634. >
  635. <div class="inline_block" style="flex:1;">
  636. 上次透后体重:
  637. <div
  638. class="under_line"
  639. style="width: 100px;text-align: center"
  640. >
  641. {{
  642. record.assessment_before_dislysis &&
  643. record.assessment_before_dislysis
  644. .weight_after_last_transparency
  645. ? parseFloat(
  646. record.assessment_before_dislysis
  647. .weight_after_last_transparency -
  648. record.assessment_before_dislysis
  649. .additional_weight
  650. ).toFixed(1)
  651. : "未称重"
  652. }}
  653. </div>
  654. kg
  655. </div>
  656. <div class="inline_block" style="flex:1;">
  657. 透前体重:
  658. <div
  659. class="under_line"
  660. style="width: 70px;text-align: center"
  661. >
  662. {{
  663. record.assessment_before_dislysis &&
  664. record.assessment_before_dislysis.weight_before
  665. ? parseFloat(
  666. record.assessment_before_dislysis
  667. .weight_before -
  668. record.assessment_before_dislysis
  669. .additional_weight
  670. )
  671. : "/"
  672. }}
  673. </div>
  674. kg
  675. </div>
  676. <div class="inline_block" style="flex:1;">
  677. 计划超滤量:
  678. <div
  679. class="under_line"
  680. style="width: 150px;text-align: center"
  681. >
  682. {{
  683. record.prescription &&
  684. record.prescription.target_ultrafiltration
  685. ? record.prescription.target_ultrafiltration
  686. : "/"
  687. }}
  688. </div>
  689. ml
  690. </div>
  691. </div>
  692. <div class="row" style="padding: 2px 0;line-height:23px;">
  693. <div class="inline_block">
  694. 透析液成分钾:
  695. <div
  696. class="under_line"
  697. style="width: 50px;text-align: center"
  698. >
  699. {{
  700. record.prescription && record.prescription.kalium
  701. ? record.prescription.kalium
  702. : "/"
  703. }}
  704. </div>
  705. mmol/L
  706. </div>
  707. <div class="inline_block" style="margin-left:10px;">
  708. 钠:
  709. <div
  710. class="under_line"
  711. style="width: 50px;text-align: center;"
  712. >
  713. {{
  714. record.prescription && record.prescription.sodium
  715. ? record.prescription.sodium
  716. : "/"
  717. }}
  718. </div>
  719. mmol/L
  720. </div>
  721. <div class="inline_block" style="margin-left:10px;">
  722. 钙:
  723. <div
  724. class="under_line"
  725. style="width: 50px;text-align: center;"
  726. >
  727. {{
  728. record.prescription && record.prescription.calcium
  729. ? record.prescription.calcium
  730. : "/"
  731. }}
  732. </div>
  733. mmol/L
  734. </div>
  735. <div class="inline_block" style="margin-left:10px;">
  736. 碳酸氢根:
  737. <div
  738. class="under_line"
  739. style="width: 50px;text-align: center;"
  740. >
  741. {{
  742. record.prescription &&
  743. record.prescription.bicarbonate
  744. ? record.prescription.bicarbonate
  745. : "/"
  746. }}
  747. </div>
  748. mmol/L
  749. </div>
  750. <div class="inline_block" style="margin-left:10px;">
  751. 流量:
  752. <div
  753. class="under_line"
  754. style="width: 50px;text-align: center;"
  755. >
  756. {{
  757. record.prescription &&
  758. record.prescription.dialysate_flow
  759. ? record.prescription.dialysate_flow
  760. : "/"
  761. }}
  762. </div>
  763. ml/min
  764. </div>
  765. </div>
  766. <div class="row" style="padding: 2px 0;line-height:23px;">
  767. <div class="inline_block">
  768. 抗凝剂:
  769. <div
  770. class="under_line"
  771. style="width: 150px;text-align: center"
  772. >
  773. <span v-if="record.prescription.anticoagulant == 0"
  774. >&nbsp;/</span
  775. >
  776. <span v-if="record.prescription.anticoagulant == 1"
  777. >&nbsp;无肝素</span
  778. >
  779. <span v-if="record.prescription.anticoagulant == 2"
  780. >&nbsp;普通肝素</span
  781. >
  782. <span v-if="record.prescription.anticoagulant == 3"
  783. >&nbsp;低分子肝素</span
  784. >
  785. <span v-if="record.prescription.anticoagulant == 4"
  786. >&nbsp;阿加曲班</span
  787. >
  788. <span v-if="record.prescription.anticoagulant == 5"
  789. >&nbsp;枸橼酸钠</span
  790. >
  791. <span v-if="record.prescription.anticoagulant == 6"
  792. >&nbsp;低分子肝素钙</span
  793. >
  794. <span v-if="record.prescription.anticoagulant == 7"
  795. >&nbsp;低分子肝素钠</span
  796. >
  797. </div>
  798. </div>
  799. <div class="inline_block" style="margin-left:20px;">
  800. 首剂:
  801. <div
  802. class="under_line"
  803. style="width: 50px;text-align: center;"
  804. >
  805. {{
  806. record.prescription &&
  807. record.prescription.anticoagulant_shouji
  808. ? record.prescription.anticoagulant_shouji
  809. : "/"
  810. }}
  811. </div>
  812. <span v-if="record.prescription.anticoagulant == 4"
  813. >mg</span
  814. >
  815. <span v-if="record.prescription.anticoagulant == 3"
  816. >iu</span
  817. >
  818. <span v-if="record.prescription.anticoagulant == 2"
  819. >iu</span
  820. >
  821. <span v-if="record.prescription.anticoagulant == 1"
  822. >mg</span
  823. >
  824. </div>
  825. <div class="inline_block" style="margin-left:20px;">
  826. 维持:
  827. <div
  828. v-if="
  829. record.prescription &&
  830. record.prescription.anticoagulant == 1
  831. "
  832. class="under_line"
  833. style="width: 50px;text-align: center;"
  834. >
  835. {{
  836. record.prescription &&
  837. record.prescription.anticoagulant_weichi
  838. ? record.prescription.anticoagulant_weichi
  839. : "/"
  840. }}
  841. </div>
  842. <div
  843. v-if="
  844. record.prescription &&
  845. record.prescription.anticoagulant != 1
  846. "
  847. class="under_line"
  848. style="width: 50px;text-align: center;"
  849. >
  850. {{
  851. record.prescription &&
  852. record.prescription.anticoagulant_weichi
  853. ? record.prescription.anticoagulant_weichi
  854. : 0
  855. }}
  856. </div>
  857. <span v-if="record.prescription.anticoagulant == 5"
  858. >ml/h</span
  859. >
  860. <span v-if="record.prescription.anticoagulant == 4"
  861. >mg/h</span
  862. >
  863. <span v-if="record.prescription.anticoagulant == 3"
  864. >iu/h</span
  865. >
  866. <span v-if="record.prescription.anticoagulant == 2"
  867. >iu/h</span
  868. >
  869. <span v-if="record.prescription.anticoagulant == 1"
  870. >mg/h</span
  871. >
  872. </div>
  873. <div class="inline_block" style="margin-left:20px;">
  874. 总量:
  875. <div
  876. class="under_line"
  877. style="width: 50px;text-align: center;"
  878. >
  879. {{
  880. record.prescription &&
  881. record.prescription.anticoagulant_zongliang
  882. ? record.prescription.anticoagulant_zongliang
  883. : "/"
  884. }}
  885. </div>
  886. <span v-if="record.prescription.anticoagulant == 4"
  887. >mg</span
  888. >
  889. <span v-if="record.prescription.anticoagulant == 3"
  890. >iu</span
  891. >
  892. <span v-if="record.prescription.anticoagulant == 2"
  893. >iu</span
  894. >
  895. <span v-if="record.prescription.anticoagulant == 1"
  896. >mg</span
  897. >
  898. </div>
  899. <div class="inline_block" style="margin-left:20px;">
  900. 透析机号:
  901. <div
  902. class="under_line"
  903. style="width: 50px;text-align: center;"
  904. >
  905. {{
  906. record.dialysis_order &&
  907. record.dialysis_order.device_number &&
  908. record.dialysis_order.device_number.number.length >
  909. 0
  910. ? record.dialysis_order.device_number.number
  911. : record.device_number.number
  912. }}
  913. </div>
  914. </div>
  915. </div>
  916. </td>
  917. </tr>
  918. <tr>
  919. <td style="padding: 0; position: relative;" colspan="2">
  920. <table class="inside_table">
  921. <tbody>
  922. <!-- <thead> -->
  923. <tr>
  924. <td
  925. colspan="11"
  926. style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;"
  927. >
  928. 治疗纪录
  929. </td>
  930. </tr>
  931. <tr>
  932. <td width="60">时间</td>
  933. <td width="60">血压<br />(mmHg)</td>
  934. <td width="50">脉搏<br />(次/分)</td>
  935. <td width="50">呼吸<br />(次/分)</td>
  936. <td width="50">血流量<br />(ml/min)</td>
  937. <td width="50">静脉压<br />(mmHg)</td>
  938. <td width="50">跨膜压<br />(mmHg)</td>
  939. <td width="60">透析液温度(°C)</td>
  940. <td width="50">电导度<br />(ms/cm)</td>
  941. <td width="50">超滤量<br />(ml)</td>
  942. <td
  943. v-if="
  944. record.prescription.mode_id == 2 ||
  945. record.prescription.mode_id == 5 ||
  946. record.prescription.mode_id == 12
  947. "
  948. width="50"
  949. >
  950. 置换量<br />(ml)
  951. </td>
  952. <td width="200">病情变化及处理</td>
  953. </tr>
  954. <tr
  955. v-for="(monitor_record, j) in record.monitor_records"
  956. :key="j"
  957. >
  958. <td>
  959. {{
  960. getTime(monitor_record.operate_time, "{h}:{i}")
  961. }}
  962. </td>
  963. <td>
  964. {{
  965. monitor_record.systolic_blood_pressure
  966. ? monitor_record.systolic_blood_pressure + "/"
  967. : ""
  968. }}{{
  969. monitor_record.diastolic_blood_pressure
  970. ? monitor_record.diastolic_blood_pressure
  971. : ""
  972. }}
  973. </td>
  974. <td>
  975. {{
  976. monitor_record.pulse_frequency
  977. ? monitor_record.pulse_frequency
  978. : ""
  979. }}
  980. </td>
  981. <td>
  982. {{
  983. monitor_record.breathing_rate
  984. ? monitor_record.breathing_rate
  985. : ""
  986. }}
  987. </td>
  988. <td>
  989. {{
  990. monitor_record.blood_flow_volume
  991. ? monitor_record.blood_flow_volume
  992. : ""
  993. }}
  994. </td>
  995. <td>
  996. {{
  997. monitor_record.venous_pressure
  998. ? monitor_record.venous_pressure
  999. : ""
  1000. }}
  1001. </td>
  1002. <td>
  1003. {{
  1004. monitor_record.transmembrane_pressure
  1005. ? monitor_record.transmembrane_pressure
  1006. : ""
  1007. }}
  1008. </td>
  1009. <td>
  1010. {{
  1011. monitor_record.dialysate_temperature
  1012. ? monitor_record.dialysate_temperature
  1013. : ""
  1014. }}
  1015. </td>
  1016. <td>
  1017. {{
  1018. monitor_record.sodium_concentration
  1019. ? monitor_record.sodium_concentration
  1020. : ""
  1021. }}
  1022. </td>
  1023. <td>
  1024. {{
  1025. monitor_record.ultrafiltration_volume
  1026. ? monitor_record.ultrafiltration_volume
  1027. : 0
  1028. }}
  1029. </td>
  1030. <td
  1031. v-if="
  1032. record.prescription.mode_id == 2 ||
  1033. record.prescription.mode_id == 5 ||
  1034. (record.prescription.mode_id == 12 &&
  1035. monitor_record.operate_time >
  1036. record.dialysis_order.end_time)
  1037. "
  1038. style="width:50px"
  1039. >
  1040. {{
  1041. monitor_record.displacement_quantity
  1042. ? monitor_record.displacement_quantity
  1043. : ""
  1044. }}
  1045. </td>
  1046. <td style="line-height:16px;padding:0px;">
  1047. <div
  1048. style="min-height:40px;line-height:20px; overflow:hidden;"
  1049. >
  1050. <span
  1051. style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"
  1052. >
  1053. <template v-if="index == 0"
  1054. >【开始透析】</template
  1055. >
  1056. {{ monitor_record.end }}
  1057. {{ monitor_record.symptom }} &nbsp;{{
  1058. monitor_record.dispose
  1059. }}
  1060. &nbsp;{{ monitor_record.result }}
  1061. </span>
  1062. </div>
  1063. </td>
  1064. </tr>
  1065. <tr
  1066. v-for="(monitor_record, s) in record.monitor_records2"
  1067. :key="s"
  1068. >
  1069. <td></td>
  1070. <td></td>
  1071. <td></td>
  1072. <td></td>
  1073. <td></td>
  1074. <td></td>
  1075. <td></td>
  1076. <td></td>
  1077. <td></td>
  1078. <td></td>
  1079. <td style="line-height:16px;padding:0px;">
  1080. <div
  1081. style="height:40px;line-height:20px; overflow:hidden;"
  1082. >
  1083. <span
  1084. style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"
  1085. >
  1086. </span>
  1087. </div>
  1088. </td>
  1089. </tr>
  1090. </tbody>
  1091. </table>
  1092. </td>
  1093. </tr>
  1094. <tr>
  1095. <td style="padding: 0; position: relative;" colspan="2">
  1096. <table class="inside_table">
  1097. <tbody>
  1098. <tr style="line-height:35px;padding:8px 5px;">
  1099. <td
  1100. colspan="7"
  1101. style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;"
  1102. >
  1103. 医嘱内容
  1104. </td>
  1105. </tr>
  1106. <!-- <tr style="line-height:35px;padding:8px 5px;">
  1107. <td colspan="4" style="font-size: 16px">开医嘱</td>
  1108. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  1109. </tr> -->
  1110. <tr style="line-height:35px;padding:8px 5px;">
  1111. <td style="font-size: 16px" width="10%">时间</td>
  1112. <td style="font-size: 16px" colspan="2" width="45%">
  1113. 医嘱内容
  1114. </td>
  1115. <td style="font-size: 16px" width="10%">医生签名</td>
  1116. <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
  1117. <td style="font-size: 16px" width="10%">
  1118. 执行人签名
  1119. </td>
  1120. <td style="font-size: 16px" width="10%">时间</td>
  1121. </tr>
  1122. <!-- <template v-for="group in doctor_advices" > -->
  1123. <tr
  1124. v-for="(advice, advice_index) in record.advices"
  1125. :key="advice_index"
  1126. >
  1127. <td height="35px">
  1128. <span v-if="advice[0].start_time">
  1129. {{ getTime(advice[0].start_time, "{h}:{i}") }}
  1130. </span>
  1131. <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
  1132. </td>
  1133. <td
  1134. height="35px"
  1135. colspan="2"
  1136. class="advice-name"
  1137. style="padding-left:7px;"
  1138. >
  1139. <span v-if="advice[0].parent_id > 0">---></span>
  1140. <span>{{ advice[0].advice_name }}</span>
  1141. <span v-if="advice[0].advice_desc != ''"
  1142. >({{ advice[0].advice_desc
  1143. }}{{ advice[0].drug_spec_unit }})</span
  1144. >
  1145. <span v-if="advice[0].prescribing_number"
  1146. >&nbsp;&nbsp; {{ advice[0].prescribing_number
  1147. }}{{ advice[0].prescribing_number_unit }}</span
  1148. >
  1149. <span v-if="advice[0].single_dose != 0">
  1150. {{ advice[0].single_dose
  1151. }}{{ advice[0].single_dose_unit }}</span
  1152. >
  1153. <span
  1154. v-if="
  1155. advice[0].parent_id == 0 &&
  1156. advice[0].children.length == 0
  1157. "
  1158. >{{ advice[0].delivery_way }}</span
  1159. >
  1160. <span
  1161. v-if="
  1162. advice[0].parent_id == 0 &&
  1163. advice[0].children.length == 0
  1164. "
  1165. >{{ advice[0].execution_frequency }}</span
  1166. >
  1167. <span
  1168. v-if="
  1169. advice[0].parent_id == 0 &&
  1170. advice[0].children &&
  1171. advice[0].children.length == 0 &&
  1172. advice[0].remark.length > 0
  1173. "
  1174. >({{ advice[0].remark }})</span
  1175. >
  1176. </td>
  1177. <td height="35px">
  1178. <span
  1179. v-if="
  1180. setAdminUserES(advice[0], 'advice_doctor') == ''
  1181. "
  1182. >{{
  1183. getAdminUser(advice[0], "advice_doctor")
  1184. }}</span
  1185. >
  1186. <img
  1187. class="es-img"
  1188. :src="setAdminUserES(advice[0], 'advice_doctor')"
  1189. alt=""
  1190. srcset=""
  1191. v-else
  1192. style="height: 40px;"
  1193. />
  1194. </td>
  1195. <!-- <td height="35px">
  1196. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  1197. <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  1198. </td> -->
  1199. <td height="35px">
  1200. <span
  1201. v-if="
  1202. setAdminUserES(advice[0], 'execution_staff') ==
  1203. ''
  1204. "
  1205. >{{
  1206. getAdminUser(advice[0], "execution_staff")
  1207. }}</span
  1208. >
  1209. <img
  1210. class="es-img"
  1211. :src="
  1212. setAdminUserES(advice[0], 'execution_staff')
  1213. "
  1214. alt=""
  1215. srcset=""
  1216. v-else
  1217. style="height: 40px;"
  1218. />
  1219. </td>
  1220. <td height="35px">
  1221. <span v-if="advice[0].execution_time">{{
  1222. getTime(advice[0].execution_time, " {h}:{i}")
  1223. }}</span>
  1224. </td>
  1225. </tr>
  1226. <!-- </template> -->
  1227. </tbody>
  1228. </table>
  1229. </td>
  1230. </tr>
  1231. </tbody>
  1232. </table>
  1233. </div>
  1234. <template v-if="record.totallength > 14">
  1235. <div style="display:inline-block;width:100%;text-align:center;">
  1236. <div
  1237. class="order-yy-name"
  1238. style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
  1239. >
  1240. {{ orgname }}
  1241. </div>
  1242. <div
  1243. class="order-title"
  1244. style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
  1245. >
  1246. 血液净化治疗记录单
  1247. </div>
  1248. </div>
  1249. <div class="row">
  1250. <div class="inline_block">
  1251. 姓名:
  1252. <div class="under_line" style="width: 50px;text-align: center;">
  1253. {{ record.patient.name }}
  1254. </div>
  1255. </div>
  1256. <div class="inline_block" style="margin-left: 10px;">
  1257. 性别:
  1258. <div class="under_line" style="width: 30px;text-align: center;">
  1259. {{ record.patient.gender == 1 ? "男" : "女" }}
  1260. </div>
  1261. </div>
  1262. <div class="inline_block" style="margin-left: 10px;">
  1263. 年龄:
  1264. <div class="under_line" style="width: 30px;text-align: center;">
  1265. {{ getAge(record.patient) }}
  1266. </div>
  1267. </div>
  1268. <div class="inline_block">
  1269. 门诊:
  1270. <div class="under_line" style="width: 30px;text-align: center;">
  1271. <check-box :checked="record.patient.source == 1"></check-box>
  1272. </div>
  1273. </div>
  1274. <div class="inline_block">
  1275. 病区:
  1276. <div class="under_line" style="width: 50px;text-align: center;">
  1277. {{ "/" }}
  1278. </div>
  1279. </div>
  1280. <div class="inline_block">
  1281. 床号:
  1282. <div class="under_line" style="width: 50px;text-align: center;">
  1283. {{ "/" }}
  1284. </div>
  1285. </div>
  1286. <div class="inline_block">
  1287. 透析号:
  1288. <div class="under_line" style="width: 70px;text-align: center;">
  1289. {{ record.patient.dialysis_no }}
  1290. </div>
  1291. </div>
  1292. <div class="inline_block" style="margin-left: 5px;">
  1293. 住院号/门诊号:
  1294. <div
  1295. class="under_line"
  1296. style="width: 70px;text-align: left"
  1297. v-if="record.patient.admission_number"
  1298. >
  1299. {{ record.patient.admission_number }}
  1300. </div>
  1301. <div
  1302. class="under_line"
  1303. style="width: 70px;text-align: left"
  1304. v-else
  1305. >
  1306. {{ "/" }}
  1307. </div>
  1308. </div>
  1309. </div>
  1310. <div class="row">
  1311. <div class="inline_block">
  1312. 入科方式:
  1313. <div
  1314. v-for="(item, index) in way_arr"
  1315. class="under_line"
  1316. v-if="record.receive_assessment.way == item.id"
  1317. style="width: 180px;text-align: left"
  1318. >
  1319. {{ item.name }}
  1320. </div>
  1321. </div>
  1322. <div class="inline_block" style="margin-left: 10px;">
  1323. 诊断:
  1324. <div
  1325. class="under_line"
  1326. style="width: 640px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;white-space: pre-wrap;"
  1327. >
  1328. {{ record.patient.diagnose }}
  1329. </div>
  1330. </div>
  1331. </div>
  1332. </template>
  1333. <div class="row" style="margin-top:-11px;position: relative;">
  1334. <table class="proj_table">
  1335. <tbody>
  1336. <tr>
  1337. <td
  1338. colspan="2"
  1339. style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;"
  1340. >
  1341. 透析后情况
  1342. </td>
  1343. </tr>
  1344. <tr>
  1345. <td>
  1346. <div
  1347. class="row"
  1348. style="padding: 2px 0;line-height:23px; display:flex;"
  1349. >
  1350. <div class="inline_block" style="flex:1;">
  1351. T:
  1352. <div
  1353. class="under_line"
  1354. style="width: 50px;text-align: center"
  1355. >
  1356. {{
  1357. record.assessment_after_dislysis &&
  1358. record.assessment_after_dislysis.temperature
  1359. ? record.assessment_after_dislysis.temperature
  1360. : "/"
  1361. }}
  1362. </div>
  1363. °C
  1364. </div>
  1365. <div
  1366. class="inline_block"
  1367. style="margin-left:10px;flex:1;"
  1368. >
  1369. P:
  1370. <div
  1371. class="under_line"
  1372. style="width: 50px;text-align: center;"
  1373. >
  1374. {{
  1375. record.assessment_after_dislysis &&
  1376. record.assessment_after_dislysis.pulse_frequency
  1377. ? record.assessment_after_dislysis.pulse_frequency
  1378. : "/"
  1379. }}
  1380. </div>
  1381. 次/分
  1382. </div>
  1383. <div
  1384. class="inline_block"
  1385. style="margin-left:10px;flex:1;"
  1386. >
  1387. R:
  1388. <div
  1389. class="under_line"
  1390. style="width: 50px;text-align: center;"
  1391. >
  1392. {{
  1393. record.assessment_after_dislysis &&
  1394. record.assessment_after_dislysis.breathing_rate
  1395. ? record.assessment_after_dislysis.breathing_rate
  1396. : "/"
  1397. }}
  1398. </div>
  1399. 次/分
  1400. </div>
  1401. <div
  1402. class="inline_block"
  1403. style="margin-left:10px;flex:1;"
  1404. >
  1405. BP:
  1406. <div
  1407. class="under_line"
  1408. style="width: 50px;text-align: center;"
  1409. >
  1410. {{
  1411. record.assessment_after_dislysis &&
  1412. record.assessment_after_dislysis
  1413. .systolic_blood_pressure
  1414. ? record.assessment_after_dislysis
  1415. .systolic_blood_pressure
  1416. : "/"
  1417. }}
  1418. </div>
  1419. /
  1420. <div
  1421. class="under_line"
  1422. style="width: 50px;text-align: center;"
  1423. >
  1424. {{
  1425. record.assessment_after_dislysis &&
  1426. record.assessment_after_dislysis
  1427. .diastolic_blood_pressure
  1428. ? record.assessment_after_dislysis
  1429. .diastolic_blood_pressure
  1430. : "/"
  1431. }}
  1432. </div>
  1433. mmHg
  1434. </div>
  1435. </div>
  1436. <div
  1437. class="row"
  1438. style="padding: 2px 0;line-height:23px;display:flex;"
  1439. >
  1440. <!-- <div class="inline_block" style="flex:1;">
  1441. 透析器凝血:
  1442. <div
  1443. class="under_line"
  1444. style="width: 70px;text-align: center"
  1445. >
  1446. {{
  1447. record.assessment_after_dislysis &&
  1448. record.assessment_after_dislysis.cruor
  1449. ? record.assessment_after_dislysis.cruor
  1450. : "/"
  1451. }}
  1452. </div>
  1453. </div> -->
  1454. <div class="inline_block" style="flex:1;">
  1455. 内瘘:
  1456. <div
  1457. class="under_line"
  1458. style="width: 70px;text-align: center"
  1459. >
  1460. {{
  1461. record.assessment_after_dislysis &&
  1462. record.assessment_after_dislysis.internal_fistula
  1463. ? record.assessment_after_dislysis
  1464. .internal_fistula
  1465. : "/"
  1466. }}
  1467. </div>
  1468. </div>
  1469. <div class="inline_block" style="flex:1;">
  1470. 导管:
  1471. <div
  1472. class="under_line"
  1473. style="width: 150px;text-align: center"
  1474. >
  1475. {{
  1476. record.assessment_after_dislysis &&
  1477. record.assessment_after_dislysis.catheter
  1478. ? record.assessment_after_dislysis.catheter
  1479. : "/"
  1480. }}
  1481. </div>
  1482. </div>
  1483. <div class="inline_block" style="flex:1;">
  1484. 实际治疗时间:
  1485. <div
  1486. class="under_line"
  1487. style="width: 30px;text-align: center"
  1488. >
  1489. {{
  1490. record.assessment_after_dislysis &&
  1491. record.assessment_after_dislysis
  1492. .actual_treatment_hour
  1493. ? record.assessment_after_dislysis
  1494. .actual_treatment_hour
  1495. : "/"
  1496. }}
  1497. </div>
  1498. h
  1499. <div
  1500. class="under_line"
  1501. style="width: 30px;text-align: center"
  1502. >
  1503. {{
  1504. record.assessment_after_dislysis &&
  1505. record.assessment_after_dislysis
  1506. .actual_treatment_minute
  1507. ? record.assessment_after_dislysis
  1508. .actual_treatment_minute
  1509. : 0
  1510. }}
  1511. </div>
  1512. min
  1513. </div>
  1514. <!-- 只是占位 -->
  1515. <div
  1516. class="inline_block"
  1517. style="flex:1;visibility: hidden;"
  1518. >
  1519. 透析器凝血:
  1520. <div
  1521. class="under_line"
  1522. style="width: 70px;text-align: center"
  1523. >
  1524. {{
  1525. record.assessment_after_dislysis &&
  1526. record.assessment_after_dislysis.cruor
  1527. ? record.assessment_after_dislysis.cruor
  1528. : "/"
  1529. }}
  1530. </div>
  1531. </div>
  1532. </div>
  1533. <div
  1534. class="row"
  1535. style="padding: 2px 0;line-height:23px;display:flex;"
  1536. >
  1537. <div class="inline_block" style="flex:1;">
  1538. 透后体重:
  1539. <div
  1540. class="under_line"
  1541. style="width: 70px;text-align: center"
  1542. >
  1543. {{
  1544. record.assessment_after_dislysis &&
  1545. record.assessment_after_dislysis.weight_after
  1546. ? parseFloat(
  1547. record.assessment_after_dislysis
  1548. .weight_after -
  1549. record.assessment_before_dislysis
  1550. .additional_weight
  1551. )
  1552. : "/"
  1553. }}
  1554. </div>
  1555. kg
  1556. </div>
  1557. <div class="inline_block" style="flex:1;">
  1558. 体重减少:
  1559. <div
  1560. class="under_line"
  1561. style="width: 70px;text-align: center"
  1562. >
  1563. {{
  1564. record.assessment_after_dislysis &&
  1565. record.assessment_after_dislysis.weight_loss
  1566. ? record.assessment_after_dislysis.weight_loss
  1567. : "/"
  1568. }}
  1569. </div>
  1570. kg
  1571. </div>
  1572. <div class="inline_block" style="flex:1;">
  1573. 透析中入量:
  1574. <div
  1575. class="under_line"
  1576. style="width: 100px;text-align: center"
  1577. >
  1578. {{
  1579. record.assessment_after_dislysis &&
  1580. record.assessment_after_dislysis.dialysis_intakes
  1581. ? record.assessment_after_dislysis
  1582. .dialysis_intakes
  1583. : "/"
  1584. }}
  1585. </div>
  1586. {{ getUnit(record) }}
  1587. </div>
  1588. <div class="inline_block" style="flex:1;">
  1589. 实际超滤量:
  1590. <div
  1591. class="under_line"
  1592. style="width: 100px;text-align: center"
  1593. >
  1594. {{
  1595. record.assessment_after_dislysis &&
  1596. record.assessment_after_dislysis
  1597. .actual_ultrafiltration
  1598. ? record.assessment_after_dislysis
  1599. .actual_ultrafiltration
  1600. : "/"
  1601. }}
  1602. </div>
  1603. ml
  1604. </div>
  1605. </div>
  1606. <div
  1607. class="row"
  1608. style="padding: 2px 0;line-height:23px;display:flex;"
  1609. >
  1610. <div class="inline_block" style="flex:1;">
  1611. 透析器凝血:
  1612. <span
  1613. style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;"
  1614. >
  1615. {{
  1616. record.assessment_after_dislysis &&
  1617. record.assessment_after_dislysis.cruor
  1618. ? record.assessment_after_dislysis.cruor
  1619. : "/"
  1620. }}
  1621. </span>
  1622. </div>
  1623. </div>
  1624. <div
  1625. class="row"
  1626. style="padding: 2px 0;line-height:23px;display:flex;"
  1627. >
  1628. <div class="inline_block" style="flex:1;">
  1629. 治疗小结:
  1630. <div
  1631. style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;"
  1632. >
  1633. {{
  1634. record.summer && record.summer.dialysis_summary
  1635. ? record.summer.dialysis_summary
  1636. : "/"
  1637. }}
  1638. </div>
  1639. </div>
  1640. </div>
  1641. </td>
  1642. </tr>
  1643. <tr>
  1644. <td>
  1645. <div
  1646. class="row"
  1647. style="padding: 2px 0;line-height:23px;display:flex;"
  1648. >
  1649. <div class="inline_block" style="flex:1;">
  1650. 穿刺护士:
  1651. <div
  1652. class="under_line"
  1653. style="width: 80px;text-align: center"
  1654. >
  1655. <span
  1656. v-if="
  1657. setAdminUserES(
  1658. record.dialysis_order,
  1659. 'puncture_nurse'
  1660. ) == ''
  1661. "
  1662. >{{
  1663. getAdminUser(
  1664. record.dialysis_order,
  1665. "puncture_nurse"
  1666. )
  1667. ? getAdminUser(
  1668. record.dialysis_order,
  1669. "puncture_nurse"
  1670. )
  1671. : "/"
  1672. }}</span
  1673. >
  1674. <img
  1675. class="es-img"
  1676. :src="
  1677. setAdminUserES(
  1678. record.dialysis_order,
  1679. 'puncture_nurse'
  1680. )
  1681. "
  1682. alt=""
  1683. srcset=""
  1684. v-else
  1685. style="height: 40px;"
  1686. />
  1687. </div>
  1688. </div>
  1689. <div class="inline_block" style="flex:1;">
  1690. 治疗护士:
  1691. <div
  1692. class="under_line"
  1693. style="width: 80px;text-align: center"
  1694. >
  1695. <span
  1696. v-if="
  1697. setAdminUserES(
  1698. record.dialysis_order,
  1699. 'start_nurse'
  1700. ) == ''
  1701. "
  1702. >{{
  1703. getAdminUser(record.dialysis_order, "start_nurse")
  1704. ? getAdminUser(
  1705. record.dialysis_order,
  1706. "start_nurse"
  1707. )
  1708. : "/"
  1709. }}</span
  1710. >
  1711. <img
  1712. class="es-img"
  1713. :src="
  1714. setAdminUserES(
  1715. record.dialysis_order,
  1716. 'start_nurse'
  1717. )
  1718. "
  1719. alt=""
  1720. srcset=""
  1721. v-else
  1722. style="height: 40px;"
  1723. />
  1724. </div>
  1725. </div>
  1726. <div class="inline_block" style="flex:1;">
  1727. 核对人员:
  1728. <div
  1729. class="under_line"
  1730. style="width: 80px;text-align: left"
  1731. v-if="record.dialysis_order == null"
  1732. ></div>
  1733. <div
  1734. v-if="record.check"
  1735. class="under_line"
  1736. style="width: 80px;text-align: left"
  1737. >
  1738. <div
  1739. style="width: 80px;text-align: left;display: inline-block;white-space: nowrap;"
  1740. v-if="
  1741. record.dialysis_order != null &&
  1742. record.dialysis_order.start_nurse ==
  1743. record.check.creater
  1744. "
  1745. >
  1746. <span
  1747. v-if="
  1748. setAdminUserES(record.check, 'creater') == ''
  1749. "
  1750. >{{
  1751. getAdminUser(record.check, "creater")
  1752. ? getAdminUser(record.check, "creater")
  1753. : "/"
  1754. }}</span
  1755. >
  1756. <img
  1757. class="es-img"
  1758. :src="setAdminUserES(record.check, 'creater')"
  1759. alt=""
  1760. srcset=""
  1761. v-else
  1762. style="height: 40px;"
  1763. />
  1764. </div>
  1765. <div
  1766. class="under_line"
  1767. style="width: 80px;text-align: left"
  1768. v-if="
  1769. record.dialysis_order != null &&
  1770. record.dialysis_order.start_nurse ==
  1771. record.check.modifier
  1772. "
  1773. >
  1774. <span
  1775. v-if="
  1776. setAdminUserES(record.check, 'creater') == ''
  1777. "
  1778. >{{ getAdminUser(record.check, "creater") }}</span
  1779. >
  1780. <img
  1781. class="es-img"
  1782. :src="setAdminUserES(record.check, 'creater')"
  1783. alt=""
  1784. srcset=""
  1785. v-else
  1786. />
  1787. </div>
  1788. <div
  1789. class="under_line"
  1790. style="width: 80px;text-align: left"
  1791. v-if="
  1792. record.dialysis_order != null &&
  1793. record.dialysis_order.start_nurse !=
  1794. record.check.modifier &&
  1795. record.dialysis_order.start_nurse !=
  1796. record.check.creater
  1797. "
  1798. >
  1799. <span
  1800. v-if="
  1801. setAdminUserES(record.check, 'creater') == ''
  1802. "
  1803. >{{ getAdminUser(record.check, "creater") }}</span
  1804. >
  1805. <img
  1806. class="es-img"
  1807. :src="setAdminUserES(record.check, 'creater')"
  1808. alt=""
  1809. srcset=""
  1810. v-else
  1811. />
  1812. </div>
  1813. </div>
  1814. <div
  1815. class="under_line"
  1816. style="width: 80px;text-align: left"
  1817. v-if="!record.check"
  1818. ></div>
  1819. </div>
  1820. <div class="inline_block" style="flex:1;">
  1821. 下机护士:
  1822. <div
  1823. class="under_line"
  1824. style="width: 80px;text-align: center"
  1825. >
  1826. <span
  1827. v-if="
  1828. setAdminUserES(
  1829. record.dialysis_order,
  1830. 'finish_nurse'
  1831. ) == ''
  1832. "
  1833. >{{
  1834. getAdminUser(
  1835. record.dialysis_order,
  1836. "finish_nurse"
  1837. )
  1838. ? getAdminUser(
  1839. record.dialysis_order,
  1840. "finish_nurse"
  1841. )
  1842. : "/"
  1843. }}</span
  1844. >
  1845. <img
  1846. class="es-img"
  1847. :src="
  1848. setAdminUserES(
  1849. record.dialysis_order,
  1850. 'finish_nurse'
  1851. )
  1852. "
  1853. alt=""
  1854. srcset=""
  1855. v-else
  1856. style="height: 40px;"
  1857. />
  1858. </div>
  1859. </div>
  1860. <div class="inline_block" style="flex:1;">
  1861. 治疗医生:
  1862. <div
  1863. class="under_line"
  1864. style="width: 80px;text-align: center"
  1865. >
  1866. <template
  1867. v-if="
  1868. record.prescription &&
  1869. record.prescription.prescription_doctor
  1870. "
  1871. >
  1872. <span
  1873. v-if="
  1874. setAdminUserES(
  1875. record.prescription,
  1876. 'prescription_doctor'
  1877. ) == ''
  1878. "
  1879. >{{
  1880. getAdminUser(
  1881. record.prescription,
  1882. "prescription_doctor"
  1883. )
  1884. }}</span
  1885. >
  1886. <img
  1887. class="es-img"
  1888. :src="
  1889. setAdminUserES(
  1890. record.prescription,
  1891. 'prescription_doctor'
  1892. )
  1893. "
  1894. alt=""
  1895. srcset=""
  1896. v-else
  1897. style="height: 40px;"
  1898. />
  1899. </template>
  1900. </div>
  1901. </div>
  1902. </div>
  1903. </td>
  1904. </tr>
  1905. </tbody>
  1906. </table>
  1907. </div>
  1908. </div>
  1909. </div>
  1910. </div>
  1911. </div>
  1912. </template>
  1913. <script>
  1914. import CheckBox from "./option_check_box";
  1915. import { GetBatchPrintDialysisData } from "@/api/print_data";
  1916. import { jsGetAge, uParseTime } from "@/utils/tools";
  1917. import { getDataConfig } from "@/utils/data";
  1918. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  1919. import print from "print-js";
  1920. export default {
  1921. name: "BatchPrintOrderSix",
  1922. components: {
  1923. CheckBox,
  1924. BreadCrumb
  1925. },
  1926. data() {
  1927. return {
  1928. crumbs: [
  1929. { path: false, name: "透析管理" },
  1930. { path: false, name: "批量打印" }
  1931. ],
  1932. way_arr: [],
  1933. consciousness_arr: [],
  1934. appetite_arr: [],
  1935. posture_arr: [],
  1936. sick_condition_arr: [],
  1937. precaution_arr: [],
  1938. intake_arr: [],
  1939. nutrition_arr: [],
  1940. records: [
  1941. // 模拟有多条数据
  1942. // {
  1943. // monitor_records: [ {},{},{},{},{},{},{},{},{},{},{}, ],
  1944. // advices: [ {},{},{},{},{},{},{}, ],
  1945. // },
  1946. // {
  1947. // monitor_records: [],
  1948. // advices: [],
  1949. // },
  1950. ],
  1951. loading: false,
  1952. orgname: "",
  1953. bloodAccessParOpera: {},
  1954. anticoagulantsConfit: {},
  1955. dialysateFormulationOptions: {},
  1956. operatorMaps: {},
  1957. operators: [],
  1958. adminUser: [],
  1959. doctor_advices: [],
  1960. monitor_records: [],
  1961. advice_groups: [],
  1962. advice_groups_2: [],
  1963. blood_access_part: [],
  1964. complications: [
  1965. "低血压",
  1966. "高血压",
  1967. "心律失常",
  1968. "头晕",
  1969. "头痛",
  1970. "呕吐",
  1971. "抽搐",
  1972. "出血",
  1973. "心衰",
  1974. "腹痛"
  1975. ]
  1976. };
  1977. },
  1978. created() {
  1979. this.way_arr = getDataConfig("hemodialysis", "way");
  1980. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  1981. this.appetite_arr = getDataConfig("hemodialysis", "appetite");
  1982. this.posture_arr = getDataConfig("hemodialysis", "posture");
  1983. this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
  1984. this.precaution_arr = getDataConfig("hemodialysis", "precaution");
  1985. this.intake_arr = getDataConfig("hemodialysis", "intake");
  1986. this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
  1987. var xtuser = this.$store.getters.xt_user;
  1988. this.orgname = xtuser.org.org_name;
  1989. // this.orgname = "遂溪方济医院";
  1990. this.modeOptions = this.$store.getters.treatment_mode;
  1991. // this.replacementWays = this.$store.getters.replacement_ways;
  1992. // this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1993. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1994. var bloodAccessParOpera = getDataConfig(
  1995. "hemodialysis",
  1996. "vascular_access_desc"
  1997. );
  1998. for (var key in bloodAccessParOpera) {
  1999. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  2000. bloodAccessParOpera[key];
  2001. }
  2002. this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
  2003. var dialysateFormulationOptions = getDataConfig(
  2004. "hemodialysis",
  2005. "dialysate_formulation"
  2006. );
  2007. for (var key in dialysateFormulationOptions) {
  2008. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  2009. dialysateFormulationOptions[key];
  2010. }
  2011. // const xtdate = this.$route.query && this.$route.query.xtdate;
  2012. // const xtno = this.$route.query && this.$route.query.xtno;
  2013. // if (typeof (xtdate) == "string" && xtdate.length > 0 && typeof (xtno) == "string" && xtno.length > 0) {
  2014. // this.queryParams.xtdate = xtdate;
  2015. // this.queryParams.xtno = xtno;
  2016. // this.getDialysisRecord();
  2017. // } else {
  2018. // this.$message.error("参数不齐");
  2019. // return false;
  2020. // }
  2021. },
  2022. mounted() {
  2023. this.loading = true;
  2024. var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
  2025. if (ids.length == 0) {
  2026. this.$router.back(-1);
  2027. return;
  2028. }
  2029. GetBatchPrintDialysisData(ids.join(","))
  2030. .then(rs => {
  2031. var resp = rs.data;
  2032. if (resp.state == 1) {
  2033. this.records = this.records.concat(resp.data.schedules);
  2034. console.log("记录", this.records);
  2035. for (const recordIndex in this.records) {
  2036. var dlegh = 0;
  2037. if (
  2038. this.records[recordIndex].monitor_records &&
  2039. this.records[recordIndex].monitor_records.length < 8
  2040. ) {
  2041. dlegh = 8 - this.records[recordIndex].monitor_records.length;
  2042. } else {
  2043. dlegh = 0;
  2044. }
  2045. if (dlegh > 0) {
  2046. if (
  2047. typeof this.records[recordIndex].monitor_records ===
  2048. "undefined" ||
  2049. this.records[recordIndex].monitor_records == null
  2050. ) {
  2051. this.records[recordIndex].monitor_records = [];
  2052. }
  2053. for (let index = 0; index < dlegh; index++) {
  2054. this.records[recordIndex].monitor_records.push([]);
  2055. }
  2056. }
  2057. this.records[recordIndex].isShowZero = false;
  2058. if (this.records[recordIndex].patient.user_org_id == 9535) {
  2059. this.records[recordIndex].isShowZero = true;
  2060. }
  2061. var delghTwo = 0;
  2062. if (
  2063. this.records[recordIndex].advices &&
  2064. this.records[recordIndex].advices.length < 14
  2065. ) {
  2066. delghTwo = 14 - this.records[recordIndex].advices.length;
  2067. } else {
  2068. delghTwo = 0;
  2069. }
  2070. if (delghTwo > 0) {
  2071. if (
  2072. typeof this.records[recordIndex].advices === "undefined" ||
  2073. this.records[recordIndex].advices == null
  2074. ) {
  2075. this.records[recordIndex].advices = [];
  2076. }
  2077. for (let index = 0; index < delghTwo; index++) {
  2078. this.records[recordIndex].advices.push([]);
  2079. }
  2080. }
  2081. var childMap = {};
  2082. for (const index in this.records[recordIndex].advices) {
  2083. if (this.records[recordIndex].advices[index].parent_id == 0) {
  2084. continue;
  2085. }
  2086. if (
  2087. !(
  2088. this.records[recordIndex].advices[index].parent_id in childMap
  2089. )
  2090. ) {
  2091. childMap[
  2092. this.records[recordIndex].advices[index].parent_id
  2093. ] = [];
  2094. }
  2095. childMap[this.records[recordIndex].advices[index].parent_id].push(
  2096. this.records[recordIndex].advices[index]
  2097. );
  2098. }
  2099. var advices = [];
  2100. for (const index in this.records[recordIndex].advices) {
  2101. if (this.records[recordIndex].advices[index].parent_id > 0) {
  2102. continue;
  2103. }
  2104. var item = this.records[recordIndex].advices[index];
  2105. if (item.id in childMap) {
  2106. item.children = childMap[item.id];
  2107. } else {
  2108. item.children = [];
  2109. }
  2110. advices.push(item);
  2111. }
  2112. var leftAdvice = [];
  2113. var rightAdvice = [];
  2114. var adlen = advices.length;
  2115. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  2116. for (var i = 0; i < halfLen; i++) {
  2117. leftAdvice.push(advices[i]);
  2118. var rightIndex = i + halfLen;
  2119. rightAdvice.push(
  2120. rightIndex in advices ? advices[i + halfLen] : []
  2121. );
  2122. }
  2123. if (halfLen < 5) {
  2124. var nl = 5 - leftAdvice.length;
  2125. for (let index = 0; index < nl; index++) {
  2126. leftAdvice.push([]);
  2127. }
  2128. var nl = 5 - rightAdvice.length;
  2129. for (let index = 0; index < nl; index++) {
  2130. rightAdvice.push([]);
  2131. }
  2132. }
  2133. this.records[recordIndex].advices = [];
  2134. for (var i = 0; i < halfLen; i++) {
  2135. var item = [];
  2136. item.push(leftAdvice[i]);
  2137. item.push(rightAdvice[i]);
  2138. this.records[recordIndex].advices.push(item);
  2139. }
  2140. }
  2141. console.log(" this.records[recordIndex].advices", this.records);
  2142. this.operators = resp.data.medical_staffs;
  2143. if (this.operators.length > 0) {
  2144. var operatorsLen = this.operators.length;
  2145. for (var index = 0; index < operatorsLen; index++) {
  2146. this.$set(
  2147. this.operatorMaps,
  2148. this.operators[index].id,
  2149. this.operators[index]
  2150. );
  2151. }
  2152. }
  2153. this.adminUser = resp.data.users;
  2154. console.log("使用者", this.adminUser);
  2155. this.loading = false;
  2156. } else {
  2157. this.loading = false;
  2158. this.$message.error(resp.msg);
  2159. }
  2160. })
  2161. .catch(err => {
  2162. this.$message.error(err);
  2163. });
  2164. },
  2165. methods: {
  2166. getUnit: function(val) {
  2167. if (val.assessment_after_dislysis == null) {
  2168. return "";
  2169. } else if (val.assessment_after_dislysis != null) {
  2170. switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
  2171. case 1:
  2172. return "g";
  2173. break;
  2174. case 2:
  2175. return "ml";
  2176. break;
  2177. }
  2178. }
  2179. },
  2180. QueryPartById: function(val) {
  2181. let vascular_access_part_name = "/";
  2182. const vascular_access = getDataConfig("hemodialysis", "vascular_access");
  2183. for (let i = 0; i < vascular_access.length; i++) {
  2184. if (vascular_access[i].id == val) {
  2185. vascular_access_part_name = vascular_access[i].name;
  2186. }
  2187. }
  2188. return vascular_access_part_name;
  2189. },
  2190. printAction: function() {
  2191. const style =
  2192. '@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: 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: 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-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;}';
  2193. printJS({
  2194. printable: "print_content",
  2195. type: "html",
  2196. documentTitle: " ",
  2197. style: style,
  2198. scanStyles: false
  2199. });
  2200. },
  2201. complicationsOther: function(record) {
  2202. if (record == null || typeof record === "undefined") {
  2203. return "";
  2204. }
  2205. if (record.complication.length == 0) {
  2206. return "";
  2207. }
  2208. var complications = record.complication.split(",");
  2209. var complicationOthers = [];
  2210. for (const index in complications) {
  2211. if (
  2212. this.complications.indexOf(complications[index]) < 0 &&
  2213. complicationOthers.indexOf(complications[index]) < 0
  2214. ) {
  2215. complicationOthers.push(complications[index]);
  2216. }
  2217. }
  2218. return complicationOthers.join(",");
  2219. },
  2220. modeName(mode_id) {
  2221. if (mode_id in this.modeOptions) {
  2222. return this.modeOptions[mode_id].name;
  2223. }
  2224. return "";
  2225. },
  2226. anticoagulantName: function(key) {
  2227. if (key == null || typeof key === "undefined") {
  2228. return "";
  2229. }
  2230. var id = key.anticoagulant;
  2231. if (id in this.anticoagulantsConfit) {
  2232. return this.anticoagulantsConfit[id].name;
  2233. }
  2234. return "";
  2235. },
  2236. bloodAccessParOperaName(id) {
  2237. if (id in this.bloodAccessParOpera) {
  2238. return this.bloodAccessParOpera[id].name;
  2239. }
  2240. return "";
  2241. },
  2242. isBbloodAccessParOperaCheck(key, value) {
  2243. if (key == null || typeof key === "undefined") {
  2244. return false;
  2245. }
  2246. var id = key.blood_access_part_opera_id;
  2247. if (id in this.bloodAccessParOpera) {
  2248. return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
  2249. }
  2250. return false;
  2251. },
  2252. isdialysateFormulatioCheck(key, value) {
  2253. if (key == null || typeof key === "undefined") {
  2254. return false;
  2255. }
  2256. var id = key.dialysate_formulation;
  2257. if (id in this.dialysateFormulationOptions) {
  2258. return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
  2259. }
  2260. return false;
  2261. },
  2262. isValueIndexOfCheck: function(record, key, value) {
  2263. if (record == null || record == undefined) {
  2264. return false;
  2265. } else {
  2266. return record[key].indexOf(value) > -1;
  2267. }
  2268. },
  2269. setAdminUserES(key, id) {
  2270. if (
  2271. typeof key === "undefined" ||
  2272. key == null ||
  2273. typeof key[id] === "undefined"
  2274. ) {
  2275. return "";
  2276. }
  2277. if (key[id] == 0) {
  2278. return "";
  2279. }
  2280. if (key[id] in this.operatorMaps) {
  2281. return this.operatorMaps[key[id]].es_url;
  2282. } else {
  2283. return "";
  2284. }
  2285. },
  2286. getFloat: function(x) {
  2287. if (x != ".") {
  2288. var f = Math.round(x * 100) / 100;
  2289. var s = f.toString();
  2290. var rs = s.indexOf(".");
  2291. if (rs <= 0) {
  2292. rs = s.length;
  2293. s += ".";
  2294. }
  2295. while (s.length <= rs + 1) {
  2296. s += "0";
  2297. }
  2298. return s;
  2299. } else {
  2300. return "0.0";
  2301. }
  2302. },
  2303. getAdminUser(key, id) {
  2304. console.log("key", key);
  2305. console.log("id", id);
  2306. if (
  2307. typeof key === "undefined" ||
  2308. key == null ||
  2309. typeof key[id] === "undefined"
  2310. ) {
  2311. return "";
  2312. }
  2313. if (key[id] === 0) {
  2314. return "";
  2315. }
  2316. if (key[id] === undefined) {
  2317. return "";
  2318. }
  2319. for (let i = 0; i < this.adminUser.length; i++) {
  2320. if (this.adminUser[i].id === key[id]) {
  2321. return this.adminUser[i].name;
  2322. }
  2323. }
  2324. },
  2325. jsGetAge: function(agetime) {
  2326. if (agetime == 0) {
  2327. return "";
  2328. }
  2329. return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
  2330. },
  2331. getTime(value, temp) {
  2332. if (value != undefined) {
  2333. return uParseTime(value, temp);
  2334. }
  2335. return "";
  2336. },
  2337. // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
  2338. // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
  2339. isCheckBoxChecked: function(record, key, target_value) {
  2340. if (record == null || record == undefined) {
  2341. return false;
  2342. } else {
  2343. return record[key] == target_value;
  2344. }
  2345. },
  2346. getAge: function(val) {
  2347. if (val.age == 0) {
  2348. if (val.birthday == 0) {
  2349. return "";
  2350. }
  2351. return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
  2352. } else {
  2353. return val.age;
  2354. }
  2355. },
  2356. newAdviceGroupObject: function() {
  2357. return Object.assign(
  2358. {},
  2359. {
  2360. group_no: 0,
  2361. advices: []
  2362. }
  2363. );
  2364. },
  2365. getNumber: function(record) {
  2366. console.log(record);
  2367. }
  2368. }
  2369. };
  2370. </script>
  2371. <style scoped>
  2372. .print_page_main_content {
  2373. background-color: white;
  2374. width: 960px;
  2375. margin: 0 auto 50px;
  2376. padding: 0 0 0 0;
  2377. page-break-after: always;
  2378. }
  2379. .print_page_main_content .order-yy-name {
  2380. margin: auto;
  2381. text-align: center;
  2382. font-size: 20px;
  2383. letter-spacing: 5px;
  2384. }
  2385. .print_page_main_content .order_title {
  2386. text-align: center;
  2387. font-size: 23px;
  2388. line-height: 40px;
  2389. font-weight: 500;
  2390. }
  2391. .row {
  2392. font-size: 14px;
  2393. line-height: 20px;
  2394. padding: 5px 0;
  2395. }
  2396. .inline_block {
  2397. display: inline-block;
  2398. }
  2399. .under_line {
  2400. display: inline-block;
  2401. border-bottom: 1px solid #999;
  2402. text-align: center;
  2403. white-space: nowrap;
  2404. width: 50%;
  2405. }
  2406. .under_line::before {
  2407. content: "\00A0";
  2408. }
  2409. .under_line::after {
  2410. content: "\00A0";
  2411. }
  2412. .under_line_two {
  2413. display: inline-block;
  2414. border-bottom: 1px solid #999;
  2415. text-align: left;
  2416. white-space: nowrap;
  2417. width: 50%;
  2418. }
  2419. .under_line_two::before {
  2420. content: "\00A0";
  2421. }
  2422. .under_line_two::after {
  2423. content: "\00A0";
  2424. }
  2425. .flex {
  2426. display: -webkit-box;
  2427. display: -moz-box;
  2428. display: -ms-flexbox;
  2429. display: -webkit-flex;
  2430. display: flex;
  2431. align-items: center;
  2432. -webkit-align-items: center;
  2433. box-align: center;
  2434. -moz-box-align: center;
  2435. -webkit-box-align: center;
  2436. text-align: center;
  2437. -webkit-justify-content: space-between;
  2438. justify-content: space-between;
  2439. -moz-box-pack: space-between;
  2440. -webkit--moz-box-pack: space-between;
  2441. box-pack: space-between;
  2442. }
  2443. .print_page_main_content .proj_table {
  2444. width: 100%;
  2445. border: 1px solid;
  2446. border-collapse: collapse;
  2447. padding: 2px;
  2448. }
  2449. .print_page_main_content .proj_table tbody tr td {
  2450. border: 1px solid;
  2451. /* text-align: center; */
  2452. font-size: 16px;
  2453. padding: 6px 8px;
  2454. line-height: 30px;
  2455. }
  2456. .print_page_main_content .proj_table .inside_table {
  2457. width: 100%;
  2458. border: hidden; /* 解决边框冲突 */
  2459. border-collapse: collapse;
  2460. }
  2461. .print_page_main_content .proj_table .inside_table tr td {
  2462. border: 1px solid;
  2463. text-align: center;
  2464. font-size: 14px;
  2465. padding: 8px 5px;
  2466. line-height: 16px;
  2467. }
  2468. .print-table-no {
  2469. width: 100%;
  2470. text-align: center;
  2471. border-collapse: collapse;
  2472. font-size: 14px;
  2473. }
  2474. .es-img {
  2475. height: 30px;
  2476. }
  2477. .advice-name {
  2478. text-align: left !important;
  2479. line-height: 16px !important;
  2480. }
  2481. .advice-children {
  2482. display: flex;
  2483. }
  2484. .margin-bottom-300 {
  2485. margin-bottom: 450px;
  2486. }
  2487. .margin-bottom-600 {
  2488. margin-bottom: 600px;
  2489. }
  2490. .margin-bottom-900 {
  2491. margin-bottom: 900px;
  2492. }
  2493. .print-yema {
  2494. position: absolute;
  2495. left: 50%;
  2496. }
  2497. .print-yema2 {
  2498. position: absolute;
  2499. left: 50%;
  2500. }
  2501. .print-yema3 {
  2502. position: absolute;
  2503. left: 50%;
  2504. }
  2505. .print-yema4 {
  2506. position: absolute;
  2507. left: 50%;
  2508. }
  2509. .print-yema5 {
  2510. position: absolute;
  2511. left: 50%;
  2512. }
  2513. .did_checke::after {
  2514. content: "\221A";
  2515. font-size: 8px;
  2516. margin-left: 2px;
  2517. margin-top: 2px;
  2518. position: absolute;
  2519. }
  2520. </style>