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

DialysisPrintOrderTwentyFive.vue 90KB

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