DialysisPrintOrderSix.vue 85KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009
  1. <template>
  2. <div id="dialysis-print-box-1">
  3. <div
  4. id="dialysis-print-box-1-1"
  5. class="dialysis-print-order print-template-two print_page_main_content"
  6. >
  7. <div style="display:inline-block;width:100%;text-align:center;">
  8. <div
  9. class="order-yy-name"
  10. style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
  11. >
  12. {{ orgname }}
  13. </div>
  14. <div
  15. class="order-title"
  16. style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
  17. >
  18. 血液净化治疗记录单
  19. </div>
  20. </div>
  21. <div class="row">
  22. <div class="inline_block">
  23. 姓名:
  24. <div class="under_line" style="width: 50px;text-align: center;">
  25. {{ patientInfo.name }}
  26. </div>
  27. </div>
  28. <div class="inline_block" style="margin-left: 10px;">
  29. 性别:
  30. <div class="under_line" style="width: 30px;text-align: center;">
  31. {{ patientInfo_gender_1 ? "男" : "女" }}
  32. </div>
  33. </div>
  34. <div class="inline_block" style="margin-left: 10px;">
  35. 年龄:
  36. <div class="under_line" style="width: 30px;text-align: center;">
  37. {{ getAge(patientInfo) }}
  38. </div>
  39. </div>
  40. <div class="inline_block">
  41. 门诊:
  42. <div class="under_line" style="width: 30px;text-align: center;">
  43. <check-box :checked="patientInfo_source_1"></check-box>
  44. </div>
  45. </div>
  46. <div class="inline_block">
  47. 病区:
  48. <div class="under_line" style="width: 50px;text-align: center;">
  49. {{ "/" }}
  50. </div>
  51. </div>
  52. <div class="inline_block">
  53. 床号:
  54. <div class="under_line" style="width: 50px;text-align: center;">
  55. {{ "/" }}
  56. </div>
  57. </div>
  58. <div class="inline_block">
  59. 透析号:
  60. <div class="under_line" style="width: 70px;text-align: center;">
  61. {{ patientInfo.dialysis_no }}
  62. </div>
  63. </div>
  64. <div class="inline_block" style="margin-left: 5px;">
  65. 住院号/门诊号:
  66. <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
  67. {{ patientInfo.admission_number }}
  68. </div>
  69. <div class="under_line" style="width: 70px;text-align: left" v-else>
  70. {{ "/" }}
  71. </div>
  72. </div>
  73. </div>
  74. <div class="row">
  75. <div class="inline_block">
  76. 入科方式:
  77. <div v-for="(item, index) in way_arr" class="under_line" v-if="receiverTreatmentAccess.way == item.id" style="width: 180px;text-align: left">
  78. {{ item.name }}
  79. </div>
  80. <!--<div-->
  81. <!--class="under_line"-->
  82. <!--v-if="receiverTreatmentAccess.way == 1"-->
  83. <!--style="width: 180px;text-align: left"-->
  84. <!--&gt;-->
  85. <!--步行-->
  86. <!--</div>-->
  87. <!--<div-->
  88. <!--class="under_line"-->
  89. <!--v-if="receiverTreatmentAccess.way == 2"-->
  90. <!--style="width: 180px;text-align: left"-->
  91. <!--&gt;-->
  92. <!--扶行-->
  93. <!--</div>-->
  94. <!--<div-->
  95. <!--class="under_line"-->
  96. <!--v-if="receiverTreatmentAccess.way == 3"-->
  97. <!--style="width: 180px;text-align: left"-->
  98. <!--&gt;-->
  99. <!--轮椅-->
  100. <!--</div>-->
  101. <!--<div-->
  102. <!--class="under_line"-->
  103. <!--v-if="receiverTreatmentAccess.way == 4"-->
  104. <!--style="width: 180px;text-align: left"-->
  105. <!--&gt;-->
  106. <!--平车-->
  107. <!--</div>-->
  108. </div>
  109. <div class="inline_block" style="margin-left: 10px;">
  110. 诊断:
  111. <div class="under_line" style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;">
  112. {{ patientInfo.diagnose }}
  113. </div>
  114. </div>
  115. </div>
  116. <div class="row" :style="this.totollength > 13 ? 'margin-bottom:400px;' : ''">
  117. <table class="proj_table">
  118. <tbody>
  119. <tr>
  120. <td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  121. 透析前情况
  122. </td>
  123. </tr>
  124. <tr>
  125. <td colspan="2">
  126. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  127. <div class="inline_block" style="flex:1;">
  128. 本次透析日期:
  129. <div class="under_line" style="width: 100px;text-align: center">
  130. {{ xtdate }}
  131. </div>
  132. </div>
  133. <div class="inline_block" style="flex:1;">
  134. 透析次数:
  135. <div class="under_line" style="width: 70px;text-align: center">
  136. {{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ? patientInfo.total_dialysis + patientInfo.user_sys_before_count : "/" }}
  137. </div>
  138. </div>
  139. <div class="inline_block" style="flex:1;">
  140. 透前症状:
  141. <div class="under_line" style="width: 150px;text-align: center">
  142. {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }}
  143. </div>
  144. </div>
  145. </div>
  146. <div class="row" style="padding: 2px 0;line-height:23px;">
  147. <div class="inline_block">
  148. T:
  149. <div class="under_line" style="width: 50px;text-align: center">
  150. {{ predialysis.temperature ? predialysis.temperature : "/" }}
  151. </div>
  152. °C
  153. </div>
  154. <div class="inline_block" style="margin-left:10px;">
  155. P:
  156. <div class="under_line" style="width: 50px;text-align: center;">
  157. {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "/" }}
  158. </div>
  159. 次/分
  160. </div>
  161. <div class="inline_block" style="margin-left:10px;">
  162. R:
  163. <div class="under_line" style="width: 50px;text-align: center;">
  164. {{ predialysis.breathing_rate ? predialysis.breathing_rate : "/" }}
  165. </div>
  166. 次/分
  167. </div>
  168. <div class="inline_block" style="margin-left:10px;">
  169. BP:
  170. <div class="under_line" style="width: 50px;text-align: center;">
  171. {{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "/" }}
  172. </div>
  173. /
  174. <div class="under_line" style="width: 50px;text-align: center;">
  175. {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "/" }}
  176. </div>
  177. mmHg
  178. </div>
  179. <div class="inline_block" style="margin-left:10px;flex:1;">
  180. 穿刺方式:
  181. <!-- <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
  182. /
  183. </div>
  184. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 1">
  185. 绳梯
  186. </div>
  187. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 2">
  188. 扣眼
  189. </div>
  190. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 3">
  191. 区域
  192. </div> -->
  193. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == ''">
  194. /
  195. </div>
  196. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('绳梯')>-1">
  197. 绳梯
  198. </div>
  199. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('扣眼')>-1">
  200. 扣眼
  201. </div>
  202. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('区域')>-1">
  203. 区域
  204. </div>
  205. </div>
  206. <div class="inline_block" style="margin-left:10px;flex:1;">
  207. 穿刺针:
  208. <div class="under_line" style="width: 100px;text-align: center">
  209. {{ predialysis.puncture_needle ? predialysis.puncture_needle : "/" }}
  210. </div>
  211. </div>
  212. </div>
  213. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  214. <div class="inline_block" style="flex:1.4">
  215. 血管通路:
  216. <div class="under_line" style="width: 200px;text-align: center;">
  217. <!-- {{ QueryPartById(predialysis.blood_access_part_id) }} -->
  218. {{predialysis.blood_access_part_id}}
  219. {{ predialysis.blood_access_part_opera_name }}
  220. </div>
  221. </div>
  222. <div class="inline_block" style="margin-left:10px;flex:1;">
  223. 内瘘:
  224. <div class="under_line" style="width: 170px;text-align: center;white-space: normal;">
  225. {{ predialysis.internal_fistula ? predialysis.internal_fistula : "/" }}
  226. </div>
  227. </div>
  228. <div class="inline_block" style="margin-left:10px;flex:1.8;">
  229. 导管:
  230. <div class="under_line" style="width: 150px;text-align: center">
  231. {{ predialysis.catheter ? predialysis.catheter : "/" }}
  232. </div>
  233. </div>
  234. </div>
  235. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  236. <div class="inline_block" style="flex:1;">
  237. 透析方式:
  238. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
  239. /
  240. </div>
  241. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 1">
  242. HD
  243. </div>
  244. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 2">
  245. HDF
  246. </div>
  247. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 3">
  248. HD+HP
  249. </div>
  250. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 4">
  251. HP
  252. </div>
  253. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 5">
  254. HF
  255. </div>
  256. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 6">
  257. SCUF
  258. </div>
  259. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 7">
  260. IUF
  261. </div>
  262. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 8">
  263. HFHD
  264. </div>
  265. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 9">
  266. HFHD+HP
  267. </div>
  268. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 10">
  269. PHF
  270. </div>
  271. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 11">
  272. HFR
  273. </div>
  274. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 12">
  275. HDF+HP
  276. </div>
  277. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 13">
  278. CRRT
  279. </div>
  280. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 14">
  281. 腹水回输
  282. </div>
  283. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 15">
  284. HD前置换
  285. </div>
  286. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 16">
  287. HD后置换
  288. </div>
  289. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 17">
  290. HDF前置换
  291. </div>
  292. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 18">
  293. HDF后置换
  294. </div>
  295. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 19">
  296. IUF+HD
  297. </div>
  298. </div>
  299. <div class="inline_block" style="margin-left:10px;flex:1;">
  300. 置换方式:
  301. <div class="under_line" style="width: 100px;text-align: center">
  302. {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }}
  303. </div>
  304. </div>
  305. <div class="inline_block" style="margin-left:10px;flex:1;">
  306. 置换量:
  307. <div class="under_line" style="width: 70px;text-align: center">
  308. {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
  309. </div>
  310. L
  311. </div>
  312. <div class="inline_block" style="margin-left:10px;flex:1;">
  313. 血流量:
  314. <div class="under_line" style="width: 50px;text-align: center">
  315. {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
  316. </div>
  317. ml/min
  318. </div>
  319. <div class="inline_block" style="margin-left:10px;flex:1;">
  320. 透析时间:
  321. <div class="under_line" style="width: 50px;text-align: center">
  322. {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "/" }}
  323. </div>
  324. h
  325. </div>
  326. </div>
  327. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  328. <div class="inline_block" style="flex:1;">
  329. 透析(滤)器:
  330. <div class="under_line" style="width: 100px;text-align: center">
  331. {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
  332. {{prescription.dialysis_dialyszers?prescription.dialysis_dialyszers:"/"}}
  333. </div>
  334. </div>
  335. <div class="inline_block" style="flex:1;">
  336. 灌流器:
  337. <div class="under_line" style="width: 70px;text-align: center">
  338. {{prescription.dialysis_irrigation?prescription.dialysis_irrigation:'/'}}
  339. </div>
  340. </div>
  341. <div class="inline_block" style="flex:1;">
  342. 干体重:
  343. <div class="under_line" style="width: 150px;text-align: center">
  344. {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}
  345. </div>
  346. kg
  347. </div>
  348. </div>
  349. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  350. <div class="inline_block" style="flex:1;">
  351. 上次透后体重:
  352. <div class="under_line" style="width: 100px;text-align: center">
  353. {{ lastafterdialysis.weight_after_last_transparency ? parseFloat(lastafterdialysis.weight_after - lastafterdialysis.additional_weight).toFixed(1) : "未称重" }}
  354. </div>
  355. kg
  356. </div>
  357. <div class="inline_block" style="flex:1;">
  358. 透前体重:
  359. <div class="under_line" style="width: 70px;text-align: center">
  360. {{ predialysis.weight_before ? parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1) : "/" }}
  361. </div>
  362. kg
  363. </div>
  364. <div class="inline_block" style="flex:1;">
  365. 计划超滤量:
  366. <div class="under_line" style="width: 150px;text-align: center">
  367. {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "/" }}
  368. </div>
  369. L
  370. </div>
  371. </div>
  372. <div class="row" style="padding: 2px 0;line-height:23px;">
  373. <div class="inline_block">
  374. 透析液成分钾:
  375. <div class="under_line" style="width: 50px;text-align: center">
  376. {{ prescription.kalium ? prescription.kalium : "/" }}
  377. </div>
  378. mmol/L
  379. </div>
  380. <div class="inline_block" style="margin-left:10px;">
  381. 钠:
  382. <div class="under_line" style="width: 50px;text-align: center;">
  383. {{ prescription.sodium ? prescription.sodium : "/" }}
  384. </div>
  385. mmol/L
  386. </div>
  387. <div class="inline_block" style="margin-left:10px;">
  388. 钙:
  389. <div class="under_line" style="width: 50px;text-align: center;">
  390. {{ prescription.calcium ? prescription.calcium : "/" }}
  391. </div>
  392. mmol/L
  393. </div>
  394. <div class="inline_block" style="margin-left:10px;">
  395. 碳酸氢根:
  396. <div class="under_line" style="width: 50px;text-align: center;">
  397. {{ prescription.bicarbonate ? prescription.bicarbonate : "/" }}
  398. </div>
  399. mmol/L
  400. </div>
  401. <div class="inline_block" style="margin-left:10px;">
  402. 流量:
  403. <div class="under_line" style="width: 50px;text-align: center;">
  404. {{ prescription.dialysate_flow ? prescription.dialysate_flow : "/" }}
  405. </div>
  406. ml/min
  407. </div>
  408. </div>
  409. <div class="row" style="padding: 2px 0;line-height:23px;">
  410. <div class="inline_block">
  411. 抗凝剂:
  412. <div class="under_line" style="width: 150px;text-align: center">
  413. {{ prescription.anticoagulant_name ? prescription.anticoagulant_name : "/" }}
  414. </div>
  415. </div>
  416. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant != 5">
  417. 首剂:
  418. <div class="under_line" style="width: 50px;text-align: center;">
  419. {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
  420. </div>
  421. <span v-if="prescription.anticoagulant == 4">mg</span>
  422. <span v-if="prescription.anticoagulant == 3">iu</span>
  423. <span v-if="prescription.anticoagulant == 2">iu</span>
  424. <span v-if="prescription.anticoagulant == 1">mg</span>
  425. </div>
  426. <div class="inline_block" style="margin-left:20px;">
  427. 维持:
  428. <div v-if="prescription.anticoagulant == 1" class="under_line" style="width: 50px;text-align: center;">
  429. {{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "/" }}
  430. </div>
  431. <div v-if="prescription.anticoagulant != 1" class="under_line" style="width: 50px;text-align: center;">
  432. {{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "0" }}
  433. </div>
  434. <span v-if="prescription.anticoagulant == 5">ml/h</span>
  435. <span v-if="prescription.anticoagulant == 4">mg/h</span>
  436. <span v-if="prescription.anticoagulant == 3">iu/h</span>
  437. <span v-if="prescription.anticoagulant == 2">iu/h</span>
  438. <span v-if="prescription.anticoagulant == 1">mg/h</span>
  439. </div>
  440. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant == 5">
  441. 钙名称:
  442. <div class="under_line" style="width: 150px;text-align: center;">
  443. {{ prescription.anticoagulant_gaimingcheng ? prescription.anticoagulant_gaimingcheng : "/" }}
  444. </div>
  445. </div>
  446. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant == 5">
  447. 钙剂量:
  448. <div class="under_line" style="width: 50px;text-align: center;">
  449. {{ prescription.anticoagulant_gaijiliang ? prescription.anticoagulant_gaijiliang : "/" }}
  450. </div>
  451. ml
  452. </div>
  453. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant != 5">
  454. 总量:
  455. <div class="under_line" style="width: 50px;text-align: center;">
  456. {{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/" }}
  457. </div>
  458. <span v-if="prescription.anticoagulant == 4">mg</span>
  459. <span v-if="prescription.anticoagulant == 3">iu</span>
  460. <span v-if="prescription.anticoagulant == 2">iu</span>
  461. <span v-if="prescription.anticoagulant == 1">mg</span>
  462. </div>
  463. <div class="inline_block" style="margin-left:20px;">
  464. 透析机号:
  465. <div class="under_line" style="width: 50px;text-align: center;">
  466. {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
  467. </div>
  468. </div>
  469. </div>
  470. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  471. <div class="inline_block" style="flex:1; display:inline-block;">
  472. 备注:
  473. <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
  474. {{ predialysis.remark ? predialysis.remark : "/" }}
  475. </div>
  476. </div>
  477. </div>
  478. </td>
  479. </tr>
  480. <tr>
  481. <td style="padding: 0; position: relative;" colspan="2">
  482. <table class="inside_table">
  483. <tbody>
  484. <tr>
  485. <td :colspan="prescription.mode_id == 2 || prescription.mode_id == 5 ? 12 : 11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  486. 治疗纪录
  487. </td>
  488. </tr>
  489. <tr>
  490. <td width="60">时间</td>
  491. <td width="60">血压<br />(mmHg)</td>
  492. <td width="50">脉搏<br />(次/分)</td>
  493. <td width="50">呼吸<br />(次/分)</td>
  494. <td width="50">血流量<br />(ml/min)</td>
  495. <td width="50">静脉压<br />({{monitors[0]&&monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
  496. <td width="50">跨膜压<br />({{monitors[0]&&monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
  497. <td width="60" v-if="org_id != 9836">透析液温度(°C)</td>
  498. <td width="60" v-if="org_id == 9836">体温(°C)</td>
  499. <td width="50">电导度<br />(ms/cm)</td>
  500. <td width="50">超滤量<br />(ml)</td>
  501. <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50">
  502. 置换量<br />(ml)
  503. </td>
  504. <td width="200" v-if="org_id == 9919">ktv</td>
  505. <td width="200">病情变化及处理</td>
  506. <!-- <td width="100">时间</td>
  507. <td width="30">T<br>C°</td>
  508. <td width="30">P<br/>次/分</td>
  509. <td width="30">R<br/>次/分</td>
  510. <td width="100">BP<br/>mmHg</td>
  511. <td width="60">静脉压/动脉压<br/>mmHg</td>
  512. <td width="80">血流量<br/>ml/min</td>
  513. <td width="90">超滤量累计L</td>
  514. <td width="80">钠浓度<br/>mmol/L</td>
  515. <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
  516. <td width="100">护士签名</td> -->
  517. </tr>
  518. <tr v-for="(monitor, monindex) in monitors" :key="monindex">
  519. <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  520. <td>
  521. {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
  522. {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
  523. </td>
  524. <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
  525. <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
  526. <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
  527. </td>
  528. <td>{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
  529. </td>
  530. <td>
  531. <span v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time ) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
  532. {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
  533. </span>
  534. <span v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
  535. {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }}
  536. </span>
  537. </td>
  538. <td v-if="org_id != 9836">{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
  539. <td v-if="org_id == 9836">{{ monitor.temperature ? monitor.temperature : "" }}</td>
  540. <td>{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}
  541. </td>
  542. <td v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
  543. {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
  544. </td>
  545. <td v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && ( dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
  546. {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : 0 }}
  547. </td>
  548. <td v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))" style="width:50px">
  549. {{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
  550. </td>
  551. <td v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time))" style="width:50px">
  552. {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
  553. </td>
  554. <td width="200" v-if="org_id == 9919">{{monitor.ktv}}</td>
  555. <td style="line-height:16px;padding:0px;">
  556. <div style="min-height:35px;line-height:35px; overflow:hidden;">
  557. <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
  558. <template v-if="(dialysisOrder && monitor.operate_time == dialysisOrder.start_time)">【开始透析】</template>
  559. {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
  560. </span>
  561. </div>
  562. </td>
  563. </tr>
  564. <tr v-for="(monitor, monindex) in monitors2" :key="monindex">
  565. <td></td>
  566. <td></td>
  567. <td></td>
  568. <td></td>
  569. <td></td>
  570. <td></td>
  571. <td></td>
  572. <td></td>
  573. <td></td>
  574. <td></td>
  575. <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50"></td>
  576. <td v-if="org_id == 9919"></td>
  577. <td style="line-height:16px;padding:0px;">
  578. <div style="height:40px;line-height:20px; overflow:hidden;">
  579. <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
  580. </span>
  581. </div>
  582. </td>
  583. </tr>
  584. </tbody>
  585. </table>
  586. </td>
  587. </tr>
  588. <tr>
  589. <td style="padding: 0; position: relative;" colspan="2">
  590. <table class="inside_table">
  591. <tbody>
  592. <tr style="line-height:35px;padding:8px 5px;">
  593. <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  594. 医嘱内容
  595. </td>
  596. </tr>
  597. <!-- <tr style="line-height:35px;padding:8px 5px;">
  598. <td colspan="4" style="font-size: 16px">开医嘱</td>
  599. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  600. </tr> -->
  601. <tr style="line-height:35px;padding:8px 5px;">
  602. <td style="font-size: 16px" width="10%">时间</td>
  603. <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
  604. <td style="font-size: 16px" width="10%">医生签名</td>
  605. <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
  606. <td style="font-size: 16px" width="10%">执行人签名</td>
  607. <td style="font-size: 16px" width="10%">时间</td>
  608. </tr>
  609. <!-- <template v-for="group in doctor_advices" > -->
  610. <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index">
  611. <td height="32px">
  612. <span v-if="advice.start_time">
  613. {{ getTime(advice.start_time, "{h}:{i}") }}
  614. </span>
  615. <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
  616. </td>
  617. <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
  618. <span v-if="advice.parent_id > 0">---></span>
  619. <span>{{ advice.advice_name }}</span>
  620. <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  621. <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
  622. <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  623. <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
  624. <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
  625. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
  626. </td>
  627. <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
  628. <span>{{advice.delivery_way}}</span>
  629. <span>{{advice.execution_frequency}}</span>
  630. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  631. </td> -->
  632. <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
  633. <td height="32px">
  634. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
  635. <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
  636. </td>
  637. <!-- <td height="35px">
  638. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  639. <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  640. </td> -->
  641. <td height="32px">
  642. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
  643. <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
  644. </td>
  645. <td height="32px">
  646. <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
  647. </td>
  648. </tr>
  649. <!-- </template> -->
  650. </tbody>
  651. </table>
  652. </td>
  653. </tr>
  654. </tbody>
  655. </table>
  656. </div>
  657. <template v-if="this.totollength > 13">
  658. <div style="display:inline-block;width:100%;text-align:center;">
  659. <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
  660. {{ orgname }}
  661. </div>
  662. <div class="order-title" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
  663. 血液净化治疗记录单
  664. </div>
  665. </div>
  666. <div class="row">
  667. <div class="inline_block">
  668. 姓名:
  669. <div class="under_line" style="width: 50px;text-align: center;">
  670. {{ patientInfo.name }}
  671. </div>
  672. </div>
  673. <div class="inline_block" style="margin-left: 10px;">
  674. 性别:
  675. <div class="under_line" style="width: 30px;text-align: center;">
  676. {{ patientInfo_gender_1 ? "男" : "女" }}
  677. </div>
  678. </div>
  679. <div class="inline_block" style="margin-left: 10px;">
  680. 年龄:
  681. <div class="under_line" style="width: 30px;text-align: center;">
  682. {{ getAge(patientInfo) }}
  683. </div>
  684. </div>
  685. <div class="inline_block">
  686. 门诊:
  687. <div class="under_line" style="width: 30px;text-align: center;">
  688. <check-box :checked="patientInfo_source_1"></check-box>
  689. </div>
  690. </div>
  691. <div class="inline_block">
  692. 病区:
  693. <div class="under_line" style="width: 50px;text-align: center;">
  694. {{ "/" }}
  695. </div>
  696. </div>
  697. <div class="inline_block">
  698. 床号:
  699. <div class="under_line" style="width: 50px;text-align: center;">
  700. {{ "/" }}
  701. </div>
  702. </div>
  703. <div class="inline_block">
  704. 透析号:
  705. <div class="under_line" style="width: 70px;text-align: center;">
  706. {{ patientInfo.dialysis_no }}
  707. </div>
  708. </div>
  709. <div class="inline_block" style="margin-left: 5px;">
  710. 住院号/门诊号:
  711. <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
  712. {{ patientInfo.admission_number }}
  713. </div>
  714. <div class="under_line" style="width: 70px;text-align: left" v-else>
  715. {{ "/" }}
  716. </div>
  717. </div>
  718. </div>
  719. <div class="row" style="margin-bottom:10px;">
  720. <div class="inline_block">
  721. 入科方式:
  722. <!--<check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>-->
  723. <div v-for="(item, index) in way_arr" class="under_line" v-if="receiverTreatmentAccess.way == item.id" style="width: 180px;text-align: left">
  724. {{ item.name }}
  725. </div>
  726. <!--<div-->
  727. <!--class="under_line"-->
  728. <!--v-if="receiverTreatmentAccess.way == 0"-->
  729. <!--style="width: 180px;text-align: left"-->
  730. <!--&gt;</div>-->
  731. <!--<div-->
  732. <!--class="under_line"-->
  733. <!--v-if="receiverTreatmentAccess.way == 1"-->
  734. <!--style="width: 180px;text-align: left"-->
  735. <!--&gt;-->
  736. <!--步行-->
  737. <!--</div>-->
  738. <!--<div-->
  739. <!--class="under_line"-->
  740. <!--v-if="receiverTreatmentAccess.way == 2"-->
  741. <!--style="width: 180px;text-align: left"-->
  742. <!--&gt;-->
  743. <!--扶行-->
  744. <!--</div>-->
  745. <!--<div-->
  746. <!--class="under_line"-->
  747. <!--v-if="receiverTreatmentAccess.way == 3"-->
  748. <!--style="width: 180px;text-align: left"-->
  749. <!--&gt;-->
  750. <!--轮椅-->
  751. <!--</div>-->
  752. <!--<div-->
  753. <!--class="under_line"-->
  754. <!--v-if="receiverTreatmentAccess.way == 4"-->
  755. <!--style="width: 180px;text-align: left"-->
  756. <!--&gt;-->
  757. <!--平车-->
  758. <!--</div>-->
  759. </div>
  760. <div class="inline_block" style="margin-left: 10px;">
  761. 诊断:
  762. <div class="under_line" style="width: 640px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;">
  763. {{ patientInfo.diagnose }}
  764. </div>
  765. </div>
  766. </div>
  767. </template>
  768. <div class="row" style="margin-top:-11px;position: relative;">
  769. <table class="proj_table">
  770. <tbody>
  771. <template v-if="doctor_advices_2.length > 0">
  772. <tr style="line-height:35px;padding:8px 5px;">
  773. <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  774. 医嘱内容
  775. </td>
  776. </tr>
  777. <!-- <tr style="line-height:35px;padding:8px 5px;">
  778. <td colspan="4" style="font-size: 16px">开医嘱</td>
  779. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  780. </tr> -->
  781. <tr style="line-height:35px;padding:8px 5px;">
  782. <td style="font-size: 16px" width="10%">时间</td>
  783. <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
  784. <td style="font-size: 16px" width="10%">医生签名</td>
  785. <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
  786. <td style="font-size: 16px" width="10%">执行人签名</td>
  787. <td style="font-size: 16px" width="10%">时间</td>
  788. </tr>
  789. <!-- <template v-for="group in doctor_advices" > -->
  790. <tr v-for="(advice, advice_index) in doctor_advices_2" :key="advice_index">
  791. <td height="32px">
  792. <span v-if="advice.start_time">
  793. {{ getTime(advice.start_time, "{h}:{i}") }}
  794. </span>
  795. <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
  796. </td>
  797. <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
  798. <span v-if="advice.parent_id > 0">---></span>
  799. <span>{{ advice.advice_name }}</span>
  800. <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  801. <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
  802. <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  803. <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
  804. <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
  805. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
  806. </td>
  807. <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
  808. <span>{{advice.delivery_way}}</span>
  809. <span>{{advice.execution_frequency}}</span>
  810. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  811. </td> -->
  812. <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
  813. <td height="32px">
  814. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
  815. <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
  816. </td>
  817. <!-- <td height="35px">
  818. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  819. <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  820. </td> -->
  821. <td height="32px">
  822. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
  823. <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
  824. </td>
  825. <td height="32px">
  826. <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
  827. </td>
  828. </tr>
  829. </template>
  830. <tr>
  831. <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  832. 透析后情况
  833. </td>
  834. </tr>
  835. <tr>
  836. <td colspan="7">
  837. <div class="row" style="padding: 2px 0;line-height:23px; display:flex;">
  838. <div class="inline_block" style="flex:1;">
  839. T:
  840. <div class="under_line" style="width: 50px;text-align: center">
  841. {{ afterdialysis.temperature ? afterdialysis.temperature : "/" }}
  842. </div>
  843. °C
  844. </div>
  845. <div class="inline_block" style="margin-left:10px;flex:1;">
  846. P:
  847. <div class="under_line" style="width: 50px;text-align: center;">
  848. {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "/" }}
  849. </div>
  850. 次/分
  851. </div>
  852. <div class="inline_block" style="margin-left:10px;flex:1;">
  853. R:
  854. <div class="under_line" style="width: 50px;text-align: center;">
  855. {{ afterdialysis.breathing_rate ? afterdialysis.breathing_rate : "/" }}
  856. </div>
  857. 次/分
  858. </div>
  859. <div class="inline_block" style="margin-left:10px;flex:1.5;">
  860. BP:
  861. <div class="under_line" style="width: 50px;text-align: center;">
  862. {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "/" }}
  863. </div>
  864. /
  865. <div class="under_line" style="width: 50px;text-align: center;">
  866. {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "/" }}
  867. </div>
  868. mmHg
  869. </div>
  870. <div class="inline_block" style="flex:1.5;">
  871. 实际治疗时间:
  872. <div class="under_line" style="width: 30px;text-align: center">
  873. {{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "/" }}
  874. </div>
  875. h
  876. <div class="under_line" style="width: 30px;text-align: center">
  877. {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}
  878. </div>
  879. min
  880. </div>
  881. </div>
  882. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  883. <div class="inline_block" style="flex:2.5;">
  884. 透析器凝血:
  885. <div class="under_line" style="width:170px;text-align:center;white-space: normal;">
  886. {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
  887. </div>
  888. </div>
  889. <div class="inline_block" style="flex:2;">
  890. 内瘘:
  891. <div class="under_line" style="width: 170px;text-align: center;white-space: normal;">
  892. {{ afterdialysis.internal_fistula ? afterdialysis.internal_fistula : "/" }}
  893. </div>
  894. </div>
  895. <div class="inline_block" style="flex:4;">
  896. 导管:
  897. <div class="under_line" style="min-width: 120px;text-align: center">
  898. {{ afterdialysis.catheter ? afterdialysis.catheter : "/" }}
  899. </div>
  900. </div>
  901. </div>
  902. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  903. <div class="inline_block" style="flex:1;">
  904. 透后体重:
  905. <div class="under_line" style="width: 70px;text-align: center">
  906. {{ afterdialysis.weight_after ? parseFloat(afterdialysis.weight_after - afterdialysis.additional_weight).toFixed(1) : "/" }}
  907. </div>
  908. kg
  909. </div>
  910. <div class="inline_block" style="flex:1;">
  911. 体重减少:
  912. <div class="under_line" style="width: 70px;text-align: center">
  913. {{ afterdialysis.weight_loss ? afterdialysis.weight_loss : "/" }}
  914. </div>
  915. kg
  916. </div>
  917. <div class="inline_block" style="flex:1;">
  918. 透析中入量:
  919. <div class="under_line" style="width: 70px;text-align: center">
  920. {{ afterdialysis.dialysis_intakes ? afterdialysis.dialysis_intakes : "/" }}
  921. </div>
  922. {{ getUnit(afterdialysis.dialysis_intakes_unit) }}
  923. </div>
  924. <div class="inline_block" style="flex:1;">
  925. 实际超滤量:
  926. <div class="under_line" style="width: 70px;text-align: center">
  927. {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
  928. </div>
  929. ml
  930. </div>
  931. </div>
  932. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  933. <div class="inline_block" style="flex:1; display:inline-block;">
  934. 治疗小结:
  935. <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
  936. {{ summary.dialysis_summary ? summary.dialysis_summary : "/" }}
  937. </div>
  938. </div>
  939. </div>
  940. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  941. <div class="inline_block" style="flex:1; display:inline-block;">
  942. 备注:
  943. <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
  944. {{ afterdialysis.remark ? afterdialysis.remark : "/" }}
  945. </div>
  946. </div>
  947. </div>
  948. </td>
  949. </tr>
  950. <tr>
  951. <td colspan="7">
  952. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  953. <div class="inline_block" style="flex:1;">
  954. 穿刺护士:
  955. <div class="under_line" style="width: 80px;text-align: center">
  956. <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">
  957. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) }}</span>
  958. <img style="height:20px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt="" srcset="" v-else />
  959. </div>
  960. </div>
  961. <div class="inline_block" style="flex:1;">
  962. 治疗护士:
  963. <div class="under_line" style="width: 80px;text-align: center">
  964. <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
  965. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) }}</span>
  966. <img style="height:20px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
  967. </div>
  968. </div>
  969. <div class="inline_block" style="flex:1;">
  970. 核对人员:
  971. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
  972. <span v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
  973. {{ getAdminUser(check == null ? 0 : check.creater) }}
  974. </span>
  975. <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
  976. </div>
  977. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
  978. <span v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
  979. {{ getAdminUser(check == null ? 0 : check.creater) }}
  980. </span>
  981. <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
  982. </div>
  983. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
  984. <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
  985. {{ getAdminUser(check == null ? 0 : check.modifier) }}
  986. </span>
  987. <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" v-else />
  988. </div>
  989. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
  990. <span v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
  991. {{ getAdminUser(check == null ? 0 : check.creater) }}
  992. </span>
  993. <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
  994. </div>
  995. </div>
  996. <div class="inline_block" style="flex:1;">
  997. 下机护士:
  998. <div class="under_line" style="width: 80px;text-align: center">
  999. <span v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
  1000. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}
  1001. </span>
  1002. <img style="height:20px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
  1003. </div>
  1004. </div>
  1005. <div class="inline_block" style="flex:1;">
  1006. 治疗医生:
  1007. <div class="under_line" style="width: 80px;text-align: center">
  1008. <span v-if="setAdminUserES(prescription.creater) == ''">
  1009. {{ getAdminUser(prescription.creater) }}
  1010. </span>
  1011. <img style="height:20px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else />
  1012. </div>
  1013. </div>
  1014. </div>
  1015. </td>
  1016. </tr>
  1017. </tbody>
  1018. </table>
  1019. <!-- <div class="print-yema">1</div> -->
  1020. </div>
  1021. </div>
  1022. </div>
  1023. </template>
  1024. <script>
  1025. import CheckBox from '../batch_print/option_check_box'
  1026. import { getDialysisRecord } from '@/api/dialysis'
  1027. import { getDataConfig } from '@/utils/data'
  1028. import { jsGetAge, uParseTime } from '@/utils/tools'
  1029. import LabelBox from '../printItem/LabelBox'
  1030. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  1031. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  1032. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  1033. import print from 'print-js'
  1034. export default {
  1035. name: 'dialysisPrintOrderSix',
  1036. props: ['childResponse'],
  1037. components: {
  1038. // DialysisPrintOrderOne,
  1039. // DialysisPrintOrderTwo,
  1040. CheckBox,
  1041. LabelBox,
  1042. BreadCrumb
  1043. },
  1044. data() {
  1045. return {
  1046. way_arr: [],
  1047. consciousness_arr: [],
  1048. appetite_arr: [],
  1049. posture_arr: [],
  1050. sick_condition_arr: [],
  1051. precaution_arr: [],
  1052. intake_arr: [],
  1053. nutrition_arr: [],
  1054. crumbs: [
  1055. { path: false, name: '透析管理' },
  1056. { path: false, name: '打印单' }
  1057. ],
  1058. operators: [],
  1059. adminUser: [],
  1060. check: {},
  1061. xtdate: '',
  1062. dialysisOrder: {
  1063. DeviceNumber: []
  1064. },
  1065. displaceLiquiPartOptions: [],
  1066. operatorMaps: {},
  1067. complications: [
  1068. '低血压',
  1069. '高血压',
  1070. '心律失常',
  1071. '头晕',
  1072. '头痛',
  1073. '呕吐',
  1074. '抽搐',
  1075. '出血',
  1076. '心衰',
  1077. '腹痛'
  1078. ],
  1079. jilurow: 0,
  1080. advice_jilurow: 0,
  1081. loading: false,
  1082. orgname: '',
  1083. patientInfo_gender_1: false,
  1084. patientInfo_gender_2: false,
  1085. patientInfo_source_2: false,
  1086. patientInfo_source_1: false,
  1087. modeOptions: {},
  1088. replacementWays: [],
  1089. perfusionApparatus: [],
  1090. anticoagulantsConfit: {},
  1091. bloodAccessParOpera: {},
  1092. dialysateFormulationOptions: {},
  1093. totollength: 0,
  1094. queryParams: {
  1095. xtdate: '',
  1096. xtno: ''
  1097. },
  1098. patientInfo: {
  1099. birth: '',
  1100. age: '',
  1101. DialysisSchedule: {
  1102. device_number: { number: '' },
  1103. device_zone: { name: '' }
  1104. },
  1105. gender: 0
  1106. },
  1107. predialysis: {
  1108. score: '',
  1109. internal_fistula: '',
  1110. internal_fistula_skin: '',
  1111. catheter: '',
  1112. blood_access_part_opera_name: ''
  1113. },
  1114. afterdialysis: {
  1115. complications_index: ''
  1116. },
  1117. lastafterdialysis: {},
  1118. prescription: {
  1119. dialysate_formulation_name: '',
  1120. device: {}
  1121. },
  1122. advices: [],
  1123. users: [],
  1124. monitors: [],
  1125. monitors2: [],
  1126. summary: {},
  1127. receiverTreatmentAccess: {},
  1128. org_template_info: {},
  1129. doctor_advices: [],
  1130. doctor_advices_2: [],
  1131. advice_groups: [],
  1132. advice_groups_2: [],
  1133. print_length: 0,
  1134. blood_access_part: [],
  1135. blood_access_part_opera: [],
  1136. AlPanel: {
  1137. id: 0,
  1138. name: '',
  1139. type: 1,
  1140. shouji: 2,
  1141. weichi: 2,
  1142. zongliang: 2,
  1143. gaimingcheng: -1,
  1144. gaijiliang: -1,
  1145. shouji_unit: 'mg',
  1146. weichi_unit: 'mg/h',
  1147. zongliang_unit: 'mg',
  1148. gaimingcheng_unit: '',
  1149. gaijiliang_unit: ''
  1150. },
  1151. org_id:0,
  1152. }
  1153. },
  1154. methods: {
  1155. getDisplaceLiquiPart: function(val) {
  1156. let displace_liqui_part_name = '/'
  1157. const displace_liqui_part = this.displaceLiquiPartOptions
  1158. for (let i = 0; i < displace_liqui_part.length; i++) {
  1159. if (displace_liqui_part[i].id == val) {
  1160. displace_liqui_part_name = displace_liqui_part[i].name
  1161. }
  1162. }
  1163. return displace_liqui_part_name
  1164. },
  1165. replacementWaysById: function(val) {
  1166. let replacementWaysname = '/'
  1167. // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  1168. for (let i = 0; i < this.replacementWays.length; i++) {
  1169. if (this.replacementWays[i].id == val) {
  1170. replacementWaysname = this.replacementWays[i].name
  1171. }
  1172. }
  1173. return replacementWaysname
  1174. },
  1175. QueryPartById: function(val) {
  1176. let vascular_access_part_name = '/'
  1177. const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  1178. for (let i = 0; i < vascular_access.length; i++) {
  1179. if (vascular_access[i].id == val) {
  1180. vascular_access_part_name = vascular_access[i].name
  1181. }
  1182. }
  1183. return vascular_access_part_name
  1184. },
  1185. getAdminUser(id) {
  1186. if (id == 0) {
  1187. return ''
  1188. }
  1189. if (id == undefined) {
  1190. return ''
  1191. }
  1192. for (let i = 0; i < this.adminUser.length; i++) {
  1193. if (this.adminUser[i].id == id) {
  1194. return this.adminUser[i].name
  1195. }
  1196. }
  1197. },
  1198. getTime(value, temp) {
  1199. if (value == 0) {
  1200. return ''
  1201. }
  1202. if (value != undefined) {
  1203. return uParseTime(value, temp)
  1204. }
  1205. return ''
  1206. },
  1207. getUnit: function(val) {
  1208. switch (val) {
  1209. case 1:
  1210. return 'g'
  1211. break
  1212. case 2:
  1213. return 'ml'
  1214. break
  1215. }
  1216. },
  1217. printThisPage() {
  1218. var ptime = Math.round(new Date().getTime() / 1000)
  1219. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  1220. const style =
  1221. '@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}.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:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .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;}'
  1222. if (this.org_template_info.template_id == 1) {
  1223. printJS({
  1224. printable: 'dialysis-print-box',
  1225. type: 'html',
  1226. style: style,
  1227. scanStyles: false
  1228. })
  1229. } else if (
  1230. this.org_template_info.template_id == 2 ||
  1231. this.org_template_info.template_id == 0
  1232. ) {
  1233. printJS({
  1234. printable: 'dialysis-print-box-1',
  1235. type: 'html',
  1236. style: style,
  1237. scanStyles: false
  1238. })
  1239. }
  1240. },
  1241. getNumber() {
  1242. if (this.dialysisOrder != null) {
  1243. return (
  1244. this.patientInfo.DialysisSchedule.device_zone.name +
  1245. this.dialysisOrder.DeviceNumber.number
  1246. )
  1247. } else {
  1248. return (
  1249. this.patientInfo.DialysisSchedule.device_zone.name +
  1250. this.patientInfo.DialysisSchedule.device_number.number
  1251. )
  1252. }
  1253. },
  1254. getXuserName(id) {
  1255. if (id <= 0) {
  1256. return ''
  1257. }
  1258. var name = ''
  1259. if (this.users == null || typeof this.users.length === 'undefined') {
  1260. return name
  1261. }
  1262. var leng = this.users.length
  1263. if (leng == 0) {
  1264. return name
  1265. }
  1266. for (let index = 0; index < leng; index++) {
  1267. if (this.users[index].id == id) {
  1268. name = this.users[index].name
  1269. break
  1270. }
  1271. }
  1272. return name
  1273. },
  1274. setAdminUserES(id) {
  1275. if (id == 0) {
  1276. return ''
  1277. }
  1278. if (id in this.operatorMaps) {
  1279. return this.operatorMaps[id].url
  1280. } else {
  1281. return ''
  1282. }
  1283. },
  1284. modeName(mode_id) {
  1285. return typeof this.modeOptions[mode_id] !== 'undefined' &&
  1286. typeof this.modeOptions[mode_id].name !== 'undefined'
  1287. ? this.modeOptions[mode_id].name
  1288. : ''
  1289. },
  1290. getDialysisRecord() {
  1291. this.loading = true
  1292. // getDialysisRecord(this.queryParams).then(response => {
  1293. var response = this.childResponse
  1294. if (response.data.state == 1) {
  1295. this.adminUser = response.data.data.users
  1296. this.users = response.data.data.users
  1297. this.patientInfo = response.data.data.patientInfo
  1298. this.patientInfo.birth = uParseTime(
  1299. this.patientInfo.birthday,
  1300. '{y}-{m}-{d}'
  1301. )
  1302. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1303. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1304. this.patientInfo.first_dialysis_date = uParseTime(
  1305. response.data.data.patientInfo.first_dialysis_date,
  1306. '{y}-{m}-{d}'
  1307. )
  1308. } else {
  1309. this.patientInfo.first_dialysis_date = ''
  1310. }
  1311. this.check = response.data.data.check
  1312. this.xtdate = response.data.data.xtdate
  1313. this.predialysis = response.data.data.PredialysisEvaluation
  1314. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1315. this.predialysis.blood_access_part_opera_id
  1316. )
  1317. this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1318. // console.log('透后体重', this.afterdialysis)
  1319. this.lastafterdialysis = response.data.data.assessmentAfterDislysis
  1320. this.operators = response.data.data.operators
  1321. console.log('operators', this.operators)
  1322. this.dialysisOrder =
  1323. response.data.data.dialysisOrder === null
  1324. ? null
  1325. : response.data.data.dialysisOrder
  1326. if (this.operators.length > 0) {
  1327. var operatorsLen = this.operators.length
  1328. for (var index = 0; index < operatorsLen; index++) {
  1329. this.$set(
  1330. this.operatorMaps,
  1331. this.operators[index].creator,
  1332. this.operators[index]
  1333. )
  1334. }
  1335. }
  1336. this.afterdialysis.txqnx = -1
  1337. if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1338. this.afterdialysis.txqnx = 0
  1339. }
  1340. if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1341. this.afterdialysis.txqnx = 1
  1342. }
  1343. if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1344. this.afterdialysis.txqnx = 2
  1345. }
  1346. if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1347. this.afterdialysis.txqnx = 3
  1348. }
  1349. this.afterdialysis.complications = this.afterdialysis.complication.split(
  1350. ','
  1351. )
  1352. this.afterdialysis.complications_other = []
  1353. this.afterdialysis.complications_index = []
  1354. var acllen = this.afterdialysis.complications.length
  1355. for (let index = 0; index < acllen; index++) {
  1356. if (
  1357. this.complications.indexOf(
  1358. this.afterdialysis.complications[index]
  1359. ) >= 0
  1360. ) {
  1361. this.afterdialysis.complications_index.push(
  1362. this.afterdialysis.complications[index]
  1363. )
  1364. } else if (
  1365. this.complications.indexOf(
  1366. this.afterdialysis.complications[index]
  1367. ) < 0 &&
  1368. this.afterdialysis.complications_other.indexOf(
  1369. this.afterdialysis.complications[index]
  1370. ) < 0
  1371. ) {
  1372. this.afterdialysis.complications_other.push(
  1373. this.afterdialysis.complications[index]
  1374. )
  1375. }
  1376. }
  1377. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  1378. ','
  1379. )
  1380. this.prescription = response.data.data.dialysisPrescription
  1381. console.log('透析处方', this.prescription)
  1382. this.receiverTreatmentAccess =
  1383. response.data.data.receiverTreatmentAccess
  1384. this.prescription.mode = this.modeName(this.prescription.mode_id)
  1385. var rwLen = this.replacementWays.length
  1386. this.prescription.replacement = ''
  1387. for (let index = 0; index < rwLen; index++) {
  1388. if (
  1389. this.replacementWays[index].id == this.prescription.replacement_way
  1390. ) {
  1391. this.prescription.replacement = this.replacementWays[index].name
  1392. break
  1393. }
  1394. }
  1395. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1396. this.prescription.dialysate_formulation
  1397. )
  1398. var paLen = this.perfusionApparatus.length
  1399. this.prescription.perfusion_apparatus_name = ''
  1400. for (let index = 0; index < paLen; index++) {
  1401. if (
  1402. this.perfusionApparatus[index].id ==
  1403. this.prescription.perfusion_apparatus
  1404. ) {
  1405. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1406. index
  1407. ].name
  1408. break
  1409. }
  1410. }
  1411. var acLen = this.anticoagulantsConfit.length
  1412. var thisALID = this.prescription.anticoagulant
  1413. this.prescription.anticoagulant_name = ''
  1414. if (
  1415. typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
  1416. this.anticoagulantsConfit[thisALID] != null
  1417. ) {
  1418. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1419. thisALID
  1420. ].name
  1421. this.AlPanel = this.anticoagulantsConfit[thisALID]
  1422. }
  1423. this.advices = response.data.data.advices
  1424. console.log("医嘱数据2222222222",this.advices)
  1425. this.monitors = response.data.data.monitors
  1426. this.summary = response.data.data.summary
  1427. this.org_template_info = response.data.data.org_template_info
  1428. if (this.monitors.length <= 6) {
  1429. var nl = 6
  1430. this.print_length = 6
  1431. for (let index = 0; index < nl; index++) {
  1432. if (
  1433. this.monitors[index] == undefined ||
  1434. this.monitors[index].length <= 0
  1435. ) {
  1436. this.monitors2.push([])
  1437. } else {
  1438. continue
  1439. }
  1440. }
  1441. }
  1442. var tempmonitorflag = true
  1443. for (let index = 0; index < this.monitors.length; index++) {
  1444. const monitor = this.monitors[index]
  1445. this.monitors[index].end = ''
  1446. if (Object.keys(monitor).length > 0 && index > 1) {
  1447. if (this.dialysisOrder && monitor.operate_time == this.dialysisOrder.end_time) {
  1448. this.monitors[index].end = '【结束透析】'
  1449. tempmonitorflag = false
  1450. }
  1451. if (tempmonitorflag && index == this.monitors.length - 1) {
  1452. this.monitors[index].end = '【结束透析】'
  1453. }
  1454. }
  1455. }
  1456. this.jilurow = this.monitors.length + 1
  1457. this.advice_jilurow = this.advices.length + 1
  1458. var childMap = {}
  1459. for (const index in this.advices) {
  1460. if (this.advices[index].parent_id == 0) {
  1461. continue
  1462. }
  1463. if (!(this.advices[index].parent_id in childMap)) {
  1464. childMap[this.advices[index].parent_id] = []
  1465. }
  1466. childMap[this.advices[index].parent_id].push(this.advices[index])
  1467. }
  1468. var advices = []
  1469. for (const index in this.advices) {
  1470. if (this.advices[index].parent_id > 0) {
  1471. continue
  1472. }
  1473. var item = this.advices[index]
  1474. if (item.id in childMap) {
  1475. item.children = childMap[item.id]
  1476. } else {
  1477. item.children = []
  1478. }
  1479. advices.push(item)
  1480. }
  1481. var leftAdvice = []
  1482. var rightAdvice = []
  1483. var adlen = advices.length
  1484. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1485. for (var i = 0; i < halfLen; i++) {
  1486. leftAdvice.push(advices[i])
  1487. rightAdvice.push(advices[i + halfLen])
  1488. }
  1489. if (halfLen < 5) {
  1490. var nl = 5 - leftAdvice.length
  1491. for (let index = 0; index < nl; index++) {
  1492. leftAdvice.push([])
  1493. }
  1494. var nl = 5 - rightAdvice.length
  1495. for (let index = 0; index < nl; index++) {
  1496. rightAdvice.push([])
  1497. }
  1498. }
  1499. this.advices = []
  1500. for (var i = 0; i < halfLen; i++) {
  1501. var item = []
  1502. item.push(leftAdvice[i])
  1503. item.push(rightAdvice[i])
  1504. this.advices.push(item)
  1505. }
  1506. this.loading = false
  1507. this.doctor_advices =
  1508. response.data.data.advices == null ? [] : response.data.data.advices
  1509. for (let index = 0; index < this.doctor_advices.length; index++) {
  1510. this.doctor_advices[index]['isShow'] = 2
  1511. }
  1512. // if (this.doctor_advices.length > 0) {
  1513. // var group = this.newAdviceGroupObject()
  1514. // var initGroupBlock = function(group, advice) {
  1515. // group.group_no = advice.groupno
  1516. // }
  1517. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  1518. // var new_advice_index = 0
  1519. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  1520. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  1521. // var doctor_advice = {
  1522. // delivery_way: this.doctor_advices[index].delivery_way,
  1523. // execution_frequency: this.doctor_advices[index].execution_frequency,
  1524. // groupno: this.doctor_advices[index].groupno,
  1525. // id: this.doctor_advices[index].id,
  1526. // parent_id: this.doctor_advices[index].parent_id,
  1527. // children: this.doctor_advices[index].children,
  1528. // remark: this.doctor_advices[index].remark,
  1529. // execution_staff: this.doctor_advices[index].execution_staff,
  1530. // checker: this.doctor_advices[index].checker,
  1531. // execution_time: this.doctor_advices[index].execution_time,
  1532. // advice_doctor: this.doctor_advices[index].advice_doctor
  1533. // }
  1534. // doctor_advice['isShow'] = 1
  1535. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1536. // // this.doctor_advices.push(doctor_advice)
  1537. // }
  1538. // }
  1539. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1540. // const advice = this.doctor_advices[index]
  1541. // if (advice.groupno == 0) {
  1542. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1543. // if (advice.parent_id > 0) {
  1544. // if (this.advice_groups.length > 0) {
  1545. // var parent_group = this.advice_groups[
  1546. // this.advice_groups.length - 1
  1547. // ]
  1548. // if (parent_group.advices.length > 0) {
  1549. // if (parent_group.advices[0].id == advice.parent_id) {
  1550. // parent_group.advices.push(advice)
  1551. // }
  1552. // }
  1553. // }
  1554. // continue
  1555. // } else {
  1556. // if (group.group_no > 0) {
  1557. // this.advice_groups.push(group)
  1558. // group = this.newAdviceGroupObject()
  1559. // }
  1560. // initGroupBlock(group, advice)
  1561. // group.advices.push(advice)
  1562. // this.advice_groups.push(group)
  1563. // group = this.newAdviceGroupObject()
  1564. // continue
  1565. // }
  1566. // }
  1567. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  1568. // this.advice_groups.push(group)
  1569. // group = this.newAdviceGroupObject()
  1570. // }
  1571. // if (group.group_no == 0) {
  1572. // initGroupBlock(group, advice)
  1573. // }
  1574. // if (group.group_no == advice.groupno) {
  1575. // group.advices.push(advice)
  1576. // }
  1577. // }
  1578. // if (group.group_no > 0) {
  1579. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1580. // this.advice_groups.push(group)
  1581. // }
  1582. // }
  1583. if (this.doctor_advices.length <= 6) {
  1584. var nl = 6
  1585. this.print_length = 6
  1586. for (let index = 0; index < nl; index++) {
  1587. if (
  1588. this.doctor_advices[index] == undefined ||
  1589. this.doctor_advices[index].length <= 0
  1590. ) {
  1591. this.doctor_advices.push([])
  1592. } else {
  1593. continue
  1594. }
  1595. }
  1596. }
  1597. this.totollength = this.doctor_advices.length + this.monitors.length
  1598. if (this.totollength > 18) {
  1599. var temp_advice_length = 17 - this.monitors.length
  1600. var doctor_advices_1 = []
  1601. var doctor_advices_2 = []
  1602. for (let index = 0; index < this.doctor_advices.length; index++) {
  1603. const element = this.doctor_advices[index]
  1604. if (temp_advice_length > index) {
  1605. doctor_advices_1.push(element)
  1606. } else {
  1607. doctor_advices_2.push(element)
  1608. }
  1609. }
  1610. this.doctor_advices = doctor_advices_1
  1611. this.doctor_advices_2 = doctor_advices_2
  1612. }
  1613. console.log(this.advice_groups)
  1614. } else {
  1615. this.loading = false
  1616. this.$message.error('请求数据失败')
  1617. return false
  1618. }
  1619. // })
  1620. },
  1621. bloodAccessParOperaName(id) {
  1622. if (id in this.bloodAccessParOpera) {
  1623. return this.bloodAccessParOpera[id].name
  1624. }
  1625. return ''
  1626. },
  1627. dialysateFormulationName(id) {
  1628. if (id in this.dialysateFormulationOptions) {
  1629. return this.dialysateFormulationOptions[id].name
  1630. }
  1631. return ''
  1632. },
  1633. getAge: function(val) {
  1634. if (
  1635. this.org_template_info.template_id == 2 ||
  1636. this.org_template_info.template_id == 0
  1637. ) {
  1638. if (val.age == 0) {
  1639. return jsGetAge(val.birth, '-')
  1640. } else {
  1641. return val.age
  1642. }
  1643. } else {
  1644. return jsGetAge(val.birth, '-')
  1645. }
  1646. },
  1647. newAdviceGroupObject: function() {
  1648. return Object.assign(
  1649. {},
  1650. {
  1651. group_no: 0,
  1652. // advice_doctor: 0,
  1653. // start_time: 0,
  1654. advices: []
  1655. // exec_staff: 0,
  1656. // exec_time: 0,
  1657. // checker: 0,
  1658. }
  1659. )
  1660. },
  1661. getFloat: function(x) {
  1662. if (x == 0) {
  1663. return '/'
  1664. }
  1665. if (x != '.') {
  1666. var f = Math.round(x * 100) / 100
  1667. var s = f.toString()
  1668. var rs = s.indexOf('.')
  1669. if (rs <= 0) {
  1670. rs = s.length
  1671. s += '.'
  1672. }
  1673. while (s.length <= rs + 1) {
  1674. s += '0'
  1675. }
  1676. return s
  1677. } else {
  1678. return '0.0'
  1679. }
  1680. }
  1681. },
  1682. watch: {
  1683. 'patientInfo.gender': function() {
  1684. if (this.patientInfo.gender == 1) {
  1685. this.patientInfo_gender_1 = true
  1686. this.patientInfo_gender_2 = false
  1687. } else if (this.patientInfo.gender == 2) {
  1688. this.patientInfo_gender_2 = true
  1689. this.patientInfo_gender_1 = false
  1690. } else {
  1691. this.patientInfo_gender_2 = false
  1692. this.patientInfo_gender_1 = false
  1693. }
  1694. },
  1695. 'patientInfo.source': function() {
  1696. if (this.patientInfo.source == 1) {
  1697. this.patientInfo_source_1 = true
  1698. this.patientInfo_source_2 = false
  1699. } else if (this.patientInfo.source == 2) {
  1700. this.patientInfo_source_2 = true
  1701. this.patientInfo_source_1 = false
  1702. } else {
  1703. this.patientInfo_source_2 = false
  1704. this.patientInfo_source_1 = false
  1705. }
  1706. }
  1707. },
  1708. created() {
  1709. this.way_arr = getDataConfig('hemodialysis', 'way')
  1710. this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
  1711. this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
  1712. this.posture_arr = getDataConfig('hemodialysis', 'posture')
  1713. this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
  1714. this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
  1715. this.intake_arr = getDataConfig('hemodialysis', 'intake')
  1716. this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
  1717. var xtuser = this.$store.getters.xt_user
  1718. this.orgname = xtuser.org.org_name
  1719. // this.orgname = "遂溪方济医院";
  1720. this.modeOptions = this.$store.getters.treatment_mode
  1721. this.replacementWays = this.$store.getters.replacement_ways
  1722. this.perfusionApparatus = this.$store.getters.perfusion_apparatus
  1723. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1724. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
  1725. this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
  1726. this.blood_access_part_opera = getDataConfig(
  1727. 'hemodialysis',
  1728. 'vascular_access_desc'
  1729. )
  1730. this.org_id = this.$store.getters.xt_user.org.id
  1731. console.log("=====",this.org_id)
  1732. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1733. var bloodAccessParOpera = getDataConfig(
  1734. 'hemodialysis',
  1735. 'vascular_access_desc'
  1736. )
  1737. for (var key in bloodAccessParOpera) {
  1738. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1739. bloodAccessParOpera[key]
  1740. }
  1741. var dialysateFormulationOptions = getDataConfig(
  1742. 'hemodialysis',
  1743. 'dialysate_formulation'
  1744. )
  1745. for (var key in dialysateFormulationOptions) {
  1746. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1747. dialysateFormulationOptions[key]
  1748. }
  1749. const xtdate = this.$route.query && this.$route.query.xtdate
  1750. console.log('xtdate', xtdate)
  1751. const xtno = this.$route.query && this.$route.query.xtno
  1752. console.log('xtno', xtno)
  1753. if (
  1754. typeof xtdate === 'string' &&
  1755. xtdate.length > 0 &&
  1756. typeof xtno === 'string' &&
  1757. xtno.length > 0
  1758. ) {
  1759. this.queryParams.xtdate = xtdate
  1760. this.queryParams.xtno = xtno
  1761. this.getDialysisRecord()
  1762. } else {
  1763. this.$message.error('参数不齐')
  1764. return false
  1765. }
  1766. }
  1767. }
  1768. </script>
  1769. <style>
  1770. .print_page_main_content {
  1771. background-color: white;
  1772. width: 960px;
  1773. margin: 0 auto 50px;
  1774. padding: 0 0 0 0;
  1775. page-break-after: always;
  1776. }
  1777. .print_page_main_content .order-yy-name {
  1778. margin: auto;
  1779. text-align: center;
  1780. font-size: 20px;
  1781. letter-spacing: 5px;
  1782. }
  1783. .dialysis-print-order .order-title {
  1784. margin: auto;
  1785. font-weight: 600;
  1786. text-align: center;
  1787. font-size: 22px;
  1788. padding: 10px;
  1789. }
  1790. .print_page_main_content .order_title {
  1791. text-align: center;
  1792. font-size: 23px;
  1793. line-height: 50px;
  1794. font-weight: 500;
  1795. }
  1796. .row {
  1797. font-size: 14px;
  1798. line-height: 20px;
  1799. padding: 5px 0;
  1800. }
  1801. .inline_block {
  1802. display: inline-block;
  1803. }
  1804. .under_line_two {
  1805. display: inline-block;
  1806. border-bottom: 1px solid #999;
  1807. text-align: left;
  1808. white-space: nowrap;
  1809. width: 50%;
  1810. }
  1811. .under_line_two::before {
  1812. content: "\00A0";
  1813. }
  1814. .under_line_two::after {
  1815. content: "\00A0";
  1816. }
  1817. .under_line {
  1818. display: inline-block;
  1819. border-bottom: 1px solid #999;
  1820. text-align: center;
  1821. white-space: nowrap;
  1822. width: 50%;
  1823. }
  1824. .under_line::before {
  1825. content: "\00A0";
  1826. }
  1827. .under_line::after {
  1828. content: "\00A0";
  1829. }
  1830. .flex {
  1831. display: -webkit-box;
  1832. display: -moz-box;
  1833. display: -ms-flexbox;
  1834. display: -webkit-flex;
  1835. display: flex;
  1836. align-items: center;
  1837. -webkit-align-items: center;
  1838. box-align: center;
  1839. -moz-box-align: center;
  1840. -webkit-box-align: center;
  1841. text-align: center;
  1842. -webkit-justify-content: space-between;
  1843. justify-content: space-between;
  1844. -moz-box-pack: space-between;
  1845. -webkit--moz-box-pack: space-between;
  1846. box-pack: space-between;
  1847. }
  1848. .print_page_main_content .proj_table {
  1849. width: 100%;
  1850. border: 1px solid;
  1851. border-collapse: collapse;
  1852. padding: 2px;
  1853. }
  1854. .print_page_main_content .proj_table tbody tr td {
  1855. border: 1px solid;
  1856. /* text-align: center; */
  1857. font-size: 16px;
  1858. padding: 5px 8px;
  1859. line-height: 30px;
  1860. }
  1861. .print_page_main_content .proj_table .inside_table {
  1862. width: 100%;
  1863. border: hidden; /* 解决边框冲突 */
  1864. border-collapse: collapse;
  1865. }
  1866. .print_page_main_content .proj_table .inside_table tr td {
  1867. border: 1px solid;
  1868. text-align: center;
  1869. font-size: 14px;
  1870. padding: 6px 5px;
  1871. line-height: 16px;
  1872. }
  1873. .print-table-no {
  1874. width: 100%;
  1875. text-align: center;
  1876. border-collapse: collapse;
  1877. font-size: 14px;
  1878. }
  1879. .es-img {
  1880. height: 20px;
  1881. }
  1882. .advice-name {
  1883. text-align: left !important;
  1884. line-height: 16px !important;
  1885. }
  1886. .advice-children {
  1887. display: flex;
  1888. }
  1889. .margin-bottom-50 {
  1890. }
  1891. .margin-bottom-300 {
  1892. margin-bottom: 450px;
  1893. }
  1894. .margin-bottom-600 {
  1895. margin-bottom: 600px;
  1896. }
  1897. .margin-bottom-900 {
  1898. margin-bottom: 900px;
  1899. }
  1900. .print-yema {
  1901. position: absolute;
  1902. left: 50%;
  1903. }
  1904. .print-yema2 {
  1905. position: absolute;
  1906. left: 50%;
  1907. }
  1908. .print-yema3 {
  1909. position: absolute;
  1910. left: 50%;
  1911. }
  1912. .print-yema4 {
  1913. position: absolute;
  1914. left: 50%;
  1915. }
  1916. .check_box_panel .did_checke::after {
  1917. font-size: 8px;
  1918. margin-left: 2px;
  1919. margin-top: 2px;
  1920. position: absolute;
  1921. }
  1922. </style>