DialysisPrintOrderFourteen.vue 86KB

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