DialysisPrintOrderSixtyTwo.vue 101KB

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