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

DialysisPrintOrderTwentyFive.vue 90KB

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