DialysisPrintOrderSeventyeight.vue 119KB

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