血透系统PC前端

dialysisPrintOrderTwo.vue 85KB

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