血透系统PC前端

dialysisPrintOrderTwo.vue 83KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702
  1. <template>
  2. <div id="dialysis-print-box-1">
  3. <div class="dialysis-print-order print-template-two print_page_main_content">
  4. <div class="order-yy-name">{{orgname}}</div>
  5. <div class="order-title">血液净化专科护理记录单</div>
  6. <div class="row">
  7. <div class="inline_block">
  8. 科室:
  9. <check-box text="门诊透析" :checked="patientInfo_source_1 "></check-box>
  10. &nbsp;
  11. <check-box text="住院" :checked="patientInfo_source_2"></check-box>
  12. </div>
  13. <div class="inline_block" style="margin-left:25px;">
  14. 姓名:
  15. <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
  16. </div>
  17. <div class="inline_block" style="margin-left: 25px;">
  18. 性别:
  19. <check-box text="男" :checked="patientInfo_gender_1"></check-box>
  20. &nbsp;
  21. <check-box text="女" :checked="patientInfo_gender_2"></check-box>
  22. </div>
  23. <div class="inline_block" style="margin-left: 25px;">
  24. 年龄:
  25. <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
  26. </div>
  27. <div class="inline_block" style="margin-left: 25px;">
  28. 住院号:
  29. <div class="under_line" style="width: 100px;">
  30. {{patientInfo.admission_number?patientInfo.admission_number:'无'}}
  31. </div>
  32. </div>
  33. </div>
  34. <div class="row flex">
  35. <div class="inline_block">
  36. 诊断:
  37. <div class="under_line" style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
  38. </div>
  39. </div>
  40. <div class="row">
  41. <table class="proj_table" >
  42. <tbody>
  43. <tr><td colspan="2">一、透析前护理评估:</td></tr>
  44. <tr>
  45. <td colspan="2">
  46. <div class="row" style="padding: 2px 0;line-height:19px;">
  47. <div class="inline_block">
  48. 入科方式:
  49. <check-box text="步行" :checked="receiverTreatmentAccess.way==1?true:false"></check-box>
  50. <check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>
  51. <check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>
  52. <check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>
  53. </div>
  54. <div class="inline_block" style="margin-left: 30px;">
  55. 透析频次:
  56. <div class="under_line" style="width: 50px;">
  57. {{predialysis.dialysis_count?predialysis.dialysis_count:''}}
  58. </div>
  59. 次/周
  60. </div>
  61. <div class="inline_block" style="margin-left: 30px;">
  62. 透析机编号:
  63. <div class="under_line" style="width: 100px;">{{''}}</div>
  64. 型号
  65. <div class="under_line" style="width: 100px;">{{''}}</div>
  66. </div>
  67. </div>
  68. <div class="row" style="padding: 2px 0;line-height:19px;">
  69. <div class="inline_block" >
  70. 意识:
  71. <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
  72. <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
  73. <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
  74. </div>
  75. <div class="inline_block" style="margin-left: 20px;">
  76. 出血:
  77. <check-box text="正常" :checked="predialysis.is_hemorrhage==2?true:false"></check-box>
  78. <check-box text="异常" :checked="predialysis.is_hemorrhage==1?true:false"></check-box>
  79. (&nbsp;
  80. <check-box text="穿刺点渗血" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('穿刺点渗血')>-1?true:false"></check-box>
  81. <check-box text="牙龈出血" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('牙龈出血')>-1?true:false"></check-box>
  82. <check-box text="消化道出血" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('消化道出血')>-1?true:false"></check-box>
  83. <check-box text="女性经期" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('女性经期')>-1?true:false"></check-box>
  84. 其他:
  85. <div class="under_line" style="width: 100px;">
  86. <span v-if="predialysis.is_hemorrhage==1">
  87. {{predialysis.hemorrhage_other}}
  88. </span>
  89. </div>
  90. &nbsp;)
  91. </div>
  92. </div>
  93. <div class="row" style="padding: 2px 0;line-height:19px;">
  94. <div class="inline_block">
  95. 血管通路(内瘘):
  96. <check-box text="正常" :checked="predialysis.blood_access_internal_fistula.indexOf('正常')>-1?true:false"></check-box>
  97. <check-box text="震颤" :checked="predialysis.blood_access_internal_fistula.indexOf('震颤')>-1?true:false"></check-box>
  98. <check-box text="堵塞" :checked="predialysis.blood_access_internal_fistula.indexOf('堵塞')>-1?true:false"></check-box>
  99. <check-box text="血肿" :checked="predialysis.blood_access_internal_fistula.indexOf('血肿')>-1?true:false"></check-box>
  100. <check-box text="淤血" :checked="predialysis.blood_access_internal_fistula.indexOf('淤血')>-1?true:false"></check-box>
  101. <check-box text="感染" :checked="predialysis.blood_access_internal_fistula.indexOf('感染')>-1?true:false"></check-box>
  102. </div>
  103. <div class="inline_block">
  104. 其它:
  105. <div class="under_line" style="width: 300px;">{{predialysis.internal_fistula_other}}
  106. </div>
  107. </div>
  108. </div>
  109. <div class="row" style="padding: 2px 0;line-height:19px;">
  110. <div class="inline_block">
  111. 血管杂音:
  112. <!-- <check-box text="震颤" :checked="isValueIndexOfCheck(record.assessment_before_dislysis, 'internal_fistula', '震颤-存在')"></check-box> -->
  113. <check-box text="存在" :checked="predialysis.blood_access_noise == 1?true:false"></check-box>
  114. <check-box text="不存在" :checked="predialysis.blood_access_noise == 2?true:false"></check-box>
  115. <check-box text="减弱" :checked="predialysis.blood_access_noise == 3?true:false"></check-box>
  116. &emsp;穿刺方式:
  117. <check-box text="绳梯" :checked="predialysis.puncture_way == 1?true:false"></check-box>
  118. <check-box text="扣眼" :checked="predialysis.puncture_way == 2?true:false"></check-box>
  119. <check-box text="区域" :checked="predialysis.puncture_way == 3?true:false"></check-box>
  120. </div>
  121. </div>
  122. <div class="row" style="padding: 2px 0;line-height:19px;">
  123. <div class="inline_block">
  124. 中心静脉置管:
  125. <check-box text="长期" :checked="predialysis.venous_catheterization == 1?true:false"></check-box>
  126. <check-box text="临时" :checked="predialysis.venous_catheterization == 2?true:false"></check-box>
  127. &emsp;位置:
  128. <check-box text="锁骨下" :checked="predialysis.venous_catheterization_part == 1?true:false"></check-box>
  129. <check-box text="颈静脉" :checked="predialysis.venous_catheterization_part == 2?true:false"></check-box>
  130. <check-box text="股静脉" :checked="predialysis.venous_catheterization_part == 3?true:false"></check-box>
  131. <div class="inline_block">
  132. 其它:
  133. <div class="under_line" style="width: 50px;">
  134. <span v-if="predialysis.venous_catheterization_part == -1">{{predialysis.venous_catheterization_part_other}}</span>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <div class="row" style="padding: 2px 0;line-height:19px;">
  140. <div class="inline_block">
  141. 中心静脉导管:
  142. <check-box text="正常" :checked="predialysis.ductus_arantii.indexOf('正常')>-1?true:false"></check-box>
  143. <check-box text="不畅" :checked="predialysis.ductus_arantii.indexOf('不畅')>-1?true:false"></check-box>
  144. <check-box text="血流不足(正接)" :checked="predialysis.ductus_arantii.indexOf('血流不足(正接)')>-1?true:false"></check-box>
  145. <check-box text="血流不足(反接)" :checked="predialysis.ductus_arantii.indexOf('血流不足(反接)')>-1?true:false"></check-box>
  146. <check-box text="血栓" :checked="predialysis.ductus_arantii.indexOf('血栓')>-1?true:false"></check-box>
  147. <check-box text="缝线脱落" :checked="predialysis.ductus_arantii.indexOf('缝线脱落')>-1?true:false"></check-box>
  148. <check-box text="导管脱落" :checked="predialysis.ductus_arantii.indexOf('导管脱落')>-1?true:false"></check-box>
  149. <check-box text="感染" :checked="predialysis.ductus_arantii.indexOf('感染')>-1?true:false"></check-box>
  150. <check-box text="破损" :checked="predialysis.ductus_arantii.indexOf('破损')>-1?true:false"></check-box>
  151. </div>
  152. </div>
  153. <div class="row" style="padding: 2px 0;line-height:19px;">
  154. <div class="inline_block">
  155. 急诊:
  156. <check-box text="急性心衰" :checked="predialysis.emergency_treatment == 1?true:false"></check-box>
  157. <check-box text="高血钾" :checked="predialysis.emergency_treatment == 2?true:false"></check-box>
  158. <check-box text="重症酸中毒" :checked="predialysis.emergency_treatment == 3?true:false"></check-box>
  159. <div class="inline_block">
  160. 其它:
  161. <div class="under_line" style="width: 100px;">
  162. <span v-if="predialysis.emergency_treatment == -1">{{predialysis.emergency_treatment_other}}</span>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="inline_block">
  167. 病情:
  168. <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
  169. <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
  170. <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
  171. </div>
  172. </div>
  173. </td>
  174. </tr>
  175. <tr>
  176. <td colspan="2">
  177. <div class="row" style="padding: 2px 0;line-height:19px;">
  178. <div class="inline_block">
  179. 跌倒风险评估:&nbsp;评分:
  180. <div class="under_line" style="width: 50px;"> {{predialysis.score}}</div>
  181. &emsp;风险程度:
  182. <check-box text="无" :checked="receiverTreatmentAccess.danger_level == 1?true:false"></check-box>
  183. <check-box text="低风险" :checked="receiverTreatmentAccess.danger_level == 2?true:false"></check-box>
  184. <check-box text="中度风险" :checked="receiverTreatmentAccess.danger_level == 3?true:false"></check-box>
  185. <check-box text="高风险" :checked="receiverTreatmentAccess.danger_level == 4?true:false"></check-box>
  186. </div>
  187. </div>
  188. <div class="row" style="padding: 2px 0;line-height:19px;">
  189. <div class="inline_block">
  190. 营养状况评估:&nbsp;食欲:
  191. <check-box text="正常" :checked="receiverTreatmentAccess.appetite == 1?true:false"></check-box>
  192. <check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>
  193. </div>
  194. <div class="inline_block">
  195. &emsp; 摄入量:
  196. <check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>
  197. <check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>
  198. </div>
  199. <div class="inline_block">
  200. &emsp;营养状况:
  201. <check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>
  202. <check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>
  203. </div>
  204. </div>
  205. <div class="row" style="padding: 2px 0; line-height:19px;">
  206. <div class="inline_block">
  207. 心理评估:
  208. <check-box text="正常" :checked="receiverTreatmentAccess.psychological_assessment == 1?true:false"></check-box>
  209. <check-box text="异常" :checked="receiverTreatmentAccess.psychological_assessment == 2?true:false"></check-box>
  210. </div>
  211. <div class="inline_block">
  212. <div class="under_line" style="width: 100px;">
  213. <span v-if="receiverTreatmentAccess.psychological_assessment == 2">{{receiverTreatmentAccess.psychological_assessment_other}}</span>
  214. </div>
  215. </div>
  216. </div>
  217. </td>
  218. </tr>
  219. <tr>
  220. <td style="padding: 0;" colspan="2">
  221. <table class="inside_table">
  222. <tbody>
  223. <tr><td colspan="10" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">二、透析中护理纪录:</td></tr>
  224. <tr>
  225. <td width="100">时间</td>
  226. <td width="100">BP<br/>mmHg</td>
  227. <td width="30">P<br/>次/分</td>
  228. <td width="30">R<br/>次/分</td>
  229. <td width="60">静脉压/动脉压<br/>mmHg</td>
  230. <td width="80">血流量<br/>ml/min</td>
  231. <td width="90">超滤量累计L</td>
  232. <td width="80">钠浓度<br/>mmol/L</td>
  233. <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
  234. <td width="100">护士签名</td>
  235. </tr>
  236. <tr v-if="this.predialysis.systolic_blood_pressure != 0&&this.predialysis.diastolic_blood_pressure != 0||this.predialysis.remark.length > 0">
  237. <td>{{'透析前'}}</td>
  238. <td>{{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:''}}/{{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:''}}</td>
  239. <td>{{''}}</td>
  240. <td>{{''}}</td>
  241. <td>{{''}}/{{''}}</td>
  242. <td>{{''}}</td>
  243. <td>{{''}}</td>
  244. <td>{{''}}</td>
  245. <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{predialysis.remark}}</span></div></td>
  246. <td>
  247. <span v-if="setAdminUserES(predialysis.creater) == ''">{{getAdminUser(predialysis.creater)}}</span>
  248. <img class="es-img" :src="setAdminUserES(predialysis.creater)" alt="" srcset="" v-else>
  249. </td>
  250. </tr>
  251. <tr v-for="(monitor,index) in monitors" :key="index">
  252. <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
  253. <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
  254. <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
  255. <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
  256. <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
  257. <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
  258. <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
  259. <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
  260. <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}} &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}} </span> </div></td>
  261. <td>
  262. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{getAdminUser(monitor.monitoring_nurse)}}</span>
  263. <img class="es-img" :src="setAdminUserES(monitor.monitoring_nurse)" alt="" srcset="" v-else>
  264. </td>
  265. </tr>
  266. </tbody>
  267. </table>
  268. </td>
  269. </tr>
  270. </tbody>
  271. </table>
  272. </div>
  273. <div v-if="this.monitors.length > 8 " :class="this.monitors.length > 8 ? 'margin-bottom-300': ''" style="text-align:center;margin-top:10px;">1</div>
  274. <template v-if="this.monitors.length > 8 ">
  275. <div class="order-yy-name">{{orgname}}</div>
  276. <div class="order-title">血液净化专科护理记录单</div>
  277. <div class="row" style="margin-top: 15px;">
  278. <div class="inline_block">
  279. 科室:
  280. <check-box text="门诊透析" :checked="patientInfo_source_1 "></check-box>
  281. &nbsp;
  282. <check-box text="住院" :checked="patientInfo_source_2"></check-box>
  283. </div>
  284. <div class="inline_block" style="margin-left:25px;">
  285. 姓名:
  286. <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
  287. </div>
  288. <div class="inline_block" style="margin-left: 25px;">
  289. 性别:
  290. <check-box text="男" :checked="patientInfo_gender_1"></check-box>
  291. &nbsp;
  292. <check-box text="女" :checked="patientInfo_gender_2"></check-box>
  293. </div>
  294. <div class="inline_block" style="margin-left: 25px;">
  295. 年龄:
  296. <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
  297. </div>
  298. <div class="inline_block" style="margin-left: 25px;">
  299. 住院号:
  300. <div class="under_line" style="width: 100px;">
  301. {{patientInfo.admission_number?patientInfo.admission_number:'无'}}
  302. </div>
  303. </div>
  304. </div>
  305. <div class="row flex">
  306. <div class="inline_block">
  307. 诊断:
  308. <div class="under_line_two" style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
  309. </div>
  310. </div>
  311. </template>
  312. <div class="row" :style="this.monitors.length <= 8 ? 'margin-top:-11px':''">
  313. <table class="proj_table">
  314. <tbody>
  315. <tr v-if="this.monitors2.length > 0">
  316. <td style="padding: 0;" colspan="2">
  317. <table class="inside_table">
  318. <tbody>
  319. <tr><td colspan="10" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">二、透析中护理纪录:</td></tr>
  320. <tr>
  321. <td width="100">时间</td>
  322. <td width="100">BP<br/>mmHg</td>
  323. <td width="30">P<br/>次/分</td>
  324. <td width="30">R<br/>次/分</td>
  325. <td width="60">静脉压/动脉压<br/>mmHg</td>
  326. <td width="80">血流量<br/>ml/min</td>
  327. <td width="90">超滤量累计L</td>
  328. <td width="80">钠浓度<br/>mmol/L</td>
  329. <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
  330. <td width="100">护士签名</td>
  331. </tr>
  332. <tr v-for="(monitor,index) in monitors2" :key="index">
  333. <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
  334. <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
  335. <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
  336. <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
  337. <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
  338. <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
  339. <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:''}}</td>
  340. <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
  341. <td style="line-height:16px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}} &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}}</span></div> </td>
  342. <td>
  343. <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{getAdminUser(monitor.monitoring_nurse)}}</span>
  344. <img class="es-img" :src="setAdminUserES(monitor.monitoring_nurse)" alt="" srcset="" v-else>
  345. </td>
  346. </tr>
  347. </tbody>
  348. </table>
  349. </td>
  350. </tr>
  351. <tr><td colspan="2" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">三、透析后护理纪录</td></tr>
  352. <tr>
  353. <td>
  354. <div class="row" style="padding: 2px 0;line-height:19px;">
  355. <div class="inline_block">
  356. 透析过程:
  357. <check-box text="完成" :checked="afterdialysis.dialysis_process==1?true:false"></check-box>
  358. <check-box text="提前" :checked="afterdialysis.dialysis_process==2?true:false"></check-box>
  359. <div class="inline_block">
  360. <div class="under_line" style="width: 30px;">
  361. <span v-if="afterdialysis.dialysis_process==2">{{afterdialysis.in_advance_minute}}</span>
  362. </div>
  363. min
  364. </div>
  365. </div>
  366. <div class="inline_block">
  367. &emsp;原因:
  368. <check-box text="心梗" :checked="afterdialysis.in_advance_reason.indexOf('心梗')>-1?true:false"></check-box>
  369. <check-box text="心律失常" :checked="afterdialysis.in_advance_reason.indexOf('心律失常')>-1?true:false"></check-box>
  370. <check-box text="低血压" :checked="afterdialysis.in_advance_reason.indexOf('低血压')>-1?true:false"></check-box>
  371. <check-box text="血流不止" :checked="afterdialysis.in_advance_reason.indexOf('血流不止')>-1?true:false"></check-box>
  372. </div>
  373. <div class="inline_block">
  374. &emsp; 其他原因:
  375. <div class="inline_block">
  376. <div class="under_line" style="width: 150px;">
  377. <span v-if="afterdialysis.in_advance_reason.length > 0">{{afterdialysis.in_advance_reason_other}}</span>
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. <div class="row" style="padding: 2px 0;line-height:19px;">
  383. <div class="inline_block">
  384. 内瘘管拔针后压迫止血时间:
  385. <div class="inline_block">
  386. <div class="under_line" style="width: 30px;">
  387. <span v-if="afterdialysis.hemostasis_minute">{{afterdialysis.hemostasis_minute}}</span>
  388. </div>
  389. min
  390. </div>
  391. </div>
  392. <div class="inline_block">
  393. <check-box text="需要护士" :checked="afterdialysis.hemostasis_opera == 1?true:false"></check-box>
  394. <check-box text="他人协助" :checked="afterdialysis.hemostasis_opera == 2?true:false"></check-box>
  395. <check-box text="自己压迫" :checked="afterdialysis.hemostasis_opera == 3?true:false"></check-box>
  396. </div>
  397. <div class="inline_block" style="margin-left: 30px;">
  398. 实际超滤量:
  399. <div class="under_line" style="width: 50px;">
  400. {{prescription.ultrafiltration?prescription.ultrafiltration:'/'}}
  401. </div>
  402. L
  403. </div>
  404. </div>
  405. <div class="row" style="padding: 2px 0;line-height:19px;">
  406. <div class="inline_block">
  407. 内瘘震颤和血管杂音:
  408. <check-box text="存在" :checked="afterdialysis.tremor_noise==1?true:false"></check-box>
  409. <check-box text="减弱" :checked="afterdialysis.tremor_noise==2?true:false"></check-box>
  410. <check-box text="不存在" :checked="afterdialysis.tremor_noise==3?true:false"></check-box>
  411. </div>
  412. <div class="inline_block">
  413. &emsp;失衡综合症:
  414. <check-box text="无" :checked="afterdialysis.disequilibrium_syndrome==1?true:false"></check-box>
  415. <check-box text="有" :checked="afterdialysis.disequilibrium_syndrome==2?true:false"></check-box>
  416. </div>
  417. <div class="inline_block">
  418. <check-box text="头晕" :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('头晕')>-1?true:false"></check-box>
  419. <check-box text="头痛" :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('头痛')>-1?true:false"></check-box>
  420. <check-box text="呕吐" :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('呕吐')>-1?true:false"></check-box>
  421. <check-box text="低血压" :checked="afterdialysis.disequilibrium_syndrome_option.indexOf('低血压')>-1?true:false"></check-box>
  422. </div>
  423. </div>
  424. <div class="row" style="padding: 2px 0;line-height:19px;">
  425. <div class="inline_block">
  426. 透析器及血路管凝血情况: &emsp;动脉管道:
  427. <check-box text="0" :checked="afterdialysis.arterial_tube == 1?true:false"></check-box>
  428. <check-box text="+" :checked="afterdialysis.arterial_tube == 2?true:false"></check-box>
  429. <check-box text="++" :checked="afterdialysis.arterial_tube == 3?true:false"></check-box>
  430. <check-box text="+++" :checked="afterdialysis.arterial_tube == 4?true:false"></check-box>
  431. </div>
  432. <div class="inline_block">
  433. &emsp; 静脉管道:
  434. <check-box text="0" :checked="afterdialysis.intravenous_tube == 1?true:false"></check-box>
  435. <check-box text="+" :checked="afterdialysis.intravenous_tube == 2?true:false"></check-box>
  436. <check-box text="++" :checked="afterdialysis.intravenous_tube == 3?true:false"></check-box>
  437. <check-box text="+++" :checked="afterdialysis.intravenous_tube == 4?true:false"></check-box>
  438. </div>
  439. <div class="inline_block">
  440. &emsp;透析器:
  441. <check-box text="0" :checked="afterdialysis.dialyzer == 1?true:false"></check-box>
  442. <check-box text="+" :checked="afterdialysis.dialyzer == 2?true:false"></check-box>
  443. <check-box text="++" :checked="afterdialysis.dialyzer == 3?true:false"></check-box>
  444. <check-box text="+++" :checked="afterdialysis.dialyzer == 4?true:false"></check-box>
  445. </div>
  446. </div>
  447. </td>
  448. </tr>
  449. <tr>
  450. <td colspan="2">
  451. <div class="row" style="padding: 2px 0;line-height:19px;">
  452. <div class="inline_block" >
  453. 责任护士:
  454. <div class="under_line" style="width: 100px;">
  455. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
  456. <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
  457. </div>
  458. </div>
  459. <div class="inline_block" >
  460. &emsp;核对人:
  461. <div class="under_line" style="width: 100px;">
  462. <span v-if="setAdminUserES(check==null?0:check.modifier) == ''">{{getAdminUser(check==null?0:check.modifier)}}</span>
  463. <img class="es-img" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
  464. </div>
  465. </div>
  466. <div class="inline_block">
  467. &emsp;核对时间:
  468. <div class="under_line" style="width: 200px;">
  469. {{getTime(check.updated_time,'{y}年{m}月{d}日 {h}时')}}
  470. </div>
  471. </div>
  472. <div class="inline_block" >
  473. &emsp;收针者:
  474. <div class="under_line" style="width: 100px;">
  475. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
  476. <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
  477. </div>
  478. </div>
  479. </div>
  480. </td>
  481. </tr>
  482. <tr>
  483. <td colspan="2">
  484. <div class="row" style="padding: 2px 0; line-height:19px;">
  485. 患者去向:
  486. <check-box text="门诊" :checked="afterdialysis.patient_gose==4?true:false"></check-box>
  487. <check-box text="离院" :checked="afterdialysis.patient_gose==1?true:false"></check-box>
  488. <check-box text="留观" :checked="afterdialysis.patient_gose==2?true:false"></check-box>
  489. <check-box text="住院" :checked="afterdialysis.patient_gose==3?true:false"></check-box>
  490. ( 科室
  491. <div class="under_line" style="width: 200px;">
  492. <span v-if="afterdialysis.patient_gose==3">{{afterdialysis.inpatient_department}}</span>
  493. </div>
  494. </div>
  495. <div class="row" style="padding: 2px 0; line-height:19px;">
  496. <div class="inline_block" >
  497. 血透室护士签名:
  498. <div class="under_line" style="width: 100px;">
  499. <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
  500. <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
  501. </div>
  502. </div>
  503. <div class="inline_block" >
  504. &emsp;病区护士签名:
  505. <div class="under_line" style="width: 100px;">
  506. </div>
  507. </div>
  508. <div class="inline_block">
  509. &emsp;时间:
  510. <div class="under_line" style="width: 200px;" v-if="dialysisOrder != null">
  511. {{getTime(dialysisOrder.end_time,'{y}年{m}月{d}日 {h}时')}}
  512. </div>
  513. </div>
  514. </div>
  515. </td>
  516. </tr>
  517. <tr>
  518. <td colspan="2">
  519. <div class="row" style="font-size: 10px;">
  520. 注:透析器及血路管凝血:0级无凝血;
  521. “+”(指Ⅰ级:束状纤维凝血或动/静脉壶/滤网见轻微凝血);“++”(指II级:近半数纤维凝血或动/静脉壶/滤网出现凝血块);“+++”(指III级:压力异常升高,须中途更换透析器/血路管A/V)。
  522. </div>
  523. </td>
  524. </tr>
  525. </tbody>
  526. </table>
  527. <div v-if="this.monitors.length > 8" :class="this.monitors.length > 8 ? 'margin-bottom-900':'margin-bottom-300'" style="text-align:center;margin-top:10px;">2</div>
  528. <div v-else class="margin-bottom-300" style="text-align:center;margin-top:10px;">1</div>
  529. <div class="order-yy-name">{{orgname}}</div>
  530. <div class="order_title"> 血液净化科医嘱及执行单 </div>
  531. <div class="row" style="margin-top: 15px;">
  532. <div class="inline_block" >
  533. 科室:
  534. <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
  535. <check-box text="住院" :checked="patientInfo_source_2"></check-box>
  536. </div>
  537. <div class="inline_block" style="margin-left:25px;">
  538. 姓名:
  539. <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
  540. </div>
  541. <div class="inline_block" style="margin-left: 25px;">
  542. 性别:
  543. <check-box text="男" :checked="patientInfo_gender_1"></check-box>
  544. <check-box text="女" :checked="patientInfo_gender_2"></check-box>
  545. </div>
  546. <div class="inline_block" style="margin-left: 25px;">
  547. 年龄:
  548. <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
  549. </div>
  550. <div class="inline_block" style="margin-left:25px;">
  551. 住院号:
  552. <div class="under_line" style="width: 120px;">
  553. {{patientInfo.admission_number?patientInfo.admission_number:'无'}}
  554. </div>
  555. </div>
  556. </div>
  557. <div class="row flex">
  558. <div class="inline_block">
  559. 诊断:
  560. <div class="under_line" style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
  561. </div>
  562. </div>
  563. <table class="proj_table">
  564. <tbody>
  565. <tr>
  566. <td>
  567. <!--<div class="row" style="padding: 2px 0;line-height:24px;">-->
  568. <!--<div class="inline_block">-->
  569. <!--诊断:-->
  570. <!--<div class="under_line" style="width: 150px;text-align: left">{{patientInfo.diagnose}}</div>-->
  571. <!--</div>-->
  572. <!--</div>-->
  573. <div class="row" style="padding: 2px 0;line-height:24px;">
  574. <div class="inline_block" >
  575. 诊断:
  576. <div class="under_line" style="width: 150px;text-align: left">{{patientInfo.diagnose}}</div>
  577. </div>
  578. <div class="inline_block" style="margin-left: -10px" >
  579. &emsp;治疗方式:
  580. <check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>
  581. <check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>
  582. <check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>
  583. <check-box text="HP" :checked="prescription.mode_id==4?true:false"></check-box>
  584. <check-box text="HD+HP" :checked="prescription.mode_id==3?true:false"></check-box>
  585. </div>
  586. <!--<div class="inline_block" v-if="patientInfo.diagnose.length <= 10">-->
  587. <!--&emsp;治疗方式:-->
  588. <!--<check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>-->
  589. <!--<check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>-->
  590. <!--<check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>-->
  591. <!--<check-box text="HP" :checked="prescription.mode_id==4?true:false"></check-box>-->
  592. <!--<check-box text="HD+HP" :checked="prescription.mode_id==3?true:false"></check-box>-->
  593. <!--</div>-->
  594. <div class="inline_block" style="margin-left:20px;">
  595. 其它:
  596. <div class="under_line" style="width: 100px;">
  597. <span v-if="prescription.mode_id>5">{{prescription.mode}}</span>
  598. </div>
  599. </div>
  600. <div class="inline_block" style="margin-left:20px;">
  601. 治疗时间:
  602. <div class="under_line" style="width: 30px;">
  603. {{prescription.dialysis_duration_hour?prescription.dialysis_duration_hour:'0'}}
  604. </div>
  605. h
  606. <div class="under_line" style="width: 30px;">
  607. {{prescription.dialysis_duration_minute?prescription.dialysis_duration_minute:'0'}}
  608. </div>
  609. min
  610. </div>
  611. </div>
  612. <div class="row" style="padding: 2px 0;line-height:24px;">
  613. <div class="inline_block">
  614. 病情:
  615. <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
  616. <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
  617. <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
  618. <div class="inline_block">
  619. &emsp;透析器型号:
  620. <div class="under_line" style="width: 200px;text-align: left">
  621. {{prescription.dialyzer_perfusion_apparatus}}
  622. </div>
  623. </div>
  624. </div>
  625. </div>
  626. <div class="row" style="padding: 2px 0; line-height:24px;">
  627. <div class="inline_block">
  628. 体液过多症状:
  629. <check-box text="无" :checked="prescription.body_fluid==1?true:false"></check-box>
  630. <check-box text="下肢水肿+" :checked="prescription.body_fluid==2?true:false"></check-box>
  631. <check-box text="下肢水肿++" :checked="prescription.body_fluid==3?true:false"></check-box>
  632. <check-box text="下肢水肿+++" :checked="prescription.body_fluid==4?true:false"></check-box>
  633. </div>
  634. <!-- <div class="inline_block">
  635. 其它:
  636. <div class="under_line" style="width: 100px;">
  637. <div class="under-line" v-if="prescription&&prescription.body_fluid_other.length > 0">&nbsp;{{prescription.body_fluid_other}}</div>
  638. </div>
  639. </div> -->
  640. <div class="inline_block" style="margin-left:20px;">
  641. 透析前使用特殊药物:
  642. <check-box text="无" :checked="prescription.special_medicine==1?true:false"></check-box>
  643. <check-box text="降压药" :checked="prescription.special_medicine==2?true:false"></check-box>
  644. <check-box text="抗凝" :checked="prescription.special_medicine==3?true:false"></check-box>
  645. </div>
  646. <div class="inline_block">
  647. 其它:
  648. <div class="under_line" style="width: 100px;">
  649. <span v-if="prescription.special_medicine == -1">{{prescription.special_medicine_other}}</span>
  650. </div>
  651. </div>
  652. </div>
  653. <div class="row" style="padding: 2px 0;line-height:24px;">
  654. <div class="inline_block">
  655. 透析液(mol/l): &emsp;Ca<sup>2+</sup>:
  656. <div class="under_line" style="width: 70px;">
  657. <span v-if="prescription.calcium">{{getFloat(prescription.calcium)?getFloat(prescription.calcium):'/'}}</span>
  658. <span v-else>{{'/'}}</span>
  659. </div>
  660. mol/l &emsp;Na<sup>+</sup>:
  661. <div class="under_line" style="width: 70px;">
  662. <span v-if="prescription.sodium">{{getFloat(prescription.sodium)?getFloat(prescription.sodium):'/'}}</span>
  663. <span v-else>{{'/'}}</span>
  664. </div>
  665. mol/l &emsp;K<sup>+</sup>:
  666. <div class="under_line" style="width: 70px;">
  667. <span v-if="prescription.kalium">{{getFloat(prescription.kalium)?getFloat(prescription.kalium):'/'}}</span>
  668. <span v-else>{{'/'}}</span>
  669. </div>
  670. mol/l
  671. </div>
  672. <div class="inline_block" v-if="prescription.displace_liqui_part == 0">
  673. &emsp;置换液后/前稀释 总量:
  674. <div class="under_line" style="width: 100px;">
  675. {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
  676. </div>
  677. L
  678. </div>
  679. <div class="inline_block" v-if="prescription.displace_liqui_part == 1">
  680. &emsp;置换液前稀释 总量:
  681. <div class="under_line" style="width: 100px;">
  682. {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
  683. </div>
  684. L
  685. </div>
  686. <div class="inline_block" v-if="prescription.displace_liqui_part == 2">
  687. &emsp;置换液后稀释 总量:
  688. <div class="under_line" style="width: 100px;">
  689. {{prescription.displace_liqui_value?prescription.displace_liqui_value:'/'}}
  690. </div>
  691. L
  692. </div>
  693. </div>
  694. <div class="row" style="padding: 2px 0;line-height:24px;">
  695. <div class="inline_block">
  696. 血管通路:
  697. <check-box text="内瘘" :checked="prescription.blood_access == 1?true:false"></check-box>
  698. <check-box text="直穿" :checked="prescription.blood_access == 2?true:false"></check-box>
  699. <check-box text="导管" :checked="prescription.blood_access == 3?true:false"></check-box>
  700. </div>
  701. <div class="inline_block">
  702. &emsp;血流量:
  703. <div class="under_line" style="width: 100px;">
  704. {{prescription.blood_flow_volume?prescription.blood_flow_volume:'/'}}
  705. </div>
  706. ml/min
  707. </div>
  708. <div class="inline_block">
  709. &emsp;透析液流量:
  710. <div class="under_line" style="width: 100px;">
  711. {{prescription.dialysate_flow?prescription.dialysate_flow:'/'}}
  712. </div>
  713. ml/min
  714. </div>
  715. </div>
  716. <div class="row" style="padding: 2px 0;line-height:24px;">
  717. <div class="inline_block">
  718. 透前体重:
  719. <div class="under_line" style="width: 100px;">
  720. {{predialysis.weight_before?predialysis.weight_before:'/'}}
  721. </div>
  722. kg
  723. </div>
  724. <div class="inline_block">
  725. &emsp;设定超滤量:
  726. <div class="under_line" style="width: 100px;">
  727. {{prescription.target_ultrafiltration?prescription.target_ultrafiltration:'/'}}
  728. </div>
  729. L
  730. </div>
  731. <div class="inline_block">
  732. &emsp;实际超滤量:
  733. <div class="under_line" style="width: 100px;">
  734. {{prescription.ultrafiltration?prescription.ultrafiltration:'/'}}
  735. </div>
  736. L
  737. </div>
  738. <div class="inline_block">
  739. 透后体重:
  740. <div class="under_line" style="width: 100px;">
  741. {{afterdialysis.weight_after?afterdialysis.weight_after:'/'}}
  742. </div>
  743. kg
  744. </div>
  745. </div>
  746. </td>
  747. </tr>
  748. </tbody>
  749. </table>
  750. <table class="print-table-no" border="1" count="0" >
  751. <tbody>
  752. <tr style="line-height:35px;padding:8px 5px;">
  753. <td colspan="7" style="font-size: 18px">医嘱</td>
  754. </tr>
  755. <tr style="line-height:35px;padding:8px 5px;">
  756. <td colspan="4" style="font-size: 16px">开医嘱</td>
  757. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  758. </tr>
  759. <tr style="line-height:35px;padding:8px 5px;">
  760. <td style="font-size: 16px" width="10%">时间</td>
  761. <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
  762. <td style="font-size: 16px" width="10%">医生签名</td>
  763. <td style="font-size: 16px" width="10%">核对人签名</td>
  764. <td style="font-size: 16px" width="10%">执行人签名</td>
  765. <td style="font-size: 16px" width="10%">时间</td>
  766. </tr>
  767. <template v-for="(group, group_index) in advice_groups" >
  768. <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
  769. <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
  770. <span v-if="advice.start_time">
  771. {{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}
  772. </span>
  773. <span v-else>&nbsp;<br/>&nbsp;</span>
  774. </td>
  775. <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
  776. <span >{{advice.advice_name }}</span>
  777. <span>{{advice.advice_desc}}</span>
  778. <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
  779. <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
  780. <span v-if="advice.parent_id == 0 && advice.children.length == 0">{{advice.delivery_way}}</span>
  781. <span v-if="advice.parent_id == 0 && advice.children.length == 0">{{advice.execution_frequency}}</span>
  782. <span v-if="advice.parent_id == 0 && advice.children && advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
  783. </td>
  784. <td colspan="2" height="60px" style="text-align: center" v-else >
  785. <span>{{advice.delivery_way}}</span>
  786. <span>{{advice.execution_frequency}}</span>
  787. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  788. </td>
  789. <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
  790. <td height="60px">
  791. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
  792. <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
  793. </td>
  794. <td height="60px">
  795. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  796. <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  797. </td>
  798. <td height="60px">
  799. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
  800. <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
  801. </td>
  802. <td height="60px">
  803. <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
  804. </td>
  805. </tr>
  806. </template>
  807. </tbody>
  808. </table>
  809. <div :style="this.advice_groups_2.length > 0 ? 'margin-bottom:350px;border-top:0;text-align:center;margin-top:10px;':'border-top:0;text-align:center;margin-top:10px;'" >1</div>
  810. <template v-if="this.advice_groups_2.length > 0">
  811. <div class="order-yy-name">{{orgname}}</div>
  812. <div class="order_title"> 血液净化科医嘱及执行单 </div>
  813. <div class="row" style="margin-top: 15px;">
  814. <div class="inline_block" >
  815. 科室:
  816. <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
  817. <check-box text="住院" :checked="patientInfo_source_2"></check-box>
  818. </div>
  819. <div class="inline_block" style="margin-left:25px;">
  820. 姓名:
  821. <div class="under_line" style="width: 120px;">{{patientInfo.name}}</div>
  822. </div>
  823. <div class="inline_block" style="margin-left: 25px;">
  824. 性别:
  825. <check-box text="男" :checked="patientInfo_gender_1"></check-box>
  826. <check-box text="女" :checked="patientInfo_gender_2"></check-box>
  827. </div>
  828. <div class="inline_block" style="margin-left: 25px;">
  829. 年龄:
  830. <div class="under_line" style="width: 70px;">{{getAge(patientInfo)}}</div>
  831. </div>
  832. <div class="inline_block" style="margin-left:25px;">
  833. 住院号:
  834. <div class="under_line" style="width: 120px;">
  835. {{patientInfo.admission_number?patientInfo.admission_number:'无'}}
  836. </div>
  837. </div>
  838. </div>
  839. <div class="row flex">
  840. <div class="inline_block">
  841. 诊断:
  842. <div class="under_line" style="width: 500px;text-align: left">{{patientInfo.diagnose}}</div>
  843. </div>
  844. </div>
  845. <table class="print-table-no" border="1" count="0">
  846. <tbody>
  847. <tr style="line-height:35px;padding:8px 5px;">
  848. <td colspan="7" style="font-size: 18px">医嘱</td>
  849. </tr>
  850. <tr style="line-height:35px;padding:8px 5px;">
  851. <td colspan="4" style="font-size: 16px">开医嘱</td>
  852. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  853. </tr>
  854. <tr style="line-height:35px;padding:8px 5px;">
  855. <td style="font-size: 16px" width="10%">时间</td>
  856. <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
  857. <td style="font-size: 16px" width="10%">医生签名</td>
  858. <td style="font-size: 16px" width="10%">核对人签名</td>
  859. <td style="font-size: 16px" width="10%">执行人签名</td>
  860. <td style="font-size: 16px" width="10%">时间</td>
  861. </tr>
  862. <template v-for="(group, group_index) in advice_groups_2" >
  863. <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
  864. <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
  865. <span v-if="advice.start_time">
  866. {{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}
  867. </span>
  868. <span v-else>&nbsp;<br/>&nbsp;</span>
  869. </td>
  870. <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
  871. <span >{{advice.advice_name }}</span>
  872. <span>{{advice.advice_desc}}</span>
  873. <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
  874. <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
  875. <span v-if="advice.parent_id == 0 && advice.children.length == 0">{{advice.delivery_way}}</span>
  876. <span v-if="advice.parent_id == 0 && advice.children.length == 0">{{advice.execution_frequency}}</span>
  877. <span v-if="advice.parent_id == 0 && advice.children && advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
  878. </td>
  879. <td colspan="2" height="60px" style="text-align: center" v-else >
  880. <span>{{advice.delivery_way}}</span>
  881. <span>{{advice.execution_frequency}}</span>
  882. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  883. </td>
  884. <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
  885. <td height="60px">
  886. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
  887. <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
  888. </td>
  889. <td height="60px">
  890. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  891. <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  892. </td>
  893. <td height="60px">
  894. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
  895. <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
  896. </td>
  897. <td height="60px">
  898. <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
  899. </td>
  900. </tr>
  901. </template>
  902. </tbody>
  903. </table>
  904. <div style="text-align:center;margin-top:10px;" >2</div>
  905. </template>
  906. </div>
  907. </div>
  908. </div>
  909. </template>
  910. <script>
  911. import CheckBox from '../batch_print/option_check_box'
  912. import { getDialysisRecord } from '@/api/dialysis'
  913. import { getDataConfig } from '@/utils/data'
  914. import { jsGetAge, uParseTime } from '@/utils/tools'
  915. import LabelBox from '../printItem/LabelBox'
  916. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  917. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  918. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  919. import print from 'print-js'
  920. export default {
  921. name: 'dialysisPrintOrder',
  922. props: ['childResponse'],
  923. components: {
  924. // DialysisPrintOrderOne,
  925. // DialysisPrintOrderTwo,
  926. CheckBox,
  927. LabelBox,
  928. BreadCrumb
  929. },
  930. data() {
  931. return {
  932. crumbs: [
  933. { path: false, name: '透析管理' },
  934. { path: false, name: '打印单' }
  935. ],
  936. operators: [],
  937. adminUser: [],
  938. check: {},
  939. dialysisOrder: {
  940. DeviceNumber: []
  941. },
  942. operatorMaps: {},
  943. complications: ['低血压', '高血压', '心律失常', '头晕', '头痛', '呕吐', '抽搐', '出血', '心衰', '腹痛'],
  944. jilurow: 0,
  945. advice_jilurow: 0,
  946. loading: false,
  947. orgname: '',
  948. patientInfo_gender_1: false,
  949. patientInfo_gender_2: false,
  950. patientInfo_source_2: false,
  951. patientInfo_source_1: false,
  952. modeOptions: {},
  953. replacementWays: [],
  954. perfusionApparatus: [],
  955. anticoagulantsConfit: {},
  956. bloodAccessParOpera: {},
  957. dialysateFormulationOptions: {},
  958. queryParams: {
  959. xtdate: '',
  960. xtno: ''
  961. },
  962. patientInfo: {
  963. birth: '',
  964. age: '',
  965. DialysisSchedule: {
  966. device_number: { number: '' },
  967. device_zone: { name: '' }
  968. },
  969. gender: 0
  970. },
  971. predialysis: {
  972. score: '',
  973. internal_fistula: '',
  974. internal_fistula_skin: '',
  975. catheter: '',
  976. blood_access_part_opera_name: ''
  977. },
  978. afterdialysis: {
  979. complications_index: ''
  980. },
  981. prescription: {
  982. dialysate_formulation_name: '',
  983. device: {}
  984. },
  985. advices: [],
  986. users: [],
  987. monitors: [],
  988. monitors2: [],
  989. summary: {},
  990. receiverTreatmentAccess: {},
  991. org_template_info: {},
  992. doctor_advices: [],
  993. advice_groups: [],
  994. advice_groups_2: [],
  995. AlPanel: {
  996. id: 0,
  997. name: '',
  998. type: 1,
  999. shouji: 2,
  1000. weichi: 2,
  1001. zongliang: 2,
  1002. gaimingcheng: -1,
  1003. gaijiliang: -1,
  1004. shouji_unit: 'mg',
  1005. weichi_unit: 'mg/h',
  1006. zongliang_unit: 'mg',
  1007. gaimingcheng_unit: '',
  1008. gaijiliang_unit: ''
  1009. }
  1010. }
  1011. },
  1012. methods: {
  1013. getAdminUser(id) {
  1014. if (id == 0) {
  1015. return ''
  1016. }
  1017. if (id == undefined) {
  1018. return ''
  1019. }
  1020. for (let i = 0; i < this.adminUser.length; i++) {
  1021. if (this.adminUser[i].id == id) {
  1022. return this.adminUser[i].name
  1023. }
  1024. }
  1025. },
  1026. getTime(value, temp) {
  1027. if (value == 0) {
  1028. return ''
  1029. }
  1030. if (value != undefined) {
  1031. return uParseTime(value, temp)
  1032. }
  1033. return ''
  1034. },
  1035. printThisPage() {
  1036. var ptime = Math.round(new Date().getTime() / 1000)
  1037. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  1038. const style = '@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}.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:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .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;}'
  1039. if (this.org_template_info.template_id != 2) {
  1040. printJS({
  1041. printable: 'dialysis-print-box',
  1042. type: 'html',
  1043. style: style,
  1044. scanStyles: false
  1045. })
  1046. } else if (this.org_template_info.template_id == 2) {
  1047. printJS({
  1048. printable: 'dialysis-print-box-1',
  1049. type: 'html',
  1050. style: style,
  1051. scanStyles: false
  1052. })
  1053. }
  1054. }, getNumber() {
  1055. if (this.dialysisOrder != null) {
  1056. return this.patientInfo.DialysisSchedule.device_zone.name + this.dialysisOrder.DeviceNumber.number
  1057. } else {
  1058. return this.patientInfo.DialysisSchedule.device_zone.name + this.patientInfo.DialysisSchedule.device_number.number
  1059. }
  1060. },
  1061. getXuserName(id) {
  1062. if (id <= 0) {
  1063. return ''
  1064. }
  1065. var name = ''
  1066. if (this.users == null || typeof (this.users.length) === 'undefined') {
  1067. return name
  1068. }
  1069. var leng = this.users.length
  1070. if (leng == 0) {
  1071. return name
  1072. }
  1073. for (let index = 0; index < leng; index++) {
  1074. if (this.users[index].id == id) {
  1075. name = this.users[index].name
  1076. break
  1077. }
  1078. }
  1079. return name
  1080. },
  1081. setAdminUserES(id) {
  1082. if (id == 0) {
  1083. return ''
  1084. }
  1085. if (id in this.operatorMaps) {
  1086. return this.operatorMaps[id].url
  1087. } else {
  1088. return ''
  1089. }
  1090. },
  1091. modeName(mode_id) {
  1092. return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
  1093. },
  1094. getDialysisRecord() {
  1095. this.loading = true
  1096. // getDialysisRecord(this.queryParams).then(response => {
  1097. var response = this.childResponse
  1098. if (response.data.state == 1) {
  1099. this.adminUser = response.data.data.users
  1100. this.users = response.data.data.users
  1101. this.patientInfo = response.data.data.patientInfo
  1102. this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
  1103. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1104. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1105. this.patientInfo.first_dialysis_date = uParseTime(response.data.data.patientInfo.first_dialysis_date, '{y}-{m}-{d}')
  1106. } else {
  1107. this.patientInfo.first_dialysis_date = ''
  1108. }
  1109. this.check = response.data.data.check
  1110. this.predialysis = response.data.data.PredialysisEvaluation
  1111. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
  1112. this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1113. this.operators = response.data.data.operators
  1114. this.dialysisOrder = response.data.data.dialysisOrder === null ? null : response.data.data.dialysisOrder
  1115. if (this.operators.length > 0) {
  1116. var operatorsLen = this.operators.length
  1117. for (var index = 0; index < operatorsLen; index++) {
  1118. this.$set(this.operatorMaps, this.operators[index].creator, this.operators[index])
  1119. }
  1120. }
  1121. this.afterdialysis.txqnx = -1
  1122. if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1123. this.afterdialysis.txqnx = 0
  1124. }
  1125. if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1126. this.afterdialysis.txqnx = 1
  1127. }
  1128. if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1129. this.afterdialysis.txqnx = 2
  1130. }
  1131. if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1132. this.afterdialysis.txqnx = 3
  1133. }
  1134. this.afterdialysis.complications = this.afterdialysis.complication.split(',')
  1135. this.afterdialysis.complications_other = []
  1136. this.afterdialysis.complications_index = []
  1137. var acllen = this.afterdialysis.complications.length
  1138. for (let index = 0; index < acllen; index++) {
  1139. if (this.complications.indexOf(this.afterdialysis.complications[index]) >= 0) {
  1140. this.afterdialysis.complications_index.push(this.afterdialysis.complications[index])
  1141. } else if (this.complications.indexOf(this.afterdialysis.complications[index]) < 0 && this.afterdialysis.complications_other.indexOf(this.afterdialysis.complications[index]) < 0) {
  1142. this.afterdialysis.complications_other.push(this.afterdialysis.complications[index])
  1143. }
  1144. }
  1145. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(',')
  1146. this.prescription = response.data.data.dialysisPrescription
  1147. this.receiverTreatmentAccess = response.data.data.receiverTreatmentAccess
  1148. this.prescription.mode = this.modeName(this.prescription.mode_id)
  1149. var rwLen = this.replacementWays.length
  1150. this.prescription.replacement = ''
  1151. for (let index = 0; index < rwLen; index++) {
  1152. if (this.replacementWays[index].id == this.prescription.replacement_way) {
  1153. this.prescription.replacement = this.replacementWays[index].name
  1154. break
  1155. }
  1156. }
  1157. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(this.prescription.dialysate_formulation)
  1158. var paLen = this.perfusionApparatus.length
  1159. this.prescription.perfusion_apparatus_name = ''
  1160. for (let index = 0; index < paLen; index++) {
  1161. if (this.perfusionApparatus[index].id == this.prescription.perfusion_apparatus) {
  1162. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[index].name
  1163. break
  1164. }
  1165. }
  1166. var acLen = this.anticoagulantsConfit.length
  1167. var thisALID = this.prescription.anticoagulant
  1168. this.prescription.anticoagulant_name = ''
  1169. if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  1170. this.prescription.anticoagulant_name = this.anticoagulantsConfit[thisALID].name
  1171. this.AlPanel = this.anticoagulantsConfit[thisALID]
  1172. }
  1173. this.advices = response.data.data.advices
  1174. this.monitors = response.data.data.monitors
  1175. this.summary = response.data.data.summary
  1176. this.org_template_info = response.data.data.org_template_info
  1177. if (this.monitors.length < 8) {
  1178. var nl = 8 - this.monitors.length
  1179. for (let index = 0; index < nl; index++) {
  1180. if (this.monitors[index] == undefined || this.monitors[index].length <= 0) {
  1181. this.monitors.push([])
  1182. } else {
  1183. continue
  1184. }
  1185. }
  1186. }
  1187. if (this.monitors.length > 13) {
  1188. const tempMonitors = []
  1189. const tempMonitors2 = []
  1190. for (let index = 0; index < this.monitors.length; index++) {
  1191. if (index < 13) {
  1192. tempMonitors.push(this.monitors[index])
  1193. } else {
  1194. tempMonitors2.push(this.monitors[index])
  1195. }
  1196. }
  1197. this.monitors = tempMonitors
  1198. this.monitors2 = tempMonitors2
  1199. }
  1200. this.jilurow = this.monitors.length + 1
  1201. this.advice_jilurow = this.advices.length + 1
  1202. var childMap = {}
  1203. for (const index in this.advices) {
  1204. if (this.advices[index].parent_id == 0) {
  1205. continue
  1206. }
  1207. if (!(this.advices[index].parent_id in childMap)) {
  1208. childMap[this.advices[index].parent_id] = []
  1209. }
  1210. childMap[this.advices[index].parent_id].push(this.advices[index])
  1211. }
  1212. var advices = []
  1213. for (const index in this.advices) {
  1214. if (this.advices[index].parent_id > 0) {
  1215. continue
  1216. }
  1217. var item = this.advices[index]
  1218. if (item.id in childMap) {
  1219. item.children = childMap[item.id]
  1220. } else {
  1221. item.children = []
  1222. }
  1223. advices.push(item)
  1224. }
  1225. var leftAdvice = []
  1226. var rightAdvice = []
  1227. var adlen = advices.length
  1228. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1229. for (var i = 0; i < halfLen; i++) {
  1230. leftAdvice.push(advices[i])
  1231. rightAdvice.push(advices[i + halfLen])
  1232. }
  1233. if (halfLen < 5) {
  1234. var nl = 5 - leftAdvice.length
  1235. for (let index = 0; index < nl; index++) {
  1236. leftAdvice.push([])
  1237. }
  1238. var nl = 5 - rightAdvice.length
  1239. for (let index = 0; index < nl; index++) {
  1240. rightAdvice.push([])
  1241. }
  1242. }
  1243. this.advices = []
  1244. for (var i = 0; i < halfLen; i++) {
  1245. var item = []
  1246. item.push(leftAdvice[i])
  1247. item.push(rightAdvice[i])
  1248. this.advices.push(item)
  1249. }
  1250. this.loading = false
  1251. this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
  1252. for (let index = 0; index < this.doctor_advices.length; index++) {
  1253. this.doctor_advices[index]['isShow'] = 2
  1254. }
  1255. if (this.doctor_advices.length > 0) {
  1256. var group = this.newAdviceGroupObject()
  1257. var initGroupBlock = function(group, advice) {
  1258. group.group_no = advice.groupno
  1259. }
  1260. for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  1261. var new_advice_index = 0
  1262. if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  1263. new_advice_index = index + this.doctor_advices[index].children.length + 1
  1264. var doctor_advice = {
  1265. delivery_way: this.doctor_advices[index].delivery_way,
  1266. execution_frequency: this.doctor_advices[index].execution_frequency,
  1267. groupno: this.doctor_advices[index].groupno,
  1268. id: this.doctor_advices[index].id,
  1269. parent_id: this.doctor_advices[index].parent_id,
  1270. children: this.doctor_advices[index].children,
  1271. remark: this.doctor_advices[index].remark,
  1272. execution_staff: this.doctor_advices[index].execution_staff,
  1273. checker: this.doctor_advices[index].checker,
  1274. execution_time: this.doctor_advices[index].execution_time,
  1275. advice_doctor: this.doctor_advices[index].advice_doctor
  1276. }
  1277. doctor_advice['isShow'] = 1
  1278. this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1279. // this.doctor_advices.push(doctor_advice)
  1280. }
  1281. }
  1282. var templength = 0
  1283. if (this.doctor_advices.length > 12) {
  1284. templength = 12
  1285. } else {
  1286. templength = this.doctor_advices.length
  1287. }
  1288. for (let index = 0; index < templength; index++) {
  1289. const advice = this.doctor_advices[index]
  1290. if (advice.groupno == 0) {
  1291. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1292. if (advice.parent_id > 0) {
  1293. if (this.advice_groups.length > 0) {
  1294. var parent_group = this.advice_groups[
  1295. this.advice_groups.length - 1
  1296. ]
  1297. if (parent_group.advices.length > 0) {
  1298. if (parent_group.advices[0].id == advice.parent_id) {
  1299. parent_group.advices.push(advice)
  1300. }
  1301. }
  1302. }
  1303. continue
  1304. } else {
  1305. if (group.group_no > 0) {
  1306. this.advice_groups.push(group)
  1307. group = this.newAdviceGroupObject()
  1308. }
  1309. initGroupBlock(group, advice)
  1310. group.advices.push(advice)
  1311. this.advice_groups.push(group)
  1312. group = this.newAdviceGroupObject()
  1313. continue
  1314. }
  1315. }
  1316. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1317. this.advice_groups.push(group)
  1318. group = this.newAdviceGroupObject()
  1319. }
  1320. if (group.group_no == 0) {
  1321. initGroupBlock(group, advice)
  1322. }
  1323. if (group.group_no == advice.groupno) {
  1324. group.advices.push(advice)
  1325. }
  1326. if (index == 11) {
  1327. this.advice_groups.push(group)
  1328. group = this.newAdviceGroupObject()
  1329. }
  1330. }
  1331. if (this.doctor_advices.length > 12) {
  1332. for (let index = 12; index < this.doctor_advices.length; index++) {
  1333. const advice = this.doctor_advices[index]
  1334. if (advice.groupno == 0) {
  1335. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1336. if (advice.parent_id > 0) {
  1337. if (this.advice_groups_2.length > 0) {
  1338. var parent_group = this.advice_groups_2[
  1339. this.advice_groups_2.length - 1
  1340. ]
  1341. if (parent_group.advices.length > 0) {
  1342. if (parent_group.advices[0].id == advice.parent_id) {
  1343. parent_group.advices.push(advice)
  1344. }
  1345. }
  1346. }
  1347. continue
  1348. } else {
  1349. if (group.group_no > 0) {
  1350. this.advice_groups_2.push(group)
  1351. group = this.newAdviceGroupObject()
  1352. }
  1353. initGroupBlock(group, advice)
  1354. group.advices.push(advice)
  1355. this.advice_groups_2.push(group)
  1356. group = this.newAdviceGroupObject()
  1357. continue
  1358. }
  1359. }
  1360. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1361. this.advice_groups_2.push(group)
  1362. group = this.newAdviceGroupObject()
  1363. }
  1364. if (group.group_no == 0) {
  1365. initGroupBlock(group, advice)
  1366. }
  1367. if (group.group_no == advice.groupno) {
  1368. group.advices.push(advice)
  1369. }
  1370. }
  1371. }
  1372. if (group.group_no > 0) {
  1373. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1374. if (this.doctor_advices.length > 12) {
  1375. this.advice_groups_2.push(group)
  1376. } else {
  1377. this.advice_groups.push(group)
  1378. }
  1379. }
  1380. }
  1381. } else {
  1382. this.loading = false
  1383. this.$message.error('请求数据失败')
  1384. return false
  1385. }
  1386. // })
  1387. },
  1388. bloodAccessParOperaName(id) {
  1389. if (id in this.bloodAccessParOpera) {
  1390. return this.bloodAccessParOpera[id].name
  1391. }
  1392. return ''
  1393. },
  1394. dialysateFormulationName(id) {
  1395. if (id in this.dialysateFormulationOptions) {
  1396. return this.dialysateFormulationOptions[id].name
  1397. }
  1398. return ''
  1399. }, getAge: function(val) {
  1400. if (this.org_template_info.template_id == 2) {
  1401. if (val.age == 0) {
  1402. return jsGetAge(val.birth, '-')
  1403. } else {
  1404. return val.age
  1405. }
  1406. } else {
  1407. return jsGetAge(val.birth, '-')
  1408. }
  1409. }, newAdviceGroupObject: function() {
  1410. return Object.assign(
  1411. {},
  1412. {
  1413. group_no: 0,
  1414. // advice_doctor: 0,
  1415. // start_time: 0,
  1416. advices: []
  1417. // exec_staff: 0,
  1418. // exec_time: 0,
  1419. // checker: 0,
  1420. }
  1421. )
  1422. }, getFloat: function(x) {
  1423. if(x == 0){
  1424. return "/"
  1425. }
  1426. if (x != '.') {
  1427. var f = Math.round(x * 100) / 100
  1428. var s = f.toString()
  1429. var rs = s.indexOf('.')
  1430. if (rs <= 0) {
  1431. rs = s.length
  1432. s += '.'
  1433. }
  1434. while (s.length <= rs + 1) {
  1435. s += '0'
  1436. }
  1437. return s
  1438. } else {
  1439. return '0.0'
  1440. }
  1441. }
  1442. },
  1443. watch: {
  1444. 'patientInfo.gender': function() {
  1445. if (this.patientInfo.gender == 1) {
  1446. this.patientInfo_gender_1 = true
  1447. this.patientInfo_gender_2 = false
  1448. } else if (this.patientInfo.gender == 2) {
  1449. this.patientInfo_gender_2 = true
  1450. this.patientInfo_gender_1 = false
  1451. } else {
  1452. this.patientInfo_gender_2 = false
  1453. this.patientInfo_gender_1 = false
  1454. }
  1455. },
  1456. 'patientInfo.source': function() {
  1457. if (this.patientInfo.source == 1) {
  1458. this.patientInfo_source_1 = true
  1459. this.patientInfo_source_2 = false
  1460. } else if (this.patientInfo.source == 2) {
  1461. this.patientInfo_source_2 = true
  1462. this.patientInfo_source_1 = false
  1463. } else {
  1464. this.patientInfo_source_2 = false
  1465. this.patientInfo_source_1 = false
  1466. }
  1467. }
  1468. },
  1469. created() {
  1470. var xtuser = this.$store.getters.xt_user
  1471. this.orgname = xtuser.org.org_name
  1472. // this.orgname = "遂溪方济医院";
  1473. this.modeOptions = this.$store.getters.treatment_mode
  1474. this.replacementWays = this.$store.getters.replacement_ways
  1475. this.perfusionApparatus = this.$store.getters.perfusion_apparatus
  1476. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1477. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1478. var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1479. for (var key in bloodAccessParOpera) {
  1480. this.bloodAccessParOpera[bloodAccessParOpera[key].id] = bloodAccessParOpera[key]
  1481. }
  1482. var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
  1483. for (var key in dialysateFormulationOptions) {
  1484. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] = dialysateFormulationOptions[key]
  1485. }
  1486. const xtdate = this.$route.query && this.$route.query.xtdate
  1487. const xtno = this.$route.query && this.$route.query.xtno
  1488. if (typeof (xtdate) === 'string' && xtdate.length > 0 && typeof (xtno) === 'string' && xtno.length > 0) {
  1489. this.queryParams.xtdate = xtdate
  1490. this.queryParams.xtno = xtno
  1491. this.getDialysisRecord()
  1492. } else {
  1493. this.$message.error('参数不齐')
  1494. return false
  1495. }
  1496. }
  1497. }
  1498. </script>
  1499. <style>
  1500. .print_page_main_content {
  1501. background-color: white;
  1502. width: 960px;
  1503. margin: 0 auto 50px;
  1504. padding: 0 0 0 0;
  1505. page-break-after: always;
  1506. }
  1507. .print_page_main_content .order-yy-name {
  1508. margin: auto;
  1509. text-align: center;
  1510. font-size: 20px;
  1511. letter-spacing: 5px;
  1512. }
  1513. .dialysis-print-order .order-title {
  1514. margin: auto;
  1515. font-weight: 600;
  1516. text-align: center;
  1517. font-size: 22px;
  1518. padding: 10px;
  1519. }
  1520. .print_page_main_content .order_title {
  1521. text-align: center;
  1522. font-size: 23px;
  1523. line-height: 50px;
  1524. font-weight: 500;
  1525. }
  1526. .row {
  1527. font-size: 14px;
  1528. line-height: 20px;
  1529. padding: 5px 0;
  1530. }
  1531. .inline_block {
  1532. display: inline-block;
  1533. }
  1534. .under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}
  1535. .under_line_two::before {content: "\00A0";}
  1536. .under_line_two::after {content: "\00A0";}
  1537. .under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap;width: 50%;}
  1538. .under_line::before {
  1539. content: "\00A0";
  1540. }
  1541. .under_line::after {
  1542. content: "\00A0";
  1543. }
  1544. .flex {
  1545. display: -webkit-box;
  1546. display: -moz-box;
  1547. display: -ms-flexbox;
  1548. display: -webkit-flex;
  1549. display: flex;
  1550. align-items: center;
  1551. -webkit-align-items: center;
  1552. box-align: center;
  1553. -moz-box-align: center;
  1554. -webkit-box-align: center;
  1555. text-align: center;
  1556. -webkit-justify-content: space-between;
  1557. justify-content: space-between;
  1558. -moz-box-pack: space-between;
  1559. -webkit--moz-box-pack: space-between;
  1560. box-pack: space-between;
  1561. }
  1562. .print_page_main_content .proj_table {
  1563. width: 100%;
  1564. border: 1px solid;
  1565. border-collapse: collapse;
  1566. padding: 2px;
  1567. }
  1568. .print_page_main_content .proj_table tbody tr td {
  1569. border: 1px solid;
  1570. /* text-align: center; */
  1571. font-size: 16px;
  1572. padding: 5px 8px;
  1573. line-height: 30px;
  1574. }
  1575. .print_page_main_content .proj_table .inside_table {
  1576. width: 100%;
  1577. border: hidden; /* 解决边框冲突 */
  1578. border-collapse: collapse;
  1579. }
  1580. .print_page_main_content .proj_table .inside_table tr td {
  1581. border: 1px solid;
  1582. text-align: center;
  1583. font-size: 14px;
  1584. padding: 6px 5px;
  1585. line-height: 16px;
  1586. }
  1587. .print-table-no {
  1588. width: 100%;
  1589. text-align: center;
  1590. border-collapse: collapse;
  1591. font-size: 14px;
  1592. }
  1593. .es-img {
  1594. height: 25px;
  1595. }
  1596. .advice-name {
  1597. text-align: left !important;
  1598. line-height: 16px !important;
  1599. }
  1600. .advice-children {
  1601. display: flex;
  1602. }
  1603. .margin-bottom-300 {
  1604. margin-bottom:450px;
  1605. }
  1606. .margin-bottom-600 {
  1607. margin-bottom:600px;
  1608. }
  1609. .margin-bottom-900 {
  1610. margin-bottom:900px;
  1611. }
  1612. </style>