DialysisPrintOrderFortyOne.vue 85KB

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