DialysisPrintOrdersixtySeven.vue 58KB

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