DialysisPrintOrderEighteen.vue 61KB

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" :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" :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="260">
  391. <div>
  392. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路出血') > -1 ? true : false" showValue='通路出血'></label-box>
  393. &nbsp;
  394. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路良好') > -1 ? true : false" showValue='良好'></label-box>
  395. &nbsp;
  396. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路欠佳') > -1 ? true : false" showValue='欠佳'></label-box>
  397. &nbsp;
  398. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('通路不畅') > -1 ? true : false" showValue='不畅'></label-box>
  399. </div>
  400. </td>
  401. <td></td>
  402. <td width="50">插管:</td>
  403. <td width="150">
  404. <div>
  405. <label-box :isChecked="afterdialysis.catheter.indexOf('正接') > -1 ? true : false" showValue='正向接'></label-box>
  406. &nbsp;
  407. <label-box :isChecked="afterdialysis.catheter.indexOf('反接') > -1 ? true : false" showValue='反向接'></label-box>
  408. &nbsp;
  409. </div>
  410. </td>
  411. <td></td>
  412. <td width="70">出口皮肤:</td>
  413. <td width="240">
  414. <label-box :isChecked="afterdialysis.catheter.indexOf('良好') > -1 ? true : false" showValue='良好'></label-box>
  415. &nbsp;
  416. <label-box :isChecked="afterdialysis.catheter.indexOf('发红') > -1 ? true : false" showValue='发红'></label-box>
  417. &nbsp;
  418. <label-box :isChecked="afterdialysis.catheter.indexOf('化脓') > -1 ? true : false" showValue='化脓'></label-box>
  419. &nbsp;
  420. <label-box :isChecked="afterdialysis.catheter.indexOf('脱线') > -1 ? true : false" showValue='脱线'></label-box>
  421. &nbsp;
  422. </td>
  423. </tr>
  424. </table>
  425. <table class="print-table" style="border:1px solid #000;border-top:none;border-bottom:none">
  426. <tr style="height:30px;line-height:30px;">
  427. <td width="70">内瘘情况:</td>
  428. <td width="540">
  429. <div>
  430. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('有震颤') > -1 ? true : false" showValue='有'></label-box>
  431. &nbsp;
  432. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('无震颤') > -1 ? true : false" showValue='无'></label-box>
  433. &nbsp;
  434. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('震颤减弱') > -1 ? true : false" showValue='震颤减弱'></label-box>
  435. &nbsp;
  436. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('出血') > -1 ? true : false" showValue='出血'></label-box>
  437. &nbsp;
  438. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('瘀斑') > -1 ? true : false" showValue='瘀斑'></label-box>
  439. &nbsp;
  440. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('血痂') > -1 ? true : false" showValue='血痂'></label-box>
  441. &nbsp;
  442. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('血管瘤') > -1 ? true : false" showValue='血管瘤'></label-box>
  443. &nbsp;
  444. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('发红') > -1 ? true : false" showValue='发红'></label-box>
  445. &nbsp;
  446. <label-box :isChecked="afterdialysis.internal_fistula.indexOf('感染') > -1 ? true : false" showValue='感染'></label-box>
  447. </div>
  448. </td>
  449. <td></td>
  450. <td width="120">透析器凝血情况:</td>
  451. <td width="200">
  452. <div>
  453. <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false):false" showValue="0级"></label-box>&nbsp;
  454. <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false):false" showValue="1级"></label-box>&nbsp;
  455. <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1 ? true : false):false" showValue="2级"></label-box>&nbsp;
  456. <label-box :isChecked="afterdialysis.cruor?(afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false):false" showValue="3级"></label-box>&nbsp;
  457. </div>
  458. </td>
  459. <td></td>
  460. </tr>
  461. </table>
  462. <table class="print-table" border="1">
  463. <tr style="height:100px;text-align:left;border:none;">
  464. <td style="padding-left:5px;border:none;padding-bottom:50px;">
  465. 治疗小结:{{ summary.dialysis_summary ? summary.dialysis_summary : "" }}
  466. </td>
  467. </tr>
  468. <tr style="height:40px">
  469. <td rowspan="11" style="border:none;text-align:right;height:40px">
  470. 医生签名
  471. <span style="display: inline-block;width:100px;text-align: left;">
  472. &nbsp;
  473. <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
  474. <span v-if="doctorForm.url !== ''">
  475. <img class="es-img" :src="doctorForm.url" />
  476. </span>
  477. </span>
  478. 核对护士
  479. <span style="display: inline-block;width:100px;text-align: left;">
  480. &nbsp;
  481. <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
  482. {{ getAdminUser(check == null ? 0 : check.modifier) }}
  483. </span>
  484. <img style="height:20px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
  485. </span>
  486. 护士签名
  487. <span style="display: inline-block;width:100px;text-align: left;">
  488. &nbsp;
  489. <p v-if="doctor_advices.length > 0">
  490. <span v-if="setAdminUserES(doctor_advices[0].execution_staff) == ''">
  491. {{ getAdminUser(doctor_advices[0].execution_staff) }}
  492. </span>
  493. <img class="es-img" :src="setAdminUserES(doctor_advices[0].execution_staff)" alt srcset v-else />
  494. </p>
  495. </span>
  496. </td>
  497. </tr>
  498. </table>
  499. <!-- <div>
  500. 注:透析器凝血评价标准:"0级"&nbsp;无凝血或数条纤维束凝血,"Ⅰ级"&nbsp;少于10%纤维凝血,"Ⅱ级"&nbsp;少于50%纤维凝血,"Ⅲ级"&nbsp;大于50%纤维凝血
  501. </div>-->
  502. </div>
  503. </div>
  504. </template>
  505. <script>
  506. import { getDialysisRecord } from "@/api/dialysis";
  507. import { getDataConfig } from "@/utils/data";
  508. import { jsGetAge, uParseTime } from "@/utils/tools";
  509. import LabelBox from "../printItem/LabelBox";
  510. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  511. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  512. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  513. import print from "print-js";
  514. export default {
  515. name: "dialysisPrintOrderOne",
  516. components: {
  517. // DialysisPrintOrderOne,
  518. // DialysisPrintOrderTwo,
  519. LabelBox,
  520. BreadCrumb
  521. },
  522. data() {
  523. return {
  524. way_arr: [],
  525. consciousness_arr: [],
  526. appetite_arr: [],
  527. posture_arr: [],
  528. sick_condition_arr: [],
  529. precaution_arr: [],
  530. intake_arr: [],
  531. nutrition_arr: [],
  532. crumbs: [
  533. { path: false, name: "透析管理" },
  534. { path: false, name: "打印单" }
  535. ],
  536. operators: [],
  537. adminUser: [],
  538. check: {},
  539. dialysisOrder: {
  540. DeviceNumber: []
  541. },
  542. Order: {},
  543. operatorMaps: {},
  544. complications: [
  545. "低血压",
  546. "高血压",
  547. "心律失常",
  548. "头晕",
  549. "头痛",
  550. "呕吐",
  551. "抽搐",
  552. "出血",
  553. "心衰",
  554. "腹痛",
  555. "无"
  556. ],
  557. jilurow: 0,
  558. advice_jilurow: 0,
  559. loading: false,
  560. orgname: "",
  561. patientInfo_gender_1: false,
  562. patientInfo_gender_2: false,
  563. patientInfo_source_2: false,
  564. patientInfo_source_1: false,
  565. modeOptions: {},
  566. replacementWays: [],
  567. perfusionApparatus: [],
  568. anticoagulantsConfit: {},
  569. bloodAccessParOpera: {},
  570. dialysateFormulationOptions: {},
  571. queryParams: {
  572. xtdate: "",
  573. xtno: ""
  574. },
  575. patientInfo: {
  576. birth: "",
  577. age: "",
  578. DialysisSchedule: {
  579. device_number: { number: "" },
  580. device_zone: { name: "" }
  581. },
  582. gender: 0
  583. },
  584. predialysis: {
  585. score: "",
  586. internal_fistula: "",
  587. internal_fistula_skin: "",
  588. catheter: "",
  589. blood_access_part_opera_name: ""
  590. },
  591. afterdialysis: {
  592. complications_index: ""
  593. },
  594. prescription: {
  595. dialysate_formulation_name: "",
  596. device: {}
  597. },
  598. advices: [],
  599. users: [],
  600. monitors: [],
  601. summary: {},
  602. receiverTreatmentAccess: {},
  603. org_template_info: {},
  604. isShowZero: false,
  605. doctor_advices: [],
  606. advice_groups: [],
  607. AlPanel: {
  608. id: 0,
  609. name: "",
  610. type: 1,
  611. shouji: 2,
  612. weichi: 2,
  613. zongliang: 2,
  614. gaimingcheng: -1,
  615. gaijiliang: -1,
  616. shouji_unit: "mg",
  617. weichi_unit: "mg/h",
  618. zongliang_unit: "mg",
  619. gaimingcheng_unit: "",
  620. gaijiliang_unit: ""
  621. },
  622. total: "",
  623. doctorForm: {
  624. doctor: "",
  625. url: ""
  626. },
  627. dialysisDoctor: {
  628. doctor: "",
  629. url: ""
  630. },
  631. tableAdvice: [],
  632. assessmentafter: {},
  633. orderForm: {
  634. start_nurse: "",
  635. url: ""
  636. },
  637. finshForm: {
  638. finish_nurse: "",
  639. url: ""
  640. },
  641. displaceLiquiPartOptions: []
  642. };
  643. },
  644. methods: {
  645. getNewAge(UUserCard) {
  646. if (UUserCard != null && UUserCard != '') {
  647. //获取年龄
  648. var myDate = new Date();
  649. var month = myDate.getMonth() + 1;
  650. var day = myDate.getDate();
  651. var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1;
  652. if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
  653. age++;
  654. }
  655. return age;
  656. }
  657. },
  658. getDisplaceLiquiPart: function(val) {
  659. let displace_liqui_part_name = "/";
  660. const displace_liqui_part = this.displaceLiquiPartOptions;
  661. for (let i = 0; i < displace_liqui_part.length; i++) {
  662. if (displace_liqui_part[i].id == val) {
  663. displace_liqui_part_name = displace_liqui_part[i].name;
  664. }
  665. }
  666. return displace_liqui_part_name;
  667. },
  668. getAdminUser(id) {
  669. if (id == 0) {
  670. return "";
  671. }
  672. if (id == undefined) {
  673. return "";
  674. }
  675. for (let i = 0; i < this.adminUser.length; i++) {
  676. if (this.adminUser[i].id == id) {
  677. return this.adminUser[i].name;
  678. }
  679. }
  680. },
  681. getTime(value, temp) {
  682. if (value == 0) {
  683. return "";
  684. }
  685. if (value != undefined) {
  686. return uParseTime(value, temp);
  687. }
  688. return "";
  689. },
  690. printThisPage() {
  691. var ptime = Math.round(new Date().getTime() / 1000);
  692. this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
  693. const style =
  694. '@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;}';
  695. if (this.org_template_info.template_id == 1) {
  696. printJS({
  697. printable: "dialysis-print-box",
  698. type: "html",
  699. style: style,
  700. scanStyles: false
  701. });
  702. } else if (
  703. this.org_template_info.template_id == 2 ||
  704. this.org_template_info.template_id == 0
  705. ) {
  706. printJS({
  707. printable: "dialysis-print-box-1",
  708. type: "html",
  709. style: style,
  710. scanStyles: false
  711. });
  712. }
  713. },
  714. getNumber() {
  715. if (this.dialysisOrder != null) {
  716. return (
  717. this.patientInfo.DialysisSchedule.device_zone.name +
  718. this.dialysisOrder.DeviceNumber.number
  719. );
  720. } else {
  721. return (
  722. this.patientInfo.DialysisSchedule.device_zone.name +
  723. this.patientInfo.DialysisSchedule.device_number.number
  724. );
  725. }
  726. },
  727. getXuserName(id) {
  728. if (id <= 0) {
  729. return "";
  730. }
  731. var name = "";
  732. if (this.users == null || typeof this.users.length === "undefined") {
  733. return name;
  734. }
  735. var leng = this.users.length;
  736. if (leng == 0) {
  737. return name;
  738. }
  739. for (let index = 0; index < leng; index++) {
  740. if (this.users[index].id == id) {
  741. name = this.users[index].name;
  742. break;
  743. }
  744. }
  745. return name;
  746. },
  747. setAdminUserES(id) {
  748. if (id == 0) {
  749. return "";
  750. }
  751. if (id in this.operatorMaps) {
  752. return this.operatorMaps[id].url;
  753. } else {
  754. return "";
  755. }
  756. },
  757. modeName(mode_id) {
  758. return typeof this.modeOptions[mode_id] !== "undefined" &&
  759. typeof this.modeOptions[mode_id].name !== "undefined"
  760. ? this.modeOptions[mode_id].name
  761. : "";
  762. },
  763. getDialysisRecord() {
  764. this.loading = true;
  765. getDialysisRecord(this.queryParams).then(response => {
  766. if (response.data.state === 1) {
  767. this.total = response.data.data.total;
  768. this.adminUser = response.data.data.users;
  769. this.users = response.data.data.users;
  770. var patientInfo = response.data.data.patientInfo;
  771. console.log("烧腊店就拉萨讲道理看", patientInfo);
  772. if (patientInfo.gender === 1) {
  773. patientInfo.gender = "男";
  774. }
  775. if (patientInfo.gender === 2) {
  776. patientInfo.gender = "女";
  777. }
  778. console.log("patientInfo", patientInfo);
  779. this.patientInfo = patientInfo;
  780. this.patientInfo.birth = uParseTime(
  781. this.patientInfo.birthday,
  782. "{y}-{m}-{d}"
  783. );
  784. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  785. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  786. this.patientInfo.first_dialysis_date = uParseTime(
  787. response.data.data.patientInfo.first_dialysis_date,
  788. "{y}-{m}-{d}"
  789. );
  790. } else {
  791. this.patientInfo.first_dialysis_date = "";
  792. }
  793. this.check = response.data.data.check;
  794. console.log("核对信息", this.check);
  795. this.predialysis = response.data.data.PredialysisEvaluation;
  796. console.log("透前评估", this.predialysis);
  797. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  798. this.predialysis.blood_access_part_opera_id
  799. );
  800. this.assessmentafter = response.data.data.assessmentAfterDislysis;
  801. console.log("上次透后体重", this.assessmentafter);
  802. var doctorAdevieInfo = response.data.data.doctorAdevieInfo;
  803. var tableAdvice = doctorAdevieInfo;
  804. console.log("医生", tableAdvice);
  805. if (tableAdvice.length === 0) {
  806. var obj = { advice_name: "", start_time: "" };
  807. var obj1 = { advice_name: "", start_time: "" };
  808. var obj2 = { advice_name: "", start_time: "" };
  809. var obj3 = { advice_name: "", start_time: "" };
  810. var obj4 = { advice_name: "", start_time: "" };
  811. var obj5 = { advice_name: "", start_time: "" };
  812. tableAdvice.push(obj);
  813. tableAdvice.push(obj1);
  814. tableAdvice.push(obj2);
  815. tableAdvice.push(obj3);
  816. tableAdvice.push(obj4);
  817. tableAdvice.push(obj5);
  818. this.tableAdvice = tableAdvice;
  819. }
  820. if (tableAdvice.length === 1) {
  821. var obj = { advice_name: "", start_time: "" };
  822. var obj1 = { advice_name: "", start_time: "" };
  823. var obj2 = { advice_name: "", start_time: "" };
  824. var obj3 = { advice_name: "", start_time: "" };
  825. var obj4 = { advice_name: "", start_time: "" };
  826. tableAdvice.push(obj);
  827. tableAdvice.push(obj1);
  828. tableAdvice.push(obj2);
  829. tableAdvice.push(obj3);
  830. tableAdvice.push(obj4);
  831. this.tableAdvice = tableAdvice;
  832. }
  833. if (tableAdvice.length === 2) {
  834. var obj = { advice_name: "", start_time: "" };
  835. var obj1 = { advice_name: "", start_time: "" };
  836. var obj2 = { advice_name: "", start_time: "" };
  837. var obj3 = { advice_name: "", start_time: "" };
  838. tableAdvice.push(obj);
  839. tableAdvice.push(obj1);
  840. tableAdvice.push(obj2);
  841. tableAdvice.push(obj3);
  842. this.tableAdvice = tableAdvice;
  843. }
  844. if (tableAdvice.length === 3) {
  845. // eslint-disable-next-line no-redeclare
  846. var obj = { advice_name: "", start_time: "" };
  847. // eslint-disable-next-line no-redeclare
  848. var obj1 = { advice_name: "", start_time: "" };
  849. // eslint-disable-next-line no-redeclare
  850. var obj2 = { advice_name: "", start_time: "" };
  851. // eslint-disable-next-line no-redeclare
  852. tableAdvice.push(obj);
  853. tableAdvice.push(obj1);
  854. tableAdvice.push(obj2);
  855. this.tableAdvice = tableAdvice;
  856. }
  857. if (tableAdvice.length === 4) {
  858. // eslint-disable-next-line no-redeclare
  859. var obj = { advice_name: "", start_time: "" };
  860. // eslint-disable-next-line no-redeclare
  861. var obj1 = { advice_name: "", start_time: "" };
  862. // eslint-disable-next-line no-redeclare
  863. tableAdvice.push(obj);
  864. tableAdvice.push(obj1);
  865. this.tableAdvice = tableAdvice;
  866. }
  867. if (tableAdvice.length === 5) {
  868. // eslint-disable-next-line no-redeclare
  869. var obj = { advice_name: "", start_time: "" };
  870. // eslint-disable-next-line no-redeclare
  871. var obj1 = { advice_name: "", start_time: "" };
  872. tableAdvice.push(obj);
  873. tableAdvice.push(obj1);
  874. this.tableAdvice = tableAdvice;
  875. }
  876. if (tableAdvice.length >= 6) {
  877. this.tableAdvice = tableAdvice;
  878. }
  879. this.afterdialysis = response.data.data.AssessmentAfterDislysis;
  880. console.log("透后评估", this.afterdialysis);
  881. this.operators = response.data.data.operators;
  882. this.dialysisOrder =
  883. response.data.data.dialysisOrder === null
  884. ? null
  885. : response.data.data.dialysisOrder;
  886. if (this.operators.length > 0) {
  887. var operatorsLen = this.operators.length;
  888. for (var index = 0; index < operatorsLen; index++) {
  889. this.$set(
  890. this.operatorMaps,
  891. this.operators[index].creator,
  892. this.operators[index]
  893. );
  894. }
  895. }
  896. this.afterdialysis.txqnx = -1;
  897. if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  898. this.afterdialysis.txqnx = 0;
  899. }
  900. if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  901. this.afterdialysis.txqnx = 1;
  902. }
  903. if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  904. this.afterdialysis.txqnx = 2;
  905. }
  906. if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  907. this.afterdialysis.txqnx = 3;
  908. }
  909. this.afterdialysis.complications = this.afterdialysis.complication.split(
  910. ","
  911. );
  912. this.afterdialysis.complications_other = [];
  913. this.afterdialysis.complications_index = [];
  914. var acllen = this.afterdialysis.complications.length;
  915. for (let index = 0; index < acllen; index++) {
  916. if (
  917. this.complications.indexOf(
  918. this.afterdialysis.complications[index]
  919. ) >= 0
  920. ) {
  921. this.afterdialysis.complications_index.push(
  922. this.afterdialysis.complications[index]
  923. );
  924. } else if (
  925. this.complications.indexOf(
  926. this.afterdialysis.complications[index]
  927. ) < 0 &&
  928. this.afterdialysis.complications_other.indexOf(
  929. this.afterdialysis.complications[index]
  930. ) < 0
  931. ) {
  932. this.afterdialysis.complications_other.push(
  933. this.afterdialysis.complications[index]
  934. );
  935. }
  936. }
  937. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  938. ","
  939. );
  940. var doctorname = response.data.data.DoctorName;
  941. //console.log("医师签名", doctorname);
  942. this.doctorForm.doctor = doctorname.user_name;
  943. this.doctorForm.url = doctorname.url;
  944. var prescription = response.data.data.dialysisPrescription;
  945. console.log("透析处方", prescription);
  946. if (prescription.anticoagulant == 6) {
  947. prescription.anticoagulant = "低分子肝素钙";
  948. }
  949. if (prescription.anticoagulant == 7) {
  950. prescription.anticoagulant = "低分子肝素钠";
  951. }
  952. if (prescription.blood_access === 1) {
  953. prescription.blood_access = "正常";
  954. }
  955. if (prescription.blood_access === 2) {
  956. prescription.blood_access = "震颤";
  957. }
  958. if (prescription.blood_access === 3) {
  959. prescription.blood_access = "堵塞";
  960. }
  961. if (prescription.blood_access === 4) {
  962. prescription.blood_access = "血肿";
  963. }
  964. if (prescription.blood_access === 5) {
  965. prescription.blood_access = "淤血";
  966. }
  967. if (prescription.blood_access === 6) {
  968. prescription.blood_access = "感染";
  969. }
  970. if (prescription.blood_access === 7) {
  971. prescription.blood_access = "自体内瘘";
  972. }
  973. if (prescription.blood_access === 8) {
  974. prescription.blood_access = "人工血管内瘘";
  975. }
  976. if (prescription.replacement_way === 1) {
  977. prescription.replacement_way = "前置换";
  978. }
  979. if (prescription.replacement_way === 2) {
  980. prescription.replacement_way = "后置换";
  981. }
  982. if (prescription.replacement_way === 3) {
  983. prescription.replacement_way = "中置换";
  984. }
  985. if (prescription.replacement_way === 4) {
  986. prescription.replacement_way = "混合置换";
  987. }
  988. if (prescription.anticoagulant === 1) {
  989. prescription.anticoagulant = "无肝素";
  990. }
  991. if (prescription.anticoagulant === 2) {
  992. prescription.anticoagulant = "普通肝素";
  993. }
  994. if (prescription.anticoagulant === 3) {
  995. prescription.anticoagulant = "低分子肝素";
  996. }
  997. if (prescription.anticoagulant === 4) {
  998. prescription.anticoagulant = "阿加曲班";
  999. }
  1000. if (prescription.anticoagulant === 5) {
  1001. prescription.anticoagulant = "枸橼酸钠";
  1002. }
  1003. this.prescription = prescription;
  1004. var receiverTreatmentAccess =
  1005. response.data.data.receiverTreatmentAccess;
  1006. if (receiverTreatmentAccess.sick_condition === 1) {
  1007. receiverTreatmentAccess.sick_condition = "一般";
  1008. }
  1009. if (receiverTreatmentAccess.sick_condition === 2) {
  1010. receiverTreatmentAccess.sick_condition = "严重";
  1011. }
  1012. if (receiverTreatmentAccess.sick_condition === 3) {
  1013. receiverTreatmentAccess.sick_condition = "危";
  1014. }
  1015. if (receiverTreatmentAccess.way === 1) {
  1016. receiverTreatmentAccess.way = "步行";
  1017. }
  1018. if (receiverTreatmentAccess.way === 2) {
  1019. receiverTreatmentAccess.way = "扶行";
  1020. }
  1021. if (receiverTreatmentAccess.way === 3) {
  1022. receiverTreatmentAccess.way = "轮椅";
  1023. }
  1024. if (receiverTreatmentAccess.way === 4) {
  1025. receiverTreatmentAccess.way = "平车";
  1026. }
  1027. console.log("接诊评估:", receiverTreatmentAccess);
  1028. this.receiverTreatmentAccess = receiverTreatmentAccess;
  1029. this.prescription.mode = this.modeName(this.prescription.mode_id);
  1030. var rwLen = this.replacementWays.length;
  1031. this.prescription.replacement = "";
  1032. for (let index = 0; index < rwLen; index++) {
  1033. if (
  1034. this.replacementWays[index].id ==
  1035. this.prescription.replacement_way
  1036. ) {
  1037. this.prescription.replacement = this.replacementWays[index].name;
  1038. break;
  1039. }
  1040. }
  1041. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1042. this.prescription.dialysate_formulation
  1043. );
  1044. var paLen = this.perfusionApparatus.length;
  1045. this.prescription.perfusion_apparatus_name = "";
  1046. for (let index = 0; index < paLen; index++) {
  1047. if (
  1048. this.perfusionApparatus[index].id ==
  1049. this.prescription.perfusion_apparatus
  1050. ) {
  1051. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1052. index
  1053. ].name;
  1054. break;
  1055. }
  1056. }
  1057. var acLen = this.anticoagulantsConfit.length;
  1058. var thisALID = this.prescription.anticoagulant;
  1059. this.prescription.anticoagulant_name = "";
  1060. if (
  1061. typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  1062. this.anticoagulantsConfit[thisALID] != null
  1063. ) {
  1064. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1065. thisALID
  1066. ].name;
  1067. this.AlPanel = this.anticoagulantsConfit[thisALID];
  1068. }
  1069. this.advices = response.data.data.advices;
  1070. this.monitors = response.data.data.monitors;
  1071. console.log("透析监测", this.monitors);
  1072. this.summary = response.data.data.summary;
  1073. this.Order = response.data.data.order;
  1074. var start_nurse = response.data.data.startNuse;
  1075. // console.log('上机护士', start_nurse)
  1076. this.orderForm.start_nurse = start_nurse.user_name;
  1077. this.orderForm.url = start_nurse.url;
  1078. var finish_nurse = response.data.data.FinishNuse;
  1079. // console.log('下机护士', finish_nurse)
  1080. this.finshForm.url = finish_nurse.url;
  1081. this.finshForm.finish_nurse = finish_nurse.user_name;
  1082. var dialysisdoctor = response.data.data.dialysisdocotr;
  1083. //this.dialysisDoctor.doctor = dialysisdoctor.user_name;
  1084. // this.dialysisDoctor.url = dialysisdoctor.url;
  1085. this.org_template_info = response.data.data.org_template_info;
  1086. // 配置超滤量和置换量是否要显示0还是空
  1087. if (this.org_template_info.org_id == 9535) {
  1088. this.isShowZero = true;
  1089. }
  1090. if (this.monitors.length < 7) {
  1091. var nl = 8 - this.monitors.length;
  1092. for (let index = 0; index < nl; index++) {
  1093. this.monitors.push([]);
  1094. }
  1095. }
  1096. this.jilurow = this.monitors.length + 1;
  1097. this.advice_jilurow = this.advices.length + 1;
  1098. var childMap = {};
  1099. for (const index in this.advices) {
  1100. if (this.advices[index].parent_id == 0) {
  1101. continue;
  1102. }
  1103. if (!(this.advices[index].parent_id in childMap)) {
  1104. childMap[this.advices[index].parent_id] = [];
  1105. }
  1106. childMap[this.advices[index].parent_id].push(this.advices[index]);
  1107. }
  1108. var advices = [];
  1109. for (const index in this.advices) {
  1110. if (this.advices[index].parent_id > 0) {
  1111. continue;
  1112. }
  1113. var item = this.advices[index];
  1114. if (item.id in childMap) {
  1115. item.children = childMap[item.id];
  1116. } else {
  1117. item.children = [];
  1118. }
  1119. advices.push(item);
  1120. }
  1121. var leftAdvice = [];
  1122. var rightAdvice = [];
  1123. var adlen = advices.length;
  1124. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  1125. for (var i = 0; i < halfLen; i++) {
  1126. leftAdvice.push(advices[i]);
  1127. rightAdvice.push(advices[i + halfLen]);
  1128. }
  1129. if (halfLen < 5) {
  1130. var nl = 5 - leftAdvice.length;
  1131. for (let index = 0; index < nl; index++) {
  1132. leftAdvice.push([]);
  1133. }
  1134. var nl = 5 - rightAdvice.length;
  1135. for (let index = 0; index < nl; index++) {
  1136. rightAdvice.push([]);
  1137. }
  1138. }
  1139. this.advices = [];
  1140. for (var i = 0; i < halfLen; i++) {
  1141. var item = [];
  1142. item.push(leftAdvice[i]);
  1143. item.push(rightAdvice[i]);
  1144. this.advices.push(item);
  1145. }
  1146. this.loading = false;
  1147. this.doctor_advices =
  1148. response.data.data.advices == null
  1149. ? []
  1150. : response.data.data.advices;
  1151. for (let index = 0; index < this.doctor_advices.length; index++) {
  1152. this.doctor_advices[index]["isShow"] = 2;
  1153. }
  1154. if (this.doctor_advices.length > 0) {
  1155. var group = this.newAdviceGroupObject();
  1156. var initGroupBlock = function(group, advice) {
  1157. group.group_no = advice.groupno;
  1158. };
  1159. for (
  1160. let index = this.doctor_advices.length - 1;
  1161. index >= 0;
  1162. index--
  1163. ) {
  1164. var new_advice_index = 0;
  1165. if (
  1166. "children" in this.doctor_advices[index] &&
  1167. this.doctor_advices[index].children.length > 0
  1168. ) {
  1169. new_advice_index =
  1170. index + this.doctor_advices[index].children.length + 1;
  1171. var doctor_advice = {
  1172. delivery_way: this.doctor_advices[index].delivery_way,
  1173. execution_frequency: this.doctor_advices[index]
  1174. .execution_frequency,
  1175. groupno: this.doctor_advices[index].groupno,
  1176. id: this.doctor_advices[index].id,
  1177. parent_id: this.doctor_advices[index].parent_id,
  1178. children: this.doctor_advices[index].children,
  1179. remark: this.doctor_advices[index].remark
  1180. };
  1181. doctor_advice["isShow"] = 1;
  1182. this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
  1183. // this.doctor_advices.push(doctor_advice)
  1184. }
  1185. }
  1186. for (let index = 0; index < this.doctor_advices.length; index++) {
  1187. const advice = this.doctor_advices[index];
  1188. if (advice.groupno == 0) {
  1189. // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1190. if (advice.parent_id > 0) {
  1191. if (this.advice_groups.length > 0) {
  1192. var parent_group = this.advice_groups[
  1193. this.advice_groups.length - 1
  1194. ];
  1195. if (parent_group.advices.length > 0) {
  1196. if (parent_group.advices[0].id == advice.parent_id) {
  1197. parent_group.advices.push(advice);
  1198. }
  1199. }
  1200. }
  1201. continue;
  1202. } else {
  1203. if (group.group_no > 0) {
  1204. this.advice_groups.push(group);
  1205. group = this.newAdviceGroupObject();
  1206. }
  1207. initGroupBlock(group, advice);
  1208. group.advices.push(advice);
  1209. this.advice_groups.push(group);
  1210. group = this.newAdviceGroupObject();
  1211. continue;
  1212. }
  1213. }
  1214. if (group.group_no > 0 && group.group_no != advice.groupno) {
  1215. this.advice_groups.push(group);
  1216. group = this.newAdviceGroupObject();
  1217. }
  1218. if (group.group_no == 0) {
  1219. initGroupBlock(group, advice);
  1220. }
  1221. if (group.group_no == advice.groupno) {
  1222. group.advices.push(advice);
  1223. }
  1224. }
  1225. if (group.group_no > 0) {
  1226. // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1227. this.advice_groups.push(group);
  1228. }
  1229. }
  1230. console.log(this.advice_groups);
  1231. } else {
  1232. this.loading = false;
  1233. this.$message.error("请求数据失败");
  1234. return false;
  1235. }
  1236. });
  1237. },
  1238. bloodAccessParOperaName(id) {
  1239. if (id in this.bloodAccessParOpera) {
  1240. return this.bloodAccessParOpera[id].name;
  1241. }
  1242. return "";
  1243. },
  1244. dialysateFormulationName(id) {
  1245. if (id in this.dialysateFormulationOptions) {
  1246. return this.dialysateFormulationOptions[id].name;
  1247. }
  1248. return "";
  1249. },
  1250. getAge: function(val) {
  1251. if (val.birthday != 0) {
  1252. return jsGetAge(val.birth, "-");
  1253. }
  1254. return "";
  1255. },
  1256. checkIdCardNo(val) {
  1257. var thisLen = val.length;
  1258. var birth = "";
  1259. if (thisLen == 15) {
  1260. birth = "19" + val.substr(6, 6);
  1261. } else {
  1262. birth = val.substr(6, 8);
  1263. }
  1264. var birthTwo =
  1265. birth.substr(0, 4) +
  1266. "-" +
  1267. birth.substr(4, 2) +
  1268. "-" +
  1269. birth.substr(6, 2);
  1270. var age = jsGetAge(birthTwo, "-");
  1271. return age;
  1272. },
  1273. newAdviceGroupObject: function() {
  1274. return Object.assign(
  1275. {},
  1276. {
  1277. group_no: 0,
  1278. // advice_doctor: 0,
  1279. // start_time: 0,
  1280. advices: []
  1281. // exec_staff: 0,
  1282. // exec_time: 0,
  1283. // checker: 0,
  1284. }
  1285. );
  1286. }
  1287. },
  1288. watch: {
  1289. "patientInfo.gender": function() {
  1290. if (this.patientInfo.gender == 1) {
  1291. this.patientInfo_gender_1 = true;
  1292. this.patientInfo_gender_2 = false;
  1293. } else if (this.patientInfo.gender == 2) {
  1294. this.patientInfo_gender_2 = true;
  1295. this.patientInfo_gender_1 = false;
  1296. } else {
  1297. this.patientInfo_gender_2 = false;
  1298. this.patientInfo_gender_1 = false;
  1299. }
  1300. },
  1301. "patientInfo.source": function() {
  1302. if (this.patientInfo.source == 1) {
  1303. this.patientInfo_source_1 = true;
  1304. this.patientInfo_source_2 = false;
  1305. } else if (this.patientInfo.source == 2) {
  1306. this.patientInfo_source_2 = true;
  1307. this.patientInfo_source_1 = false;
  1308. } else {
  1309. this.patientInfo_source_2 = false;
  1310. this.patientInfo_source_1 = false;
  1311. }
  1312. }
  1313. },
  1314. created() {
  1315. var xtuser = this.$store.getters.xt_user;
  1316. this.orgname = xtuser.org.org_name;
  1317. // this.orgname = "遂溪方济医院";
  1318. this.modeOptions = this.$store.getters.treatment_mode;
  1319. this.replacementWays = this.$store.getters.replacement_ways;
  1320. this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1321. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1322. this.way_arr = getDataConfig("hemodialysis", "way");
  1323. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  1324. this.appetite_arr = getDataConfig("hemodialysis", "appetite");
  1325. this.posture_arr = getDataConfig("hemodialysis", "posture");
  1326. this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
  1327. this.precaution_arr = getDataConfig("hemodialysis", "precaution");
  1328. this.intake_arr = getDataConfig("hemodialysis", "intake");
  1329. this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
  1330. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
  1331. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1332. var bloodAccessParOpera = getDataConfig(
  1333. "hemodialysis",
  1334. "vascular_access_desc"
  1335. );
  1336. for (var key in bloodAccessParOpera) {
  1337. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1338. bloodAccessParOpera[key];
  1339. }
  1340. var dialysateFormulationOptions = getDataConfig(
  1341. "hemodialysis",
  1342. "dialysate_formulation"
  1343. );
  1344. for (var key in dialysateFormulationOptions) {
  1345. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1346. dialysateFormulationOptions[key];
  1347. }
  1348. const xtdate = this.$route.query && this.$route.query.xtdate;
  1349. const xtno = this.$route.query && this.$route.query.xtno;
  1350. if (
  1351. typeof xtdate === "string" &&
  1352. xtdate.length > 0 &&
  1353. typeof xtno === "string" &&
  1354. xtno.length > 0
  1355. ) {
  1356. this.queryParams.xtdate = xtdate;
  1357. this.queryParams.xtno = xtno;
  1358. this.getDialysisRecord();
  1359. } else {
  1360. this.$message.error("参数不齐");
  1361. return false;
  1362. }
  1363. }
  1364. };
  1365. </script>
  1366. <style>
  1367. .dialysis-print-order {
  1368. width: 960px;
  1369. margin: 0 auto;
  1370. }
  1371. .dialysis-print-order .order-yy-name {
  1372. margin: auto;
  1373. text-align: center;
  1374. font-size: 20px;
  1375. letter-spacing: 5px;
  1376. }
  1377. .dialysis-print-order .order-title {
  1378. margin: auto;
  1379. font-weight: 600;
  1380. text-align: center;
  1381. font-size: 22px;
  1382. padding: 10px 20px 20px 20px;
  1383. }
  1384. .dialysis-print-order .table-box {
  1385. width: 100%;
  1386. line-height: 23px;
  1387. font-size: 14px;
  1388. }
  1389. .dialysis-print-order .print-table {
  1390. width: 100%;
  1391. text-align: center;
  1392. border-collapse: collapse;
  1393. line-height: 40px;
  1394. font-size: 14px;
  1395. }
  1396. .dialysis-print-order .print-table-no {
  1397. width: 100%;
  1398. text-align: center;
  1399. border-collapse: collapse;
  1400. font-size: 14px;
  1401. }
  1402. .dialysis-print-order .under-line {
  1403. border-bottom: 1px solid #999;
  1404. width: 95%;
  1405. text-align: center;
  1406. margin-left: 2px;
  1407. }
  1408. .dialysis-print-order .title-box {
  1409. text-align: center;
  1410. font-size: 16px;
  1411. }
  1412. .dialysis-print-order .radio-lebel-box {
  1413. font-weight: 400;
  1414. cursor: pointer;
  1415. }
  1416. .dialysis-print-order .radio-no {
  1417. opacity: 0;
  1418. outline: none;
  1419. position: absolute;
  1420. margin: 0;
  1421. width: 0;
  1422. height: 0;
  1423. z-index: -1;
  1424. }
  1425. .dialysis-print-order .radio-inner {
  1426. white-space: nowrap;
  1427. cursor: pointer;
  1428. outline: none;
  1429. display: inline-block;
  1430. line-height: 1;
  1431. position: relative;
  1432. vertical-align: middle;
  1433. }
  1434. .dialysis-print-order .radio-fang {
  1435. display: inline-block;
  1436. position: relative;
  1437. border: 1px solid #000;
  1438. box-sizing: border-box;
  1439. width: 14px;
  1440. height: 14px;
  1441. background-color: #fff;
  1442. z-index: 1;
  1443. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  1444. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  1445. }
  1446. .dialysis-print-order .is-checked-radio::after {
  1447. content: "√";
  1448. font-size: 15px;
  1449. }
  1450. .dialysis-print-order .print-table-no tr td {
  1451. padding: 8px 5px;
  1452. line-height: 25px;
  1453. }
  1454. .dialysis-print-order .print-table tr td {
  1455. padding: 1px 1px;
  1456. /*line-height: 25px;*/
  1457. }
  1458. .es-img {
  1459. height: 25px;
  1460. }
  1461. .advice-name {
  1462. text-align: left;
  1463. }
  1464. .advice-children {
  1465. display: flex;
  1466. }
  1467. .title-box-pro {
  1468. border: 0 #fff;
  1469. line-height: 25px;
  1470. height: 25px;
  1471. text-align: left;
  1472. padding-left: 10px !important;
  1473. }
  1474. .title-box-pro-tr {
  1475. border: 0 #fff;
  1476. }
  1477. .text-align-left {
  1478. text-align: left !important;
  1479. padding-left: 10px !important;
  1480. font-size: 14px !important;
  1481. line-height: 25px;
  1482. }
  1483. .print-table-tr-new td {
  1484. line-height: 20px !important;
  1485. }
  1486. .border-top-solid {
  1487. border: solid 1px #000;
  1488. }
  1489. .print-template-two tr {
  1490. line-height: 30px;
  1491. }
  1492. .table-box1 {
  1493. border: 1px solid #000;
  1494. width: 100%;
  1495. line-height: 30px;
  1496. font-size: 14px;
  1497. border-collapse: collapse;
  1498. }
  1499. .table-box1 tr {
  1500. border-bottom: 1px solid #000;
  1501. }
  1502. </style>