DialysisPrintOrderFortyFour.vue 85KB

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