DialysisPrintOrderEighteen.vue 62KB

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