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

DialysisPrintOrderTwentyNine.vue 75KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849
  1. <template>
  2. <div>
  3. <el-button type="primary" @click="checkData">一键核对</el-button>
  4. <div id="dialysis-print-box">
  5. <div id='new-dialysis-1' class="dialysis-print-order" style="position:relative;">
  6. <img src="../../../assets/img/xuanwei.jpg" style="position: absolute;" alt="">
  7. <div class="order-yy-name" style="font-size:30px;font-weight:bold;padding-top:40px;">{{ orgname }}</div>
  8. <div class="order-title" style="padding-bottom:10px;padding-top:0;font-size:20px;font-weight:normal;">血液净化治疗记录单</div>
  9. <table class="table-box" style="margin-top: 10px;">
  10. <tbody>
  11. <tr>
  12. <td width="50">透析号:</td>
  13. <td width="80">
  14. <div class="under-line">{{getNumber()}}</div>
  15. </td>
  16. <td width="10"></td>
  17. <td width="20">第</td>
  18. <td width="50">
  19. <div class="under-line">&nbsp;{{patientInfo.total_dialysis + patientInfo.user_sys_before_count}}</div>
  20. </td>
  21. <td width="50">次透析</td>
  22. <td width="10"></td>
  23. <td width="40">病室:</td>
  24. <td width="120">
  25. <div class="under-line">&nbsp;
  26. <span v-if='receiverTreatmentAccess.condition == 1'>住院</span>
  27. <span v-if='receiverTreatmentAccess.condition == 2'>门诊</span>
  28. <span v-if='receiverTreatmentAccess.condition == 3'>手术期</span>
  29. <span v-if='receiverTreatmentAccess.condition == 4'>急诊</span>
  30. </div>
  31. </td>
  32. <td width="10"></td>
  33. <td width="80">透析日期:</td>
  34. <td width="50">
  35. <div class="under-line">
  36. &nbsp;<span>{{ queryParams.xtdate.slice(0,4) }}</span>
  37. </div>
  38. </td>
  39. <td width="10">年</td>
  40. <td width="50">
  41. <div class="under-line">
  42. &nbsp;<span>{{ queryParams.xtdate.slice(5,7) }}</span>
  43. </div>
  44. </td>
  45. <td width="10">月</td>
  46. <td width="50">
  47. <div class="under-line">
  48. &nbsp;<span>{{ queryParams.xtdate.slice(8,11) }}</span>
  49. </div>
  50. </td>
  51. <td width="10">日</td>
  52. <td></td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. <table class="print-table" border="1">
  57. <tbody>
  58. <tr>
  59. <td>
  60. <table class="table-box">
  61. <tr>
  62. <td width="50">姓 名:</td>
  63. <td width="80">
  64. <div class="under-line">&nbsp;{{ patientInfo.name }}</div>
  65. </td>
  66. <td width="10"></td>
  67. <td width="50">性 别:</td>
  68. <td width="60">
  69. <div class="under-line">{{ patientInfo.gender }}</div>
  70. </td>
  71. <td width="10"></td>
  72. <td width="50">年 龄:</td>
  73. <td width="60">
  74. <div class="under-line">{{ getAge(patientInfo) }}</div>
  75. </td>
  76. <td width="30">岁</td>
  77. <td width="40">ID号:</td>
  78. <td width="70">
  79. <div class="under-line">
  80. {{ patientInfo.dialysis_no ? patientInfo.dialysis_no : "" }}
  81. </div>
  82. </td>
  83. <td width="10"></td>
  84. <td width="40">诊 断:</td>
  85. <td width="">
  86. <div class="under-line" style="text-align:left">&nbsp;{{ patientInfo.diagnose }}</div>
  87. </td>
  88. <td></td>
  89. </tr>
  90. </table>
  91. </td>
  92. </tr>
  93. </tbody>
  94. </table>
  95. <table class="print-table" border="1">
  96. <tbody>
  97. <tr>
  98. <td>
  99. <table class="table-box">
  100. <tbody>
  101. <tr>
  102. <td width="70">透前评估:</td>
  103. <td width="40">出血:</td>
  104. <td width="50">
  105. <div>
  106. <label-box :isChecked="predialysis.is_hemorrhage == 2 ? true : false" showValue="无"></label-box>
  107. </div>
  108. </td>
  109. <td width="380">
  110. <div>
  111. <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('穿刺点渗血') > -1 ? true : false" showValue="穿刺点渗血"></label-box>
  112. &nbsp;
  113. <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('牙龈出血') > -1 ? true : false" showValue="牙龈出血"></label-box>
  114. &nbsp;
  115. <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('消化道出血') > -1 ? true : false" showValue="消化道出血"></label-box>
  116. &nbsp;
  117. <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage.indexOf('女性经期') > -1 ? true : false" showValue="女性经期"></label-box>
  118. </div>
  119. </td>
  120. <td width="50">其他:</td>
  121. <td width="">
  122. <div class="under-line">
  123. &nbsp;
  124. <span v-if="predialysis.is_hemorrhage == 1">{{ getHemorrhage(predialysis.hemorrhage) }}</span>
  125. </div>
  126. </td>
  127. <td></td>
  128. </tr>
  129. </tbody>
  130. </table>
  131. <table class="table-box">
  132. <tbody>
  133. <tr>
  134. <td width="70">血管通路:</td>
  135. <td width="480">
  136. <div>
  137. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>
  138. &nbsp;
  139. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1 ? true : false" showValue="人造血管"></label-box>
  140. &nbsp;
  141. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('直穿') > -1 ? true : false" showValue="直穿"></label-box>
  142. &nbsp;
  143. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉') > -1 ? true : false" showValue="颈内静脉"></label-box>
  144. &nbsp;
  145. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉') > -1 ? true : false" showValue="股静脉"></label-box>
  146. &nbsp;
  147. <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('锁骨下') > -1 ? true : false" showValue="锁骨下"></label-box>
  148. &nbsp;
  149. </div>
  150. </td>
  151. <td width="65">穿刺方法:</td>
  152. <td width="120">
  153. <div class="under-line">&nbsp;{{ predialysis.puncture_way ? predialysis.puncture_way : "" }}</div>
  154. </td>
  155. <td></td>
  156. </tr>
  157. </tbody>
  158. </table>
  159. <table class="table-box">
  160. <tbody>
  161. <tr>
  162. <td width="65">内瘘:震颤</td>
  163. <td width='10'>(</td>
  164. <td width="170">
  165. <div>
  166. <label-box :isChecked="predialysis.internal_fistula ? (predialysis.internal_fistula.indexOf('存在') > -1 ? true : false) : false" showValue="存在"></label-box>
  167. &nbsp;
  168. <label-box :isChecked="predialysis.internal_fistula ? (predialysis.internal_fistula.indexOf('减弱') > -1 ? true : false) : false" showValue="减弱"></label-box>
  169. &nbsp;
  170. <label-box :isChecked="predialysis.internal_fistula ? (predialysis.internal_fistula.indexOf('无') > -1 ? true : false) : false" showValue="无"></label-box>
  171. </div>
  172. </td>
  173. <td width='10'>)</td>
  174. <td width="90">导管: 穿刺口</td>
  175. <td width='10'>(</td>
  176. <td width="260">
  177. <div>
  178. <label-box :isChecked="predialysis.catheter.indexOf('干洁') > -1 ? true : false" showValue="干洁"></label-box>
  179. &nbsp;
  180. <label-box :isChecked="predialysis.catheter.indexOf('红肿') > -1 ? true : false" showValue="红肿"></label-box>
  181. &nbsp;
  182. <label-box :isChecked="predialysis.catheter.indexOf('分泌物') > -1 ? true : false" showValue="分泌物"></label-box>
  183. &nbsp;
  184. <label-box :isChecked="predialysis.catheter.indexOf('渗血') > -1 ? true : false" showValue="渗血"></label-box>
  185. </div>
  186. </td>
  187. <td width='10'>)</td>
  188. <td></td>
  189. </tr>
  190. </tbody>
  191. </table>
  192. </td>
  193. </tr>
  194. </tbody>
  195. </table>
  196. <table class="print-table" border="1" style="line-height: initial;">
  197. <tbody>
  198. <tr>
  199. <td width="30px" class="title-box">透析处方</td>
  200. <td>
  201. <table class="table-box">
  202. <tbody>
  203. <tr>
  204. <td width="70">治疗时间:</td>
  205. <td width="40">
  206. <div class="under-line">
  207. &nbsp;{{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : 0 }}
  208. </div>
  209. </td>
  210. <td width="10">h</td>
  211. <td width="40">
  212. <div class="under-line">
  213. &nbsp;{{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : 0 }}
  214. </div>
  215. </td>
  216. <td width="35">min</td>
  217. <td width="20"></td>
  218. <td width="70">血流量:</td>
  219. <td width="50">
  220. <div class="under-line">
  221. &nbsp;{{prescription.blood_flow_volume?prescription.blood_flow_volume:''}}
  222. </div>
  223. </td>
  224. <td width="20">ml/min</td>
  225. <td></td>
  226. </tr>
  227. </tbody>
  228. </table>
  229. <table class="table-box">
  230. <tbody>
  231. <tr>
  232. <td width='60'>干体重:</td>
  233. <td width="50">
  234. <div class="under-line">&nbsp;{{ predialysis.dry_weight ? predialysis.dry_weight : "" }}</div>
  235. </td>
  236. <td width="10">Kg</td>
  237. <td width="20"></td>
  238. <td width='110'>上次透后体重:</td>
  239. <td width="50">
  240. <div class="under-line">&nbsp;{{ assessmentafter.weight_after ? assessmentafter.weight_after : "" }}</div>
  241. </td>
  242. <td width="10">Kg</td>
  243. <td width="20"></td>
  244. <td width='70'>透前体重:</td>
  245. <td width="50">
  246. <div class="under-line">&nbsp;{{ predialysis.weight_before ? predialysis.weight_before : "" }}</div>
  247. </td>
  248. <td width="10">Kg</td>
  249. <td width="20"></td>
  250. <td width='70'>体重增加:</td>
  251. <td width="50">
  252. <div class="under-line">&nbsp;{{ (predialysis.weight_before - assessmentafter.weight_after).toFixed(1) }}</div>
  253. </td>
  254. <td width="10">Kg</td>
  255. <td width="20"></td>
  256. <td width="80">超滤总量:</td>
  257. <td width="50">
  258. <div class="under-line">
  259. &nbsp;{{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : ' ' }}
  260. </div>
  261. </td>
  262. <td width="10">ml</td>
  263. <td width="20"></td>
  264. <td width="70">置换量:</td>
  265. <td width="50">
  266. <div class="under-line">
  267. &nbsp;{{ prescription.replacement_total ? prescription.replacement_total : "" }}
  268. </div>
  269. </td>
  270. <td width="10">ml</td>
  271. <td></td>
  272. </tr>
  273. </tbody>
  274. </table>
  275. <table class="table-box">
  276. <tbody>
  277. <tr>
  278. <td width="70">治疗方式:</td>
  279. <td width="50">
  280. <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
  281. </td>
  282. <td width="50">
  283. <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>
  284. </td>
  285. <td width="50">
  286. <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>
  287. </td>
  288. <td width="50">
  289. <label-box :isChecked="prescription.mode_id == 20 ? true : false" showValue="UF"></label-box>
  290. </td>
  291. <td width='40'>其他:</td>
  292. <td width="50">
  293. <div class="under-line">&nbsp;<span v-if="prescription.mode_id != 1 && prescription.mode_id != 2 && prescription.mode_id != 5 && prescription.mode_id != 20">{{ prescription.mode ? prescription.mode : "" }}</span></div>
  294. </td>
  295. <td width="20"></td>
  296. <td width="100">透析(滤)器:</td>
  297. <td width="180">
  298. <div class="under-line">
  299. &nbsp;{{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
  300. </div>
  301. </td>
  302. <td></td>
  303. </tr>
  304. </tbody>
  305. </table>
  306. <table class="table-box">
  307. <tbody>
  308. <tr>
  309. <td width="140">依诺肝素/低分子肝素</td>
  310. <td width="50">(类型</td>
  311. <td width='100'>
  312. <div class="under-line">&nbsp;{{ prescription.anticoagulant ? prescription.anticoagulant : '' }}</div>
  313. </td>
  314. <td width="10">)</td>
  315. <td width="60">首剂</td>
  316. <td width="60">
  317. <div class="under-line">&nbsp;{{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "" }}</div>
  318. </td>
  319. <td width="10">
  320. <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
  321. <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
  322. <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
  323. <span v-if="prescription.anticoagulant == '普通肝素'">iu</span>
  324. <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
  325. <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
  326. <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>&nbsp;
  327. </td>
  328. <td width="60">追加</td>
  329. <td width="60">
  330. <div class="under-line">&nbsp;{{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "" }}</div>
  331. </td>
  332. <td width="10">
  333. <span v-if="prescription.anticoagulant == '枸橼酸钠'">ml/h</span>
  334. <span v-if="prescription.anticoagulant == '阿加曲班'">mg/h</span>
  335. <span v-if="prescription.anticoagulant == '低分子肝素'">iu/h</span>
  336. <span v-if="prescription.anticoagulant == '普通肝素'">iu/h</span>
  337. <span v-if="prescription.anticoagulant == '无肝素'">mg/h</span>
  338. <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu/h</span>
  339. <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu/h</span>
  340. </td>
  341. <td width="60">总量</td>
  342. <td width="60">
  343. <div class="under-line">&nbsp;{{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "" }}</div>
  344. </td>
  345. <td width="10">
  346. <span v-if="prescription.anticoagulant == '枸橼酸钠'">mg</span>
  347. <span v-if="prescription.anticoagulant == '阿加曲班'">mg</span>
  348. <span v-if="prescription.anticoagulant == '低分子肝素'">iu</span>
  349. <span v-if="prescription.anticoagulant == '普通肝素'">iu</span>
  350. <span v-if="prescription.anticoagulant == '无肝素'">mg</span>
  351. <span v-if="prescription.anticoagulant == '低分子肝素钙'">iu</span>
  352. <span v-if="prescription.anticoagulant == '低分子肝素钠'">iu</span>
  353. </td>
  354. <td></td>
  355. </tr>
  356. </tbody>
  357. </table>
  358. </td>
  359. </tr>
  360. </tbody>
  361. </table>
  362. <table class="print-table" border="1">
  363. <tbody>
  364. <tr>
  365. <td :rowspan="jilurow" width="30px" class="title-box">
  366. 治疗记录
  367. </td>
  368. <td width="60">时间</td>
  369. <td width="60" style="height:20px;line-height:20px">血流量<br />ml/分</td>
  370. <td width="60" style="height:20px;line-height:20px">静脉压<br />mmHg</td>
  371. <td width="60" style="height:20px;line-height:20px">透析<br />温度<br />℃</td>
  372. <td width="40" style="height:20px;line-height:20px">kt/v</td>
  373. <td width="60" style="height:20px;line-height:20px">血容量<br />ml</td>
  374. <td width="60" style="height:20px;line-height:20px">置换液<br />速度<br />ml/h</td>
  375. <td width="60" style="height:20px;line-height:20px">超滤率<br />ml/h</td>
  376. <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
  377. <td width="40" style="height:20px;line-height:20px">心率<br />次/分</td>
  378. <td width="40" style="height:20px;line-height:20px">呼吸<br />次/分</td>
  379. <td width="80" style="height:20px;line-height:20px">血压<br />mmHg</td>
  380. <td width="">特殊记录</td>
  381. <td width="60" style="height:20px;line-height:20px">签名</td>
  382. </tr>
  383. <tr v-for="monitor in monitors" :key="monitor.id">
  384. <td style="height:40px;line-height:40px;">&nbsp;{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  385. <td>&nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}</td>
  386. <td>&nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}</td>
  387. <td>&nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
  388. <td>&nbsp;{{ monitor.ktv ? monitor.ktv : "" }}</td>
  389. <td>&nbsp;{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : "" }}</td>
  390. <td>&nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}</td>
  391. <td>&nbsp;{{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : "" }}</td>
  392. <td>&nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}</td>
  393. <td>&nbsp;{{ monitor.pulse_frequency ? monitor.pulse_frequency : '' }}</td>
  394. <td>&nbsp;{{ monitor.breathing_rate ? monitor.breathing_rate : '' }}</td>
  395. <td>
  396. <span v-if="monitor.systolic_blood_pressure || monitor.diastolic_blood_pressure">
  397. &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
  398. {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
  399. </span>
  400. </td>
  401. <td style="text-align:left;padding-left:10px;">
  402. <div style="line-height:20px;text-align: left;display: inline-block;">
  403. &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}
  404. </div>
  405. </td>
  406. <td>
  407. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">
  408. {{ getAdminUser(monitor.monitoring_nurse) }}
  409. </span>
  410. <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
  411. <img style="height:30px;" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset />
  412. </span>
  413. </td>
  414. </tr>
  415. </tbody>
  416. </table>
  417. <table class="print-table" border="1">
  418. <tr>
  419. <td :rowspan="tableAdvice.length + 1" width="30px" class="title-box">
  420. 透析临嘱
  421. </td>
  422. <td width='140' style="height:40px;line-height:40px">时间</td>
  423. <td width='80'>医生</td>
  424. <td>临时医嘱</td>
  425. <td width='60'>是否执行</td>
  426. <td width='80'>执行者</td>
  427. <td width='140'>执行时间</td>
  428. <td width='80'>核对者</td>
  429. </tr>
  430. <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index" >
  431. <td style="height:40px;line-height:40px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  432. <td>
  433. <span v-if="setAdminUserES(advice.advice_doctor) == ''">
  434. {{ getAdminUser(advice.advice_doctor) }}
  435. </span>
  436. <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
  437. <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
  438. </span>
  439. </td>
  440. <td class="parent" style="text-align:left;padding-left:10px;">
  441. <span v-if="advice.parent_id > 0">---></span>
  442. <span>{{ advice.advice_name }}</span>
  443. <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  444. <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
  445. <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  446. <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
  447. <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
  448. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
  449. </td>
  450. <td>
  451. <div v-if="advice.start_time">
  452. <span v-if="advice.execution_staff">是</span>
  453. <span v-else>否</span>
  454. </div>
  455. </td>
  456. <td>
  457. <span v-if="setAdminUserES(advice.execution_staff) == ''">
  458. {{ getAdminUser(advice.execution_staff) }}
  459. </span>
  460. <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
  461. <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
  462. </span>
  463. </td>
  464. <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  465. <td>
  466. <span v-if="setAdminUserES(advice.checker) == ''">
  467. {{ getAdminUser(advice.checker) }}
  468. </span>
  469. <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
  470. <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
  471. </span>
  472. </td>
  473. </tr>
  474. </table>
  475. <table class="print-table" border="1">
  476. <tbody>
  477. <tr>
  478. <td class="title-box" width="30px" style="line-height:30px">透后情况</td>
  479. <td>
  480. <table class="table-box">
  481. <tbody>
  482. <tr>
  483. <td width="100">实际治疗时间:</td>
  484. <td width="40">
  485. <div class="under-line">
  486. &nbsp;{{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : 0 }}
  487. </div>
  488. </td>
  489. <td width="10">h</td>
  490. <td width="40">
  491. <div class="under-line">
  492. &nbsp;{{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}
  493. </div>
  494. </td>
  495. <td width="35">min</td>
  496. <td width="30"></td>
  497. <td width="100">实际超滤总量:</td>
  498. <td width="50">
  499. <div class="under-line">
  500. &nbsp;{{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : " " }}
  501. </div>
  502. </td>
  503. <td width="10">ml</td>
  504. <td width="30"></td>
  505. <td width='70'>透后体重:</td>
  506. <td width="50">
  507. <div class="under-line">&nbsp;{{ afterdialysis.weight_after ? afterdialysis.weight_after : "" }}</div>
  508. </td>
  509. <td width="10">Kg</td>
  510. <td width="30"></td>
  511. <td width='70'>体重下降:</td>
  512. <td width="50">
  513. <div class="under-line">&nbsp;{{ (predialysis.weight_before - afterdialysis.weight_after) }}</div>
  514. </td>
  515. <td width="10">Kg</td>
  516. <td></td>
  517. </tr>
  518. </tbody>
  519. </table>
  520. <table class="table-box" style="margin-bottom:20px;">
  521. <tbody>
  522. <tr>
  523. <!-- <td width="70">其他记录:</td> -->
  524. <td width="70" style="text-align:left;">治疗方案:
  525. <div style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;display:inline;">
  526. <span>宣教:{{ summary.mission ? summary.mission : "" }}</span>
  527. <span>小结:{{ summary.dialysis_summary ? summary.dialysis_summary : "" }}</span>
  528. </div>
  529. </td>
  530. <!-- <td width="">
  531. </td> -->
  532. </tr>
  533. </tbody>
  534. </table>
  535. <table class="table-box">
  536. <tbody>
  537. <tr>
  538. <td></td>
  539. <td width="80">穿刺护士:</td>
  540. <td width="80">
  541. <div style="text-align:left">
  542. &nbsp;
  543. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
  544. <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
  545. </div>
  546. </td>
  547. <td width="150">治疗护士:</td>
  548. <td width="80">
  549. <div style="text-align:left">
  550. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
  551. <img class="es-img" style="height:30px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
  552. </div>
  553. </td>
  554. <td width="70">医生:</td>
  555. <td width="80">
  556. <div style="text-align:left">
  557. <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
  558. <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
  559. </div>
  560. </td>
  561. </tr>
  562. </tbody>
  563. </table>
  564. </td>
  565. </tr>
  566. </tbody>
  567. </table>
  568. </div>
  569. </div>
  570. </div>
  571. </template>
  572. <script>
  573. import { getDialysisRecord } from '@/api/dialysis'
  574. import { getDataConfig } from '@/utils/data'
  575. import { jsGetAge, uParseTime } from '@/utils/tools'
  576. import LabelBox from '../printItem/LabelBox'
  577. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  578. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  579. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  580. import print from 'print-js'
  581. export default {
  582. name: 'dialysisPrintOrderOne',
  583. components: {
  584. // DialysisPrintOrderOne,
  585. // DialysisPrintOrderTwo,
  586. LabelBox,
  587. BreadCrumb
  588. },
  589. data() {
  590. return {
  591. way_arr: [],
  592. consciousness_arr: [],
  593. appetite_arr: [],
  594. posture_arr: [],
  595. sick_condition_arr: [],
  596. precaution_arr: [],
  597. intake_arr: [],
  598. nutrition_arr: [],
  599. crumbs: [
  600. { path: false, name: '透析管理' },
  601. { path: false, name: '打印单' }
  602. ],
  603. operators: [],
  604. adminUser: [],
  605. check: {},
  606. dialysisOrder: {
  607. DeviceNumber: []
  608. },
  609. Order: {},
  610. operatorMaps: {},
  611. complications: [
  612. '低血压',
  613. '高血压',
  614. '心律失常',
  615. '头晕',
  616. '头痛',
  617. '呕吐',
  618. '抽搐',
  619. '出血',
  620. '心衰',
  621. '腹痛',
  622. '无'
  623. ],
  624. jilurow: 0,
  625. advice_jilurow: 0,
  626. loading: false,
  627. orgname: '',
  628. patientInfo_gender_1: false,
  629. patientInfo_gender_2: false,
  630. patientInfo_source_2: false,
  631. patientInfo_source_1: false,
  632. modeOptions: {},
  633. replacementWays: [],
  634. perfusionApparatus: [],
  635. anticoagulantsConfit: {},
  636. bloodAccessParOpera: {},
  637. dialysateFormulationOptions: {},
  638. queryParams: {
  639. xtdate: '',
  640. xtno: ''
  641. },
  642. patientInfo: {
  643. birth: '',
  644. age: '',
  645. DialysisSchedule: {
  646. device_number: { number: '' },
  647. device_zone: { name: '' }
  648. },
  649. gender: 0
  650. },
  651. predialysis: {
  652. score: '',
  653. internal_fistula: '',
  654. internal_fistula_skin: '',
  655. catheter: '',
  656. blood_access_part_opera_name: ''
  657. },
  658. lastpredialysis: '',
  659. InfectiousDiseases: '',
  660. afterdialysis: {
  661. complications_index: ''
  662. },
  663. prescription: {
  664. dialysate_formulation_name: '',
  665. device: {}
  666. },
  667. advices: [],
  668. users: [],
  669. monitors: [],
  670. summary: {},
  671. receiverTreatmentAccess: {},
  672. org_template_info: {},
  673. isShowZero: false,
  674. doctor_advices: [],
  675. advice_groups: [],
  676. AlPanel: {
  677. id: 0,
  678. name: '',
  679. type: 1,
  680. shouji: 2,
  681. weichi: 2,
  682. zongliang: 2,
  683. gaimingcheng: -1,
  684. gaijiliang: -1,
  685. shouji_unit: 'mg',
  686. weichi_unit: 'mg/h',
  687. zongliang_unit: 'mg',
  688. gaimingcheng_unit: '',
  689. gaijiliang_unit: ''
  690. },
  691. total: '',
  692. doctorForm: {
  693. doctor: '',
  694. url: ''
  695. },
  696. dialysisDoctor: {
  697. doctor: '',
  698. url: ''
  699. },
  700. tableAdvice: [],
  701. assessmentafter: {},
  702. orderForm: {
  703. start_nurse: '',
  704. url: ''
  705. },
  706. finshForm: {
  707. finish_nurse: '',
  708. url: ''
  709. },
  710. displaceLiquiPartOptions: [],
  711. last_order:{}
  712. }
  713. },
  714. methods: {
  715. checkData(){
  716. if(this.receiverTreatmentAccess.condition == 0){
  717. this.$message.error('病室未填')
  718. }else if(this.predialysis.is_hemorrhage == 0){
  719. this.$message.error('出血未填')
  720. }else if(this.predialysis.is_hemorrhage == 1 && this.predialysis.hemorrhage == ""){
  721. this.$message.error('出血未填')
  722. }else if(this.predialysis.blood_access_part_opera_name == ''){
  723. this.$message.error('血管通路未填')
  724. }else if(this.predialysis.puncture_way == ''){
  725. this.$message.error('穿刺方法未填')
  726. }else if(this.predialysis.internal_fistula == ''){
  727. this.$message.error('内瘘震颤未填')
  728. }else if(this.predialysis.catheter == ''){
  729. this.$message.error('导管穿刺口未填')
  730. }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
  731. this.$message.error('治疗时间未填')
  732. }else if(this.prescription.blood_flow_volume == 0){
  733. this.$message.error('血流量未填')
  734. }else if(this.predialysis.weight_before == 0){
  735. this.$message.error('透前体重未填')
  736. }else if(this.predialysis.dry_weight == 0){
  737. this.$message.error('干体重未填')
  738. }else if(this.prescription.target_ultrafiltration == 0){
  739. this.$message.error('超滤总量未填')
  740. }else if(this.prescription.replacement_total == ""){
  741. this.$message.error('置换量未填')
  742. }else if(this.prescription.mode_id == ""){
  743. this.$message.error('治疗方式未填')
  744. }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
  745. this.$message.error('透析(滤)器未填')
  746. }else if(this.prescription.anticoagulant == 0){
  747. this.$message.error('肝素未填')
  748. }else if(this.afterdialysis.actual_ultrafiltration == 0){
  749. this.$message.error('实际超滤总量未填')
  750. }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
  751. this.$message.error('实际治疗时间未填')
  752. }else if(this.afterdialysis.weight_after == 0){
  753. this.$message.error('透后体重未填')
  754. }else if(this.afterdialysis.weight_after == 0 && this.predialysis.weight_before == 0){
  755. this.$message.error('体重下降未填')
  756. }else if(this.summary.mission == ""){
  757. this.$message.error('透析宣教未填')
  758. }else if(this.summary.dialysis_summary == ""){
  759. this.$message.error('透析小结未填')
  760. }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
  761. this.$message.error('穿刺护士未填')
  762. }else if(this.dialysisOrder.start_nurse == 0){
  763. this.$message.error('治疗护士未填')
  764. }else if(this.prescription.prescription_doctor == 0){
  765. this.$message.error('医生未填')
  766. }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
  767. let num = 0
  768. if(this.monitors.length > 0){
  769. this.monitors.map(item => {
  770. if(item.id > 0 && item.operate_time){
  771. this.users.map(it => {
  772. if(it.id == item.monitoring_nurse){
  773. if(it.user_type == 2){
  774. num++
  775. this.$message.closeAll()
  776. this.$message.error('存在不是护士保存的监测')
  777. }
  778. }
  779. })
  780. }
  781. })
  782. }
  783. if(this.tableAdvice.length > 0){
  784. this.tableAdvice.map(item => {
  785. if(item.id > 0 && (item.created_time || item.start_time)){
  786. this.users.map(it => {
  787. if(it.id == item.advice_doctor){
  788. if(it.user_type == 3){
  789. num++
  790. this.$message.closeAll()
  791. this.$message.error('存在不是医生保存的医嘱')
  792. }else if(it.id == item.execution_staff && item.execution_staff > 0){
  793. if(it.user_type == 2){
  794. num++
  795. this.$message.closeAll()
  796. this.$message.error('存在不是护士执行的医嘱')
  797. }
  798. }else if(it.id == item.checker && item.checker > 0){
  799. if(it.user_type == 2){
  800. num++
  801. this.$message.closeAll()
  802. this.$message.error('存在不是护士核对的医嘱')
  803. }
  804. }
  805. }else if(it.id == item.execution_staff && item.execution_staff > 0){
  806. if(it.user_type == 2){
  807. num++
  808. this.$message.closeAll()
  809. this.$message.error('存在不是护士执行的医嘱')
  810. }
  811. }else if(it.id == item.checker && item.checker > 0){
  812. if(it.user_type == 2){
  813. num++
  814. this.$message.closeAll()
  815. this.$message.error('存在不是护士核对的医嘱')
  816. }
  817. }
  818. })
  819. }
  820. })
  821. }
  822. if(num == 0){
  823. this.$message.success('核对完成')
  824. }
  825. }else{
  826. this.$message.success('核对完成')
  827. }
  828. },
  829. getHemorrhage(hemorrhage){
  830. if(hemorrhage.indexOf(',') == -1){
  831. let str = hemorrhage
  832. if(['无','穿刺点渗血','牙龈出血','消化道出血','女性经期'].indexOf(str) == -1){
  833. return str
  834. }
  835. }else if(hemorrhage.indexOf(',') > -1){
  836. let str = hemorrhage
  837. if(['无','穿刺点渗血','牙龈出血','消化道出血','女性经期'].indexOf(str) == -1){
  838. let newStr = ''
  839. str.split(',').map(item => {
  840. if(['无','穿刺点渗血','牙龈出血','消化道出血','女性经期'].indexOf(item) == -1){
  841. newStr += item + ','
  842. }
  843. })
  844. return newStr.substring(0, newStr.length - 1)
  845. }
  846. }
  847. },
  848. getComplication(complication){
  849. if(complication.indexOf(',') == -1){
  850. let str = complication
  851. if(['无','头晕','头痛','抽搐','低血压','出血','呕吐'].indexOf(str) == -1){
  852. return str
  853. }
  854. }else if(complication.indexOf(',') > -1){
  855. let str = complication
  856. if(['无','头晕','头痛','抽搐','低血压','出血','呕吐'].indexOf(str) == -1){
  857. let newStr = ''
  858. str.split(',').map(item => {
  859. if(['无','头晕','头痛','抽搐','低血压','出血','呕吐'].indexOf(item) == -1){
  860. newStr += item + ','
  861. }
  862. })
  863. return newStr.substring(0, newStr.length - 1)
  864. }
  865. }
  866. },
  867. getPunctureWay: function(val) {
  868. let puncture_method_name = '/'
  869. const puncture_method = getDataConfig("hemodialysis", "puncture_method")
  870. for (let i = 0; i < puncture_method.length; i++) {
  871. if (puncture_method[i].id == val) {
  872. puncture_method_name = puncture_method[i].name
  873. }
  874. }
  875. return puncture_method_name
  876. },
  877. getHumorExcessiveSymptom(val) {
  878. const humor_excessive_symptom = getDataConfig('hemodialysis', 'humor_excessive_symptom')
  879. var humor_excessive_symptom_name = ''
  880. for (let i = 0; i < humor_excessive_symptom.length; i++) {
  881. if (humor_excessive_symptom[i].id == val) {
  882. humor_excessive_symptom_name = humor_excessive_symptom[i].name
  883. }
  884. }
  885. return humor_excessive_symptom_name
  886. },
  887. QueryPartById: function(val) {
  888. let vascular_access_part_name = '/'
  889. const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  890. for (let i = 0; i < vascular_access.length; i++) {
  891. if (vascular_access[i].id == val) {
  892. vascular_access_part_name = vascular_access[i].name
  893. }
  894. }
  895. return vascular_access_part_name
  896. },
  897. getDisplaceLiquiPart: function(val) {
  898. let displace_liqui_part_name = '/'
  899. const displace_liqui_part = this.displaceLiquiPartOptions
  900. for (let i = 0; i < displace_liqui_part.length; i++) {
  901. if (displace_liqui_part[i].id == val) {
  902. displace_liqui_part_name = displace_liqui_part[i].name
  903. }
  904. }
  905. return displace_liqui_part_name
  906. },
  907. getAdminUser(id) {
  908. if (id == 0) {
  909. return ''
  910. }
  911. if (id == undefined) {
  912. return ''
  913. }
  914. for (let i = 0; i < this.adminUser.length; i++) {
  915. if (this.adminUser[i].id == id) {
  916. return this.adminUser[i].name
  917. }
  918. }
  919. },
  920. getTime(value, temp) {
  921. if (value == 0) {
  922. return ''
  923. }
  924. if (value != undefined) {
  925. return uParseTime(value, temp)
  926. }
  927. return ''
  928. },
  929. printThisPage() {
  930. var ptime = Math.round(new Date().getTime() / 1000)
  931. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  932. const style =
  933. '@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;}'
  934. if (this.org_template_info.template_id == 1) {
  935. printJS({
  936. printable: 'dialysis-print-box',
  937. type: 'html',
  938. style: style,
  939. scanStyles: false
  940. })
  941. } else if (
  942. this.org_template_info.template_id == 2 ||
  943. this.org_template_info.template_id == 0
  944. ) {
  945. printJS({
  946. printable: 'dialysis-print-box-1',
  947. type: 'html',
  948. style: style,
  949. scanStyles: false
  950. })
  951. }
  952. },
  953. getNumber() {
  954. if (this.dialysisOrder != null) {
  955. if(this.patientInfo.DialysisSchedule.device_zone.name.indexOf("区") > -1){
  956. return (
  957. this.patientInfo.DialysisSchedule.device_zone.name +
  958. this.dialysisOrder.DeviceNumber.number
  959. );
  960. } else {
  961. return (
  962. this.patientInfo.DialysisSchedule.device_zone.name + "区" +
  963. this.dialysisOrder.DeviceNumber.number
  964. );
  965. }
  966. } else {
  967. if(this.patientInfo.DialysisSchedule.device_zone.name.indexOf("区") > -1){
  968. return (
  969. this.patientInfo.DialysisSchedule.device_zone.name +
  970. this.patientInfo.DialysisSchedule.device_number.number
  971. );
  972. }else{
  973. return (
  974. this.patientInfo.DialysisSchedule.device_zone.name + "区" +
  975. this.patientInfo.DialysisSchedule.device_number.number
  976. );
  977. }
  978. }
  979. },
  980. getXuserName(id) {
  981. if (id <= 0) {
  982. return ''
  983. }
  984. var name = ''
  985. if (this.users == null || typeof this.users.length === 'undefined') {
  986. return name
  987. }
  988. var leng = this.users.length
  989. if (leng == 0) {
  990. return name
  991. }
  992. for (let index = 0; index < leng; index++) {
  993. if (this.users[index].id == id) {
  994. name = this.users[index].name
  995. break
  996. }
  997. }
  998. return name
  999. },
  1000. setAdminUserES(id) {
  1001. if (id == 0) {
  1002. return ''
  1003. }
  1004. if (id in this.operatorMaps) {
  1005. return this.operatorMaps[id].url
  1006. } else {
  1007. return ''
  1008. }
  1009. },
  1010. modeName(mode_id) {
  1011. return typeof this.modeOptions[mode_id] !== 'undefined' &&
  1012. typeof this.modeOptions[mode_id].name !== 'undefined'
  1013. ? this.modeOptions[mode_id].name
  1014. : ''
  1015. },
  1016. getDialysisRecord() {
  1017. this.loading = true
  1018. getDialysisRecord(this.queryParams).then(response => {
  1019. if (response.data.state === 1) {
  1020. this.total = response.data.data.total
  1021. this.adminUser = response.data.data.users
  1022. this.users = response.data.data.users
  1023. var patientInfo = response.data.data.patientInfo
  1024. if (patientInfo.gender === 1) {
  1025. patientInfo.gender = '男'
  1026. }
  1027. if (patientInfo.gender === 2) {
  1028. patientInfo.gender = '女'
  1029. }
  1030. console.log('patientInfo', patientInfo)
  1031. this.patientInfo = patientInfo
  1032. this.patientInfo.birth = uParseTime(
  1033. this.patientInfo.birthday,
  1034. '{y}-{m}-{d}'
  1035. )
  1036. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1037. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1038. this.patientInfo.first_dialysis_date = uParseTime(
  1039. response.data.data.patientInfo.first_dialysis_date,
  1040. '{y}-{m}-{d}'
  1041. )
  1042. } else {
  1043. this.patientInfo.first_dialysis_date = ''
  1044. }
  1045. this.check = response.data.data.check
  1046. console.log('核对信息', this.check)
  1047. this.predialysis = response.data.data.PredialysisEvaluation
  1048. this.lastpredialysis = response.data.data.lastPredialysisEvaluation
  1049. var InfectiousDiseasesArr = response.data.data.patientInfo.InfectiousDiseases
  1050. console.log('透前评估', this.predialysis)
  1051. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1052. this.predialysis.blood_access_part_opera_id
  1053. )
  1054. this.assessmentafter = response.data.data.assessmentAfterDislysis
  1055. console.log('上次透后体重', this.assessmentafter)
  1056. var doctorAdevieInfo = response.data.data.doctorAdevieInfo
  1057. var tableAdvice = doctorAdevieInfo
  1058. InfectiousDiseasesArr.forEach((item, index) => {
  1059. if (item['id'] > 0 && item['disease_id'] > 0) {
  1060. switch (item['disease_id']) {
  1061. case 2 :
  1062. this.InfectiousDiseases += '乙肝 '
  1063. break
  1064. case 3 :
  1065. this.InfectiousDiseases += '丙肝 '
  1066. break
  1067. case 4 :
  1068. this.InfectiousDiseases += '艾滋病 '
  1069. break
  1070. case 5 :
  1071. this.InfectiousDiseases += '肺结核 '
  1072. break
  1073. case 6 :
  1074. this.InfectiousDiseases += '梅毒 '
  1075. break
  1076. }
  1077. }
  1078. })
  1079. // console.log('医生', tableAdvice.length)
  1080. if (tableAdvice.length === 0) {
  1081. var obj = { advice_name: '', start_time: '' }
  1082. var obj1 = { advice_name: '', start_time: '' }
  1083. var obj2 = { advice_name: '', start_time: '' }
  1084. var obj3 = { advice_name: '', start_time: '' }
  1085. var obj4 = { advice_name: '', start_time: '' }
  1086. var obj5 = { advice_name: '', start_time: '' }
  1087. tableAdvice.push(obj)
  1088. tableAdvice.push(obj1)
  1089. tableAdvice.push(obj2)
  1090. tableAdvice.push(obj3)
  1091. tableAdvice.push(obj4)
  1092. tableAdvice.push(obj5)
  1093. this.tableAdvice = tableAdvice
  1094. }
  1095. if (tableAdvice.length === 1) {
  1096. var obj = { advice_name: '', start_time: '' }
  1097. var obj1 = { advice_name: '', start_time: '' }
  1098. var obj2 = { advice_name: '', start_time: '' }
  1099. var obj3 = { advice_name: '', start_time: '' }
  1100. var obj4 = { advice_name: '', start_time: '' }
  1101. tableAdvice.push(obj)
  1102. tableAdvice.push(obj1)
  1103. tableAdvice.push(obj2)
  1104. tableAdvice.push(obj3)
  1105. tableAdvice.push(obj4)
  1106. this.tableAdvice = tableAdvice
  1107. }
  1108. if (tableAdvice.length === 2) {
  1109. var obj = { advice_name: '', start_time: '' }
  1110. var obj1 = { advice_name: '', start_time: '' }
  1111. var obj2 = { advice_name: '', start_time: '' }
  1112. var obj3 = { advice_name: '', start_time: '' }
  1113. tableAdvice.push(obj)
  1114. tableAdvice.push(obj1)
  1115. tableAdvice.push(obj2)
  1116. tableAdvice.push(obj3)
  1117. this.tableAdvice = tableAdvice
  1118. }
  1119. if (tableAdvice.length === 3) {
  1120. // eslint-disable-next-line no-redeclare
  1121. var obj = { advice_name: '', start_time: '' }
  1122. // eslint-disable-next-line no-redeclare
  1123. var obj1 = { advice_name: '', start_time: '' }
  1124. // eslint-disable-next-line no-redeclare
  1125. var obj2 = { advice_name: '', start_time: '' }
  1126. // eslint-disable-next-line no-redeclare
  1127. tableAdvice.push(obj)
  1128. tableAdvice.push(obj1)
  1129. tableAdvice.push(obj2)
  1130. this.tableAdvice = tableAdvice
  1131. }
  1132. if (tableAdvice.length === 4) {
  1133. // eslint-disable-next-line no-redeclare
  1134. var obj = { advice_name: '', start_time: '' }
  1135. // eslint-disable-next-line no-redeclare
  1136. var obj1 = { advice_name: '', start_time: '' }
  1137. // eslint-disable-next-line no-redeclare
  1138. tableAdvice.push(obj)
  1139. tableAdvice.push(obj1)
  1140. this.tableAdvice = tableAdvice
  1141. }
  1142. if (tableAdvice.length === 5) {
  1143. // eslint-disable-next-line no-redeclare
  1144. var obj = { advice_name: '', start_time: '' }
  1145. // eslint-disable-next-line no-redeclare
  1146. var obj1 = { advice_name: '', start_time: '' }
  1147. tableAdvice.push(obj)
  1148. this.tableAdvice = tableAdvice
  1149. }
  1150. if (tableAdvice.length >= 6 && tableAdvice.length <= 8) {
  1151. const length = 8 - tableAdvice.length
  1152. var obj = { advice_name: '', start_time: '' }
  1153. for (i = 0; i < length; i++) {
  1154. console.log(1)
  1155. tableAdvice.push(obj)
  1156. }
  1157. this.tableAdvice = tableAdvice
  1158. }else{
  1159. this.tableAdvice = tableAdvice
  1160. }
  1161. this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1162. console.log('透后评估', this.afterdialysis)
  1163. this.operators = response.data.data.operators
  1164. this.dialysisOrder =
  1165. response.data.data.dialysisOrder === null
  1166. ? null
  1167. : response.data.data.dialysisOrder
  1168. if (this.operators.length > 0) {
  1169. var operatorsLen = this.operators.length
  1170. for (var index = 0; index < operatorsLen; index++) {
  1171. this.$set(
  1172. this.operatorMaps,
  1173. this.operators[index].creator,
  1174. this.operators[index]
  1175. )
  1176. }
  1177. }
  1178. this.afterdialysis.txqnx = -1
  1179. if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1180. this.afterdialysis.txqnx = 0
  1181. }
  1182. if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1183. this.afterdialysis.txqnx = 1
  1184. }
  1185. if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1186. this.afterdialysis.txqnx = 2
  1187. }
  1188. if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1189. this.afterdialysis.txqnx = 3
  1190. }
  1191. this.afterdialysis.complications = this.afterdialysis.complication.split(
  1192. ','
  1193. )
  1194. this.afterdialysis.complications_other = []
  1195. this.afterdialysis.complications_index = []
  1196. var acllen = this.afterdialysis.complications.length
  1197. for (let index = 0; index < acllen; index++) {
  1198. if (
  1199. this.complications.indexOf(
  1200. this.afterdialysis.complications[index]
  1201. ) >= 0
  1202. ) {
  1203. this.afterdialysis.complications_index.push(
  1204. this.afterdialysis.complications[index]
  1205. )
  1206. } else if (
  1207. this.complications.indexOf(
  1208. this.afterdialysis.complications[index]
  1209. ) < 0 &&
  1210. this.afterdialysis.complications_other.indexOf(
  1211. this.afterdialysis.complications[index]
  1212. ) < 0
  1213. ) {
  1214. this.afterdialysis.complications_other.push(
  1215. this.afterdialysis.complications[index]
  1216. )
  1217. }
  1218. }
  1219. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  1220. ','
  1221. )
  1222. var doctorname = response.data.data.DoctorName
  1223. // console.log("医师签名", doctorname);
  1224. this.doctorForm.doctor = doctorname.user_name
  1225. this.doctorForm.url = doctorname.url
  1226. var prescription = response.data.data.dialysisPrescription
  1227. console.log('透析处方', prescription)
  1228. if (prescription.anticoagulant == 6) {
  1229. prescription.anticoagulant = '低分子肝素钙'
  1230. }
  1231. if (prescription.anticoagulant == 7) {
  1232. prescription.anticoagulant = '低分子肝素钠'
  1233. }
  1234. if (prescription.blood_access === 1) {
  1235. prescription.blood_access = '正常'
  1236. }
  1237. if (prescription.blood_access === 2) {
  1238. prescription.blood_access = '震颤'
  1239. }
  1240. if (prescription.blood_access === 3) {
  1241. prescription.blood_access = '堵塞'
  1242. }
  1243. if (prescription.blood_access === 4) {
  1244. prescription.blood_access = '血肿'
  1245. }
  1246. if (prescription.blood_access === 5) {
  1247. prescription.blood_access = '淤血'
  1248. }
  1249. if (prescription.blood_access === 6) {
  1250. prescription.blood_access = '感染'
  1251. }
  1252. if (prescription.blood_access === 7) {
  1253. prescription.blood_access = '自体内瘘'
  1254. }
  1255. if (prescription.blood_access === 8) {
  1256. prescription.blood_access = '人工血管内瘘'
  1257. }
  1258. if (prescription.replacement_way === 1) {
  1259. prescription.replacement_way = '前置换'
  1260. }
  1261. if (prescription.replacement_way === 2) {
  1262. prescription.replacement_way = '后置换'
  1263. }
  1264. if (prescription.replacement_way === 3) {
  1265. prescription.replacement_way = '中置换'
  1266. }
  1267. if (prescription.replacement_way === 4) {
  1268. prescription.replacement_way = '混合置换'
  1269. }
  1270. if (prescription.anticoagulant === 1) {
  1271. prescription.anticoagulant = '无肝素'
  1272. }
  1273. if (prescription.anticoagulant === 2) {
  1274. prescription.anticoagulant = '普通肝素'
  1275. }
  1276. if (prescription.anticoagulant === 3) {
  1277. prescription.anticoagulant = '低分子肝素'
  1278. }
  1279. if (prescription.anticoagulant === 4) {
  1280. prescription.anticoagulant = '阿加曲班'
  1281. }
  1282. if (prescription.anticoagulant === 5) {
  1283. prescription.anticoagulant = '枸橼酸钠'
  1284. }
  1285. this.prescription = prescription
  1286. var receiverTreatmentAccess =
  1287. response.data.data.receiverTreatmentAccess
  1288. if (receiverTreatmentAccess.sick_condition === 1) {
  1289. receiverTreatmentAccess.sick_condition = '一般'
  1290. }
  1291. if (receiverTreatmentAccess.sick_condition === 2) {
  1292. receiverTreatmentAccess.sick_condition = '严重'
  1293. }
  1294. if (receiverTreatmentAccess.sick_condition === 3) {
  1295. receiverTreatmentAccess.sick_condition = '危'
  1296. }
  1297. if (receiverTreatmentAccess.way === 1) {
  1298. receiverTreatmentAccess.way = '步行'
  1299. }
  1300. if (receiverTreatmentAccess.way === 2) {
  1301. receiverTreatmentAccess.way = '扶行'
  1302. }
  1303. if (receiverTreatmentAccess.way === 3) {
  1304. receiverTreatmentAccess.way = '轮椅'
  1305. }
  1306. if (receiverTreatmentAccess.way === 4) {
  1307. receiverTreatmentAccess.way = '平车'
  1308. }
  1309. console.log('接诊评估:', receiverTreatmentAccess)
  1310. this.receiverTreatmentAccess = receiverTreatmentAccess
  1311. this.prescription.mode = this.modeName(this.prescription.mode_id)
  1312. var rwLen = this.replacementWays.length
  1313. this.prescription.replacement = ''
  1314. for (let index = 0; index < rwLen; index++) {
  1315. if (
  1316. this.replacementWays[index].id ==
  1317. this.prescription.replacement_way
  1318. ) {
  1319. this.prescription.replacement = this.replacementWays[index].name
  1320. break
  1321. }
  1322. }
  1323. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1324. this.prescription.dialysate_formulation
  1325. )
  1326. var paLen = this.perfusionApparatus.length
  1327. this.prescription.perfusion_apparatus_name = ''
  1328. for (let index = 0; index < paLen; index++) {
  1329. if (
  1330. this.perfusionApparatus[index].id ==
  1331. this.prescription.perfusion_apparatus
  1332. ) {
  1333. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1334. index
  1335. ].name
  1336. break
  1337. }
  1338. }
  1339. var acLen = this.anticoagulantsConfit.length
  1340. var thisALID = this.prescription.anticoagulant
  1341. this.prescription.anticoagulant_name = ''
  1342. if (
  1343. typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
  1344. this.anticoagulantsConfit[thisALID] != null
  1345. ) {
  1346. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1347. thisALID
  1348. ].name
  1349. this.AlPanel = this.anticoagulantsConfit[thisALID]
  1350. }
  1351. this.last_order = response.data.data.last_order
  1352. this.advices = response.data.data.advices
  1353. this.monitors = response.data.data.monitors
  1354. console.log('透析监测', this.monitors)
  1355. this.summary = response.data.data.summary
  1356. console.log('透后小结',this.summary)
  1357. this.Order = response.data.data.order
  1358. var start_nurse = response.data.data.startNuse
  1359. // console.log('上机护士', start_nurse)
  1360. this.orderForm.start_nurse = start_nurse.user_name
  1361. this.orderForm.url = start_nurse.url
  1362. var finish_nurse = response.data.data.FinishNuse
  1363. // console.log('下机护士', finish_nurse)
  1364. this.finshForm.url = finish_nurse.url
  1365. this.finshForm.finish_nurse = finish_nurse.user_name
  1366. var dialysisdoctor = response.data.data.dialysisdocotr
  1367. // this.dialysisDoctor.doctor = dialysisdoctor.user_name;
  1368. // this.dialysisDoctor.url = dialysisdoctor.url;
  1369. this.org_template_info = response.data.data.org_template_info
  1370. // 配置超滤量和置换量是否要显示0还是空
  1371. if (this.org_template_info.org_id == 9535) {
  1372. this.isShowZero = true
  1373. }
  1374. if (this.monitors.length < 9) {
  1375. var nl = 10 - this.monitors.length
  1376. for (let index = 0; index < nl; index++) {
  1377. this.monitors.push([])
  1378. }
  1379. }
  1380. this.jilurow = this.monitors.length + 1
  1381. this.advice_jilurow = this.advices.length + 1
  1382. var childMap = {}
  1383. for (const index in this.advices) {
  1384. if (this.advices[index].parent_id == 0) {
  1385. continue
  1386. }
  1387. if (!(this.advices[index].parent_id in childMap)) {
  1388. childMap[this.advices[index].parent_id] = []
  1389. }
  1390. childMap[this.advices[index].parent_id].push(this.advices[index])
  1391. }
  1392. var advices = []
  1393. for (const index in this.advices) {
  1394. if (this.advices[index].parent_id > 0) {
  1395. continue
  1396. }
  1397. var item = this.advices[index]
  1398. if (item.id in childMap) {
  1399. item.children = childMap[item.id]
  1400. } else {
  1401. item.children = []
  1402. }
  1403. advices.push(item)
  1404. }
  1405. var leftAdvice = []
  1406. var rightAdvice = []
  1407. var adlen = advices.length
  1408. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1409. for (var i = 0; i < halfLen; i++) {
  1410. leftAdvice.push(advices[i])
  1411. rightAdvice.push(advices[i + halfLen])
  1412. }
  1413. if (halfLen < 5) {
  1414. var nl = 5 - leftAdvice.length
  1415. for (let index = 0; index < nl; index++) {
  1416. leftAdvice.push([])
  1417. }
  1418. var nl = 5 - rightAdvice.length
  1419. for (let index = 0; index < nl; index++) {
  1420. rightAdvice.push([])
  1421. }
  1422. }
  1423. this.advices = []
  1424. for (var i = 0; i < halfLen; i++) {
  1425. var item = []
  1426. item.push(leftAdvice[i])
  1427. item.push(rightAdvice[i])
  1428. this.advices.push(item)
  1429. }
  1430. this.loading = false
  1431. this.doctor_advices =
  1432. response.data.data.advices == null
  1433. ? []
  1434. : response.data.data.advices
  1435. for (let index = 0; index < this.doctor_advices.length; index++) {
  1436. this.doctor_advices[index]['isShow'] = 2
  1437. }
  1438. if (this.doctor_advices.length > 0) {
  1439. var group = this.newAdviceGroupObject()
  1440. var initGroupBlock = function(group, advice) {
  1441. group.group_no = advice.groupno
  1442. }
  1443. for (
  1444. let index = this.doctor_advices.length - 1;
  1445. index >= 0;
  1446. index--
  1447. ) {
  1448. var new_advice_index = 0
  1449. if (
  1450. 'children' in this.doctor_advices[index] &&
  1451. this.doctor_advices[index].children.length > 0
  1452. ) {
  1453. new_advice_index =
  1454. index + this.doctor_advices[index].children.length + 1
  1455. var doctor_advice = {
  1456. delivery_way: this.doctor_advices[index].delivery_way,
  1457. execution_frequency: this.doctor_advices[index]
  1458. .execution_frequency,
  1459. groupno: this.doctor_advices[index].groupno,
  1460. id: this.doctor_advices[index].id,
  1461. parent_id: this.doctor_advices[index].parent_id,
  1462. children: this.doctor_advices[index].children,
  1463. remark: this.doctor_advices[index].remark
  1464. }
  1465. doctor_advice['isShow'] = 1
  1466. this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1467. // this.doctor_advices.push(doctor_advice)
  1468. }
  1469. }
  1470. for (let index = 0; index < this.doctor_advices.length; index++) {
  1471. const advice = this.doctor_advices[index]
  1472. if (advice.groupno == 0) {
  1473. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1474. if (advice.parent_id > 0) {
  1475. if (this.advice_groups.length > 0) {
  1476. var parent_group = this.advice_groups[
  1477. this.advice_groups.length - 1
  1478. ]
  1479. if (parent_group.advices.length > 0) {
  1480. if (parent_group.advices[0].id == advice.parent_id) {
  1481. parent_group.advices.push(advice)
  1482. }
  1483. }
  1484. }
  1485. continue
  1486. } else {
  1487. if (group.group_no > 0) {
  1488. this.advice_groups.push(group)
  1489. group = this.newAdviceGroupObject()
  1490. }
  1491. initGroupBlock(group, advice)
  1492. group.advices.push(advice)
  1493. this.advice_groups.push(group)
  1494. group = this.newAdviceGroupObject()
  1495. continue
  1496. }
  1497. }
  1498. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1499. this.advice_groups.push(group)
  1500. group = this.newAdviceGroupObject()
  1501. }
  1502. if (group.group_no == 0) {
  1503. initGroupBlock(group, advice)
  1504. }
  1505. if (group.group_no == advice.groupno) {
  1506. group.advices.push(advice)
  1507. }
  1508. }
  1509. if (group.group_no > 0) {
  1510. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1511. this.advice_groups.push(group)
  1512. }
  1513. }
  1514. console.log(this.advice_groups)
  1515. } else {
  1516. this.loading = false
  1517. this.$message.error('请求数据失败')
  1518. return false
  1519. }
  1520. })
  1521. },
  1522. bloodAccessParOperaName(id) {
  1523. if (id in this.bloodAccessParOpera) {
  1524. return this.bloodAccessParOpera[id].name
  1525. }
  1526. return ''
  1527. },
  1528. dialysateFormulationName(id) {
  1529. if (id in this.dialysateFormulationOptions) {
  1530. return this.dialysateFormulationOptions[id].name
  1531. }
  1532. return ''
  1533. },
  1534. getAge: function(val) {
  1535. if (val.birthday != 0) {
  1536. return jsGetAge(val.birth, '-')
  1537. }
  1538. return ''
  1539. },
  1540. checkIdCardNo(val) {
  1541. var thisLen = val.length
  1542. var birth = ''
  1543. if (thisLen == 15) {
  1544. birth = '19' + val.substr(6, 6)
  1545. } else {
  1546. birth = val.substr(6, 8)
  1547. }
  1548. var birthTwo =
  1549. birth.substr(0, 4) +
  1550. '-' +
  1551. birth.substr(4, 2) +
  1552. '-' +
  1553. birth.substr(6, 2)
  1554. var age = jsGetAge(birthTwo, '-')
  1555. return age
  1556. },
  1557. newAdviceGroupObject: function() {
  1558. return Object.assign(
  1559. {},
  1560. {
  1561. group_no: 0,
  1562. // advice_doctor: 0,
  1563. // start_time: 0,
  1564. advices: []
  1565. // exec_staff: 0,
  1566. // exec_time: 0,
  1567. // checker: 0,
  1568. }
  1569. )
  1570. }
  1571. },
  1572. watch: {
  1573. 'patientInfo.gender': function() {
  1574. if (this.patientInfo.gender == 1) {
  1575. this.patientInfo_gender_1 = true
  1576. this.patientInfo_gender_2 = false
  1577. } else if (this.patientInfo.gender == 2) {
  1578. this.patientInfo_gender_2 = true
  1579. this.patientInfo_gender_1 = false
  1580. } else {
  1581. this.patientInfo_gender_2 = false
  1582. this.patientInfo_gender_1 = false
  1583. }
  1584. },
  1585. 'patientInfo.source': function() {
  1586. if (this.patientInfo.source == 1) {
  1587. this.patientInfo_source_1 = true
  1588. this.patientInfo_source_2 = false
  1589. } else if (this.patientInfo.source == 2) {
  1590. this.patientInfo_source_2 = true
  1591. this.patientInfo_source_1 = false
  1592. } else {
  1593. this.patientInfo_source_2 = false
  1594. this.patientInfo_source_1 = false
  1595. }
  1596. }
  1597. },
  1598. created() {
  1599. var xtuser = this.$store.getters.xt_user
  1600. this.orgname = xtuser.org.org_name
  1601. // this.orgname = "遂溪方济医院";
  1602. this.modeOptions = this.$store.getters.treatment_mode
  1603. this.replacementWays = this.$store.getters.replacement_ways
  1604. this.perfusionApparatus = this.$store.getters.perfusion_apparatus
  1605. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1606. this.way_arr = getDataConfig('hemodialysis', 'way')
  1607. this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
  1608. this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
  1609. this.posture_arr = getDataConfig('hemodialysis', 'posture')
  1610. this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
  1611. this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
  1612. this.intake_arr = getDataConfig('hemodialysis', 'intake')
  1613. this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
  1614. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
  1615. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1616. var vascularAccess = getDataConfig('hemodialysis', 'vascular_access')
  1617. this.vascularAccess = vascularAccess
  1618. var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1619. for (var key in bloodAccessParOpera) {
  1620. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1621. bloodAccessParOpera[key]
  1622. }
  1623. var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
  1624. for (var key in dialysateFormulationOptions) {
  1625. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] = dialysateFormulationOptions[key]
  1626. }
  1627. const xtdate = this.$route.query && this.$route.query.xtdate
  1628. const xtno = this.$route.query && this.$route.query.xtno
  1629. if (typeof xtdate === 'string' && xtdate.length > 0 && typeof xtno === 'string' && xtno.length > 0) {
  1630. this.queryParams.xtdate = xtdate
  1631. this.queryParams.xtno = xtno
  1632. this.getDialysisRecord()
  1633. } else {
  1634. this.$message.error('参数不齐')
  1635. return false
  1636. }
  1637. }
  1638. }
  1639. </script>
  1640. <style>
  1641. .dialysis-print-order {
  1642. width: 960px;
  1643. margin: 0 auto;
  1644. }
  1645. .dialysis-print-order .order-yy-name {
  1646. margin: auto;
  1647. text-align: center;
  1648. font-size: 20px;
  1649. letter-spacing: 5px;
  1650. }
  1651. .dialysis-print-order .order-title {
  1652. margin: auto;
  1653. font-weight: 600;
  1654. text-align: center;
  1655. font-size: 22px;
  1656. padding: 10px 20px 20px 20px;
  1657. }
  1658. .dialysis-print-order .table-box {
  1659. width: 100%;
  1660. line-height: 23px;
  1661. font-size: 14px;
  1662. }
  1663. .dialysis-print-order .print-table {
  1664. width: 100%;
  1665. text-align: center;
  1666. border-collapse: collapse;
  1667. line-height: 40px;
  1668. font-size: 14px;
  1669. }
  1670. .dialysis-print-order .print-table-no {
  1671. width: 100%;
  1672. text-align: center;
  1673. border-collapse: collapse;
  1674. font-size: 14px;
  1675. }
  1676. .dialysis-print-order .under-line {
  1677. border-bottom: 1px solid #999;
  1678. width: 95%;
  1679. text-align: center;
  1680. margin-left: 2px;
  1681. }
  1682. .dialysis-print-order .title-box {
  1683. text-align: center;
  1684. font-size: 16px;
  1685. }
  1686. .dialysis-print-order .radio-lebel-box {
  1687. font-weight: 400;
  1688. cursor: pointer;
  1689. }
  1690. .dialysis-print-order .radio-no {
  1691. opacity: 0;
  1692. outline: none;
  1693. position: absolute;
  1694. margin: 0;
  1695. width: 0;
  1696. height: 0;
  1697. z-index: -1;
  1698. }
  1699. .dialysis-print-order .radio-inner {
  1700. white-space: nowrap;
  1701. cursor: pointer;
  1702. outline: none;
  1703. display: inline-block;
  1704. line-height: 1;
  1705. position: relative;
  1706. vertical-align: middle;
  1707. }
  1708. .dialysis-print-order .radio-fang {
  1709. display: inline-block;
  1710. position: relative;
  1711. border: 1px solid #000;
  1712. box-sizing: border-box;
  1713. width: 14px;
  1714. height: 14px;
  1715. background-color: #fff;
  1716. z-index: 1;
  1717. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  1718. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  1719. }
  1720. .dialysis-print-order .is-checked-radio::after {
  1721. content: "√";
  1722. font-size: 15px;
  1723. }
  1724. .dialysis-print-order .print-table-no tr td {
  1725. padding: 8px 5px;
  1726. line-height: 25px;
  1727. }
  1728. .dialysis-print-order .print-table tr td {
  1729. padding: 1px 1px;
  1730. /*line-height: 25px;*/
  1731. }
  1732. .es-img {
  1733. height: 25px;
  1734. }
  1735. .advice-name {
  1736. text-align: left;
  1737. }
  1738. .advice-children {
  1739. display: flex;
  1740. }
  1741. .title-box-pro {
  1742. border: 0 #fff;
  1743. line-height: 25px;
  1744. height: 25px;
  1745. text-align: left;
  1746. padding-left: 10px !important;
  1747. }
  1748. .title-box-pro-tr {
  1749. border: 0 #fff;
  1750. }
  1751. .text-align-left {
  1752. text-align: left !important;
  1753. padding-left: 10px !important;
  1754. font-size: 14px !important;
  1755. line-height: 25px;
  1756. }
  1757. .print-table-tr-new td {
  1758. line-height: 20px !important;
  1759. }
  1760. .border-top-solid {
  1761. border: solid 1px #000;
  1762. }
  1763. .print-template-two tr {
  1764. line-height: 30px;
  1765. }
  1766. </style>