DialysisPrintOrderSix.vue 103KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276
  1. <template>
  2. <div>
  3. <el-button type="primary" @click="checkData">一键核对</el-button>
  4. <div id="dialysis-print-box-1">
  5. <div
  6. id="dialysis-print-box-1-1"
  7. class="dialysis-print-order print-template-two print_page_main_content"
  8. >
  9. <div style="display:inline-block;width:100%;text-align:center;">
  10. <div
  11. class="order-yy-name"
  12. style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
  13. >
  14. {{ orgname }}
  15. </div>
  16. <div
  17. class="order-title"
  18. style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;"
  19. >
  20. 血液净化治疗记录单
  21. </div>
  22. </div>
  23. <div class="row">
  24. <div class="inline_block">
  25. 姓名:
  26. <div class="under_line" style="width: 50px;text-align: center;">
  27. {{ patientInfo.name }}
  28. </div>
  29. </div>
  30. <div class="inline_block" style="margin-left: 10px;">
  31. 性别:
  32. <div class="under_line" style="width: 30px;text-align: center;">
  33. {{ patientInfo_gender_1 ? "男" : "女" }}
  34. </div>
  35. </div>
  36. <div class="inline_block" style="margin-left: 10px;">
  37. 年龄:
  38. <div class="under_line" style="width: 30px;text-align: center;">
  39. {{ getAge(patientInfo) }}
  40. </div>
  41. </div>
  42. <div class="inline_block">
  43. 门诊:
  44. <div class="under_line" style="width: 30px;text-align: center;">
  45. <check-box :checked="patientInfo_source_1"></check-box>
  46. </div>
  47. </div>
  48. <div class="inline_block">
  49. 病区:
  50. <div class="under_line" style="width: 50px;text-align: center;">
  51. <span v-if="org_id == 10121">{{ patientInfo.DialysisSchedule.device_zone.name ? patientInfo.DialysisSchedule.device_zone.name : '' }}</span>
  52. <span v-else>{{ "/" }}</span>
  53. </div>
  54. </div>
  55. <div class="inline_block">
  56. 床号:
  57. <div class="under_line" style="width: 50px;text-align: center;">
  58. <span v-if="org_id == 10121">{{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}</span>
  59. <span v-else>{{ "/" }}</span>
  60. </div>
  61. </div>
  62. <div class="inline_block">
  63. 透析号:
  64. <div class="under_line" style="width: 70px;text-align: center;">
  65. {{ patientInfo.dialysis_no }}
  66. </div>
  67. </div>
  68. <div class="inline_block" style="margin-left: 5px;">
  69. 住院号/门诊号:
  70. <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
  71. {{ receiverTreatmentAccess.admission_number }}
  72. </div>
  73. <div class="under_line" style="width: 70px;text-align: left" v-else>
  74. {{ "/" }}
  75. </div>
  76. </div>
  77. </div>
  78. <div class="row">
  79. <div class="inline_block">
  80. 入科方式:
  81. <div v-for="(item, index) in way_arr" class="under_line" v-if="receiverTreatmentAccess.way == item.id" style="width: 180px;text-align: left">
  82. {{ item.name }}
  83. </div>
  84. <!--<div-->
  85. <!--class="under_line"-->
  86. <!--v-if="receiverTreatmentAccess.way == 1"-->
  87. <!--style="width: 180px;text-align: left"-->
  88. <!--&gt;-->
  89. <!--步行-->
  90. <!--</div>-->
  91. <!--<div-->
  92. <!--class="under_line"-->
  93. <!--v-if="receiverTreatmentAccess.way == 2"-->
  94. <!--style="width: 180px;text-align: left"-->
  95. <!--&gt;-->
  96. <!--扶行-->
  97. <!--</div>-->
  98. <!--<div-->
  99. <!--class="under_line"-->
  100. <!--v-if="receiverTreatmentAccess.way == 3"-->
  101. <!--style="width: 180px;text-align: left"-->
  102. <!--&gt;-->
  103. <!--轮椅-->
  104. <!--</div>-->
  105. <!--<div-->
  106. <!--class="under_line"-->
  107. <!--v-if="receiverTreatmentAccess.way == 4"-->
  108. <!--style="width: 180px;text-align: left"-->
  109. <!--&gt;-->
  110. <!--平车-->
  111. <!--</div>-->
  112. </div>
  113. <div class="inline_block" style="margin-left: 10px;">
  114. 诊断:
  115. <div class="under_line" style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;">
  116. {{ patientInfo.diagnose }}
  117. </div>
  118. </div>
  119. </div>
  120. <div class="row" :style="this.totollength > 13 ? 'margin-bottom:400px;' : ''">
  121. <table class="proj_table">
  122. <tbody>
  123. <tr>
  124. <td colspan="2" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  125. 透析前情况
  126. </td>
  127. </tr>
  128. <tr>
  129. <td colspan="2">
  130. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  131. <div class="inline_block" style="flex:1;">
  132. 本次透析日期:
  133. <div class="under_line" style="width: 100px;text-align: center">
  134. {{ xtdate }}
  135. </div>
  136. </div>
  137. <div class="inline_block" style="flex:1;">
  138. 透析次数:
  139. <div class="under_line" style="width: 70px;text-align: center">
  140. {{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ? patientInfo.total_dialysis + patientInfo.user_sys_before_count : "/" }}
  141. </div>
  142. </div>
  143. <div class="inline_block" style="flex:1;">
  144. 透前症状:
  145. <div class="under_line" style="width: 150px;text-align: center">
  146. {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }}
  147. </div>
  148. </div>
  149. </div>
  150. <div class="row" style="padding: 2px 0;line-height:23px;">
  151. <div class="inline_block">
  152. T:
  153. <div class="under_line" style="width: 50px;text-align: center">
  154. {{ predialysis.temperature ? predialysis.temperature : "/" }}
  155. </div>
  156. °C
  157. </div>
  158. <div class="inline_block" style="margin-left:10px;">
  159. P:
  160. <div class="under_line" style="width: 50px;text-align: center;">
  161. {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "/" }}
  162. </div>
  163. 次/分
  164. </div>
  165. <div class="inline_block" style="margin-left:10px;">
  166. R:
  167. <div class="under_line" style="width: 50px;text-align: center;">
  168. {{ predialysis.breathing_rate ? predialysis.breathing_rate : "/" }}
  169. </div>
  170. 次/分
  171. </div>
  172. <div class="inline_block" style="margin-left:10px;">
  173. BP:
  174. <div class="under_line" style="width: 50px;text-align: center;">
  175. {{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "/" }}
  176. </div>
  177. /
  178. <div class="under_line" style="width: 50px;text-align: center;">
  179. {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "/" }}
  180. </div>
  181. mmHg
  182. </div>
  183. <div class="inline_block" style="margin-left:10px;flex:1;">
  184. 穿刺方式:
  185. <!-- <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
  186. /
  187. </div>
  188. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 1">
  189. 绳梯
  190. </div>
  191. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 2">
  192. 扣眼
  193. </div>
  194. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 3">
  195. 区域
  196. </div> -->
  197. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == ''">
  198. /
  199. </div>
  200. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('绳梯')>-1">
  201. 绳梯
  202. </div>
  203. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('扣眼')>-1">
  204. 扣眼
  205. </div>
  206. <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('区域')>-1">
  207. 区域
  208. </div>
  209. </div>
  210. <div class="inline_block" style="margin-left:10px;flex:1;">
  211. 穿刺针:
  212. <div class="under_line" style="width: 100px;text-align: center">
  213. {{ predialysis.puncture_needle ? predialysis.puncture_needle : "/" }}
  214. </div>
  215. </div>
  216. </div>
  217. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  218. <div class="inline_block">
  219. 血管通路:
  220. <div class="under_line" style="width: 220px;text-align: center;">
  221. <!-- {{ QueryPartById(predialysis.blood_access_part_id) }} -->
  222. {{predialysis.blood_access_part_id}}
  223. {{ predialysis.blood_access_part_opera_name }}
  224. </div>
  225. </div>
  226. <div class="inline_block" style="margin-left:10px;">
  227. 内瘘:
  228. <div class="under_line" style="width: 180px;text-align: center;white-space: normal;">
  229. {{ predialysis.internal_fistula ? predialysis.internal_fistula : "/" }}
  230. </div>
  231. </div>
  232. <div class="inline_block" style="margin-left:10px;flex:1.4;">
  233. 导管:
  234. <div class="under_line" style="width: 150px;text-align: center">
  235. {{ predialysis.catheter ? predialysis.catheter : "/" }}
  236. </div>
  237. </div>
  238. <div class="inline_block" style="margin-left:10px;flex:1;" v-if="org_id == 10223">
  239. 导管打折:
  240. <div class="under_line" style="width: 50px;text-align: center;white-space: normal;">
  241. <span v-if="predialysis.catheter_bend == 0">/</span>
  242. <span v-if="predialysis.catheter_bend == 1">有</span>
  243. <span v-if="predialysis.catheter_bend == 2">无</span>
  244. </div>
  245. </div>
  246. </div>
  247. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  248. <div class="inline_block" style="flex:1;">
  249. 透析方式:
  250. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="!prescription.mode_id">
  251. /
  252. </div>
  253. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 1">
  254. HD
  255. </div>
  256. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 2">
  257. HDF
  258. </div>
  259. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 3">
  260. HD+HP
  261. </div>
  262. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 4">
  263. HP
  264. </div>
  265. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 5">
  266. HF
  267. </div>
  268. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 6">
  269. SCUF
  270. </div>
  271. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 7">
  272. IUF
  273. </div>
  274. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 8">
  275. HFHD
  276. </div>
  277. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 9">
  278. HFHD+HP
  279. </div>
  280. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 10">
  281. PHF
  282. </div>
  283. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 11">
  284. HFR
  285. </div>
  286. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 12">
  287. HDF+HP
  288. </div>
  289. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 13">
  290. CRRT
  291. </div>
  292. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 14">
  293. 腹水回输
  294. </div>
  295. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 15">
  296. HD前置换
  297. </div>
  298. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 16">
  299. HD后置换
  300. </div>
  301. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 17">
  302. HDF前置换
  303. </div>
  304. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 18">
  305. HDF后置换
  306. </div>
  307. <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 19">
  308. IUF+HD
  309. </div>
  310. <div class="under_line" style="width: 150px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 22">
  311. 血浆胆红素吸附+HDF
  312. </div>
  313. <div class="under_line" style="bwidth: 150px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 23">
  314. 血浆胆红素吸附
  315. </div>
  316. <div class="under_line" style="width:100px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 29">
  317. PE
  318. </div>
  319. <div class="under_line" style="width:150px;text-align: center;font-weight:600;" v-if="prescription.mode_id == 30">
  320. 血浆胆红素吸附+HP
  321. </div>
  322. </div>
  323. <div class="inline_block" style="margin-left:10px;flex:1;">
  324. 置换方式:
  325. <div class="under_line" style="width: 100px;text-align: center">
  326. {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }}
  327. </div>
  328. </div>
  329. <div class="inline_block" style="margin-left:10px;flex:1;">
  330. 置换量:
  331. <div class="under_line" style="width: 70px;text-align: center">
  332. {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
  333. </div>
  334. L
  335. </div>
  336. <div class="inline_block" style="margin-left:10px;flex:1;">
  337. 血流量:
  338. <div class="under_line" style="width: 50px;text-align: center">
  339. {{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}
  340. </div>
  341. ml/min
  342. </div>
  343. <div class="inline_block" style="margin-left:1px;flex:1;">
  344. 透析时间:
  345. <div class="under_line" style="width: 30px;text-align: center">
  346. {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "/" }}
  347. </div>
  348. h
  349. <div class="under_line" style="width: 30px;text-align: center">
  350. {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "/" }}
  351. </div>
  352. min
  353. </div>
  354. </div>
  355. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  356. <div class="inline_block" style="flex:1;">
  357. 透析(滤)器:
  358. <div class="under_line" style="width: 100px;text-align: center">
  359. {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "" }}
  360. {{prescription.dialysis_dialyszers?prescription.dialysis_dialyszers:"/"}}
  361. </div>
  362. </div>
  363. <div class="inline_block" style="flex:1;">
  364. 灌流器:
  365. <div class="under_line" style="width: 70px;text-align: center">
  366. {{prescription.dialysis_irrigation?prescription.dialysis_irrigation:'/'}}
  367. </div>
  368. </div>
  369. <div class="inline_block" style="flex:1;" v-if="org_id == 9538">
  370. 血浆分离器:
  371. <div class="under_line" style="width: 70px;text-align: center">
  372. <span v-if="prescription.plasma_separator ? prescription.plasma_separator != 0 && prescription.plasma_separator != '0' : false">{{ prescription.plasma_separator }}</span>
  373. <span v-else>/</span>
  374. </div>
  375. </div>
  376. <div class="inline_block" style="flex:1;" v-if="org_id == 9538">
  377. 胆红素吸附柱:
  378. <div class="under_line" style="width: 70px;text-align: center">
  379. <span v-if="prescription.bilirubin_adsorption_column ? prescription.bilirubin_adsorption_column != 0 && prescription.bilirubin_adsorption_column != '0' : false">{{ prescription.bilirubin_adsorption_column }}</span>
  380. <span v-else>/</span>
  381. </div>
  382. </div>
  383. </div>
  384. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  385. <div class="inline_block" style="flex:1;">
  386. 上次透后体重:
  387. <div class="under_line" style="width: 100px;text-align: center">
  388. <span v-if="org_id == 10290">{{lastafterdialysis.weight_after}}</span>
  389. <span v-else>{{predialysis.weight_after_last_transparency?predialysis.weight_after_last_transparency:'未称重'}}</span>
  390. <!-- {{ predialysis.weight_after_last_transparency ? parseFloat(lastafterdialysis.weight_after - lastafterdialysis.additional_weight).toFixed(1) : "未称重" }} -->
  391. </div>
  392. kg
  393. </div>
  394. <div class="inline_block" style="flex:1;">
  395. 透前体重:
  396. <div class="under_line" style="width: 70px;text-align: center">
  397. {{ predialysis.weight_before ? parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1) : "/" }}
  398. </div>
  399. kg
  400. </div>
  401. <div class="inline_block" style="flex:1;">
  402. 计划超滤量:
  403. <div class="under_line" style="width: 100px;text-align: center">
  404. {{ prescription.target_ultrafiltration ? prescription.target_ultrafiltration : "/" }}
  405. </div>
  406. L
  407. </div>
  408. <div class="inline_block" style="flex:1;">
  409. 干体重:
  410. <div class="under_line" style="width: 100px;text-align: center">
  411. {{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}
  412. </div>
  413. kg
  414. </div>
  415. </div>
  416. <div class="row" style="padding: 2px 0;line-height:23px;">
  417. <div class="inline_block">
  418. 透析液成分钾:
  419. <div class="under_line" style="width: 50px;text-align: center">
  420. {{ prescription.kalium ? prescription.kalium : "/" }}
  421. </div>
  422. mmol/L
  423. </div>
  424. <div class="inline_block" style="margin-left:10px;">
  425. 钠:
  426. <div class="under_line" style="width: 50px;text-align: center;">
  427. {{ prescription.sodium ? prescription.sodium : "/" }}
  428. </div>
  429. mmol/L
  430. </div>
  431. <div class="inline_block" style="margin-left:10px;">
  432. 钙:
  433. <div class="under_line" style="width: 50px;text-align: center;">
  434. {{ prescription.calcium ? prescription.calcium : "/" }}
  435. </div>
  436. mmol/L
  437. </div>
  438. <div class="inline_block" style="margin-left:10px;">
  439. 碳酸氢根:
  440. <div class="under_line" style="width: 50px;text-align: center;">
  441. {{ prescription.bicarbonate ? prescription.bicarbonate : "/" }}
  442. </div>
  443. mmol/L
  444. </div>
  445. <div class="inline_block" style="margin-left:10px;">
  446. 流量:
  447. <div class="under_line" style="width: 50px;text-align: center;">
  448. {{ prescription.dialysate_flow ? prescription.dialysate_flow : "/" }}
  449. </div>
  450. ml/min
  451. </div>
  452. </div>
  453. <div class="row" style="padding: 2px 0;line-height:23px;">
  454. <div class="inline_block">
  455. 抗凝剂:
  456. <div class="under_line" style="width: 150px;text-align: center">
  457. {{ prescription.anticoagulant_name ? prescription.anticoagulant_name : "/" }}
  458. </div>
  459. </div>
  460. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant != 5">
  461. 首剂:
  462. <div class="under_line" style="width: 50px;text-align: center;">
  463. {{ prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "/" }}
  464. </div>
  465. <span v-if="prescription.anticoagulant == 4">mg</span>
  466. <span v-if="prescription.anticoagulant == 3">iu</span>
  467. <span v-if="prescription.anticoagulant == 2">iu</span>
  468. <span v-if="prescription.anticoagulant == 1">mg</span>
  469. </div>
  470. <div class="inline_block" style="margin-left:20px;">
  471. 维持:
  472. <div v-if="prescription.anticoagulant == 1" class="under_line" style="width: 50px;text-align: center;">
  473. {{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "/" }}
  474. </div>
  475. <div v-if="prescription.anticoagulant != 1" class="under_line" style="width: 50px;text-align: center;">
  476. {{ prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "0" }}
  477. </div>
  478. <span v-if="prescription.anticoagulant == 5">ml/h</span>
  479. <span v-if="prescription.anticoagulant == 4">mg/h</span>
  480. <span v-if="prescription.anticoagulant == 3">iu/h</span>
  481. <span v-if="prescription.anticoagulant == 2">iu/h</span>
  482. <span v-if="prescription.anticoagulant == 1">mg/h</span>
  483. </div>
  484. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant == 5">
  485. 钙名称:
  486. <div class="under_line" style="width: 150px;text-align: center;">
  487. {{ prescription.anticoagulant_gaimingcheng ? prescription.anticoagulant_gaimingcheng : "/" }}
  488. </div>
  489. </div>
  490. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant == 5">
  491. 钙剂量:
  492. <div class="under_line" style="width: 50px;text-align: center;">
  493. {{ prescription.anticoagulant_gaijiliang ? prescription.anticoagulant_gaijiliang : "/" }}
  494. </div>
  495. ml
  496. </div>
  497. <div class="inline_block" style="margin-left:20px;" v-if="prescription.anticoagulant != 5">
  498. 总量:
  499. <div class="under_line" style="width: 50px;text-align: center;">
  500. {{ prescription.anticoagulant_zongliang ? prescription.anticoagulant_zongliang : "/" }}
  501. </div>
  502. <span v-if="prescription.anticoagulant == 4">mg</span>
  503. <span v-if="prescription.anticoagulant == 3">iu</span>
  504. <span v-if="prescription.anticoagulant == 2">iu</span>
  505. <span v-if="prescription.anticoagulant == 1">mg</span>
  506. </div>
  507. <div class="inline_block" style="margin-left:20px;">
  508. 透析机号:
  509. <div class="under_line" style="width: 50px;text-align: center;">
  510. {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
  511. </div>
  512. </div>
  513. </div>
  514. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id != 10223">
  515. <div class="inline_block" style="flex:1; display:inline-block;">
  516. 备注:
  517. <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
  518. {{ predialysis.remark ? predialysis.remark : "/" }}
  519. </div>
  520. </div>
  521. </div>
  522. </td>
  523. </tr>
  524. <tr>
  525. <td style="padding: 0; position: relative;" colspan="2">
  526. <table class="inside_table">
  527. <tbody>
  528. <tr>
  529. <td :colspan="prescription.mode_id == 2 || prescription.mode_id == 5 ? 12 : 11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  530. 治疗记录
  531. </td>
  532. </tr>
  533. <tr>
  534. <td width="60">时间</td>
  535. <td width="60">血压<br />(mmHg)</td>
  536. <td width="50">脉搏<br />(次/分)</td>
  537. <td width="50">呼吸<br />(次/分)</td>
  538. <td width="50">血流量<br />(ml/min)</td>
  539. <td width="50">静脉压<br />({{monitors[0]&&monitors[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
  540. <td width="50">跨膜压<br />({{monitors[0]&&monitors[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</td>
  541. <td width="60" v-if="org_id != 9836">透析液温度(°C)</td>
  542. <td width="60" v-if="org_id == 9836">体温(°C)</td>
  543. <td width="50">电导度<br />(ms/cm)</td>
  544. <td width="50">超滤量<br />(ml)</td>
  545. <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50">
  546. 置换量<br />(ml)
  547. </td>
  548. <td width="200" v-if="org_id == 9919">ktv</td>
  549. <td width="200">病情变化及处理</td>
  550. <!-- <td width="100">时间</td>
  551. <td width="30">T<br>C°</td>
  552. <td width="30">P<br/>次/分</td>
  553. <td width="30">R<br/>次/分</td>
  554. <td width="100">BP<br/>mmHg</td>
  555. <td width="60">静脉压/动脉压<br/>mmHg</td>
  556. <td width="80">血流量<br/>ml/min</td>
  557. <td width="90">超滤量累计L</td>
  558. <td width="80">钠浓度<br/>mmol/L</td>
  559. <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
  560. <td width="100">护士签名</td> -->
  561. </tr>
  562. <tr v-for="(monitor, monindex) in monitors" :key="monindex">
  563. <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
  564. <td>
  565. {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
  566. {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
  567. </td>
  568. <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
  569. <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
  570. <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
  571. </td>
  572. <td>{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
  573. </td>
  574. <td>
  575. <span v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time ) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
  576. {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
  577. </span>
  578. <span v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
  579. {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : 0 }}
  580. </span>
  581. </td>
  582. <td v-if="org_id != 9836">{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
  583. <td v-if="org_id == 9836">{{ monitor.temperature ? monitor.temperature : "" }}</td>
  584. <td v-if="org_id != 9538">{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
  585. <td v-if="org_id == 9538">{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</td>
  586. <td v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
  587. {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
  588. </td>
  589. <td v-if="(dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && ( dialysisOrder && monitor.operate_time >= dialysisOrder.start_time)">
  590. {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "0" }}
  591. </td>
  592. <!-- <td style="width:50px">
  593. <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time <= dialysisOrder.end_time) && (dialysisOrder && monitor.operate_time >= dialysisOrder.start_time))">
  594. {{ monitor.displacement_quantity ? monitor.displacement_quantity : 0 }}
  595. </span>
  596. <span v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time))">
  597. {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
  598. </span>
  599. </td> -->
  600. <td v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12)" style="width:50px">
  601. <span>
  602. {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
  603. </span>
  604. </td>
  605. <td width="200" v-if="org_id == 9919">{{monitor.ktv}}</td>
  606. <td style="line-height:16px;padding:0px;">
  607. <div style="min-height:35px;line-height:35px; overflow:hidden;">
  608. <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
  609. <template v-if="(dialysisOrder && monitor.operate_time == dialysisOrder.start_time)">【开始透析】</template>
  610. {{ monitor.end }} {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
  611. </span>
  612. </div>
  613. </td>
  614. </tr>
  615. <tr v-for="(monitor, monindex) in monitors2" :key="monindex">
  616. <td></td>
  617. <td></td>
  618. <td></td>
  619. <td></td>
  620. <td></td>
  621. <td></td>
  622. <td></td>
  623. <td></td>
  624. <td></td>
  625. <td></td>
  626. <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50"></td>
  627. <td v-if="org_id == 9919"></td>
  628. <td style="line-height:16px;padding:0px;">
  629. <div style="height:40px;line-height:20px; overflow:hidden;">
  630. <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
  631. </span>
  632. </div>
  633. </td>
  634. </tr>
  635. </tbody>
  636. </table>
  637. </td>
  638. </tr>
  639. <tr>
  640. <td style="padding: 0; position: relative;" colspan="2">
  641. <table class="inside_table">
  642. <tbody>
  643. <tr style="line-height:35px;padding:8px 5px;">
  644. <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  645. 医嘱内容
  646. </td>
  647. </tr>
  648. <!-- <tr style="line-height:35px;padding:8px 5px;">
  649. <td colspan="4" style="font-size: 16px">开医嘱</td>
  650. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  651. </tr> -->
  652. <tr style="line-height:35px;padding:8px 5px;">
  653. <td style="font-size: 16px" width="10%">时间</td>
  654. <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
  655. <td style="font-size: 16px" width="10%">医生签名</td>
  656. <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
  657. <td style="font-size: 16px" width="10%">执行人签名</td>
  658. <td style="font-size: 16px" width="10%">时间</td>
  659. <td style="font-size: 16px" width="10%" v-if="org_id == 10223">核对护士</td>
  660. </tr>
  661. <!-- <template v-for="group in doctor_advices" > -->
  662. <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index">
  663. <td height="32px">
  664. <span v-if="advice.start_time">
  665. {{ getTime(advice.start_time, "{h}:{i}") }}
  666. </span>
  667. <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
  668. </td>
  669. <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
  670. <span v-if="advice.parent_id > 0">---></span>
  671. <span>{{ advice.advice_name }}</span>
  672. <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  673. <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
  674. <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  675. <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
  676. <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
  677. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
  678. </td>
  679. <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
  680. <span>{{advice.delivery_way}}</span>
  681. <span>{{advice.execution_frequency}}</span>
  682. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  683. </td> -->
  684. <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
  685. <td height="32px">
  686. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
  687. <img style="height:30px" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
  688. </td>
  689. <!-- <td height="35px">
  690. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  691. <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  692. </td> -->
  693. <td height="32px">
  694. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
  695. <img style="height:30px" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
  696. </td>
  697. <td height="32px">
  698. <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
  699. </td>
  700. <td height="32px" v-if="org_id == 10223">
  701. <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker) }}</span>
  702. <img style="height:30px" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else />
  703. </td>
  704. </tr>
  705. <!-- </template> -->
  706. </tbody>
  707. </table>
  708. </td>
  709. </tr>
  710. </tbody>
  711. </table>
  712. </div>
  713. <template v-if="this.totollength > 13">
  714. <div style="display:inline-block;width:100%;text-align:center;">
  715. <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
  716. {{ orgname }}
  717. </div>
  718. <div class="order-title" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">
  719. 血液净化治疗记录单
  720. </div>
  721. </div>
  722. <div class="row">
  723. <div class="inline_block">
  724. 姓名:
  725. <div class="under_line" style="width: 50px;text-align: center;">
  726. {{ patientInfo.name }}
  727. </div>
  728. </div>
  729. <div class="inline_block" style="margin-left: 10px;">
  730. 性别:
  731. <div class="under_line" style="width: 30px;text-align: center;">
  732. {{ patientInfo_gender_1 ? "男" : "女" }}
  733. </div>
  734. </div>
  735. <div class="inline_block" style="margin-left: 10px;">
  736. 年龄:
  737. <div class="under_line" style="width: 30px;text-align: center;">
  738. {{ getAge(patientInfo) }}
  739. </div>
  740. </div>
  741. <div class="inline_block">
  742. 门诊:
  743. <div class="under_line" style="width: 30px;text-align: center;">
  744. <check-box :checked="patientInfo_source_1"></check-box>
  745. </div>
  746. </div>
  747. <div class="inline_block">
  748. 病区:
  749. <div class="under_line" style="width: 50px;text-align: center;">
  750. {{ "/" }}
  751. </div>
  752. </div>
  753. <div class="inline_block">
  754. 床号:
  755. <div class="under_line" style="width: 50px;text-align: center;">
  756. {{ "/" }}
  757. </div>
  758. </div>
  759. <div class="inline_block">
  760. 透析号:
  761. <div class="under_line" style="width: 70px;text-align: center;">
  762. {{ patientInfo.dialysis_no }}
  763. </div>
  764. </div>
  765. <div class="inline_block" style="margin-left: 5px;">
  766. 住院号/门诊号:
  767. <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
  768. {{ patientInfo.admission_number }}
  769. </div>
  770. <div class="under_line" style="width: 70px;text-align: left" v-else>
  771. {{ "/" }}
  772. </div>
  773. </div>
  774. </div>
  775. <div class="row" style="margin-bottom:10px;">
  776. <div class="inline_block">
  777. 入科方式:
  778. <!--<check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>-->
  779. <div v-for="(item, index) in way_arr" class="under_line" v-if="receiverTreatmentAccess.way == item.id" style="width: 180px;text-align: left">
  780. {{ item.name }}
  781. </div>
  782. <!--<div-->
  783. <!--class="under_line"-->
  784. <!--v-if="receiverTreatmentAccess.way == 0"-->
  785. <!--style="width: 180px;text-align: left"-->
  786. <!--&gt;</div>-->
  787. <!--<div-->
  788. <!--class="under_line"-->
  789. <!--v-if="receiverTreatmentAccess.way == 1"-->
  790. <!--style="width: 180px;text-align: left"-->
  791. <!--&gt;-->
  792. <!--步行-->
  793. <!--</div>-->
  794. <!--<div-->
  795. <!--class="under_line"-->
  796. <!--v-if="receiverTreatmentAccess.way == 2"-->
  797. <!--style="width: 180px;text-align: left"-->
  798. <!--&gt;-->
  799. <!--扶行-->
  800. <!--</div>-->
  801. <!--<div-->
  802. <!--class="under_line"-->
  803. <!--v-if="receiverTreatmentAccess.way == 3"-->
  804. <!--style="width: 180px;text-align: left"-->
  805. <!--&gt;-->
  806. <!--轮椅-->
  807. <!--</div>-->
  808. <!--<div-->
  809. <!--class="under_line"-->
  810. <!--v-if="receiverTreatmentAccess.way == 4"-->
  811. <!--style="width: 180px;text-align: left"-->
  812. <!--&gt;-->
  813. <!--平车-->
  814. <!--</div>-->
  815. </div>
  816. <div class="inline_block" style="margin-left: 10px;">
  817. 诊断:
  818. <div class="under_line" style="width: 640px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;">
  819. {{ patientInfo.diagnose }}
  820. </div>
  821. </div>
  822. </div>
  823. </template>
  824. <div class="row" style="margin-top:-11px;position: relative;">
  825. <table class="proj_table">
  826. <tbody>
  827. <template v-if="doctor_advices_2.length > 0">
  828. <tr style="line-height:35px;padding:8px 5px;">
  829. <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  830. 医嘱内容
  831. </td>
  832. </tr>
  833. <!-- <tr style="line-height:35px;padding:8px 5px;">
  834. <td colspan="4" style="font-size: 16px">开医嘱</td>
  835. <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
  836. </tr> -->
  837. <tr style="line-height:35px;padding:8px 5px;">
  838. <td style="font-size: 16px" width="10%">时间</td>
  839. <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
  840. <td style="font-size: 16px" width="10%">医生签名</td>
  841. <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
  842. <td style="font-size: 16px" width="10%">执行人签名</td>
  843. <td style="font-size: 16px" width="10%">时间</td>
  844. </tr>
  845. <!-- <template v-for="group in doctor_advices" > -->
  846. <tr v-for="(advice, advice_index) in doctor_advices_2" :key="advice_index">
  847. <td height="32px">
  848. <span v-if="advice.start_time">
  849. {{ getTime(advice.start_time, "{h}:{i}") }}
  850. </span>
  851. <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
  852. </td>
  853. <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
  854. <span v-if="advice.parent_id > 0">---></span>
  855. <span>{{ advice.advice_name }}</span>
  856. <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
  857. <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
  858. <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
  859. <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
  860. <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
  861. <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
  862. </td>
  863. <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
  864. <span>{{advice.delivery_way}}</span>
  865. <span>{{advice.execution_frequency}}</span>
  866. <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
  867. </td> -->
  868. <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
  869. <td height="32px">
  870. <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{ getAdminUser(advice.advice_doctor) }}</span>
  871. <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else />
  872. </td>
  873. <!-- <td height="35px">
  874. <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
  875. <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
  876. </td> -->
  877. <td height="32px">
  878. <span v-if="setAdminUserES(advice.execution_staff) == ''">{{ getAdminUser(advice.execution_staff) }}</span>
  879. <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else />
  880. </td>
  881. <td height="32px">
  882. <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
  883. </td>
  884. </tr>
  885. </template>
  886. <tr>
  887. <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
  888. 透析后情况
  889. </td>
  890. </tr>
  891. <tr>
  892. <td colspan="7">
  893. <div class="row" style="padding: 2px 0;line-height:23px; display:flex;">
  894. <div class="inline_block" style="flex:1;">
  895. T:
  896. <div class="under_line" style="width: 50px;text-align: center">
  897. {{ afterdialysis.temperature ? afterdialysis.temperature : "/" }}
  898. </div>
  899. °C
  900. </div>
  901. <div class="inline_block" style="margin-left:10px;flex:1;">
  902. P:
  903. <div class="under_line" style="width: 50px;text-align: center;">
  904. {{ afterdialysis.pulse_frequency ? afterdialysis.pulse_frequency : "/" }}
  905. </div>
  906. 次/分
  907. </div>
  908. <div class="inline_block" style="margin-left:10px;flex:1;">
  909. R:
  910. <div class="under_line" style="width: 50px;text-align: center;">
  911. {{ afterdialysis.breathing_rate ? afterdialysis.breathing_rate : "/" }}
  912. </div>
  913. 次/分
  914. </div>
  915. <div class="inline_block" style="margin-left:10px;flex:1.5;">
  916. BP:
  917. <div class="under_line" style="width: 50px;text-align: center;">
  918. {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "/" }}
  919. </div>
  920. /
  921. <div class="under_line" style="width: 50px;text-align: center;">
  922. {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "/" }}
  923. </div>
  924. mmHg
  925. </div>
  926. <div class="inline_block" style="flex:1.5;">
  927. 实际治疗时间:
  928. <div class="under_line" style="width: 30px;text-align: center">
  929. {{ afterdialysis.actual_treatment_hour ? afterdialysis.actual_treatment_hour : "/" }}
  930. </div>
  931. h
  932. <div class="under_line" style="width: 30px;text-align: center">
  933. {{ afterdialysis.actual_treatment_minute ? afterdialysis.actual_treatment_minute : 0 }}
  934. </div>
  935. min
  936. </div>
  937. </div>
  938. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  939. <div class="inline_block" style="flex:2.5;">
  940. 透析器凝血:
  941. <div class="under_line" style="width:170px;text-align:center;white-space: normal;">
  942. {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
  943. </div>
  944. </div>
  945. <div class="inline_block" style="flex:2;">
  946. 内瘘:
  947. <div class="under_line" style="width: 170px;text-align: center;white-space: normal;">
  948. {{ afterdialysis.internal_fistula ? afterdialysis.internal_fistula : "/" }}
  949. </div>
  950. </div>
  951. <div class="inline_block" style="flex:4;">
  952. 导管:
  953. <div class="under_line" style="min-width: 120px;text-align: center">
  954. {{ afterdialysis.catheter ? afterdialysis.catheter : "/" }}
  955. </div>
  956. </div>
  957. </div>
  958. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  959. <div class="inline_block" style="flex:1;">
  960. 透后体重:
  961. <div class="under_line" style="width: 70px;text-align: center">
  962. {{ afterdialysis.weight_after ? parseFloat(afterdialysis.weight_after - afterdialysis.additional_weight).toFixed(1) : "/" }}
  963. </div>
  964. kg
  965. </div>
  966. <div class="inline_block" style="flex:1;">
  967. 体重减少:
  968. <div class="under_line" style="width: 70px;text-align: center">
  969. {{ afterdialysis.weight_loss ? afterdialysis.weight_loss : "/" }}
  970. </div>
  971. kg
  972. </div>
  973. <div class="inline_block" style="flex:1;" v-if="org_id != 10223">
  974. 透析中入量:
  975. <div class="under_line" style="width: 70px;text-align: center">
  976. {{ afterdialysis.dialysis_intakes ? afterdialysis.dialysis_intakes : "/" }}
  977. </div>
  978. {{ getUnit(afterdialysis.dialysis_intakes_unit) }}
  979. </div>
  980. <div class="inline_block" style="flex:1;">
  981. 实际超滤量:
  982. <div class="under_line" style="width: 70px;text-align: center">
  983. {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
  984. </div>
  985. ml
  986. </div>
  987. </div>
  988. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id == 10223">
  989. <div class="inline_block" style="flex:1;">
  990. 动脉管道:
  991. <div class="under_line" style="width: 100px;text-align: center">
  992. <span v-if="afterdialysis.arterial_tube == 0">/</span>
  993. <span v-if="afterdialysis.arterial_tube == 1">动脉管道0</span>
  994. <span v-if="afterdialysis.arterial_tube == 2">动脉管道+</span>
  995. <span v-if="afterdialysis.arterial_tube == 3">动脉管道++</span>
  996. <span v-if="afterdialysis.arterial_tube == 4">动脉管道+++</span>
  997. </div>
  998. </div>
  999. <div class="inline_block" style="flex:1;">
  1000. 静脉管道:
  1001. <div class="under_line" style="width: 100px;text-align: center">
  1002. <span v-if="afterdialysis.intravenous_tube == 0">/</span>
  1003. <span v-if="afterdialysis.intravenous_tube == 1">静脉管道0</span>
  1004. <span v-if="afterdialysis.intravenous_tube == 2">静脉管道+</span>
  1005. <span v-if="afterdialysis.intravenous_tube == 3">静脉管道++</span>
  1006. <span v-if="afterdialysis.intravenous_tube == 4">静脉管道+++</span>
  1007. </div>
  1008. </div>
  1009. <div class="inline_block" style="flex:1;">
  1010. 并发症:
  1011. <div class="under_line" style="width: 170px;text-align: center">
  1012. {{ afterdialysis.complication ? afterdialysis.complication : "/" }}
  1013. </div>
  1014. </div>
  1015. </div>
  1016. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id == 10223">
  1017. <div class="inline_block" style="flex:1;">
  1018. 穿刺处血肿:
  1019. <div class="under_line" style="width: 50px;text-align: center">
  1020. <span v-if="afterdialysis.puncture_point_haematoma == 0">/</span>
  1021. <span v-if="afterdialysis.puncture_point_haematoma == 1">有</span>
  1022. <span v-if="afterdialysis.puncture_point_haematoma == 2">无</span>
  1023. </div>
  1024. </div>
  1025. <div class="inline_block" style="flex:1;">
  1026. 中心静脉封管(肝素-A端):
  1027. <div class="under_line" style="width: 70px;text-align: center">
  1028. {{ afterdialysis.cvc_a ? afterdialysis.cvc_a : "/" }}
  1029. </div>
  1030. </div>
  1031. <div class="inline_block" style="flex:1;">
  1032. 中心静脉封管(肝素-V端):
  1033. <div class="under_line" style="width: 70px;text-align: center">
  1034. {{ afterdialysis.cvc_v ? afterdialysis.cvc_v : "/" }}
  1035. </div>
  1036. </div>
  1037. </div>
  1038. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  1039. <div class="inline_block" style="flex:1; display:inline-block;">
  1040. 治疗小结:
  1041. <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
  1042. {{ summary.dialysis_summary ? summary.dialysis_summary : "/" }}
  1043. </div>
  1044. </div>
  1045. </div>
  1046. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" v-if="org_id != 10223">
  1047. <div class="inline_block" style="flex:1; display:inline-block;">
  1048. 备注:
  1049. <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
  1050. {{ afterdialysis.remark ? afterdialysis.remark : "/" }}
  1051. </div>
  1052. </div>
  1053. </div>
  1054. </td>
  1055. </tr>
  1056. <tr>
  1057. <td colspan="7">
  1058. <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
  1059. <div class="inline_block" style="flex:1;">
  1060. 穿刺护士:
  1061. <div class="under_line" style="width: 80px;text-align: center">
  1062. <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) == ''">
  1063. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse) }}</span>
  1064. <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.puncture_nurse)" alt="" srcset="" v-else />
  1065. </div>
  1066. </div>
  1067. <div class="inline_block" style="flex:1;">
  1068. 治疗护士:
  1069. <div class="under_line" style="width: 80px;text-align: center">
  1070. <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
  1071. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) }}</span>
  1072. <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
  1073. </div>
  1074. </div>
  1075. <div class="inline_block" style="flex:1;">
  1076. 核对人员:
  1077. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder == null">
  1078. <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
  1079. {{ getAdminUser(check == null ? 0 : check.creater) }}
  1080. </span>
  1081. <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
  1082. </div>
  1083. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
  1084. <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
  1085. {{ getAdminUser(check == null ? 0 : check.creater) }}
  1086. </span>
  1087. <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
  1088. </div>
  1089. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
  1090. <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
  1091. {{ getAdminUser(check == null ? 0 : check.modifier) }}
  1092. </span>
  1093. <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" v-else />
  1094. </div>
  1095. <div class="under_line" style="width: 80px;text-align: center" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
  1096. <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
  1097. {{ getAdminUser(check == null ? 0 : check.creater) }}
  1098. </span>
  1099. <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
  1100. </div>
  1101. </div>
  1102. <div class="inline_block" style="flex:1;">
  1103. 下机护士:
  1104. <div class="under_line" style="width: 80px;text-align: center">
  1105. <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) == ''">
  1106. {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse) }}
  1107. </span>
  1108. <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.finish_nurse)" alt="" srcset="" v-else />
  1109. </div>
  1110. </div>
  1111. <div class="inline_block" style="flex:1;">
  1112. 治疗医生:
  1113. <div class="under_line" style="width: 80px;text-align: center">
  1114. <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
  1115. {{ getAdminUser(prescription.creater) }}
  1116. </span>
  1117. <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else />
  1118. </div>
  1119. </div>
  1120. </div>
  1121. </td>
  1122. </tr>
  1123. </tbody>
  1124. </table>
  1125. <!-- <div class="print-yema">1</div> -->
  1126. </div>
  1127. </div>
  1128. </div>
  1129. </div>
  1130. </template>
  1131. <script>
  1132. import CheckBox from '../batch_print/option_check_box'
  1133. import { getDialysisRecord } from '@/api/dialysis'
  1134. import { getDataConfig } from '@/utils/data'
  1135. import { jsGetAge, uParseTime } from '@/utils/tools'
  1136. import LabelBox from '../printItem/LabelBox'
  1137. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  1138. // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
  1139. // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
  1140. import print from 'print-js'
  1141. export default {
  1142. name: 'dialysisPrintOrderSix',
  1143. props: ['childResponse'],
  1144. components: {
  1145. // DialysisPrintOrderOne,
  1146. // DialysisPrintOrderTwo,
  1147. CheckBox,
  1148. LabelBox,
  1149. BreadCrumb
  1150. },
  1151. data() {
  1152. return {
  1153. way_arr: [],
  1154. consciousness_arr: [],
  1155. appetite_arr: [],
  1156. posture_arr: [],
  1157. sick_condition_arr: [],
  1158. precaution_arr: [],
  1159. intake_arr: [],
  1160. nutrition_arr: [],
  1161. crumbs: [
  1162. { path: false, name: '透析管理' },
  1163. { path: false, name: '打印单' }
  1164. ],
  1165. operators: [],
  1166. adminUser: [],
  1167. check: {},
  1168. xtdate: '',
  1169. dialysisOrder: {
  1170. DeviceNumber: []
  1171. },
  1172. displaceLiquiPartOptions: [],
  1173. operatorMaps: {},
  1174. complications: [
  1175. '低血压',
  1176. '高血压',
  1177. '心律失常',
  1178. '头晕',
  1179. '头痛',
  1180. '呕吐',
  1181. '抽搐',
  1182. '出血',
  1183. '心衰',
  1184. '腹痛'
  1185. ],
  1186. jilurow: 0,
  1187. advice_jilurow: 0,
  1188. loading: false,
  1189. orgname: '',
  1190. patientInfo_gender_1: false,
  1191. patientInfo_gender_2: false,
  1192. patientInfo_source_2: false,
  1193. patientInfo_source_1: false,
  1194. modeOptions: {},
  1195. replacementWays: [],
  1196. perfusionApparatus: [],
  1197. anticoagulantsConfit: {},
  1198. bloodAccessParOpera: {},
  1199. dialysateFormulationOptions: {},
  1200. totollength: 0,
  1201. queryParams: {
  1202. xtdate: '',
  1203. xtno: ''
  1204. },
  1205. patientInfo: {
  1206. birth: '',
  1207. age: '',
  1208. DialysisSchedule: {
  1209. device_number: { number: '' },
  1210. device_zone: { name: '' }
  1211. },
  1212. gender: 0
  1213. },
  1214. predialysis: {
  1215. score: '',
  1216. internal_fistula: '',
  1217. internal_fistula_skin: '',
  1218. catheter: '',
  1219. blood_access_part_opera_name: ''
  1220. },
  1221. afterdialysis: {
  1222. complications_index: ''
  1223. },
  1224. lastafterdialysis: {},
  1225. prescription: {
  1226. dialysate_formulation_name: '',
  1227. device: {}
  1228. },
  1229. advices: [],
  1230. users: [],
  1231. monitors: [],
  1232. monitors2: [],
  1233. summary: {},
  1234. receiverTreatmentAccess: {},
  1235. org_template_info: {},
  1236. doctor_advices: [],
  1237. doctor_advices_2: [],
  1238. advice_groups: [],
  1239. advice_groups_2: [],
  1240. print_length: 0,
  1241. blood_access_part: [],
  1242. blood_access_part_opera: [],
  1243. AlPanel: {
  1244. id: 0,
  1245. name: '',
  1246. type: 1,
  1247. shouji: 2,
  1248. weichi: 2,
  1249. zongliang: 2,
  1250. gaimingcheng: -1,
  1251. gaijiliang: -1,
  1252. shouji_unit: 'mg',
  1253. weichi_unit: 'mg/h',
  1254. zongliang_unit: 'mg',
  1255. gaimingcheng_unit: '',
  1256. gaijiliang_unit: ''
  1257. },
  1258. org_id: 0
  1259. }
  1260. },
  1261. methods: {
  1262. checkData() {
  1263. if (this.receiverTreatmentAccess.way == 0) {
  1264. this.$message.error('入科方式未填')
  1265. } else if (this.predialysis.symptom_before_dialysis == '') {
  1266. this.$message.error('透前症状未填')
  1267. } else if (this.predialysis.temperature == '') {
  1268. this.$message.error('透前体温未填')
  1269. } else if (this.predialysis.pulse_frequency == '') {
  1270. this.$message.error('透前脉搏未填')
  1271. } else if (this.predialysis.breathing_rate == '') {
  1272. this.$message.error('透前呼吸频率未填')
  1273. } else if (this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) {
  1274. this.$message.error('透前血压未填完整')
  1275. } else if (this.predialysis.puncture_way == '') {
  1276. this.$message.error('穿刺方式未填')
  1277. } else if (this.predialysis.puncture_needle == '') {
  1278. this.$message.error('穿刺针未填')
  1279. } else if (this.predialysis.blood_access_part_id == '' && this.predialysis.blood_access_part_opera_name == '') {
  1280. this.$message.error('血管通路未填')
  1281. } else if (this.predialysis.internal_fistula == '') {
  1282. this.$message.error('透前内瘘未填')
  1283. } else if (this.predialysis.catheter == '') {
  1284. this.$message.error('透前导管未填')
  1285. } else if (this.prescription.mode_id == '') {
  1286. this.$message.error('透析方式未填')
  1287. } else if (this.prescription.displace_liqui_part == 0 && this.prescription.mode_id == 2) {
  1288. this.$message.error('置换方式未填')
  1289. } else if (this.prescription.displace_liqui_value == 0 && this.prescription.mode_id == 2) {
  1290. this.$message.error('置换量未填')
  1291. } else if (this.prescription.blood_flow_volume == 0) {
  1292. this.$message.error('血流量未填')
  1293. } else if (this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0) {
  1294. this.$message.error('透析时间未填')
  1295. } else if (this.prescription.dialyzer_perfusion_apparatus == '' && this.prescription.dialysis_dialyszers == '') {
  1296. this.$message.error('透析器未填')
  1297. } else if (this.prescription.dialysis_irrigation == '') {
  1298. this.$message.error('灌流器未填')
  1299. } else if (this.prescription.plasma_separator == '' && this.org_id == 9538) {
  1300. this.$message.error('血浆分离器未填')
  1301. } else if (this.prescription.bilirubin_adsorption_column == '' && this.org_id == 9538) {
  1302. this.$message.error('胆红素吸附柱未填')
  1303. } else if (this.predialysis.weight_before == 0) {
  1304. this.$message.error('透前体重未填')
  1305. } else if (this.predialysis.dry_weight == 0) {
  1306. this.$message.error('干体重未填')
  1307. } else if (this.prescription.target_ultrafiltration == 0) {
  1308. this.$message.error('计划超滤量未填')
  1309. } else if (this.prescription.calcium == 0) {
  1310. this.$message.error('钙未填')
  1311. } else if (this.prescription.sodium == 0) {
  1312. this.$message.error('钠未填')
  1313. } else if (this.prescription.kalium == 0) {
  1314. this.$message.error('钾未填')
  1315. } else if (this.prescription.bicarbonate == 0) {
  1316. this.$message.error('碳酸氢根未填')
  1317. } else if (this.prescription.dialysate_flow == 0) {
  1318. this.$message.error('透析液流量未填')
  1319. } else if (this.prescription.anticoagulant == 0) {
  1320. this.$message.error('抗凝剂未填')
  1321. } else if (this.prescription.anticoagulant_gaimingcheng == '' && this.prescription.anticoagulant == 5) {
  1322. this.$message.error('钙名称未填')
  1323. } else if (this.prescription.anticoagulant_gaijiliang == '' && this.prescription.anticoagulant == 5) {
  1324. this.$message.error('钙剂量未填')
  1325. } else if (this.afterdialysis.temperature == 0) {
  1326. this.$message.error('透后体温未填')
  1327. } else if (this.afterdialysis.pulse_frequency == 0) {
  1328. this.$message.error('透后脉搏未填')
  1329. } else if (this.afterdialysis.breathing_rate == 0) {
  1330. this.$message.error('透后呼吸频率未填')
  1331. } else if (this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0) {
  1332. this.$message.error('透后血压未填完整')
  1333. } else if (this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0) {
  1334. this.$message.error('实际治疗时间未填')
  1335. } else if (this.afterdialysis.cruor == '') {
  1336. this.$message.error('透析器凝血未填')
  1337. } else if (this.afterdialysis.internal_fistula == '') {
  1338. this.$message.error('透后内瘘未填')
  1339. } else if (this.afterdialysis.catheter == '') {
  1340. this.$message.error('透后导管未填')
  1341. } else if (this.afterdialysis.weight_after == 0) {
  1342. this.$message.error('透后体重未填')
  1343. } else if (this.afterdialysis.weight_loss == 0) {
  1344. this.$message.error('透后体重减少未填')
  1345. } else if (this.afterdialysis.dialysis_intakes == 0) {
  1346. this.$message.error('透析中入量未填')
  1347. } else if (this.afterdialysis.actual_ultrafiltration == 0) {
  1348. this.$message.error('实际超滤量未填')
  1349. } else if (this.summary.dialysis_summary == '') {
  1350. this.$message.error('透析小结未填')
  1351. } else if (this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0) {
  1352. this.$message.error('穿刺护士未填')
  1353. } else if (this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0) {
  1354. this.$message.error('治疗护士未填')
  1355. } else if (this.dialysisOrder == null && this.check.creater == 0) {
  1356. this.$message.error('核对人员未填')
  1357. } else if (this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0) {
  1358. this.$message.error('核对人员未填')
  1359. } else if (this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0) {
  1360. this.$message.error('核对人员未填')
  1361. } else if (this.dialysisOrder != null && this.dialysisOrder.start_nurse != this.check.creater && this.dialysisOrder.start_nurse != this.check.modifier && this.check.creater == 0) {
  1362. this.$message.error('核对人员未填')
  1363. } else if (this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0) {
  1364. this.$message.error('下机护士未填')
  1365. } else if (this.prescription.creater == 0) {
  1366. this.$message.error('医生签名未填')
  1367. }else if(this.tableAdvice.length > 0){
  1368. let num = 0
  1369. this.tableAdvice.map(item => {
  1370. if(item.id > 0 && (item.created_time || item.start_time)){
  1371. this.users.map(it => {
  1372. if(it.id == item.advice_doctor){
  1373. if(it.user_type == 3){
  1374. num++
  1375. this.$message.closeAll()
  1376. this.$message.error('存在不是医生保存的医嘱')
  1377. }else if(it.id == item.execution_staff && item.execution_staff > 0){
  1378. if(it.user_type == 2){
  1379. num++
  1380. this.$message.closeAll()
  1381. this.$message.error('存在不是护士执行的医嘱')
  1382. }
  1383. }else if(it.id == item.checker && item.checker > 0){
  1384. if(it.user_type == 2){
  1385. num++
  1386. this.$message.closeAll()
  1387. this.$message.error('存在不是护士核对的医嘱')
  1388. }
  1389. }
  1390. }else if(it.id == item.execution_staff && item.execution_staff > 0){
  1391. if(it.user_type == 2){
  1392. num++
  1393. this.$message.closeAll()
  1394. this.$message.error('存在不是护士执行的医嘱')
  1395. }
  1396. }else if(it.id == item.checker && item.checker > 0){
  1397. if(it.user_type == 2){
  1398. num++
  1399. this.$message.closeAll()
  1400. this.$message.error('存在不是护士核对的医嘱')
  1401. }
  1402. }
  1403. })
  1404. }
  1405. })
  1406. if(num == 0){
  1407. this.$message.success('核对完成')
  1408. }
  1409. }else{
  1410. this.$message.success('核对完成')
  1411. }
  1412. },
  1413. getDisplaceLiquiPart: function(val) {
  1414. let displace_liqui_part_name = '/'
  1415. const displace_liqui_part = this.displaceLiquiPartOptions
  1416. for (let i = 0; i < displace_liqui_part.length; i++) {
  1417. if (displace_liqui_part[i].id == val) {
  1418. displace_liqui_part_name = displace_liqui_part[i].name
  1419. }
  1420. }
  1421. return displace_liqui_part_name
  1422. },
  1423. replacementWaysById: function(val) {
  1424. let replacementWaysname = '/'
  1425. // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  1426. for (let i = 0; i < this.replacementWays.length; i++) {
  1427. if (this.replacementWays[i].id == val) {
  1428. replacementWaysname = this.replacementWays[i].name
  1429. }
  1430. }
  1431. return replacementWaysname
  1432. },
  1433. QueryPartById: function(val) {
  1434. let vascular_access_part_name = '/'
  1435. const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
  1436. for (let i = 0; i < vascular_access.length; i++) {
  1437. if (vascular_access[i].id == val) {
  1438. vascular_access_part_name = vascular_access[i].name
  1439. }
  1440. }
  1441. return vascular_access_part_name
  1442. },
  1443. getAdminUser(id) {
  1444. if (id == 0) {
  1445. return ''
  1446. }
  1447. if (id == undefined) {
  1448. return ''
  1449. }
  1450. for (let i = 0; i < this.adminUser.length; i++) {
  1451. if (this.adminUser[i].id == id) {
  1452. return this.adminUser[i].name
  1453. }
  1454. }
  1455. },
  1456. getTime(value, temp) {
  1457. if (value == 0) {
  1458. return ''
  1459. }
  1460. if (value != undefined) {
  1461. return uParseTime(value, temp)
  1462. }
  1463. return ''
  1464. },
  1465. getUnit: function(val) {
  1466. switch (val) {
  1467. case 1:
  1468. return 'g'
  1469. break
  1470. case 2:
  1471. return 'ml'
  1472. break
  1473. }
  1474. },
  1475. printThisPage() {
  1476. var ptime = Math.round(new Date().getTime() / 1000)
  1477. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  1478. const style =
  1479. '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;} .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;} .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
  1480. if (this.org_template_info.template_id == 1) {
  1481. printJS({
  1482. printable: 'dialysis-print-box',
  1483. type: 'html',
  1484. style: style,
  1485. scanStyles: false
  1486. })
  1487. } else if (
  1488. this.org_template_info.template_id == 2 ||
  1489. this.org_template_info.template_id == 0
  1490. ) {
  1491. printJS({
  1492. printable: 'dialysis-print-box-1',
  1493. type: 'html',
  1494. style: style,
  1495. scanStyles: false
  1496. })
  1497. }
  1498. },
  1499. getNumber() {
  1500. if (this.dialysisOrder != null) {
  1501. return (
  1502. this.patientInfo.DialysisSchedule.device_zone.name +
  1503. this.dialysisOrder.DeviceNumber.number
  1504. )
  1505. } else {
  1506. return (
  1507. this.patientInfo.DialysisSchedule.device_zone.name +
  1508. this.patientInfo.DialysisSchedule.device_number.number
  1509. )
  1510. }
  1511. },
  1512. getXuserName(id) {
  1513. if (id <= 0) {
  1514. return ''
  1515. }
  1516. var name = ''
  1517. if (this.users == null || typeof this.users.length === 'undefined') {
  1518. return name
  1519. }
  1520. var leng = this.users.length
  1521. if (leng == 0) {
  1522. return name
  1523. }
  1524. for (let index = 0; index < leng; index++) {
  1525. if (this.users[index].id == id) {
  1526. name = this.users[index].name
  1527. break
  1528. }
  1529. }
  1530. return name
  1531. },
  1532. setAdminUserES(id) {
  1533. if (id == 0) {
  1534. return ''
  1535. }
  1536. if (id in this.operatorMaps) {
  1537. return this.operatorMaps[id].url
  1538. } else {
  1539. return ''
  1540. }
  1541. },
  1542. modeName(mode_id) {
  1543. return typeof this.modeOptions[mode_id] !== 'undefined' &&
  1544. typeof this.modeOptions[mode_id].name !== 'undefined'
  1545. ? this.modeOptions[mode_id].name
  1546. : ''
  1547. },
  1548. getDialysisRecord() {
  1549. this.loading = true
  1550. // getDialysisRecord(this.queryParams).then(response => {
  1551. var response = this.childResponse
  1552. if (response.data.state == 1) {
  1553. this.adminUser = response.data.data.users
  1554. this.users = response.data.data.users
  1555. this.patientInfo = response.data.data.patientInfo
  1556. this.patientInfo.birth = uParseTime(
  1557. this.patientInfo.birthday,
  1558. '{y}-{m}-{d}'
  1559. )
  1560. // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
  1561. if (response.data.data.patientInfo.first_dialysis_date != 0) {
  1562. this.patientInfo.first_dialysis_date = uParseTime(
  1563. response.data.data.patientInfo.first_dialysis_date,
  1564. '{y}-{m}-{d}'
  1565. )
  1566. } else {
  1567. this.patientInfo.first_dialysis_date = ''
  1568. }
  1569. this.check = response.data.data.check
  1570. this.xtdate = response.data.data.xtdate
  1571. this.predialysis = response.data.data.PredialysisEvaluation
  1572. // console.log('透前评估', this.predialysis)
  1573. this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1574. this.predialysis.blood_access_part_opera_id
  1575. )
  1576. this.afterdialysis = response.data.data.AssessmentAfterDislysis
  1577. // console.log('透后体重', this.afterdialysis)
  1578. this.lastafterdialysis = response.data.data.assessmentAfterDislysis
  1579. console.log("上次透后体重",this.lastafterdialysis.weight_after)
  1580. this.operators = response.data.data.operators
  1581. console.log('operators', this.operators)
  1582. this.dialysisOrder =
  1583. response.data.data.dialysisOrder === null
  1584. ? null
  1585. : response.data.data.dialysisOrder
  1586. console.log("上机233232323232",this.dialysisOrder)
  1587. if (this.operators.length > 0) {
  1588. var operatorsLen = this.operators.length
  1589. for (var index = 0; index < operatorsLen; index++) {
  1590. this.$set(
  1591. this.operatorMaps,
  1592. this.operators[index].creator,
  1593. this.operators[index]
  1594. )
  1595. }
  1596. }
  1597. this.afterdialysis.txqnx = -1
  1598. if (this.afterdialysis.cruor.indexOf('0度') > -1) {
  1599. this.afterdialysis.txqnx = 0
  1600. }
  1601. if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
  1602. this.afterdialysis.txqnx = 1
  1603. }
  1604. if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
  1605. this.afterdialysis.txqnx = 2
  1606. }
  1607. if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
  1608. this.afterdialysis.txqnx = 3
  1609. }
  1610. this.afterdialysis.complications = this.afterdialysis.complication.split(
  1611. ','
  1612. )
  1613. this.afterdialysis.complications_other = []
  1614. this.afterdialysis.complications_index = []
  1615. var acllen = this.afterdialysis.complications.length
  1616. for (let index = 0; index < acllen; index++) {
  1617. if (
  1618. this.complications.indexOf(
  1619. this.afterdialysis.complications[index]
  1620. ) >= 0
  1621. ) {
  1622. this.afterdialysis.complications_index.push(
  1623. this.afterdialysis.complications[index]
  1624. )
  1625. } else if (
  1626. this.complications.indexOf(
  1627. this.afterdialysis.complications[index]
  1628. ) < 0 &&
  1629. this.afterdialysis.complications_other.indexOf(
  1630. this.afterdialysis.complications[index]
  1631. ) < 0
  1632. ) {
  1633. this.afterdialysis.complications_other.push(
  1634. this.afterdialysis.complications[index]
  1635. )
  1636. }
  1637. }
  1638. this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
  1639. ','
  1640. )
  1641. this.prescription = response.data.data.dialysisPrescription
  1642. console.log('透析处方', this.prescription)
  1643. this.receiverTreatmentAccess =
  1644. response.data.data.receiverTreatmentAccess
  1645. this.prescription.mode = this.modeName(this.prescription.mode_id)
  1646. var rwLen = this.replacementWays.length
  1647. this.prescription.replacement = ''
  1648. for (let index = 0; index < rwLen; index++) {
  1649. if (
  1650. this.replacementWays[index].id == this.prescription.replacement_way
  1651. ) {
  1652. this.prescription.replacement = this.replacementWays[index].name
  1653. break
  1654. }
  1655. }
  1656. this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
  1657. this.prescription.dialysate_formulation
  1658. )
  1659. var paLen = this.perfusionApparatus.length
  1660. this.prescription.perfusion_apparatus_name = ''
  1661. for (let index = 0; index < paLen; index++) {
  1662. if (
  1663. this.perfusionApparatus[index].id ==
  1664. this.prescription.perfusion_apparatus
  1665. ) {
  1666. this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
  1667. index
  1668. ].name
  1669. break
  1670. }
  1671. }
  1672. var acLen = this.anticoagulantsConfit.length
  1673. var thisALID = this.prescription.anticoagulant
  1674. this.prescription.anticoagulant_name = ''
  1675. if (
  1676. typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
  1677. this.anticoagulantsConfit[thisALID] != null
  1678. ) {
  1679. this.prescription.anticoagulant_name = this.anticoagulantsConfit[
  1680. thisALID
  1681. ].name
  1682. this.AlPanel = this.anticoagulantsConfit[thisALID]
  1683. }
  1684. this.advices = response.data.data.advices
  1685. this.tableAdvice = response.data.data.advices;
  1686. console.log('医嘱数据2222222222', this.advices)
  1687. this.monitors = response.data.data.monitors
  1688. this.summary = response.data.data.summary
  1689. this.org_template_info = response.data.data.org_template_info
  1690. if (this.monitors.length <= 6) {
  1691. var nl = 6
  1692. this.print_length = 6
  1693. for (let index = 0; index < nl; index++) {
  1694. if (
  1695. this.monitors[index] == undefined ||
  1696. this.monitors[index].length <= 0
  1697. ) {
  1698. this.monitors2.push([])
  1699. } else {
  1700. continue
  1701. }
  1702. }
  1703. }
  1704. var tempmonitorflag = true
  1705. for (let index = 0; index < this.monitors.length; index++) {
  1706. const monitor = this.monitors[index]
  1707. this.monitors[index].end = ''
  1708. if (Object.keys(monitor).length > 0 && index > 1) {
  1709. if (this.dialysisOrder && monitor.operate_time == this.dialysisOrder.end_time) {
  1710. this.monitors[index].end = '【结束透析】'
  1711. tempmonitorflag = false
  1712. }
  1713. if (tempmonitorflag && index == this.monitors.length - 1) {
  1714. this.monitors[index].end = '【结束透析】'
  1715. }
  1716. }
  1717. }
  1718. this.jilurow = this.monitors.length + 1
  1719. this.advice_jilurow = this.advices.length + 1
  1720. var childMap = {}
  1721. for (const index in this.advices) {
  1722. if (this.advices[index].parent_id == 0) {
  1723. continue
  1724. }
  1725. if (!(this.advices[index].parent_id in childMap)) {
  1726. childMap[this.advices[index].parent_id] = []
  1727. }
  1728. childMap[this.advices[index].parent_id].push(this.advices[index])
  1729. }
  1730. var advices = []
  1731. for (const index in this.advices) {
  1732. if (this.advices[index].parent_id > 0) {
  1733. continue
  1734. }
  1735. var item = this.advices[index]
  1736. if (item.id in childMap) {
  1737. item.children = childMap[item.id]
  1738. } else {
  1739. item.children = []
  1740. }
  1741. advices.push(item)
  1742. }
  1743. var leftAdvice = []
  1744. var rightAdvice = []
  1745. var adlen = advices.length
  1746. var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
  1747. for (var i = 0; i < halfLen; i++) {
  1748. leftAdvice.push(advices[i])
  1749. rightAdvice.push(advices[i + halfLen])
  1750. }
  1751. if (halfLen < 5) {
  1752. var nl = 5 - leftAdvice.length
  1753. for (let index = 0; index < nl; index++) {
  1754. leftAdvice.push([])
  1755. }
  1756. var nl = 5 - rightAdvice.length
  1757. for (let index = 0; index < nl; index++) {
  1758. rightAdvice.push([])
  1759. }
  1760. }
  1761. this.advices = []
  1762. for (var i = 0; i < halfLen; i++) {
  1763. var item = []
  1764. item.push(leftAdvice[i])
  1765. item.push(rightAdvice[i])
  1766. this.advices.push(item)
  1767. }
  1768. this.loading = false
  1769. this.doctor_advices =
  1770. response.data.data.advices == null ? [] : response.data.data.advices
  1771. for (let index = 0; index < this.doctor_advices.length; index++) {
  1772. this.doctor_advices[index]['isShow'] = 2
  1773. }
  1774. // if (this.doctor_advices.length > 0) {
  1775. // var group = this.newAdviceGroupObject()
  1776. // var initGroupBlock = function(group, advice) {
  1777. // group.group_no = advice.groupno
  1778. // }
  1779. // for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
  1780. // var new_advice_index = 0
  1781. // if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
  1782. // new_advice_index = index + this.doctor_advices[index].children.length + 1
  1783. // var doctor_advice = {
  1784. // delivery_way: this.doctor_advices[index].delivery_way,
  1785. // execution_frequency: this.doctor_advices[index].execution_frequency,
  1786. // groupno: this.doctor_advices[index].groupno,
  1787. // id: this.doctor_advices[index].id,
  1788. // parent_id: this.doctor_advices[index].parent_id,
  1789. // children: this.doctor_advices[index].children,
  1790. // remark: this.doctor_advices[index].remark,
  1791. // execution_staff: this.doctor_advices[index].execution_staff,
  1792. // checker: this.doctor_advices[index].checker,
  1793. // execution_time: this.doctor_advices[index].execution_time,
  1794. // advice_doctor: this.doctor_advices[index].advice_doctor
  1795. // }
  1796. // doctor_advice['isShow'] = 1
  1797. // this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
  1798. // // this.doctor_advices.push(doctor_advice)
  1799. // }
  1800. // }
  1801. // for (let index = 0; index < this.doctor_advices.length; index++) {
  1802. // const advice = this.doctor_advices[index]
  1803. // if (advice.groupno == 0) {
  1804. // // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
  1805. // if (advice.parent_id > 0) {
  1806. // if (this.advice_groups.length > 0) {
  1807. // var parent_group = this.advice_groups[
  1808. // this.advice_groups.length - 1
  1809. // ]
  1810. // if (parent_group.advices.length > 0) {
  1811. // if (parent_group.advices[0].id == advice.parent_id) {
  1812. // parent_group.advices.push(advice)
  1813. // }
  1814. // }
  1815. // }
  1816. // continue
  1817. // } else {
  1818. // if (group.group_no > 0) {
  1819. // this.advice_groups.push(group)
  1820. // group = this.newAdviceGroupObject()
  1821. // }
  1822. // initGroupBlock(group, advice)
  1823. // group.advices.push(advice)
  1824. // this.advice_groups.push(group)
  1825. // group = this.newAdviceGroupObject()
  1826. // continue
  1827. // }
  1828. // }
  1829. // if (group.group_no > 0 && group.group_no != advice.groupno) {
  1830. // this.advice_groups.push(group)
  1831. // group = this.newAdviceGroupObject()
  1832. // }
  1833. // if (group.group_no == 0) {
  1834. // initGroupBlock(group, advice)
  1835. // }
  1836. // if (group.group_no == advice.groupno) {
  1837. // group.advices.push(advice)
  1838. // }
  1839. // }
  1840. // if (group.group_no > 0) {
  1841. // // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
  1842. // this.advice_groups.push(group)
  1843. // }
  1844. // }
  1845. if (this.doctor_advices.length <= 6) {
  1846. var nl = 6
  1847. this.print_length = 6
  1848. for (let index = 0; index < nl; index++) {
  1849. if (
  1850. this.doctor_advices[index] == undefined ||
  1851. this.doctor_advices[index].length <= 0
  1852. ) {
  1853. this.doctor_advices.push([])
  1854. } else {
  1855. continue
  1856. }
  1857. }
  1858. }
  1859. this.totollength = this.doctor_advices.length + this.monitors.length
  1860. if (this.totollength > 18) {
  1861. var temp_advice_length = 17 - this.monitors.length
  1862. var doctor_advices_1 = []
  1863. var doctor_advices_2 = []
  1864. for (let index = 0; index < this.doctor_advices.length; index++) {
  1865. const element = this.doctor_advices[index]
  1866. if (temp_advice_length > index) {
  1867. doctor_advices_1.push(element)
  1868. } else {
  1869. doctor_advices_2.push(element)
  1870. }
  1871. }
  1872. this.doctor_advices = doctor_advices_1
  1873. this.doctor_advices_2 = doctor_advices_2
  1874. }
  1875. console.log(this.advice_groups)
  1876. } else {
  1877. this.loading = false
  1878. this.$message.error('请求数据失败')
  1879. return false
  1880. }
  1881. // })
  1882. },
  1883. bloodAccessParOperaName(id) {
  1884. if (id in this.bloodAccessParOpera) {
  1885. return this.bloodAccessParOpera[id].name
  1886. }
  1887. return ''
  1888. },
  1889. dialysateFormulationName(id) {
  1890. if (id in this.dialysateFormulationOptions) {
  1891. return this.dialysateFormulationOptions[id].name
  1892. }
  1893. return ''
  1894. },
  1895. getAge: function(val) {
  1896. if (
  1897. this.org_template_info.template_id == 2 ||
  1898. this.org_template_info.template_id == 0
  1899. ) {
  1900. if (val.age == 0) {
  1901. return jsGetAge(val.birth, '-')
  1902. } else {
  1903. return val.age
  1904. }
  1905. } else {
  1906. return jsGetAge(val.birth, '-')
  1907. }
  1908. },
  1909. newAdviceGroupObject: function() {
  1910. return Object.assign(
  1911. {},
  1912. {
  1913. group_no: 0,
  1914. // advice_doctor: 0,
  1915. // start_time: 0,
  1916. advices: []
  1917. // exec_staff: 0,
  1918. // exec_time: 0,
  1919. // checker: 0,
  1920. }
  1921. )
  1922. },
  1923. getFloat: function(x) {
  1924. if (x == 0) {
  1925. return '/'
  1926. }
  1927. if (x != '.') {
  1928. var f = Math.round(x * 100) / 100
  1929. var s = f.toString()
  1930. var rs = s.indexOf('.')
  1931. if (rs <= 0) {
  1932. rs = s.length
  1933. s += '.'
  1934. }
  1935. while (s.length <= rs + 1) {
  1936. s += '0'
  1937. }
  1938. return s
  1939. } else {
  1940. return '0.0'
  1941. }
  1942. }
  1943. },
  1944. watch: {
  1945. 'patientInfo.gender': function() {
  1946. if (this.patientInfo.gender == 1) {
  1947. this.patientInfo_gender_1 = true
  1948. this.patientInfo_gender_2 = false
  1949. } else if (this.patientInfo.gender == 2) {
  1950. this.patientInfo_gender_2 = true
  1951. this.patientInfo_gender_1 = false
  1952. } else {
  1953. this.patientInfo_gender_2 = false
  1954. this.patientInfo_gender_1 = false
  1955. }
  1956. },
  1957. 'patientInfo.source': function() {
  1958. if (this.patientInfo.source == 1) {
  1959. this.patientInfo_source_1 = true
  1960. this.patientInfo_source_2 = false
  1961. } else if (this.patientInfo.source == 2) {
  1962. this.patientInfo_source_2 = true
  1963. this.patientInfo_source_1 = false
  1964. } else {
  1965. this.patientInfo_source_2 = false
  1966. this.patientInfo_source_1 = false
  1967. }
  1968. }
  1969. },
  1970. created() {
  1971. this.way_arr = getDataConfig('hemodialysis', 'way')
  1972. this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
  1973. this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
  1974. this.posture_arr = getDataConfig('hemodialysis', 'posture')
  1975. this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
  1976. this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
  1977. this.intake_arr = getDataConfig('hemodialysis', 'intake')
  1978. this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
  1979. var xtuser = this.$store.getters.xt_user
  1980. this.orgname = xtuser.org.org_name
  1981. // this.orgname = "遂溪方济医院";
  1982. this.modeOptions = this.$store.getters.treatment_mode
  1983. this.replacementWays = this.$store.getters.replacement_ways
  1984. this.perfusionApparatus = this.$store.getters.perfusion_apparatus
  1985. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1986. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
  1987. this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
  1988. this.blood_access_part_opera = getDataConfig(
  1989. 'hemodialysis',
  1990. 'vascular_access_desc'
  1991. )
  1992. this.org_id = this.$store.getters.xt_user.org.id
  1993. // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1994. var bloodAccessParOpera = getDataConfig(
  1995. 'hemodialysis',
  1996. 'vascular_access_desc'
  1997. )
  1998. for (var key in bloodAccessParOpera) {
  1999. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  2000. bloodAccessParOpera[key]
  2001. }
  2002. var dialysateFormulationOptions = getDataConfig(
  2003. 'hemodialysis',
  2004. 'dialysate_formulation'
  2005. )
  2006. for (var key in dialysateFormulationOptions) {
  2007. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  2008. dialysateFormulationOptions[key]
  2009. }
  2010. const xtdate = this.$route.query && this.$route.query.xtdate
  2011. console.log('xtdate', xtdate)
  2012. const xtno = this.$route.query && this.$route.query.xtno
  2013. console.log('xtno', xtno)
  2014. if (
  2015. typeof xtdate === 'string' &&
  2016. xtdate.length > 0 &&
  2017. typeof xtno === 'string' &&
  2018. xtno.length > 0
  2019. ) {
  2020. this.queryParams.xtdate = xtdate
  2021. this.queryParams.xtno = xtno
  2022. this.getDialysisRecord()
  2023. } else {
  2024. this.$message.error('参数不齐')
  2025. return false
  2026. }
  2027. }
  2028. }
  2029. </script>
  2030. <style>
  2031. .print_page_main_content {
  2032. background-color: white;
  2033. width: 960px;
  2034. margin: 0 auto 50px;
  2035. padding: 0 0 0 0;
  2036. page-break-after: always;
  2037. }
  2038. .print_page_main_content .order-yy-name {
  2039. margin: auto;
  2040. text-align: center;
  2041. font-size: 20px;
  2042. letter-spacing: 5px;
  2043. }
  2044. .dialysis-print-order .order-title {
  2045. margin: auto;
  2046. font-weight: 600;
  2047. text-align: center;
  2048. font-size: 22px;
  2049. padding: 10px;
  2050. }
  2051. .print_page_main_content .order_title {
  2052. text-align: center;
  2053. font-size: 23px;
  2054. line-height: 50px;
  2055. font-weight: 500;
  2056. }
  2057. .row {
  2058. font-size: 14px;
  2059. line-height: 20px;
  2060. padding: 5px 0;
  2061. }
  2062. .inline_block {
  2063. display: inline-block;
  2064. }
  2065. .under_line_two {
  2066. display: inline-block;
  2067. border-bottom: 1px solid #999;
  2068. text-align: left;
  2069. white-space: nowrap;
  2070. width: 50%;
  2071. }
  2072. .under_line_two::before {
  2073. content: "\00A0";
  2074. }
  2075. .under_line_two::after {
  2076. content: "\00A0";
  2077. }
  2078. .under_line {
  2079. display: inline-block;
  2080. border-bottom: 1px solid #999;
  2081. text-align: center;
  2082. white-space: nowrap;
  2083. width: 50%;
  2084. }
  2085. .under_line::before {
  2086. content: "\00A0";
  2087. }
  2088. .under_line::after {
  2089. content: "\00A0";
  2090. }
  2091. .flex {
  2092. display: -webkit-box;
  2093. display: -moz-box;
  2094. display: -ms-flexbox;
  2095. display: -webkit-flex;
  2096. display: flex;
  2097. align-items: center;
  2098. -webkit-align-items: center;
  2099. box-align: center;
  2100. -moz-box-align: center;
  2101. -webkit-box-align: center;
  2102. text-align: center;
  2103. -webkit-justify-content: space-between;
  2104. justify-content: space-between;
  2105. -moz-box-pack: space-between;
  2106. -webkit--moz-box-pack: space-between;
  2107. box-pack: space-between;
  2108. }
  2109. .print_page_main_content .proj_table {
  2110. width: 100%;
  2111. border: 1px solid;
  2112. border-collapse: collapse;
  2113. padding: 2px;
  2114. }
  2115. .print_page_main_content .proj_table tbody tr td {
  2116. border: 1px solid;
  2117. /* text-align: center; */
  2118. font-size: 16px;
  2119. padding: 5px 8px;
  2120. line-height: 30px;
  2121. }
  2122. .print_page_main_content .proj_table .inside_table {
  2123. width: 100%;
  2124. border: hidden; /* 解决边框冲突 */
  2125. border-collapse: collapse;
  2126. }
  2127. .print_page_main_content .proj_table .inside_table tr td {
  2128. border: 1px solid;
  2129. text-align: center;
  2130. font-size: 14px;
  2131. padding: 6px 5px;
  2132. line-height: 16px;
  2133. }
  2134. .print-table-no {
  2135. width: 100%;
  2136. text-align: center;
  2137. border-collapse: collapse;
  2138. font-size: 14px;
  2139. }
  2140. .es-img {
  2141. height: 20px;
  2142. }
  2143. .advice-name {
  2144. text-align: left !important;
  2145. line-height: 16px !important;
  2146. }
  2147. .advice-children {
  2148. display: flex;
  2149. }
  2150. .margin-bottom-50 {
  2151. }
  2152. .margin-bottom-300 {
  2153. margin-bottom: 450px;
  2154. }
  2155. .margin-bottom-600 {
  2156. margin-bottom: 600px;
  2157. }
  2158. .margin-bottom-900 {
  2159. margin-bottom: 900px;
  2160. }
  2161. .print-yema {
  2162. position: absolute;
  2163. left: 50%;
  2164. }
  2165. .print-yema2 {
  2166. position: absolute;
  2167. left: 50%;
  2168. }
  2169. .print-yema3 {
  2170. position: absolute;
  2171. left: 50%;
  2172. }
  2173. .print-yema4 {
  2174. position: absolute;
  2175. left: 50%;
  2176. }
  2177. .check_box_panel .did_checke::after {
  2178. font-size: 8px;
  2179. margin-left: 2px;
  2180. margin-top: 2px;
  2181. position: absolute;
  2182. }
  2183. </style>