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

DialysisPrintOrderTwentyFive.vue 78KB

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