DialysisPrintOrdereighty.vue 138KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697
  1. <template>
  2. <div>
  3. <el-button type="primary" @click="checkData">一键核对</el-button>
  4. <el-button type="primary" @click="toUpload">一键上传</el-button>
  5. <div id="dialysis-print-box-1" ref="pdfContent">
  6. <div
  7. id="dialysis-print-box-1-1"
  8. class="dialysis-print-order print-template-two print_page_main_content"
  9. >
  10. <div style="display: inline-block; width: 100%; text-align: center">
  11. <div class="order-yy-name"
  12. style=" letter-spacing: 0;font-weight: 600;font-size: 22px;display: inline-block; "
  13. >
  14. {{ orgname }}
  15. </div>
  16. <div class="order-title"
  17. style=" letter-spacing: 0; font-weight: 600; font-size: 22px;"
  18. >
  19. 血液净化治疗记录单
  20. </div>
  21. </div>
  22. <div class="row">
  23. <div class="inline_block">
  24. 姓名:
  25. <div class="under_line" style="width: 50px; text-align: center">
  26. {{ patientInfo.name }}
  27. </div>
  28. </div>
  29. <div class="inline_block" style="margin-left: 10px">
  30. 性别:
  31. <div class="under_line" style="width: 30px; text-align: center">
  32. {{ patientInfo_gender_1 ? "男" : "女" }}
  33. </div>
  34. </div>
  35. <div class="inline_block" style="margin-left: 10px">
  36. 年龄:
  37. <div class="under_line" style="width: 30px; text-align: center">
  38. {{ getAge(patientInfo) }}
  39. </div>
  40. </div>
  41. <div class="inline_block" v-if="receiverTreatmentAccess.condition!=1">
  42. 门诊:
  43. <div class="under_line" style="width: 30px; text-align: center">
  44. <check-box :checked="patientInfo_source_1"></check-box>
  45. </div>
  46. </div>
  47. <div class="inline_block" v-if="receiverTreatmentAccess.condition==1">
  48. 住院:
  49. <div class="under_line" style="width: 30px; text-align: center">
  50. <check-box :checked="receiverTreatmentAccess.condition == 1"></check-box>
  51. </div>
  52. </div>
  53. <div class="inline_block">
  54. 病区:
  55. <div class="under_line" style="width: 50px; text-align: center">
  56. <span v-if="receiverTreatmentAccess.condition != 1">{{
  57. patientInfo.DialysisSchedule.device_zone.name
  58. ? patientInfo.DialysisSchedule.device_zone.name
  59. : ""
  60. }}</span>
  61. </div>
  62. </div>
  63. <div class="inline_block">
  64. 床号:
  65. <div class="under_line" style="width: 50px; text-align: center">
  66. <span>{{
  67. dialysisOrder &&
  68. dialysisOrder.DeviceNumber &&
  69. dialysisOrder.DeviceNumber.number.length > 0
  70. ? dialysisOrder.DeviceNumber.number
  71. : patientInfo.DialysisSchedule.device_number.number
  72. }}</span>
  73. </div>
  74. </div>
  75. <div class="inline_block">
  76. 透析号:
  77. <div class="under_line" style="width: 70px; text-align: center">
  78. {{ patientInfo.dialysis_no }}
  79. </div>
  80. </div>
  81. <div class="inline_block" style="margin-left: 5px;">
  82. 住院号:
  83. <div class="under_line" style="width: 70px;text-align: left">
  84. {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number :'/' }}
  85. </div>
  86. </div>
  87. </div>
  88. <div class="row">
  89. <div style="">
  90. 诊断:
  91. <div style="border-bottom: 1px solid black; width: 95%; text-align: left;word-wrap: break-word;
  92. white-space: inherit;display: inline-block;"
  93. >
  94. {{ patientInfo.diagnose }}
  95. </div>
  96. </div>
  97. </div>
  98. <div class="row">
  99. <table class="proj_table">
  100. <tbody>
  101. <tr>
  102. <td colspan="2"
  103. style="letter-spacing: 5px;text-align: center;font-weight: 520;font-size: 16px;
  104. padding: 6px 8px;line-height: 30px;"
  105. >
  106. 透析前情况
  107. </td>
  108. </tr>
  109. <tr>
  110. <td colspan="2">
  111. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  112. <div class="inline_block" style="flex: 1">
  113. 本次透析日期:
  114. <div class="under_line" style="width: 100px; text-align: center">
  115. {{ xtdate }}
  116. </div>
  117. </div>
  118. <div class="inline_block" style="flex: 1">
  119. 透析次数:
  120. <div class="under_line" style="width: 70px; text-align: center">
  121. {{
  122. patientInfo.total_dialysis +
  123. patientInfo.user_sys_before_count
  124. ? patientInfo.total_dialysis +
  125. patientInfo.user_sys_before_count
  126. : "/"
  127. }}
  128. </div>次
  129. </div>
  130. <div class="inline_block" style="flex: 1">
  131. 透析机型号:
  132. <div class="under_line" style="width: 60%; text-align: center">
  133. <span v-if="dialysisOrder && dialysisOrder.bed_id !=0">
  134. {{ getnumberlist(dialysisOrder.bed_id) }}
  135. </span>
  136. <span v-else>
  137. {{ getnumberlist(patientInfo.DialysisSchedule.bed_id) }}
  138. </span>
  139. </div>
  140. </div>
  141. <div class="inline_block" style="flex: 1">
  142. 透析机号:
  143. <div class="under_line" style="width: 70px; text-align: center">
  144. {{
  145. dialysisOrder &&
  146. dialysisOrder.DeviceNumber &&
  147. dialysisOrder.DeviceNumber.number.length > 0
  148. ? dialysisOrder.DeviceNumber.number
  149. : patientInfo.DialysisSchedule.device_number.number
  150. }}
  151. </div>号
  152. </div>
  153. </div>
  154. <div class="row" style="padding: 2px 0; line-height: 23px;display: flex">
  155. <div class="inline_block" style="flex: 1;">
  156. 温度:
  157. <div class="under_line" style="width: 50px; text-align: center">
  158. {{
  159. predialysis.temperature
  160. ? predialysis.temperature
  161. : "/"
  162. }}
  163. </div>
  164. °C
  165. </div>
  166. <div class="inline_block" style="flex: 1;">
  167. 脉搏:
  168. <div class="under_line" style="width: 50px; text-align: center">
  169. {{
  170. predialysis.pulse_frequency
  171. ? predialysis.pulse_frequency
  172. : "/"
  173. }}
  174. </div>
  175. 次/分
  176. </div>
  177. <div class="inline_block" style="flex: 1;">
  178. 血压:
  179. <div class="under_line" style="width: 50px; text-align: center">
  180. {{
  181. predialysis.systolic_blood_pressure
  182. ? predialysis.systolic_blood_pressure
  183. : "/"
  184. }}
  185. </div>
  186. /
  187. <div class="under_line" style="width: 50px; text-align: center">
  188. {{
  189. predialysis.diastolic_blood_pressure
  190. ? predialysis.diastolic_blood_pressure
  191. : "/"
  192. }}
  193. </div>
  194. mmHg
  195. </div>
  196. <div class="inline_block" style="flex: 1;">
  197. 呼吸:
  198. <div class="under_line" style="width: 50px; text-align: center">
  199. {{
  200. predialysis.breathing_rate
  201. ? predialysis.breathing_rate
  202. : "/"
  203. }}
  204. </div>
  205. 次/分
  206. </div>
  207. </div>
  208. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  209. <div class="inline_block" style="flex: 1;">
  210. 透析时间:
  211. <div class="under_line"
  212. style=" width: 50%; text-align: center; white-space: normal; "
  213. >
  214. {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0"}}h
  215. {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0"}}min
  216. </div>
  217. </div>
  218. <div class="inline_block" style="flex: 1">
  219. 透析方式:
  220. <div class="under_line"
  221. style="width: 50%;text-align: center;white-space: normal;"
  222. >
  223. {{prescription.mode ? prescription.mode :'/'}}
  224. </div>
  225. </div>
  226. <div class="inline_block" style="flex: 1;">
  227. 血管通路:
  228. <div class="under_line" style="width: 68%;white-space: normal;">
  229. <!-- {{ QueryPartById(predialysis.blood_access_part_id) }} -->
  230. {{ predialysis.blood_access_part_id }}
  231. {{ predialysis.blood_access_part_opera_name }}
  232. </div>
  233. </div>
  234. <div class="inline_block" style="flex: 1">
  235. 导管:
  236. <div class="under_line"
  237. style="width: 80%; text-align: center;white-space: normal;"
  238. >
  239. {{ predialysis.catheter ? predialysis.catheter : "/" }}
  240. </div>
  241. </div>
  242. </div>
  243. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  244. <div class="inline_block" style="flex: 1">
  245. 透析(滤)器:
  246. <div class="under_line"
  247. style="width: 40%; text-align: center"
  248. >
  249. {{
  250. prescription.dialyzer_perfusion_apparatus
  251. ? prescription.dialyzer_perfusion_apparatus
  252. : ""
  253. }}
  254. <span v-if="prescription.dialyzer_perfusion_apparatus&&prescription.dialyzer_perfusion_apparatus!=''">/</span>
  255. {{
  256. prescription.dialysis_dialyszers
  257. ? prescription.dialysis_dialyszers
  258. : ""
  259. }}
  260. </div>
  261. </div>
  262. <div class="inline_block" style="flex: 1">
  263. 灌流器:
  264. <div class="under_line" style="width: 80px; text-align: center">
  265. {{
  266. prescription.dialysis_irrigation
  267. ? prescription.dialysis_irrigation
  268. : "/"
  269. }}
  270. </div>
  271. </div>
  272. <div class="inline_block" style="flex: 1">
  273. 置换方式:
  274. <div class="under_line"
  275. style="width: 50px; text-align: center"
  276. >
  277. {{
  278. getDisplaceLiquiPart(prescription.displace_liqui_part)
  279. }}
  280. </div>
  281. 置换量:
  282. <div class="under_line"
  283. style="width: 30px; text-align: center"
  284. >
  285. <span> {{
  286. prescription.replacement_total
  287. ? prescription.replacement_total
  288. : "/"
  289. }}
  290. </span>
  291. </div>
  292. L
  293. </div>
  294. <div class="inline_block" style="flex: 1">
  295. 血流量:
  296. <div class="under_line"
  297. style="width: 50px; text-align: center"
  298. >
  299. {{
  300. prescription.blood_flow_volume
  301. ? prescription.blood_flow_volume
  302. : "/"
  303. }}
  304. </div>
  305. ml/min
  306. </div>
  307. </div>
  308. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  309. <div class="inline_block" style="flex: 1">
  310. 干体重:
  311. <div class="under_line" style="width: 100px; text-align: center">
  312. {{
  313. predialysis.dry_weight ? predialysis.dry_weight : "/"
  314. }}
  315. </div>
  316. kg
  317. </div>
  318. <div class="inline_block" style="flex: 1">
  319. 上次透后体重:
  320. <div class="under_line" style="width: 100px; text-align: center">
  321. {{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}}
  322. </div>
  323. kg
  324. </div>
  325. <div class="inline_block" style="flex: 1">
  326. 透前体重:
  327. <div class="under_line" style="width: 70px; text-align: center">
  328. <span>{{
  329. predialysis.weight_before
  330. ? parseFloat(
  331. predialysis.weight_before -
  332. predialysis.additional_weight
  333. ).toFixed(1)
  334. : "/"
  335. }}
  336. </span>
  337. </div>
  338. kg
  339. </div>
  340. <div class="inline_block" style="flex: 1">
  341. 计划超滤量:
  342. <div class="under_line" style="width: 100px; text-align: center">
  343. {{
  344. prescription.target_ultrafiltration
  345. ? prescription.target_ultrafiltration
  346. : "/"
  347. }}
  348. </div>
  349. kg
  350. </div>
  351. </div>
  352. <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
  353. <div class="inline_block" style="flex: 1;">
  354. 透析液流量:
  355. <div class="under_line"
  356. style="width: 50px; text-align: center"
  357. >
  358. {{
  359. prescription.dialysate_flow
  360. ? prescription.dialysate_flow
  361. : "/"
  362. }}
  363. </div>
  364. ml/min
  365. </div>
  366. <div class="inline_block" style="flex: 1;">
  367. 透析液成分:钾:
  368. <div class="under_line"
  369. style="width: 50px; text-align: center"
  370. >
  371. {{ prescription.kalium ? prescription.kalium : "/" }}
  372. </div>
  373. mmol/L
  374. </div>
  375. <div class="inline_block" style="flex: 1;">
  376. 钠:
  377. <div class="under_line"
  378. style="width: 35px; text-align: center"
  379. >
  380. <span>{{ prescription.sodium ? prescription.sodium : "/" }}</span>
  381. </div>
  382. mmol/L
  383. 钙:
  384. <div class="under_line"
  385. style="width: 35px; text-align: center"
  386. >
  387. <span> {{ prescription.calcium ? prescription.calcium : "/" }}</span>
  388. </div>
  389. mmol/L
  390. </div>
  391. <div class="inline_block" style="flex: 1;">
  392. 碳酸氢根:
  393. <div
  394. class="under_line"
  395. style="width: 50px; text-align: center"
  396. >
  397. <span>{{
  398. prescription.bicarbonate ? prescription.bicarbonate : "/"
  399. }}
  400. </span>
  401. </div>
  402. mmol/L
  403. </div>
  404. </div>
  405. <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
  406. <div class="inline_block" style="flex: 1;">
  407. 抗凝剂:
  408. <div class="under_line"
  409. style="width: 150px; text-align: center"
  410. >
  411. <span>{{prescription.anticoagulant_name?prescription.anticoagulant_name:'/'}}</span>
  412. </div>
  413. </div>
  414. <div class="inline_block" style="flex: 1;"
  415. v-if="prescription.anticoagulant != 5"
  416. >
  417. 首剂:
  418. <div class="under_line"
  419. style="width: 50px; text-align: center"
  420. >
  421. {{
  422. prescription.anticoagulant_shouji
  423. ? prescription.anticoagulant_shouji
  424. : "/"
  425. }}
  426. </div>
  427. <span v-if="prescription.anticoagulant!=''">
  428. {{ getshouji(prescription.anticoagulant) }}
  429. </span>
  430. </div>
  431. <div class="inline_block" style="flex: 1;">
  432. 追加:
  433. <div class="under_line"
  434. style="width: 50px; text-align: center"
  435. >
  436. {{
  437. prescription.anticoagulant_weichi
  438. ? prescription.anticoagulant_weichi
  439. : "0"
  440. }}
  441. </div>
  442. <span v-if="prescription.anticoagulant!=''">
  443. {{ getweichi(prescription.anticoagulant) }}
  444. </span>
  445. </div>
  446. <div class="inline_block" style="flex: 1;"
  447. v-if="prescription.anticoagulant == 5"
  448. >
  449. 钙名称:
  450. <div
  451. class="under_line"
  452. style="width: 150px; text-align: center"
  453. >
  454. {{
  455. prescription.anticoagulant_gaimingcheng
  456. ? prescription.anticoagulant_gaimingcheng
  457. : "/"
  458. }}
  459. </div>
  460. </div>
  461. <div class="inline_block" style="flex: 1;"
  462. v-if="prescription.anticoagulant == 5"
  463. >
  464. 钙剂量:
  465. <div
  466. class="under_line"
  467. style="width: 50px; text-align: center"
  468. >
  469. {{
  470. prescription.anticoagulant_gaijiliang
  471. ? prescription.anticoagulant_gaijiliang
  472. : "/"
  473. }}
  474. </div>
  475. ml
  476. </div>
  477. <div class="inline_block" style="flex: 1;"
  478. v-if="prescription.anticoagulant != 5"
  479. >
  480. 总量:
  481. <div class="under_line"
  482. style="width: 50px; text-align: center"
  483. >
  484. {{
  485. prescription.anticoagulant_zongliang
  486. ? prescription.anticoagulant_zongliang
  487. : "/"
  488. }}
  489. </div>
  490. <span v-if="prescription.anticoagulant!=''">
  491. {{ getzongliang(prescription.anticoagulant) }}
  492. </span>
  493. </div>
  494. </div>
  495. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  496. <div style="flex:2">
  497. 流行性病史:
  498. <div class="under_line" style="width: 50%; text-align: center">
  499. <span style="display: inline-block;height: 30px;"></span>
  500. </div>
  501. </div>
  502. <div style="flex:1">医生签名:
  503. <div class="under_line" style="width: 150px; text-align: center">
  504. <span v-if="setAdminUserES( prescription == null ? 0 : prescription.creater ? prescription.creater : '' ) == ''">
  505. {{ getAdminUser( prescription == null ? 0
  506. : prescription.creater ? prescription.prescription_doctor : ""
  507. )
  508. }}
  509. </span>
  510. <img style="height: 30px"
  511. :src=" setAdminUserES(
  512. prescription == null ? 0 : prescription.creater
  513. ? prescription.creater : ''
  514. )
  515. " alt=""srcset=""
  516. v-else
  517. />
  518. </div>
  519. </div>
  520. </div>
  521. </td>
  522. </tr>
  523. <tr>
  524. <td style="padding: 0; position: relative" colspan="2">
  525. <table class="inside_table">
  526. <tbody>
  527. <tr>
  528. <td colspan="12"
  529. style="
  530. letter-spacing: 5px;
  531. text-align: center;
  532. font-weight: 520;
  533. font-size: 16px;
  534. padding: 0px 8px;
  535. line-height: 30px;
  536. "
  537. >
  538. 治疗记录
  539. </td>
  540. </tr>
  541. <tr>
  542. <td width="50">时间</td>
  543. <td width="70">血压<br />(mmHg)</td>
  544. <td width="70">脉搏<br />(次/分)</td>
  545. <td width="50">血流量<br />(ml/min)</td>
  546. <td width="50">动脉压<br />
  547. ({{monitors[0] && monitors[0]["venous_pressure_type"] == 2
  548. ? "kpa" : "mmHg"
  549. }})
  550. </td>
  551. <td width="50">
  552. 静脉压<br />({{
  553. monitors[0] &&
  554. monitors[0]["venous_pressure_type"] == 2
  555. ? "kpa"
  556. : "mmHg"
  557. }})
  558. </td>
  559. <td width="50">
  560. 跨膜压<br />({{
  561. monitors[0] &&
  562. monitors[0]["transmembrane_pressure_type"] == 2
  563. ? "kpa"
  564. : "mmHg"
  565. }})
  566. </td>
  567. <td width="60">透析液温度(°C)</td>
  568. <td width="60">电导度<br/>(ms/cm)</td>
  569. <td width="60">超滤量<br/>(ml)</td>
  570. <td width="200">病情变化及处理</td>
  571. <td width="200">责任护士</td>
  572. </tr>
  573. <tr v-for="(monitor, monindex) in monitors" :key="monindex" style="">
  574. <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  575. <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
  576. {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
  577. <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
  578. <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
  579. <td>
  580. {{monitor.arterial_pressure ? monitor.arterial_pressure : "/"}}
  581. </td>
  582. <td>
  583. <span>
  584. {{ monitor.venous_pressure ? monitor.venous_pressure : ""}}
  585. </span>
  586. </td>
  587. <td>
  588. <span>
  589. {{
  590. monitor.transmembrane_pressure
  591. ? monitor.transmembrane_pressure
  592. : ""
  593. }}
  594. </span>
  595. </td>
  596. <td>
  597. {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
  598. </td>
  599. <td>{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
  600. <td>{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</td>
  601. <td style="line-height: 16px; padding: 0px">
  602. <div
  603. style=" min-height: 35px; line-height: 35px;
  604. overflow: hidden;
  605. "
  606. >
  607. <span
  608. style="
  609. word-break: break-all;
  610. margin: 0;
  611. line-height: 16px;
  612. -webkit-line-clamp: 3;
  613. overflow: visible;
  614. display: inline-block;
  615. vertical-align: middle;
  616. height: auto;
  617. "
  618. >
  619. <template
  620. v-if="
  621. (dialysisOrder &&
  622. monitor.operate_time ==
  623. dialysisOrder.start_time)&&(org_id!=10414) && (org_id!=10683)
  624. "
  625. >【开始透析】 <span v-if="org_id ==10598">引血100ml/min</span>
  626. </template>
  627. {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{
  628. monitor.dispose
  629. }}
  630. &nbsp;{{ monitor.result }}
  631. </span>
  632. </div>
  633. </td>
  634. <td>
  635. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
  636. {{ getAdminUser(monitor.monitoring_nurse)}}
  637. </span>
  638. <span v-else
  639. style="display:flex;align-items:center;justify-content:space-around;height:36px;"
  640. >
  641. <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
  642. </span>
  643. </td>
  644. </tr>
  645. </tbody>
  646. </table>
  647. </td>
  648. </tr>
  649. <tr>
  650. <td style="padding: 0; position: relative" colspan="2">
  651. <table class="inside_table">
  652. <tbody>
  653. <tr style="line-height: 35px; padding: 8px 5px">
  654. <td
  655. colspan="7"
  656. style="
  657. letter-spacing: 5px;
  658. text-align: center;
  659. font-weight: 520;
  660. font-size: 16px;
  661. padding: 0px 8px;
  662. line-height: 30px;
  663. "
  664. >
  665. 医嘱内容
  666. </td>
  667. </tr>
  668. <tr style="line-height: 35px; padding: 8px 5px">
  669. <td style="font-size: 16px" width="10%">时间</td>
  670. <td style="font-size: 16px" colspan="2" width="45%">
  671. 医嘱内容
  672. </td>
  673. <td style="font-size: 16px" width="10%">医生签名</td>
  674. <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
  675. <td style="font-size: 16px" width="10%">执行人签名</td>
  676. <td style="font-size: 16px" width="10%">时间</td>
  677. </tr>
  678. <tr
  679. v-for="(advice, advice_index) in new_doctor_advice_list"
  680. :key="advice_index"
  681. >
  682. <td height="32px">
  683. <span v-if="advice.start_time">
  684. {{ getTime(advice.start_time, "{h}:{i}") }}
  685. </span>
  686. </td>
  687. <td height="32px" colspan="2"
  688. class="advice-name" style="padding-left: 7px"
  689. >
  690. <span v-for="(it,i) in advice.child" :key="i">
  691. <span v-if="it && it.advice_name">{{ it.advice_name}}</span>
  692. <span v-if="it && it.advice_desc">({{ it.advice_desc}}{{ it.drug_spec_unit }})</span>
  693. <span v-if="it.prescribing_number">{{ it.prescribing_number}}{{ it.prescribing_number_unit }}</span>
  694. <span v-if="it.single_dose != 0">{{ it.single_dose}}{{ it.single_dose_unit }}</span>
  695. <span v-if="it && it.delivery_way">{{ it.delivery_way }}</span>
  696. <span v-if="it && it.execution_frequency">{{ it.execution_frequency }}</span>
  697. <span v-if="it&& it.remark">{{ it.remark }}</span>&nbsp;&nbsp;&nbsp;
  698. </span>
  699. </td>
  700. <td height="32px">
  701. <span v-if="advice!=null && advice.advice_doctor>0">
  702. <span
  703. v-if="setAdminUserES(advice.advice_doctor) == ''"
  704. >{{ getAdminUser(advice.advice_doctor) }}
  705. </span>
  706. <img
  707. style="height: 30px"
  708. :src="setAdminUserES(advice.advice_doctor)"
  709. alt=""
  710. srcset=""
  711. v-else
  712. />
  713. </span>
  714. </td>
  715. <td height="32px">
  716. <span v-if="advice!=null && advice.execution_staff>0">
  717. <span
  718. v-if="setAdminUserES(advice.execution_staff) == ''"
  719. >{{ getAdminUser(advice.execution_staff) }}</span
  720. >
  721. <img
  722. style="height: 30px"
  723. :src="setAdminUserES(advice.execution_staff)"
  724. alt=""
  725. srcset=""
  726. v-else
  727. />
  728. </span>
  729. </td>
  730. <td height="32px">
  731. <span v-if="advice.execution_time">{{
  732. getTime(advice.execution_time, "{h}:{i}")
  733. }}</span>
  734. </td>
  735. </tr>
  736. <!-- <tr
  737. v-for="(advice, advice_index) in projectsOne"
  738. :key="advice_index"
  739. >
  740. <td height="32px;padding:1px 1px" width="10%">
  741. <span v-if="advice.start_time">
  742. {{ getTime(advice.start_time, "{h}:{i}") }}
  743. </span>
  744. </td>
  745. <td colspan="2"
  746. class="advice-name"
  747. style="
  748. letter-spacing: 5px;
  749. text-align: center;
  750. font-weight: 520;
  751. font-size: 14px;
  752. padding: 0px 8px;
  753. line-height: 30px;
  754. width: 200px;
  755. "
  756. >
  757. <span v-if="advice.type == 2"> {{advice && advice.project? advice.project.project_name: ""}} {{ advice.count }} {{ advice.unit }}</span>
  758. <span v-if="advice.type == 3"> {{advice && advice.good_info? advice.good_info.good_name: ""}} {{ advice.count }} {{ advice.unit }}</span>
  759. </td>
  760. <td height="32px">
  761. <span
  762. v-if="setAdminUserES(advice.doctor) == ''"
  763. >{{ getAdminUser(advice.doctor) }}</span
  764. >
  765. <img
  766. style="height: 30px"
  767. :src="setAdminUserES(advice.doctor)"
  768. alt=""
  769. srcset=""
  770. v-else
  771. />
  772. </td>
  773. <td height="32px">
  774. <span
  775. v-if="
  776. setAdminUserES(advice.execution_staff) == ''
  777. "
  778. >{{
  779. getAdminUser(advice.execution_staff)
  780. }}</span
  781. >
  782. <img
  783. style="height: 30px"
  784. :src="setAdminUserES(advice.execution_staff)"
  785. alt=""
  786. srcset=""
  787. v-else
  788. />
  789. </td>
  790. <td height="32px">
  791. <span v-if="advice.execution_time">{{
  792. getTime(advice.execution_time, "{h}:{i}")
  793. }}</span>
  794. </td>
  795. </tr> -->
  796. </tbody>
  797. </table>
  798. </td>
  799. </tr>
  800. </tbody>
  801. </table>
  802. </div>
  803. <div class="row" style="margin-top: -11px; position: relative">
  804. <table class="proj_table">
  805. <tbody>
  806. <tr>
  807. <td
  808. colspan="7"
  809. style="
  810. letter-spacing: 5px;
  811. text-align: center;
  812. font-weight: 520;
  813. font-size: 16px;
  814. padding: 6px 8px;
  815. line-height: 30px;
  816. "
  817. >
  818. 透析后情况
  819. </td>
  820. </tr>
  821. <tr>
  822. <td colspan="7">
  823. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  824. <div class="inline_block" style="flex: 1">
  825. 温度:
  826. <div class="under_line"
  827. style="width: 50px; text-align: center"
  828. >
  829. {{
  830. afterdialysis.temperature
  831. ? afterdialysis.temperature
  832. : "/"
  833. }}
  834. </div>
  835. °C
  836. </div>
  837. <div class="inline_block" style="flex: 1">
  838. 脉搏:
  839. <div class="under_line"
  840. style="width: 50px; text-align: center"
  841. >
  842. {{
  843. afterdialysis.pulse_frequency
  844. ? afterdialysis.pulse_frequency
  845. : "/"
  846. }}
  847. </div>
  848. 次/分
  849. </div>
  850. <div class="inline_block"style="flex: 1">
  851. 血压:
  852. <div class="under_line"
  853. style="width: 50px; text-align: center"
  854. >
  855. {{
  856. afterdialysis.systolic_blood_pressure
  857. ? afterdialysis.systolic_blood_pressure
  858. : "/"
  859. }}
  860. </div>
  861. /
  862. <div
  863. class="under_line"
  864. style="width: 50px; text-align: center"
  865. >
  866. {{
  867. afterdialysis.diastolic_blood_pressure
  868. ? afterdialysis.diastolic_blood_pressure
  869. : "/"
  870. }}
  871. </div>
  872. mmHg
  873. </div>
  874. <div class="inline_block" style="flex: 1">
  875. 呼吸:
  876. <div class="under_line"
  877. style="width: 50px; text-align: center"
  878. >
  879. {{
  880. afterdialysis.breathing_rate
  881. ? afterdialysis.breathing_rate
  882. : "/"
  883. }}
  884. </div>
  885. 次/分
  886. </div>
  887. </div>
  888. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  889. <div class="inline_block" style="flex: 2">
  890. 透析器凝血:
  891. <div
  892. class="under_line"
  893. style="
  894. width: 60%;
  895. text-align: center;
  896. white-space: normal;
  897. "
  898. >
  899. {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
  900. </div>
  901. </div>
  902. <div class="inline_block" style="flex: 2">
  903. 内瘘:
  904. <div
  905. class="under_line"
  906. style="
  907. width: 75%;
  908. text-align: center;
  909. white-space: normal;
  910. "
  911. >
  912. {{
  913. afterdialysis.internal_fistula
  914. ? afterdialysis.internal_fistula
  915. : "/"
  916. }}
  917. </div>
  918. </div>
  919. <div class="inline_block" style="flex: 2">
  920. 导管:
  921. <div class="under_line"
  922. style="width: 75%; text-align: center;white-space: normal;"
  923. >
  924. {{
  925. afterdialysis.catheter ? afterdialysis.catheter : "/"
  926. }}
  927. </div>
  928. </div>
  929. <div class="inline_block" style="flex: 2">
  930. 实际治疗时间:
  931. <div class="under_line"
  932. style="width: 30px; text-align: center"
  933. >
  934. {{
  935. afterdialysis.actual_treatment_hour
  936. ? afterdialysis.actual_treatment_hour
  937. : "/"
  938. }}
  939. </div>
  940. h
  941. <div class="under_line"
  942. style="width: 30px; text-align: center"
  943. >
  944. {{
  945. afterdialysis.actual_treatment_minute
  946. ? afterdialysis.actual_treatment_minute
  947. : 0
  948. }}
  949. </div>
  950. min
  951. </div>
  952. </div>
  953. <div class="row"
  954. style="padding: 2px 0; line-height: 23px; display: flex"
  955. >
  956. <div class="inline_block" style="flex: 1">
  957. 透后体重:
  958. <div class="under_line"
  959. style="width: 70px; text-align: center"
  960. >
  961. <span>
  962. {{
  963. afterdialysis.weight_after
  964. ? parseFloat(
  965. afterdialysis.weight_after -
  966. afterdialysis.additional_weight
  967. ).toFixed(1)
  968. : "/"
  969. }}
  970. </span>
  971. </div>
  972. kg
  973. </div>
  974. <div class="inline_block" style="flex: 1">
  975. 体重减少:
  976. <div
  977. class="under_line"
  978. style="width: 70px; text-align: center"
  979. >
  980. <!-- <span v-if="org_id!=10598 && org_id!=10551">{{
  981. afterdialysis.weight_loss
  982. ? afterdialysis.weight_loss
  983. : "/"
  984. }}
  985. </span> -->
  986. <span>
  987. {{(predialysis.weight_before - afterdialysis.weight_after).toFixed(2)}}
  988. </span>
  989. </div>
  990. kg
  991. </div>
  992. <div class="inline_block" style="flex: 1">
  993. 透析中入量(L):
  994. <div class="under_line"
  995. style="width: 70px; text-align: center"
  996. >
  997. {{
  998. afterdialysis.dialysis_intakes
  999. ? afterdialysis.dialysis_intakes
  1000. : "/"
  1001. }}
  1002. </div>
  1003. {{ getUnit(afterdialysis.dialysis_intakes_unit) }}
  1004. </div>
  1005. <div class="inline_block" style="flex: 1">
  1006. 实际超滤量:
  1007. <div class="under_line"
  1008. style="width: 70px; text-align: center"
  1009. >
  1010. {{
  1011. afterdialysis.actual_ultrafiltration
  1012. ? afterdialysis.actual_ultrafiltration
  1013. : "/"
  1014. }}
  1015. </div>
  1016. kg
  1017. </div>
  1018. </div>
  1019. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  1020. <div class="inline_block"
  1021. style="flex: 1; display: inline-block"
  1022. >
  1023. 治疗小结:
  1024. <div class="under_line"
  1025. style=" width: 860px;
  1026. line-height: 25px;
  1027. text-align: left;
  1028. margin-left: 2px;
  1029. display: inline-block;
  1030. white-space: normal;
  1031. "
  1032. >
  1033. {{
  1034. summary.dialysis_summary
  1035. ? summary.dialysis_summary
  1036. : "/"
  1037. }}
  1038. </div>
  1039. </div>
  1040. </div>
  1041. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  1042. <div class="inline_block"
  1043. style="flex: 1; display: inline-block"
  1044. >
  1045. 宣教知识:
  1046. <div
  1047. class="under_line"
  1048. style="
  1049. width: 860px;
  1050. line-height: 25px;
  1051. text-align: left;
  1052. margin-left: 2px;
  1053. display: inline-block;
  1054. white-space: normal;
  1055. "
  1056. >
  1057. {{
  1058. summary.mission
  1059. ? summary.mission
  1060. : "/"
  1061. }}
  1062. </div>
  1063. </div>
  1064. </div>
  1065. </td>
  1066. </tr>
  1067. <tr>
  1068. <td colspan="7">
  1069. <div class="row"
  1070. style="padding: 2px 0; line-height: 23px; display: flex"
  1071. >
  1072. <div>
  1073. <div class="inline_block" style="flex: 1">
  1074. 上机护士:
  1075. <div class="under_line"
  1076. style="width: 90px; text-align: center"
  1077. >
  1078. <span
  1079. style="height: 30px; display: inline-block"
  1080. v-if="
  1081. setAdminUserES(
  1082. dialysisOrder == null
  1083. ? 0
  1084. : dialysisOrder.start_nurse
  1085. ) == ''
  1086. "
  1087. >
  1088. {{
  1089. getAdminUser(
  1090. dialysisOrder == null
  1091. ? 0
  1092. : dialysisOrder.start_nurse
  1093. )
  1094. }}</span
  1095. >
  1096. <img
  1097. style="height: 30px"
  1098. :src="
  1099. setAdminUserES(
  1100. dialysisOrder == null
  1101. ? 0
  1102. : dialysisOrder.start_nurse
  1103. )
  1104. "
  1105. alt=""
  1106. srcset=""
  1107. v-else
  1108. />
  1109. </div>
  1110. </div>
  1111. </div>
  1112. <div class="inline_block" style="flex: 1">
  1113. <span>核对护士:</span>
  1114. <div
  1115. class="under_line"
  1116. style="width: 80px; text-align: center"
  1117. v-if="dialysisOrder == null"
  1118. >
  1119. <span
  1120. style="height: 30px; display: inline-block"
  1121. v-if="
  1122. setAdminUserES(check == null ? 0 : check.creater) ==
  1123. ''
  1124. "
  1125. >
  1126. {{ getAdminUser(check == null ? 0 : check.creater) }}
  1127. </span>
  1128. <img
  1129. style="height: 30px"
  1130. :src="
  1131. setAdminUserES(check == null ? 0 : check.creater)
  1132. "
  1133. alt=""
  1134. srcset=""
  1135. v-else
  1136. />
  1137. </div>
  1138. <div
  1139. class="under_line"
  1140. style="width: 80px; text-align: center"
  1141. v-if="
  1142. dialysisOrder != null &&
  1143. dialysisOrder.start_nurse == check.modifier
  1144. "
  1145. >
  1146. <span
  1147. style="height: 30px; display: inline-block"
  1148. v-if="
  1149. setAdminUserES(check == null ? 0 : check.creater) ==
  1150. ''
  1151. "
  1152. >
  1153. {{ getAdminUser(check == null ? 0 : check.creater) }}
  1154. </span>
  1155. <img
  1156. style="height: 30px"
  1157. :src="
  1158. setAdminUserES(check == null ? 0 : check.creater)
  1159. "
  1160. alt=""
  1161. srcset=""
  1162. v-else
  1163. />
  1164. </div>
  1165. <div
  1166. class="under_line"
  1167. style="width: 80px; text-align: center"
  1168. v-if="
  1169. dialysisOrder != null &&
  1170. dialysisOrder.start_nurse == check.creater
  1171. "
  1172. >
  1173. <span
  1174. style="height: 30px; display: inline-block"
  1175. v-if="
  1176. setAdminUserES(
  1177. check == null ? 0 : check.modifier
  1178. ) == ''
  1179. "
  1180. >
  1181. {{ getAdminUser(check == null ? 0 : check.modifier) }}
  1182. </span>
  1183. <img
  1184. style="height: 30px"
  1185. :src="
  1186. setAdminUserES(check == null ? 0 : check.modifier)
  1187. "
  1188. alt=""
  1189. srcset=""
  1190. v-else
  1191. />
  1192. </div>
  1193. <div
  1194. class="under_line"
  1195. style="width: 80px; text-align: center"
  1196. v-if="
  1197. dialysisOrder != null &&
  1198. dialysisOrder.start_nurse != check.creater &&
  1199. dialysisOrder.start_nurse != check.modifier
  1200. "
  1201. >
  1202. <span
  1203. style="height: 30px; display: inline-block"
  1204. v-if="
  1205. setAdminUserES(check == null ? 0 : check.creater) ==
  1206. ''
  1207. "
  1208. >
  1209. {{ getAdminUser(check == null ? 0 : check.creater) }}
  1210. </span>
  1211. <img
  1212. style="height: 30px"
  1213. :src="
  1214. setAdminUserES(check == null ? 0 : check.creater)
  1215. "
  1216. alt=""
  1217. srcset=""
  1218. v-else
  1219. />
  1220. </div>
  1221. </div>
  1222. <div class="inline_block" style="flex: 1">
  1223. 下机护士:
  1224. <div
  1225. class="under_line"
  1226. style="width: 80px; text-align: center"
  1227. >
  1228. <span
  1229. style="height: 30px; display: inline-block"
  1230. v-if="
  1231. setAdminUserES(
  1232. dialysisOrder == null
  1233. ? 0
  1234. : dialysisOrder.finish_nurse
  1235. ) == ''
  1236. "
  1237. >
  1238. {{
  1239. getAdminUser(
  1240. dialysisOrder == null
  1241. ? 0
  1242. : dialysisOrder.finish_nurse
  1243. )
  1244. }}
  1245. </span>
  1246. <img
  1247. style="height: 30px"
  1248. :src="
  1249. setAdminUserES(
  1250. dialysisOrder == null
  1251. ? 0
  1252. : dialysisOrder.finish_nurse
  1253. )
  1254. "
  1255. alt=""
  1256. srcset=""
  1257. v-else
  1258. />
  1259. </div>
  1260. </div>
  1261. <div class="inline_block" style="flex: 1">
  1262. 上机时间
  1263. <div class="under_line"
  1264. style="width: 80px; text-align: center"
  1265. >
  1266. <span style="height: 30px;display: inline-block;">
  1267. </span>
  1268. <span v-if="dialysisOrder!=null">
  1269. {{getTime(dialysisOrder.start_time, "{y}-{m}-{d} {h}:{i}") ?
  1270. getTime(dialysisOrder.start_time, "{y}-{m}-{d} {h}:{i}") :''}}
  1271. </span>
  1272. </div>
  1273. </div>
  1274. <div class="inline_block" style="flex: 1">
  1275. 下机时间:
  1276. <div class="under_line"
  1277. style="width: 80px; text-align: center"
  1278. >
  1279. <span style="height: 30px; display: inline-block">
  1280. </span>
  1281. <span v-if="dialysisOrder!=null">
  1282. {{ getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") ?
  1283. getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") : "0" }}
  1284. </span>
  1285. </div>
  1286. </div>
  1287. </div>
  1288. </td>
  1289. </tr>
  1290. </tbody>
  1291. </table>
  1292. </div>
  1293. </div>
  1294. </div>
  1295. <div id="dialysis-print-box-1-2" class="dialysis-print-order print-template-two print_page_main_content" style="position: relative;">
  1296. <div class="order-yy-name">{{ orgname }}</div>
  1297. <div class="order_title" v-if="org_id!=0&&org_id!=10579">血液净化科医嘱及执行单</div>
  1298. <div class="order_title" v-if=" org_id==10579">血液净化治疗记录单</div>
  1299. <div class="row" style="margin-top: 15px">
  1300. <div class="inline_block">
  1301. 科室:
  1302. <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
  1303. &nbsp;
  1304. <check-box text="住院" :checked="patientInfo_source_2"></check-box>
  1305. </div>
  1306. <div class="inline_block" style="margin-left: 5px;">
  1307. 住院号:
  1308. <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
  1309. {{ patientInfo.admission_number }}
  1310. </div>
  1311. <div class="under_line" style="width: 70px;text-align: left" v-else>
  1312. {{ "/" }}
  1313. </div>
  1314. </div>
  1315. <div class="inline_block" style="margin-left:10px;">
  1316. 姓名:
  1317. <div class="under_line" style="width: 50px;text-align: left">
  1318. {{ patientInfo.name }}
  1319. </div>
  1320. </div>
  1321. <div class="inline_block" style="margin-left: 10px;">
  1322. 性别:
  1323. <check-box text="男" :checked="patientInfo_gender_1"></check-box>
  1324. &nbsp;
  1325. <check-box text="女" :checked="patientInfo_gender_2"></check-box>
  1326. </div>
  1327. <div class="inline_block" style="margin-left: 10px;">
  1328. 年龄:
  1329. <div class="under_line" style="width: 30px;text-align: left">
  1330. {{ getAge(patientInfo) }}
  1331. </div>
  1332. </div>
  1333. <div class="inline_block" style="margin-left: 10px;">
  1334. 透析日期:
  1335. <div class="under_line" style="width: 100px;text-align: left">
  1336. {{ xtdate }}
  1337. </div>
  1338. </div>
  1339. </div>
  1340. <div class="row" style="margin-top: 15px">
  1341. <div class="inline_block" style="">
  1342. 诊断:
  1343. <div class="under_line" style="width:180px;text-align: left;white-space: normal;">
  1344. {{ patientInfo.diagnose }}
  1345. </div>
  1346. </div>
  1347. </div>
  1348. <table class="print-table-no">
  1349. <tbody>
  1350. <tr style="line-height: 35px; padding: 8px 5px">
  1351. <td
  1352. colspan="7"
  1353. style="
  1354. letter-spacing: 5px;
  1355. text-align: center;
  1356. font-weight: 520;
  1357. font-size: 16px;
  1358. padding: 6px 8px;
  1359. line-height: 30px;
  1360. "
  1361. >
  1362. 医嘱内容
  1363. </td>
  1364. </tr>
  1365. <tr style="line-height: 35px; padding: 8px 5px">
  1366. <td style="font-size: 16px" width="10%">时间</td>
  1367. <td style="font-size: 16px" colspan="2" width="45%">
  1368. 医嘱内容
  1369. </td>
  1370. <td style="font-size: 16px" width="10%">医生签名</td>
  1371. <td style="font-size: 16px" width="10%">执行人签名</td>
  1372. <td style="font-size: 16px" width="10%">时间</td>
  1373. <td
  1374. style="font-size: 16px"
  1375. width="10%"
  1376. v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
  1377. >
  1378. 核对护士
  1379. </td>
  1380. </tr>
  1381. <tr
  1382. v-for="(advice, advice_index) in doctor_advices"
  1383. :key="advice_index"
  1384. >
  1385. <td height="32px">
  1386. <span v-if="advice.start_time">
  1387. {{ getTime(advice.start_time, "{h}:{i}") }}
  1388. </span>
  1389. </td>
  1390. <td
  1391. height="32px"
  1392. colspan="2"
  1393. class="advice-name"
  1394. style="padding-left: 7px"
  1395. >
  1396. <span v-if="advice.parent_id > 0">---></span>
  1397. <span>{{ advice.advice_name }}</span>
  1398. <span v-if="advice && advice.advice_desc"
  1399. >({{ advice.advice_desc
  1400. }}{{ advice.drug_spec_unit }})</span
  1401. >
  1402. <span v-if="advice.prescribing_number"
  1403. >&nbsp;&nbsp; {{ advice.prescribing_number
  1404. }}{{ advice.prescribing_number_unit }}</span
  1405. >
  1406. <span v-if="advice.single_dose != 0"
  1407. >{{ advice.single_dose
  1408. }}{{ advice.single_dose_unit }}</span
  1409. >
  1410. <span v-if="advice.parent_id == 0">{{
  1411. advice.delivery_way
  1412. }}</span>
  1413. <span v-if="advice.parent_id == 0">{{
  1414. advice.execution_frequency
  1415. }}</span>
  1416. <span
  1417. v-if="
  1418. advice.parent_id == 0 && advice.remark.length > 0
  1419. "
  1420. >({{ advice.remark }})</span
  1421. >
  1422. </td>
  1423. <td height="32px">
  1424. <span
  1425. v-if="setAdminUserES(advice.advice_doctor) == ''"
  1426. >{{ getAdminUser(advice.advice_doctor) }}</span
  1427. >
  1428. <img
  1429. style="height: 30px"
  1430. :src="setAdminUserES(advice.advice_doctor)"
  1431. alt=""
  1432. srcset=""
  1433. v-else
  1434. />
  1435. </td>
  1436. <td height="32px">
  1437. <span
  1438. v-if="setAdminUserES(advice.execution_staff) == ''"
  1439. >{{ getAdminUser(advice.execution_staff) }}</span
  1440. >
  1441. <img
  1442. style="height: 30px"
  1443. :src="setAdminUserES(advice.execution_staff)"
  1444. alt=""
  1445. srcset=""
  1446. v-else
  1447. />
  1448. </td>
  1449. <td height="32px">
  1450. <span v-if="advice.execution_time">{{
  1451. getTime(advice.execution_time, "{h}:{i}")
  1452. }}</span>
  1453. </td>
  1454. <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
  1455. <span v-if="setAdminUserES(advice.checker) == ''">{{
  1456. getAdminUser(advice.checker)
  1457. }}</span>
  1458. <img
  1459. style="height: 30px"
  1460. :src="setAdminUserES(advice.checker)"
  1461. alt=""
  1462. srcset=""
  1463. v-else
  1464. />
  1465. </td>
  1466. </tr>
  1467. <tr v-if="org_id == 0 || org_id == 10579">
  1468. <td colspan="7">
  1469. <div
  1470. class="row"
  1471. style="padding: 2px 0; line-height: 23px; display: flex"
  1472. >
  1473. <div v-if="org_id == 0 || org_id == 10440">
  1474. <div class="inline_block" style="flex: 1">
  1475. 上机护士:
  1476. <div
  1477. class="under_line"
  1478. style="width: 90px; text-align: center"
  1479. >
  1480. <span
  1481. style="height: 30px; display: inline-block"
  1482. v-if="
  1483. setAdminUserES(
  1484. dialysisOrder == null
  1485. ? 0
  1486. : dialysisOrder.start_nurse
  1487. ) == ''
  1488. "
  1489. >
  1490. {{
  1491. getAdminUser(
  1492. dialysisOrder == null
  1493. ? 0
  1494. : dialysisOrder.start_nurse
  1495. )
  1496. }}</span
  1497. >
  1498. <img
  1499. style="height: 35px"
  1500. :src="
  1501. setAdminUserES(
  1502. dialysisOrder == null
  1503. ? 0
  1504. : dialysisOrder.start_nurse
  1505. )
  1506. "
  1507. alt=""
  1508. srcset=""
  1509. v-else
  1510. />
  1511. </div>
  1512. </div>
  1513. </div>
  1514. <div v-if="org_id ==10644">
  1515. <div class="inline_block" style="flex: 1" v-if="predialysis.catheter == ''">
  1516. 穿刺护士:
  1517. <div
  1518. class="under_line"
  1519. style="width: 90px; text-align: center"
  1520. >
  1521. <span
  1522. style="height: 30px; display: inline-block"
  1523. v-if="
  1524. setAdminUserES(
  1525. dialysisOrder == null
  1526. ? 0
  1527. : dialysisOrder.puncture_nurse
  1528. ) == ''
  1529. "
  1530. >
  1531. {{
  1532. getAdminUser(
  1533. dialysisOrder == null
  1534. ? 0
  1535. : dialysisOrder.puncture_nurse
  1536. )
  1537. }}</span
  1538. >
  1539. <img
  1540. style="height: 35px"
  1541. :src="
  1542. setAdminUserES(
  1543. dialysisOrder == null
  1544. ? 0
  1545. : dialysisOrder.puncture_nurse
  1546. )
  1547. "
  1548. alt=""
  1549. srcset=""
  1550. v-else
  1551. />
  1552. </div>
  1553. </div>
  1554. <div class="inline_block" style="flex: 1" v-if="predialysis.catheter != ''">
  1555. 换药护士:
  1556. <div
  1557. class="under_line"
  1558. style="width: 90px; text-align: center"
  1559. v-if="org_id==10644"
  1560. >
  1561. <span
  1562. style="height: 30px; display: inline-block"
  1563. v-if="
  1564. setAdminUserES(
  1565. dialysisOrder == null
  1566. ? 0
  1567. : dialysisOrder.change_nurse
  1568. ) == ''
  1569. "
  1570. >
  1571. {{
  1572. getAdminUser(
  1573. dialysisOrder == null
  1574. ? 0
  1575. : dialysisOrder.change_nurse
  1576. )
  1577. }}</span
  1578. >
  1579. <img
  1580. style="height: 35px"
  1581. :src="
  1582. setAdminUserES(
  1583. dialysisOrder == null
  1584. ? 0
  1585. : dialysisOrder.change_nurse
  1586. )
  1587. "
  1588. alt=""
  1589. srcset=""
  1590. v-else
  1591. />
  1592. </div>
  1593. <div
  1594. class="under_line"
  1595. style="width: 90px; text-align: center"
  1596. v-if="org_id!=10644"
  1597. >
  1598. <span
  1599. style="height: 30px; display: inline-block"
  1600. v-if="
  1601. setAdminUserES(
  1602. dialysisOrder == null
  1603. ? 0
  1604. : dialysisOrder.puncture_nurse
  1605. ) == ''
  1606. "
  1607. >
  1608. {{
  1609. getAdminUser(
  1610. dialysisOrder == null
  1611. ? 0
  1612. : dialysisOrder.puncture_nurse
  1613. )
  1614. }}</span
  1615. >
  1616. <img
  1617. style="height: 35px"
  1618. :src="
  1619. setAdminUserES(
  1620. dialysisOrder == null
  1621. ? 0
  1622. : dialysisOrder.puncture_nurse
  1623. )
  1624. "
  1625. alt=""
  1626. srcset=""
  1627. v-else
  1628. />
  1629. </div>
  1630. </div>
  1631. </div>
  1632. <div v-if="org_id !=10644 && org_id!=10440">
  1633. <div class="inline_block" style="flex: 1" v-if="predialysis.catheter == ''">
  1634. 穿刺护士:
  1635. <div
  1636. class="under_line"
  1637. style="width: 90px; text-align: center"
  1638. >
  1639. <span
  1640. style="height: 30px; display: inline-block"
  1641. v-if="
  1642. setAdminUserES(
  1643. dialysisOrder == null
  1644. ? 0
  1645. : dialysisOrder.puncture_nurse
  1646. ) == ''
  1647. "
  1648. >
  1649. {{
  1650. getAdminUser(
  1651. dialysisOrder == null
  1652. ? 0
  1653. : dialysisOrder.puncture_nurse
  1654. )
  1655. }}</span
  1656. >
  1657. <img
  1658. style="height: 35px"
  1659. :src="
  1660. setAdminUserES(
  1661. dialysisOrder == null
  1662. ? 0
  1663. : dialysisOrder.puncture_nurse
  1664. )
  1665. "
  1666. alt=""
  1667. srcset=""
  1668. v-else
  1669. />
  1670. </div>
  1671. </div>
  1672. <div class="inline_block" style="flex: 1" v-if="predialysis.catheter != ''">
  1673. 穿刺护士:
  1674. <div
  1675. class="under_line"
  1676. style="width: 90px; text-align: center"
  1677. v-if="org_id==10644"
  1678. >
  1679. <span
  1680. style="height: 30px; display: inline-block"
  1681. v-if="
  1682. setAdminUserES(
  1683. dialysisOrder == null
  1684. ? 0
  1685. : dialysisOrder.puncture_nurse
  1686. ) == ''
  1687. "
  1688. >
  1689. {{
  1690. getAdminUser(
  1691. dialysisOrder == null
  1692. ? 0
  1693. : dialysisOrder.puncture_nurse
  1694. )
  1695. }}</span
  1696. >
  1697. <img
  1698. style="height: 35px"
  1699. :src="
  1700. setAdminUserES(
  1701. dialysisOrder == null
  1702. ? 0
  1703. : dialysisOrder.puncture_nurse
  1704. )
  1705. "
  1706. alt=""
  1707. srcset=""
  1708. v-else
  1709. />
  1710. </div>
  1711. <div
  1712. class="under_line"
  1713. style="width: 90px; text-align: center"
  1714. v-if="org_id!=10644"
  1715. >
  1716. <span
  1717. style="height: 30px; display: inline-block"
  1718. v-if="
  1719. setAdminUserES(
  1720. dialysisOrder == null
  1721. ? 0
  1722. : dialysisOrder.puncture_nurse
  1723. ) == ''
  1724. "
  1725. >
  1726. {{
  1727. getAdminUser(
  1728. dialysisOrder == null
  1729. ? 0
  1730. : dialysisOrder.puncture_nurse
  1731. )
  1732. }}</span
  1733. >
  1734. <img
  1735. style="height: 35px"
  1736. :src="
  1737. setAdminUserES(
  1738. dialysisOrder == null
  1739. ? 0
  1740. : dialysisOrder.puncture_nurse
  1741. )
  1742. "
  1743. alt=""
  1744. srcset=""
  1745. v-else
  1746. />
  1747. </div>
  1748. </div>
  1749. </div>
  1750. <div v-if="org_id==10440">
  1751. <div class="inline_block" style="flex: 1">
  1752. <div>
  1753. <span>责任护士:</span>
  1754. <div
  1755. class="under_line"
  1756. style="width: 80px; text-align: center"
  1757. >
  1758. <span
  1759. style="height: 35px; display: inline-block"
  1760. v-if="
  1761. setAdminUserES(
  1762. dialysisOrder == null
  1763. ? 0
  1764. : dialysisOrder.start_nurse
  1765. ) == ''
  1766. "
  1767. >
  1768. {{
  1769. getAdminUser(
  1770. dialysisOrder == null
  1771. ? 0
  1772. : dialysisOrder.start_nurse
  1773. )
  1774. }}</span
  1775. >
  1776. <img
  1777. style="height: 30px"
  1778. :src="
  1779. setAdminUserES(
  1780. dialysisOrder == null
  1781. ? 0
  1782. : dialysisOrder.start_nurse
  1783. )
  1784. "
  1785. alt=""
  1786. srcset=""
  1787. v-else
  1788. />
  1789. </div>
  1790. </div>
  1791. </div>
  1792. </div>
  1793. <div v-if="org_id!=0&&org_id!=10440&&org_id!= 10206">
  1794. <div class="inline_block" style="flex: 1">
  1795. <span v-if="org_id==10414">责任护士:</span>
  1796. <span v-else>治疗护士:</span>
  1797. <div
  1798. class="under_line"
  1799. style="width: 80px; text-align: center"
  1800. >
  1801. <span
  1802. style="height: 30px; display: inline-block"
  1803. v-if="
  1804. setAdminUserES(
  1805. dialysisOrder == null
  1806. ? 0
  1807. : dialysisOrder.start_nurse
  1808. ) == ''
  1809. "
  1810. >
  1811. {{
  1812. getAdminUser(
  1813. dialysisOrder == null
  1814. ? 0
  1815. : dialysisOrder.start_nurse
  1816. )
  1817. }}</span
  1818. >
  1819. <img
  1820. style="height: 30px"
  1821. :src="
  1822. setAdminUserES(
  1823. dialysisOrder == null
  1824. ? 0
  1825. : dialysisOrder.start_nurse
  1826. )
  1827. "
  1828. alt=""
  1829. srcset=""
  1830. v-else
  1831. />
  1832. </div>
  1833. </div>
  1834. </div>
  1835. <div class="inline_block" style="flex: 1">
  1836. <span v-if="org_id==10387 || org_id ==10206 || org_id == 0" >核对护士:</span>
  1837. <span v-else >核对人员:</span>
  1838. <div
  1839. class="under_line"
  1840. style="width: 80px; text-align: center"
  1841. v-if="dialysisOrder == null"
  1842. >
  1843. <span
  1844. style="height: 30px; display: inline-block"
  1845. v-if="
  1846. setAdminUserES(check == null ? 0 : check.creater) ==
  1847. ''
  1848. "
  1849. >
  1850. {{ getAdminUser(check == null ? 0 : check.creater) }}
  1851. </span>
  1852. <img
  1853. style="height: 30px"
  1854. :src="
  1855. setAdminUserES(check == null ? 0 : check.creater)
  1856. "
  1857. alt=""
  1858. srcset=""
  1859. v-else
  1860. />
  1861. </div>
  1862. <div
  1863. class="under_line"
  1864. style="width: 80px; text-align: center"
  1865. v-if="
  1866. dialysisOrder != null &&
  1867. dialysisOrder.start_nurse == check.modifier
  1868. "
  1869. >
  1870. <span
  1871. style="height: 30px; display: inline-block"
  1872. v-if="
  1873. setAdminUserES(check == null ? 0 : check.creater) ==
  1874. ''
  1875. "
  1876. >
  1877. {{ getAdminUser(check == null ? 0 : check.creater) }}
  1878. </span>
  1879. <img
  1880. style="height: 30px"
  1881. :src="
  1882. setAdminUserES(check == null ? 0 : check.creater)
  1883. "
  1884. alt=""
  1885. srcset=""
  1886. v-else
  1887. />
  1888. </div>
  1889. <div
  1890. class="under_line"
  1891. style="width: 80px; text-align: center"
  1892. v-if="
  1893. dialysisOrder != null &&
  1894. dialysisOrder.start_nurse == check.creater
  1895. "
  1896. >
  1897. <span
  1898. style="height: 30px; display: inline-block"
  1899. v-if="
  1900. setAdminUserES(
  1901. check == null ? 0 : check.modifier
  1902. ) == ''
  1903. "
  1904. >
  1905. {{ getAdminUser(check == null ? 0 : check.modifier) }}
  1906. </span>
  1907. <img
  1908. style="height: 30px"
  1909. :src="
  1910. setAdminUserES(check == null ? 0 : check.modifier)
  1911. "
  1912. alt=""
  1913. srcset=""
  1914. v-else
  1915. />
  1916. </div>
  1917. <div
  1918. class="under_line"
  1919. style="width: 80px; text-align: center"
  1920. v-if="
  1921. dialysisOrder != null &&
  1922. dialysisOrder.start_nurse != check.creater &&
  1923. dialysisOrder.start_nurse != check.modifier
  1924. "
  1925. >
  1926. <span
  1927. style="height: 30px; display: inline-block"
  1928. v-if="
  1929. setAdminUserES(check == null ? 0 : check.creater) ==
  1930. ''
  1931. "
  1932. >
  1933. {{ getAdminUser(check == null ? 0 : check.creater) }}
  1934. </span>
  1935. <img
  1936. style="height: 30px"
  1937. :src="
  1938. setAdminUserES(check == null ? 0 : check.creater)
  1939. "
  1940. alt=""
  1941. srcset=""
  1942. v-else
  1943. />
  1944. </div>
  1945. </div>
  1946. <div class="inline_block" style="flex: 1" v-if="org_id!=10579 && org_id!=0">
  1947. 下机护士:
  1948. <div
  1949. class="under_line"
  1950. style="width: 80px; text-align: center"
  1951. >
  1952. <span
  1953. style="height: 30px; display: inline-block"
  1954. v-if="
  1955. setAdminUserES(
  1956. dialysisOrder == null
  1957. ? 0
  1958. : dialysisOrder.finish_nurse
  1959. ) == ''
  1960. "
  1961. >
  1962. {{
  1963. getAdminUser(
  1964. dialysisOrder == null
  1965. ? 0
  1966. : dialysisOrder.finish_nurse
  1967. )
  1968. }}
  1969. </span>
  1970. <img
  1971. style="height: 30px"
  1972. :src="
  1973. setAdminUserES(
  1974. dialysisOrder == null
  1975. ? 0
  1976. : dialysisOrder.finish_nurse
  1977. )
  1978. "
  1979. alt=""
  1980. srcset=""
  1981. v-else
  1982. />
  1983. </div>
  1984. </div>
  1985. <div class="inline_block" style="flex: 1" v-if="org_id==10579 || org_id == 0">
  1986. 患者签名
  1987. <div
  1988. class="under_line"
  1989. style="width: 80px; text-align: center"
  1990. >
  1991. </div>
  1992. </div>
  1993. <div class="inline_block" style="flex: 1">
  1994. 治疗医生:
  1995. <div
  1996. v-if="org_id ==10191"
  1997. class="under_line"
  1998. style="width: 80px; text-align: center"
  1999. >
  2000. <span
  2001. style="height: 30px; display: inline-block"
  2002. v-if="setAdminUserES(prescription.creater) == ''"
  2003. >
  2004. {{ getAdminUser(prescription.creater) }}
  2005. </span>
  2006. <img
  2007. style="height: 40px"
  2008. :src="setAdminUserES(prescription.creater)"
  2009. alt=""
  2010. srcset=""
  2011. v-else
  2012. />
  2013. </div>
  2014. <div
  2015. v-if="org_id!=10191"
  2016. class="under_line"
  2017. style="width: 80px; text-align: center"
  2018. >
  2019. <span v-if="doctor_advices[0]!=null && doctor_advices[0].advice_doctor>0">
  2020. <span
  2021. style="height: 30px; display: inline-block"
  2022. v-if="setAdminUserES(doctor_advices[0].advice_doctor) == ''"
  2023. >
  2024. {{ getAdminUser(doctor_advices[0].advice_doctor) }}
  2025. </span>
  2026. <img
  2027. style="height: 40px"
  2028. :src="setAdminUserES(doctor_advices[0].advice_doctor)"
  2029. alt=""
  2030. srcset=""
  2031. v-else
  2032. />
  2033. </span>
  2034. </div>
  2035. </div>
  2036. </div>
  2037. </td>
  2038. </tr>
  2039. </tbody>
  2040. </table>
  2041. </div>
  2042. </div>
  2043. </template>
  2044. <script>
  2045. import CheckBox from "../batch_print/option_check_box";
  2046. import { getDialysisRecord } from "@/api/dialysis";
  2047. import { getDataConfig } from "@/utils/data";
  2048. import { jsGetAge, uParseTime,jsGetAgeOne } from "@/utils/tools";
  2049. import LabelBox from "../printItem/LabelBox";
  2050. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  2051. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  2052. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  2053. import print from "print-js";
  2054. import html2pdf from 'html2pdf.js'
  2055. import { UploadPrintOrder } from "@/api/role/admin"
  2056. import { HTML5_FMT } from "moment";
  2057. import html2canvas from 'html2canvas'
  2058. import { jsPDF } from 'jspdf';
  2059. export default {
  2060. name: "dialysisPrintOrderSix",
  2061. props: ["childResponse"],
  2062. components: {
  2063. // DialysisPrintOrderOne,
  2064. // DialysisPrintOrderTwo,
  2065. CheckBox,
  2066. LabelBox,
  2067. BreadCrumb,
  2068. },
  2069. data() {
  2070. return {
  2071. way_arr: [],
  2072. consciousness_arr: [],
  2073. appetite_arr: [],
  2074. posture_arr: [],
  2075. sick_condition_arr: [],
  2076. precaution_arr: [],
  2077. intake_arr: [],
  2078. nutrition_arr: [],
  2079. crumbs: [
  2080. { path: false, name: "透析管理" },
  2081. { path: false, name: "打印单" },
  2082. ],
  2083. operators: [],
  2084. adminUser: [],
  2085. check: {},
  2086. xtdate: "",
  2087. dialysisOrder: {
  2088. DeviceNumber: [],
  2089. },
  2090. displaceLiquiPartOptions: [],
  2091. operatorMaps: {},
  2092. complications: [
  2093. "低血压",
  2094. "高血压",
  2095. "心律失常",
  2096. "头晕",
  2097. "头痛",
  2098. "呕吐",
  2099. "抽搐",
  2100. "出血",
  2101. "心衰",
  2102. "腹痛",
  2103. ],
  2104. jilurow: 0,
  2105. advice_jilurow: 0,
  2106. loading: false,
  2107. orgname: "",
  2108. patientInfo_gender_1: false,
  2109. patientInfo_gender_2: false,
  2110. patientInfo_source_2: false,
  2111. patientInfo_source_1: false,
  2112. modeOptions: {},
  2113. replacementWays: [],
  2114. perfusionApparatus: [],
  2115. anticoagulantsConfit: {},
  2116. bloodAccessParOpera: {},
  2117. dialysateFormulationOptions: {},
  2118. totollength: 0,
  2119. queryParams: {
  2120. xtdate: "",
  2121. xtno: "",
  2122. patient_id:0,
  2123. },
  2124. patientInfo: {
  2125. birth: "",
  2126. age: "",
  2127. DialysisSchedule: {
  2128. device_number: { number: "" },
  2129. device_zone: { name: "" },
  2130. },
  2131. gender: 0,
  2132. },
  2133. predialysis: {
  2134. score: "",
  2135. internal_fistula: "",
  2136. internal_fistula_skin: "",
  2137. catheter: "",
  2138. blood_access_part_opera_name: "",
  2139. },
  2140. afterdialysis: {
  2141. complications_index: "",
  2142. },
  2143. lastafterdialysis: {},
  2144. prescription: {
  2145. dialysate_formulation_name: "",
  2146. device: {},
  2147. },
  2148. advices: [],
  2149. users: [],
  2150. monitors: [],
  2151. monitors2: [],
  2152. summary: {},
  2153. receiverTreatmentAccess: {},
  2154. org_template_info: {},
  2155. doctor_advices: [],
  2156. doctor_advices_2: [],
  2157. advice_groups: [],
  2158. advice_groups_2: [],
  2159. print_length: 0,
  2160. blood_access_part: [],
  2161. blood_access_part_opera: [],
  2162. AlPanel: {
  2163. id: 0,
  2164. name: "",
  2165. type: 1,
  2166. shouji: 2,
  2167. weichi: 2,
  2168. zongliang: 2,
  2169. gaimingcheng: -1,
  2170. gaijiliang: -1,
  2171. shouji_unit: "mg",
  2172. weichi_unit: "mg/h",
  2173. zongliang_unit: "mg",
  2174. gaimingcheng_unit: "",
  2175. gaijiliang_unit: "",
  2176. },
  2177. org_id: 0,
  2178. projectsOne: [],
  2179. schedule_date_one:"",
  2180. new_doctor_advice_list:[],
  2181. number_list:[],
  2182. };
  2183. },
  2184. methods: {
  2185. toUpload() {
  2186. let dom = document.getElementById("dialysis-print-box-1")
  2187. //调用方法下载
  2188. html2canvas(dom, {
  2189. useCORS: true, //允许跨域
  2190. allowTaint: false,
  2191. logging: false,
  2192. letterRendering: true,
  2193. ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
  2194. scale: 4, //按比例增加分辨率
  2195. background: '#fff',//pdf背景色为白色,默认是黑色的
  2196. }).then((canvas) => {
  2197. //返回图片dataURL,参数:图片格式和清晰度(0-1)
  2198. var pageData = canvas.toDataURL('image/jpeg', 1.0);
  2199. //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
  2200. var pdf = new jsPDF('', 'pt', 'a4');
  2201. //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
  2202. // pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
  2203. pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
  2204. console.log("pdf222222222222222222",pdf)
  2205. var newBase64Data = pdf.output("dataurlstring").split("base64,")[1]
  2206. // console.log("base63",newBase64Data)
  2207. const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
  2208. console.log("blobwoowowowwo",blob)
  2209. this.openPdf(blob);
  2210. // var data = {
  2211. // name:newBase64Data,
  2212. // }
  2213. // UploadPrintOrder(data).then(response=>{
  2214. // if(response.data.state == 1){
  2215. // var sign = response.data.data.sign
  2216. // console.log("SIGNWWOOWWO")
  2217. // var pdfBase64 = response.data.data.pdfBase64
  2218. // console.log("pdfBase64",pdfBase64)
  2219. // this.$message.success("保存成功!")
  2220. // const blob = this.base64ToBlob(pdfBase64, 'application/pdf');
  2221. // this.openPdf(blob);
  2222. // }
  2223. // })
  2224. // this.viewPdf(newBase64Data)
  2225. //保存到pdf,名字是stone
  2226. // pdf.save('stone.pdf');
  2227. });
  2228. },
  2229. viewPdf(content) {
  2230. console.log("content",content);
  2231. const blob = this.base64ToBlob(content);
  2232. if (window.navigator && window.navigator.msSaveOrOpenBlob) {
  2233. window.navigator.msSaveOrOpenBlob(blob);
  2234. } else {
  2235. const fileURL = URL.createObjectURL(blob);
  2236. console.log("fileUlrwowowoow",fileURL)
  2237. window.open(fileURL);//打开ppf文件
  2238. }
  2239. },
  2240. compare (property) {
  2241. return function (a, b) {
  2242. var value1 = a[property]
  2243. var value2 = b[property]
  2244. return value1 - value2
  2245. }
  2246. },
  2247. openPdf(blob) {
  2248. const objectUrl = URL.createObjectURL(blob);
  2249. const a = document.createElement('a');
  2250. a.href = objectUrl;
  2251. a.target = '_blank';
  2252. a.click();
  2253. URL.revokeObjectURL(objectUrl);
  2254. },
  2255. base64ToBlob(base64Data, contentType) {
  2256. contentType = contentType || '';
  2257. const sliceSize = 1024;
  2258. const byteCharacters = window.atob(base64Data);
  2259. const bytesLength = byteCharacters.length;
  2260. const slicesCount = Math.ceil(bytesLength / sliceSize);
  2261. const byteArrays = new Array(slicesCount);
  2262. for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
  2263. const begin = sliceIndex * sliceSize;
  2264. const end = Math.min(begin + sliceSize, bytesLength);
  2265. const bytes = new Array(end - begin);
  2266. for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
  2267. bytes[i] = byteCharacters[offset].charCodeAt(0);
  2268. }
  2269. byteArrays[sliceIndex] = new Uint8Array(bytes);
  2270. }
  2271. return new Blob(byteArrays, {
  2272. type: contentType
  2273. });
  2274. },
  2275. UploadPdf(res) {
  2276. let pdfBase64Str = res;
  2277. let title = "上传给后端的个人报告";
  2278. var myfile = this.dataURLtoFile(pdfBase64Str, title + ".pdf")
  2279. console.log("myfile",myfile)
  2280. },
  2281. // 获取当前年份,用于年龄计算
  2282. getoldAge() {
  2283. let date = new Date();
  2284. let year = date.getFullYear();
  2285. let year_d =
  2286. this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
  2287. let year_m = this.xtdate.split("-")[1];
  2288. let birth_m = this.patientInfo.birth.split("-")[1];
  2289. let year_date = this.xtdate.split("-")[2];
  2290. let birth_date = this.patientInfo.birth.split("-")[2];
  2291. // console.log(year,'今年年月')
  2292. // console.log(this.xtdate.split('-'),'病人就诊年月')
  2293. console.log(this.patientInfo.birth, "病人生日");
  2294. // console.log(year_d,'year_d')
  2295. if (year_m < birth_m) {
  2296. return year_d - 1;
  2297. } else if (year_m == birth_m) {
  2298. if (year_date < birth_date) {
  2299. return year_d - 1;
  2300. } else {
  2301. return year_d;
  2302. }
  2303. } else {
  2304. return year_d;
  2305. }
  2306. },
  2307. checkData() {
  2308. if (this.receiverTreatmentAccess.way == 0) {
  2309. this.$message.error("入科方式未填");
  2310. } else if (this.predialysis.symptom_before_dialysis == "") {
  2311. this.$message.error("透前症状未填");
  2312. } else if (this.predialysis.temperature == "") {
  2313. this.$message.error("透前体温未填");
  2314. } else if (this.predialysis.pulse_frequency == "") {
  2315. this.$message.error("透前脉搏未填");
  2316. } else if (this.predialysis.breathing_rate == "") {
  2317. this.$message.error("透前呼吸频率未填");
  2318. } else if (
  2319. this.predialysis.systolic_blood_pressure == 0 ||
  2320. this.predialysis.diastolic_blood_pressure == 0
  2321. ) {
  2322. this.$message.error("透前血压未填完整");
  2323. } else if (this.predialysis.puncture_way == "") {
  2324. this.$message.error("穿刺方式未填");
  2325. } else if (this.predialysis.puncture_needle == "") {
  2326. this.$message.error("穿刺针未填");
  2327. } else if (
  2328. this.predialysis.blood_access_part_id == "" &&
  2329. this.predialysis.blood_access_part_opera_name == ""
  2330. ) {
  2331. this.$message.error("血管通路未填");
  2332. } else if (this.predialysis.internal_fistula == "") {
  2333. this.$message.error("透前内瘘未填");
  2334. } else if (this.predialysis.catheter == "") {
  2335. this.$message.error("透前导管未填");
  2336. } else if (this.prescription.mode_id == "") {
  2337. this.$message.error("透析方式未填");
  2338. } else if (
  2339. this.prescription.displace_liqui_part == 0 &&
  2340. this.prescription.mode_id == 2
  2341. ) {
  2342. this.$message.error("置换方式未填");
  2343. } else if (
  2344. this.prescription.displace_liqui_value == 0 &&
  2345. this.prescription.mode_id == 2
  2346. ) {
  2347. this.$message.error("置换量未填");
  2348. } else if (this.prescription.blood_flow_volume == 0) {
  2349. this.$message.error("血流量未填");
  2350. } else if (
  2351. this.prescription.dialysis_duration_hour == 0 &&
  2352. this.prescription.dialysis_duration_minute == 0
  2353. ) {
  2354. this.$message.error("透析时间未填");
  2355. } else if (
  2356. this.prescription.dialyzer_perfusion_apparatus == "" &&
  2357. this.prescription.dialysis_dialyszers == ""
  2358. ) {
  2359. this.$message.error("透析器未填");
  2360. } else if (this.prescription.dialysis_irrigation == "") {
  2361. this.$message.error("灌流器未填");
  2362. } else if (
  2363. this.prescription.plasma_separator == "" &&
  2364. this.org_id == 9538
  2365. ) {
  2366. this.$message.error("血浆分离器未填");
  2367. } else if (
  2368. this.prescription.bilirubin_adsorption_column == "" &&
  2369. this.org_id == 9538
  2370. ) {
  2371. this.$message.error("胆红素吸附柱未填");
  2372. } else if (this.predialysis.weight_before == 0) {
  2373. this.$message.error("透前体重未填");
  2374. } else if (this.predialysis.dry_weight == 0) {
  2375. this.$message.error("干体重未填");
  2376. } else if (this.prescription.target_ultrafiltration == 0) {
  2377. this.$message.error("计划超滤量未填");
  2378. } else if (this.prescription.calcium == 0) {
  2379. this.$message.error("钙未填");
  2380. } else if (this.prescription.sodium == 0) {
  2381. this.$message.error("钠未填");
  2382. } else if (this.prescription.kalium == 0) {
  2383. this.$message.error("钾未填");
  2384. } else if (this.prescription.bicarbonate == 0) {
  2385. this.$message.error("碳酸氢根未填");
  2386. } else if (this.prescription.dialysate_flow == 0) {
  2387. this.$message.error("透析液流量未填");
  2388. } else if (this.prescription.anticoagulant == 0) {
  2389. this.$message.error("抗凝剂未填");
  2390. } else if (
  2391. this.prescription.anticoagulant_gaimingcheng == "" &&
  2392. this.prescription.anticoagulant == 5
  2393. ) {
  2394. this.$message.error("钙名称未填");
  2395. } else if (
  2396. this.prescription.anticoagulant_gaijiliang == "" &&
  2397. this.prescription.anticoagulant == 5
  2398. ) {
  2399. this.$message.error("钙剂量未填");
  2400. } else if (this.afterdialysis.temperature == 0) {
  2401. this.$message.error("透后体温未填");
  2402. } else if (this.afterdialysis.pulse_frequency == 0) {
  2403. this.$message.error("透后脉搏未填");
  2404. } else if (this.afterdialysis.breathing_rate == 0) {
  2405. this.$message.error("透后呼吸频率未填");
  2406. } else if (
  2407. this.afterdialysis.systolic_blood_pressure == 0 ||
  2408. this.afterdialysis.diastolic_blood_pressure == 0
  2409. ) {
  2410. this.$message.error("透后血压未填完整");
  2411. } else if (
  2412. this.afterdialysis.actual_treatment_hour == 0 &&
  2413. this.afterdialysis.actual_treatment_minute == 0
  2414. ) {
  2415. this.$message.error("实际治疗时间未填");
  2416. } else if (this.afterdialysis.cruor == "") {
  2417. this.$message.error("透析器凝血未填");
  2418. } else if (this.afterdialysis.internal_fistula == "") {
  2419. this.$message.error("透后内瘘未填");
  2420. } else if (this.afterdialysis.catheter == "") {
  2421. this.$message.error("透后导管未填");
  2422. } else if (this.afterdialysis.weight_after == 0) {
  2423. this.$message.error("透后体重未填");
  2424. } else if (this.afterdialysis.weight_loss == 0) {
  2425. this.$message.error("透后体重减少未填");
  2426. } else if (this.afterdialysis.dialysis_intakes == 0) {
  2427. this.$message.error("透析中入量未填");
  2428. } else if (this.afterdialysis.actual_ultrafiltration == 0) {
  2429. this.$message.error("实际超滤量未填");
  2430. } else if (this.summary.dialysis_summary == "") {
  2431. this.$message.error("透析小结未填");
  2432. } else if (
  2433. this.dialysisOrder == null ||
  2434. this.dialysisOrder.puncture_nurse == 0
  2435. ) {
  2436. this.$message.error("穿刺护士未填");
  2437. } else if (
  2438. this.dialysisOrder == null ||
  2439. this.dialysisOrder.start_nurse == 0
  2440. ) {
  2441. this.$message.error("治疗护士未填");
  2442. } else if (this.dialysisOrder == null && this.check.creater == 0) {
  2443. this.$message.error("核对人员未填");
  2444. } else if (
  2445. this.dialysisOrder != null &&
  2446. this.dialysisOrder.start_nurse == this.check.modifier &&
  2447. this.check.creater == 0
  2448. ) {
  2449. this.$message.error("核对人员未填");
  2450. } else if (
  2451. this.dialysisOrder != null &&
  2452. this.dialysisOrder.start_nurse == this.check.creater &&
  2453. this.check.modifier == 0
  2454. ) {
  2455. this.$message.error("核对人员未填");
  2456. } else if (
  2457. this.dialysisOrder != null &&
  2458. this.dialysisOrder.start_nurse != this.check.creater &&
  2459. this.dialysisOrder.start_nurse != this.check.modifier &&
  2460. this.check.creater == 0
  2461. ) {
  2462. this.$message.error("核对人员未填");
  2463. } else if (
  2464. this.dialysisOrder == null ||
  2465. this.dialysisOrder.finish_nurse == 0
  2466. ) {
  2467. this.$message.error("下机护士未填");
  2468. } else if (this.prescription.creater == 0) {
  2469. this.$message.error("医生签名未填");
  2470. } else if (this.tableAdvice.length > 0) {
  2471. let num = 0;
  2472. this.tableAdvice.map((item) => {
  2473. if (item.id > 0 && (item.created_time || item.start_time)) {
  2474. this.users.map((it) => {
  2475. if (it.id == item.advice_doctor) {
  2476. if (it.user_type == 3) {
  2477. num++;
  2478. this.$message.closeAll();
  2479. this.$message.error("存在不是医生保存的医嘱");
  2480. } else if (
  2481. it.id == item.execution_staff &&
  2482. item.execution_staff > 0
  2483. ) {
  2484. if (it.user_type == 2) {
  2485. num++;
  2486. this.$message.closeAll();
  2487. this.$message.error("存在不是护士执行的医嘱");
  2488. }
  2489. } else if (it.id == item.checker && item.checker > 0) {
  2490. if (it.user_type == 2) {
  2491. num++;
  2492. this.$message.closeAll();
  2493. this.$message.error("存在不是护士核对的医嘱");
  2494. }
  2495. }
  2496. } else if (
  2497. it.id == item.execution_staff &&
  2498. item.execution_staff > 0
  2499. ) {
  2500. if (it.user_type == 2) {
  2501. num++;
  2502. this.$message.closeAll();
  2503. this.$message.error("存在不是护士执行的医嘱");
  2504. }
  2505. } else if (it.id == item.checker && item.checker > 0) {
  2506. if (it.user_type == 2) {
  2507. num++;
  2508. this.$message.closeAll();
  2509. this.$message.error("存在不是护士核对的医嘱");
  2510. }
  2511. }
  2512. });
  2513. }
  2514. });
  2515. if (num == 0) {
  2516. this.$message.success("核对完成");
  2517. }
  2518. } else {
  2519. this.$message.success("核对完成");
  2520. }
  2521. },
  2522. getDisplaceLiquiPart: function (val) {
  2523. let displace_liqui_part_name = "/";
  2524. const displace_liqui_part = this.displaceLiquiPartOptions;
  2525. for (let i = 0; i < displace_liqui_part.length; i++) {
  2526. if (displace_liqui_part[i].id == val) {
  2527. displace_liqui_part_name = displace_liqui_part[i].name;
  2528. }
  2529. }
  2530. return displace_liqui_part_name;
  2531. },
  2532. replacementWaysById: function (val) {
  2533. let replacementWaysname = "/";
  2534. // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  2535. for (let i = 0; i < this.replacementWays.length; i++) {
  2536. if (this.replacementWays[i].id == val) {
  2537. replacementWaysname = this.replacementWays[i].name;
  2538. }
  2539. }
  2540. return replacementWaysname;
  2541. },
  2542. QueryPartById: function (val) {
  2543. let vascular_access_part_name = "/";
  2544. const vascular_access = getDataConfig("hemodialysis", "vascular_access");
  2545. for (let i = 0; i < vascular_access.length; i++) {
  2546. if (vascular_access[i].id == val) {
  2547. vascular_access_part_name = vascular_access[i].name;
  2548. }
  2549. }
  2550. return vascular_access_part_name;
  2551. },
  2552. getAdminUser(id) {
  2553. if (id == 0) {
  2554. return "";
  2555. }
  2556. if (id == undefined) {
  2557. return "";
  2558. }
  2559. for (let i = 0; i < this.adminUser.length; i++) {
  2560. if (this.adminUser[i].id == id) {
  2561. return this.adminUser[i].name;
  2562. }
  2563. }
  2564. },
  2565. getTime(value, temp) {
  2566. if (value == 0) {
  2567. return "";
  2568. }
  2569. if (value != undefined) {
  2570. return uParseTime(value, temp);
  2571. }
  2572. return "";
  2573. },
  2574. getUnit: function (val) {
  2575. switch (val) {
  2576. case 1:
  2577. return "g";
  2578. break;
  2579. case 2:
  2580. return "ml";
  2581. break;
  2582. }
  2583. },
  2584. printThisPage() {
  2585. var ptime = Math.round(new Date().getTime() / 1000);
  2586. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  2587. const style =
  2588. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
  2589. if (this.org_template_info.template_id == 1) {
  2590. printJS({
  2591. printable: "dialysis-print-box",
  2592. type: "html",
  2593. style: style,
  2594. scanStyles: false,
  2595. });
  2596. } else if (
  2597. this.org_template_info.template_id == 2 ||
  2598. this.org_template_info.template_id == 0
  2599. ) {
  2600. printJS({
  2601. printable: "dialysis-print-box-1",
  2602. type: "html",
  2603. style: style,
  2604. scanStyles: false,
  2605. });
  2606. }
  2607. },
  2608. getNumber() {
  2609. if (this.dialysisOrder != null) {
  2610. return (
  2611. this.patientInfo.DialysisSchedule.device_zone.name +
  2612. this.dialysisOrder.DeviceNumber.number
  2613. );
  2614. } else {
  2615. return (
  2616. this.patientInfo.DialysisSchedule.device_zone.name +
  2617. this.patientInfo.DialysisSchedule.device_number.number
  2618. );
  2619. }
  2620. },
  2621. getXuserName(id) {
  2622. if (id <= 0) {
  2623. return "";
  2624. }
  2625. var name = "";
  2626. if (this.users == null || typeof this.users.length === "undefined") {
  2627. return name;
  2628. }
  2629. var leng = this.users.length;
  2630. if (leng == 0) {
  2631. return name;
  2632. }
  2633. for (let index = 0; index < leng; index++) {
  2634. if (this.users[index].id == id) {
  2635. name = this.users[index].name;
  2636. break;
  2637. }
  2638. }
  2639. return name;
  2640. },
  2641. setAdminUserES(id) {
  2642. if (id == 0) {
  2643. return "";
  2644. }
  2645. if (id in this.operatorMaps) {
  2646. return this.operatorMaps[id].url;
  2647. } else {
  2648. return "";
  2649. }
  2650. },
  2651. modeName(mode_id) {
  2652. return typeof this.modeOptions[mode_id] !== "undefined" &&
  2653. typeof this.modeOptions[mode_id].name !== "undefined"
  2654. ? this.modeOptions[mode_id].name
  2655. : "";
  2656. },
  2657. // 数据源
  2658. getDialysisRecord() {
  2659. this.loading = true;
  2660. // getDialysisRecord(this.queryParams).then(response => {
  2661. var response = this.childResponse;
  2662. if (response.data.state == 1) {
  2663. this.adminUser = response.data.data.users;
  2664. console.log('3333333wwwwww12121',response.data.data);
  2665. var schedule_date = response.data.data.schedule.schedule_date
  2666. this.schedule_date_one = uParseTime(
  2667. schedule_date,
  2668. "{y}-{m}-{d}"
  2669. );
  2670. this.users = response.data.data.users;
  2671. this.patientInfo = response.data.data.patientInfo;
  2672. this.patientInfo.birth = uParseTime(
  2673. this.patientInfo.birthday,
  2674. "{y}-{m}-{d}"
  2675. );
  2676. // console.log(this.patientInfo.birth,'测试生日')
  2677. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  2678. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  2679. this.patientInfo.first_dialysis_date = uParseTime(
  2680. response.data.data.patientInfo.first_dialysis_date,
  2681. "{y}-{m}-{d}"
  2682. );
  2683. } else {
  2684. this.patientInfo.first_dialysis_date = "";
  2685. }
  2686. this.number_list = response.data.data.numberList
  2687. this.check = response.data.data.check;
  2688. this.xtdate = response.data.data.xtdate;
  2689. this.predialysis = response.data.data.PredialysisEvaluation;
  2690. console.log('透前评估', this.predialysis)
  2691. this.predialysis.blood_access_part_opera_name =this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id);
  2692. this.afterdialysis = response.data.data.AssessmentAfterDislysis;
  2693. // console.log('透后体重', this.afterdialysis)
  2694. this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
  2695. // console.log("上次透后体重", this.lastafterdialysis.weight_after);
  2696. this.operators = response.data.data.operators;
  2697. // console.log("operators", this.operators);
  2698. this.dialysisOrder =
  2699. response.data.data.dialysisOrder === null
  2700. ? null
  2701. : response.data.data.dialysisOrder;
  2702. // console.log("上机233232323232", this.dialysisOrder);
  2703. if (this.operators.length > 0) {
  2704. var operatorsLen = this.operators.length;
  2705. for (var index = 0; index < operatorsLen; index++) {
  2706. this.$set(
  2707. this.operatorMaps,
  2708. this.operators[index].creator,
  2709. this.operators[index]
  2710. );
  2711. }
  2712. }
  2713. this.afterdialysis.txqnx = -1;
  2714. if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  2715. this.afterdialysis.txqnx = 0;
  2716. }
  2717. if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  2718. this.afterdialysis.txqnx = 1;
  2719. }
  2720. if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  2721. this.afterdialysis.txqnx = 2;
  2722. }
  2723. if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  2724. this.afterdialysis.txqnx = 3;
  2725. }
  2726. this.afterdialysis.complications =
  2727. this.afterdialysis.complication.split(",");
  2728. this.afterdialysis.complications_other = [];
  2729. this.afterdialysis.complications_index = [];
  2730. var acllen = this.afterdialysis.complications.length;
  2731. for (let index = 0; index < acllen; index++) {
  2732. if (
  2733. this.complications.indexOf(
  2734. this.afterdialysis.complications[index]
  2735. ) >= 0
  2736. ) {
  2737. this.afterdialysis.complications_index.push(
  2738. this.afterdialysis.complications[index]
  2739. );
  2740. } else if (
  2741. this.complications.indexOf(
  2742. this.afterdialysis.complications[index]
  2743. ) < 0 &&
  2744. this.afterdialysis.complications_other.indexOf(
  2745. this.afterdialysis.complications[index]
  2746. ) < 0
  2747. ) {
  2748. this.afterdialysis.complications_other.push(
  2749. this.afterdialysis.complications[index]
  2750. );
  2751. }
  2752. }
  2753. this.afterdialysis.complications_other =
  2754. this.afterdialysis.complications_other.join(",");
  2755. this.prescription = response.data.data.dialysisPrescription;
  2756. // console.log("透析处方", this.prescription);
  2757. this.receiverTreatmentAccess =
  2758. response.data.data.receiverTreatmentAccess;
  2759. this.prescription.mode = this.modeName(this.prescription.mode_id);
  2760. var rwLen = this.replacementWays.length;
  2761. this.prescription.replacement = "";
  2762. for (let index = 0; index < rwLen; index++) {
  2763. if (
  2764. this.replacementWays[index].id == this.prescription.replacement_way
  2765. ) {
  2766. this.prescription.replacement = this.replacementWays[index].name;
  2767. break;
  2768. }
  2769. }
  2770. this.prescription.dialysate_formulation_name =
  2771. this.dialysateFormulationName(
  2772. this.prescription.dialysate_formulation
  2773. );
  2774. var paLen = this.perfusionApparatus.length;
  2775. this.prescription.perfusion_apparatus_name = "";
  2776. for (let index = 0; index < paLen; index++) {
  2777. if (
  2778. this.perfusionApparatus[index].id ==
  2779. this.prescription.perfusion_apparatus
  2780. ) {
  2781. this.prescription.perfusion_apparatus_name =
  2782. this.perfusionApparatus[index].name;
  2783. break;
  2784. }
  2785. }
  2786. var acLen = this.anticoagulantsConfit.length;
  2787. var thisALID = this.prescription.anticoagulant;
  2788. this.prescription.anticoagulant_name = "";
  2789. if (
  2790. typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  2791. this.anticoagulantsConfit[thisALID] != null
  2792. ) {
  2793. this.prescription.anticoagulant_name =
  2794. this.anticoagulantsConfit[thisALID].name;
  2795. this.AlPanel = this.anticoagulantsConfit[thisALID];
  2796. }
  2797. this.advices = response.data.data.advices;
  2798. this.tableAdvice = response.data.data.advices;
  2799. // console.log("医嘱数据2222222222", this.advices);
  2800. this.monitors = response.data.data.monitors;
  2801. this.summary = response.data.data.summary;
  2802. this.org_template_info = response.data.data.org_template_info;
  2803. if (this.monitors.length <= 3) {
  2804. var nl = 3;
  2805. this.print_length = 3;
  2806. for (let index = 0; index < nl; index++) {
  2807. if (
  2808. this.monitors[index] == undefined ||
  2809. this.monitors[index].length <= 0
  2810. ) {
  2811. this.monitors2.push([]);
  2812. } else {
  2813. continue;
  2814. }
  2815. }
  2816. }
  2817. var tempmonitorflag = true;
  2818. for (let index = 0; index < this.monitors.length; index++) {
  2819. const monitor = this.monitors[index];
  2820. this.monitors[index].end = "";
  2821. if (Object.keys(monitor).length > 0 && index > 1) {
  2822. if ((this.dialysisOrder &&monitor.operate_time == this.dialysisOrder.end_time)&&(this.org_id!=10414)) {
  2823. if(this.org_id!=10683){
  2824. this.monitors[index].end = "【结束透析】";
  2825. }
  2826. tempmonitorflag = false;
  2827. }
  2828. if ((tempmonitorflag && index == this.monitors.length - 1)&&(this.org_id!=10414)) {
  2829. if(this.org_id!=10683){
  2830. this.monitors[index].end = "【结束透析】";
  2831. }
  2832. }
  2833. }
  2834. }
  2835. this.jilurow = this.monitors.length + 1;
  2836. this.advice_jilurow = this.advices.length + 1;
  2837. var childMap = {};
  2838. for (const index in this.advices) {
  2839. if (this.advices[index].parent_id == 0) {
  2840. continue;
  2841. }
  2842. if (!(this.advices[index].parent_id in childMap)) {
  2843. childMap[this.advices[index].parent_id] = [];
  2844. }
  2845. childMap[this.advices[index].parent_id].push(this.advices[index]);
  2846. }
  2847. var advices = [];
  2848. for (const index in this.advices) {
  2849. if (this.advices[index].parent_id > 0) {
  2850. continue;
  2851. }
  2852. var item = this.advices[index];
  2853. if (item.id in childMap) {
  2854. item.children = childMap[item.id];
  2855. } else {
  2856. item.children = [];
  2857. }
  2858. advices.push(item);
  2859. }
  2860. var leftAdvice = [];
  2861. var rightAdvice = [];
  2862. var adlen = advices.length;
  2863. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  2864. for (var i = 0; i < halfLen; i++) {
  2865. leftAdvice.push(advices[i]);
  2866. rightAdvice.push(advices[i + halfLen]);
  2867. }
  2868. if (halfLen < 5) {
  2869. var nl = 5 - leftAdvice.length;
  2870. for (let index = 0; index < nl; index++) {
  2871. leftAdvice.push([]);
  2872. }
  2873. var nl = 5 - rightAdvice.length;
  2874. for (let index = 0; index < nl; index++) {
  2875. rightAdvice.push([]);
  2876. }
  2877. }
  2878. this.advices = [];
  2879. for (var i = 0; i < halfLen; i++) {
  2880. var item = [];
  2881. item.push(leftAdvice[i]);
  2882. item.push(rightAdvice[i]);
  2883. this.advices.push(item);
  2884. }
  2885. this.loading = false;
  2886. this.doctor_advices =
  2887. response.data.data.advices == null ? [] : response.data.data.advices;
  2888. for (let index = 0; index < this.doctor_advices.length; index++) {
  2889. this.doctor_advices[index]["isShow"] = 2;
  2890. }
  2891. console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",this.doctor_advices)
  2892. if(this.org_id ==10206 || this.org_id ==10644 || this.org_id ==10633 || this.org_id == 10489 || this.org_id == 0){
  2893. let projectsOne = [];
  2894. response.data.data.projects.map((item) => {
  2895. projectsOne.push(item);
  2896. });
  2897. this.projectsOne = projectsOne;
  2898. console.log("this.projectsOne", this.projectsOne);
  2899. }
  2900. console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
  2901. //华池
  2902. if(this.org_id == 10440){
  2903. var parint_id =0
  2904. var newArr = []
  2905. if(this.doctor_advices!=null&&this.doctor_advices.length>0){
  2906. for(let i=0;i<this.doctor_advices.length;i++){
  2907. if(this.doctor_advices[i].advice_name.indexOf("低分子")!=-1){
  2908. parint_id = this.doctor_advices[i].id
  2909. }
  2910. }
  2911. for(let i=0;i<this.doctor_advices.length;i++){
  2912. if(this.doctor_advices[i].id != parint_id && this.doctor_advices[i].parent_id!=parint_id){
  2913. newArr.push(this.doctor_advices[i])
  2914. }
  2915. }
  2916. this.doctor_advices =[]
  2917. this.doctor_advices = newArr
  2918. }
  2919. }
  2920. //HIS客户显示临时医嘱的地方
  2921. if(this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489 || this.org_id ==10644 || this.org_id == 0){
  2922. if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
  2923. for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
  2924. this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
  2925. console.log("寄哪里 222")
  2926. }
  2927. }
  2928. let projects = [];
  2929. response.data.data.projects.map((item) => {
  2930. if (item.type == 2) {
  2931. projects.push(item);
  2932. }
  2933. });
  2934. this.projects = projects;
  2935. // console.log("this.projects=========================================", this.projects);
  2936. if(this.org_id!=10510 &&this.org_id!=10206 && this.org_id!=10478 && this.org_id!=10489){
  2937. console.log("列表===================================",this.projects)
  2938. var newHisArr = []
  2939. if(this.projects!=null && this.projects.length >0){
  2940. for(let i=0;i<this.projects.length;i++){
  2941. if(this.projects[i].type== 2){
  2942. this.projects[i].project_team_name = ""
  2943. this.projects[i].project_team_id = 0
  2944. if(this.projects[i].team!= "undefined" && this.projects[i].team.id >0){
  2945. this.projects[i].project_team = this.projects[i].team.project_team
  2946. this.projects[i].project_team_id = this.projects[i].team.id
  2947. this.projects[i].start_time = this.projects[i].start_time
  2948. this.projects[i].single_dose = this.projects[i].single_dose
  2949. this.projects[i].single_dose_unit = this.projects[i].unit
  2950. this.projects[i].execution_time = this.projects[i].execution_time
  2951. this.projects[i].execution_staff= this.projects[i].execution_staff
  2952. this.projects[i].advice_name = this.projects[i].team.project_team
  2953. this.projects[i].advice_doctor = this.projects[i].doctor
  2954. newHisArr.push(this.projects[i])
  2955. // this.doctor_advices_2.push(this.project[i])
  2956. }else{
  2957. this.projects[i].project_team = this.projects[i].project.project_name
  2958. this.projects[i].advice_name = this.projects[i].project.project_name
  2959. this.projects[i].start_time = this.projects[i].start_time
  2960. this.projects[i].single_dose = this.projects[i].single_dose
  2961. this.projects[i].single_dose_unit = this.projects[i].unit
  2962. this.projects[i].execution_time = this.projects[i].execution_time
  2963. this.projects[i].execution_staff= this.projects[i].execution_staff
  2964. this.projects[i].advice_doctor = this.projects[i].doctor
  2965. newHisArr.push(this.projects[i])
  2966. // this.doctor_advices_2.push(this.projects[i])
  2967. }
  2968. }
  2969. }
  2970. }
  2971. for(let i=0;i<newHisArr.length;i++){
  2972. newHisArr[i].advice_name_str = ""
  2973. newHisArr[i].advice_name_str = newHisArr[i].project_team + (newHisArr[i].prescription_id).toString()
  2974. }
  2975. console.log("newHisArr===================================",newHisArr)
  2976. var ordHisArr = this.getQuChong(newHisArr)
  2977. this.doctor_advices.push(...ordHisArr)
  2978. }
  2979. }
  2980. //针对内蒙古阿拉善
  2981. if(this.org_id ==10206 || this.org_id ==0){
  2982. if(this.doctor_advices!=null && this.doctor_advices.length > 0){
  2983. for(let i=0;i<this.doctor_advices.length;i++){
  2984. this.doctor_advices[i].new_groupno = ""
  2985. this.doctor_advices[i].new_groupno = this.doctor_advices[i].prescription_id + "_" + this.doctor_advices[i].groupno
  2986. let objInfo = {}
  2987. this.doctor_advices.forEach((item,index)=>{
  2988. let { new_groupno } = item
  2989. if(!objInfo[new_groupno]){
  2990. objInfo[new_groupno] = {
  2991. new_groupno,
  2992. child:[],
  2993. start_time:item.start_time,
  2994. advice_doctor:item.advice_doctor,
  2995. advice_name:item.advice_name,
  2996. check_time:item.check_time,
  2997. checker:item.checker,
  2998. delivery_way:item.delivery_way,
  2999. execution_frequency:item.execution_frequency,
  3000. execution_staff:item.execution_staff,
  3001. execution_state:item.execution_state,
  3002. execution_time:item.execution_time,
  3003. frequency_type:item.frequency_type,
  3004. new_groupno:item.new_groupno,
  3005. advice_desc:item.advice_desc,
  3006. drug_spec_unit:item.drug_spec_unit,
  3007. prescribing_number:item.prescribing_number,
  3008. prescribing_number_unit:item.prescribing_number_unit,
  3009. single_dose:item.single_dose,
  3010. single_dose_unit:item.single_dose_unit,
  3011. parent_id:item.parent_id,
  3012. remark:item.remark,
  3013. }
  3014. }
  3015. })
  3016. let newArr = Object.values(objInfo);
  3017. if(newArr!=null && newArr.length >0){
  3018. for(let i=0;i<newArr.length;i++){
  3019. for(let j=0;j<this.doctor_advices.length;j++){
  3020. if(newArr[i].new_groupno == this.doctor_advices[j].new_groupno){
  3021. newArr[i].child.push(this.doctor_advices[j])
  3022. }
  3023. }
  3024. }
  3025. }
  3026. // console.log("newArrwowoow",newArr)
  3027. this.new_doctor_advice_list = []
  3028. this.new_doctor_advice_list.push(...newArr)
  3029. // console.log("newArrwowoow",this.new_doctor_advice_list)
  3030. }
  3031. }
  3032. }
  3033. console.log("新时间我哦我哦",this.doctor_advices)
  3034. //过滤口服药
  3035. if(this.org_id == 10265){
  3036. var docArr = []
  3037. if(this.doctor_advices!=null && this.doctor_advices.length>0){
  3038. for(let i=0;i<this.doctor_advices.length;i++){
  3039. if(this.doctor_advices[i].delivery_way!='口服' && this.doctor_advices[i].delivery_way!='中药口服'){
  3040. docArr.push(this.doctor_advices[i])
  3041. }
  3042. }
  3043. }
  3044. this.doctor_advices = []
  3045. this.doctor_advices = docArr
  3046. }
  3047. if (this.doctor_advices.length + this.projectsOne.length <= 6) {
  3048. var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
  3049. this.print_length = 6;
  3050. for (let index = 0; index < nl; index++) {
  3051. if (
  3052. this.projectsOne[index] == undefined ||
  3053. this.projectsOne[index].length <= 0
  3054. ) {
  3055. this.projectsOne.push([]);
  3056. } else {
  3057. continue;
  3058. }
  3059. }
  3060. }
  3061. this.totollength = this.doctor_advices.length + this.monitors.length;
  3062. console.log("this.totollength",this.totollength)
  3063. if (this.totollength > 18) {
  3064. var temp_advice_length = this.doctor_advices.length
  3065. var doctor_advices_1 = [];
  3066. var doctor_advices_2 = [];
  3067. for (let index = 0; index < this.doctor_advices.length; index++) {
  3068. const element = this.doctor_advices[index];
  3069. if (temp_advice_length > index) {
  3070. doctor_advices_1.push(element);
  3071. } else {
  3072. doctor_advices_2.push(element);
  3073. }
  3074. }
  3075. this.doctor_advices = doctor_advices_1;
  3076. this.doctor_advices_2 = doctor_advices_2;
  3077. }
  3078. // console.log(this.advice_groups);
  3079. console.log("医嘱列表=--=----------------------------------------------",this.doctor_advices)
  3080. } else {
  3081. this.loading = false;
  3082. this.$message.error("请求数据失败");
  3083. return false;
  3084. }
  3085. // })
  3086. },
  3087. getQuChong(tempArr) {
  3088. let result = [];
  3089. let obj = {};
  3090. for (let i = 0; i < tempArr.length; i++) {
  3091. if (!obj[tempArr[i].advice_name_str]) {
  3092. result.push(tempArr[i]);
  3093. obj[tempArr[i].advice_name_str] = true;
  3094. };
  3095. };
  3096. return result;
  3097. },
  3098. bloodAccessParOperaName(id) {
  3099. if (id in this.bloodAccessParOpera) {
  3100. return this.bloodAccessParOpera[id].name;
  3101. }
  3102. return "";
  3103. },
  3104. dialysateFormulationName(id) {
  3105. if (id in this.dialysateFormulationOptions) {
  3106. return this.dialysateFormulationOptions[id].name;
  3107. }
  3108. return "";
  3109. },
  3110. // getAge: function (val) {
  3111. // if (
  3112. // this.org_template_info.template_id == 2 ||
  3113. // this.org_template_info.template_id == 0
  3114. // ) {
  3115. // if (val.age == 0) {
  3116. // return jsGetAge(val.birth, "-");
  3117. // } else {
  3118. // return val.age;
  3119. // }
  3120. // } else {
  3121. // return this.getoldAge();
  3122. // }
  3123. // },
  3124. getAge: function(val) {
  3125. if (val.id_card_no) {
  3126. var thisLen = val.id_card_no.length
  3127. var birth = ''
  3128. if (thisLen == 15) {
  3129. birth = '19' + val.id_card_no.substr(6, 6)
  3130. } else {
  3131. birth = val.id_card_no.substr(6, 8)
  3132. }
  3133. var birthtwo =
  3134. birth.substr(0, 4) +
  3135. '-' +
  3136. birth.substr(4, 2) +
  3137. '-' +
  3138. birth.substr(6, 2)
  3139. if(this.org_id!=0&& this.org_id!=10460){
  3140. var age = jsGetAge(birthtwo, '-')
  3141. return age
  3142. }
  3143. if(this.org_id == 0 || this.org_id ==10460){
  3144. console.log("日期搜哦",this.schedule_date_one)
  3145. var strBirthdayArr = this.schedule_date_one.split("-")
  3146. console.log("strBirthdayArr",strBirthdayArr)
  3147. var yeaer = strBirthdayArr[0]
  3148. var month = strBirthdayArr[1]
  3149. var day = strBirthdayArr[2]
  3150. var age = jsGetAgeOne(birthtwo, '-',yeaer,month,day)
  3151. // console.log("agesssss",age)
  3152. return age
  3153. }
  3154. }
  3155. },
  3156. newAdviceGroupObject: function () {
  3157. return Object.assign(
  3158. {},
  3159. {
  3160. group_no: 0,
  3161. // advice_doctor: 0,
  3162. // start_time: 0,
  3163. advices: [],
  3164. // exec_staff: 0,
  3165. // exec_time: 0,
  3166. // checker: 0,
  3167. }
  3168. );
  3169. },
  3170. getFloat: function (x) {
  3171. if (x == 0) {
  3172. return "/";
  3173. }
  3174. if (x != ".") {
  3175. var f = Math.round(x * 100) / 100;
  3176. var s = f.toString();
  3177. var rs = s.indexOf(".");
  3178. if (rs <= 0) {
  3179. rs = s.length;
  3180. s += ".";
  3181. }
  3182. while (s.length <= rs + 1) {
  3183. s += "0";
  3184. }
  3185. return s;
  3186. } else {
  3187. return "0.0";
  3188. }
  3189. },
  3190. getshouji(id){
  3191. const options = this.anticoagulantsConfit
  3192. console.log('anticoagulantsConfit11111',id,options[id].shouji_unit);
  3193. if(id != 0){
  3194. for(let i in options){
  3195. if(id == options[i].id){
  3196. console.log('anticoagulantsConfit11111',id);
  3197. return options[i].shouji_unit
  3198. }
  3199. }
  3200. }else{
  3201. return ''
  3202. }
  3203. },
  3204. getweichi(id){
  3205. const options = this.anticoagulantsConfit
  3206. if(id != 0){
  3207. for(let i in options){
  3208. if(id == options[i].id){
  3209. return options[i].weichi_unit
  3210. }
  3211. }
  3212. }else{
  3213. return ''
  3214. }
  3215. },
  3216. getzongliang(id){
  3217. const options = this.anticoagulantsConfit
  3218. if(id != 0){
  3219. for(let i in options){
  3220. if(id == options[i].id){
  3221. return options[i].zongliang_unit
  3222. }
  3223. }
  3224. }else{
  3225. return ''
  3226. }
  3227. },
  3228. // 透析型号
  3229. getnumberlist(id){
  3230. const options = this.number_list
  3231. for(let i in options){
  3232. if(id == options[i].id){
  3233. return options[i].number_type
  3234. }
  3235. }
  3236. }
  3237. },
  3238. watch: {
  3239. "patientInfo.gender": function () {
  3240. if (this.patientInfo.gender == 1) {
  3241. this.patientInfo_gender_1 = true;
  3242. this.patientInfo_gender_2 = false;
  3243. } else if (this.patientInfo.gender == 2) {
  3244. this.patientInfo_gender_2 = true;
  3245. this.patientInfo_gender_1 = false;
  3246. } else {
  3247. this.patientInfo_gender_2 = false;
  3248. this.patientInfo_gender_1 = false;
  3249. }
  3250. },
  3251. "patientInfo.source": function () {
  3252. if (this.patientInfo.source == 1) {
  3253. this.patientInfo_source_1 = true;
  3254. this.patientInfo_source_2 = false;
  3255. } else if (this.patientInfo.source == 2) {
  3256. this.patientInfo_source_2 = true;
  3257. this.patientInfo_source_1 = false;
  3258. } else {
  3259. this.patientInfo_source_2 = false;
  3260. this.patientInfo_source_1 = false;
  3261. }
  3262. },
  3263. },
  3264. created() {
  3265. this.way_arr = getDataConfig("hemodialysis", "way");
  3266. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  3267. this.appetite_arr = getDataConfig("hemodialysis", "appetite");
  3268. this.posture_arr = getDataConfig("hemodialysis", "posture");
  3269. this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
  3270. this.precaution_arr = getDataConfig("hemodialysis", "precaution");
  3271. this.intake_arr = getDataConfig("hemodialysis", "intake");
  3272. this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
  3273. var xtuser = this.$store.getters.xt_user;
  3274. this.orgname = xtuser.org.org_name;
  3275. // this.orgname = "遂溪方济医院";
  3276. this.modeOptions = this.$store.getters.treatment_mode;
  3277. this.replacementWays = this.$store.getters.replacement_ways;
  3278. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  3279. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  3280. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
  3281. this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
  3282. console.log('this.modeOptions',this.anticoagulantsConfit);
  3283. this.blood_access_part_opera = getDataConfig(
  3284. "hemodialysis",
  3285. "vascular_access_desc"
  3286. );
  3287. this.org_id = this.$store.getters.xt_user.org.id;
  3288. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  3289. var bloodAccessParOpera = getDataConfig(
  3290. "hemodialysis",
  3291. "vascular_access_desc"
  3292. );
  3293. for (var key in bloodAccessParOpera) {
  3294. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  3295. bloodAccessParOpera[key];
  3296. }
  3297. var dialysateFormulationOptions = getDataConfig(
  3298. "hemodialysis",
  3299. "dialysate_formulation"
  3300. );
  3301. for (var key in dialysateFormulationOptions) {
  3302. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  3303. dialysateFormulationOptions[key];
  3304. }
  3305. const xtdate = this.$route.query && this.$route.query.xtdate;
  3306. // console.log("xtdate", xtdate);
  3307. const xtno = this.$route.query && this.$route.query.xtno;
  3308. // console.log("xtno", xtno);
  3309. if (
  3310. typeof xtdate === "string" &&
  3311. xtdate.length > 0 &&
  3312. typeof xtno === "string" &&
  3313. xtno.length > 0
  3314. ) {
  3315. this.queryParams.xtdate = xtdate;
  3316. this.queryParams.xtno = xtno;
  3317. this.getDialysisRecord();
  3318. } else {
  3319. this.$message.error("参数不齐");
  3320. return false;
  3321. }
  3322. },
  3323. };
  3324. </script>
  3325. <style>
  3326. .print_page_main_content {
  3327. background-color: white;
  3328. width: 960px;
  3329. margin: 0 auto 50px;
  3330. padding: 0 0 0 0;
  3331. page-break-after: always;
  3332. }
  3333. .print_page_main_content .order-yy-name {
  3334. margin: auto;
  3335. text-align: center;
  3336. font-size: 20px;
  3337. letter-spacing: 5px;
  3338. }
  3339. .dialysis-print-order .order-title {
  3340. margin: auto;
  3341. font-weight: 600;
  3342. text-align: center;
  3343. font-size: 22px;
  3344. padding: 10px;
  3345. }
  3346. .print_page_main_content .order_title {
  3347. text-align: center;
  3348. font-size: 23px;
  3349. line-height: 50px;
  3350. font-weight: 500;
  3351. }
  3352. .row {
  3353. font-size: 14px;
  3354. line-height: 20px;
  3355. padding: 5px 0;
  3356. }
  3357. .inline_block {
  3358. display: inline-block;
  3359. }
  3360. .under_line_two {
  3361. display: inline-block;
  3362. border-bottom: 1px solid #999;
  3363. text-align: left;
  3364. white-space: nowrap;
  3365. width: 50%;
  3366. }
  3367. .under_line_two::before {
  3368. content: "\00A0";
  3369. }
  3370. .under_line_two::after {
  3371. content: "\00A0";
  3372. }
  3373. .under_line {
  3374. display: inline-block;
  3375. border-bottom: 1px solid #999;
  3376. text-align: center;
  3377. white-space: nowrap;
  3378. width: 50%;
  3379. }
  3380. .under_line::before {
  3381. content: "\00A0";
  3382. }
  3383. .under_line::after {
  3384. content: "\00A0";
  3385. }
  3386. .flex {
  3387. display: -webkit-box;
  3388. display: -moz-box;
  3389. display: -ms-flexbox;
  3390. display: -webkit-flex;
  3391. display: flex;
  3392. align-items: center;
  3393. -webkit-align-items: center;
  3394. box-align: center;
  3395. -moz-box-align: center;
  3396. -webkit-box-align: center;
  3397. text-align: center;
  3398. -webkit-justify-content: space-between;
  3399. justify-content: space-between;
  3400. -moz-box-pack: space-between;
  3401. -webkit--moz-box-pack: space-between;
  3402. box-pack: space-between;
  3403. }
  3404. .print_page_main_content .proj_table {
  3405. width: 100%;
  3406. border: 1px solid;
  3407. border-collapse: collapse;
  3408. padding: 2px;
  3409. }
  3410. .print_page_main_content .proj_table tbody tr td {
  3411. border: 1px solid;
  3412. /* text-align: center; */
  3413. font-size: 16px;
  3414. padding: 5px 8px;
  3415. line-height: 30px;
  3416. }
  3417. .print_page_main_content .proj_table .inside_table {
  3418. width: 100%;
  3419. border: hidden; /* 解决边框冲突 */
  3420. border-collapse: collapse;
  3421. }
  3422. .print_page_main_content .proj_table .inside_table tr td {
  3423. border: 1px solid;
  3424. text-align: center;
  3425. font-size: 14px;
  3426. padding: 0px 5px;
  3427. line-height: 16px;
  3428. }
  3429. .print-table-no {
  3430. width: 100%;
  3431. text-align: center;
  3432. border-collapse: collapse;
  3433. font-size: 14px;
  3434. }
  3435. .es-img {
  3436. height: 20px;
  3437. }
  3438. .advice-name {
  3439. text-align: left !important;
  3440. line-height: 16px !important;
  3441. }
  3442. .advice-children {
  3443. display: flex;
  3444. }
  3445. .margin-bottom-50 {
  3446. }
  3447. .margin-bottom-300 {
  3448. margin-bottom: 450px;
  3449. }
  3450. .margin-bottom-600 {
  3451. margin-bottom: 600px;
  3452. }
  3453. .margin-bottom-900 {
  3454. margin-bottom: 900px;
  3455. }
  3456. .print-yema {
  3457. position: absolute;
  3458. left: 50%;
  3459. }
  3460. .print-yema2 {
  3461. position: absolute;
  3462. left: 50%;
  3463. }
  3464. .print-yema3 {
  3465. position: absolute;
  3466. left: 50%;
  3467. }
  3468. .print-yema4 {
  3469. position: absolute;
  3470. left: 50%;
  3471. }
  3472. .check_box_panel .did_checke::after {
  3473. font-size: 8px;
  3474. margin-left: 2px;
  3475. margin-top: 2px;
  3476. position: absolute;
  3477. }
  3478. </style>