Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

DialysisPrintOrdersixtySeven.vue 56KB

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