DialysisPrintOrderFourteen.vue 87KB

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