DialysisPrintOrderseventyone.vue 69KB

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