DialysisPrintOrderNineteen.vue 85KB

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