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

DialysisPrintOrderSeventeen.vue 82KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242
  1. <template>
  2. <div id="dialysis-print-box">
  3. <div class="dialysis-print-order">
  4. <div class="order-yy-name"></div>
  5. <div class="order-title">{{ orgname }}&nbsp;&nbsp;&nbsp;血液净化治疗记录单</div>
  6. <table class="print-table" border="1" style="margin-top: 10px;">
  7. <tr>
  8. <td style="text-align:left;width:150px;">
  9. <span style="display:inline-block;margin-left:15px;">
  10. {{getDatge(queryParams.xtdate)}}
  11. </span>
  12. </td>
  13. <td style="text-align:center;width:140px;">
  14. 姓名:
  15. <span style="display:inline-block;margin-left:10px;">
  16. {{patientInfo.name}}
  17. </span>
  18. </td>
  19. <td style="text-align:center;">
  20. 性别:
  21. <span style="display:inline-block;margin-left:10px;">
  22. {{patientInfo.gender}}
  23. </span>
  24. </td>
  25. <td style="text-align:center;">
  26. 年龄:
  27. <span style="display:inline-block;margin-left:10px;">
  28. {{
  29. getAge(patientInfo)
  30. }}
  31. </span>
  32. </td>
  33. <td style="text-align:center;">
  34. <label-box
  35. showValue="门诊"
  36. :isChecked="receiverTreatmentAccess.condition == 2 ? true : false"
  37. ></label-box>
  38. <label-box
  39. showValue="住院"
  40. :isChecked="receiverTreatmentAccess.condition == 1 ? true : false"
  41. ></label-box>
  42. </td>
  43. <td style="text-align:center;">
  44. <template v-if="receiverTreatmentAccess.condition == 1">
  45. 住院号:
  46. <span style="display:inline-block;margin-left:10px;">
  47. {{
  48. receiverTreatmentAccess.admission_number
  49. ? receiverTreatmentAccess.admission_number
  50. : "/"
  51. }}
  52. </span>
  53. </template>
  54. <template v-else>
  55. 门诊号:
  56. <span style="display:inline-block;margin-left:10px;">
  57. {{
  58. patientInfo.admission_number
  59. ? patientInfo.admission_number
  60. : "/"
  61. }}
  62. </span>
  63. </template>
  64. </td>
  65. <td style="text-align:center;">
  66. 机器号:
  67. <span style="display:inline-block;margin-left:10px;">
  68. {{
  69. dialysisOrder &&
  70. dialysisOrder.DeviceNumber &&
  71. dialysisOrder.DeviceNumber.number > 0
  72. ? dialysisOrder.DeviceNumber.number
  73. : patientInfo.DialysisSchedule.device_number.number
  74. }}
  75. </span>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td style="text-align:left;" colspan="3">
  80. <span style="display:inline-block;margin-left:15px;">治疗方式:</span>
  81. <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>&nbsp;
  82. <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
  83. <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>&nbsp;
  84. <label-box :isChecked="prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>&nbsp;
  85. <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>&nbsp;
  86. </td>
  87. <td style="text-align:left;" colspan="4">
  88. <span style="display:inline-block;margin-left:15px;">诊断: {{ patientInfo.diagnose }}</span>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td style="text-align:left;" colspan="1">
  93. <span style="display:inline-block;margin-left:15px;">
  94. 干体重:
  95. {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg
  96. </span>
  97. </td>
  98. <td style="text-align:left;" colspan="1">
  99. <span style="display:inline-block;margin-left:15px;">
  100. <!-- 透后净体重:{{
  101. afterdialysis.weight_after
  102. ? parseFloat(
  103. afterdialysis.weight_after -
  104. afterdialysis.additional_weight
  105. ).toFixed(1)
  106. : "/"
  107. }}kg -->
  108. kt/v:{{ monitors[0].ktv ? monitors[0].ktv : '' }}
  109. </span>
  110. </td>
  111. <td style="text-align:left;" colspan="1">
  112. <span style="display:inline-block;margin-left:15px;">
  113. URR:{{ monitors[0].urr ? monitors[0].urr : '' }}
  114. </span>
  115. </td>
  116. <td style="text-align:left;" colspan="3">
  117. <span style="display:inline-block;margin-left:15px;">
  118. Na:
  119. {{
  120. prescription.sodium ? prescription.sodium : "/"
  121. }}&nbsp;mmol/L
  122. </span>
  123. <span style="display:inline-block;margin-left:15px;">
  124. Ca:
  125. {{
  126. prescription.calcium ? prescription.calcium : "/"
  127. }}&nbsp;mmol/L
  128. </span>
  129. <span style="display:inline-block;margin-left:15px;">
  130. K:
  131. {{
  132. prescription.kalium ? prescription.kalium : "/"
  133. }}&nbsp;mmol/L
  134. </span>
  135. </td>
  136. <td style="text-align:left;" colspan="2">
  137. <span style="display:inline-block;margin-left:15px;">
  138. 透析液温度:{{
  139. prescription.dialysate_temperature
  140. ? prescription.dialysate_temperature
  141. : "/"
  142. }}&nbsp;℃
  143. </span>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td style="text-align:left;" colspan="1">
  148. <span style="display:inline-block;margin-left:15px;">
  149. 透前体重:{{
  150. predialysis.weight_before ? predialysis.weight_before : "/"
  151. }}kg
  152. </span>
  153. </td>
  154. <td style="text-align:left;" colspan="1">
  155. <span style="display:inline-block;margin-left:15px;">
  156. 设定脱水量:{{
  157. prescription.target_ultrafiltration
  158. ? prescription.target_ultrafiltration
  159. : "/"
  160. }}ml
  161. </span>
  162. </td>
  163. <td style="text-align:left;padding-left:15px;" colspan="6">
  164. <span style="display:inline-block;">
  165. <label-box :isChecked="anticoagulant == 7 ? true : false" showValue="低分子肝素钠"></label-box>:
  166. </span>
  167. <span style="display:inline-block;">
  168. <div style="display:inline-block;width:30px;text-align:center">
  169. {{ anticoagulant == 7 && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
  170. </div>
  171. <span v-if="prescription.anticoagulant == 5">mg</span>
  172. <span v-if="prescription.anticoagulant == 4">mg</span>
  173. <span v-if="prescription.anticoagulant == 3">iu</span>
  174. <span v-if="prescription.anticoagulant == 2">mg</span>
  175. <span v-if="prescription.anticoagulant == 1">mg</span>
  176. <span v-if="prescription.anticoagulant == 6">iu</span>
  177. <span v-if="prescription.anticoagulant == 7">iu</span>
  178. </span>
  179. <span style="display:inline-block;">
  180. <label-box :isChecked="anticoagulant == 2 ? true : false" showValue="普通肝素"></label-box>
  181. </span>
  182. <span style="display:inline-block;">
  183. 首剂:
  184. <div style="display:inline-block;width:30px;text-align:center">
  185. {{ anticoagulant == 2 && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
  186. </div>
  187. <span v-if="prescription.anticoagulant == 5">mg</span>
  188. <span v-if="prescription.anticoagulant == 4">mg</span>
  189. <span v-if="prescription.anticoagulant == 3">iu</span>
  190. <span v-if="prescription.anticoagulant == 2">mg</span>
  191. <span v-if="prescription.anticoagulant == 1">mg</span>
  192. <span v-if="prescription.anticoagulant == 6">iu</span>
  193. <span v-if="prescription.anticoagulant == 7">iu</span>
  194. </span>
  195. <span style="display:inline-block;">
  196. 维持:
  197. <div style="display:inline-block;width:30px;text-align:center">
  198. {{ anticoagulant == 2 && prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "/" }}
  199. </div>
  200. <span v-if="prescription.anticoagulant == 5">ml/h</span>
  201. <span v-if="prescription.anticoagulant == 4">mg/h</span>
  202. <span v-if="prescription.anticoagulant == 3">iu/h</span>
  203. <span v-if="prescription.anticoagulant == 2">mg/h</span>
  204. <span v-if="prescription.anticoagulant == 1">mg/h</span>
  205. <span v-if="prescription.anticoagulant == 6">iu/h</span>
  206. <span v-if="prescription.anticoagulant == 7">iu/h</span>
  207. </span>
  208. <span style="display:inline-block;">
  209. 总量:
  210. <div style="display:inline-block;width:30px;text-align:center">
  211. {{ anticoagulant == 2 && prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/" }}
  212. </div>
  213. <span v-if="prescription.anticoagulant == 5">mg</span>
  214. <span v-if="prescription.anticoagulant == 4">mg</span>
  215. <span v-if="prescription.anticoagulant == 3">iu</span>
  216. <span v-if="prescription.anticoagulant == 2">mg</span>
  217. <span v-if="prescription.anticoagulant == 1">mg</span>
  218. <span v-if="prescription.anticoagulant == 6">iu</span>
  219. <span v-if="prescription.anticoagulant == 7">iu</span>
  220. </span>
  221. <span style="display:inline-block;">
  222. <label-box :isChecked="anticoagulant == 1 ? true : false" showValue="无肝素"></label-box>
  223. </span>
  224. </td>
  225. </tr>
  226. <tr>
  227. <td style="text-align:left;" colspan="1">
  228. <span style="display:inline-block;margin-left:15px;">
  229. 透后体重:
  230. {{ afterdialysis.weight_after ? afterdialysis.weight_after : '/' }}kg
  231. </span>
  232. </td>
  233. <td style="text-align:left;" colspan="1">
  234. <span style="display:inline-block;margin-left:15px;">
  235. 净脱水量:{{
  236. afterdialysis.actual_ultrafiltration
  237. ? afterdialysis.actual_ultrafiltration
  238. : "/"
  239. }}ml
  240. </span>
  241. </td>
  242. <td style="text-align:left;" colspan="2">
  243. <span style="display:inline-block;margin-left:15px;">
  244. 透析时间:
  245. {{ prescription.dialysis_duration_hour
  246. ? prescription.dialysis_duration_hour
  247. : "0"
  248. }}小时{{
  249. prescription.dialysis_duration_minute
  250. ? prescription.dialysis_duration_minute
  251. : "0"
  252. }}分钟
  253. </span>
  254. </td>
  255. <td style="text-align:left;" colspan="1">
  256. <span style="display:inline-block;margin-left:15px;">
  257. 透析器型号:{{
  258. prescription.dialyzer_perfusion_apparatus
  259. ? prescription.dialyzer_perfusion_apparatus
  260. : "/"
  261. }}
  262. </span>
  263. </td>
  264. <td style="text-align:left;" colspan="2">
  265. <span style="display:inline-block;margin-left:15px;">
  266. 置换方式:
  267. <label-box
  268. :isChecked="
  269. prescription.displace_liqui_part == 1 ? true : false
  270. "
  271. showValue="前"
  272. ></label-box>&nbsp;
  273. <label-box
  274. :isChecked="
  275. prescription.displace_liqui_part == 2 ? true : false
  276. "
  277. showValue="后"
  278. ></label-box>
  279. &nbsp; (总量:{{
  280. prescription.displace_liqui_value
  281. ? prescription.displace_liqui_value
  282. : "/"
  283. }}L)
  284. </span>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td style="text-align:left;" colspan="1">
  289. <span style="display:inline-block;margin-left:15px;">
  290. <span
  291. v-if="orderForm.url === ''"
  292. style="display:flex;align-items:center;"
  293. >责任护士:{{ orderForm.start_nurse }}</span>
  294. <span
  295. v-if="orderForm.url !== ''"
  296. style="display:flex;align-items:center;height:36px;"
  297. >
  298. 责任护士:
  299. <img :src="orderForm.url" style="height:30px;" />
  300. </span>
  301. </span>
  302. </td>
  303. <td style="text-align:left;" colspan="1">
  304. <span style="display:inline-block;margin-left:15px;">
  305. <span
  306. v-if="orderForm.url === ''"
  307. style="display:flex;align-items:center;"
  308. >上机护士:{{ orderForm.start_nurse }}</span>
  309. <span
  310. v-if="orderForm.url !== ''"
  311. style="display:flex;align-items:center;height:36px;"
  312. >
  313. 上机护士:
  314. <img :src="orderForm.url" style="height:30px;" />
  315. </span>
  316. </span>
  317. </td>
  318. <td style="text-align:left;" colspan="3">
  319. <span style="display:inline-block;margin-left:15px;">
  320. <span
  321. v-if="orderForm.url === ''"
  322. style="display:flex;align-items:center;"
  323. >抗凝剂执行护士:{{ orderForm.start_nurse }}</span>
  324. <span
  325. v-if="orderForm.url !== ''"
  326. style="display:flex;align-items:center;height:36px;"
  327. >
  328. 抗凝剂执行护士:
  329. <img :src="orderForm.url" style="height:30px;" />
  330. </span>
  331. </span>
  332. </td>
  333. <td style="text-align:left;" colspan="3">
  334. <span style="display:inline-block;margin-left:15px;">
  335. <span style="display:flex;align-items:center;" v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater)) == ''">医生签名:{{getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater))}}</span>
  336. <span v-else style="display:flex;align-items:center;height:36px;" >医生签名:
  337. <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:prescription.creater))" alt="" srcset="">
  338. </span>
  339. </span>
  340. </td>
  341. </tr>
  342. <tr>
  343. <td style="text-align:left;" colspan="4">
  344. <span style="display:inline-block;margin-left:15px;">
  345. 透前评估: 入科方式:
  346. <label-box
  347. :isChecked="receiverTreatmentAccess.way == 1 ? true : false"
  348. showValue="步行"
  349. ></label-box>&nbsp;
  350. <label-box
  351. :isChecked="receiverTreatmentAccess.way == 2 ? true : false"
  352. showValue="扶行"
  353. ></label-box>&nbsp;
  354. <label-box
  355. :isChecked="receiverTreatmentAccess.way == 3 ? true : false"
  356. showValue="轮椅"
  357. ></label-box>&nbsp;
  358. <label-box
  359. :isChecked="receiverTreatmentAccess.way == 4 ? true : false"
  360. showValue="平车"
  361. ></label-box>&nbsp;
  362. </span>
  363. </td>
  364. <td style="text-align:left;" colspan="4">
  365. <span style="display:inline-block;margin-left:15px;">
  366. 意识:
  367. <label-box
  368. :isChecked="
  369. receiverTreatmentAccess.consciousness == 1 ? true : false
  370. "
  371. showValue="清醒"
  372. ></label-box>&nbsp;
  373. <label-box
  374. :isChecked="
  375. receiverTreatmentAccess.consciousness == 2 ? true : false
  376. "
  377. showValue="嗜睡"
  378. ></label-box>&nbsp;
  379. <label-box
  380. :isChecked="
  381. receiverTreatmentAccess.consciousness == 4 ? true : false
  382. "
  383. showValue="模糊"
  384. ></label-box>&nbsp;
  385. <label-box
  386. :isChecked="
  387. receiverTreatmentAccess.consciousness == 3 ? true : false
  388. "
  389. showValue="昏迷"
  390. ></label-box>&nbsp;
  391. </span>
  392. </td>
  393. </tr>
  394. <tr>
  395. <td colspan="3" style="text-align:left;">
  396. <span style="display:inline-block;margin-left:15px;">食欲:</span>
  397. <label-box
  398. :isChecked="receiverTreatmentAccess.appetite == 1 ? true : false"
  399. showValue="正常"
  400. ></label-box>&nbsp;
  401. <label-box
  402. :isChecked="receiverTreatmentAccess.appetite == 2 ? true : false"
  403. showValue="减退"
  404. ></label-box>&nbsp;
  405. <label-box
  406. :isChecked="receiverTreatmentAccess.appetite == 3 ? true : false"
  407. showValue="恶心"
  408. ></label-box>&nbsp;
  409. <label-box
  410. :isChecked="receiverTreatmentAccess.appetite == 4 ? true : false"
  411. showValue="呕吐"
  412. ></label-box>&nbsp;
  413. <label-box
  414. :isChecked="receiverTreatmentAccess.appetite == 5 ? true : false"
  415. showValue="腹泻"
  416. ></label-box>&nbsp;
  417. </td>
  418. <td colspan="1" style="text-align:left;">
  419. <span style="display:inline-block;margin-left:15px;">
  420. 体温:{{
  421. predialysis.temperature ? predialysis.temperature : "/"
  422. }}
  423. </span>
  424. </td>
  425. <td colspan="3" style="text-align:left;">
  426. <span style="display:inline-block;margin-left:15px;">
  427. 体位:
  428. <label-box
  429. v-for="(item, index) in posture_arr"
  430. :key="index"
  431. :isChecked="
  432. receiverTreatmentAccess.posture == item.id ? true : false
  433. "
  434. :showValue="item.name"
  435. ></label-box>
  436. <label-box
  437. :isChecked="receiverTreatmentAccess.posture == 1 ? true : false"
  438. showValue="自动体位"
  439. ></label-box>&nbsp;
  440. <label-box
  441. :isChecked="receiverTreatmentAccess.posture == 2 ? true : false"
  442. showValue="平卧位"
  443. ></label-box>&nbsp;
  444. <label-box
  445. :isChecked="receiverTreatmentAccess.posture == 3 ? true : false"
  446. showValue="半卧位"
  447. ></label-box>&nbsp;
  448. <label-box
  449. :isChecked="receiverTreatmentAccess.posture == 4 ? true : false"
  450. showValue="端坐位"
  451. ></label-box>&nbsp;
  452. <label-box
  453. :isChecked="receiverTreatmentAccess.posture == 5 ? true : false"
  454. showValue="躁动不安"
  455. ></label-box>&nbsp;
  456. </span>
  457. </td>
  458. </tr>
  459. <tr>
  460. <td colspan="8" style="text-align:left;">
  461. <span style="display:inline-block;margin-left:15px;">
  462. 血管通路:内瘘波动及震颤: (&nbsp;
  463. <label-box
  464. v-for="(item, index) in arr"
  465. :key="index"
  466. :isChecked="
  467. predialysis.blood_access_part_opera_id == item.id
  468. ? true
  469. : false
  470. "
  471. :showValue="item.name"
  472. ></label-box>)
  473. <label-box
  474. v-for="(item, index) in arrtwo"
  475. :key="index"
  476. :isChecked="
  477. predialysis.blood_access_part_opera_id == item.id
  478. ? true
  479. : false
  480. "
  481. :showValue="item.name"
  482. ></label-box>
  483. </span>
  484. </td>
  485. </tr>
  486. <tr>
  487. <td colspan="8" style="text-align:left;">
  488. <span style="display:inline-block;margin-left:15px;">中心静脉导管:</span>
  489. <!-- (部位:{{ getPartName(predialysis.blood_access_part_id) }}) -->
  490. (部位:{{predialysis.blood_access_part_id}})
  491. <label-box
  492. showValue="长期"
  493. :isChecked="
  494. predialysis.venous_catheterization == 1 ? true : false
  495. "
  496. ></label-box>
  497. <label-box
  498. showValue="临时"
  499. :isChecked="
  500. predialysis.venous_catheterization == 2 ? true : false
  501. "
  502. ></label-box>&nbsp;&nbsp; 感染:
  503. <label-box
  504. showValue="有"
  505. :isChecked="
  506. predialysis.catheter.indexOf('感染-有') > -1 ? true : false
  507. "
  508. ></label-box>
  509. <label-box
  510. showValue="无"
  511. :isChecked="
  512. predialysis.catheter.indexOf('感染-无') > -1 ? true : false
  513. "
  514. ></label-box>&nbsp;&nbsp;流畅度:
  515. <label-box
  516. showValue="好"
  517. :isChecked="
  518. predialysis.catheter.indexOf('通畅度-好') > -1 ? true : false
  519. "
  520. ></label-box>
  521. <label-box
  522. showValue="差"
  523. :isChecked="
  524. predialysis.catheter.indexOf('通畅度-差') > -1 ? true : false
  525. "
  526. ></label-box>&nbsp;&nbsp;溶栓:
  527. <label-box
  528. showValue="有"
  529. :isChecked="
  530. predialysis.catheter.indexOf('溶栓-有') > -1 ? true : false
  531. "
  532. ></label-box>
  533. <label-box
  534. showValue="无"
  535. :isChecked="
  536. predialysis.catheter.indexOf('溶栓-无') > -1 ? true : false
  537. "
  538. ></label-box>
  539. &nbsp;&nbsp;外露:{{ predialysis.exposed }}cm
  540. </td>
  541. </tr>
  542. <tr>
  543. <td style="text-align:left;" colspan="8">
  544. <span style="display:inline-block;margin-left:15px;">
  545. 血管通路皮肤情况:
  546. <label-box
  547. :isChecked="
  548. predialysis.internal_fistula_skin.indexOf('正常') > -1
  549. ? true
  550. : false
  551. "
  552. showValue="正常"
  553. ></label-box>&nbsp;
  554. <label-box
  555. :isChecked="
  556. predialysis.internal_fistula_skin.indexOf('淤血') > -1
  557. ? true
  558. : false
  559. "
  560. showValue="淤血"
  561. ></label-box>&nbsp;
  562. <label-box
  563. :isChecked="
  564. predialysis.internal_fistula_skin.indexOf('红') > -1
  565. ? true
  566. : false
  567. "
  568. showValue="红"
  569. ></label-box>&nbsp;
  570. <label-box
  571. :isChecked="
  572. predialysis.internal_fistula_skin.indexOf('肿') > -1
  573. ? true
  574. : false
  575. "
  576. showValue="肿"
  577. ></label-box>
  578. <!-- 其他: -->
  579. </span>
  580. </td>
  581. </tr>
  582. <tr>
  583. <td style="text-align:left;" colspan="8">
  584. <span style="display:inline-block;margin-left:15px;">皮肤:</span>
  585. <!-- <label-box showValue="完整" :isChecked="predialysis.skin == 1 ? true : false"></label-box>
  586. <label-box showValue="干燥" :isChecked="predialysis.skin == 2 ? true : false"></label-box>
  587. <label-box showValue="瘙痒" :isChecked="predialysis.skin == 3 ? true : false"></label-box>
  588. <label-box showValue="菲薄" :isChecked="predialysis.skin == 4 ? true : false"></label-box>/
  589. <label-box showValue="水肿" :isChecked="predialysis.skin == 5 ? true : false"></label-box>
  590. <label-box showValue="皮疹" :isChecked="predialysis.skin == 6 ? true : false"></label-box>
  591. <label-box showValue="出血点" :isChecked="predialysis.skin == 7 ? true : false"></label-box>
  592. <label-box showValue="压疮" :isChecked="predialysis.skin == 8 ? true : false"></label-box>
  593. <label-box showValue="皮下淤血" :isChecked="predialysis.skin == 9 ? true : false"></label-box> -->
  594. <label-box showValue="完整" :isChecked="predialysis.skin.indexOf('完整')>-1 ? true : false"></label-box>
  595. <label-box showValue="干燥" :isChecked="predialysis.skin.indexOf('干燥')>-1 ? true : false"></label-box>
  596. <label-box showValue="瘙痒" :isChecked="predialysis.skin.indexOf('瘙痒')>-1? true : false"></label-box>
  597. <label-box showValue="菲薄" :isChecked="predialysis.skin.indexOf('菲薄')>-1? true : false"></label-box>/
  598. <label-box showValue="水肿" :isChecked="predialysis.skin.indexOf('水肿')>-1? true : false"></label-box>
  599. <label-box showValue="皮疹" :isChecked="predialysis.skin.indexOf('皮疹')>-1 ? true : false"></label-box>
  600. <label-box showValue="出血点" :isChecked="predialysis.skin.indexOf('出血点')>-1? true : false"></label-box>
  601. <label-box showValue="压疮" :isChecked="predialysis.skin.indexOf('压疮')>-1 ? true : false"></label-box>
  602. <label-box showValue="皮下淤血" :isChecked="predialysis.skin.indexOf('皮下淤血')>-1 ? true : false"></label-box>
  603. </td>
  604. </tr>
  605. <tr>
  606. <td style="text-align:left;" colspan="8">
  607. <span style="display:inline-block;margin-left:15px;">出血影响因素:</span>
  608. <label-box showValue="无" :isChecked="predialysis.is_hemorrhage == 2 ? true : false"></label-box>
  609. <label-box showValue="异常" :isChecked="predialysis.is_hemorrhage == 1 ? true : false"></label-box>&nbsp;
  610. <label-box
  611. showValue="穿刺点渗血"
  612. :isChecked="
  613. predialysis.is_hemorrhage == 1 &&
  614. predialysis.hemorrhage.indexOf('穿刺点渗血') > -1
  615. ? true
  616. : false
  617. "
  618. ></label-box>
  619. <label-box
  620. showValue="牙龈出血"
  621. :isChecked="
  622. predialysis.is_hemorrhage == 1 &&
  623. predialysis.hemorrhage.indexOf('牙龈出血') > -1
  624. ? true
  625. : false
  626. "
  627. ></label-box>
  628. <label-box
  629. showValue="消化道出血"
  630. :isChecked="
  631. predialysis.is_hemorrhage == 1 &&
  632. predialysis.hemorrhage.indexOf('消化道出血') > -1
  633. ? true
  634. : false
  635. "
  636. ></label-box>
  637. <label-box
  638. showValue="女性经期"
  639. :isChecked="
  640. predialysis.is_hemorrhage == 1 &&
  641. predialysis.hemorrhage.indexOf('女性经期') > -1
  642. ? true
  643. : false
  644. "
  645. ></label-box>其他:
  646. <span>{{ predialysis.hemorrhage_other }}</span>
  647. </td>
  648. </tr>
  649. <tr>
  650. <td style="text-align:left;" colspan="8">
  651. <span style="display:inline-block;margin-left:15px;">使用特殊药物:</span>
  652. <label-box :isChecked="prescription.special_medicine == 1 ? true : false" showValue="无"></label-box>
  653. <label-box :isChecked="prescription.special_medicine != 1 && prescription.special_medicine != '' ? true : false" showValue="有"></label-box>:
  654. <label-box
  655. :isChecked="prescription.special_medicine == 2 ? true : false"
  656. showValue="降压药"
  657. ></label-box>
  658. <label-box
  659. :isChecked="prescription.special_medicine == 3 ? true : false"
  660. showValue="抗凝药"
  661. ></label-box>
  662. 其他:{{ prescription.special_medicine_other }}
  663. </td>
  664. </tr>
  665. <tr>
  666. <td style="text-align:left;" colspan="8">
  667. <span style="display:inline-block;margin-left:15px;">跌倒风险:</span>
  668. <label-box
  669. showValue="无"
  670. :isChecked="
  671. receiverTreatmentAccess.danger_level == 1 ? true : false
  672. "
  673. ></label-box>
  674. <label-box
  675. showValue="低风险"
  676. :isChecked="
  677. receiverTreatmentAccess.danger_level == 2 ? true : false
  678. "
  679. ></label-box>
  680. <label-box
  681. showValue="中度风险"
  682. :isChecked="
  683. receiverTreatmentAccess.danger_level == 3 ? true : false
  684. "
  685. ></label-box>
  686. <label-box
  687. showValue="高风险"
  688. :isChecked="
  689. receiverTreatmentAccess.danger_level == 4 ? true : false
  690. "
  691. ></label-box>
  692. <span>&nbsp;&nbsp;</span>跌倒风险预防措施:
  693. <label-box
  694. showValue="镇定剂"
  695. :isChecked="
  696. receiverTreatmentAccess.precaution.indexOf('镇定剂') > -1
  697. ? true
  698. : false
  699. "
  700. ></label-box>
  701. <label-box
  702. showValue="约束带"
  703. :isChecked="
  704. receiverTreatmentAccess.precaution.indexOf('约束带') > -1
  705. ? true
  706. : false
  707. "
  708. ></label-box>
  709. <label-box
  710. showValue="床栏"
  711. :isChecked="
  712. receiverTreatmentAccess.precaution.indexOf('床栏') > -1
  713. ? true
  714. : false
  715. "
  716. ></label-box>
  717. <label-box
  718. showValue="加强宣教"
  719. :isChecked="
  720. receiverTreatmentAccess.precaution.indexOf('加强宣教') > -1
  721. ? true
  722. : false
  723. "
  724. ></label-box>
  725. </td>
  726. </tr>
  727. </table>
  728. <table class="print-table" border="1" style="line-height:30px;">
  729. <tr style="line-height:20px;">
  730. <td style="min-width:60px">时间</td>
  731. <td style="min-width:60px">
  732. 血压
  733. <br />(mmHg)
  734. </td>
  735. <td style="min-width:60px">
  736. 心率
  737. <br />次/分
  738. </td>
  739. <td style="min-width:60px">
  740. 血流量
  741. <br />ml/min
  742. </td>
  743. <td style="min-width:60px">
  744. 静脉压
  745. <br />(mmHg)
  746. </td>
  747. <td style="min-width:60px">
  748. 动脉压
  749. <br />(mmHg)
  750. </td>
  751. <td style="min-width:60px">
  752. 跨膜压
  753. <br />(mmHg)
  754. </td>
  755. <td style="min-width:60px">
  756. 超滤率
  757. <br />ml/h
  758. </td>
  759. <td style="min-width:60px">
  760. 超滤量
  761. <br />ml
  762. </td>
  763. <!-- <td style="min-width:60px">
  764. NA⁺
  765. <br />
  766. </td> -->
  767. <td style="min-width:60px">病情变化及处理</td>
  768. <td style="min-width:110px">护士签名核对者</td>
  769. </tr>
  770. <tr v-for="(monitor, monindex) in monitors" :key="monindex">
  771. <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  772. <td>
  773. {{
  774. monitor.systolic_blood_pressure
  775. ? monitor.systolic_blood_pressure + "/"
  776. : ""
  777. }}{{
  778. monitor.diastolic_blood_pressure
  779. ? monitor.diastolic_blood_pressure
  780. : ""
  781. }}
  782. </td>
  783. <td>{{ monitor.pulse_frequency }}</td>
  784. <td>{{ monitor.blood_flow_volume }}</td>
  785. <td>{{ monitor.venous_pressure }}</td>
  786. <td>{{ monitor.arterial_pressure }}</td>
  787. <td>{{ monitor.transmembrane_pressure }}</td>
  788. <td>{{ monitor.ultrafiltration_rate }}</td>
  789. <td>{{ monitor.ultrafiltration_volume }}</td>
  790. <!-- <td>{{ monitor.sodium_concentration }}</td> -->
  791. <td>
  792. <span style="line-height:18px;display:block;">
  793. {{ monitor.symptom }}&nbsp;{{ monitor.dispose }}&nbsp;{{
  794. monitor.result
  795. }}
  796. </span>
  797. </td>
  798. <td>
  799. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
  800. {{
  801. getAdminUser(monitor.monitoring_nurse)
  802. }}
  803. </span>
  804. <span
  805. v-else
  806. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  807. >
  808. <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
  809. </span>
  810. </td>
  811. </tr>
  812. <tr>
  813. <td style="text-align:left;" colspan="12">
  814. <span style="display:inline-block;margin-left:15px;">透析护理记录:{{ nursing_record }}</span>
  815. </td>
  816. </tr>
  817. <tr>
  818. <td style="text-align:left;" colspan="12">
  819. <span style="display:inline-block;margin-left:15px;">
  820. 透后评估: 透析过程:
  821. <label-box
  822. showValue="完成"
  823. :isChecked="afterdialysis.dialysis_process == 1 ? true : false"
  824. ></label-box>
  825. <label-box
  826. showValue="提前"
  827. :isChecked="afterdialysis.dialysis_process == 2 ? true : false"
  828. ></label-box>&nbsp;&nbsp; 并发症:
  829. <label-box
  830. :isChecked="
  831. afterdialysis.complication.indexOf('低血压') > -1
  832. ? true
  833. : false
  834. "
  835. showValue="低血压"
  836. ></label-box>
  837. <label-box
  838. :isChecked="
  839. afterdialysis.complication.indexOf('高血压') > -1
  840. ? true
  841. : false
  842. "
  843. showValue="高血压"
  844. ></label-box>
  845. <label-box
  846. :isChecked="
  847. afterdialysis.complication.indexOf('心律失常') > -1
  848. ? true
  849. : false
  850. "
  851. showValue="心律失常"
  852. ></label-box>
  853. <label-box
  854. :isChecked="
  855. afterdialysis.complication.indexOf('头晕') > -1
  856. ? true
  857. : false
  858. "
  859. showValue="头晕"
  860. ></label-box>
  861. <label-box
  862. :isChecked="
  863. afterdialysis.complication.indexOf('头痛') > -1
  864. ? true
  865. : false
  866. "
  867. showValue="头痛"
  868. ></label-box>
  869. <label-box
  870. :isChecked="
  871. afterdialysis.complication.indexOf('呕吐') > -1
  872. ? true
  873. : false
  874. "
  875. showValue="呕吐"
  876. ></label-box>
  877. <label-box
  878. :isChecked="
  879. afterdialysis.complication.indexOf('抽搐') > -1
  880. ? true
  881. : false
  882. "
  883. showValue="抽搐"
  884. ></label-box>
  885. <label-box
  886. :isChecked="
  887. afterdialysis.complication.indexOf('出血') > -1
  888. ? true
  889. : false
  890. "
  891. showValue="出血"
  892. ></label-box>
  893. <label-box
  894. :isChecked="
  895. afterdialysis.complication.indexOf('心衰') > -1
  896. ? true
  897. : false
  898. "
  899. showValue="心衰"
  900. ></label-box>
  901. <label-box
  902. :isChecked="
  903. afterdialysis.complication.indexOf('腹痛') > -1
  904. ? true
  905. : false
  906. "
  907. showValue="腹痛"
  908. ></label-box>
  909. <label-box
  910. :isChecked="
  911. afterdialysis.complication.indexOf('肌肉痉挛') > -1
  912. ? true
  913. : false
  914. "
  915. showValue="肌肉痉挛"
  916. ></label-box>
  917. <label-box
  918. :isChecked="
  919. afterdialysis.complication.indexOf('无') > -1
  920. ? true
  921. : false
  922. "
  923. showValue="无"
  924. ></label-box>
  925. </span>
  926. </td>
  927. </tr>
  928. <tr>
  929. <td style="text-align:left;" colspan="2">
  930. <span
  931. style="display:inline-block;margin-left:15px;"
  932. >实际置换量:{{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : '/' }} L</span>
  933. </td>
  934. <td style="text-align:left;" colspan="10">
  935. <span style="display:inline-block;margin-left:15px;">
  936. 内瘘搏动及震颤音:
  937. <label-box
  938. showValue="存在"
  939. :isChecked="
  940. afterdialysis.internal_fistula.indexOf('存在') > -1
  941. ? true
  942. : false
  943. "
  944. ></label-box>
  945. <label-box
  946. showValue="减弱"
  947. :isChecked="
  948. afterdialysis.internal_fistula.indexOf('减弱') > -1
  949. ? true
  950. : false
  951. "
  952. ></label-box>
  953. <label-box
  954. showValue="消失"
  955. :isChecked="
  956. afterdialysis.internal_fistula.indexOf('消失') > -1
  957. ? true
  958. : false
  959. "
  960. ></label-box>
  961. </span>&nbsp;
  962. <span>
  963. 透析器及管路凝血情况:
  964. <label-box showValue="0级" :isChecked="afterdialysis.cruor.indexOf('透析器-0度') > -1"></label-box>
  965. <label-box showValue="1级" :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1"></label-box>
  966. <label-box showValue="2级" :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1"></label-box>
  967. <label-box showValue="3级" :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1"></label-box>
  968. </span>
  969. </td>
  970. </tr>
  971. <tr>
  972. <td style="text-align:left;" colspan="9">
  973. <span style="display:inline-block;margin-left:15px;">
  974. 透析中进食:
  975. <label-box
  976. showValue="无"
  977. :isChecked="afterdialysis.is_eat == 2 ? true : false"
  978. ></label-box>
  979. <label-box
  980. showValue="有"
  981. :isChecked="afterdialysis.is_eat == 1 ? true : false"
  982. ></label-box>
  983. </span>&nbsp;&nbsp;
  984. <span>
  985. 患者去向:
  986. <label-box showValue="离院" :isChecked="afterdialysis.patient_gose == 1 ? true : false"></label-box>
  987. <label-box showValue="留观" :isChecked="afterdialysis.patient_gose == 2 ? true : false"></label-box>
  988. <label-box showValue="住院" :isChecked="afterdialysis.patient_gose == 3 ? true : false"></label-box>
  989. </span>
  990. </td>
  991. <td style="text-align:left;" colspan="3">
  992. <span>
  993. <span
  994. v-if="finshForm.url === ''"
  995. style="display:flex;align-items:center;height:36px;"
  996. >下机护士:{{ finshForm.finish_nurse }}</span>
  997. <span
  998. v-if="finshForm.url !== ''"
  999. style="display:flex;align-items:center;height:36px;"
  1000. >
  1001. 下机护士:
  1002. <img :src="finshForm.url" style="height:30px;" />
  1003. </span>
  1004. </span>
  1005. </td>
  1006. </tr>
  1007. </table>
  1008. <table class="print-table" border="1">
  1009. <tr>
  1010. <td>时间</td>
  1011. <td>医生</td>
  1012. <td>临时医嘱</td>
  1013. <td>执行者</td>
  1014. <td>执行时间</td>
  1015. <td>核对者</td>
  1016. </tr>
  1017. <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
  1018. <td
  1019. style="height:30px;line-height:30px"
  1020. >{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  1021. <td>
  1022. <span v-if="setAdminUserES(advice.advice_doctor) == ''">
  1023. {{
  1024. getAdminUser(advice.advice_doctor)
  1025. }}
  1026. </span>
  1027. <span
  1028. v-else
  1029. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  1030. >
  1031. <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
  1032. </span>
  1033. </td>
  1034. <td class="parent" style="text-align:left;padding-left: 20px !important;">
  1035. <span v-if="advice.parent_id > 0">&nbsp;&nbsp;&nbsp;</span>
  1036. <span>{{ advice.advice_name }}</span>
  1037. <span
  1038. v-if="advice && advice.advice_desc"
  1039. >({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  1040. <span v-if="advice.prescribing_number">
  1041. &nbsp;&nbsp; {{ advice.prescribing_number
  1042. }}{{ advice.prescribing_number_unit }}
  1043. </span>
  1044. <span
  1045. v-if="advice.single_dose != 0"
  1046. >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  1047. <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
  1048. <span v-if="advice.parent_id == 0">
  1049. {{
  1050. advice.execution_frequency
  1051. }}
  1052. </span>
  1053. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
  1054. </td>
  1055. <td>
  1056. <span v-if="setAdminUserES(advice.execution_staff) == ''">
  1057. {{
  1058. getAdminUser(advice.execution_staff)
  1059. }}
  1060. </span>
  1061. <span
  1062. v-else
  1063. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  1064. >
  1065. <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
  1066. </span>
  1067. </td>
  1068. <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  1069. <td>
  1070. <span v-if="setAdminUserES(advice.checker) == ''">
  1071. {{
  1072. getAdminUser(advice.checker)
  1073. }}
  1074. </span>
  1075. <span
  1076. v-else
  1077. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  1078. >
  1079. <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
  1080. </span>
  1081. </td>
  1082. </tr>
  1083. <tr>
  1084. <td style="text-align:left;" colspan="6">
  1085. <span style="display:inline-block;margin-left:15px;">特殊记录:{{ dialysis_summary ? dialysis_summary : "" }}</span>
  1086. </td>
  1087. </tr>
  1088. </table>
  1089. <!-- <div style="margin-top:20px">
  1090. <span style="margin-left:280px;">肝素浓度:每毫升肝素生理盐水含肝素钠2.5毫克</span>
  1091. </div>-->
  1092. </div>
  1093. </div>
  1094. </template>
  1095. <script>
  1096. import { getDialysisRecord } from '@/api/dialysis'
  1097. import { getDataConfig } from '@/utils/data'
  1098. import { jsGetAge, uParseTime } from '@/utils/tools'
  1099. import LabelBox from '../printItem/LabelBox'
  1100. import CheckBox from '../batch_print/option_check_box'
  1101. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  1102. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  1103. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  1104. export default {
  1105. name: 'dialysisPrintOrderOne',
  1106. components: {
  1107. // DialysisPrintOrderOne,
  1108. // DialysisPrintOrderTwo,
  1109. LabelBox,
  1110. BreadCrumb,
  1111. CheckBox
  1112. },
  1113. data() {
  1114. return {
  1115. crumbs: [
  1116. { path: false, name: '透析管理' },
  1117. { path: false, name: '打印单' }
  1118. ],
  1119. operators: [],
  1120. adminUser: [],
  1121. check: {},
  1122. dialysisOrder: {
  1123. DeviceNumber: []
  1124. },
  1125. posture_arr: [],
  1126. operatorMaps: {},
  1127. complications: [
  1128. '低血压',
  1129. '高血压',
  1130. '心律失常',
  1131. '头晕',
  1132. '头痛',
  1133. '呕吐',
  1134. '抽搐',
  1135. '出血',
  1136. '心衰',
  1137. '腹痛',
  1138. '无'
  1139. ],
  1140. consciousness_arr: [],
  1141. jilurow: 0,
  1142. advice_jilurow: 0,
  1143. loading: false,
  1144. orgname: '',
  1145. patientInfo_gender_1: false,
  1146. patientInfo_gender_2: false,
  1147. patientInfo_source_2: false,
  1148. patientInfo_source_1: false,
  1149. modeOptions: {},
  1150. replacementWays: [],
  1151. perfusionApparatus: [],
  1152. anticoagulantsConfit: {},
  1153. bloodAccessParOpera: {},
  1154. dialysateFormulationOptions: {},
  1155. queryParams: {
  1156. xtdate: '',
  1157. xtno: ''
  1158. },
  1159. patientInfo: {
  1160. birth: '',
  1161. age: '',
  1162. DialysisSchedule: {
  1163. device_number: { number: '' },
  1164. device_zone: { name: '' }
  1165. },
  1166. gender: 0
  1167. },
  1168. predialysis: {
  1169. score: '',
  1170. internal_fistula: '',
  1171. internal_fistula_skin: '',
  1172. catheter: '',
  1173. blood_access_part_opera_name: ''
  1174. },
  1175. afterdialysis: {
  1176. complications_index: ''
  1177. },
  1178. prescription: {
  1179. dialysate_formulation_name: '',
  1180. device: {}
  1181. },
  1182. advices: [],
  1183. users: [],
  1184. monitors: [],
  1185. summary: {},
  1186. receiverTreatmentAccess: {},
  1187. org_template_info: {},
  1188. doctor_advices: [],
  1189. advice_groups: [],
  1190. schedule: [],
  1191. AlPanel: {
  1192. id: 0,
  1193. name: '',
  1194. type: 1,
  1195. shouji: 2,
  1196. weichi: 2,
  1197. zongliang: 2,
  1198. gaimingcheng: -1,
  1199. gaijiliang: -1,
  1200. shouji_unit: 'mg',
  1201. weichi_unit: 'mg/h',
  1202. zongliang_unit: 'mg',
  1203. gaimingcheng_unit: '',
  1204. gaijiliang_unit: ''
  1205. },
  1206. list: 5,
  1207. replacement_total: '',
  1208. actual_treatment_hour: '',
  1209. actual_treatment_minute: '',
  1210. anticoagulant: '',
  1211. anticoagulant_shouji: '',
  1212. anticoagulant_zongliang: '',
  1213. prescription_dewatering: '',
  1214. blood_flow_volume: '',
  1215. dialysate_flow: '',
  1216. bed: '',
  1217. dialyzer_perfusion_apparatus: '',
  1218. dialysate_formulation: '',
  1219. blood_access: '',
  1220. doctor: '',
  1221. nurse: '',
  1222. doctorAdvice: [],
  1223. total: '',
  1224. weight_before: '',
  1225. dry_weight: '',
  1226. weight_after: '',
  1227. weightloss_after: '',
  1228. actual_ultrafiltration: '',
  1229. temperature: '',
  1230. systolic_blood_pressure: '',
  1231. diastolic_blood_pressure: '',
  1232. mission: '',
  1233. dialysis_summary: '',
  1234. orderForm: {
  1235. start_nurse: '',
  1236. url: ''
  1237. },
  1238. doctorForm: {
  1239. doctor: '',
  1240. url: ''
  1241. },
  1242. finshForm: {
  1243. finish_nurse: '',
  1244. url: ''
  1245. },
  1246. tableAdvice: [],
  1247. monitor: [],
  1248. displace_liqui: '',
  1249. kalium: '',
  1250. sodium: '',
  1251. calcium: '',
  1252. weight_gain: '',
  1253. afterWeightLast: '',
  1254. anticoagulant_weichi: '',
  1255. target_ultrafiltration: '',
  1256. blood_access_internal_fistula: '',
  1257. venous_catheterization: '',
  1258. blood_access_part_opera_id: '',
  1259. dryWeight_add: '',
  1260. weight: '',
  1261. vascularId: 0,
  1262. PunctureNurse: {
  1263. user_name: '',
  1264. url: ''
  1265. },
  1266. arr: [],
  1267. arrtwo: [],
  1268. bloodAccess: [],
  1269. vascularAccess: [],
  1270. nursing_record: '',
  1271. special_record: '',
  1272. newTableAdvice: []
  1273. }
  1274. },
  1275. methods: {
  1276. getAdminUser(id) {
  1277. if (id == 0) {
  1278. return ''
  1279. }
  1280. if (id == undefined) {
  1281. return ''
  1282. }
  1283. for (let i = 0; i < this.adminUser.length; i++) {
  1284. if (this.adminUser[i].id == id) {
  1285. return this.adminUser[i].name
  1286. }
  1287. }
  1288. },
  1289. getDatge(value) {
  1290. var times = Date.parse(value) / 1000
  1291. var timestr = uParseTime(times, '{y}年{m}月{d}日')
  1292. return timestr
  1293. },
  1294. getTime(value, temp) {
  1295. if (value == 0) {
  1296. return ''
  1297. }
  1298. if (value != undefined) {
  1299. return uParseTime(value, temp)
  1300. }
  1301. return ''
  1302. },
  1303. getTimes(time) {
  1304. if (time === '') {
  1305. return ''
  1306. }
  1307. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  1308. },
  1309. printThisPage() {
  1310. var ptime = Math.round(new Date().getTime() / 1000)
  1311. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  1312. const style =
  1313. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
  1314. if (this.org_template_info.template_id == 1) {
  1315. printJS({
  1316. printable: 'dialysis-print-box',
  1317. type: 'html',
  1318. style: style,
  1319. scanStyles: false
  1320. })
  1321. } else if (
  1322. this.org_template_info.template_id == 2 ||
  1323. this.org_template_info.template_id == 0
  1324. ) {
  1325. printJS({
  1326. printable: 'dialysis-print-box-1',
  1327. type: 'html',
  1328. style: style,
  1329. scanStyles: false
  1330. })
  1331. }
  1332. },
  1333. getNumber() {
  1334. if (this.dialysisOrder != null) {
  1335. return (
  1336. this.patientInfo.DialysisSchedule.device_zone.name +
  1337. this.dialysisOrder.DeviceNumber.number
  1338. )
  1339. } else {
  1340. return (
  1341. this.patientInfo.DialysisSchedule.device_zone.name +
  1342. this.patientInfo.DialysisSchedule.device_number.number
  1343. )
  1344. }
  1345. },
  1346. getXuserName(id) {
  1347. if (id <= 0) {
  1348. return ''
  1349. }
  1350. var name = ''
  1351. if (this.users == null || typeof this.users.length === 'undefined') {
  1352. return name
  1353. }
  1354. var leng = this.users.length
  1355. if (leng === 0) {
  1356. return name
  1357. }
  1358. for (let index = 0; index < leng; index++) {
  1359. if (this.users[index].id === id) {
  1360. name = this.users[index].name
  1361. break
  1362. }
  1363. }
  1364. return name
  1365. },
  1366. setAdminUserES(id) {
  1367. if (id === 0) {
  1368. return ''
  1369. }
  1370. if (id in this.operatorMaps) {
  1371. return this.operatorMaps[id].url
  1372. } else {
  1373. return ''
  1374. }
  1375. },
  1376. modeName(mode_id) {
  1377. return typeof this.modeOptions[mode_id] !== 'undefined' &&
  1378. typeof this.modeOptions[mode_id].name !== 'undefined'
  1379. ? this.modeOptions[mode_id].name
  1380. : ''
  1381. },
  1382. getDialysisRecord() {
  1383. this.loading = true
  1384. getDialysisRecord(this.queryParams).then(response => {
  1385. if (response.data.state === 1) {
  1386. this.adminUser = response.data.data.users
  1387. this.users = response.data.data.users
  1388. var patientInfo = response.data.data.patientInfo
  1389. if (patientInfo.gender === 1) {
  1390. patientInfo.gender = '男'
  1391. }
  1392. if (patientInfo.gender === 2) {
  1393. patientInfo.gender = '女'
  1394. }
  1395. this.patientInfo = response.data.data.patientInfo
  1396. // console.log("透析记录", this.patientInfo);
  1397. this.patientInfo.birth = uParseTime(
  1398. this.patientInfo.birthday,
  1399. '{y}-{m}-{d}'
  1400. )
  1401. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1402. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1403. this.patientInfo.first_dialysis_date = uParseTime(
  1404. response.data.data.patientInfo.first_dialysis_date,
  1405. '{y}-{m}-{d}'
  1406. )
  1407. } else {
  1408. this.patientInfo.first_dialysis_date = ''
  1409. }
  1410. this.check = response.data.data.check
  1411. var predialysis = response.data.data.PredialysisEvaluation
  1412. console.log('透前评估', predialysis)
  1413. var predialysName = response.data.data.predialysName
  1414. this.blood_access_part_opera_id = predialysName.name
  1415. // console.log('血管', predialysName)
  1416. // this.weight_before = predialysis.weight_before
  1417. this.dry_weight = predialysis.dry_weight
  1418. this.weight_gain = predialysis.weight_gain
  1419. this.blood_access_internal_fistula =
  1420. predialysis.blood_access_internal_fistula
  1421. this.venous_catheterization = predialysis.venous_catheterization
  1422. // this.blood_access_part_opera_id = predialysis.blood_access_part_opera_id
  1423. // console.log('血管通路', this.blood_access_part_opera_id)
  1424. var arry = []
  1425. arry = getDataConfig('hemodialysis', 'vascular_access_desc')
  1426. // eslint-disable-next-line no-empty
  1427. var id = 0
  1428. for (let i = 0; i < arry.length; i++) {
  1429. if (arry[i].id === predialysis.blood_access_part_opera_id) {
  1430. id = predialysis.blood_access_part_opera_id
  1431. }
  1432. this.vascularId = id
  1433. }
  1434. this.predialysis = predialysis
  1435. // console.log('透前评估', this.predialysis)
  1436. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1437. this.predialysis.blood_access_part_opera_id
  1438. )
  1439. var afterdialysis = response.data.data.AssessmentAfterDislysis
  1440. // eslint-disable-next-line no-undef
  1441. console.log('透后评估', afterdialysis)
  1442. this.temperature = afterdialysis.temperature
  1443. this.actual_ultrafiltration = afterdialysis.actual_ultrafiltration
  1444. this.actual_treatment_hour = afterdialysis.actual_treatment_hour
  1445. this.actual_treatment_minute = afterdialysis.actual_treatment_minute
  1446. this.systolic_blood_pressure = afterdialysis.systolic_blood_pressure
  1447. this.diastolic_blood_pressure =
  1448. afterdialysis.diastolic_blood_pressure
  1449. this.afterdialysis = afterdialysis
  1450. // eslint-disable-next-line no-unused-vars
  1451. var doctoradvce = response.data.data.doctorAdvice
  1452. var doctorAdevieInfo = JSON.parse(JSON.stringify(response.data.data.advices))
  1453. this.newTableAdvice = response.data.data.doctorAdevieInfo
  1454. console.log('哈哈哈哈哈哈哈哈哈', this.newTableAdvice)
  1455. var tableAdvice = doctorAdevieInfo
  1456. console.log('tableAdvice', tableAdvice)
  1457. // console.log('医生', tableAdvice.length)
  1458. if (tableAdvice.length === 0) {
  1459. var obj = { advice_name: '', start_time: '' }
  1460. var obj1 = { advice_name: '', start_time: '' }
  1461. var obj2 = { advice_name: '', start_time: '' }
  1462. var obj3 = { advice_name: '', start_time: '' }
  1463. var obj4 = { advice_name: '', start_time: '' }
  1464. var obj5 = { advice_name: '', start_time: '' }
  1465. var obj6 = { advice_name: '', start_time: '' }
  1466. tableAdvice.push(obj)
  1467. tableAdvice.push(obj1)
  1468. tableAdvice.push(obj2)
  1469. tableAdvice.push(obj3)
  1470. tableAdvice.push(obj4)
  1471. tableAdvice.push(obj5)
  1472. tableAdvice.push(obj6)
  1473. this.tableAdvice = tableAdvice
  1474. }
  1475. if (tableAdvice.length === 1) {
  1476. var obj = { advice_name: '', start_time: '' }
  1477. var obj1 = { advice_name: '', start_time: '' }
  1478. var obj2 = { advice_name: '', start_time: '' }
  1479. var obj3 = { advice_name: '', start_time: '' }
  1480. var obj4 = { advice_name: '', start_time: '' }
  1481. var obj5 = { advice_name: '', start_time: '' }
  1482. tableAdvice.push(obj)
  1483. tableAdvice.push(obj1)
  1484. tableAdvice.push(obj2)
  1485. tableAdvice.push(obj3)
  1486. tableAdvice.push(obj4)
  1487. tableAdvice.push(obj5)
  1488. this.tableAdvice = tableAdvice
  1489. }
  1490. if (tableAdvice.length === 2) {
  1491. var obj = { advice_name: '', start_time: '' }
  1492. var obj1 = { advice_name: '', start_time: '' }
  1493. var obj2 = { advice_name: '', start_time: '' }
  1494. var obj3 = { advice_name: '', start_time: '' }
  1495. var obj4 = { advice_name: '', start_time: '' }
  1496. tableAdvice.push(obj)
  1497. tableAdvice.push(obj1)
  1498. tableAdvice.push(obj2)
  1499. tableAdvice.push(obj3)
  1500. tableAdvice.push(obj4)
  1501. this.tableAdvice = tableAdvice
  1502. }
  1503. if (tableAdvice.length === 3) {
  1504. // eslint-disable-next-line no-redeclare
  1505. var obj = { advice_name: '', start_time: '' }
  1506. // eslint-disable-next-line no-redeclare
  1507. var obj1 = { advice_name: '', start_time: '' }
  1508. // eslint-disable-next-line no-redeclare
  1509. var obj2 = { advice_name: '', start_time: '' }
  1510. // eslint-disable-next-line no-redeclare
  1511. var obj3 = { advice_name: '', start_time: '' }
  1512. tableAdvice.push(obj)
  1513. tableAdvice.push(obj1)
  1514. tableAdvice.push(obj2)
  1515. tableAdvice.push(obj3)
  1516. this.tableAdvice = tableAdvice
  1517. }
  1518. if (tableAdvice.length === 4) {
  1519. // eslint-disable-next-line no-redeclare
  1520. var obj = { advice_name: '', start_time: '' }
  1521. // eslint-disable-next-line no-redeclare
  1522. var obj1 = { advice_name: '', start_time: '' }
  1523. // eslint-disable-next-line no-redeclare
  1524. var obj2 = { advice_name: '', start_time: '' }
  1525. tableAdvice.push(obj)
  1526. tableAdvice.push(obj1)
  1527. tableAdvice.push(obj2)
  1528. this.tableAdvice = tableAdvice
  1529. }
  1530. if (tableAdvice.length === 5) {
  1531. // eslint-disable-next-line no-redeclare
  1532. var obj = { advice_name: '', start_time: '' }
  1533. // eslint-disable-next-line no-redeclare
  1534. var obj1 = { advice_name: '', start_time: '' }
  1535. tableAdvice.push(obj)
  1536. tableAdvice.push(obj1)
  1537. this.tableAdvice = tableAdvice
  1538. }
  1539. if (tableAdvice.length === 6) {
  1540. // eslint-disable-next-line no-redeclare
  1541. var obj = { advice_name: '', start_time: '' }
  1542. tableAdvice.push(obj)
  1543. this.tableAdvice = tableAdvice
  1544. }
  1545. if (tableAdvice.length >= 7) {
  1546. this.tableAdvice = tableAdvice
  1547. }
  1548. var doctor = response.data.data.doctor
  1549. this.doctor = doctor.user_name
  1550. // console.log('医生', doctor)
  1551. this.PunctureNurse = response.data.data.nurse
  1552. // console.log('穿刺护士', this.PunctureNurse)
  1553. var operators = response.data.data.operators
  1554. // console.log('operators', operators)
  1555. var total = response.data.data.total
  1556. console.log('total', total)
  1557. this.total = total
  1558. this.operators = operators
  1559. this.dialysisOrder =
  1560. response.data.data.dialysisOrder === null
  1561. ? null
  1562. : response.data.data.dialysisOrder
  1563. if (this.operators.length > 0) {
  1564. var operatorsLen = this.operators.length
  1565. for (var index = 0; index < operatorsLen; index++) {
  1566. this.$set(
  1567. this.operatorMaps,
  1568. this.operators[index].creator,
  1569. this.operators[index]
  1570. )
  1571. }
  1572. }
  1573. this.afterdialysis.txqnx = -1
  1574. if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1575. this.afterdialysis.txqnx = 0
  1576. }
  1577. if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1578. this.afterdialysis.txqnx = 1
  1579. }
  1580. if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1581. this.afterdialysis.txqnx = 2
  1582. }
  1583. if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1584. this.afterdialysis.txqnx = 3
  1585. }
  1586. this.afterdialysis.complications = this.afterdialysis.complication.split(
  1587. ','
  1588. )
  1589. this.afterdialysis.complications_other = []
  1590. this.afterdialysis.complications_index = []
  1591. var acllen = this.afterdialysis.complications.length
  1592. for (let index = 0; index < acllen; index++) {
  1593. if (
  1594. this.complications.indexOf(
  1595. this.afterdialysis.complications[index]
  1596. ) >= 0
  1597. ) {
  1598. this.afterdialysis.complications_index.push(
  1599. this.afterdialysis.complications[index]
  1600. )
  1601. } else if (
  1602. this.complications.indexOf(
  1603. this.afterdialysis.complications[index]
  1604. ) < 0 &&
  1605. this.afterdialysis.complications_other.indexOf(
  1606. this.afterdialysis.complications[index]
  1607. ) < 0
  1608. ) {
  1609. this.afterdialysis.complications_other.push(
  1610. this.afterdialysis.complications[index]
  1611. )
  1612. }
  1613. }
  1614. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  1615. ','
  1616. )
  1617. var prescription = response.data.data.dialysisPrescription
  1618. this.prescription = prescription
  1619. var schedule = response.data.data.schedule
  1620. // console.log('排班', schedule)
  1621. this.schedule = schedule
  1622. var receiverTreatmentAccess =
  1623. response.data.data.receiverTreatmentAccess
  1624. console.log('接诊评估', receiverTreatmentAccess)
  1625. var obj = receiverTreatmentAccess.precaution
  1626. var arr = obj.split(',')
  1627. console.log('arr', arr)
  1628. var arr2 = []
  1629. for (let i = 0; i < this.precautions.length; i++) {
  1630. for (let j = 0; j < arr.length; j++) {
  1631. if (this.precautions[i].id == parseInt(arr[j])) {
  1632. arr2.push(this.precautions[i].name)
  1633. }
  1634. }
  1635. }
  1636. var obj2 = arr2.join(',')
  1637. console.log('obj2', obj2)
  1638. receiverTreatmentAccess.precaution = obj2
  1639. console.log('接诊评估', receiverTreatmentAccess)
  1640. this.receiverTreatmentAccess = receiverTreatmentAccess
  1641. var dialysisway = response.data.data.dialysisway
  1642. console.log('透析处方', dialysisway)
  1643. this.target_ultrafiltration = dialysisway.target_ultrafiltration
  1644. var order = response.data.data.order
  1645. // console.log('上下机', order)
  1646. var start_nurse = response.data.data.startNuse
  1647. // console.log('上机护士', start_nurse)
  1648. this.orderForm.start_nurse = start_nurse.user_name
  1649. this.orderForm.url = start_nurse.url
  1650. var finish_nurse = response.data.data.FinishNuse
  1651. // console.log('下机护士', finish_nurse)
  1652. this.finshForm.url = finish_nurse.url
  1653. this.finshForm.finish_nurse = finish_nurse.user_name
  1654. var doctorname = response.data.data.DoctorName
  1655. // console.log('医师签名', doctorname)
  1656. this.doctorForm.doctor = doctorname.user_name
  1657. this.doctorForm.url = doctorname.url
  1658. this.bed = order.number
  1659. this.replacement_total = dialysisway.replacement_total
  1660. this.anticoagulant = dialysisway.anticoagulant
  1661. this.anticoagulant_shouji = dialysisway.anticoagulant_shouji
  1662. this.anticoagulant_zongliang = dialysisway.anticoagulant_zongliang
  1663. this.prescription_dewatering = dialysisway.prescription_dewatering
  1664. this.blood_flow_volume = dialysisway.blood_flow_volume
  1665. this.dialysate_flow = dialysisway.dialysate_flow
  1666. this.dialyzer_perfusion_apparatus =
  1667. dialysisway.dialyzer_perfusion_apparatus
  1668. this.dialysate_formulation = dialysisway.dialysate_formulation
  1669. this.blood_access = dialysisway.blood_access
  1670. this.displace_liqui = dialysisway.displace_liqui
  1671. this.kalium = dialysisway.kalium
  1672. this.sodium = dialysisway.sodium
  1673. this.calcium = dialysisway.calcium
  1674. this.anticoagulant_weichi = dialysisway.anticoagulant_weichi
  1675. // var afterWeightLast = response.data.data.assessmentAfterDislysis
  1676. // this.afterWeightLast = afterWeightLast.weight_after
  1677. // eslint-disable-next-line no-undef
  1678. // console.log('透前体重', this.weight_before)
  1679. // console.log('干体中', this.dry_weight)
  1680. // console.log('什么体重', predialysis.additional_weight)
  1681. // console.log('较干体中增加量', this.dryWeight_add)
  1682. // this.afterWeightLast = afterWeightLast.weight_after
  1683. this.prescription.mode = this.modeName(this.prescription.mode_id)
  1684. var rwLen = this.replacementWays.length
  1685. this.prescription.replacement = ''
  1686. for (let index = 0; index < rwLen; index++) {
  1687. if (
  1688. this.replacementWays[index].id ==
  1689. this.prescription.replacement_way
  1690. ) {
  1691. this.prescription.replacement = this.replacementWays[index].name
  1692. break
  1693. }
  1694. }
  1695. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1696. this.prescription.dialysate_formulation
  1697. )
  1698. var paLen = this.perfusionApparatus.length
  1699. this.prescription.perfusion_apparatus_name = ''
  1700. for (let index = 0; index < paLen; index++) {
  1701. if (
  1702. this.perfusionApparatus[index].id ==
  1703. this.prescription.perfusion_apparatus
  1704. ) {
  1705. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1706. index
  1707. ].name
  1708. break
  1709. }
  1710. }
  1711. // eslint-disable-next-line no-unused-vars
  1712. var acLen = this.anticoagulantsConfit.length
  1713. var thisALID = this.prescription.anticoagulant
  1714. this.prescription.anticoagulant_name = ''
  1715. if (
  1716. typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
  1717. this.anticoagulantsConfit[thisALID] != null
  1718. ) {
  1719. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1720. thisALID
  1721. ].name
  1722. this.AlPanel = this.anticoagulantsConfit[thisALID]
  1723. }
  1724. this.advices = response.data.data.advices
  1725. // console.log('医嘱', this.advices)
  1726. var monitor = response.data.data.monitor
  1727. // console.log('透析监测', monitor)
  1728. this.monitor = monitor
  1729. // console.log('monitor', monitor)
  1730. this.monitors = response.data.data.monitors
  1731. // console.log("透析监测", this.monitors);
  1732. var summary = response.data.data.summary
  1733. console.log('透析小结', summary)
  1734. this.mission = summary.mission
  1735. this.dialysis_summary = summary.dialysis_summary
  1736. this.nursing_record = summary.nursing_record
  1737. this.special_record = summary.special_record
  1738. this.org_template_info = response.data.data.org_template_info
  1739. if (this.monitors.length < 7) {
  1740. var nl = 8 - this.monitors.length
  1741. for (let index = 0; index < nl; index++) {
  1742. this.monitors.push([])
  1743. }
  1744. }
  1745. this.jilurow = this.monitors.length + 1
  1746. this.advice_jilurow = this.advices.length + 1
  1747. var childMap = {}
  1748. for (const index in this.advices) {
  1749. if (this.advices[index].parent_id == 0) {
  1750. continue
  1751. }
  1752. if (!(this.advices[index].parent_id in childMap)) {
  1753. childMap[this.advices[index].parent_id] = []
  1754. }
  1755. childMap[this.advices[index].parent_id].push(this.advices[index])
  1756. }
  1757. var advices = []
  1758. for (const index in this.advices) {
  1759. if (this.advices[index].parent_id > 0) {
  1760. continue
  1761. }
  1762. var item = this.advices[index]
  1763. if (item.id in childMap) {
  1764. item.children = childMap[item.id]
  1765. } else {
  1766. item.children = []
  1767. }
  1768. advices.push(item)
  1769. }
  1770. var leftAdvice = []
  1771. var rightAdvice = []
  1772. var adlen = advices.length
  1773. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1774. for (var i = 0; i < halfLen; i++) {
  1775. leftAdvice.push(advices[i])
  1776. rightAdvice.push(advices[i + halfLen])
  1777. }
  1778. if (halfLen < 5) {
  1779. var nl = 5 - leftAdvice.length
  1780. for (let index = 0; index < nl; index++) {
  1781. leftAdvice.push([])
  1782. }
  1783. var nl = 5 - rightAdvice.length
  1784. for (let index = 0; index < nl; index++) {
  1785. rightAdvice.push([])
  1786. }
  1787. }
  1788. this.advices = []
  1789. for (var i = 0; i < halfLen; i++) {
  1790. var item = []
  1791. item.push(leftAdvice[i])
  1792. item.push(rightAdvice[i])
  1793. this.advices.push(item)
  1794. }
  1795. this.loading = false
  1796. this.doctor_advices =
  1797. response.data.data.advices == null
  1798. ? []
  1799. : response.data.data.advices
  1800. for (let index = 0; index < this.doctor_advices.length; index++) {
  1801. this.doctor_advices[index]['isShow'] = 2
  1802. }
  1803. if (this.doctor_advices.length > 0) {
  1804. var group = this.newAdviceGroupObject()
  1805. var initGroupBlock = function(group, advice) {
  1806. group.group_no = advice.groupno
  1807. }
  1808. for (
  1809. let index = this.doctor_advices.length - 1;
  1810. index >= 0;
  1811. index--
  1812. ) {
  1813. var new_advice_index = 0
  1814. if (
  1815. 'children' in this.doctor_advices[index] &&
  1816. this.doctor_advices[index].children.length > 0
  1817. ) {
  1818. new_advice_index =
  1819. index + this.doctor_advices[index].children.length + 1
  1820. var doctor_advice = {
  1821. delivery_way: this.doctor_advices[index].delivery_way,
  1822. execution_frequency: this.doctor_advices[index]
  1823. .execution_frequency,
  1824. groupno: this.doctor_advices[index].groupno,
  1825. id: this.doctor_advices[index].id,
  1826. parent_id: this.doctor_advices[index].parent_id,
  1827. children: this.doctor_advices[index].children,
  1828. remark: this.doctor_advices[index].remark
  1829. }
  1830. doctor_advice['isShow'] = 1
  1831. this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1832. // this.doctor_advices.push(doctor_advice)
  1833. }
  1834. }
  1835. for (let index = 0; index < this.doctor_advices.length; index++) {
  1836. const advice = this.doctor_advices[index]
  1837. if (advice.groupno == 0) {
  1838. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1839. if (advice.parent_id > 0) {
  1840. if (this.advice_groups.length > 0) {
  1841. var parent_group = this.advice_groups[
  1842. this.advice_groups.length - 1
  1843. ]
  1844. if (parent_group.advices.length > 0) {
  1845. if (parent_group.advices[0].id == advice.parent_id) {
  1846. parent_group.advices.push(advice)
  1847. }
  1848. }
  1849. }
  1850. continue
  1851. } else {
  1852. if (group.group_no > 0) {
  1853. this.advice_groups.push(group)
  1854. group = this.newAdviceGroupObject()
  1855. }
  1856. initGroupBlock(group, advice)
  1857. group.advices.push(advice)
  1858. this.advice_groups.push(group)
  1859. group = this.newAdviceGroupObject()
  1860. continue
  1861. }
  1862. }
  1863. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1864. this.advice_groups.push(group)
  1865. group = this.newAdviceGroupObject()
  1866. }
  1867. if (group.group_no == 0) {
  1868. initGroupBlock(group, advice)
  1869. }
  1870. if (group.group_no == advice.groupno) {
  1871. group.advices.push(advice)
  1872. }
  1873. }
  1874. if (group.group_no > 0) {
  1875. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1876. this.advice_groups.push(group)
  1877. }
  1878. }
  1879. } else {
  1880. this.loading = false
  1881. this.$message.error('请求数据失败')
  1882. return false
  1883. }
  1884. })
  1885. },
  1886. bloodAccessParOperaName(id) {
  1887. if (id in this.bloodAccessParOpera) {
  1888. return this.bloodAccessParOpera[id].name
  1889. }
  1890. return ''
  1891. },
  1892. dialysateFormulationName(id) {
  1893. if (id in this.dialysateFormulationOptions) {
  1894. return this.dialysateFormulationOptions[id].name
  1895. }
  1896. return ''
  1897. },
  1898. getAge: function(val) {
  1899. if (val.birthday != 0) {
  1900. return jsGetAge(val.birth, '-')
  1901. } else {
  1902. return ''
  1903. }
  1904. },
  1905. newAdviceGroupObject: function() {
  1906. return Object.assign(
  1907. {},
  1908. {
  1909. group_no: 0,
  1910. // advice_doctor: 0,
  1911. // start_time: 0,
  1912. advices: []
  1913. // exec_staff: 0,
  1914. // exec_time: 0,
  1915. // checker: 0,
  1916. }
  1917. )
  1918. },
  1919. getPartName(id) {
  1920. for (let i = 0; i < this.vascularAccess.length; i++) {
  1921. if (this.vascularAccess[i].id == id) {
  1922. return this.vascularAccess[i].name
  1923. }
  1924. }
  1925. }
  1926. },
  1927. watch: {
  1928. 'patientInfo.gender': function() {
  1929. if (this.patientInfo.gender == 1) {
  1930. this.patientInfo_gender_1 = true
  1931. this.patientInfo_gender_2 = false
  1932. } else if (this.patientInfo.gender == 2) {
  1933. this.patientInfo_gender_2 = true
  1934. this.patientInfo_gender_1 = false
  1935. } else {
  1936. this.patientInfo_gender_2 = false
  1937. this.patientInfo_gender_1 = false
  1938. }
  1939. },
  1940. 'patientInfo.source': function() {
  1941. if (this.patientInfo.source == 1) {
  1942. this.patientInfo_source_1 = true
  1943. this.patientInfo_source_2 = false
  1944. } else if (this.patientInfo.source == 2) {
  1945. this.patientInfo_source_2 = true
  1946. this.patientInfo_source_1 = false
  1947. } else {
  1948. this.patientInfo_source_2 = false
  1949. this.patientInfo_source_1 = false
  1950. }
  1951. }
  1952. },
  1953. created() {
  1954. var xtuser = this.$store.getters.xt_user
  1955. this.orgname = xtuser.org.org_name
  1956. // this.orgname = "遂溪方济医院";
  1957. this.modeOptions = this.$store.getters.treatment_mode
  1958. this.replacementWays = this.$store.getters.replacement_ways
  1959. this.perfusionApparatus = this.$store.getters.perfusion_apparatus
  1960. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1961. var vascularAccess = getDataConfig('hemodialysis', 'vascular_access')
  1962. this.vascularAccess = vascularAccess
  1963. // console.log("hhe", vascularAccess);
  1964. console.log(
  1965. '血管通路部位',
  1966. getDataConfig('hemodialysis', 'vascular_access')
  1967. )
  1968. this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
  1969. var bloodAccessParOpera = getDataConfig(
  1970. 'hemodialysis',
  1971. 'vascular_access_desc'
  1972. )
  1973. var arr = []
  1974. var arrtwo = []
  1975. for (let i = 0; i < bloodAccessParOpera.length; i++) {
  1976. if (bloodAccessParOpera[i].name == '内瘘波动及震颤-存在') {
  1977. bloodAccessParOpera[i].name = '存在'
  1978. arr.push(bloodAccessParOpera[i])
  1979. }
  1980. if (bloodAccessParOpera[i].name == '内瘘波动及震颤-减弱') {
  1981. bloodAccessParOpera[i].name = '减弱'
  1982. arr.push(bloodAccessParOpera[i])
  1983. }
  1984. if (bloodAccessParOpera[i].name == '内瘘波动及震颤-消失') {
  1985. bloodAccessParOpera[i].name = '消失'
  1986. arr.push(bloodAccessParOpera[i])
  1987. }
  1988. if (bloodAccessParOpera[i].name == '直穿') {
  1989. arrtwo.push(bloodAccessParOpera[i])
  1990. }
  1991. if (bloodAccessParOpera[i].name == '人造血管') {
  1992. arrtwo.push(bloodAccessParOpera[i])
  1993. }
  1994. if (bloodAccessParOpera[i].name == '移植血管') {
  1995. arrtwo.push(bloodAccessParOpera[i])
  1996. }
  1997. this.arr = arr
  1998. this.arrtwo = arrtwo
  1999. }
  2000. console.log('arr', arr)
  2001. console.log('arrtwo', arrtwo)
  2002. // var bloodAccessParOpera = getDataConfig(
  2003. // "hemodialysis",
  2004. // "vascular_access_desc"
  2005. // );
  2006. // for (var key in bloodAccessParOpera) {
  2007. // this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  2008. // bloodAccessParOpera[key];
  2009. // }
  2010. var dialysateFormulationOptions = getDataConfig(
  2011. 'hemodialysis',
  2012. 'dialysate_formulation'
  2013. )
  2014. for (var key in dialysateFormulationOptions) {
  2015. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  2016. dialysateFormulationOptions[key]
  2017. }
  2018. const xtdate = this.$route.query && this.$route.query.xtdate
  2019. const xtno = this.$route.query && this.$route.query.xtno
  2020. if (
  2021. typeof xtdate === 'string' &&
  2022. xtdate.length > 0 &&
  2023. typeof xtno === 'string' &&
  2024. xtno.length > 0
  2025. ) {
  2026. this.queryParams.xtdate = xtdate
  2027. this.queryParams.xtno = xtno
  2028. this.getDialysisRecord()
  2029. } else {
  2030. this.$message.error('参数不齐')
  2031. return false
  2032. }
  2033. this.ways = getDataConfig('hemodialysis', 'way')
  2034. console.log('ways', this.ways)
  2035. this.consciousnesses = getDataConfig('hemodialysis', 'consciousness')
  2036. this.appetites = getDataConfig('hemodialysis', 'appetite')
  2037. this.postures = getDataConfig('hemodialysis', 'posture')
  2038. this.sick_condition = getDataConfig('hemodialysis', 'sick_condition')
  2039. this.precautions = getDataConfig('hemodialysis', 'precaution')
  2040. console.log('跌倒', this.precautions)
  2041. this.intake = getDataConfig('hemodialysis', 'intake')
  2042. this.nutrition = getDataConfig('hemodialysis', 'nutrition')
  2043. }
  2044. }
  2045. </script>
  2046. <style>
  2047. .dialysis-print-order {
  2048. width: 960px;
  2049. margin: 0 auto;
  2050. }
  2051. .dialysis-print-order .order-yy-name {
  2052. margin: auto;
  2053. text-align: center;
  2054. font-size: 20px;
  2055. letter-spacing: 5px;
  2056. }
  2057. .dialysis-print-order .order-title {
  2058. margin: auto;
  2059. font-weight: 600;
  2060. text-align: center;
  2061. font-size: 22px;
  2062. padding: 10px 20px 20px 20px;
  2063. }
  2064. .dialysis-print-order .table-box {
  2065. width: 100%;
  2066. line-height: 23px;
  2067. font-size: 14px;
  2068. }
  2069. .dialysis-print-order .print-table {
  2070. width: 100%;
  2071. text-align: center;
  2072. border-collapse: collapse;
  2073. line-height: 40px;
  2074. font-size: 14px;
  2075. }
  2076. .dialysis-print-order .print-table-no {
  2077. width: 100%;
  2078. text-align: center;
  2079. border-collapse: collapse;
  2080. font-size: 14px;
  2081. }
  2082. .dialysis-print-order .under-line {
  2083. border-bottom: 1px solid #999;
  2084. width: 95%;
  2085. text-align: center;
  2086. margin-left: 2px;
  2087. }
  2088. .dialysis-print-order .title-box {
  2089. text-align: center;
  2090. font-size: 16px;
  2091. }
  2092. .dialysis-print-order .radio-lebel-box {
  2093. font-weight: 400;
  2094. cursor: pointer;
  2095. }
  2096. .dialysis-print-order .radio-no {
  2097. opacity: 0;
  2098. outline: none;
  2099. position: absolute;
  2100. margin: 0;
  2101. width: 0;
  2102. height: 0;
  2103. z-index: -1;
  2104. }
  2105. .dialysis-print-order .radio-inner {
  2106. white-space: nowrap;
  2107. cursor: pointer;
  2108. outline: none;
  2109. display: inline-block;
  2110. line-height: 1;
  2111. position: relative;
  2112. vertical-align: middle;
  2113. }
  2114. .dialysis-print-order .radio-fang {
  2115. display: inline-block;
  2116. position: relative;
  2117. border: 1px solid #000;
  2118. box-sizing: border-box;
  2119. width: 14px;
  2120. height: 14px;
  2121. background-color: #fff;
  2122. z-index: 1;
  2123. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  2124. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  2125. }
  2126. .dialysis-print-order .is-checked-radio::after {
  2127. content: "√";
  2128. font-size: 15px;
  2129. }
  2130. .dialysis-print-order .print-table-no tr td {
  2131. padding: 8px 5px;
  2132. line-height: 25px;
  2133. }
  2134. .dialysis-print-order .print-table tr td {
  2135. padding: 1px 1px;
  2136. /*line-height: 25px;*/
  2137. }
  2138. .es-img {
  2139. height: 25px;
  2140. }
  2141. .advice-name {
  2142. text-align: left;
  2143. }
  2144. .advice-children {
  2145. display: flex;
  2146. }
  2147. .title-box-pro {
  2148. border: 0 #fff;
  2149. line-height: 25px;
  2150. height: 25px;
  2151. text-align: left;
  2152. padding-left: 10px !important;
  2153. }
  2154. .title-box-pro-tr {
  2155. border: 0 #fff;
  2156. }
  2157. .text-align-left {
  2158. text-align: left !important;
  2159. padding-left: 10px !important;
  2160. font-size: 14px !important;
  2161. line-height: 25px;
  2162. }
  2163. .print-table-tr-new td {
  2164. line-height: 20px !important;
  2165. }
  2166. .border-top-solid {
  2167. border: solid 1px #000;
  2168. }
  2169. .print-template-two tr {
  2170. line-height: 30px;
  2171. }
  2172. .parent {
  2173. text-align: left;
  2174. padding-left: 20px !important;
  2175. }
  2176. </style>