DialysisPrintOrdersixtySeven.vue 59KB

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