DialysisPrintOrderSixtyfour.vue 52KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268
  1. <template>
  2. <div >
  3. <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
  4. <div id="dialysis-print-box-64">
  5. <div
  6. id="dialysis-print-box-64-1"
  7. class="dialysis-print-order print-template-two print_page_main_content"
  8. >
  9. <div>
  10. <!-- <div
  11. class="order-yy-name"
  12. style=" letter-spacing: 0;
  13. font-weight: 600;
  14. font-size: 22px;
  15. display: inline-block;
  16. "
  17. >
  18. {{ orgname }}
  19. </div> -->
  20. <h1 style="text-align: center;">血液透析(滤过)记录表单</h1>
  21. <div>
  22. <div>
  23. <div style="display:inline-block; ;">病历号:
  24. {{patientInfo.record_number?patientInfo.record_number:"" }}
  25. </div>
  26. <div style="display:inline-block;margin-left: 90px;">
  27. 姓名:{{ patientInfo.name }}
  28. </div>
  29. <div style="display:inline-block; margin-left: 90px;">
  30. 性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
  31. </div>
  32. <div style="display:inline-block; margin-left: 90px;">
  33. 年龄:{{ getAge(patientInfo) }}
  34. </div>
  35. <div style="display:inline-block; margin-left: 90px;">
  36. 透析次数:{{
  37. patientInfo.total_dialysis +
  38. patientInfo.user_sys_before_count
  39. }}次
  40. </div>
  41. </div>
  42. <div style="margin: 10px 0px;">
  43. <div style="display:inline-block;">
  44. 透析日期:{{ queryParams.xtdate }}
  45. </div>
  46. <div style="display:inline-block; margin-left: 90px;">
  47. 透析机号:{{ getNumber() }}
  48. </div>
  49. <div style="display:inline-block; margin-left: 90px;">
  50. 透析中心:{{ orgname }}
  51. </div>
  52. </div>
  53. <table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse; width: 960px; ">
  54. <tr>
  55. <td colspan="3" style="border:1px solid black">
  56. <div style="display: inline-block; word-break: break-all;word-wrap: break-word;">
  57. 上机前病情:
  58. <!-- {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }} -->
  59. {{ predialysis.befor_symptoms? predialysis.befor_symptoms:"" }}
  60. </div>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td colspan="3">
  65. <div style="display: inline-block; word-break: break-all;word-wrap: break-word;">
  66. 疾病诊断:
  67. {{ getDiagnosis(prescriptionInfo.patient_diagnosis) }}
  68. </div>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td colspan="2">
  73. <span>治疗方式:</span>
  74. <span v-if="prescription.mode_id == 0">/</span>
  75. <span v-else-if="prescription.mode_id == 1">HD</span>
  76. <span v-else-if="prescription.mode_id == 2">HDF</span>
  77. <span v-else-if="prescription.mode_id == 3">HD+HP</span>
  78. <span v-else-if="prescription.mode_id == 4">HP</span>
  79. <span v-else-if="prescription.mode_id == 5">HF</span>
  80. <span v-else-if="prescription.mode_id == 6">SCUF</span>
  81. <span v-else-if="prescription.mode_id == 7">IUF</span>
  82. <span v-else-if="prescription.mode_id == 8">HFHD</span>
  83. <span v-else-if="prescription.mode_id == 9">HFHD+HP</span>
  84. <span v-else-if="prescription.mode_id == 10">PHF</span>
  85. <span v-else-if="prescription.mode_id == 11">HFR</span>
  86. <span v-else-if="prescription.mode_id == 12">HDF+HP</span>
  87. <span v-else-if="prescription.mode_id == 13">CRRT</span>
  88. <span v-else-if="prescription.mode_id == 19">IUF+HD</span>
  89. <span v-else-if="prescription.mode_id == 20">UF</span>
  90. <span v-else-if="prescription.mode_id == 21">HD+</span>
  91. <span v-else-if="prescription.mode_id == 22">血浆胆红素吸附+HDF</span>
  92. <span v-else-if="prescription.mode_id == 23">血浆胆红素吸附</span>
  93. <span v-else-if="prescription.mode_id == 24">I-HDF</span>
  94. <span v-else-if="prescription.mode_id == 25">HD高通</span>
  95. <span v-else-if="prescription.mode_id == 26">CVVH</span>
  96. <span v-else-if="prescription.mode_id == 27">CVVHD</span>
  97. <span v-else-if="prescription.mode_id == 28">CVVHDF</span>
  98. <span v-else-if="prescription.mode_id == 29">PE</span>
  99. <span v-else-if="prescription.mode_id == 30">血浆胆红素吸附+HP</span>
  100. <span v-else-if="prescription.mode_id == 31">HPD</span>
  101. <span v-else-if="prescription.mode_id == 32">HDP</span>
  102. </td>
  103. <td>
  104. <span
  105. >治疗时间:{{
  106. afterdialysis.actual_treatment_hour
  107. ? afterdialysis.actual_treatment_hour
  108. : "0"
  109. }}&nbsp;小时&nbsp;{{
  110. afterdialysis.actual_treatment_minute
  111. ? afterdialysis.actual_treatment_minute
  112. : '0'
  113. }}&nbsp;分
  114. </span>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td colspan="3">
  119. <span>治疗抗凝:</span>
  120. <span v-if="prescription.anticoagulant == 0">/</span>
  121. <span v-else-if="prescription.anticoagulant == 1">无肝素</span>
  122. <span v-else-if="prescription.anticoagulant == 2">普通肝素</span>
  123. <span v-else-if="prescription.anticoagulant == 3">低分子肝素</span>
  124. <span v-else-if="prescription.anticoagulant == 4">阿加曲班</span>
  125. <span v-else-if="prescription.anticoagulant == 5">枸橼酸钠</span>
  126. <span v-else-if="prescription.anticoagulant == 6">低分子肝素钙</span>
  127. <span v-else-if="prescription.anticoagulant == 7">低分子肝素钠</span>
  128. <span v-else-if="prescription.anticoagulant == 8">依诺肝素</span>
  129. <span v-else-if="prescription.anticoagulant == 9">达肝素</span>
  130. <span v-else-if="prescription.anticoagulant == 10">体外抗凝</span>
  131. <span v-else-if="prescription.anticoagulant == 11">那屈肝素</span>
  132. <span v-else-if="prescription.anticoagulant == 12">无抗凝剂</span>
  133. <span v-else-if="prescription.anticoagulant == 13">那屈肝素钙</span>
  134. <span v-else-if="prescription.anticoagulant == 14">肝素钙注射液</span>
  135. <span v-else-if="prescription.anticoagulant == 15">甲磺酸萘莫司他</span>
  136. &nbsp;
  137. <span style="width:135px;display: inline-block;"
  138. v-if=" prescription.anticoagulant != 1 && prescription.anticoagulant != 12 && prescription.anticoagulant != 5">
  139. 首剂: {{ prescription.anticoagulant_shouji }}
  140. <span v-if="prescription.anticoagulant == 4">mg</span>
  141. <span v-if="prescription.anticoagulant == 3">iu</span>
  142. <span v-if="prescription.anticoagulant == 2">iu</span>
  143. <span v-if="prescription.anticoagulant == 6">iu</span>
  144. <span v-if="prescription.anticoagulant == 7">iu</span>
  145. <span v-if="prescription.anticoagulant == 10">mg</span>
  146. <span v-if="prescription.anticoagulant == 8">iu</span>
  147. <span v-if="prescription.anticoagulant == 9">iu</span>
  148. <span v-if="prescription.anticoagulant == 11">mg</span>
  149. <span v-if="prescription.anticoagulant == 13">mg</span>
  150. <span v-if="prescription.anticoagulant == 14 ||
  151. prescription.anticoagulant == 15">mg
  152. </span>
  153. </span>
  154. &nbsp;
  155. <span style="width:135px;display: inline-block;"
  156. v-if="prescription.anticoagulant != 12 && prescription.anticoagulant != 1 ">
  157. 追加: {{ prescription.anticoagulant_weichi }}
  158. <span v-if="prescription.anticoagulant == 5">ml/h</span>
  159. <span v-if="prescription.anticoagulant == 4">mg/h</span>
  160. <span v-if="prescription.anticoagulant == 3">iu/h</span>
  161. <span v-if="prescription.anticoagulant == 2">iu/h</span>
  162. <span v-if="prescription.anticoagulant == 6">iu/h</span>
  163. <span v-if="prescription.anticoagulant == 7">iu/h</span>
  164. <span v-if="prescription.anticoagulant == 10">mg/h</span>
  165. <span v-if="prescription.anticoagulant == 8">iu/h</span>
  166. <span v-if="prescription.anticoagulant == 9">iu/h</span>
  167. <span v-if="prescription.anticoagulant == 11">mg/h</span>
  168. <span v-if="prescription.anticoagulant == 13">mg/h</span>
  169. <span v-if="prescription.anticoagulant == 14 ||
  170. prescription.anticoagulant == 15">mg/h
  171. </span>
  172. </span>
  173. &nbsp;
  174. <span style="width:150px;display: inline-block;"
  175. v-if="prescription.anticoagulant != 12 && prescription.anticoagulant != 1 && prescription.anticoagulant != 5 ">
  176. 总量: {{ prescription.anticoagulant_zongliang }}
  177. <span v-if="prescription.anticoagulant == 4">mg</span>
  178. <span v-if="prescription.anticoagulant == 3">iu</span>
  179. <span v-if="prescription.anticoagulant == 2">iu</span>
  180. <span v-if="prescription.anticoagulant == 6">iu</span>
  181. <span v-if="prescription.anticoagulant == 7">iu</span>
  182. <span v-if="prescription.anticoagulant == 10">mg</span>
  183. <span v-if="prescription.anticoagulant == 8">iu</span>
  184. <span v-if="prescription.anticoagulant == 9">iu</span>
  185. <span v-if="prescription.anticoagulant == 11">mg</span>
  186. <span v-if="prescription.anticoagulant == 13">mg</span>
  187. <span v-if="prescription.anticoagulant == 14 ||
  188. prescription.anticoagulant == 15">mg
  189. </span>
  190. </span>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td colspan="3">
  195. <div style="display: inline-block;">
  196. 处方脱水量:
  197. {{
  198. prescription.target_ultrafiltration
  199. ? prescription.target_ultrafiltration
  200. : "/"
  201. }}&nbsp;L
  202. </div>
  203. <div style="margin-left:70px ;display: inline-block;">
  204. 透析液流量:
  205. {{
  206. prescription.dialysate_flow
  207. ? prescription.dialysate_flow
  208. : "/"
  209. }}&nbsp;ml/min
  210. </div>
  211. <!-- <div style="margin-left:70px ;display: inline-block;">
  212. 实际预冲量:
  213. {{ prescription.pre_impulse ? prescription.pre_impulse : "/" }}
  214. &nbsp;L
  215. </div> -->
  216. <div style="margin-left:70px ; display: inline-block;">
  217. 医师签名:
  218. <span v-if="setAdminUserES(prescription.creater) == ''">
  219. {{ getAdminUser(prescription.creater) }}
  220. </span>
  221. <img
  222. class="es-img"
  223. style="height: 30px"
  224. :src="setAdminUserES(prescription.creater)"
  225. alt
  226. srcset
  227. v-else
  228. />
  229. </div>
  230. </td>
  231. </tr>
  232. <tr>
  233. <td>
  234. <span
  235. >透析机:
  236. <span>
  237. {{ predialysis.machine_type ? predialysis.machine_type : "/" }}
  238. </span>
  239. </span>
  240. </td>
  241. <td>
  242. <span>
  243. 透析(滤)器:
  244. {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "/" }}
  245. </span>
  246. </td>
  247. <td>
  248. <span>灌流器:</span>
  249. <span>{{ prescription.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}</span>
  250. </td>
  251. </tr>
  252. <tr>
  253. <td colspan="3">
  254. <span>透析液(mmo l/L)
  255. <span>
  256. K:{{
  257. prescription.kalium ? prescription.kalium : "/"
  258. }}&nbsp;&nbsp;\ Ca:{{
  259. prescription.calcium
  260. ? prescription.calcium
  261. : "/"
  262. }}&nbsp;&nbsp;\ Na:{{
  263. prescription.sodium ? prescription.sodium : "/"
  264. }}&nbsp;&nbsp;\ HCO3:{{
  265. prescription.bicarbonate
  266. ? prescription.bicarbonate
  267. : "/"
  268. }}&nbsp;&nbsp;
  269. </span>
  270. </span>
  271. </td>
  272. </tr>
  273. <tr>
  274. <td colspan="2">
  275. <span>血管通路:</span>
  276. <span v-if="predialysis.blood_access_part_opera_name.indexOf('长期管路') > -1">长期管路</span>
  277. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('动脉直穿') > -1">动脉直穿</span>
  278. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('动静脉直穿') > -1">动静脉直穿</span>
  279. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('带隧道带绦纶套股静脉导管') > -1">带隧道带绦纶套股静脉导管</span>
  280. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('带隧道带绦纶套锁骨下静脉导管') > -1">带隧道带绦纶套锁骨下静脉导管</span>
  281. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('带隧道带绦纶套颈内静脉导管') > -1">带隧道带绦纶套颈内静脉导管</span>
  282. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('无绦纶套股静脉导管') > -1">无绦纶套股静脉导管</span>
  283. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('无绦纶套锁骨下静脉导管') > -1">无绦纶套锁骨下静脉导管</span>
  284. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('无绦纶套颈内静脉导管') > -1">无绦纶套颈内静脉导管</span>
  285. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('直线型移植血管动静脉内瘘') > -1">直线型移植血管动静脉内瘘</span>
  286. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('自体动静脉内瘘') > -1">自体动静脉内瘘</span>
  287. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('袢型移植血管动静脉内瘘') > -1">袢型移植血管动静脉内瘘</span>
  288. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('静脉直穿') > -1">静脉直穿</span>
  289. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1">自体内瘘</span>
  290. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('人造血管') > -1">人造血管</span>
  291. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('直穿') > -1">直穿</span>
  292. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('颈内静脉') > -1">颈内静脉</span>
  293. <span v-else-if="predialysis.blood_access_part_opera_name.indexOf('股静脉') > -1">股静脉</span>
  294. </td>
  295. <td>
  296. <div style="display: inline-block;">
  297. 穿刺者:
  298. <span
  299. v-if="
  300. setAdminUserES(
  301. dialysisOrder == null
  302. ? 0
  303. : dialysisOrder.puncture_nurse
  304. ) == ''
  305. "
  306. >
  307. {{
  308. getAdminUser(
  309. dialysisOrder == null
  310. ? 0
  311. : dialysisOrder.puncture_nurse
  312. )
  313. }}
  314. </span>
  315. <img
  316. class="es-img"
  317. style="height: 30px"
  318. :src="
  319. setAdminUserES(
  320. dialysisOrder == null
  321. ? 0
  322. : dialysisOrder.puncture_nurse
  323. )
  324. "
  325. alt
  326. srcset
  327. v-else
  328. />
  329. </div>
  330. </td>
  331. </tr>
  332. <tr style="border-bottom: none;">
  333. <td colspan="3" style=" text-align: center; border-bottom: none;">
  334. <span style="font-weight: bold;"
  335. >治&nbsp;疗&nbsp;过&nbsp;程&nbsp;记&nbsp;录</span
  336. >
  337. </td>
  338. </tr>
  339. <tr>
  340. <td colspan="3">
  341. <table border="1" cellspacing="0" cellpadding="0"
  342. style=" width: 100%; text-align: center; border: none;"
  343. >
  344. <!-- border-bottom: 1px solid gray; border-right: 1px solid gray;-->
  345. <tr style="">
  346. <td rowspan="2" style=" ">时间</td>
  347. <td colspan="4" style=" ">透析参数</td>
  348. <td colspan="4" style=" ">生命体征</td>
  349. <td colspan="2" style=" ">治疗中病情变化</td>
  350. </tr>
  351. <tr style="">
  352. <td style=" ">TMP<br />mmHg</td>
  353. <td style=" ">静脉压<br />mmHg</td>
  354. <td style=" ">血流量<br />ml/min</td>
  355. <td style="">脱水量<br />ml</td>
  356. <td style=" ">T<br />ºC</td>
  357. <td style=" ">HR<br />bpm</td>
  358. <td style=" ">R<br />bpm</td>
  359. <td style=" ">BP<br />mmHg</td>
  360. <!-- <td style=" ">时间</td> -->
  361. <td style=" ">记录</td>
  362. <!-- <td >护士签名</td> -->
  363. </tr>
  364. <tr style="" v-for="(monitor, monindex) in monitors" :key="monindex" >
  365. <td style=" "> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  366. <td style=" ">
  367. <span v-if="getTime(monitor.operate_time) != ''">
  368. {{
  369. monitor.transmembrane_pressure
  370. ? monitor.transmembrane_pressure
  371. : ""
  372. }}
  373. </span>
  374. </td >
  375. <td style=" ">
  376. <span v-if="getTime(monitor.operate_time) != ''">
  377. &nbsp;{{
  378. monitor.venous_pressure ? monitor.venous_pressure : ""
  379. }}
  380. </span>
  381. </td>
  382. <td style=" ">
  383. <span v-if="getTime(monitor.operate_time) != ''">
  384. {{
  385. monitor.blood_flow_volume
  386. ? monitor.blood_flow_volume
  387. : ""
  388. }}
  389. </span>
  390. </td>
  391. <td style=" ">
  392. <span v-if="getTime(monitor.operate_time) != ''&&monindex == 0 ">
  393. {{'/'}}
  394. </span>
  395. <span v-else-if="getTime(monitor.operate_time) != ''&&monindex == 0 ">
  396. {{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}
  397. </span>
  398. <span v-else>{{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
  399. </td>
  400. <td style=" ">
  401. <span v-if="getTime(monitor.operate_time) != ''">
  402. {{ monitor.temperature ? monitor.temperature : "" }}
  403. </span>
  404. </td>
  405. <td style=" ">
  406. <span v-if="getTime(monitor.operate_time) != ''">
  407. {{
  408. monitor.pulse_frequency ? monitor.pulse_frequency : ""
  409. }}
  410. </span>
  411. </td>
  412. <td style=" ">
  413. <span v-if="getTime(monitor.operate_time) != ''">
  414. {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
  415. </span>
  416. </td>
  417. <td style=" ">
  418. <span v-if="getTime(monitor.operate_time) != ''">
  419. {{
  420. monitor.systolic_blood_pressure
  421. ? monitor.systolic_blood_pressure
  422. : ""
  423. }}/{{
  424. monitor.diastolic_blood_pressure
  425. ? monitor.diastolic_blood_pressure
  426. : ""
  427. }}
  428. </span>
  429. </td>
  430. <!-- <td style=" "> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td> -->
  431. <td style=" ">
  432. <!-- <span style="display:inline-block;word-break: break-all;word-wrap: break-word; text-align: left;text-indent:2em;">
  433. {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
  434. </span> -->
  435. <div style="word-break: break-all;word-wrap: break-word; text-align: left;text-indent:2em;">
  436. {{ monitor.symptom }} {{ monitor.dispose }} {{monitor.result}}
  437. </div>
  438. </td>
  439. <!-- <td>
  440. <span v-if="
  441. setAdminUserES(
  442. dialysisOrder == null
  443. ? 0
  444. : dialysisOrder.start_nurse
  445. ) == ''
  446. "
  447. >{{
  448. getAdminUser(
  449. dialysisOrder == null
  450. ? 0
  451. : dialysisOrder.start_nurse
  452. )
  453. }}</span
  454. >
  455. <img
  456. class="es-img"
  457. style="height: 30px"
  458. :src="
  459. setAdminUserES(
  460. dialysisOrder == null
  461. ? 0
  462. : dialysisOrder.start_nurse
  463. )
  464. "
  465. alt=""
  466. srcset=""
  467. v-else
  468. />
  469. </td> -->
  470. </tr>
  471. </table>
  472. </td>
  473. </tr>
  474. <tr>
  475. <td colspan="3">
  476. <table class="inside_table" border="1" cellspacing="0" cellpadding="0"
  477. style="text-align: center; border-top: none;border-bottom: none;
  478. border-right: none;border-left: none; box-sizing: border-box;">
  479. <tr>
  480. <td style="height: 20px;" width="110">
  481. <p style="height: 20px; line-height: 20px" >提交时间</p>
  482. </td>
  483. <td style="height: 20px; " width="350">
  484. <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
  485. </td>
  486. <td style="height: 20px; " width="130">
  487. <p style="height: 20px; line-height: 20px">执行时间</p>
  488. </td>
  489. <td style="height: 20px; " width="110">
  490. <p style="height: 20px; line-height: 20px">执行</p>
  491. </td>
  492. <td style="height: 20px; " width="150">
  493. <p style="height: 20px; line-height: 20px">上次透后体重</p>
  494. </td>
  495. <td style="height: 20px;" width="110">
  496. {{ lastafterdialysis.weight_after.toFixed(2) }}kg
  497. </td>
  498. </tr>
  499. </table>
  500. </td>
  501. </tr>
  502. <tr v-for="(advice, advice_index) in advices" :key="advice_index" >
  503. <td colspan="3">
  504. <table class="inside_table" border="1" cellspacing="0" cellpadding="0"
  505. style="text-align: center; border-top: none;border-bottom: none;
  506. border-right: none;border-left: none; box-sizing: border-box;">
  507. <tr style="border-bottom:none;">
  508. <td width="110" style="">
  509. {{ getTime(advice.start_time, "{h}:{i}") }}
  510. </td>
  511. <td style=" text-align: left; padding-left: 5px ; word-break: break-all;word-wrap: break-word; box-sizing: border-box;" width="350">
  512. <span v-if="advice.parent_id > 0"></span>
  513. <span>{{ advice.advice_name }}</span>
  514. <span v-if="advice && advice.advice_desc">
  515. ({{ advice.advice_desc}}{{ advice.drug_spec_unit }})
  516. </span>
  517. <span v-if="advice.prescribing_number">&nbsp;&nbsp;
  518. {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}
  519. </span>
  520. <span v-if="advice.single_dose != 0">
  521. {{ advice.single_dose}}{{ advice.single_dose_unit }}
  522. </span>
  523. <span v-if="advice.parent_id == 0">
  524. {{advice.delivery_way}}
  525. </span>
  526. <span v-if="advice.parent_id == 0">
  527. {{advice.execution_frequency}}
  528. </span>
  529. <span>{{ advice.remark }}</span>
  530. </td>
  531. <!-- 执行时间 -->
  532. <td width="130" style="">
  533. {{ getTime(advice.execution_time, "{h}:{i}") }}
  534. </td>
  535. <!-- 执行 -->
  536. <td width="110" style="">
  537. <!-- <span
  538. v-if="setAdminUserES(advice.advice_doctor) == ''"
  539. >
  540. {{ getAdminUser(advice.advice_doctor) }}
  541. </span>
  542. <img
  543. style="height: 30px"
  544. :src="setAdminUserES(advice.advice_doctor)"
  545. alt=""
  546. srcset=""
  547. /> -->
  548. <span
  549. v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}
  550. </span>
  551. <img class="es-img" style="height: 30px" :src="setAdminUserES(advice.execution_staff)"
  552. alt="" srcset="" v-else>
  553. </td>
  554. <td v-if="advice_index === 0" width="150" style="">透前体重</td>
  555. <td v-if="advice_index === 0" width="110" >
  556. {{predialysis.weight_before.toFixed(2) }}kg
  557. </td>
  558. <td v-if="advice_index === 1" width="150" style="">体重增加量</td>
  559. <td v-if="advice_index === 1" width="110">
  560. {{
  561. assessmentafter.weight_after == 0 ||
  562. predialysis.weight_before == 0
  563. ? '0.00'
  564. : (
  565. predialysis.weight_before -
  566. assessmentafter.weight_after
  567. ).toFixed(2)
  568. }}kg
  569. </td>
  570. <td v-if="advice_index === 2" width="150" style="">干体重(DW)</td>
  571. <td v-if="advice_index === 2" width="110">
  572. {{ predialysis.dry_weight.toFixed(2) }}kg
  573. </td>
  574. <td v-if="advice_index === 3" width="150" style="">较干体重增加量</td>
  575. <td v-if="advice_index === 3" width="110">
  576. {{
  577. patientInfo.total_dialysis +
  578. patientInfo.user_sys_before_count >
  579. 0 && predialysis.weight_before != 0
  580. ? (
  581. predialysis.weight_before - predialysis.dry_weight
  582. ).toFixed(2)
  583. : '0.00'
  584. }}kg
  585. </td>
  586. <td v-if="advice_index === 4" width="150" style="">透后体重</td>
  587. <td v-if="advice_index === 4" width="110">
  588. {{ afterdialysis.weight_after.toFixed(2) }}kg
  589. </td>
  590. <td v-if="advice_index === 5" width="150" style="">
  591. 本次透析体重下降量
  592. </td>
  593. <td v-if="advice_index === 5" width="110">
  594. {{
  595. afterdialysis.weight_after == 0 || predialysis.weight_before == 0
  596. ? '0.00'
  597. : (
  598. predialysis.weight_before - afterdialysis.weight_after
  599. ).toFixed(2)
  600. }}kg
  601. </td>
  602. <td v-if="advice_index > 5" width="150" style=""></td>
  603. <td v-if="advice_index > 5" width="110"></td>
  604. </tr>
  605. </table>
  606. </td>
  607. </tr>
  608. <tr>
  609. <td colspan="3">
  610. <!-- <div style="display: inline-block;">
  611. 姓名:{{ patientInfo.name }}
  612. </div>
  613. <div style="display: inline-block; margin-left: 40px;">
  614. 姓别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
  615. </div>
  616. <div style="display: inline-block; margin-left: 40px;">
  617. 透析机号:{{ getNumber() }}
  618. </div> -->
  619. <div style="word-break: break-all;word-wrap: break-word;">
  620. <div >
  621. 治疗小结:
  622. {{
  623. summary.dialysis_summary ? summary.dialysis_summary : "/"
  624. }}
  625. </div>
  626. <div style="display: inline-block; margin-left: 120px;">
  627. 医生签名:
  628. <span v-if="setAdminUserES(prescription.creater) == ''">
  629. {{ getAdminUser(prescription.creater) }}
  630. </span>
  631. <img
  632. class="es-img"
  633. style="height: 30px"
  634. :src="setAdminUserES(prescription.creater)"
  635. alt
  636. srcset
  637. v-else
  638. />
  639. </div>
  640. <div style="display: inline-block; margin-left: 150px;">
  641. 护士签名:
  642. <span v-if="
  643. setAdminUserES(
  644. dialysisOrder == null
  645. ? 0
  646. : dialysisOrder.start_nurse
  647. ) == ''
  648. "
  649. >{{
  650. getAdminUser(
  651. dialysisOrder == null
  652. ? 0
  653. : dialysisOrder.start_nurse
  654. )
  655. }}</span
  656. >
  657. <img
  658. class="es-img"
  659. style="height: 30px"
  660. :src="
  661. setAdminUserES(
  662. dialysisOrder == null
  663. ? 0
  664. : dialysisOrder.start_nurse
  665. )
  666. "
  667. alt=""
  668. srcset=""
  669. v-else
  670. />
  671. </div>
  672. <div style="display: inline-block; margin-left: 150px;">
  673. 核对护士签名:
  674. <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
  675. {{ getAdminUser(check == null ? 0 : check.modifier) }}
  676. </span>
  677. <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
  678. </div>
  679. </div>
  680. </td>
  681. </tr>
  682. </table>
  683. </div>
  684. </div>
  685. </div>
  686. </div>
  687. </div>
  688. </template>
  689. <script>
  690. import { getDialysisRecord } from "@/api/dialysis";
  691. import { jsGetAge, uParseTime } from "@/utils/tools";
  692. import { getDataConfig } from "@/utils/data";
  693. export default {
  694. data() {
  695. return {
  696. patientInfo: {
  697. birth: '',
  698. age: '',
  699. DialysisSchedule: {
  700. device_number: { number: '' },
  701. device_zone: { name: '' }
  702. },
  703. gender: 0
  704. },
  705. queryParams: {
  706. xtdate: "",
  707. xtno: "",
  708. patient_id:0,
  709. },
  710. patientInfo_gender_1: false,
  711. patientInfo_gender_2: false,
  712. orgname: "",
  713. dialysisOrder: {
  714. DeviceNumber: []
  715. },
  716. afterdialysis: {
  717. complications_index: ""
  718. },
  719. prescription: {
  720. dialysate_formulation_name: "",
  721. device: {}
  722. },
  723. advices: [],
  724. doctor_advices: [],
  725. assessmentafter: {},
  726. predialysis: {
  727. score: "",
  728. internal_fistula: "",
  729. internal_fistula_skin: "",
  730. catheter: "",
  731. blood_access_part_opera_name: ""
  732. },
  733. summary: {},
  734. operatorMaps: {},
  735. operators: [],
  736. monitors:[],
  737. check:{},
  738. adminUser: [],
  739. bloodAccessParOpera: {},
  740. lastafterdialysis: {},
  741. projects:[],
  742. prescriptionInfo:{},
  743. patientDiagnose:[]
  744. };
  745. },
  746. computed: {},
  747. watch: {
  748. "patientInfo.gender": function() {
  749. if (this.patientInfo.gender == 1) {
  750. this.patientInfo_gender_1 = true;
  751. this.patientInfo_gender_2 = false;
  752. } else if (this.patientInfo.gender == 2) {
  753. this.patientInfo_gender_2 = true;
  754. this.patientInfo_gender_1 = false;
  755. } else {
  756. this.patientInfo_gender_2 = false;
  757. this.patientInfo_gender_1 = false;
  758. }
  759. }
  760. },
  761. methods: {
  762. getDialysisRecord() {
  763. this.loading = true;
  764. this.queryParams.patient_id = parseInt(this.$route.query.patient_id)
  765. getDialysisRecord(this.queryParams).then(response => {
  766. if (response.data.state == 1) {
  767. this.adminUser = response.data.data.users;
  768. // this.xtdate = response.data.data.xtdate;
  769. // this.users = response.data.data.users;
  770. this.patientInfo = response.data.data.patientInfo;
  771. console.log("this.patienInfo的数据", response.data.data);
  772. console.log("this.patienInfo的数据", this.patientInfo);
  773. this.patientInfo.birth = uParseTime(
  774. this.patientInfo.birthday,
  775. "{y}-{m}-{d}"
  776. );
  777. // }
  778. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  779. this.patientInfo.first_dialysis_date = uParseTime(
  780. response.data.data.patientInfo.first_dialysis_date,
  781. "{y}-{m}-{d}"
  782. );
  783. } else {
  784. this.patientInfo.first_dialysis_date = "";
  785. }
  786. this.check = response.data.data.check;
  787. this.predialysis = response.data.data.PredialysisEvaluation;
  788. this.predialysis.blood_access_part_opera_name =
  789. this.bloodAccessParOperaName(
  790. this.predialysis.blood_access_part_opera_id
  791. );
  792. // console.log(
  793. // this.predialysis.blood_access_part_opera_name,
  794. // "this.predialysis.blood_access_part_opera_name"
  795. // );
  796. this.lastafterdialysis = response.data.data.assessmentAfterDislysis;
  797. this.afterdialysis = response.data.data.AssessmentAfterDislysis;
  798. this.operators = response.data.data.operators;
  799. this.dialysisOrder =
  800. response.data.data.dialysisOrder === null
  801. ? null
  802. : response.data.data.dialysisOrder;
  803. if (this.operators.length > 0) {
  804. var operatorsLen = this.operators.length;
  805. for (var index = 0; index < operatorsLen; index++) {
  806. this.$set(
  807. this.operatorMaps,
  808. this.operators[index].creator,
  809. this.operators[index]
  810. );
  811. }
  812. }
  813. // this.afterdialysis.txqnx = -1;
  814. // if (this.afterdialysis.cruor.indexOf("0度") > -1) {
  815. // this.afterdialysis.txqnx = 0;
  816. // }
  817. // if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
  818. // this.afterdialysis.txqnx = 1;
  819. // }
  820. // if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
  821. // this.afterdialysis.txqnx = 2;
  822. // }
  823. // if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
  824. // this.afterdialysis.txqnx = 3;
  825. // }
  826. // this.afterdialysis.complications =
  827. // this.afterdialysis.complication.split(",");
  828. // this.afterdialysis.complications_other = [];
  829. // this.afterdialysis.complications_index = [];
  830. // var acllen = this.afterdialysis.complications.length;
  831. // for (let index = 0; index < acllen; index++) {
  832. // if (
  833. // this.complications.indexOf(
  834. // this.afterdialysis.complications[index]
  835. // ) >= 0
  836. // ) {
  837. // this.afterdialysis.complications_index.push(
  838. // this.afterdialysis.complications[index]
  839. // );
  840. // } else if (
  841. // this.complications.indexOf(
  842. // this.afterdialysis.complications[index]
  843. // ) < 0 &&
  844. // this.afterdialysis.complications_other.indexOf(
  845. // this.afterdialysis.complications[index]
  846. // ) < 0
  847. // ) {
  848. // this.afterdialysis.complications_other.push(
  849. // this.afterdialysis.complications[index]
  850. // );
  851. // }
  852. // }
  853. // this.afterdialysis.complications_other =
  854. // this.afterdialysis.complications_other.join(",");
  855. this.prescription = response.data.data.dialysisPrescription;
  856. // this.receiverTreatmentAccess =
  857. // response.data.data.receiverTreatmentAccess;
  858. this.assessmentafter = response.data.data.assessmentAfterDislysis;
  859. this.prescriptionInfo = response.data.data.prescriptionInfo
  860. this.patientDiagnose = response.data.data.patientDiagnose
  861. // this.sick_condition_arr.forEach((o) => {
  862. // if (this.receiverTreatmentAccess.sick_condition == o.id) {
  863. // this.sick_condition = o.name;
  864. // }
  865. // });
  866. // this.prescription.mode = this.modeName(this.prescription.mode_id);
  867. // var rwLen = this.replacementWays.length;
  868. // this.prescription.replacement = "";
  869. // for (let index = 0; index < rwLen; index++) {
  870. // if (
  871. // this.replacementWays[index].id ==
  872. // this.prescription.replacement_way
  873. // ) {
  874. // this.prescription.replacement = this.replacementWays[index].name;
  875. // break;
  876. // }
  877. // }
  878. // this.prescription.dialysate_formulation_name =
  879. // this.dialysateFormulationName(
  880. // this.prescription.dialysate_formulation
  881. // );
  882. // var paLen = this.perfusionApparatus.length;
  883. // this.prescription.perfusion_apparatus_name = "";
  884. // for (let index = 0; index < paLen; index++) {
  885. // if (
  886. // this.perfusionApparatus[index].id ==
  887. // this.prescription.perfusion_apparatus
  888. // ) {
  889. // this.prescription.perfusion_apparatus_name =
  890. // this.perfusionApparatus[index].name;
  891. // break;
  892. // }
  893. // }
  894. // console.log(this.prescription, "透析处方");
  895. // var acLen = this.anticoagulantsConfit.length;
  896. // var thisALID = this.prescription.anticoagulant;
  897. // this.prescription.anticoagulant_name = "";
  898. // if (
  899. // typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
  900. // this.anticoagulantsConfit[thisALID] != null
  901. // ) {
  902. // this.prescription.anticoagulant_name =
  903. // this.anticoagulantsConfit[thisALID].name;
  904. // this.AlPanel = this.anticoagulantsConfit[thisALID];
  905. // }
  906. this.advices = response.data.data.advices;
  907. this.monitors = response.data.data.monitors;
  908. this.summary = response.data.data.summary;
  909. this.org_template_info = response.data.data.org_template_info;
  910. if (this.monitors.length <= 0) {
  911. var nl = 8 - this.monitors.length;
  912. for (let index = 0; index < nl; index++) {
  913. this.monitors.push([]);
  914. }
  915. }
  916. this.jilurow = this.monitors.length + 1;
  917. this.advice_jilurow = this.advices.length + 1;
  918. var childMap = {};
  919. for (const index in this.advices) {
  920. if (this.advices[index].parent_id == 0) {
  921. continue;
  922. }
  923. if (!(this.advices[index].parent_id in childMap)) {
  924. childMap[this.advices[index].parent_id] = [];
  925. }
  926. childMap[this.advices[index].parent_id].push(this.advices[index]);
  927. }
  928. var advices = [];
  929. for (const index in this.advices) {
  930. if (this.advices[index].parent_id > 0) {
  931. continue;
  932. }
  933. var item = this.advices[index];
  934. if (item.id in childMap) {
  935. item.children = childMap[item.id];
  936. } else {
  937. item.children = [];
  938. }
  939. advices.push(item);
  940. }
  941. let projects = [];
  942. response.data.data.projects.map((item) => {
  943. if (item.type == 2 && item.project.is_print == 1) {
  944. projects.push(item);
  945. }
  946. });
  947. this.projects = projects;
  948. if (this.doctor_advices.length + this.projects.length <= 6) {
  949. var nl = 6 - (this.doctor_advices.length + this.projects.length);
  950. this.print_length = 6;
  951. for (let index = 0; index < nl; index++) {
  952. if (
  953. this.projects[index] == undefined ||
  954. this.projects[index].length <= 0
  955. ) {
  956. this.projects.push([]);
  957. } else {
  958. continue;
  959. }
  960. }
  961. }
  962. console.log("advices",this.advices)
  963. console.log("this.projects", this.projects);
  964. // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
  965. if(this.projects!=null && this.projects.length >0){
  966. for(let i=0;i<this.projects.length;i++){
  967. if(this.projects[i].type== 2){
  968. this.projects[i].advice_name = this.projects[i].project.project_name
  969. this.projects[i].start_time = this.projects[i].start_time
  970. this.projects[i].single_dose = this.projects[i].single_dose
  971. this.projects[i].single_dose_unit = this.projects[i].unit
  972. this.projects[i].execution_time = this.projects[i].execution_time
  973. this.projects[i].execution_staff= this.projects[i].execution_staff
  974. this.advices.push(this.projects[i])
  975. }
  976. }
  977. }
  978. var tableAdvice = this.advices;
  979. if (tableAdvice.length === 0) {
  980. var obj = { advice_name: "", start_time: "" };
  981. var obj1 = { advice_name: "", start_time: "" };
  982. var obj2 = { advice_name: "", start_time: "" };
  983. var obj3 = { advice_name: "", start_time: "" };
  984. var obj4 = { advice_name: "", start_time: "" };
  985. var obj5 = { advice_name: "", start_time: "" };
  986. tableAdvice.push(obj);
  987. tableAdvice.push(obj1);
  988. tableAdvice.push(obj2);
  989. tableAdvice.push(obj3);
  990. tableAdvice.push(obj4);
  991. tableAdvice.push(obj5);
  992. this.advices = tableAdvice;
  993. }
  994. if (tableAdvice.length === 1) {
  995. var obj = { advice_name: "", start_time: "" };
  996. var obj1 = { advice_name: "", start_time: "" };
  997. var obj2 = { advice_name: "", start_time: "" };
  998. var obj3 = { advice_name: "", start_time: "" };
  999. var obj4 = { advice_name: "", start_time: "" };
  1000. tableAdvice.push(obj);
  1001. tableAdvice.push(obj1);
  1002. tableAdvice.push(obj2);
  1003. tableAdvice.push(obj3);
  1004. tableAdvice.push(obj4);
  1005. this.advices = tableAdvice;
  1006. }
  1007. if (tableAdvice.length === 2) {
  1008. var obj = { advice_name: "", start_time: "" };
  1009. var obj1 = { advice_name: "", start_time: "" };
  1010. var obj2 = { advice_name: "", start_time: "" };
  1011. var obj3 = { advice_name: "", start_time: "" };
  1012. tableAdvice.push(obj);
  1013. tableAdvice.push(obj1);
  1014. tableAdvice.push(obj2);
  1015. tableAdvice.push(obj3);
  1016. this.advices = tableAdvice;
  1017. }
  1018. if (tableAdvice.length === 3) {
  1019. var obj = { advice_name: "", start_time: "" };
  1020. var obj1 = { advice_name: "", start_time: "" };
  1021. var obj2 = { advice_name: "", start_time: "" };
  1022. tableAdvice.push(obj);
  1023. tableAdvice.push(obj1);
  1024. tableAdvice.push(obj2);
  1025. this.advices = tableAdvice;
  1026. }
  1027. if (tableAdvice.length === 4) {
  1028. var obj = { advice_name: "", start_time: "" };
  1029. var obj1 = { advice_name: "", start_time: "" };
  1030. tableAdvice.push(obj);
  1031. tableAdvice.push(obj1);
  1032. this.advices = tableAdvice;
  1033. }
  1034. if (tableAdvice.length === 5) {
  1035. var obj = { advice_name: "", start_time: "" };
  1036. var obj1 = { advice_name: "", start_time: "" };
  1037. tableAdvice.push(obj);
  1038. tableAdvice.push(obj1);
  1039. this.advices = tableAdvice;
  1040. }
  1041. if (tableAdvice.length === 6) {
  1042. var obj1 = { advice_name: "", start_time: "" };
  1043. tableAdvice.push(obj1);
  1044. this.advices = tableAdvice;
  1045. }
  1046. console.log("advices-----------------",this.advices)
  1047. // this.loading = false;
  1048. // console.log(this.advice_groups);
  1049. } else {
  1050. this.loading = false;
  1051. this.$message.error("请求数据失败");
  1052. return false;
  1053. }
  1054. });
  1055. },
  1056. getNumber() {
  1057. if (this.dialysisOrder != null) {
  1058. return (
  1059. this.patientInfo.DialysisSchedule.device_zone.name +
  1060. this.dialysisOrder.DeviceNumber.number
  1061. );
  1062. } else {
  1063. return (
  1064. this.patientInfo.DialysisSchedule.device_zone.name +
  1065. this.patientInfo.DialysisSchedule.device_number.number
  1066. );
  1067. }
  1068. },
  1069. setAdminUserES(id) {
  1070. console.log(id);
  1071. if (id == 0) {
  1072. return "";
  1073. }
  1074. if (id in this.operatorMaps) {
  1075. return this.operatorMaps[id].url;
  1076. } else {
  1077. return "";
  1078. }
  1079. },
  1080. getAdminUser(id) {
  1081. if (id == 0) {
  1082. return "";
  1083. }
  1084. if (id == undefined) {
  1085. return "";
  1086. }
  1087. for (let i = 0; i < this.adminUser.length; i++) {
  1088. if (this.adminUser[i].id == id) {
  1089. return this.adminUser[i].name;
  1090. }
  1091. }
  1092. },
  1093. getTime(value, temp) {
  1094. if (value == 0) {
  1095. return "";
  1096. }
  1097. if (value != undefined) {
  1098. return uParseTime(value, temp);
  1099. }
  1100. return "";
  1101. },
  1102. bloodAccessParOperaName(id) {
  1103. if (id in this.bloodAccessParOpera) {
  1104. return this.bloodAccessParOpera[id].name
  1105. }
  1106. return ''
  1107. },
  1108. // getAge: function (val) {
  1109. // if (
  1110. // this.org_template_info.template_id == 2 ||
  1111. // this.org_template_info.template_id == 0
  1112. // ) {
  1113. // if (val.age == 0) {
  1114. // return jsGetAge(val.birth, "-");
  1115. // } else {
  1116. // return val.age;
  1117. // }
  1118. // } else {
  1119. // return jsGetAge(val.birth, "-");
  1120. // }
  1121. // },
  1122. getAge: function (val) {
  1123. if(val!=undefined){
  1124. var thisLen = val.id_card_no.length;
  1125. var birth = "";
  1126. if (thisLen == 15) {
  1127. birth = "19" + val.id_card_no.substr(6, 6);
  1128. } else {
  1129. birth = val.id_card_no.substr(6, 8);
  1130. }
  1131. var birthtwo =
  1132. birth.substr(0, 4) +
  1133. "-" +
  1134. birth.substr(4, 2) +
  1135. "-" +
  1136. birth.substr(6, 2);
  1137. var age = jsGetAge(birthtwo, "-");
  1138. return age;
  1139. }
  1140. },
  1141. getDiagnosis(id) {
  1142. let arr = id.split(',')
  1143. var name = ''
  1144. for (let i = 0; i < this.patientDiagnose.length; i++) {
  1145. if (arr.indexOf(String(this.patientDiagnose[i].id)) > -1) {
  1146. name += this.patientDiagnose[i].class_name + ' '
  1147. }
  1148. }
  1149. return name
  1150. }
  1151. },
  1152. created() {
  1153. var bloodAccessParOpera = getDataConfig(
  1154. "hemodialysis",
  1155. "vascular_access_desc"
  1156. );
  1157. for (var key in bloodAccessParOpera) {
  1158. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1159. bloodAccessParOpera[key];
  1160. }
  1161. var xtuser = this.$store.getters.xt_user;
  1162. this.orgname = xtuser.org.org_name;
  1163. const xtdate = this.$route.query && this.$route.query.xtdate;
  1164. const xtno = this.$route.query && this.$route.query.xtno;
  1165. if (
  1166. typeof xtdate === "string" &&
  1167. xtdate.length > 0 &&
  1168. typeof xtno === "string" &&
  1169. xtno.length > 0
  1170. ) {
  1171. this.queryParams.xtdate = xtdate;
  1172. this.queryParams.xtno = xtno;
  1173. this.xtdate = xtdate;
  1174. this.getDialysisRecord();
  1175. } else {
  1176. this.$message.error("参数不齐");
  1177. return false;
  1178. }
  1179. }
  1180. };
  1181. </script>
  1182. <style>
  1183. .print_page_main_content {
  1184. background-color: white;
  1185. width: 960px;
  1186. margin: 0 auto 50px;
  1187. padding: 0 0 0 0;
  1188. page-break-after: always;
  1189. }
  1190. </style>