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

bloodPresssWatch.vue 101KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <template v-if="this.template_id == 1">
  6. <el-button
  7. size="small"
  8. icon="el-icon-printer"
  9. :disabled="selecting_schs.length == 0"
  10. @click="batchPrintAction"
  11. type="primary"
  12. >打印</el-button
  13. >
  14. </template>
  15. <template v-if="this.template_id == 2 || this.template_id == 0 || this.template_id == 33">
  16. <div>
  17. <el-button
  18. :loading="loading"
  19. size="small"
  20. icon="el-icon-printer"
  21. @click="batchPrintAction"
  22. type="primary"
  23. >打印全部</el-button
  24. >
  25. <el-button
  26. :loading="loading"
  27. size="small"
  28. icon="el-icon-printer"
  29. @click="batchPrintActionOne"
  30. type="primary"
  31. style=""
  32. >打印记录单</el-button
  33. >
  34. <el-button
  35. :loading="loading"
  36. size="small"
  37. icon="el-icon-printer"
  38. @click="batchPrintActionTwo"
  39. type="primary"
  40. >打印医嘱单</el-button
  41. >
  42. </div>
  43. </template>
  44. <template v-if="this.template_id == 3">
  45. <el-button
  46. size="small"
  47. icon="el-icon-printer"
  48. :disabled="selecting_schs.length == 0"
  49. @click="batchPrintAction"
  50. type="primary"
  51. >打印</el-button
  52. >
  53. </template>
  54. <template v-if="this.template_id == 4">
  55. <el-button
  56. size="small"
  57. icon="el-icon-printer"
  58. :disabled="selecting_schs.length == 0"
  59. @click="batchPrintAction"
  60. type="primary"
  61. >打印</el-button
  62. >
  63. </template>
  64. <template v-if="this.template_id == 5">
  65. <div>
  66. <el-button
  67. :loading="loading"
  68. size="small"
  69. icon="el-icon-printer"
  70. @click="batchPrintAction"
  71. type="primary"
  72. >打印全部</el-button
  73. >
  74. <el-button
  75. :loading="loading"
  76. size="small"
  77. icon="el-icon-printer"
  78. @click="batchPrintActionOne"
  79. type="primary"
  80. style=""
  81. >打印记录单</el-button
  82. >
  83. <el-button
  84. :loading="loading"
  85. size="small"
  86. icon="el-icon-printer"
  87. @click="batchPrintActionTwo"
  88. type="primary"
  89. >打印医嘱单</el-button
  90. >
  91. </div>
  92. </template>
  93. <template v-if="this.template_id == 6 || this.template_id == 48 || this.template_id == 0">
  94. <el-button
  95. size="small"
  96. icon="el-icon-printer"
  97. :disabled="selecting_schs.length == 0"
  98. @click="batchPrintAction"
  99. type="primary"
  100. >打印</el-button>
  101. </template>
  102. <template v-if="this.template_id == 7">
  103. <el-button
  104. size="small"
  105. icon="el-icon-printer"
  106. :disabled="selecting_schs.length == 0"
  107. @click="batchPrintAction"
  108. type="primary"
  109. >批量打印</el-button
  110. >
  111. </template>
  112. <template v-if="this.template_id == 8">
  113. <el-button
  114. size="small"
  115. icon="el-icon-printer"
  116. :disabled="selecting_schs.length == 0"
  117. @click="batchPrintAction"
  118. type="primary"
  119. >批量打印</el-button
  120. >
  121. </template>
  122. <template v-if="this.template_id == 9">
  123. <el-button
  124. size="small"
  125. icon="el-icon-printer"
  126. :disabled="selecting_schs.length == 0"
  127. @click="batchPrintAction"
  128. type="primary"
  129. >批量打印</el-button
  130. >
  131. </template>
  132. <template v-if="this.template_id == 11">
  133. <el-button
  134. size="small"
  135. icon="el-icon-printer"
  136. :disabled="selecting_schs.length == 0"
  137. @click="batchPrintAction"
  138. type="primary"
  139. >批量打印</el-button>
  140. </template>
  141. <template v-if="this.template_id == 12">
  142. <el-button
  143. size="small"
  144. icon="el-icon-printer"
  145. :disabled="selecting_schs.length == 0"
  146. @click="batchPrintAction"
  147. type="primary"
  148. >批量打印</el-button
  149. >
  150. </template>
  151. <template v-if="this.template_id == 13">
  152. <el-button
  153. size="small"
  154. icon="el-icon-printer"
  155. :disabled="selecting_schs.length == 0"
  156. @click="batchPrintAction"
  157. type="primary"
  158. >批量打印</el-button
  159. >
  160. </template>
  161. <template v-if="this.template_id == 15">
  162. <el-button
  163. size="small"
  164. icon="el-icon-printer"
  165. :disabled="selecting_schs.length == 0"
  166. @click="batchPrintAction"
  167. type="primary"
  168. >批量打印</el-button
  169. >
  170. </template>
  171. <template v-if="this.template_id == 17">
  172. <el-button
  173. size="small"
  174. icon="el-icon-printer"
  175. :disabled="selecting_schs.length == 0"
  176. @click="batchPrintAction"
  177. type="primary"
  178. >批量打印</el-button
  179. >
  180. </template>
  181. <template v-if="this.template_id == 20">
  182. <el-button
  183. size="small"
  184. icon="el-icon-printer"
  185. :disabled="selecting_schs.length == 0"
  186. @click="batchPrintAction"
  187. type="primary"
  188. >批量打印</el-button
  189. >
  190. </template>
  191. <template v-if="this.template_id == 22">
  192. <div>
  193. <el-button
  194. :loading="loading"
  195. size="small"
  196. icon="el-icon-printer"
  197. @click="batchPrintAction"
  198. type="primary"
  199. >打印全部</el-button
  200. >
  201. <el-button
  202. :loading="loading"
  203. size="small"
  204. icon="el-icon-printer"
  205. @click="batchPrintActionOne"
  206. type="primary"
  207. style=""
  208. >打印记录单</el-button
  209. >
  210. <el-button
  211. :loading="loading"
  212. size="small"
  213. icon="el-icon-printer"
  214. @click="batchPrintActionTwo"
  215. type="primary"
  216. >打印医嘱单</el-button
  217. >
  218. </div>
  219. </template>
  220. <template v-if="this.template_id == 25">
  221. <el-button
  222. size="small"
  223. icon="el-icon-printer"
  224. :disabled="selecting_schs.length == 0"
  225. @click="batchPrintAction"
  226. type="primary"
  227. >批量打印</el-button
  228. >
  229. </template>
  230. <template v-if="this.template_id == 27">
  231. <el-button
  232. size="small"
  233. icon="el-icon-printer"
  234. :disabled="selecting_schs.length == 0"
  235. @click="batchPrintAction"
  236. type="primary"
  237. >批量打印</el-button
  238. >
  239. </template>
  240. <template v-if="this.template_id == 28">
  241. <el-button
  242. size="small"
  243. icon="el-icon-printer"
  244. :disabled="selecting_schs.length == 0"
  245. @click="batchPrintAction"
  246. type="primary"
  247. >批量打印</el-button
  248. >
  249. </template>
  250. <template v-if="this.template_id == 30">
  251. <el-button
  252. size="small"
  253. icon="el-icon-printer"
  254. :disabled="selecting_schs.length == 0"
  255. @click="batchPrintAction"
  256. type="primary"
  257. >批量打印</el-button
  258. >
  259. </template>
  260. <template v-if="this.template_id == 32">
  261. <el-button
  262. size="small"
  263. icon="el-icon-printer"
  264. :disabled="selecting_schs.length == 0"
  265. @click="batchPrintAction"
  266. type="primary"
  267. >批量打印</el-button
  268. >
  269. </template>
  270. <template v-if="this.template_id == 37">
  271. <el-button
  272. size="small"
  273. icon="el-icon-printer"
  274. :disabled="selecting_schs.length == 0"
  275. @click="batchPrintAction"
  276. type="primary"
  277. >批量打印</el-button
  278. >
  279. </template>
  280. <template v-if="this.template_id == 38">
  281. <el-button
  282. size="small"
  283. icon="el-icon-printer"
  284. :disabled="selecting_schs.length == 0"
  285. @click="batchPrintAction"
  286. type="primary"
  287. >批量打印</el-button
  288. >
  289. </template>
  290. <template v-if="this.template_id == 39">
  291. <el-button
  292. size="small"
  293. icon="el-icon-printer"
  294. :disabled="selecting_schs.length == 0"
  295. @click="batchPrintAction"
  296. type="primary"
  297. >批量打印</el-button
  298. >
  299. </template>
  300. <template v-if="this.template_id == 40">
  301. <el-button
  302. size="small"
  303. icon="el-icon-printer"
  304. :disabled="selecting_schs.length == 0"
  305. @click="batchPrintAction"
  306. type="primary"
  307. >批量打印</el-button
  308. >
  309. </template>
  310. <template v-if="this.template_id == 41">
  311. <el-button
  312. size="small"
  313. icon="el-icon-printer"
  314. :disabled="selecting_schs.length == 0"
  315. @click="batchPrintAction"
  316. type="primary"
  317. >批量打印</el-button
  318. >
  319. </template>
  320. <template v-if="this.template_id == 43">
  321. <el-button
  322. size="small"
  323. icon="el-icon-printer"
  324. :disabled="selecting_schs.length == 0"
  325. @click="batchPrintAction"
  326. type="primary"
  327. >批量打印</el-button
  328. >
  329. </template>
  330. <template v-if="this.template_id == 47 && this.org_id!=10318">
  331. <el-button
  332. size="small"
  333. icon="el-icon-printer"
  334. :disabled="selecting_schs.length == 0"
  335. @click="batchPrintAction"
  336. type="primary"
  337. >批量打印</el-button
  338. >
  339. </template>
  340. <template v-if="this.template_id == 51">
  341. <el-button
  342. size="small"
  343. icon="el-icon-printer"
  344. :disabled="selecting_schs.length == 0"
  345. @click="batchPrintAction"
  346. type="primary"
  347. >批量打印</el-button>
  348. </template>
  349. <template v-if="this.template_id == 53">
  350. <el-button
  351. size="small"
  352. icon="el-icon-printer"
  353. :disabled="selecting_schs.length == 0"
  354. @click="batchPrintAction"
  355. type="primary"
  356. >批量打印</el-button>
  357. </template>
  358. <template v-if="this.template_id == 59">
  359. <el-button
  360. size="small"
  361. icon="el-icon-printer"
  362. :disabled="selecting_schs.length == 0"
  363. @click="batchPrintAction"
  364. type="primary"
  365. >批量打印</el-button>
  366. </template>
  367. <template v-if="this.template_id == 60">
  368. <el-button
  369. size="small"
  370. icon="el-icon-printer"
  371. :disabled="selecting_schs.length == 0"
  372. @click="batchPrintAction"
  373. type="primary"
  374. >批量打印</el-button>
  375. </template>
  376. <template v-if="this.template_id == 61">
  377. <el-button
  378. size="small"
  379. icon="el-icon-printer"
  380. :disabled="selecting_schs.length == 0"
  381. @click="batchPrintAction"
  382. type="primary"
  383. >批量打印</el-button>
  384. </template>
  385. <template v-if="this.template_id == 62">
  386. <el-button
  387. size="small"
  388. icon="el-icon-printer"
  389. :disabled="selecting_schs.length == 0"
  390. @click="batchPrintAction"
  391. type="primary"
  392. >批量打印</el-button>
  393. </template>
  394. <template v-if="this.template_id == 65">
  395. <el-button
  396. size="small"
  397. icon="el-icon-printer"
  398. :disabled="selecting_schs.length == 0"
  399. @click="batchPrintAction"
  400. type="primary"
  401. >批量打印</el-button>
  402. </template>
  403. <template v-if="this.template_id == 66">
  404. <el-button
  405. size="small"
  406. icon="el-icon-printer"
  407. :disabled="selecting_schs.length == 0"
  408. @click="batchPrintAction"
  409. type="primary"
  410. >批量打印</el-button>
  411. </template>
  412. <template v-if="this.template_id == 67">
  413. <el-button
  414. size="small"
  415. icon="el-icon-printer"
  416. :disabled="selecting_schs.length == 0"
  417. @click="batchPrintAction"
  418. type="primary"
  419. >批量打印</el-button>
  420. </template>
  421. <template v-if="this.template_id == 68">
  422. <el-button
  423. size="small"
  424. icon="el-icon-printer"
  425. :disabled="selecting_schs.length == 0"
  426. @click="batchPrintAction"
  427. type="primary"
  428. >批量打印</el-button>
  429. </template>
  430. </div>
  431. <div class="app-container">
  432. <!-- <div class="filter-container">
  433. <el-input style="width: 400px;" v-model="searchKey" class="filter-item"/>
  434. <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
  435. </div>-->
  436. <div class="cell clearfix">
  437. <label class="title">
  438. <span class="name">{{
  439. search_mode == 1 ? "日期查询" : "病人查询"
  440. }}</span>
  441. :
  442. </label>
  443. <el-date-picker
  444. v-show="search_mode == 1"
  445. v-model="time"
  446. prefix-icon="el-icon-date"
  447. @change="changeTime"
  448. :editable="false"
  449. style="width: 250px;"
  450. type="date"
  451. placeholder="选择日期时间"
  452. align="right"
  453. :picker-options="pickerOptions1"
  454. format="yyyy-MM-dd"
  455. value-format="timestamp"
  456. ></el-date-picker>
  457. <el-input
  458. v-show="search_mode == 2"
  459. v-model="patient_search_keyword"
  460. style="width: 250px;"
  461. placeholder="病人名字、透析号"
  462. @keyup.enter.native='searchPatientAction'
  463. >
  464. <el-button
  465. slot="append"
  466. style="background-color: #409EFF; color: white; border-radius: 0;"
  467. icon="el-icon-search"
  468. @click="searchPatientAction"
  469. ></el-button>
  470. </el-input>
  471. <el-button type="primary" @click="changeSearchMode">{{
  472. search_mode == 1 ? "改为病人查询" : "改为日期查询"
  473. }}</el-button>
  474. </div>
  475. <div class="cell clearfix" v-show="search_mode == 2">
  476. <label class="title">
  477. <span class="name">日期查询</span>:
  478. </label>
  479. <el-date-picker
  480. v-model="listQuery.start_time"
  481. prefix-icon="el-icon-date"
  482. @change="changeStartTime"
  483. style="width: 250px;"
  484. type="date"
  485. placeholder="选择日期时间"
  486. align="right"
  487. :picker-options="pickerOptions1"
  488. format="yyyy-MM-dd"
  489. value-format="timestamp"
  490. ></el-date-picker>
  491. -
  492. <el-date-picker
  493. v-model="listQuery.end_time"
  494. prefix-icon="el-icon-date"
  495. @change="changeEndTime"
  496. style="width: 250px;"
  497. type="date"
  498. placeholder="选择日期时间"
  499. align="right"
  500. :picker-options="pickerOptions1"
  501. format="yyyy-MM-dd"
  502. value-format="timestamp"
  503. ></el-date-picker>
  504. </div>
  505. <div class="cell clearfix">
  506. <label class="title"> <span class="name">排班班次</span> : </label>
  507. <div class="time">
  508. <ul class>
  509. <li
  510. :class="item.value == schedulType ? 'active' : ''"
  511. @click="selectSchedulType(item.value)"
  512. v-for="item in schedulArr"
  513. :key="item.value"
  514. >
  515. {{ item.label }}
  516. </li>
  517. </ul>
  518. </div>
  519. </div>
  520. <div class="cell clearfix">
  521. <label class="title"> <span class="name">分区</span> : </label>
  522. <div class="time">
  523. <ul class>
  524. <li
  525. :class="item.id == partitionType ? 'active' : ''"
  526. @click="selectPartitionType(item.id)"
  527. v-for="item in partitionArr"
  528. :key="item.id"
  529. >
  530. {{ item.name }}
  531. </li>
  532. </ul>
  533. </div>
  534. </div>
  535. <div style="margin-left: 1050px; margin-bottom: 10px;">
  536. <el-button type="primary" size="small" @click="toExport">导出</el-button>
  537. </div>
  538. <el-table
  539. :row-style="{ color: '#303133' }"
  540. :header-cell-style="{
  541. backgroundColor: 'rgb(245, 247, 250)',
  542. color: '#606266'
  543. }"
  544. :data="SchedualPatientsTableData"
  545. style="width: 100%"
  546. v-loading="loading"
  547. border
  548. @current-change="clickCurrent"
  549. @selection-change="handleSelectionChange"
  550. highlight-current-row
  551. :cell-class-name="cellStyle"
  552. >
  553. <el-table-column
  554. type="selection"
  555. width="45"
  556. align="center"
  557. ></el-table-column>
  558. <el-table-column
  559. prop="number"
  560. label="机号"
  561. align="center"
  562. ></el-table-column>
  563. <el-table-column
  564. label="排班日期"
  565. prop="sch_time"
  566. align="center"
  567. width="120"
  568. ></el-table-column>
  569. <el-table-column
  570. prop="start_time"
  571. label="上机时间"
  572. align="center"
  573. width="80"
  574. ></el-table-column>
  575. <el-table-column
  576. prop="dialysis_no"
  577. label="透析号"
  578. align="center"
  579. ></el-table-column>
  580. <el-table-column prop="name" label="姓名" align="center">
  581. <template slot-scope="scope">
  582. <span style="color: #579ef8;width:100%;display:block;">{{ scope.row.name }}</span>
  583. </template>
  584. </el-table-column>
  585. <el-table-column
  586. prop="mode_name"
  587. label="透析模式"
  588. align="center"
  589. width="100"
  590. ></el-table-column>
  591. <el-table-column
  592. prop="target_ultrafiltration"
  593. label="目标超滤量"
  594. align="center"
  595. width="100"
  596. ></el-table-column>
  597. <el-table-column
  598. v-if="org_id == 10469"
  599. prop="prescription_water"
  600. label="处方脱水量"
  601. align="center"
  602. width="100"
  603. ></el-table-column>
  604. <el-table-column label="透前血压(kg)" align="center" width="120" prop="pressure_name">
  605. </el-table-column>
  606. <el-table-column
  607. prop="dry_weight"
  608. label="干体重(kg)"
  609. align="center"
  610. width="120"
  611. ></el-table-column>
  612. <el-table-column
  613. prop="dialysis_before_weight"
  614. label="透前称重(kg)"
  615. align="center"
  616. width="120"
  617. ></el-table-column>
  618. <el-table-column
  619. prop="dialysis_after_weight"
  620. label="透后称重(kg)"
  621. align="center"
  622. width="120"
  623. ></el-table-column>
  624. <el-table-column label="监测时间" align="center" width="120">
  625. <template slot-scope="scope">
  626. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  627. <td style="border-right: none; border-inline-end: none;text-align: center">
  628. {{getTimeOne(item.operate_time)}}
  629. </td>
  630. </tr>
  631. </template>
  632. </el-table-column>
  633. <el-table-column label="透中血压(mmHg)" align="center" width="180" v-if="isShow('血压')">
  634. <template slot-scope="scope">
  635. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  636. <td style="border-right: none; border-inline-end: none;text-align: center">
  637. <span v-if="item.systolic_blood_pressure>=90 && item.systolic_blood_pressure<=140"> {{item.systolic_blood_pressure}}</span>
  638. <span v-if="item.systolic_blood_pressure<90 || item.systolic_blood_pressure >140" style="color:red">{{item.systolic_blood_pressure}}</span>
  639. <span v-if="item.diastolic_blood_pressure >0">/</span>
  640. <span v-if="item.diastolic_blood_pressure >=60 &&item.diastolic_blood_pressure <=90">{{item.diastolic_blood_pressure}}</span>
  641. <span v-if="item.diastolic_blood_pressure <60 || item.diastolic_blood_pressure >90" style="color:red">{{item.diastolic_blood_pressure }}</span>
  642. </td>
  643. </tr>
  644. </template>
  645. </el-table-column>
  646. <el-table-column label="体温(℃)" align="center" width="120" v-if="isShow('体温')">
  647. <template slot-scope="scope">
  648. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  649. <td style="border-right: none; border-inline-end: none;text-align: center">
  650. {{ item.temperature ? item.temperature : "" }}
  651. </td>
  652. </tr>
  653. </template>
  654. </el-table-column>
  655. <el-table-column label="脉搏(次/分)" align="center" width="120" v-if="isShow('脉搏')">
  656. <template slot-scope="scope">
  657. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  658. <td style="border-right: none; border-inline-end: none;text-align: center">
  659. {{ item.pulse_frequency ? item.pulse_frequency : "" }}
  660. </td>
  661. </tr>
  662. </template>
  663. </el-table-column>
  664. <el-table-column label="呼吸频率(次/分)" align="center" width="120" v-if="isShow('呼吸频率')">
  665. <template slot-scope="scope">
  666. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  667. <td style="border-right: none; border-inline-end: none;text-align: center">
  668. {{ item.breathing_rate ? item.breathing_rate : "" }}
  669. </td>
  670. </tr>
  671. </template>
  672. </el-table-column>
  673. <el-table-column label="静脉压/动脉压(mmHg)" align="center" width="120">
  674. <template slot-scope="scope">
  675. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  676. <td style="border-right: none; border-inline-end: none;text-align: center">
  677. <span>{{item.venous_pressure ? item.venous_pressure : ""}}/
  678. {{item.arterial_pressure ? item.arterial_pressure : ""}}</span>
  679. </td>
  680. </tr>
  681. </template>
  682. </el-table-column>
  683. <el-table-column label="血流量" align="center" width="120" v-if="isShow('血流量')">
  684. <template slot-scope="scope">
  685. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  686. <td style="border-right: none; border-inline-end: none;text-align: center">
  687. {{item.blood_flow_volume?item.blood_flow_volume:""}}
  688. </td>
  689. </tr>
  690. </template>
  691. </el-table-column>
  692. <el-table-column label="跨膜压(mmHg)" align="center" width="120" v-if="isShow('跨膜压')">
  693. <template slot-scope="scope">
  694. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  695. <td style="border-right: none; border-inline-end: none;text-align: center">
  696. {{item.transmembrane_pressure?item.transmembrane_pressure:""}}
  697. </td>
  698. </tr>
  699. </template>
  700. </el-table-column>
  701. <el-table-column label="超滤量(ml)" align="center"
  702. v-if="
  703. isShow('超滤量') &&
  704. (template_id == 6 ||
  705. template_id == 9 ||
  706. template_id == 10 ||
  707. template_id == 11 ||
  708. template_id == 12 ||
  709. template_id == 13 ||
  710. template_id == 17 ||
  711. template_id == 18 ||
  712. template_id == 19 ||
  713. template_id == 20 ||
  714. template_id == 21 ||
  715. template_id == 22 ||
  716. template_id == 23 ||
  717. template_id == 24 ||
  718. template_id == 26 ||
  719. template_id == 27 ||
  720. template_id == 29 ||
  721. template_id == 30 ||
  722. template_id == 31 ||
  723. template_id == 32 ||
  724. template_id == 34 ||
  725. template_id == 35 ||
  726. template_id == 36 ||
  727. template_id == 38 ||
  728. template_id == 39 ||
  729. template_id == 40 ||
  730. template_id == 41 ||
  731. template_id == 43 ||
  732. template_id == 44 ||
  733. template_id == 46 ||
  734. template_id == 47 ||
  735. template_id == 48 ||
  736. template_id == 51 ||
  737. template_id == 53 ||
  738. template_id == 54 ||
  739. template_id == 56 ||
  740. template_id == 60 ||
  741. org_id == 10210 ||
  742. org_id == 9555 || org_id == 10387
  743. || org_id == 10432
  744. || org_id == 10445)
  745. ">
  746. <template slot-scope="scope">
  747. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  748. <td style="border-right: none; border-inline-end: none;text-align: center">
  749. {{item.ultrafiltration_volume?item.ultrafiltration_volume:""}}
  750. </td>
  751. </tr>
  752. </template>
  753. </el-table-column>
  754. <el-table-column label="超滤量(L)" align="center"
  755. v-if="
  756. isShow('超滤量') &&
  757. template_id != 6 &&
  758. template_id != 9 &&
  759. template_id != 10 &&
  760. template_id != 11 &&
  761. template_id != 12 &&
  762. template_id != 13 &&
  763. template_id != 17 &&
  764. template_id != 18 &&
  765. template_id != 19 &&
  766. template_id != 20 &&
  767. template_id != 21 &&
  768. template_id != 22 &&
  769. template_id != 23 &&
  770. template_id != 24 &&
  771. template_id != 26 &&
  772. template_id != 27 &&
  773. template_id != 29 &&
  774. template_id != 30 &&
  775. template_id != 31 &&
  776. template_id != 32 &&
  777. template_id != 34 &&
  778. template_id != 35 &&
  779. template_id != 36 &&
  780. template_id != 38 &&
  781. template_id != 39 &&
  782. template_id != 40 &&
  783. template_id != 41 &&
  784. template_id != 43 &&
  785. template_id != 44 &&
  786. template_id != 46 &&
  787. template_id != 47 &&
  788. template_id != 48 &&
  789. template_id != 51 &&
  790. template_id != 53 &&
  791. template_id != 54 &&
  792. template_id != 56 &&
  793. template_id != 60 &&
  794. org_id!= 10210 &&
  795. org_id != 9555 && org_id!=10387
  796. && org_id!=10432 && org_id!=10445
  797. ">
  798. <template slot-scope="scope">
  799. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  800. <td style="border-right: none; border-inline-end: none;text-align: center">
  801. {{item.ultrafiltration_volume?item.ultrafiltration_volume:""}}
  802. </td>
  803. </tr>
  804. </template>
  805. </el-table-column>
  806. <el-table-column label="超滤率(ml/h)" align="center"
  807. v-if="isShow('超滤率') &&
  808. (template_id == 6 ||
  809. template_id == 10 ||
  810. template_id == 11 ||
  811. template_id == 12 ||
  812. template_id == 13 ||
  813. template_id == 17 ||
  814. template_id == 18 ||
  815. template_id == 19 ||
  816. template_id == 20 ||
  817. template_id == 21 ||
  818. template_id == 22 ||
  819. template_id == 23 ||
  820. template_id == 24 ||
  821. template_id == 26 ||
  822. template_id == 29 ||
  823. template_id == 30 ||
  824. template_id == 31 ||
  825. template_id == 34 ||
  826. template_id == 35 ||
  827. template_id == 38 ||
  828. template_id == 41 ||
  829. template_id == 43 ||
  830. template_id == 44 ||
  831. template_id == 46 ||
  832. template_id == 48 ||
  833. template_id == 53 ||
  834. template_id == 54 ||
  835. template_id == 56 ||
  836. template_id == 47 ||
  837. template_id == 60 ||
  838. org_id == 10432 ||
  839. org_id == 10445)
  840. ">
  841. <template slot-scope="scope">
  842. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  843. <td style="border-right: none; border-inline-end: none;text-align: center">
  844. {{item.ultrafiltration_rate? item.ultrafiltration_rate: ""}}
  845. </td>
  846. </tr>
  847. </template>
  848. </el-table-column>
  849. <el-table-column label="超滤率(L/h)" align="center"
  850. v-if="
  851. isShow('超滤率') &&
  852. template_id != 6 &&
  853. template_id != 10 &&
  854. template_id != 11 &&
  855. template_id != 12 &&
  856. template_id != 13 &&
  857. template_id != 17 &&
  858. template_id != 18 &&
  859. template_id != 19 &&
  860. template_id != 20 &&
  861. template_id != 21 &&
  862. template_id != 22 &&
  863. template_id != 23 &&
  864. template_id != 24 &&
  865. template_id != 26 &&
  866. template_id != 29 &&
  867. template_id != 30 &&
  868. template_id != 31 &&
  869. template_id != 34 &&
  870. template_id != 35 &&
  871. template_id != 38 &&
  872. template_id != 41 &&
  873. template_id != 43 &&
  874. template_id != 44 &&
  875. template_id != 46 &&
  876. template_id != 53 &&
  877. template_id != 54 &&
  878. template_id != 56 &&
  879. template_id != 48 &&
  880. template_id != 47 &&
  881. template_id != 60 &&
  882. org_id!=10432 &&
  883. org_id!=10445
  884. "
  885. >
  886. <template slot-scope="scope">
  887. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  888. <td style="border-right: none; border-inline-end: none;text-align: center">
  889. {{item.ultrafiltration_rate? item.ultrafiltration_rate: ""}}
  890. </td>
  891. </tr>
  892. </template>
  893. </el-table-column>
  894. <el-table-column label="钠浓度(mmol/L)" align="center" v-if="isShow('钠浓度')">
  895. <template slot-scope="scope">
  896. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  897. <td style="border-right: none; border-inline-end: none;text-align: center">
  898. {{item.sodium_concentration? item.sodium_concentration: ""}}
  899. </td>
  900. </tr>
  901. </template>
  902. </el-table-column>
  903. <el-table-column label="透析液温度(℃)" align="center" v-if="isShow('透析液温度')">
  904. <template slot-scope="scope">
  905. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  906. <td style="border-right: none; border-inline-end: none;text-align: center">
  907. {{item.dialysate_temperature? item.dialysate_temperature: ""}}
  908. </td>
  909. </tr>
  910. </template>
  911. </el-table-column>
  912. <el-table-column label="置换率(ml/min)" align="center"
  913. v-if="
  914. isShow('置换率') &&
  915. (template_id == 6 ||
  916. template_id == 10 ||
  917. template_id == 11 ||
  918. template_id == 20 ||
  919. template_id == 26 ||
  920. template_id == 29 ||
  921. template_id == 48 ||
  922. template_id == 53 ||
  923. template_id == 54 ||
  924. template_id == 56 ||
  925. org_id ==10432 ||
  926. org_id ==10445
  927. )
  928. ">
  929. <template slot-scope="scope">
  930. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  931. <td style="border-right: none; border-inline-end: none;text-align: center">
  932. {{item.replacement_rate? item.replacement_rate: ""}}
  933. </td>
  934. </tr>
  935. </template>
  936. </el-table-column>
  937. <el-table-column label="置换率(L/h)" align="center"
  938. v-if="
  939. isShow('置换率') &&
  940. template_id != 6 &&
  941. template_id != 10 &&
  942. template_id != 11 &&
  943. template_id != 20 &&
  944. template_id != 26 &&
  945. template_id != 29 &&
  946. template_id != 48 &&
  947. template_id != 53 &&
  948. template_id != 54 &&
  949. template_id != 56 &&
  950. org_id !=10432 &&
  951. org_id !=10445
  952. "
  953. >
  954. <template slot-scope="scope">
  955. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  956. <td style="border-right: none; border-inline-end: none;text-align: center">
  957. {{item.replacement_rate? item.replacement_rate: ""}}
  958. </td>
  959. </tr>
  960. </template>
  961. </el-table-column>
  962. <el-table-column label="置换量(ml/h)" align="center"
  963. v-if="isShow('置换量') && (template_id == 43 || template_id == 48)"
  964. >
  965. <template slot-scope="scope">
  966. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  967. <td style="border-right: none; border-inline-end: none;text-align: center">
  968. {{item.displacement_quantity? item.displacement_quantity: ""}}
  969. </td>
  970. </tr>
  971. </template>
  972. </el-table-column>
  973. <el-table-column label="置换量(ml)" align="center"
  974. v-if="
  975. isShow('置换量') &&
  976. ((template_id == 6 &&
  977. org_id != 9919 &&
  978. org_id != 10191 &&
  979. template_id != 43 &&
  980. template_id != 47) ||
  981. org_id == 9779 ||
  982. template_id == 11 ||
  983. template_id == 20 ||
  984. template_id == 26 ||
  985. template_id == 29 ||
  986. template_id == 53 ||
  987. template_id == 54 ||
  988. template_id == 56 ||
  989. template_id == 48 ||
  990. org_id == 10340 ||
  991. org_id == 10432 ||
  992. org_id == 10445)
  993. ">
  994. <template slot-scope="scope">
  995. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  996. <td style="border-right: none; border-inline-end: none;text-align: center">
  997. {{item.displacement_quantity? item.displacement_quantity: ""}}
  998. </td>
  999. </tr>
  1000. </template>
  1001. </el-table-column>
  1002. <el-table-column label="置换量(L)" align="center"
  1003. v-if="
  1004. isShow('置换量') &&
  1005. (template_id != 6 || org_id == 9919 || org_id == 10191) &&
  1006. template_id != 9779 &&
  1007. template_id != 11 &&
  1008. template_id != 20 &&
  1009. template_id != 26 &&
  1010. template_id != 29 &&
  1011. template_id != 43 &&
  1012. template_id != 53 &&
  1013. template_id != 54 &&
  1014. template_id != 56 &&
  1015. template_id != 48 &&
  1016. org_id !=10340 &&
  1017. org_id !=10432 &&
  1018. org_id !=10445
  1019. "
  1020. >
  1021. <template slot-scope="scope">
  1022. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1023. <td style="border-right: none; border-inline-end: none;text-align: center">
  1024. {{item.displacement_quantity? item.displacement_quantity: ""}}
  1025. </td>
  1026. </tr>
  1027. </template>
  1028. </el-table-column>
  1029. <el-table-column label="SpO₂(%)" align="center"
  1030. v-if="
  1031. isShow('SpO₂') &&
  1032. template_id != 6 &&
  1033. template_id != 10 &&
  1034. template_id != 11
  1035. "
  1036. >
  1037. <template slot-scope="scope">
  1038. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1039. <td style="border-right: none; border-inline-end: none;text-align: center">
  1040. {{item.blood_oxygen_saturation? item.blood_oxygen_saturation: ""}}
  1041. </td>
  1042. </tr>
  1043. </template>
  1044. </el-table-column>
  1045. <el-table-column label="电导度(mS/cm)" align="center"
  1046. v-if="isShow('电导度')">
  1047. <template slot-scope="scope">
  1048. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1049. <td style="border-right: none; border-inline-end: none;text-align: center">
  1050. {{item.conductivity? item.conductivity: ""}}
  1051. </td>
  1052. </tr>
  1053. </template>
  1054. </el-table-column>
  1055. <el-table-column label="置换液流量(ml/h)" align="center"
  1056. v-if="isShow('置换液流量') && template_id != 27"
  1057. >
  1058. <!-- 数据的遍历 scope.row就代表数据的每一个对象-->
  1059. <template slot-scope="scope">
  1060. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1061. <td style="border-right: none; border-inline-end: none;text-align: center">
  1062. {{item.displacement_flow_quantity? item.displacement_flow_quantity: ""}}
  1063. </td>
  1064. </tr>
  1065. </template>
  1066. </el-table-column>
  1067. <el-table-column label="置换液流量(ml/min)" align="center"
  1068. v-if="isShow('置换液流量') && template_id == 27"
  1069. >
  1070. <template slot-scope="scope">
  1071. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1072. <td style="border-right: none; border-inline-end: none;text-align: center">
  1073. {{item.displacement_flow_quantity? item.displacement_flow_quantity: ""}}
  1074. </td>
  1075. </tr>
  1076. </template>
  1077. </el-table-column>
  1078. <el-table-column label="透析液流量(ml/h)" align="center" v-if="isShow('透析液流量')">
  1079. <template slot-scope="scope">
  1080. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1081. <td style="border-right: none; border-inline-end: none;text-align: center">
  1082. {{item.dialysate_flow? item.dialysate_flow: ""}}
  1083. </td>
  1084. </tr>
  1085. </template>
  1086. </el-table-column>
  1087. <el-table-column label="肝素用量余量(ml)" align="center" v-if="isShow('肝素用量余量')">
  1088. <template slot-scope="scope">
  1089. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1090. <td style="border-right: none; border-inline-end: none;text-align: center">
  1091. {{item.heparin? item.heparin: ""}}
  1092. </td>
  1093. </tr>
  1094. </template>
  1095. </el-table-column>
  1096. <el-table-column label="血压监测部位" align="center" v-if="isShow('血压监测部位')">
  1097. <template slot-scope="scope">
  1098. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1099. <td style="border-right: none; border-inline-end: none;text-align: center">
  1100. {{ getBloodPressure(item.blood_pressure_monitoring_site) }}
  1101. </td>
  1102. </tr>
  1103. </template>
  1104. </el-table-column>
  1105. <el-table-column label="并发症" align="center" v-if="isShow('并发症')">
  1106. <template slot-scope="scope">
  1107. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1108. <td style="border-right: none; border-inline-end: none;text-align: center">
  1109. {{ getComplication(item.complication) }}
  1110. </td>
  1111. </tr>
  1112. </template>
  1113. </el-table-column>
  1114. <el-table-column label="累计血容量(ml)" align="center"
  1115. v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671 && org_id != 10340"
  1116. >
  1117. <template slot-scope="scope">
  1118. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1119. <td style="border-right: none; border-inline-end: none;text-align: center">
  1120. {{item.accumulated_blood_volume}}
  1121. </td>
  1122. </tr>
  1123. </template>
  1124. </el-table-column>
  1125. <el-table-column label="累计血容量(L)" align="center"
  1126. v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9538 || org_id == 9671 || org_id == 10340)"
  1127. >
  1128. <template slot-scope="scope">
  1129. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1130. <td style="border-right: none; border-inline-end: none;text-align: center">
  1131. {{item.accumulated_blood_volume}}
  1132. </td>
  1133. </tr>
  1134. </template>
  1135. </el-table-column>
  1136. <el-table-column label="血容量" align="center" v-if="isShow('血容量')">
  1137. <template slot-scope="scope">
  1138. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1139. <td style="border-right: none; border-inline-end: none;text-align: center">
  1140. {{item.accumulated_blood_volume}}
  1141. </td>
  1142. </tr>
  1143. </template>
  1144. </el-table-column>
  1145. <el-table-column label="血温监测" align="center" v-if="isShow('血温监测')">
  1146. <template slot-scope="scope">
  1147. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1148. <td style="border-right: none; border-inline-end: none;text-align: center">
  1149. {{item.blood_temperature}}
  1150. </td>
  1151. </tr>
  1152. </template>
  1153. </el-table-column>
  1154. <el-table-column label="尿素监测" align="center" v-if="isShow('尿素监测')" >
  1155. <template slot-scope="scope">
  1156. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1157. <td style="border-right: none; border-inline-end: none;text-align: center">
  1158. {{item.urea_monitoring}}
  1159. </td>
  1160. </tr>
  1161. </template>
  1162. </el-table-column>
  1163. <el-table-column label="血压监测" align="center" v-if="isShow('血压监测')">
  1164. <template slot-scope="scope">
  1165. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1166. <td style="border-right: none; border-inline-end: none;text-align: center">
  1167. {{item.blood_monitor}}
  1168. </td>
  1169. </tr>
  1170. </template>
  1171. </el-table-column>
  1172. <el-table-column label="肝素量(mg)" align="center" v-if="isShow('肝素量')">
  1173. <template slot-scope="scope">
  1174. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1175. <td style="border-right: none; border-inline-end: none;text-align: center">
  1176. {{item.heparin_amount}}
  1177. </td>
  1178. </tr>
  1179. </template>
  1180. </el-table-column>
  1181. <el-table-column label="脱水(L)" align="center" v-if="isShow('脱水')">
  1182. <template slot-scope="scope">
  1183. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1184. <td style="border-right: none; border-inline-end: none;text-align: center">
  1185. {{item.dehydration}}
  1186. </td>
  1187. </tr>
  1188. </template>
  1189. </el-table-column>
  1190. <el-table-column label="KT/V" align="center"
  1191. v-if="isShow('KT/V') &&(org_id == 9987 || org_id == 10215 || org_id == 9800 || org_id == 9671 || org_id == 9675)"
  1192. >
  1193. <template slot-scope="scope">
  1194. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1195. <td style="border-right: none; border-inline-end: none;text-align: center">
  1196. {{item.ktv}}
  1197. </td>
  1198. </tr>
  1199. </template>
  1200. </el-table-column>
  1201. </el-table>
  1202. <el-pagination
  1203. align="right"
  1204. @size-change="handleSizeChange"
  1205. @current-change="handleCurrentChange"
  1206. :page-sizes="[20, 40, 60, 80,100]"
  1207. :page-size="10"
  1208. background
  1209. style="margin-top:20px;"
  1210. layout="total, sizes, prev, pager, next, jumper"
  1211. :total="total"
  1212. ></el-pagination>
  1213. </div>
  1214. </div>
  1215. </template>
  1216. <script>
  1217. import UploadExcel from '@/xt_pages/components/UploadExcel'
  1218. import { getDataConfig } from "@/utils/data";
  1219. import store from "@/store";
  1220. import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
  1221. import { parseTime } from "@/utils";
  1222. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  1223. import { getPrintTemplate } from "@/api/data";
  1224. import { uParseTime } from '@/utils/tools'
  1225. const moment = require('moment')
  1226. export default {
  1227. name: "Patient",
  1228. components: {
  1229. UploadExcel,
  1230. },
  1231. data() {
  1232. return {
  1233. crumbs: [
  1234. { path: false, name: "透析管理" },
  1235. { path: false, name: "透析监测" }
  1236. ],
  1237. loading: false,
  1238. time: "",
  1239. search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
  1240. patient_search_keyword: "",
  1241. SchedualPatientsTableData: [],
  1242. active: true,
  1243. schedulType: 0,
  1244. schedulArr: [
  1245. { value: 0, label: "全部" },
  1246. { value: 1, label: "上午" },
  1247. { value: 2, label: "下午" },
  1248. { value: 3, label: "晚上" }
  1249. ],
  1250. template_id: 0,
  1251. partitionType: 0,
  1252. labelArr: ["第1次", "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
  1253. pickerOptions1: {
  1254. shortcuts: [
  1255. {
  1256. text: "今天",
  1257. onClick(picker) {
  1258. var date = new Date();
  1259. var year = date.getFullYear();
  1260. var month = date.getMonth() + 1;
  1261. var day = date.getDate();
  1262. if (month < 10) {
  1263. month = "0" + month;
  1264. }
  1265. if (day < 10) {
  1266. day = "0" + day;
  1267. }
  1268. var nowDate = year + "-" + month + "-" + day;
  1269. var date1 = new Date(nowDate + " 00:00:00");
  1270. picker.$emit("pick", date1.getTime());
  1271. }
  1272. },
  1273. {
  1274. text: "昨天",
  1275. onClick(picker) {
  1276. var d = new Date();
  1277. d.setTime(d.getTime() - 3600 * 1000 * 24);
  1278. var date = d;
  1279. var year = date.getFullYear();
  1280. var month = date.getMonth() + 1;
  1281. var day = date.getDate();
  1282. if (month < 10) {
  1283. month = "0" + month;
  1284. }
  1285. if (day < 10) {
  1286. day = "0" + day;
  1287. }
  1288. var nowDate = year + "-" + month + "-" + day;
  1289. var date1 = new Date(nowDate + " 00:00:00");
  1290. picker.$emit("pick", date1.getTime());
  1291. }
  1292. },
  1293. {
  1294. text: "一周前",
  1295. onClick(picker) {
  1296. var d = new Date();
  1297. d.setTime(d.getTime() - 3600 * 1000 * 24 * 7);
  1298. var date = d;
  1299. var year = date.getFullYear();
  1300. var month = date.getMonth() + 1;
  1301. var day = date.getDate();
  1302. if (month < 10) {
  1303. month = "0" + month;
  1304. }
  1305. if (day < 10) {
  1306. day = "0" + day;
  1307. }
  1308. var nowDate = year + "-" + month + "-" + day;
  1309. var date1 = new Date(nowDate + " 00:00:00");
  1310. picker.$emit("pick", date1.getTime());
  1311. }
  1312. },
  1313. {
  1314. text: "清空",
  1315. onClick(picker) {
  1316. picker.$emit("pick");
  1317. }
  1318. }
  1319. ]
  1320. },
  1321. total: 0,
  1322. listQuery: {
  1323. page: 1,
  1324. limit: 20,
  1325. schedul_type: 0,
  1326. partition_type: 0,
  1327. schedul_time: "",
  1328. keywords: "",
  1329. start_time:"",
  1330. end_time:"",
  1331. },
  1332. selecting_schs: [],
  1333. partitionArr: [],
  1334. bloodPressureMmonitoringSite: [],
  1335. complicationList: [],
  1336. template_id:0,
  1337. org_id:0,
  1338. };
  1339. },
  1340. created() {
  1341. this.template_id = this.$store.getters.xt_user.template_info.template_id;
  1342. this.org_id = this.$store.getters.xt_user.template_info.org_id;
  1343. this.bloodPressureMmonitoringSite = getDataConfig(
  1344. "hemodialysis",
  1345. "blood_pressure_monitoring_site"
  1346. );
  1347. this.complicationList = getDataConfig("hemodialysis", "complication");
  1348. var search_mode = this.$store.getters.search_mode
  1349. var search_value = this.$store.getters.search_value
  1350. console.log('search_mode',search_mode)
  1351. if(search_mode == 2){
  1352. this.search_mode = search_mode
  1353. if(search_value != ''){
  1354. this.patient_search_keyword = search_value
  1355. this.listQuery.keywords = search_value
  1356. this.getSchedualPatientList();
  1357. var date = new Date();
  1358. this.time = date;
  1359. var year = date.getFullYear();
  1360. var month = date.getMonth() + 1;
  1361. var day = date.getDate();
  1362. if (month < 10) {
  1363. month = "0" + month;
  1364. }
  1365. if (day < 10) {
  1366. day = "0" + day;
  1367. }
  1368. var nowDate = year + "-" + month + "-" + day;
  1369. var date = new Date(nowDate + " 00:00:00");
  1370. this.listQuery.schedul_time = date.getTime();
  1371. this.getAllZone();
  1372. this.getTemplateInfo();
  1373. }else {
  1374. var start_month = moment().startOf('month').format('YYYY-MM-DD')
  1375. var start_time = this.getTimestamp(start_month)
  1376. this.listQuery.start_time = start_time
  1377. var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
  1378. var end_time = this.getTimestamp(end_month)
  1379. this.listQuery.end_time = end_time
  1380. this.getSchedualPatientList()
  1381. this.getAllZone();
  1382. this.getTemplateInfo();
  1383. }
  1384. }else {
  1385. var date = new Date();
  1386. this.time = date;
  1387. var year = date.getFullYear();
  1388. var month = date.getMonth() + 1;
  1389. var day = date.getDate();
  1390. if (month < 10) {
  1391. month = "0" + month;
  1392. }
  1393. if (day < 10) {
  1394. day = "0" + day;
  1395. }
  1396. var nowDate = year + "-" + month + "-" + day;
  1397. var date = new Date(nowDate + " 00:00:00");
  1398. this.listQuery.schedul_time = date.getTime();
  1399. var start_month = moment().startOf('month').format('YYYY-MM-DD')
  1400. var start_time = this.getTimestamp(start_month)
  1401. this.listQuery.start_time = start_time
  1402. var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
  1403. var end_time = this.getTimestamp(end_month)
  1404. this.listQuery.end_time = end_time
  1405. this.getAllZone();
  1406. this.getSchedualPatientList();
  1407. this.getTemplateInfo();
  1408. }
  1409. // this.template_id = this.$store.getters.xt_user.template_info.template_id;
  1410. },
  1411. methods: {
  1412. getTemplateInfo() {
  1413. getPrintTemplate().then(response => {
  1414. if (response.data.state == 0) {
  1415. this.$message.error(response.data.msg);
  1416. return false;
  1417. } else {
  1418. var template = response.data.data.template;
  1419. this.template_id = template.template_id;
  1420. console.log("templage-i233232323232322323233232323223",this.template_id)
  1421. }
  1422. });
  1423. },
  1424. clickCurrent(val) {
  1425. console.log(val);
  1426. this.$router.push({
  1427. path: "/dialysis/details",
  1428. query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
  1429. });
  1430. },
  1431. handleSelectionChange(val) {
  1432. this.selecting_schs = val;
  1433. },
  1434. selectSchedulType(scheduleType) {
  1435. // alert(scheduleType);/
  1436. this.schedulType = scheduleType;
  1437. this.listQuery.schedul_type = scheduleType;
  1438. this.getSchedualPatientList();
  1439. },
  1440. selectPartitionType(partitionType) {
  1441. this.partitionType = partitionType;
  1442. this.listQuery.partition_type = partitionType;
  1443. this.getSchedualPatientList();
  1444. },
  1445. changeTime() {
  1446. this.listQuery.start_time = ""
  1447. this.listQuery.end_time = ""
  1448. this.listQuery.start_time = this.getTimestampOne(this.time)
  1449. this.listQuery.end_time = this.getTimestampOne(this.time)
  1450. this.listQuery.schedul_time = this.time;
  1451. this.getSchedualPatientList();
  1452. },
  1453. changeStartTime(){
  1454. this.getSchedualPatientList()
  1455. },
  1456. changeEndTime(){
  1457. this.getSchedualPatientList()
  1458. },
  1459. getAllZone: function() {
  1460. GetAllZone().then(response => {
  1461. if (response.data.state == 0) {
  1462. this.$message.error(response.data.msg);
  1463. return false;
  1464. } else {
  1465. this.partitionArr = response.data.data.zone;
  1466. this.partitionArr.unshift({ id: 0, name: "全部" });
  1467. }
  1468. });
  1469. },
  1470. getTimestamp(time) { //把时间日期转成时间戳
  1471. return (new Date(time)).getTime() - 28800000
  1472. },
  1473. getTimestampOne(time) { //把时间日期转成时间戳
  1474. return (new Date(time)).getTime()
  1475. },
  1476. getSchedualPatientList: function() {
  1477. this.loading = true;
  1478. if (this.search_mode == 1) {
  1479. this.listQuery.keywords = "";
  1480. } else {
  1481. this.listQuery.schedul_time = "";
  1482. }
  1483. console.log("params332322332323232",this.listQuery.start_time)
  1484. this.SchedualPatientsTableData = [];
  1485. getSchedualPatient(this.listQuery).then(response => {
  1486. if (response.data.state == 0) {
  1487. this.loading = false;
  1488. this.$message.error(response.data.msg);
  1489. return false;
  1490. } else {
  1491. this.loading = false;
  1492. this.total = response.data.data.total;
  1493. console.log("世界文化遗产",response.data.data.schedule)
  1494. for (let i = 0; i < response.data.data.schedule.length; i++) {
  1495. if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
  1496. const SchedualPatientsTable = {
  1497. bp: []
  1498. };
  1499. if(response.data.data.schedule[i].dialysis_order!=null){
  1500. SchedualPatientsTable["start_time"] = response.data.data.schedule[i].dialysis_order.start_time ? parseTime(response.data.data.schedule[i].dialysis_order.start_time,"{h}:{i}") : '';
  1501. }
  1502. SchedualPatientsTable["sch_id"] = response.data.data.schedule[i].id;
  1503. SchedualPatientsTable["sch_time_int"] = response.data.data.schedule[i].schedule_date;
  1504. SchedualPatientsTable["sch_time"] = parseTime(response.data.data.schedule[i].schedule_date,"{y}-{m}-{d}");
  1505. SchedualPatientsTable["mode_id"] = response.data.data.schedule[i].mode_id
  1506. if(response.data.data.schedule[i].patient!=null){
  1507. SchedualPatientsTable["dialysis_no"] = response.data.data.schedule[i].patient.dialysis_no;
  1508. SchedualPatientsTable["name"] = response.data.data.schedule[i].patient.name;
  1509. SchedualPatientsTable["gender"] = response.data.data.schedule[i].patient.gender;
  1510. SchedualPatientsTable["source"] = response.data.data.schedule[i].patient.source;
  1511. SchedualPatientsTable["patient_id"] = response.data.data.schedule[i].patient_id;
  1512. }
  1513. SchedualPatientsTable["number"] = response.data.data.schedule[i].device_number.number;
  1514. if(response.data.data.schedule[i].treatment_mode!=null){
  1515. SchedualPatientsTable["mode_name"] = response.data.data.schedule[i].treatment_mode.name;
  1516. }
  1517. if(response.data.data.schedule[i].prescription!=null){
  1518. SchedualPatientsTable["target_ultrafiltration"] = response.data.data.schedule[i].prescription.target_ultrafiltration;
  1519. }
  1520. if(response.data.data.schedule[i].prescription!=null){
  1521. SchedualPatientsTable["prescription_water"] = response.data.data.schedule[i].prescription.prescription_water;
  1522. }
  1523. if (response.data.data.schedule[i].assessment_before_dislysis != null) {
  1524. SchedualPatientsTable["dialysis_before_weight"] =response.data.data.schedule[i].assessment_before_dislysis.weight_before;
  1525. }
  1526. if (response.data.data.schedule[i].assessment_before_dislysis != null) {
  1527. SchedualPatientsTable["dry_weight"] =response.data.data.schedule[i].assessment_before_dislysis.dry_weight;
  1528. }
  1529. if (response.data.data.schedule[i].assessment_after_dislysis !=null) {
  1530. SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
  1531. }
  1532. if (response.data.data.schedule[i].assessment_before_dislysis != null) {
  1533. SchedualPatientsTable["pressure_name"] =response.data.data.schedule[i].assessment_before_dislysis.systolic_blood_pressure+"/"+ response.data.data.schedule[i].assessment_before_dislysis.diastolic_blood_pressure;
  1534. }
  1535. if(response.data.data.schedule[i].monitoring_record!=null &&response.data.data.schedule[i].monitoring_record.length >0 ){
  1536. SchedualPatientsTable["monitoring_record"] = response.data.data.schedule[i].monitoring_record
  1537. }
  1538. SchedualPatientsTable.bp = [];
  1539. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1540. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1541. const bp = {};
  1542. bp["value"] =response.data.data.schedule[i].monitoring_record[a].systolic_blood_pressure.toString()+"/" +response.data.data.schedule[i].monitoring_record[a].diastolic_blood_pressure.toString();
  1543. SchedualPatientsTable.bp.push(bp);
  1544. }
  1545. }
  1546. // 体温
  1547. SchedualPatientsTable.tp = [];
  1548. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length >0){
  1549. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1550. const tp = {};
  1551. tp["value"] =response.data.data.schedule[i].monitoring_record[a].temperature
  1552. SchedualPatientsTable.tp.push(tp);
  1553. }
  1554. }
  1555. // 脉搏
  1556. SchedualPatientsTable.mp = [];
  1557. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length >0){
  1558. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1559. const mp = {};
  1560. mp["value"] =response.data.data.schedule[i].monitoring_record[a].pulse_frequency
  1561. SchedualPatientsTable.mp.push(mp);
  1562. }
  1563. }
  1564. //呼吸频率
  1565. SchedualPatientsTable.hp = [];
  1566. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length >0){
  1567. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1568. const hp = {};
  1569. hp["value"] =response.data.data.schedule[i].monitoring_record[a].breathing_rate
  1570. SchedualPatientsTable.hp.push(hp);
  1571. }
  1572. }
  1573. //静脉压/动脉压(kpa)
  1574. SchedualPatientsTable.jp = [];
  1575. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1576. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1577. const jp = {};
  1578. jp["value"] =response.data.data.schedule[i].monitoring_record[a].venous_pressure.toString()+"/" +response.data.data.schedule[i].monitoring_record[a].arterial_pressure.toString();
  1579. SchedualPatientsTable.jp.push(jp);
  1580. }
  1581. }
  1582. //血流量
  1583. SchedualPatientsTable.xp = [];
  1584. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1585. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1586. const xp = {};
  1587. xp["value"] =response.data.data.schedule[i].monitoring_record[a].blood_flow_volume
  1588. SchedualPatientsTable.xp.push(xp);
  1589. }
  1590. }
  1591. //跨膜压
  1592. SchedualPatientsTable.kp = [];
  1593. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1594. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1595. const kp = {};
  1596. kp["value"] =response.data.data.schedule[i].monitoring_record[a].transmembrane_pressure
  1597. SchedualPatientsTable.kp.push(kp);
  1598. }
  1599. }
  1600. //超滤量
  1601. SchedualPatientsTable.cp = [];
  1602. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1603. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1604. const cp = {};
  1605. cp["value"] =response.data.data.schedule[i].monitoring_record[a].ultrafiltration_volume
  1606. SchedualPatientsTable.cp.push(cp);
  1607. }
  1608. }
  1609. //超滤率
  1610. SchedualPatientsTable.clp = [];
  1611. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1612. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1613. const clp = {};
  1614. clp["value"] =response.data.data.schedule[i].monitoring_record[a].ultrafiltration_rate
  1615. SchedualPatientsTable.clp.push(clp);
  1616. }
  1617. }
  1618. //钠浓度
  1619. SchedualPatientsTable.np = [];
  1620. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1621. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1622. const np = {};
  1623. np["value"] =response.data.data.schedule[i].monitoring_record[a].sodium_concentration
  1624. SchedualPatientsTable.np.push(np);
  1625. }
  1626. }
  1627. // 透析液温度
  1628. SchedualPatientsTable.tcp = [];
  1629. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1630. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1631. const tcp = {};
  1632. tcp["value"] =response.data.data.schedule[i].monitoring_record[a].dialysate_temperature
  1633. SchedualPatientsTable.tcp.push(tcp);
  1634. }
  1635. }
  1636. //置换率(ml/min)
  1637. SchedualPatientsTable.zp = [];
  1638. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1639. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1640. const zp = {};
  1641. zp["value"] =response.data.data.schedule[i].monitoring_record[a].replacement_rate
  1642. SchedualPatientsTable.zp.push(zp);
  1643. }
  1644. }
  1645. // 置换量(ml/h)
  1646. SchedualPatientsTable.zhp = [];
  1647. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1648. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1649. const zhp = {};
  1650. zhp["value"] =response.data.data.schedule[i].monitoring_record[a].displacement_quantity
  1651. SchedualPatientsTable.zhp.push(zhp);
  1652. }
  1653. }
  1654. // SpO₂
  1655. SchedualPatientsTable.sp = [];
  1656. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1657. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1658. const sp = {};
  1659. sp["value"] =response.data.data.schedule[i].monitoring_record[a].blood_oxygen_saturation
  1660. SchedualPatientsTable.sp.push(sp);
  1661. }
  1662. }
  1663. // 电导度(mS/m)
  1664. SchedualPatientsTable.ddp = [];
  1665. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1666. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1667. const ddp = {};
  1668. ddp["value"] =response.data.data.schedule[i].monitoring_record[a].conductivity
  1669. SchedualPatientsTable.ddp.push(ddp);
  1670. }
  1671. }
  1672. //置换液流量(ml/h)
  1673. SchedualPatientsTable.zhyp = [];
  1674. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1675. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1676. const zhyp = {};
  1677. zhyp["value"] =response.data.data.schedule[i].monitoring_record[a].displacement_flow_quantity
  1678. SchedualPatientsTable.zhyp.push(zhyp);
  1679. }
  1680. }
  1681. // 透析液流量(ml/h)
  1682. SchedualPatientsTable.tcyp = [];
  1683. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1684. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1685. const tcyp = {};
  1686. tcyp["value"] =response.data.data.schedule[i].monitoring_record[a].dialysate_flow
  1687. SchedualPatientsTable.tcyp.push(tcyp);
  1688. }
  1689. }
  1690. // 肝素用量余量
  1691. SchedualPatientsTable.gsyp = [];
  1692. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1693. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1694. const gsyp = {};
  1695. gsyp["value"] =response.data.data.schedule[i].monitoring_record[a].heparin
  1696. SchedualPatientsTable.gsyp.push(gsyp);
  1697. }
  1698. }
  1699. // 肝素量(mg)
  1700. SchedualPatientsTable.gsp = [];
  1701. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1702. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1703. const gsp = {};
  1704. gsp["value"] =response.data.data.schedule[i].monitoring_record[a].heparin_amount
  1705. SchedualPatientsTable.gsp.push(gsp);
  1706. }
  1707. }
  1708. // 血压监测部位
  1709. SchedualPatientsTable.xyjcp = [];
  1710. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1711. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1712. const xyjcp = {};
  1713. xyjcp["value"] = this.getBloodPressure(response.data.data.schedule[i].monitoring_record[a].blood_pressure_monitoring_site)
  1714. SchedualPatientsTable.xyjcp.push(xyjcp);
  1715. }
  1716. }
  1717. // 并发症
  1718. SchedualPatientsTable.bfp = [];
  1719. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1720. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1721. const bfp = {};
  1722. bfp["value"] = this.getComplication(response.data.data.schedule[i].monitoring_record[a].complication)
  1723. SchedualPatientsTable.bfp.push(bfp);
  1724. }
  1725. }
  1726. // 累计血容量
  1727. SchedualPatientsTable.ljxrp = [];
  1728. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1729. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1730. const ljxrp = {};
  1731. ljxrp["value"] = response.data.data.schedule[i].monitoring_record[a].accumulated_blood_volume
  1732. SchedualPatientsTable.ljxrp.push(ljxrp);
  1733. }
  1734. }
  1735. // 血容量
  1736. SchedualPatientsTable.xrp = [];
  1737. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1738. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1739. const xrp = {};
  1740. xrp["value"] = response.data.data.schedule[i].monitoring_record[a].accumulated_blood_volume
  1741. SchedualPatientsTable.xrp.push(xrp);
  1742. }
  1743. }
  1744. // 血温监测
  1745. SchedualPatientsTable.xwp = [];
  1746. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1747. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1748. const xwp = {};
  1749. xwp["value"] = response.data.data.schedule[i].monitoring_record[a].blood_temperature
  1750. SchedualPatientsTable.xwp.push(xwp);
  1751. }
  1752. }
  1753. //尿素监测
  1754. SchedualPatientsTable.nxp = [];
  1755. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1756. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1757. const nxp = {};
  1758. nxp["value"] = response.data.data.schedule[i].monitoring_record[a].urea_monitoring
  1759. SchedualPatientsTable.nxp.push(nxp);
  1760. }
  1761. }
  1762. // 血压监测
  1763. SchedualPatientsTable.xyjc = [];
  1764. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1765. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1766. const xyjc = {};
  1767. xyjc["value"] = response.data.data.schedule[i].monitoring_record[a].blood_monitor
  1768. SchedualPatientsTable.xyjc.push(xyjc);
  1769. }
  1770. }
  1771. // 脱水(L)
  1772. SchedualPatientsTable.tshp = [];
  1773. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1774. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1775. const tshp = {};
  1776. tshp["value"] = response.data.data.schedule[i].monitoring_record[a].dehydration
  1777. SchedualPatientsTable.tshp.push(tshp);
  1778. }
  1779. }
  1780. // KT/V
  1781. SchedualPatientsTable.ktvp = [];
  1782. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  1783. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1784. const ktvp = {};
  1785. ktvp["value"] = response.data.data.schedule[i].monitoring_record[a].ktv
  1786. SchedualPatientsTable.ktvp.push(ktvp);
  1787. }
  1788. }
  1789. this.SchedualPatientsTableData.push(SchedualPatientsTable);
  1790. // console.log("wode数据",(-100).toString())
  1791. // console.log("数据哦哦😯噢232o",this.SchedualPatientsTableData)
  1792. }
  1793. }
  1794. }
  1795. });
  1796. },
  1797. isShow(name) {
  1798. var filedList = store.getters.xt_user.fileds;
  1799. for (let i = 0; i < filedList.length; i++) {
  1800. if (
  1801. filedList[i].module == 4 &&
  1802. filedList[i].filed_name_cn == name &&
  1803. filedList[i].is_show == 1
  1804. ) {
  1805. return true;
  1806. }
  1807. }
  1808. return false;
  1809. },
  1810. cellStyle({ row, column, rowIndex, columnIndex }) {
  1811. let arr = [9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36];
  1812. if (arr.indexOf(columnIndex) > -1) {
  1813. return "spanClass";
  1814. }
  1815. },
  1816. getTimeOne(val) {
  1817. if(val < 0){
  1818. return ""
  1819. }
  1820. if(val == ""){
  1821. return ""
  1822. }else {
  1823. return uParseTime(val, '{h}:{i}')
  1824. }
  1825. },
  1826. getBloodPressure(id) {
  1827. var name = "";
  1828. for (let i = 0; i < this.bloodPressureMmonitoringSite.length; i++) {
  1829. if (id == this.bloodPressureMmonitoringSite[i].id) {
  1830. name = this.bloodPressureMmonitoringSite[i].name;
  1831. }
  1832. }
  1833. return name;
  1834. },
  1835. getComplication(id) {
  1836. var name = "";
  1837. for (let i = 0; i < this.complicationList.length; i++) {
  1838. if (id == this.complicationList[i].id) {
  1839. name = this.complicationList[i].name;
  1840. }
  1841. }
  1842. return name;
  1843. },
  1844. getValue: function(val) {
  1845. if (val != undefined) {
  1846. var str = val.value.split("/")
  1847. return str[0];
  1848. } else {
  1849. return "";
  1850. }
  1851. },
  1852. getValueOne: function(val) {
  1853. if (val != undefined) {
  1854. var str = val.value.split("/")
  1855. return str[1];
  1856. } else {
  1857. return "";
  1858. }
  1859. },
  1860. handleCurrentChange(val) {
  1861. this.listQuery.page = val;
  1862. this.getSchedualPatientList();
  1863. },
  1864. changeSearchMode: function() {
  1865. if (this.search_mode == 1) {
  1866. this.search_mode = 2;
  1867. } else {
  1868. this.search_mode = 1;
  1869. var date = new Date();
  1870. this.time = date;
  1871. var year = date.getFullYear();
  1872. var month = date.getMonth() + 1;
  1873. var day = date.getDate();
  1874. if (month < 10) {
  1875. month = "0" + month;
  1876. }
  1877. if (day < 10) {
  1878. day = "0" + day;
  1879. }
  1880. var nowDate = year + "-" + month + "-" + day;
  1881. var date = new Date(nowDate + " 00:00:00");
  1882. this.listQuery.schedul_time = date.getTime();
  1883. this.getAllZone();
  1884. this.getSchedualPatientList();
  1885. this.getTemplateInfo();
  1886. }
  1887. this.$store.dispatch('SetSearchMode', this.search_mode)
  1888. },
  1889. searchPatientAction: function() {
  1890. this.listQuery.keywords = this.patient_search_keyword;
  1891. this.$store.dispatch('SetSearchValue', this.patient_search_keyword)
  1892. console.log(this.patient_search_keyword);
  1893. if (this.patient_search_keyword.length == 0) {
  1894. return;
  1895. }
  1896. this.getSchedualPatientList();
  1897. },
  1898. handleSizeChange(val) {
  1899. this.listQuery.limit = val;
  1900. this.getSchedualPatientList();
  1901. },
  1902. batchPrintAction: function() {
  1903. if (this.selecting_schs.length === 0) {
  1904. this.$message.error("请至少选择一条需要打印的内容");
  1905. return false;
  1906. }
  1907. // 模板ID为6
  1908. var sch_ids = [];
  1909. for (let index = 0; index < this.selecting_schs.length; index++) {
  1910. sch_ids.push(this.selecting_schs[index].sch_id);
  1911. }
  1912. console.log("sch_ids",sch_ids)
  1913. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  1914. if (this.template_id == 2 || this.template_id == 0) {
  1915. this.$router.push({ path: "/dialysis/print/batch/other" });
  1916. } else if (this.template_id == 1) {
  1917. this.$router.push({ path: "/dialysis/print/batch" });
  1918. } else if (this.template_id == 3) {
  1919. this.$router.push({ path: "/dialysis/print/batch/three" });
  1920. } else if (this.template_id == 4) {
  1921. this.$router.push({ path: "/dialysis/print/batch/four" });
  1922. } else if (this.template_id == 5) {
  1923. this.$router.push({ path: "/dialysis/print/batch/five" });
  1924. } else if (this.template_id == 6) {
  1925. this.$router.push({ path: "/dialysis/print/batch/six" });
  1926. } else if (this.template_id == 7) {
  1927. this.$router.push({ path: "/dialysis/print/batch/seven" });
  1928. } else if (this.template_id == 8) {
  1929. this.$router.push({ path: "/dialysis/print/batch/eight" });
  1930. } else if (this.template_id == 9) {
  1931. this.$router.push({ path: "/dialysis/print/batch/nine" });
  1932. }else if (this.template_id == 11) {
  1933. this.$router.push({ path: "/dialysis/print/batch/Eleven" });
  1934. } else if (this.template_id == 12) {
  1935. this.$router.push({ path: "/dialysis/print/batch/twelve" });
  1936. } else if (this.template_id == 13) {
  1937. this.$router.push({ path: "/dialysis/print/batch/thirteen" });
  1938. } else if (this.template_id == 15) {
  1939. this.$router.push({ path: "/dialysis/print/batch/fifteen" });
  1940. } else if (this.template_id == 17) {
  1941. this.$router.push({ path: "/dialysis/print/batch/seventeen" });
  1942. } else if (this.template_id == 20) {
  1943. this.$router.push({ path: "/dialysis/print/batch/twenty" });
  1944. } else if (this.template_id == 22) {
  1945. this.$router.push({ path: "/dialysis/print/batch/twentyTwo" });
  1946. } else if (this.template_id == 25) {
  1947. this.$router.push({ path: "/dialysis/print/batch/twentyFive" });
  1948. }else if (this.template_id == 27) {
  1949. this.$router.push({ path: "/dialysis/print/batch/twentySeven" });
  1950. } else if(this.template_id == 28){
  1951. this.$router.push({path:"/dialysis/print/batch/twentyEight"})
  1952. } else if (this.template_id == 30) {
  1953. this.$router.push({ path: "/dialysis/print/batch/thirty" });
  1954. } else if (this.template_id == 32) {
  1955. this.$router.push({ path: "/dialysis/print/batch/thirtyTwo" });
  1956. } else if (this.template_id == 33) {
  1957. this.$router.push({ path: "/dialysis/print/batch/thirtyThree" });
  1958. } else if (this.template_id == 37) {
  1959. this.$router.push({ path: "/dialysis/print/batch/thirtySeven" });
  1960. } else if (this.template_id == 38) {
  1961. this.$router.push({ path: "/dialysis/print/batch/thirtyEight" });
  1962. } else if (this.template_id == 39) {
  1963. this.$router.push({ path: "/dialysis/print/batch/thirtyNine" });
  1964. } else if (this.template_id == 40) {
  1965. this.$router.push({ path: "/dialysis/print/batch/forty" });
  1966. } else if (this.template_id == 41) {
  1967. this.$router.push({ path: "/dialysis/print/batch/fortyOne" });
  1968. } else if (this.template_id == 43) {
  1969. this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
  1970. } else if (this.template_id == 47 && this.org_id!=10318) {
  1971. this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
  1972. } else if (this.template_id == 48) {
  1973. this.$router.push({ path: "/dialysis/print/batch/six" });
  1974. }else if (this.template_id == 51) {
  1975. this.$router.push({ path: "/dialysis/print/batch/fiftyOne" });
  1976. }else if (this.template_id == 53) {
  1977. this.$router.push({ path: "/dialysis/print/batch/fiftyThree" });
  1978. }else if (this.template_id == 59) {
  1979. this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
  1980. }else if (this.template_id == 60) {
  1981. this.$router.push({ path: "/dialysis/print/batch/sixty" });
  1982. }else if (this.template_id == 61) {
  1983. this.$router.push({ path: "/dialysis/print/batch/sixtyOne" });
  1984. }else if (this.template_id == 62) {
  1985. this.$router.push({ path: "/dialysis/print/batch/sixtyTwo" });
  1986. }else if (this.template_id == 65) {
  1987. this.$router.push({ path: "/dialysis/print/batch/sixtyFive" });
  1988. }else if (this.template_id == 66) {
  1989. this.$router.push({ path: "/dialysis/print/batch/sixtysix" });
  1990. }
  1991. else if (this.template_id == 67) {
  1992. this.$router.push({ path: "/dialysis/print/batch/sixtyseven" });
  1993. }
  1994. else if (this.template_id == 68) {
  1995. this.$router.push({ path: "/dialysis/print/batch/sixtyeight" });
  1996. }
  1997. },
  1998. batchPrintActionOne: function() {
  1999. if (this.selecting_schs.length === 0) {
  2000. this.$message.error("请至少选择一条需要打印的内容");
  2001. return false;
  2002. }
  2003. var sch_ids = [];
  2004. for (let index = 0; index < this.selecting_schs.length; index++) {
  2005. sch_ids.push(this.selecting_schs[index].sch_id);
  2006. }
  2007. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  2008. if (this.template_id == 2 || this.template_id == 0) {
  2009. this.$router.push({ path: "/dialysis/print/batch/otherone" });
  2010. } else if (this.template_id == 1) {
  2011. this.$router.push({ path: "/dialysis/print/batch" });
  2012. } else if (this.template_id == 5) {
  2013. this.$router.push({ path: "/dialysis/print/batch/fiveone" });
  2014. } else if (this.template_id == 22) {
  2015. this.$router.push({ path: "/dialysis/print/batch/twentyTwo_one" });
  2016. } else if(this.template_id == 33){
  2017. this.$router.push({ path: "/dialysis/print/batch/thirtyThree_one" });
  2018. }
  2019. },
  2020. batchPrintActionTwo: function() {
  2021. if (this.selecting_schs.length === 0) {
  2022. this.$message.error("请至少选择一条需要打印的内容");
  2023. return false;
  2024. }
  2025. var sch_ids = [];
  2026. for (let index = 0; index < this.selecting_schs.length; index++) {
  2027. sch_ids.push(this.selecting_schs[index].sch_id);
  2028. }
  2029. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  2030. if (this.template_id == 2 || this.template_id == 0) {
  2031. this.$router.push({ path: "/dialysis/print/batch/othertwo" });
  2032. } else if (this.template_id == 1) {
  2033. this.$router.push({ path: "/dialysis/print/batch" });
  2034. } else if (this.template_id == 5) {
  2035. this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
  2036. } else if (this.template_id == 22) {
  2037. this.$router.push({ path: "/dialysis/print/batch/twentyTwo_two" });
  2038. } else if (this.template_id == 33) {
  2039. this.$router.push({ path: "/dialysis/print/batch/thirtyThree_two" });
  2040. }
  2041. },
  2042. toExport(){
  2043. import('@/vendor/Export2Excel').then(excel => {
  2044. if(this.SchedualPatientsTableData!=null){
  2045. for(let i=0;i<this.SchedualPatientsTableData.length;i++){
  2046. this.SchedualPatientsTableData[i].index = i + 1
  2047. this.SchedualPatientsTableData[i].start_time_one = ""
  2048. this.SchedualPatientsTableData[i].start_time_two = ""
  2049. this.SchedualPatientsTableData[i].start_time_three = ""
  2050. this.SchedualPatientsTableData[i].start_time_four = ""
  2051. this.SchedualPatientsTableData[i].start_time_five = ""
  2052. this.SchedualPatientsTableData[i].start_time_six = ""
  2053. this.SchedualPatientsTableData[i].start_time_seven = ""
  2054. this.SchedualPatientsTableData[i].blood_press_one = ""
  2055. this.SchedualPatientsTableData[i].blood_press_two = ""
  2056. this.SchedualPatientsTableData[i].blood_press_three = ""
  2057. this.SchedualPatientsTableData[i].blood_press_four = ""
  2058. this.SchedualPatientsTableData[i].blood_press_five = ""
  2059. this.SchedualPatientsTableData[i].blood_press_six = ""
  2060. this.SchedualPatientsTableData[i].blood_press_seven = ""
  2061. this.SchedualPatientsTableData[i].temperature_one = ""
  2062. this.SchedualPatientsTableData[i].temperature_two = ""
  2063. this.SchedualPatientsTableData[i].temperature_three = ""
  2064. this.SchedualPatientsTableData[i].temperature_four = ""
  2065. this.SchedualPatientsTableData[i].temperature_five = ""
  2066. this.SchedualPatientsTableData[i].temperature_six = ""
  2067. this.SchedualPatientsTableData[i].temperature_seven = ""
  2068. this.SchedualPatientsTableData[i].breathing_rate_one = ""
  2069. this.SchedualPatientsTableData[i].breathing_rate_two = ""
  2070. this.SchedualPatientsTableData[i].breathing_rate_three = ""
  2071. this.SchedualPatientsTableData[i].breathing_rate_four = ""
  2072. this.SchedualPatientsTableData[i].breathing_rate_five = ""
  2073. this.SchedualPatientsTableData[i].breathing_rate_six = ""
  2074. this.SchedualPatientsTableData[i].breathing_rate_seven = ""
  2075. this.SchedualPatientsTableData[i].pulse_frequency_one = ""
  2076. this.SchedualPatientsTableData[i].pulse_frequency_two = ""
  2077. this.SchedualPatientsTableData[i].pulse_frequency_three = ""
  2078. this.SchedualPatientsTableData[i].pulse_frequency_four = ""
  2079. this.SchedualPatientsTableData[i].pulse_frequency_five = ""
  2080. this.SchedualPatientsTableData[i].pulse_frequency_six = ""
  2081. this.SchedualPatientsTableData[i].pulse_frequency_seven = ""
  2082. if(this.SchedualPatientsTableData[i].monitoring_record!=null&&this.SchedualPatientsTableData[i].monitoring_record.length>0){
  2083. if(this.SchedualPatientsTableData[i].monitoring_record.length >=1){
  2084. if(this.SchedualPatientsTableData[i].monitoring_record[0].operate_time!=undefined){
  2085. this.SchedualPatientsTableData[i].start_time_one =this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[0].operate_time)
  2086. }
  2087. if(this.SchedualPatientsTableData[i].monitoring_record[0].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[0].diastolic_blood_pressure!=undefined ){
  2088. this.SchedualPatientsTableData[i].blood_press_one = this.SchedualPatientsTableData[i].monitoring_record[0].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[0].diastolic_blood_pressure
  2089. }
  2090. if(this.SchedualPatientsTableData[i].monitoring_record[0].temperature!=undefined){
  2091. this.SchedualPatientsTableData[i].temperature_one = this.SchedualPatientsTableData[i].monitoring_record[0].temperature
  2092. }
  2093. if(this.SchedualPatientsTableData[i].monitoring_record[0].breathing_rate!=undefined){
  2094. this.SchedualPatientsTableData[i].breathing_rate_one = this.SchedualPatientsTableData[i].monitoring_record[0].breathing_rate
  2095. }
  2096. if(this.SchedualPatientsTableData[i].monitoring_record[0].pulse_frequency!=undefined){
  2097. this.SchedualPatientsTableData[i].pulse_frequency_one = this.SchedualPatientsTableData[i].monitoring_record[0].pulse_frequency
  2098. }
  2099. }
  2100. if(this.SchedualPatientsTableData[i].monitoring_record.length >=2){
  2101. if(this.SchedualPatientsTableData[i].monitoring_record[1].operate_time!=undefined){
  2102. this.SchedualPatientsTableData[i].start_time_two = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[1].operate_time)
  2103. }
  2104. if(this.SchedualPatientsTableData[i].monitoring_record[1].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[1].diastolic_blood_pressure!=undefined ){
  2105. this.SchedualPatientsTableData[i].blood_press_two = this.SchedualPatientsTableData[i].monitoring_record[1].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[1].diastolic_blood_pressure
  2106. }
  2107. if(this.SchedualPatientsTableData[i].monitoring_record[1].temperature!=undefined){
  2108. this.SchedualPatientsTableData[i].temperature_two = this.SchedualPatientsTableData[i].monitoring_record[1].temperature
  2109. }
  2110. if(this.SchedualPatientsTableData[i].monitoring_record[1].breathing_rate!=undefined){
  2111. this.SchedualPatientsTableData[i].breathing_rate_two = this.SchedualPatientsTableData[i].monitoring_record[1].breathing_rate
  2112. }
  2113. if(this.SchedualPatientsTableData[i].monitoring_record[1].pulse_frequency!=undefined){
  2114. this.SchedualPatientsTableData[i].pulse_frequency_two = this.SchedualPatientsTableData[i].monitoring_record[1].pulse_frequency
  2115. }
  2116. }
  2117. if(this.SchedualPatientsTableData[i].monitoring_record.length>=3){
  2118. if(this.SchedualPatientsTableData[i].monitoring_record[2].operate_time!=undefined){
  2119. this.SchedualPatientsTableData[i].start_time_three = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[2].operate_time)
  2120. }
  2121. if(this.SchedualPatientsTableData[i].monitoring_record[2].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[2].diastolic_blood_pressure!=undefined ){
  2122. this.SchedualPatientsTableData[i].blood_press_three = this.SchedualPatientsTableData[i].monitoring_record[2].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[2].diastolic_blood_pressure
  2123. }
  2124. if(this.SchedualPatientsTableData[i].monitoring_record[2].temperature!=undefined){
  2125. this.SchedualPatientsTableData[i].temperature_three = this.SchedualPatientsTableData[i].monitoring_record[2].temperature
  2126. }
  2127. if(this.SchedualPatientsTableData[i].monitoring_record[2].breathing_rate!=undefined){
  2128. this.SchedualPatientsTableData[i].breathing_rate_three = this.SchedualPatientsTableData[i].monitoring_record[2].breathing_rate
  2129. }
  2130. if(this.SchedualPatientsTableData[i].monitoring_record[2].pulse_frequency!=undefined){
  2131. this.SchedualPatientsTableData[i].pulse_frequency_three= this.SchedualPatientsTableData[i].monitoring_record[2].pulse_frequency
  2132. }
  2133. }
  2134. if(this.SchedualPatientsTableData[i].monitoring_record.length >=4){
  2135. if(this.SchedualPatientsTableData[i].monitoring_record[3].operate_time!=undefined){
  2136. this.SchedualPatientsTableData[i].start_time_four = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[3].operate_time)
  2137. }
  2138. if(this.SchedualPatientsTableData[i].monitoring_record[3].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[3].diastolic_blood_pressure!=undefined ){
  2139. this.SchedualPatientsTableData[i].blood_press_four = this.SchedualPatientsTableData[i].monitoring_record[3].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[3].diastolic_blood_pressure
  2140. }
  2141. if(this.SchedualPatientsTableData[i].monitoring_record[3].temperature!=undefined){
  2142. this.SchedualPatientsTableData[i].temperature_four = this.SchedualPatientsTableData[i].monitoring_record[3].temperature
  2143. }
  2144. if(this.SchedualPatientsTableData[i].monitoring_record[3].breathing_rate!=undefined){
  2145. this.SchedualPatientsTableData[i].breathing_rate_four = this.SchedualPatientsTableData[i].monitoring_record[3].breathing_rate
  2146. }
  2147. if(this.SchedualPatientsTableData[i].monitoring_record[3].pulse_frequency!=undefined){
  2148. this.SchedualPatientsTableData[i].pulse_frequency_four= this.SchedualPatientsTableData[i].monitoring_record[3].pulse_frequency
  2149. }
  2150. }
  2151. if(this.SchedualPatientsTableData[i].monitoring_record.length >=5){
  2152. if(this.SchedualPatientsTableData[i].monitoring_record[4].operate_time!=undefined){
  2153. this.SchedualPatientsTableData[i].start_time_five = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[4].operate_time)
  2154. }
  2155. if(this.SchedualPatientsTableData[i].monitoring_record[4].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[4].diastolic_blood_pressure!=undefined ){
  2156. this.SchedualPatientsTableData[i].blood_press_five = this.SchedualPatientsTableData[i].monitoring_record[4].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[4].diastolic_blood_pressure
  2157. }
  2158. if(this.SchedualPatientsTableData[i].monitoring_record[4].temperature!=undefined){
  2159. this.SchedualPatientsTableData[i].temperature_five = this.SchedualPatientsTableData[i].monitoring_record[4].temperature
  2160. }
  2161. if(this.SchedualPatientsTableData[i].monitoring_record[4].breathing_rate!=undefined){
  2162. this.SchedualPatientsTableData[i].breathing_rate_five = this.SchedualPatientsTableData[i].monitoring_record[4].breathing_rate
  2163. }
  2164. if(this.SchedualPatientsTableData[i].monitoring_record[4].pulse_frequency!=undefined){
  2165. this.SchedualPatientsTableData[i].pulse_frequency_five= this.SchedualPatientsTableData[i].monitoring_record[4].pulse_frequency
  2166. }
  2167. }
  2168. if(this.SchedualPatientsTableData[i].monitoring_record.length >=6){
  2169. if(this.SchedualPatientsTableData[i].monitoring_record[5].operate_time!=undefined){
  2170. this.SchedualPatientsTableData[i].start_time_six = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[5].operate_time)
  2171. }
  2172. if(this.SchedualPatientsTableData[i].monitoring_record[5].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[5].diastolic_blood_pressure!=undefined ){
  2173. this.SchedualPatientsTableData[i].blood_press_six = this.SchedualPatientsTableData[i].monitoring_record[5].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[5].diastolic_blood_pressure
  2174. }
  2175. if(this.SchedualPatientsTableData[i].monitoring_record[5].temperature!=undefined){
  2176. this.SchedualPatientsTableData[i].temperature_six = this.SchedualPatientsTableData[i].monitoring_record[5].temperature
  2177. }
  2178. if(this.SchedualPatientsTableData[i].monitoring_record[5].breathing_rate!=undefined){
  2179. this.SchedualPatientsTableData[i].breathing_rate_six = this.SchedualPatientsTableData[i].monitoring_record[5].breathing_rate
  2180. }
  2181. if(this.SchedualPatientsTableData[i].monitoring_record[5].pulse_frequency!=undefined){
  2182. this.SchedualPatientsTableData[i].pulse_frequency_six= this.SchedualPatientsTableData[i].monitoring_record[5].pulse_frequency
  2183. }
  2184. }
  2185. if(this.SchedualPatientsTableData[i].monitoring_record.length >= 7){
  2186. if(this.SchedualPatientsTableData[i].monitoring_record[6].operate_time!=undefined){
  2187. this.SchedualPatientsTableData[i].start_time_seven = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[6].operate_time)
  2188. }
  2189. if(this.SchedualPatientsTableData[i].monitoring_record[6].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[6].diastolic_blood_pressure!=undefined ){
  2190. this.SchedualPatientsTableData[i].blood_press_seven = this.SchedualPatientsTableData[i].monitoring_record[6].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[6].diastolic_blood_pressure
  2191. }
  2192. if(this.SchedualPatientsTableData[i].monitoring_record[6].temperature!=undefined){
  2193. this.SchedualPatientsTableData[i].temperature_seven = this.SchedualPatientsTableData[i].monitoring_record[6].temperature
  2194. }
  2195. if(this.SchedualPatientsTableData[i].monitoring_record[6].breathing_rate!=undefined){
  2196. this.SchedualPatientsTableData[i].breathing_rate_seven = this.SchedualPatientsTableData[i].monitoring_record[6].breathing_rate
  2197. }
  2198. if(this.SchedualPatientsTableData[i].monitoring_record[6].pulse_frequency!=undefined){
  2199. this.SchedualPatientsTableData[i].pulse_frequency_seven= this.SchedualPatientsTableData[i].monitoring_record[6].pulse_frequency
  2200. }
  2201. }
  2202. }
  2203. }
  2204. }
  2205. console.log("监测统计",this.SchedualPatientsTableData)
  2206. const multiHeader = [['序号','机号','排班日期','上机时间','透析号','姓名','透析模式','目标超滤量','透前血压','干体重','透前称重','透后称重','监测时间','','','','','','','透中血压','','','','','','','体温','','','','','','','呼吸','','','','','','','脉搏','','','','','','']]
  2207. const header = ['','','','','','','','','','','','','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次','第1次','第2次','第3次','第4次','第5次','第6次','第7次',]
  2208. const merges = ['A1:A2', 'B1:B2', 'C1:C2', 'D1:D2', 'E1:E2','F1:F2','G1:G2','H1:H2', 'I1:I2','J1:J2','K1:K2','L1:L2','M1:S1','T1:Z1','AA1:AG1','AH1:AN1','AO1:AU1']
  2209. const filterVal = ['index', 'number', 'sch_time', 'start_time', 'dialysis_no', 'name', 'mode_name', 'target_ultrafiltration', 'pressure_name', 'dry_weight', 'dialysis_before_weight', 'dialysis_after_weight','start_time_one','start_time_two','start_time_three','start_time_four','start_time_five','start_time_six','start_time_seven','blood_press_one','blood_press_two','blood_press_three','blood_press_four','blood_press_five','blood_press_six','blood_press_seven','temperature_one','temperature_two','temperature_three','temperature_four','temperature_five','temperature_six','temperature_seven','breathing_rate_one','breathing_rate_two','breathing_rate_three','breathing_rate_four','breathing_rate_five','breathing_rate_six','breathing_rate_seven','pulse_frequency_one','pulse_frequency_two','pulse_frequency_three','pulse_frequency_four','pulse_frequency_five','pulse_frequency_six','pulse_frequency_seven']
  2210. const data = this.formatJson(filterVal, this.SchedualPatientsTableData)
  2211. const filename = '监测数据'
  2212. console.log("datawoowowow",data)
  2213. excel.export_json_to_excel({
  2214. multiHeader,
  2215. header,
  2216. merges,
  2217. data,
  2218. filename
  2219. })
  2220. })
  2221. },
  2222. formatJson(filterVal, jsonData) {
  2223. return jsonData.map(v => filterVal.map(j => v[j]));
  2224. },
  2225. },
  2226. components: {
  2227. BreadCrumb
  2228. }
  2229. };
  2230. </script>
  2231. <style rel="stylesheet/scss" lang="scss" scoped>
  2232. .app-container {
  2233. // margin: 20px;
  2234. font-size: 15px;
  2235. .filter-container {
  2236. padding-bottom: 5px;
  2237. }
  2238. .cqd-dataTitle {
  2239. color: #303133;
  2240. font-size: 14px;
  2241. border-bottom: 2px #e4e7ed solid;
  2242. height: 36px;
  2243. line-height: 36px;
  2244. margin: 0 0 25px 0;
  2245. position: relative;
  2246. }
  2247. .cqd-dataTitle::before {
  2248. position: absolute;
  2249. left: 0;
  2250. bottom: -2px;
  2251. content: "";
  2252. width: 42px;
  2253. height: 2px;
  2254. background: #409eff;
  2255. }
  2256. .search-component {
  2257. width: 500px;
  2258. .searchBox {
  2259. width: 300px;
  2260. height: 36px;
  2261. line-height: 36px;
  2262. padding-left: 15px;
  2263. border: 1px #dcdfe6 solid;
  2264. border-right: none;
  2265. outline: none;
  2266. float: left;
  2267. border-radius: 6px 0 0 6px;
  2268. font-size: 14px;
  2269. color: #333;
  2270. background: #fff;
  2271. box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  2272. }
  2273. .searchBtn {
  2274. background-color: #409eff;
  2275. color: #fff;
  2276. font-size: 15px;
  2277. text-align: center;
  2278. height: 36px;
  2279. line-height: 36px;
  2280. float: left;
  2281. outline: none;
  2282. width: 70px;
  2283. border: none;
  2284. border-radius: 0 6px 6px 0;
  2285. font-family: "Microsoft Yahei";
  2286. cursor: pointer;
  2287. }
  2288. }
  2289. .amount {
  2290. font-weight: normal;
  2291. padding: 10px 0 0 0;
  2292. color: #606266;
  2293. font-size: 14px;
  2294. span {
  2295. color: #ef2525;
  2296. font-family: "Arial";
  2297. padding: 0 2px;
  2298. }
  2299. }
  2300. }
  2301. .el-table td,
  2302. .el-table th.is-leaf,
  2303. .el-table--border,
  2304. .el-table--group {
  2305. border-color: #d0d3da;
  2306. }
  2307. .el-table--border::after,
  2308. .el-table--group::after,
  2309. .el-table::before {
  2310. background-color: #d0d3da;
  2311. }
  2312. .el-checkbox__inner::after {
  2313. height: 10px;
  2314. left: 7px;
  2315. }
  2316. .el-checkbox__inner {
  2317. width: 20px;
  2318. height: 20px;
  2319. }
  2320. </style>
  2321. <style scoped>
  2322. /* 合并表格线样式 */
  2323. .spanClass .cell {
  2324. padding: 0 !important;
  2325. }
  2326. .spanClass .cell tr {
  2327. display: inline-block;
  2328. width: 100%;
  2329. }
  2330. .spanClass .cell tr td {
  2331. padding: 10px 0;
  2332. border-bottom: 1px solid #ebeef5;
  2333. display: block;
  2334. width: 100%;
  2335. }
  2336. .spanClass .cell tr:last-of-type td {
  2337. border-bottom: none;
  2338. }
  2339. </style>