DialysisPrintOrderFortySix.vue 117KB

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