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

DialysisPrintOrderFiftyThree.vue 89KB

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