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

DialysisPrintOrderEight.vue 78KB

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