DialysisPrintOrderTwenty.vue 81KB

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