batch_print_order_seventythree.vue 108KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <el-button
  6. :loading="loading"
  7. size="small"
  8. icon="el-icon-printer"
  9. @click="printAction"
  10. type="primary"
  11. >打印
  12. </el-button>
  13. </div>
  14. <div class="app-container">
  15. <div id="print_content">
  16. <div
  17. v-for="(record, t) in records"
  18. :key="t"
  19. class="print_page_main_content"
  20. >
  21. <div style="display: inline-block; width: 100%; text-align: center">
  22. <div
  23. class="order-yy-name"
  24. style="
  25. letter-spacing: 0;
  26. font-weight: 600;
  27. font-size: 22px;
  28. display: inline-block;
  29. "
  30. >
  31. {{ orgname }}
  32. </div>
  33. <div
  34. class="order-title"
  35. style="
  36. letter-spacing: 0;
  37. font-weight: 600;
  38. font-size: 22px;
  39. display: inline-block;
  40. "
  41. >
  42. <span >
  43. 血液净化治疗记录单
  44. </span>
  45. </div>
  46. </div>
  47. <div class="row">
  48. <div class="inline_block">
  49. 姓名:
  50. <div class="under_line" style="width: 50px; text-align: center">
  51. {{ record.patient.name }}
  52. </div>
  53. </div>
  54. <div class="inline_block" style="margin-left: 10px">
  55. 性别:
  56. <div class="under_line" style="width: 30px; text-align: center">
  57. {{ record.patient.gender == 1 ? "男" : "女" }}
  58. </div>
  59. </div>
  60. <div class="inline_block" style="margin-left: 10px">
  61. 年龄:
  62. <div class="under_line" style="width: 30px; text-align: center">
  63. <!-- {{ record.patient.age }} -->
  64. {{ getAge(record.patient) }}
  65. </div>
  66. </div>
  67. <div class="inline_block" v-if="record.receive_assessment.condition!=1">
  68. 门诊:
  69. <div class="under_line" style="width: 30px; text-align: center">
  70. <check-box :checked="record.patient.source == 1"></check-box>
  71. </div>
  72. </div>
  73. <div class="inline_block">
  74. 病区:
  75. <div class="under_line" style="width: 70px; text-align: left">
  76. {{ record.device_zone.name}}
  77. </div>
  78. </div>
  79. <div class="inline_block" style="margin-left: 10px;">
  80. 床号:
  81. <div class="under_line" style="width: 50px; text-align: center">
  82. {{ record.device_number.number }}
  83. </div>
  84. </div>
  85. <div class="inline_block">
  86. 透析号:
  87. <div class="under_line" style="width: 70px; text-align: center">
  88. {{ record.patient.dialysis_no }}
  89. </div>
  90. </div>
  91. <div class="inline_block" style="flex: 1">
  92. 透析次数:
  93. <div class="under_line" style="width: 70px; text-align: center">
  94. {{
  95. record.patient.total_dialysis +
  96. record.patient.user_sys_before_count
  97. ? record.patient.total_dialysis +
  98. record.patient.user_sys_before_count
  99. : "/"
  100. }}
  101. </div>
  102. </div>
  103. </div>
  104. <div class="row" style="display: flex;">
  105. <div class="inline_block" style="flex: 1">
  106. 透析日期:
  107. <div
  108. class="under_line"
  109. style="width: 120px; text-align: center"
  110. >
  111. {{ getTime(record.schedule_date, "{y}-{m}-{d}") }}
  112. </div>
  113. </div>
  114. <div class="inline_block" style="flex: 3;" >
  115. 诊断:
  116. <div
  117. class="under_line"
  118. style="
  119. width: 500px;
  120. text-align: left;
  121. word-break: break-all;
  122. word-wrap: break-word;
  123. display: inline-block;
  124. white-space: unset;
  125. "
  126. >
  127. {{ record.patient.diagnose }}
  128. </div>
  129. </div>
  130. </div>
  131. <div class="row" :class="record.totallength > 14 ? 'margin-bottom-300' : ''">
  132. <table class="proj_table">
  133. <tbody>
  134. <tr>
  135. <td
  136. style="letter-spacing: 5px; text-align: center; font-weight: 520;
  137. font-size: 16px; padding: 6px 8px;line-height: 30px;"
  138. >
  139. 透析前情况
  140. </td>
  141. <td
  142. style=" letter-spacing: 5px; text-align: center; font-weight: 520;
  143. font-size: 16px; padding: 6px 8px; line-height: 30px;
  144. "
  145. >
  146. 透析后情况
  147. </td>
  148. </tr>
  149. <tr>
  150. <td >
  151. <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
  152. <div class="inline_block" style="flex: 0.8;">
  153. T:
  154. <div class="under_line"
  155. style="width: 40px; text-align: center"
  156. >
  157. {{
  158. record.assessment_before_dislysis &&
  159. record.assessment_before_dislysis.temperature
  160. ? record.assessment_before_dislysis.temperature
  161. : "/"
  162. }}
  163. </div>
  164. °C
  165. </div>
  166. <div class="inline_block" style="flex: 0.9;">
  167. P:
  168. <div
  169. class="under_line"
  170. style="width: 40px; text-align: center"
  171. >
  172. {{
  173. record.assessment_before_dislysis &&
  174. record.assessment_before_dislysis.pulse_frequency
  175. ? record.assessment_before_dislysis
  176. .pulse_frequency
  177. : "/"
  178. }}
  179. </div>
  180. 次/分
  181. </div>
  182. <div class="inline_block" style="flex: 0.9;">
  183. R:
  184. <div
  185. class="under_line"
  186. style="width: 40px; text-align: center"
  187. >
  188. {{
  189. record.assessment_before_dislysis &&
  190. record.assessment_before_dislysis.breathing_rate
  191. ? record.assessment_before_dislysis.breathing_rate
  192. : "/"
  193. }}
  194. </div>
  195. 次/分
  196. </div>
  197. <div class="inline_block" style="flex: 1.6;">
  198. BP:
  199. <div
  200. class="under_line"
  201. style="width: 40px; text-align: center"
  202. >
  203. {{
  204. record.assessment_before_dislysis &&
  205. record.assessment_before_dislysis
  206. .systolic_blood_pressure
  207. ? record.assessment_before_dislysis
  208. .systolic_blood_pressure
  209. : "/"
  210. }}
  211. </div>
  212. /
  213. <div
  214. class="under_line"
  215. style="width: 40px; text-align: center"
  216. >
  217. {{
  218. record.assessment_before_dislysis &&
  219. record.assessment_before_dislysis
  220. .diastolic_blood_pressure
  221. ? record.assessment_before_dislysis
  222. .diastolic_blood_pressure
  223. : "/"
  224. }}
  225. </div>
  226. mmHg
  227. </div>
  228. </div>
  229. <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
  230. <div class="inline_block" style=" flex: 1">
  231. 透前症状:
  232. <div class="under_line" style="width: 50%; text-align: left">
  233. <span v-if="record.assessment_before_dislysis&&record.assessment_before_dislysis.symptom_before_dialysis!=''">{{
  234. record.assessment_before_dislysis &&
  235. record.assessment_before_dislysis
  236. .symptom_before_dialysis
  237. ? record.assessment_before_dislysis
  238. .symptom_before_dialysis
  239. : "/"
  240. }}
  241. </span>
  242. <span v-if="record.assessment_before_dislysis&&record.assessment_before_dislysis.symptom_before_dialysis_other!=''">{{
  243. record.assessment_before_dislysis &&
  244. record.assessment_before_dislysis
  245. .symptom_before_dialysis_other
  246. ? record.assessment_before_dislysis
  247. .symptom_before_dialysis_other
  248. : "/"
  249. }}
  250. </span>
  251. <span v-if="record.assessment_before_dislysis&&record.assessment_before_dislysis.symptom_before_dialysis=='' && record.assessment_before_dislysis&&record.assessment_before_dislysis.symptom_before_dialysis_other==''" >
  252. /
  253. </span>
  254. </div>
  255. </div>
  256. <div class="inline_block" style=" flex: 1">
  257. 跌倒评估:
  258. <div class="under_line" style="width: 50%; text-align: left">
  259. {{ record.receive_assessment.score ? record.receive_assessment.score : '/' }}
  260. </div>
  261. </div>
  262. </div>
  263. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  264. <div class="inline_block" style="flex: 1">
  265. 内瘘:
  266. <div class="under_line" style="width: 70%; text-align: left;white-space: normal;">
  267. {{
  268. record.assessment_before_dislysis &&
  269. record.assessment_before_dislysis.internal_fistula
  270. ? record.assessment_before_dislysis
  271. .internal_fistula
  272. : "/"
  273. }}
  274. </div>
  275. </div>
  276. <div class="inline_block" style="flex: 1">
  277. 导管:
  278. <div class="under_line"
  279. style="width: 70%; text-align: left;white-space: normal;"
  280. >
  281. {{
  282. record.assessment_before_dislysis &&
  283. record.assessment_before_dislysis.catheter
  284. ? record.assessment_before_dislysis.catheter
  285. : "/"
  286. }}
  287. </div>
  288. </div>
  289. </div>
  290. <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
  291. <div class="inline_block" style="flex: 1;">
  292. 合并症:
  293. <div class="under_line" style=" width: 50%;text-align: center; white-space: normal;">
  294. {{ record.assessment_before_dislysis.complication ? record.assessment_before_dislysis.complication : "/" }} </div>
  295. </div>
  296. <div class="inline_block" style=" flex: 1">
  297. 备注:
  298. <div class="under_line" style="width: 70%; text-align: left;white-space: normal;">
  299. {{ record.assessment_before_dislysis.remark ? record.assessment_before_dislysis.remark : '/' }}
  300. </div>
  301. </div>
  302. </div>
  303. <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
  304. <div class="inline_block" style="flex: 1;">
  305. 干体重:
  306. <div class="under_line" style=" width: 50%;text-align: center; white-space: normal;">
  307. {{ record.assessment_before_dislysis && record.assessment_before_dislysis.dry_weight
  308. ? record.assessment_before_dislysis.dry_weight: "/"
  309. }}
  310. </div>kg
  311. </div>
  312. <div class="inline_block" style=" flex: 1">
  313. 透前体重:
  314. <div class="under_line" style="width: 50%; text-align: left">
  315. {{ record.assessment_before_dislysis &&
  316. record.assessment_before_dislysis.weight_before
  317. ? parseFloat(
  318. record.assessment_before_dislysis.weight_before -
  319. record.assessment_before_dislysis.additional_weight
  320. ).toFixed(1)
  321. : "/"
  322. }}
  323. </div>kg
  324. </div>
  325. </div>
  326. <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">
  327. <div class="inline_block" style="flex: 1;">
  328. 体重增加:
  329. <div class="under_line" style=" width: 50%;text-align: center; white-space: normal;">
  330. {{ record.assessment_before_dislysis.weight_before > 0 &&
  331. record.assessment_before_dislysis.additional_weight > 0 &&
  332. record.assessment_before_dislysis.dry_weight >0 ?
  333. parseFloat(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.additional_weight - record.assessment_before_dislysis.dry_weight).toFixed(2): "/"
  334. }}
  335. </div>kg
  336. </div>
  337. <div class="inline_block" style=" flex: 1">
  338. 预增脱水量:
  339. <div class="under_line" style="width: 50%; text-align: left">
  340. 0
  341. </div>L
  342. </div>
  343. </div>
  344. </td>
  345. <td>
  346. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  347. <div class="inline_block" style="flex: 0.8">
  348. T:
  349. <div class="under_line" style="width: 40px; text-align: center">
  350. {{
  351. record.assessment_after_dislysis &&
  352. record.assessment_after_dislysis.temperature
  353. ? record.assessment_after_dislysis.temperature
  354. : "/"
  355. }}
  356. </div>
  357. °C
  358. </div>
  359. <div class="inline_block" style=" flex: 0.9">
  360. P:
  361. <div class="under_line" style="width: 40px; text-align: center">
  362. {{
  363. record.assessment_after_dislysis &&
  364. record.assessment_after_dislysis.pulse_frequency
  365. ? record.assessment_after_dislysis.pulse_frequency
  366. : "/"
  367. }}
  368. </div>
  369. 次/分
  370. </div>
  371. <div class="inline_block" style=" flex: 0.9">
  372. R:
  373. <div class="under_line" style="width: 40px; text-align: center">
  374. {{
  375. record.assessment_after_dislysis &&
  376. record.assessment_after_dislysis.breathing_rate
  377. ? record.assessment_after_dislysis.breathing_rate
  378. : "/"
  379. }}
  380. </div>
  381. 次/分
  382. </div>
  383. <div class="inline_block" style="flex: 1.6">
  384. BP:
  385. <div class="under_line" style="width: 40px; text-align: center">
  386. {{
  387. record.assessment_after_dislysis &&
  388. record.assessment_after_dislysis
  389. .systolic_blood_pressure
  390. ? record.assessment_after_dislysis
  391. .systolic_blood_pressure
  392. : "/"
  393. }}
  394. </div>
  395. /
  396. <div class="under_line" style="width: 40px; text-align: center">
  397. {{
  398. record.assessment_after_dislysis &&
  399. record.assessment_after_dislysis
  400. .diastolic_blood_pressure
  401. ? record.assessment_after_dislysis
  402. .diastolic_blood_pressure
  403. : "/"
  404. }}
  405. </div>
  406. mmHg
  407. </div>
  408. </div>
  409. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  410. <div class="inline_block" style="flex: 1">
  411. 凝血程度:
  412. <div class="under_line"
  413. style=" width: 50%; text-align: center; white-space: normal;"
  414. >
  415. {{
  416. record.assessment_after_dislysis &&
  417. record.assessment_after_dislysis.cruor
  418. ? record.assessment_after_dislysis.cruor
  419. : "/"
  420. }}
  421. </div>
  422. </div>
  423. <div class="inline_block" style="flex: 1">
  424. 透后症状:
  425. <div class="under_line" style="width: 50%;text-align: center">
  426. {{ record.assessment_after_dislysis.symptom_after_dialysis ? record.assessment_after_dislysis.symptom_after_dialysis : "/" }}
  427. </div>
  428. </div>
  429. </div>
  430. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  431. <div class="inline_block" style="flex: 1">
  432. 内瘘:
  433. <div class="under_line"
  434. style=" width: 70%; text-align: center; white-space: normal;"
  435. >
  436. {{
  437. record.assessment_after_dislysis &&
  438. record.assessment_after_dislysis.internal_fistula
  439. ? record.assessment_after_dislysis
  440. .internal_fistula
  441. : "/"
  442. }}
  443. </div>
  444. </div>
  445. <div class="inline_block" style="flex: 1">
  446. 导管:
  447. <div style="width: 70%; text-align: left;display: inline-block;border-bottom: 1px solid #999;">
  448. {{
  449. record.assessment_after_dislysis &&
  450. record.assessment_after_dislysis.catheter
  451. ? record.assessment_after_dislysis.catheter
  452. : "/"
  453. }}
  454. </div>
  455. </div>
  456. </div>
  457. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  458. <div class="inline_block" style="flex: 1">
  459. 并发症:
  460. <div class="under_line"
  461. style=" width: 50%; text-align: center; white-space: normal; "
  462. >
  463. {{ record.assessment_after_dislysis.complication ? record.assessment_after_dislysis.complication : '/' }}
  464. </div>
  465. </div>
  466. <div class="inline_block" style="flex: 1">
  467. 实际置换量:
  468. <div style="width: 40%; text-align: left;display: inline-block;border-bottom: 1px solid #999;"
  469. >
  470. {{ record.assessment_after_dislysis.actual_displacement ? record.assessment_after_dislysis.actual_displacement : "/" }}
  471. </div>L
  472. </div>
  473. </div>
  474. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  475. <div class="inline_block" style="flex: 1">
  476. 实际超滤量:
  477. <div class="under_line" style="width: 60px; text-align: center">
  478. {{
  479. record.assessment_after_dislysis &&
  480. record.assessment_after_dislysis
  481. .actual_ultrafiltration
  482. ? record.assessment_after_dislysis
  483. .actual_ultrafiltration
  484. : "/"
  485. }}
  486. </div>
  487. ml
  488. </div>
  489. <div class="inline_block" style="flex: 1">
  490. 透后体重:
  491. <div
  492. class="under_line"
  493. style="width: 70px; text-align: center"
  494. >
  495. {{
  496. record.assessment_after_dislysis &&
  497. record.assessment_after_dislysis.weight_after
  498. ? parseFloat(
  499. record.assessment_after_dislysis
  500. .weight_after -
  501. record.assessment_before_dislysis
  502. .additional_weight
  503. ).toFixed(1)
  504. : "/"
  505. }}
  506. </div>
  507. kg
  508. </div>
  509. </div>
  510. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  511. <div class="inline_block" style="flex:1">
  512. 体重减少:
  513. <div
  514. class="under_line"
  515. style="width: 50px; text-align: center"
  516. >
  517. {{
  518. record.assessment_after_dislysis &&
  519. record.assessment_after_dislysis.weight_loss
  520. ? record.assessment_after_dislysis.weight_loss
  521. : "/"
  522. }}
  523. </div>
  524. kg
  525. </div>
  526. <div class="inline_block" style="flex: 1">
  527. <span>透析中入量:</span>
  528. <div class="under_line" style="width: 80px; text-align: center">
  529. {{
  530. record.assessment_after_dislysis &&
  531. record.assessment_after_dislysis.dialysis_intakes
  532. ? record.assessment_after_dislysis
  533. .dialysis_intakes
  534. : "/"
  535. }}
  536. </div>
  537. {{ getUnit(record) }}
  538. </div>
  539. </div>
  540. </td>
  541. </tr>
  542. <tr>
  543. <td colspan="2"
  544. style="letter-spacing: 5px; text-align: center; font-weight: 520;
  545. font-size: 16px; padding: 6px 8px;line-height: 30px;"
  546. >
  547. 透析处方
  548. </td>
  549. </tr>
  550. <tr>
  551. <td colspan="2">
  552. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex" >
  553. <div class="inline_block" style=" flex: 1">
  554. 处方脱水量:
  555. <div class="under_line" style="width: 60px; text-align: center" >
  556. {{ record.prescription.target_ultrafiltration ? record.prescription.target_ultrafiltration : "/" }}
  557. </div>L
  558. </div>
  559. <div class="inline_block" style=" flex: 1">
  560. 超滤总量:
  561. <div class="under_line"
  562. style="width: 50px; text-align: center"
  563. >
  564. {{ record.assessment_after_dislysis.actual_ultrafiltration ? record.assessment_after_dislysis.actual_ultrafiltration : '/' }}
  565. </div>ml
  566. </div>
  567. <div class="inline_block" style=" flex: 1">
  568. 透析时长:
  569. <div class="under_line" style="width: 50px; text-align: center">
  570. <span>
  571. {{
  572. record.prescription && record.prescription.dialysis_duration_hour
  573. ? record.prescription.dialysis_duration_hour : "/"
  574. }}
  575. </span>
  576. </div>h
  577. </div>
  578. <div class="inline_block" style=" flex: 1">
  579. 透析方式:
  580. <div class="under_line" style="width: 80px; text-align: center; font-weight: 600; ">
  581. <span v-if="!record.prescription.mode_id">/</span>
  582. <span v-if="record.prescription.mode_id == 1">HD</span>
  583. <span v-if="record.prescription.mode_id == 2">HDF</span>
  584. <span v-if="record.prescription.mode_id == 3">HD+HP</span>
  585. <span v-if="record.prescription.mode_id == 4">HP</span>
  586. <span v-if="record.prescription.mode_id == 5">HF</span>
  587. <span v-if="record.prescription.mode_id == 6">SCUF</span>
  588. <span v-if="record.prescription.mode_id == 7">IUF</span>
  589. <span v-if="record.prescription.mode_id == 8">HFHD</span>
  590. <span v-if="record.prescription.mode_id == 9">HFHD+HP</span>
  591. <span v-if="record.prescription.mode_id == 10">PHF</span>
  592. <span v-if="record.prescription.mode_id == 11">HFR</span>
  593. <span v-if="record.prescription.mode_id == 12">HDF+HP</span>
  594. <span v-if="record.prescription.mode_id == 13">CRRT</span>
  595. <span v-if="record.prescription.mode_id == 14">腹水回输</span>
  596. <span v-if="record.prescription.mode_id == 15">HD前置换</span>
  597. <span v-if="record.prescription.mode_id == 16">HD后置换</span>
  598. <span v-if="record.prescription.mode_id == 17">HDF前置换</span>
  599. <span v-if="record.prescription.mode_id == 18">HDF后置换</span>
  600. <span v-if="record.prescription.mode_id == 19">IUF+HD</span>
  601. <span v-if="record.prescription.mode_id == 22">血浆胆红素吸附+HDF</span>
  602. <span v-if="record.prescription.mode_id == 23">血浆胆红素吸附</span>
  603. <span v-if="record.prescription.mode_id == 24">I-HDF</span>
  604. <span v-if="record.prescription.mode_id == 25">HD高通</span>
  605. <span v-if="record.prescription.mode_id == 29">PE</span>
  606. <span v-if="record.prescription.mode_id == 30">血浆胆红素吸附+HP</span>
  607. </div>
  608. </div>
  609. <div class="inline_block" style=" flex: 1">
  610. 置换方式:
  611. <div class="under_line" style="width: 50px; text-align: center">
  612. {{getDisplaceLiquiPart(record.prescription.displace_liqui_part)}}
  613. </div>
  614. </div>
  615. <div class="inline_block" style=" flex: 1">
  616. 置换总量:
  617. <div class="under_line" style="width: 50px; text-align: center">
  618. <span>
  619. {{ record.prescription.displace_liqui_value ? record.prescription.displace_liqui_value : "/" }}
  620. </span>
  621. </div>L
  622. </div>
  623. </div>
  624. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  625. <div class="inline_block" style=" flex: 2">
  626. 血管通路:
  627. <div class="under_line" style="width: 70%; text-align: center" >
  628. {{
  629. record.assessment_before_dislysis &&
  630. record.assessment_before_dislysis.blood_access_part_id
  631. ? record.assessment_before_dislysis.blood_access_part_id : ''
  632. }}
  633. {{QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id) }}
  634. </div>
  635. </div>
  636. <div class="inline_block" style=" flex: 1">
  637. 血流量:
  638. <div class="under_line" style="width: 50px; text-align: center">
  639. {{record.prescription && record.prescription.blood_flow_volume
  640. ? record.prescription.blood_flow_volume: "/"
  641. }}
  642. </div> ml/min
  643. </div>
  644. </div>
  645. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  646. <div class="inline_block" style="flex: 2">
  647. 人工肾装置:
  648. <div class="under_line" style="width: 50%; text-align: center">
  649. {{ record.prescription &&
  650. record.prescription.dialysis_irrigation
  651. ? record.prescription.dialysis_irrigation
  652. : "" }}&nbsp;
  653. {{
  654. record.prescription.dialysis_dialyszers
  655. ? record.prescription.dialysis_dialyszers
  656. : ""
  657. }}
  658. </div>
  659. </div>
  660. <div class="inline_block" style="flex: 1">
  661. 膜面积:
  662. <div class="under_line" style="width: 50px; text-align: center">
  663. </div>㎡
  664. </div>
  665. <div class="inline_block" style="flex: 1">
  666. 膜材质:
  667. <div class="under_line" style="width: 80px; text-align: center">
  668. </div>
  669. </div>
  670. <div class="inline_block" style="flex: 1">
  671. 透析机型:
  672. <div class="under_line" style="width: 80px; text-align: center">
  673. {{ record.assessment_before_dislysis.machine_type ? record.assessment_before_dislysis.machine_type : '/' }}
  674. </div>
  675. </div>
  676. <div class="inline_block" style="flex: 1">
  677. 机号:
  678. <div class="under_line" style="width: 70px; text-align: center">
  679. {{record.dialysis_order && record.dialysis_order.device_number &&
  680. record.dialysis_order.device_number.number.length >0
  681. ? record.dialysis_order.device_number.number : record.device_number.number
  682. }}
  683. </div>
  684. </div>
  685. </div>
  686. <div class="row" style="padding: 2px 0; line-height: 23px">
  687. <div class="inline_block">
  688. 抗凝剂:
  689. <div class="under_line" style="width: 150px; text-align: center">
  690. <span v-if="record.prescription.anticoagulant == 0"
  691. >&nbsp;/</span
  692. >
  693. <span v-if="record.prescription.anticoagulant == 1"
  694. >&nbsp;无肝素</span
  695. >
  696. <span v-if="record.prescription.anticoagulant == 2"
  697. >&nbsp;普通肝素</span
  698. >
  699. <span v-if="record.prescription.anticoagulant == 3"
  700. >&nbsp;低分子肝素</span
  701. >
  702. <span v-if="record.prescription.anticoagulant == 4"
  703. >&nbsp;阿加曲班</span
  704. >
  705. <span v-if="record.prescription.anticoagulant == 5"
  706. >&nbsp;枸橼酸钠</span
  707. >
  708. <span v-if="record.prescription.anticoagulant == 6"
  709. >&nbsp;低分子肝素钙</span
  710. >
  711. <span v-if="record.prescription.anticoagulant == 16"
  712. >&nbsp;低分子量肝素钙</span
  713. >
  714. <span v-if="record.prescription.anticoagulant == 7"
  715. >&nbsp;低分子肝素钠</span
  716. >
  717. <span v-if="record.prescription.anticoagulant == 8"
  718. >&nbsp;依诺肝素</span
  719. >
  720. <span v-if="record.prescription.anticoagulant == 9"
  721. >&nbsp;达肝素</span
  722. >
  723. <span v-if="record.prescription.anticoagulant == 10"
  724. >&nbsp;体外抗凝</span
  725. >
  726. <span v-if="record.prescription.anticoagulant == 11"
  727. >&nbsp;那屈肝素</span
  728. >
  729. <span v-if="record.prescription.anticoagulant == 12"
  730. >&nbsp;无抗凝剂</span
  731. >
  732. <span v-if="record.prescription.anticoagulant == 13"
  733. >&nbsp;那屈肝素钙</span
  734. >
  735. <span v-if="record.prescription.anticoagulant == 14"
  736. >&nbsp;肝素钙注射液</span
  737. >
  738. <span v-if="record.prescription.anticoagulant == 15"
  739. >&nbsp;甲磺酸萘莫司他</span
  740. >
  741. </div>
  742. </div>
  743. <div class="inline_block" style="margin-left: 20px">
  744. 首剂:
  745. <div
  746. class="under_line"
  747. style="width: 50px; text-align: center"
  748. >
  749. {{
  750. record.prescription &&
  751. record.prescription.anticoagulant_shouji
  752. ? record.prescription.anticoagulant_shouji
  753. : "/"
  754. }}
  755. </div>
  756. <span v-if="record.prescription.anticoagulant == 4"
  757. >mg</span
  758. >
  759. <span v-if="record.prescription.anticoagulant == 3"
  760. >iu</span
  761. >
  762. <span v-if="record.prescription.anticoagulant == 2"
  763. >iu</span
  764. >
  765. <span v-if="record.prescription.anticoagulant == 1"
  766. >mg</span
  767. >
  768. <span v-if="record.prescription.anticoagulant != 1 &&
  769. record.prescription.anticoagulant != 2 &&
  770. record.prescription.anticoagulant != 3 &&
  771. record.prescription.anticoagulant != 4">iu</span>
  772. </div>
  773. <div class="inline_block" style="margin-left: 20px">
  774. 维持:
  775. <div
  776. v-if="
  777. record.prescription &&
  778. record.prescription.anticoagulant == 1
  779. "
  780. class="under_line"
  781. style="width: 50px; text-align: center"
  782. >
  783. {{
  784. record.prescription &&
  785. record.prescription.anticoagulant_weichi
  786. ? record.prescription.anticoagulant_weichi
  787. : "/"
  788. }}
  789. </div>
  790. <div
  791. v-if="
  792. record.prescription &&
  793. record.prescription.anticoagulant != 1
  794. "
  795. class="under_line"
  796. style="width: 50px; text-align: center"
  797. >
  798. {{
  799. record.prescription &&
  800. record.prescription.anticoagulant_weichi
  801. ? record.prescription.anticoagulant_weichi
  802. : 0
  803. }}
  804. </div>
  805. <span v-if="record.prescription.anticoagulant == 5"
  806. >ml/h</span
  807. >
  808. <span v-if="record.prescription.anticoagulant == 4"
  809. >mg/h</span
  810. >
  811. <span v-if="record.prescription.anticoagulant == 3"
  812. >iu/h</span
  813. >
  814. <span v-if="record.prescription.anticoagulant == 2"
  815. >iu/h</span
  816. >
  817. <span v-if="record.prescription.anticoagulant == 1"
  818. >mg/h</span
  819. >
  820. <span v-if="record.prescription.anticoagulant != 1 &&
  821. record.prescription.anticoagulant != 2 &&
  822. record.prescription.anticoagulant != 3 &&
  823. record.prescription.anticoagulant != 4 &&
  824. record.prescription.anticoagulant != 5">iu/h</span>
  825. </div>
  826. <div class="inline_block" style="margin-left: 20px">
  827. 总量:
  828. <div
  829. class="under_line"
  830. style="width: 50px; text-align: center"
  831. >
  832. {{
  833. record.prescription &&
  834. record.prescription.anticoagulant_zongliang
  835. ? record.prescription.anticoagulant_zongliang
  836. : "/"
  837. }}
  838. </div>
  839. <span v-if="record.prescription.anticoagulant == 4"
  840. >mg</span
  841. >
  842. <span v-if="record.prescription.anticoagulant == 3"
  843. >iu</span
  844. >
  845. <span v-if="record.prescription.anticoagulant == 2"
  846. >iu</span
  847. >
  848. <span v-if="record.prescription.anticoagulant == 1"
  849. >mg</span
  850. >
  851. <span v-if="record.prescription.anticoagulant != 1 &&
  852. record.prescription.anticoagulant != 2 &&
  853. record.prescription.anticoagulant != 3 &&
  854. record.prescription.anticoagulant != 4">iu</span>
  855. </div>
  856. </div>
  857. <div class="row" style="padding: 2px 0; line-height: 23px" >
  858. <div class="inline_block">
  859. 透析液成分:钾:
  860. <div
  861. class="under_line"
  862. style="width: 50px; text-align: center"
  863. >
  864. {{
  865. record.prescription && record.prescription.kalium
  866. ? record.prescription.kalium
  867. : "/"
  868. }}
  869. </div>
  870. mmol/L
  871. </div>
  872. <div class="inline_block" style="margin-left: 10px">
  873. 钠:
  874. <div
  875. class="under_line"
  876. style="width: 50px; text-align: center"
  877. >
  878. {{
  879. record.prescription && record.prescription.sodium
  880. ? record.prescription.sodium
  881. : "/"
  882. }}
  883. </div>
  884. mmol/L
  885. </div>
  886. <div class="inline_block" style="margin-left: 10px">
  887. 钙:
  888. <div
  889. class="under_line"
  890. style="width: 50px; text-align: center"
  891. >
  892. {{
  893. record.prescription && record.prescription.calcium
  894. ? record.prescription.calcium
  895. : "/"
  896. }}
  897. </div>
  898. mmol/L
  899. </div>
  900. <div class="inline_block" style="margin-left: 10px" >
  901. 碳酸氢根:
  902. <div
  903. class="under_line"
  904. style="width: 50px; text-align: center"
  905. >
  906. {{
  907. record.prescription &&
  908. record.prescription.bicarbonate
  909. ? record.prescription.bicarbonate
  910. : "/"
  911. }}
  912. </div>
  913. mmol/L
  914. </div>
  915. <div class="inline_block" style="margin-left: 10px" >
  916. 流量:
  917. <div class="under_line" style="width: 50px; text-align: center">
  918. {{
  919. record.prescription &&
  920. record.prescription.dialysate_flow
  921. ? record.prescription.dialysate_flow
  922. : "/"
  923. }}
  924. </div>
  925. ml/min
  926. </div>
  927. </div>
  928. </td>
  929. </tr>
  930. <tr >
  931. <td style="padding: 0; position: relative" colspan="2">
  932. <table class="inside_table">
  933. <tbody>
  934. <tr style="line-height: 35px; padding: 8px 5px">
  935. <td
  936. colspan="7"
  937. style="letter-spacing: 5px; text-align: center; font-weight: 520;
  938. font-size: 16px; padding: 6px 8px; line-height: 30px;"
  939. >
  940. 临时医嘱
  941. </td>
  942. </tr>
  943. <tr style="line-height: 35px; padding: 8px 5px">
  944. <td style="font-size: 16px" width="10%">时间</td>
  945. <td style="font-size: 16px" colspan="2" width="45%">
  946. 医嘱内容
  947. </td>
  948. <td style="font-size: 16px" width="10%">医生签名</td>
  949. <td style="font-size: 16px" width="10%"> 执行人签名</td>
  950. <td style="font-size: 16px" width="10%">时间</td>
  951. </tr>
  952. <!-- <template v-for="group in doctor_advices" > -->
  953. <template v-if="record.advices">
  954. <tr v-for="(advice, advice_index) in record.advices"
  955. :key="advice_index"
  956. >
  957. <td height="35px">
  958. <span v-if="advice.start_time">
  959. {{ getTime(advice.start_time, "{h}:{i}") }}
  960. </span>
  961. </td>
  962. <td
  963. height="35px"
  964. colspan="2"
  965. class="advice-name"
  966. style="padding-left: 7px"
  967. >
  968. <span v-if="advice.parent_id > 0">---></span>
  969. <span>{{ advice.advice_name }}</span>
  970. <span
  971. v-if="
  972. advice &&
  973. advice.advice_desc != undefined
  974. "
  975. >
  976. </span>
  977. <span v-if="advice.prescribing_number"
  978. >&nbsp;&nbsp; {{ advice.prescribing_number
  979. }}{{ advice.prescribing_number_unit }}</span
  980. >
  981. <span v-if="advice.single_dose != 0">
  982. {{ advice.single_dose
  983. }}{{ advice.single_dose_unit }}</span
  984. >
  985. <span v-if="advice.parent_id == 0">{{
  986. advice.delivery_way
  987. }}</span>
  988. <span v-if="advice.parent_id == 0">{{
  989. advice.execution_frequency
  990. }}</span>
  991. <span
  992. v-if="
  993. advice.parent_id == 0 &&
  994. advice.remark.length > 0
  995. "
  996. >({{ advice.remark }})</span
  997. >
  998. </td>
  999. <td height="35px">
  1000. <span
  1001. v-if="
  1002. setAdminUserES(advice, 'advice_doctor') ==
  1003. ''
  1004. "
  1005. >{{
  1006. getAdminUser(advice, "advice_doctor")
  1007. }}</span
  1008. >
  1009. <img
  1010. class="es-img"
  1011. :src="
  1012. setAdminUserES(advice, 'advice_doctor')
  1013. "
  1014. alt=""
  1015. srcset=""
  1016. v-else
  1017. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1018. />
  1019. </td>
  1020. <td height="35px">
  1021. <span
  1022. v-if="
  1023. setAdminUserES(
  1024. advice,'execution_staff'
  1025. ) == ''
  1026. "
  1027. >{{
  1028. getAdminUser(advice, "execution_staff")
  1029. }}</span
  1030. >
  1031. <img
  1032. class="es-img"
  1033. :src="
  1034. setAdminUserES(advice, 'execution_staff')
  1035. "
  1036. alt=""
  1037. srcset=""
  1038. v-else
  1039. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1040. />
  1041. </td>
  1042. <td height="35px">
  1043. <span v-if="advice.execution_time">{{
  1044. getTime(advice.execution_time, " {h}:{i}")
  1045. }}</span>
  1046. </td>
  1047. </tr>
  1048. </template>
  1049. </tbody>
  1050. </table>
  1051. </td>
  1052. </tr>
  1053. <tr>
  1054. <td style="padding: 0; position: relative" colspan="2">
  1055. <table class="inside_table">
  1056. <tbody>
  1057. <!-- <thead> -->
  1058. <tr>
  1059. <td colspan="14"
  1060. style=" letter-spacing: 5px; text-align: center; font-weight: 520;
  1061. font-size: 16px; padding: 6px 8px; line-height: 30px;"
  1062. >
  1063. 监测记录
  1064. </td>
  1065. </tr>
  1066. <tr>
  1067. <td width="50">时间</td>
  1068. <td width="50">KT/V</td>
  1069. <td width="50" >
  1070. 动脉压<br />(mmHg)
  1071. </td>
  1072. <td width="50">血流量<br />(ml/min)</td>
  1073. <td width="50">
  1074. 静脉压(mmHg)/跨膜压(mmHg)
  1075. </td>
  1076. <td width="50">超滤量(ml)/超滤率(ml/h)</td>
  1077. <td width="50">置换率(ml/min)/置换量(L)</td>
  1078. <td width="50" >
  1079. <span > 钠浓度(mmol/L)/温度°C</span>
  1080. </td>
  1081. <td width="50">脉搏<br />(次/分)</td>
  1082. <td width="50">呼吸<br />(次/分)</td>
  1083. <td width="65">血压<br />(mmHg)</td>
  1084. <td width="65">症状</td>
  1085. <td width="100">处理</td>
  1086. <td width="65">结果</td>
  1087. </tr>
  1088. <tr v-for="(monitor_record, j) in record.monitor_records" :key="j">
  1089. <td>
  1090. {{
  1091. getTime(monitor_record.operate_time, "{h}:{i}")
  1092. }}
  1093. </td>
  1094. <td>{{ monitor_record.ktv ? monitor_record.ktv : '/' }}</td>
  1095. <td >
  1096. {{
  1097. monitor_record.arterial_pressure ? monitor_record.arterial_pressure : "/"
  1098. }}
  1099. </td>
  1100. <td>
  1101. {{
  1102. monitor_record.blood_flow_volume ? monitor_record.blood_flow_volume : "/"
  1103. }}
  1104. </td>
  1105. <td>
  1106. {{ monitor_record.venous_pressure ? monitor_record.venous_pressure : "0"}} /
  1107. {{ monitor_record.transmembrane_pressure ? monitor_record.transmembrane_pressure : '0' }}
  1108. </td>
  1109. <td>
  1110. {{ monitor_record.ultrafiltration_volume ? monitor_record.ultrafiltration_volume : '0' }} /
  1111. {{ monitor_record.ultrafiltration_rate ? monitor_record.ultrafiltration_rate : '0' }}
  1112. </td>
  1113. <!-- 置换率(ml/min)/置换量(L) -->
  1114. <td>
  1115. {{ monitor_record.replacement_rate ? monitor_record.replacement_rate :"0" }} /
  1116. {{ monitor_record.displacement_quantity ? monitor_record.displacement_quantity : '0' }}
  1117. </td>
  1118. <td>
  1119. {{monitor_record.sodium_concentration ? monitor_record.sodium_concentration : '0'}} /
  1120. {{ monitor_record.temperature ? monitor_record.temperature : '0' }}
  1121. </td>
  1122. <td>
  1123. {{ monitor_record.pulse_frequency ? monitor_record.pulse_frequency : "/" }}
  1124. </td>
  1125. <td>
  1126. {{ monitor_record.breathing_rate ? monitor_record.breathing_rate : '/' }}
  1127. </td>
  1128. <td>
  1129. {{
  1130. monitor_record.systolic_blood_pressure ? monitor_record.systolic_blood_pressure + "/" : ""
  1131. }}
  1132. {{
  1133. monitor_record.diastolic_blood_pressure ? monitor_record.diastolic_blood_pressure : ""
  1134. }}
  1135. </td>
  1136. <td>{{ monitor_record.symptom }}</td>
  1137. <td>
  1138. <div
  1139. style="min-height: 35px; line-height: 35px; overflow: hidden;"
  1140. >
  1141. <span
  1142. style=" word-break: break-all; margin: 0; line-height: 16px;
  1143. -webkit-line-clamp: 3; overflow: visible; display: inline-block;
  1144. vertical-align: middle; height: auto;"
  1145. >
  1146. <template
  1147. v-if=" record.dialysis_order && monitor_record.operate_time ==
  1148. record.dialysis_order.start_time
  1149. "
  1150. >【开始透析】引血 {{ record.dialysis_order.blood_drawing }} ml/min</template
  1151. >
  1152. {{ monitor_record.dispose }} {{ monitor_record.end }}
  1153. &nbsp;
  1154. &nbsp;
  1155. </span>
  1156. </div>
  1157. </td>
  1158. <td>{{ monitor_record.result }}</td>
  1159. </tr>
  1160. <tr
  1161. v-for="(monitor_record, s) in record.monitor_records2"
  1162. :key="s"
  1163. >
  1164. <td></td>
  1165. <td></td>
  1166. <td></td>
  1167. <td></td>
  1168. <td></td>
  1169. <td></td>
  1170. <td></td>
  1171. <td></td>
  1172. <td></td>
  1173. <td></td>
  1174. <td></td>
  1175. <td></td>
  1176. <td style="line-height: 16px; padding: 0px">
  1177. <div
  1178. style="
  1179. height: 40px;
  1180. line-height: 20px;
  1181. overflow: hidden;
  1182. "
  1183. >
  1184. <span
  1185. style="
  1186. word-break: break-all;
  1187. margin: 0;
  1188. line-height: 16px;
  1189. -webkit-line-clamp: 3;
  1190. overflow: visible;
  1191. display: inline-block;
  1192. vertical-align: middle;
  1193. height: auto;
  1194. "
  1195. >
  1196. </span>
  1197. </div>
  1198. </td>
  1199. <td></td>
  1200. </tr>
  1201. </tbody>
  1202. </table>
  1203. </td>
  1204. </tr>
  1205. </tbody>
  1206. </table>
  1207. </div>
  1208. <template v-if="record.totallength > 14">
  1209. <div style="display: inline-block; width: 100%; text-align: center">
  1210. <div
  1211. class="order-yy-name"
  1212. style="
  1213. letter-spacing: 0;
  1214. font-weight: 600;
  1215. font-size: 22px;
  1216. display: inline-block;
  1217. "
  1218. >
  1219. {{ orgname }}
  1220. </div>
  1221. <div
  1222. class="order-title"
  1223. style="
  1224. letter-spacing: 0;
  1225. font-weight: 600;
  1226. font-size: 22px;
  1227. display: inline-block;
  1228. "
  1229. >
  1230. <span>
  1231. 血液净化治疗记录单
  1232. </span>
  1233. </div>
  1234. </div>
  1235. <div class="row">
  1236. <div class="inline_block">
  1237. 姓名:
  1238. <div class="under_line" style="width: 50px; text-align: center">
  1239. {{ record.patient.name }}
  1240. </div>
  1241. </div>
  1242. <div class="inline_block" style="margin-left: 10px">
  1243. 性别:
  1244. <div class="under_line" style="width: 30px; text-align: center">
  1245. {{ record.patient.gender == 1 ? "男" : "女" }}
  1246. </div>
  1247. </div>
  1248. <div class="inline_block" style="margin-left: 10px">
  1249. 年龄:
  1250. <div class="under_line" style="width: 30px; text-align: center">
  1251. <!-- {{ record.patient.age }} -->
  1252. {{ getAge(record.patient) }}
  1253. </div>
  1254. </div>
  1255. <div class="inline_block" v-if="record.receive_assessment.condition!=1">
  1256. 门诊:
  1257. <div class="under_line" style="width: 30px; text-align: center">
  1258. <check-box :checked="record.patient.source == 1"></check-box>
  1259. </div>
  1260. </div>
  1261. <div class="inline_block">
  1262. 病区:
  1263. <div class="under_line" style="width: 70px; text-align: left">
  1264. {{ record.device_zone.name}}
  1265. </div>
  1266. </div>
  1267. <div class="inline_block" style="margin-left: 10px;">
  1268. 床号:
  1269. <div class="under_line" style="width: 50px; text-align: center">
  1270. {{ record.device_number.number }}
  1271. </div>
  1272. </div>
  1273. <div class="inline_block">
  1274. 透析号:
  1275. <div class="under_line" style="width: 70px; text-align: center">
  1276. {{ record.patient.dialysis_no }}
  1277. </div>
  1278. </div>
  1279. <div class="inline_block" style="flex: 1">
  1280. 透析次数:
  1281. <div class="under_line" style="width: 70px; text-align: center">
  1282. {{
  1283. record.patient.total_dialysis +
  1284. record.patient.user_sys_before_count
  1285. ? record.patient.total_dialysis +
  1286. record.patient.user_sys_before_count
  1287. : "/"
  1288. }}
  1289. </div>
  1290. </div>
  1291. </div>
  1292. <div class="row" style="display: flex;">
  1293. <div class="inline_block" style="flex: 1">
  1294. 透析日期:
  1295. <div
  1296. class="under_line"
  1297. style="width: 120px; text-align: center"
  1298. >
  1299. {{ getTime(record.schedule_date, "{y}-{m}-{d}") }}
  1300. </div>
  1301. </div>
  1302. <div class="inline_block" style="flex: 3;" >
  1303. 诊断:
  1304. <div
  1305. class="under_line"
  1306. style="
  1307. width: 500px;
  1308. text-align: left;
  1309. word-break: break-all;
  1310. word-wrap: break-word;
  1311. display: inline-block;
  1312. white-space: unset;
  1313. "
  1314. >
  1315. {{ record.patient.diagnose }}
  1316. </div>
  1317. </div>
  1318. </div>
  1319. </template>
  1320. <div class="row" style="margin-top: -11px; position: relative">
  1321. <table class="proj_table">
  1322. <tbody>
  1323. <tr>
  1324. <td colspan="2"
  1325. style=" letter-spacing: 5px; text-align: center;
  1326. font-weight: 520; font-size: 16px;
  1327. padding: 6px 8px; line-height: 30px;"
  1328. >
  1329. 治疗小结
  1330. </td>
  1331. </tr>
  1332. <tr>
  1333. <td>
  1334. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  1335. <div class="inline_block" style="flex: 1">
  1336. 实际治疗时间:
  1337. <div
  1338. class="under_line"
  1339. style="width: 30px; text-align: center"
  1340. >
  1341. {{
  1342. record.assessment_after_dislysis &&
  1343. record.assessment_after_dislysis
  1344. .actual_treatment_hour
  1345. ? record.assessment_after_dislysis
  1346. .actual_treatment_hour
  1347. : "/"
  1348. }}
  1349. </div>
  1350. h
  1351. <div
  1352. class="under_line"
  1353. style="width: 30px; text-align: center"
  1354. >
  1355. {{
  1356. record.assessment_after_dislysis &&
  1357. record.assessment_after_dislysis
  1358. .actual_treatment_minute
  1359. ? record.assessment_after_dislysis
  1360. .actual_treatment_minute
  1361. : 0
  1362. }}
  1363. </div>
  1364. min
  1365. </div>
  1366. <div class="inline_block" style="flex: 2">
  1367. 透后宣教:
  1368. <div class="under_line" style="width: 60%; text-align: center">
  1369. {{ record.summer ? record.summer.mission : '/' }}
  1370. </div>
  1371. </div>
  1372. </div>
  1373. <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
  1374. <div class="inline_block" style="flex: 1; display: inline-block">
  1375. 治疗小结:
  1376. <div class="under_line"
  1377. style=" width: 840px; line-height: 25px; text-align: left;
  1378. margin-left: 2px; display: inline-block; white-space: normal;"
  1379. >
  1380. {{
  1381. record.summer && record.summer.dialysis_summary
  1382. ? record.summer.dialysis_summary
  1383. : "/"
  1384. }}
  1385. </div>
  1386. </div>
  1387. </div>
  1388. </td>
  1389. </tr>
  1390. <tr>
  1391. <td>
  1392. <div
  1393. class="row"
  1394. style="padding: 2px 0; line-height: 23px; display: flex"
  1395. >
  1396. <div class="inline_block" style="flex: 1">
  1397. 穿刺护士:
  1398. <div
  1399. class="under_line"
  1400. style="width: 80px; text-align: center"
  1401. >
  1402. <span
  1403. v-if="
  1404. setAdminUserES(
  1405. record.dialysis_order,
  1406. 'puncture_nurse'
  1407. ) == ''
  1408. "
  1409. >{{
  1410. getAdminUser(
  1411. record.dialysis_order,
  1412. "puncture_nurse"
  1413. )
  1414. ? getAdminUser(
  1415. record.dialysis_order,
  1416. "puncture_nurse"
  1417. )
  1418. : "/"
  1419. }}</span
  1420. >
  1421. <img
  1422. class="es-img"
  1423. :src="
  1424. setAdminUserES(
  1425. record.dialysis_order,
  1426. 'puncture_nurse'
  1427. )
  1428. "
  1429. alt=""
  1430. srcset=""
  1431. v-else
  1432. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1433. />
  1434. </div>
  1435. </div>
  1436. <div class="inline_block" style="flex: 1">
  1437. 治疗护士:
  1438. <div
  1439. class="under_line"
  1440. style="width: 80px; text-align: center"
  1441. >
  1442. <span
  1443. v-if="
  1444. setAdminUserES(
  1445. record.dialysis_order,
  1446. 'start_nurse'
  1447. ) == ''
  1448. "
  1449. >{{
  1450. getAdminUser(record.dialysis_order, "start_nurse")
  1451. ? getAdminUser(
  1452. record.dialysis_order,
  1453. "start_nurse"
  1454. )
  1455. : "/"
  1456. }}</span
  1457. >
  1458. <img
  1459. class="es-img"
  1460. :src="
  1461. setAdminUserES(
  1462. record.dialysis_order,
  1463. 'start_nurse'
  1464. )
  1465. "
  1466. alt=""
  1467. srcset=""
  1468. v-else
  1469. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1470. />
  1471. </div>
  1472. </div>
  1473. <div class="inline_block" style="flex: 1">
  1474. 核对人员:
  1475. <div
  1476. class="under_line"
  1477. style="width: 80px; text-align: left"
  1478. v-if="!record.check"
  1479. ></div>
  1480. <div
  1481. class="under_line"
  1482. style="width: 80px; text-align: center"
  1483. v-if="
  1484. record.check != null &&
  1485. record.dialysis_order == null
  1486. "
  1487. >
  1488. <span
  1489. style="height: 30px; display: inline-block"
  1490. v-if="setAdminUserES(record.check, 'creater') == ''"
  1491. >
  1492. {{
  1493. getAdminUser(record.check, "creater")
  1494. ? getAdminUser(record.check, "creater")
  1495. : "/"
  1496. }}
  1497. </span>
  1498. <img
  1499. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1500. :src="setAdminUserES(record.check, 'creater')"
  1501. alt=""
  1502. srcset=""
  1503. v-else
  1504. />
  1505. </div>
  1506. <div
  1507. class="under_line"
  1508. style="width: 80px; text-align: center"
  1509. v-if="
  1510. record.check != null &&
  1511. record.dialysis_order != null &&
  1512. record.dialysis_order.start_nurse ==
  1513. record.check.modifier
  1514. "
  1515. >
  1516. <span
  1517. style="height: 30px; display: inline-block"
  1518. v-if="setAdminUserES(record.check, 'creater') == ''"
  1519. >
  1520. {{
  1521. getAdminUser(record.check, "creater")
  1522. ? getAdminUser(record.check, "creater")
  1523. : "/"
  1524. }}
  1525. </span>
  1526. <img
  1527. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1528. :src="setAdminUserES(record.check, 'creater')"
  1529. alt=""
  1530. srcset=""
  1531. v-else
  1532. />
  1533. </div>
  1534. <div
  1535. class="under_line"
  1536. style="width: 80px; text-align: center"
  1537. v-if="
  1538. record.check != null &&
  1539. record.dialysis_order != null &&
  1540. record.dialysis_order.start_nurse ==
  1541. record.check.creater
  1542. "
  1543. >
  1544. <span
  1545. style="height: 30px; display: inline-block"
  1546. v-if="
  1547. setAdminUserES(record.check, 'modifier') == ''
  1548. "
  1549. >
  1550. {{
  1551. getAdminUser(record.check, "modifier")
  1552. ? getAdminUser(record.check, "modifier")
  1553. : "/"
  1554. }}
  1555. </span>
  1556. <img
  1557. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1558. :src="setAdminUserES(record.check, 'modifier')"
  1559. alt=""
  1560. srcset=""
  1561. v-else
  1562. />
  1563. </div>
  1564. <div
  1565. class="under_line"
  1566. style="width: 80px; text-align: center"
  1567. v-if="
  1568. record.check != null &&
  1569. record.dialysis_order != null &&
  1570. record.dialysis_order.start_nurse !=
  1571. record.check.creater &&
  1572. record.dialysis_order.start_nurse !=
  1573. record.check.modifier
  1574. "
  1575. >
  1576. <span
  1577. style="height: 30px; display: inline-block"
  1578. v-if="setAdminUserES(record.check, 'creater') == ''"
  1579. >
  1580. {{
  1581. getAdminUser(record.check, "creater")
  1582. ? getAdminUser(record.check, "creater")
  1583. : "/"
  1584. }}
  1585. </span>
  1586. <img
  1587. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1588. :src="setAdminUserES(record.check, 'creater')"
  1589. alt=""
  1590. srcset=""
  1591. v-else
  1592. />
  1593. </div>
  1594. <!-- <div
  1595. class="under_line"
  1596. style="width: 80px; text-align: left"
  1597. v-if="!record.check"
  1598. ></div> -->
  1599. </div>
  1600. <!-- <div class="inline_block" style="flex:1;">
  1601. 核对人员:
  1602. <div
  1603. class="under_line"
  1604. style="width: 80px;text-align: left"
  1605. v-if="record.dialysis_order == null"
  1606. ></div>
  1607. <div
  1608. v-if="record.check"
  1609. class="under_line"
  1610. style="width: 80px;text-align: left"
  1611. >
  1612. <div
  1613. style="width: 80px;text-align: left;display: inline-block;white-space: nowrap;"
  1614. v-if="record.dialysis_order != null && record.check.creater ==record.check.creater"
  1615. >
  1616. <span
  1617. v-if="
  1618. setAdminUserES(record.check, 'creater') == ''
  1619. "
  1620. >{{
  1621. getAdminUser(record.check, "creater")
  1622. ? getAdminUser(record.check, "creater")
  1623. : "/"
  1624. }}</span
  1625. >
  1626. <img
  1627. class="es-img"
  1628. :src="setAdminUserES(record.check, 'creater')"
  1629. alt=""
  1630. srcset=""
  1631. v-else
  1632. style="height: 40px;"
  1633. />
  1634. </div>
  1635. <div
  1636. class="under_line"
  1637. style="width: 80px;text-align: left"
  1638. v-if=" record.dialysis_order != null &&record.dialysis_order.start_nurse ==record.check.modifier "
  1639. >
  1640. <span
  1641. v-if="
  1642. setAdminUserES(record.check, 'creater') == ''
  1643. "
  1644. >{{ getAdminUser(record.check, "creater") }}</span
  1645. >
  1646. <img
  1647. class="es-img"
  1648. :src="setAdminUserES(record.check, 'creater')"
  1649. alt=""
  1650. srcset=""
  1651. v-else
  1652. />
  1653. </div>
  1654. <div
  1655. class="under_line"
  1656. style="width: 80px;text-align: left"
  1657. v-if="record.dialysis_order != null &&record.dialysis_order.start_nurse != record.check.modifier &&record.dialysis_order.start_nurse != record.check.creater
  1658. "
  1659. >
  1660. <span
  1661. v-if="
  1662. setAdminUserES(record.check, 'creater') == ''
  1663. "
  1664. >{{ getAdminUser(record.check, "creater") }}</span
  1665. >
  1666. <img
  1667. class="es-img"
  1668. :src="setAdminUserES(record.check, 'creater')"
  1669. alt=""
  1670. srcset=""
  1671. v-else
  1672. />
  1673. </div>
  1674. </div>
  1675. <div
  1676. class="under_line"
  1677. style="width: 80px;text-align: left"
  1678. v-if="!record.check"
  1679. ></div>
  1680. </div> -->
  1681. <div class="inline_block" style="flex: 1">
  1682. 下机护士:
  1683. <div
  1684. class="under_line"
  1685. style="width: 80px; text-align: center"
  1686. >
  1687. <span
  1688. v-if="
  1689. setAdminUserES(
  1690. record.dialysis_order,
  1691. 'finish_nurse'
  1692. ) == ''
  1693. "
  1694. >{{
  1695. getAdminUser(
  1696. record.dialysis_order,
  1697. "finish_nurse"
  1698. )
  1699. ? getAdminUser(
  1700. record.dialysis_order,
  1701. "finish_nurse"
  1702. )
  1703. : "/"
  1704. }}</span
  1705. >
  1706. <img
  1707. class="es-img"
  1708. :src="
  1709. setAdminUserES(
  1710. record.dialysis_order,
  1711. 'finish_nurse'
  1712. )
  1713. "
  1714. alt=""
  1715. srcset=""
  1716. v-else
  1717. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1718. />
  1719. </div>
  1720. </div>
  1721. <div class="inline_block" style="flex: 1" v-if="record.prescription &&record.prescription.modifier==0">
  1722. 治疗医生:
  1723. <div
  1724. class="under_line"
  1725. style="width: 80px; text-align: center"
  1726. >
  1727. <template
  1728. v-if="
  1729. record.prescription &&
  1730. record.prescription.creater
  1731. "
  1732. >
  1733. <span
  1734. v-if="
  1735. setAdminUserES(
  1736. record.prescription,
  1737. 'creater'
  1738. ) == ''
  1739. "
  1740. >{{
  1741. getAdminUser(
  1742. record.prescription,
  1743. "creater"
  1744. )
  1745. }}</span
  1746. >
  1747. <img
  1748. class="es-img"
  1749. :src="
  1750. setAdminUserES(
  1751. record.prescription,
  1752. 'creater'
  1753. )
  1754. "
  1755. alt=""
  1756. srcset=""
  1757. v-else
  1758. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1759. />
  1760. </template>
  1761. </div>
  1762. </div>
  1763. <div class="inline_block" style="flex: 1" v-if="record.prescription &&record.prescription.modifier>0">
  1764. 治疗医生:
  1765. <div
  1766. class="under_line"
  1767. style="width: 80px; text-align: center"
  1768. >
  1769. <template
  1770. v-if="
  1771. record.prescription &&
  1772. record.prescription.modifier
  1773. "
  1774. >
  1775. <span
  1776. v-if="
  1777. setAdminUserES(
  1778. record.prescription,
  1779. 'modifier'
  1780. ) == ''
  1781. "
  1782. >{{
  1783. getAdminUser(
  1784. record.prescription,
  1785. "modifier"
  1786. )
  1787. }}</span
  1788. >
  1789. <img
  1790. class="es-img"
  1791. :src="
  1792. setAdminUserES(
  1793. record.prescription,
  1794. 'modifier'
  1795. )
  1796. "
  1797. alt=""
  1798. srcset=""
  1799. v-else
  1800. :style="{'height': org_id==10597 ? '25px' : '30px'}"
  1801. />
  1802. </template>
  1803. </div>
  1804. </div>
  1805. </div>
  1806. </td>
  1807. </tr>
  1808. </tbody>
  1809. </table>
  1810. </div>
  1811. </div>
  1812. </div>
  1813. </div>
  1814. </div>
  1815. </template>
  1816. <script>
  1817. import CheckBox from "./option_check_box";
  1818. import { GetBatchPrintDialysisData } from "@/api/print_data";
  1819. import { jsGetAge, uParseTime } from "@/utils/tools";
  1820. import { getDataConfig } from "@/utils/data";
  1821. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  1822. import print from "print-js";
  1823. export default {
  1824. name: "BatchPrintOrderSix",
  1825. components: {
  1826. CheckBox,
  1827. BreadCrumb,
  1828. },
  1829. data() {
  1830. return {
  1831. crumbs: [
  1832. { path: false, name: "透析管理" },
  1833. { path: false, name: "批量打印" },
  1834. ],
  1835. way_arr: [],
  1836. consciousness_arr: [],
  1837. appetite_arr: [],
  1838. posture_arr: [],
  1839. sick_condition_arr: [],
  1840. precaution_arr: [],
  1841. intake_arr: [],
  1842. nutrition_arr: [],
  1843. blood_access_part_opera_name: "",
  1844. records: [
  1845. // 模拟有多条数据
  1846. // {
  1847. // monitor_records: [ {},{},{},{},{},{},{},{},{},{},{}, ],
  1848. // advices: [ {},{},{},{},{},{},{}, ],
  1849. // },
  1850. // {
  1851. // monitor_records: [],
  1852. // advices: [],
  1853. // },
  1854. ],
  1855. loading: false,
  1856. orgname: "",
  1857. bloodAccessParOpera: {},
  1858. anticoagulantsConfit: {},
  1859. dialysateFormulationOptions: {},
  1860. operatorMaps: {},
  1861. operators: [],
  1862. adminUser: [],
  1863. doctor_advices: [],
  1864. monitor_records: [],
  1865. advice_groups: [],
  1866. advice_groups_2: [],
  1867. blood_access_part: [],
  1868. complications: [
  1869. "低血压",
  1870. "高血压",
  1871. "心律失常",
  1872. "头晕",
  1873. "头痛",
  1874. "呕吐",
  1875. "抽搐",
  1876. "出血",
  1877. "心衰",
  1878. "腹痛",
  1879. ],
  1880. org_id: "",
  1881. displaceLiquiPartOptions: [],
  1882. };
  1883. },
  1884. created() {
  1885. var bloodAccessParOpera = getDataConfig(
  1886. "hemodialysis",
  1887. "vascular_access_desc"
  1888. );
  1889. this.way_arr = getDataConfig("hemodialysis", "way");
  1890. this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
  1891. this.appetite_arr = getDataConfig("hemodialysis", "appetite");
  1892. this.posture_arr = getDataConfig("hemodialysis", "posture");
  1893. this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
  1894. this.precaution_arr = getDataConfig("hemodialysis", "precaution");
  1895. this.intake_arr = getDataConfig("hemodialysis", "intake");
  1896. this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
  1897. var xtuser = this.$store.getters.xt_user;
  1898. this.orgname = xtuser.org.org_name;
  1899. this.org_id = this.$store.getters.xt_user.org.id;
  1900. // this.orgname = "遂溪方济医院";
  1901. this.modeOptions = this.$store.getters.treatment_mode;
  1902. // this.replacementWays = this.$store.getters.replacement_ways;
  1903. // this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
  1904. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
  1905. for(let i = 0 ; i < this.records.length ; i++){
  1906. console.log(i,'jhk')
  1907. this.blood_access_part_opera_name = this.bloodAccessParOperaName(
  1908. i.assessment_before_dislysis.blood_access_part_opera_id
  1909. );
  1910. }
  1911. console.log(this.bloodAccessParOpera, "this.bloodAccessParOpera");
  1912. for (var key in bloodAccessParOpera) {
  1913. this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
  1914. bloodAccessParOpera[key];
  1915. }
  1916. this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
  1917. var dialysateFormulationOptions = getDataConfig(
  1918. "hemodialysis",
  1919. "dialysate_formulation"
  1920. );
  1921. for (var key in dialysateFormulationOptions) {
  1922. this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
  1923. dialysateFormulationOptions[key];
  1924. }
  1925. this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
  1926. // const xtdate = this.$route.query && this.$route.query.xtdate;
  1927. // const xtno = this.$route.query && this.$route.query.xtno;
  1928. // if (typeof (xtdate) == "string" && xtdate.length > 0 && typeof (xtno) == "string" && xtno.length > 0) {
  1929. // this.queryParams.xtdate = xtdate;
  1930. // this.queryParams.xtno = xtno;
  1931. // this.getDialysisRecord();
  1932. // } else {
  1933. // this.$message.error("参数不齐");
  1934. // return false;
  1935. // }
  1936. },
  1937. mounted() {
  1938. this.loading = true;
  1939. var ids = this.$store.getters.temp_params.batch_print_dialysis_record_ids;
  1940. if (ids.length == 0) {
  1941. this.$router.back(-1);
  1942. return;
  1943. }
  1944. GetBatchPrintDialysisData(ids.join(","))
  1945. .then((rs) => {
  1946. var resp = rs.data;
  1947. if (resp.state == 1) {
  1948. this.records = this.records.concat(resp.data.schedules);
  1949. var tempmonitorflag = true;
  1950. for(let i=0;i<this.records.length;i++){
  1951. for(let j=0;j<this.records[i].monitor_records.length;j++){
  1952. this.records[i].monitor_records[j].end = ""
  1953. if (this.records[i].dialysis_order &&this.records[i].monitor_records[j].operate_time == this.records[i].dialysis_order.end_time) {
  1954. this.records[i].monitor_records[j].end = "【结束透析】回血"+this.records[i].dialysis_order.blood_drawing +"ml/min"
  1955. tempmonitorflag = false;
  1956. }
  1957. if(this.org_id!=10515 ){
  1958. if (tempmonitorflag && j == this.records[i].monitor_records.length - 1) {
  1959. this.records[i].monitor_records[j].end = "【结束透析】回血"+this.records[i].dialysis_order.blood_drawing +"ml/min"
  1960. }
  1961. if(this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end == ""){
  1962. this.records[i].monitor_records[this.records[i].monitor_records.length - 1].end = "【结束透析】回血"+this.records[i].dialysis_order.blood_drawing +"ml/min"
  1963. }
  1964. }
  1965. }
  1966. }
  1967. // for (const recordIndex in this.records) {
  1968. // var dlegh = 0;
  1969. // if (
  1970. // this.records[recordIndex].monitor_records &&
  1971. // this.records[recordIndex].monitor_records.length < 6
  1972. // ) {
  1973. // dlegh = 6 - this.records[recordIndex].monitor_records.length;
  1974. // } else {
  1975. // dlegh = 0;
  1976. // }
  1977. // if (dlegh > 0) {
  1978. // if (
  1979. // typeof this.records[recordIndex].monitor_records ===
  1980. // "undefined" ||
  1981. // this.records[recordIndex].monitor_records == null
  1982. // ) {
  1983. // this.records[recordIndex].monitor_records = [];
  1984. // }
  1985. // for (let index = 0; index < dlegh; index++) {
  1986. // this.records[recordIndex].monitor_records.push([]);
  1987. // }
  1988. // }
  1989. // this.records[recordIndex].isShowZero = false;
  1990. // if (this.records[recordIndex].patient.user_org_id == 9535) {
  1991. // this.records[recordIndex].isShowZero = true;
  1992. // }
  1993. // // if (delghTwo > 0) {
  1994. // // if (
  1995. // // typeof this.records[recordIndex].advices === "undefined" ||
  1996. // // this.records[recordIndex].advices == null
  1997. // // ) {
  1998. // // this.records[recordIndex].advices = [];
  1999. // // }
  2000. // // for (let index = 0; index < delghTwo; index++) {
  2001. // // this.records[recordIndex].advices.push([]);
  2002. // // }
  2003. // // }
  2004. // var childMap = {};
  2005. // for (const index in this.records[recordIndex].advices) {
  2006. // if (this.records[recordIndex].advices[index].parent_id == 0) {
  2007. // continue;
  2008. // }
  2009. // if (
  2010. // !(
  2011. // this.records[recordIndex].advices[index].parent_id in childMap
  2012. // )
  2013. // ) {
  2014. // childMap[this.records[recordIndex].advices[index].parent_id] =
  2015. // [];
  2016. // }
  2017. // childMap[this.records[recordIndex].advices[index].parent_id].push(
  2018. // this.records[recordIndex].advices[index]
  2019. // );
  2020. // }
  2021. // var advices = [];
  2022. // for (const index in this.records[recordIndex].advices) {
  2023. // if (this.records[recordIndex].advices[index].parent_id > 0) {
  2024. // continue;
  2025. // }
  2026. // var item = this.records[recordIndex].advices[index];
  2027. // if (item.id in childMap) {
  2028. // item.children = childMap[item.id];
  2029. // } else {
  2030. // item.children = [];
  2031. // }
  2032. // advices.push(item);
  2033. // }
  2034. // var leftAdvice = [];
  2035. // var rightAdvice = [];
  2036. // var adlen = advices.length;
  2037. // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
  2038. // for (var i = 0; i < halfLen; i++) {
  2039. // leftAdvice.push(advices[i]);
  2040. // var rightIndex = i + halfLen;
  2041. // rightAdvice.push(
  2042. // rightIndex in advices ? advices[i + halfLen] : []
  2043. // );
  2044. // }
  2045. // if (halfLen < 6) {
  2046. // var nl = 6 - leftAdvice.length;
  2047. // for (let index = 0; index < nl; index++) {
  2048. // leftAdvice.push([]);
  2049. // }
  2050. // var nl = 6 - rightAdvice.length;
  2051. // for (let index = 0; index < nl; index++) {
  2052. // rightAdvice.push([]);
  2053. // }
  2054. // }
  2055. // this.records[recordIndex].advices = [];
  2056. // for (var i = 0; i < halfLen; i++) {
  2057. // var item = [];
  2058. // item.push(leftAdvice[i]);
  2059. // item.push(rightAdvice[i]);
  2060. // this.records[recordIndex].advices.push(item);
  2061. // }
  2062. // }
  2063. console.log("数据我哦我我", this.records);
  2064. // this.records.forEach(o => {
  2065. // console.log(o,'jj')
  2066. // this.blood_access_part_opera_name = this.bloodAccessParOperaName(
  2067. // o.assessment_before_dislysis.blood_access_part_opera_id)
  2068. // })
  2069. this.operators = resp.data.medical_staffs;
  2070. if (this.operators.length > 0) {
  2071. var operatorsLen = this.operators.length;
  2072. for (var index = 0; index < operatorsLen; index++) {
  2073. this.$set(
  2074. this.operatorMaps,
  2075. this.operators[index].id,
  2076. this.operators[index]
  2077. );
  2078. }
  2079. }
  2080. this.adminUser = resp.data.users;
  2081. // console.log("使用者", this.adminUser);
  2082. this.loading = false;
  2083. } else {
  2084. this.loading = false;
  2085. this.$message.error(resp.msg);
  2086. }
  2087. })
  2088. .catch((err) => {
  2089. this.$message.error(err);
  2090. });
  2091. },
  2092. methods: {
  2093. getUnit: function (val) {
  2094. if (val.assessment_after_dislysis == null) {
  2095. return "";
  2096. } else if (val.assessment_after_dislysis != null) {
  2097. switch (val.assessment_after_dislysis.dialysis_intakes_unit) {
  2098. case 1:
  2099. return "g";
  2100. break;
  2101. case 2:
  2102. return "ml";
  2103. break;
  2104. case 3:
  2105. return 'kg'
  2106. break
  2107. }
  2108. }
  2109. },
  2110. QueryPartById: function (val) {
  2111. let vascular_access_part_name = "/";
  2112. const vascular_access = getDataConfig("hemodialysis", "vascular_access");
  2113. for (let i = 0; i < vascular_access.length; i++) {
  2114. if (vascular_access[i].id == val) {
  2115. vascular_access_part_name = vascular_access[i].name;
  2116. }
  2117. }
  2118. return vascular_access_part_name;
  2119. },
  2120. printAction: function () {
  2121. const style =
  2122. '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
  2123. printJS({
  2124. printable: "print_content",
  2125. type: "html",
  2126. documentTitle: " ",
  2127. style: style,
  2128. scanStyles: false,
  2129. });
  2130. },
  2131. complicationsOther: function (record) {
  2132. if (record == null || typeof record === "undefined") {
  2133. return "";
  2134. }
  2135. if (record.complication.length == 0) {
  2136. return "";
  2137. }
  2138. var complications = record.complication.split(",");
  2139. var complicationOthers = [];
  2140. for (const index in complications) {
  2141. if (
  2142. this.complications.indexOf(complications[index]) < 0 &&
  2143. complicationOthers.indexOf(complications[index]) < 0
  2144. ) {
  2145. complicationOthers.push(complications[index]);
  2146. }
  2147. }
  2148. return complicationOthers.join(",");
  2149. },
  2150. modeName(mode_id) {
  2151. if (mode_id in this.modeOptions) {
  2152. return this.modeOptions[mode_id].name;
  2153. }
  2154. return "";
  2155. },
  2156. anticoagulantName: function (key) {
  2157. if (key == null || typeof key === "undefined") {
  2158. return "";
  2159. }
  2160. var id = key.anticoagulant;
  2161. if (id in this.anticoagulantsConfit) {
  2162. return this.anticoagulantsConfit[id].name;
  2163. }
  2164. return "";
  2165. },
  2166. bloodAccessParOperaName(id) {
  2167. console.log(tihs.records, "hhh");
  2168. if (id in this.bloodAccessParOpera) {
  2169. return this.bloodAccessParOpera[id].name;
  2170. }
  2171. return "";
  2172. },
  2173. isBbloodAccessParOperaCheck(key, value) {
  2174. if (key == null || typeof key === "undefined") {
  2175. return false;
  2176. }
  2177. var id = key.blood_access_part_opera_id;
  2178. if (id in this.bloodAccessParOpera) {
  2179. return this.bloodAccessParOpera[id].name.indexOf(value) > -1;
  2180. }
  2181. return false;
  2182. },
  2183. isdialysateFormulatioCheck(key, value) {
  2184. if (key == null || typeof key === "undefined") {
  2185. return false;
  2186. }
  2187. var id = key.dialysate_formulation;
  2188. if (id in this.dialysateFormulationOptions) {
  2189. return this.dialysateFormulationOptions[id].name.indexOf(value) > -1;
  2190. }
  2191. return false;
  2192. },
  2193. isValueIndexOfCheck: function (record, key, value) {
  2194. if (record == null || record == undefined) {
  2195. return false;
  2196. } else {
  2197. return record[key].indexOf(value) > -1;
  2198. }
  2199. },
  2200. setAdminUserES(key, id) {
  2201. if (
  2202. typeof key === "undefined" ||
  2203. key == null ||
  2204. typeof key[id] === "undefined"
  2205. ) {
  2206. return "";
  2207. }
  2208. if (key[id] == 0) {
  2209. return "";
  2210. }
  2211. if (key[id] in this.operatorMaps) {
  2212. return this.operatorMaps[key[id]].es_url;
  2213. } else {
  2214. return "";
  2215. }
  2216. },
  2217. getFloat: function (x) {
  2218. if (x != ".") {
  2219. var f = Math.round(x * 100) / 100;
  2220. var s = f.toString();
  2221. var rs = s.indexOf(".");
  2222. if (rs <= 0) {
  2223. rs = s.length;
  2224. s += ".";
  2225. }
  2226. while (s.length <= rs + 1) {
  2227. s += "0";
  2228. }
  2229. return s;
  2230. } else {
  2231. return "0.0";
  2232. }
  2233. },
  2234. getAdminUser(key, id) {
  2235. // console.log("key", key);
  2236. // console.log("id", id);
  2237. if (
  2238. typeof key === "undefined" ||
  2239. key == null ||
  2240. typeof key[id] === "undefined"
  2241. ) {
  2242. return "";
  2243. }
  2244. if (key[id] === 0) {
  2245. return "";
  2246. }
  2247. if (key[id] === undefined) {
  2248. return "";
  2249. }
  2250. for (let i = 0; i < this.adminUser.length; i++) {
  2251. if (this.adminUser[i].id === key[id]) {
  2252. return this.adminUser[i].name;
  2253. }
  2254. }
  2255. },
  2256. jsGetAge: function (agetime) {
  2257. if (agetime == 0) {
  2258. return "";
  2259. }
  2260. return jsGetAge(uParseTime(agetime, "{y}-{m}-{d}"), "-");
  2261. },
  2262. getTime(value, temp) {
  2263. if (value != undefined) {
  2264. return uParseTime(value, temp);
  2265. }
  2266. return "";
  2267. },
  2268. // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
  2269. // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
  2270. isCheckBoxChecked: function (record, key, target_value) {
  2271. if (record == null || record == undefined) {
  2272. return false;
  2273. } else {
  2274. return record[key] == target_value;
  2275. }
  2276. },
  2277. // getAge: function (val) {
  2278. // if (val.age == 0) {
  2279. // if (val.birthday == 0) {
  2280. // return "";
  2281. // }
  2282. // return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
  2283. // } else {
  2284. // return val.age;
  2285. // }
  2286. // },
  2287. getAge: function(val) {
  2288. if (val.id_card_no) {
  2289. var thisLen = val.id_card_no.length
  2290. var birth = ''
  2291. if (thisLen == 15) {
  2292. birth = '19' + val.id_card_no.substr(6, 6)
  2293. } else {
  2294. birth = val.id_card_no.substr(6, 8)
  2295. }
  2296. var birthtwo =
  2297. birth.substr(0, 4) +
  2298. '-' +
  2299. birth.substr(4, 2) +
  2300. '-' +
  2301. birth.substr(6, 2)
  2302. var age = jsGetAge(birthtwo, '-')
  2303. return age
  2304. }
  2305. },
  2306. newAdviceGroupObject: function () {
  2307. return Object.assign(
  2308. {},
  2309. {
  2310. group_no: 0,
  2311. advices: [],
  2312. }
  2313. );
  2314. },
  2315. getNumber: function (record) {
  2316. console.log(record);
  2317. },
  2318. QueryPartById: function (val) {
  2319. let vascular_access_part_name = "/";
  2320. const vascular_access = getDataConfig(
  2321. "hemodialysis",
  2322. "vascular_access_desc"
  2323. );
  2324. for (let i = 0; i < vascular_access.length; i++) {
  2325. if (vascular_access[i].id == val) {
  2326. vascular_access_part_name = vascular_access[i].name;
  2327. }
  2328. }
  2329. return vascular_access_part_name;
  2330. },
  2331. getDisplaceLiquiPart: function (val) {
  2332. let displace_liqui_part_name = "/";
  2333. const displace_liqui_part = this.displaceLiquiPartOptions;
  2334. for (let i = 0; i < displace_liqui_part.length; i++) {
  2335. if (displace_liqui_part[i].id == val) {
  2336. displace_liqui_part_name = displace_liqui_part[i].name;
  2337. }
  2338. }
  2339. return displace_liqui_part_name;
  2340. },
  2341. },
  2342. };
  2343. </script>
  2344. <style scoped>
  2345. .print_page_main_content {
  2346. background-color: white;
  2347. width: 960px;
  2348. margin: 0 auto 50px;
  2349. padding: 0 0 0 0;
  2350. page-break-after: always;
  2351. }
  2352. .print_page_main_content .order-yy-name {
  2353. margin: auto;
  2354. text-align: center;
  2355. font-size: 20px;
  2356. letter-spacing: 5px;
  2357. }
  2358. .print_page_main_content .order_title {
  2359. text-align: center;
  2360. font-size: 23px;
  2361. line-height: 40px;
  2362. font-weight: 500;
  2363. }
  2364. .row {
  2365. font-size: 14px;
  2366. line-height: 20px;
  2367. padding: 5px 0;
  2368. }
  2369. .inline_block {
  2370. display: inline-block;
  2371. }
  2372. .under_line {
  2373. display: inline-block;
  2374. border-bottom: 1px solid #999;
  2375. text-align: center;
  2376. white-space: nowrap;
  2377. width: 50%;
  2378. }
  2379. .under_line2 {
  2380. display: inline-block;
  2381. border-bottom: 1px solid #999;
  2382. text-align: center;
  2383. /* white-space: nowrap; */
  2384. width: 50%;
  2385. }
  2386. .under_line::before {
  2387. content: "\00A0";
  2388. }
  2389. .under_line::after {
  2390. content: "\00A0";
  2391. }
  2392. .under_line_two {
  2393. display: inline-block;
  2394. border-bottom: 1px solid #999;
  2395. text-align: left;
  2396. white-space: nowrap;
  2397. width: 50%;
  2398. }
  2399. .under_line_two::before {
  2400. content: "\00A0";
  2401. }
  2402. .under_line_two::after {
  2403. content: "\00A0";
  2404. }
  2405. .flex {
  2406. display: -webkit-box;
  2407. display: -moz-box;
  2408. display: -ms-flexbox;
  2409. display: -webkit-flex;
  2410. display: flex;
  2411. align-items: center;
  2412. -webkit-align-items: center;
  2413. box-align: center;
  2414. -moz-box-align: center;
  2415. -webkit-box-align: center;
  2416. text-align: center;
  2417. -webkit-justify-content: space-between;
  2418. justify-content: space-between;
  2419. -moz-box-pack: space-between;
  2420. -webkit--moz-box-pack: space-between;
  2421. box-pack: space-between;
  2422. }
  2423. .print_page_main_content .proj_table {
  2424. width: 100%;
  2425. border: 1px solid;
  2426. border-collapse: collapse;
  2427. padding: 2px;
  2428. }
  2429. .print_page_main_content .proj_table tbody tr td {
  2430. border: 1px solid;
  2431. /* text-align: center; */
  2432. font-size: 16px;
  2433. padding: 6px 8px;
  2434. line-height: 30px;
  2435. }
  2436. .print_page_main_content .proj_table .inside_table {
  2437. width: 100%;
  2438. border: hidden; /* 解决边框冲突 */
  2439. border-collapse: collapse;
  2440. }
  2441. .print_page_main_content .proj_table .inside_table tr td {
  2442. border: 1px solid;
  2443. text-align: center;
  2444. font-size: 14px;
  2445. padding: 8px 5px;
  2446. line-height: 16px;
  2447. }
  2448. .print-table-no {
  2449. width: 100%;
  2450. text-align: center;
  2451. border-collapse: collapse;
  2452. font-size: 14px;
  2453. }
  2454. .es-img {
  2455. height: 30px;
  2456. }
  2457. .advice-name {
  2458. text-align: left !important;
  2459. line-height: 16px !important;
  2460. }
  2461. .advice-children {
  2462. display: flex;
  2463. }
  2464. .margin-bottom-300 {
  2465. margin-bottom: 450px;
  2466. }
  2467. .margin-bottom-600 {
  2468. margin-bottom: 600px;
  2469. }
  2470. .margin-bottom-900 {
  2471. margin-bottom: 900px;
  2472. }
  2473. .print-yema {
  2474. position: absolute;
  2475. left: 50%;
  2476. }
  2477. .print-yema2 {
  2478. position: absolute;
  2479. left: 50%;
  2480. }
  2481. .print-yema3 {
  2482. position: absolute;
  2483. left: 50%;
  2484. }
  2485. .print-yema4 {
  2486. position: absolute;
  2487. left: 50%;
  2488. }
  2489. .print-yema5 {
  2490. position: absolute;
  2491. left: 50%;
  2492. }
  2493. .did_checke::after {
  2494. content: "\221A";
  2495. font-size: 8px;
  2496. margin-left: 2px;
  2497. margin-top: 2px;
  2498. position: absolute;
  2499. }
  2500. </style>