bloodPresssWatch.vue 130KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241
  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. <template v-if="this.template_id == 70">
  431. <el-button
  432. size="small"
  433. icon="el-icon-printer"
  434. :disabled="selecting_schs.length == 0"
  435. @click="batchPrintAction"
  436. type="primary"
  437. >批量打印</el-button>
  438. </template>
  439. <template v-if="this.template_id == 71">
  440. <el-button
  441. size="small"
  442. icon="el-icon-printer"
  443. :disabled="selecting_schs.length == 0"
  444. @click="batchPrintAction"
  445. type="primary"
  446. >批量打印</el-button>
  447. </template>
  448. <template v-if="this.template_id == 72">
  449. <el-button
  450. size="small"
  451. icon="el-icon-printer"
  452. :disabled="selecting_schs.length == 0"
  453. @click="batchPrintAction"
  454. type="primary"
  455. >批量打印</el-button>
  456. </template>
  457. <template v-if="this.template_id == 73">
  458. <el-button
  459. size="small"
  460. icon="el-icon-printer"
  461. :disabled="selecting_schs.length == 0"
  462. @click="batchPrintAction"
  463. type="primary"
  464. >批量打印</el-button>
  465. </template>
  466. <template v-if="this.template_id == 74">
  467. <el-button
  468. size="small"
  469. icon="el-icon-printer"
  470. :disabled="selecting_schs.length == 0"
  471. @click="batchPrintAction"
  472. type="primary"
  473. >批量打印</el-button>
  474. </template>
  475. <template v-if="this.template_id == 75">
  476. <el-button
  477. size="small"
  478. icon="el-icon-printer"
  479. :disabled="selecting_schs.length == 0"
  480. @click="batchPrintAction"
  481. type="primary"
  482. >批量打印</el-button>
  483. </template>
  484. <template v-if="this.template_id == 76">
  485. <el-button
  486. size="small"
  487. icon="el-icon-printer"
  488. :disabled="selecting_schs.length == 0"
  489. @click="batchPrintAction"
  490. type="primary"
  491. >批量打印</el-button>
  492. </template>
  493. <template v-if="this.template_id == 78">
  494. <el-button
  495. size="small"
  496. icon="el-icon-printer"
  497. :disabled="selecting_schs.length == 0"
  498. @click="batchPrintAction"
  499. type="primary"
  500. >批量打印</el-button>
  501. </template>
  502. <template v-if="this.template_id == 79">
  503. <el-button
  504. size="small"
  505. icon="el-icon-printer"
  506. :disabled="selecting_schs.length == 0"
  507. @click="batchPrintAction"
  508. type="primary"
  509. >批量打印</el-button>
  510. </template>
  511. </div>
  512. <div class="app-container">
  513. <!-- <div class="filter-container">
  514. <el-input style="width: 400px;" v-model="searchKey" class="filter-item"/>
  515. <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
  516. </div>-->
  517. <div class="cell clearfix">
  518. <label class="title">
  519. <span class="name">{{
  520. search_mode == 1 ? "日期查询" : "病人查询"
  521. }}</span>
  522. :
  523. </label>
  524. <el-date-picker
  525. v-show="search_mode == 1"
  526. v-model="time"
  527. prefix-icon="el-icon-date"
  528. @change="changeTime"
  529. :editable="false"
  530. style="width: 250px;"
  531. type="date"
  532. placeholder="选择日期时间"
  533. align="right"
  534. :picker-options="pickerOptions1"
  535. format="yyyy-MM-dd"
  536. value-format="timestamp"
  537. ></el-date-picker>
  538. <el-input
  539. v-show="search_mode == 2"
  540. v-model="patient_search_keyword"
  541. style="width: 250px;"
  542. placeholder="病人名字、透析号"
  543. @keyup.enter.native='searchPatientAction'
  544. >
  545. <el-button
  546. slot="append"
  547. style="background-color: #409EFF; color: white; border-radius: 0;"
  548. icon="el-icon-search"
  549. @click="searchPatientAction"
  550. ></el-button>
  551. </el-input>
  552. <el-button type="primary" @click="changeSearchMode">{{
  553. search_mode == 1 ? "改为病人查询" : "改为日期查询"
  554. }}</el-button>
  555. </div>
  556. <div class="cell clearfix" v-show="search_mode == 2">
  557. <label class="title">
  558. <span class="name">日期查询</span>:
  559. </label>
  560. <el-date-picker
  561. v-model="listQuery.start_time"
  562. prefix-icon="el-icon-date"
  563. @change="changeStartTime"
  564. style="width: 250px;"
  565. type="date"
  566. placeholder="选择日期时间"
  567. align="right"
  568. :picker-options="pickerOptions1"
  569. format="yyyy-MM-dd"
  570. value-format="timestamp"
  571. ></el-date-picker>
  572. -
  573. <el-date-picker
  574. v-model="listQuery.end_time"
  575. prefix-icon="el-icon-date"
  576. @change="changeEndTime"
  577. style="width: 250px;"
  578. type="date"
  579. placeholder="选择日期时间"
  580. align="right"
  581. :picker-options="pickerOptions1"
  582. format="yyyy-MM-dd"
  583. value-format="timestamp"
  584. ></el-date-picker>
  585. </div>
  586. <div class="cell clearfix">
  587. <label class="title"> <span class="name">排班班次</span> : </label>
  588. <div class="time">
  589. <ul class>
  590. <li
  591. :class="item.value == schedulType ? 'active' : ''"
  592. @click="selectSchedulType(item.value)"
  593. v-for="item in schedulArr"
  594. :key="item.value"
  595. >
  596. {{ item.label }}
  597. </li>
  598. </ul>
  599. </div>
  600. </div>
  601. <div class="cell clearfix">
  602. <label class="title"> <span class="name">分区</span> : </label>
  603. <div class="time">
  604. <ul class>
  605. <li
  606. :class="item.id == partitionType ? 'active' : ''"
  607. @click="selectPartitionType(item.id)"
  608. v-for="item in partitionArr"
  609. :key="item.id"
  610. >
  611. {{ item.name }}
  612. </li>
  613. </ul>
  614. </div>
  615. </div>
  616. <div style="margin-left: 1050px; margin-bottom: 10px;">
  617. <el-button type="primary" size="small" @click="toExport">导出</el-button>
  618. </div>
  619. <el-table
  620. :row-style="{ color: '#303133' }"
  621. :header-cell-style="{
  622. backgroundColor: 'rgb(245, 247, 250)',
  623. color: '#606266'
  624. }"
  625. :data="SchedualPatientsTableData"
  626. style="width: 100%"
  627. v-loading="loading"
  628. border
  629. @current-change="clickCurrent"
  630. @selection-change="handleSelectionChange"
  631. highlight-current-row
  632. :cell-class-name="cellStyle"
  633. >
  634. <el-table-column
  635. type="selection"
  636. width="45"
  637. align="center"
  638. ></el-table-column>
  639. <el-table-column
  640. prop="number"
  641. label="机号"
  642. align="center"
  643. ></el-table-column>
  644. <el-table-column
  645. label="排班日期"
  646. prop="sch_time"
  647. align="center"
  648. width="120"
  649. ></el-table-column>
  650. <el-table-column
  651. prop="start_time"
  652. label="上机时间"
  653. align="center"
  654. width="80"
  655. ></el-table-column>
  656. <el-table-column
  657. prop="dialysis_no"
  658. label="透析号"
  659. align="center"
  660. ></el-table-column>
  661. <el-table-column prop="name" label="姓名" align="center">
  662. <template slot-scope="scope">
  663. <span style="color: #579ef8;width:100%;display:block;">{{ scope.row.name }}</span>
  664. </template>
  665. </el-table-column>
  666. <el-table-column
  667. prop="mode_name"
  668. label="透析模式"
  669. align="center"
  670. width="100"
  671. ></el-table-column>
  672. <el-table-column
  673. prop="target_ultrafiltration"
  674. label="目标超滤量"
  675. align="center"
  676. width="100"
  677. ></el-table-column>
  678. <el-table-column
  679. v-if="org_id == 10469"
  680. prop="prescription_water"
  681. label="处方脱水量"
  682. align="center"
  683. width="100"
  684. ></el-table-column>
  685. <el-table-column label="透前血压(mmHg)" align="center" width="130" prop="pressure_name">
  686. </el-table-column>
  687. <el-table-column label="透后血压(mmHg)" align="center" width="130" prop="after_pressure_name">
  688. </el-table-column>
  689. <el-table-column
  690. prop="dry_weight"
  691. label="干体重(kg)"
  692. align="center"
  693. width="120"
  694. ></el-table-column>
  695. <el-table-column
  696. prop="dialysis_before_weight"
  697. label="透前称重(kg)"
  698. align="center"
  699. width="120"
  700. ></el-table-column>
  701. <el-table-column
  702. prop="dialysis_after_weight"
  703. label="透后称重(kg)"
  704. align="center"
  705. width="120"
  706. ></el-table-column>
  707. <el-table-column label="监测时间" align="center" width="120">
  708. <template slot-scope="scope">
  709. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  710. <td style="border-right: none; border-inline-end: none;text-align: center">
  711. {{getTimeOne(item.operate_time)}}
  712. </td>
  713. </tr>
  714. </template>
  715. </el-table-column>
  716. <el-table-column label="透中血压(mmHg)" align="center" width="180" v-if="isShow('血压')">
  717. <template slot-scope="scope">
  718. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  719. <td style="border-right: none; border-inline-end: none;text-align: center">
  720. <span v-if="item.systolic_blood_pressure>=90 && item.systolic_blood_pressure<=140"> {{item.systolic_blood_pressure}}</span>
  721. <span v-if="item.systolic_blood_pressure<90 || item.systolic_blood_pressure >140" style="color:red">{{item.systolic_blood_pressure}}</span>
  722. <span v-if="item.diastolic_blood_pressure >0">/</span>
  723. <span v-if="item.diastolic_blood_pressure >=60 &&item.diastolic_blood_pressure <=90">{{item.diastolic_blood_pressure}}</span>
  724. <span v-if="item.diastolic_blood_pressure <60 || item.diastolic_blood_pressure >90" style="color:red">{{item.diastolic_blood_pressure }}</span>
  725. </td>
  726. </tr>
  727. </template>
  728. </el-table-column>
  729. <el-table-column label="透中血压(mmHg)" align="center" width="180" v-if="isShow('血压1')">
  730. <template slot-scope="scope">
  731. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  732. <td style="border-right: none; border-inline-end: none;text-align: center">
  733. <span v-if="item.monitor_systolic_blood_pressure_one>=90 && item.monitor_systolic_blood_pressure_one<=140"> {{item.monitor_systolic_blood_pressure_one?item.monitor_systolic_blood_pressure_one:"未测"}}</span>
  734. <span v-if="item.monitor_systolic_blood_pressure_one<90 || item.monitor_systolic_blood_pressure_one >140" style="color:red">{{item.monitor_systolic_blood_pressure_one?item.monitor_systolic_blood_pressure_one:"未测"}}</span>
  735. <span v-if="item.monitor_diastolic_blood_pressure_one >0">/</span>
  736. <span v-if="item.monitor_diastolic_blood_pressure_one >=60 &&item.monitor_diastolic_blood_pressure_one <=90">{{item.monitor_diastolic_blood_pressure_one?item.monitor_diastolic_blood_pressure_one:"未测"}}</span>
  737. <span v-if="item.monitor_diastolic_blood_pressure_one <60 || item.monitor_diastolic_blood_pressure_one >90" style="color:red">{{item.monitor_diastolic_blood_pressure_one?item.monitor_diastolic_blood_pressure_one:"未测" }}</span>
  738. </td>
  739. </tr>
  740. </template>
  741. </el-table-column>
  742. <el-table-column label="体温(℃)" align="center" width="120" v-if="isShow('体温')">
  743. <template slot-scope="scope">
  744. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  745. <td style="border-right: none; border-inline-end: none;text-align: center">
  746. {{ item.temperature ? item.temperature : "" }}
  747. </td>
  748. </tr>
  749. </template>
  750. </el-table-column>
  751. <el-table-column label="体温(℃)" align="center" width="120" v-if="isShow('体温1')">
  752. <template slot-scope="scope">
  753. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  754. <td style="border-right: none; border-inline-end: none;text-align: center">
  755. {{ item.monitor_temperature_one ? item.monitor_temperature_one : "/" }}
  756. </td>
  757. </tr>
  758. </template>
  759. </el-table-column>
  760. <el-table-column label="脉搏(次/分)" align="center" width="120" v-if="isShow('脉搏')">
  761. <template slot-scope="scope">
  762. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  763. <td style="border-right: none; border-inline-end: none;text-align: center">
  764. {{ item.pulse_frequency ? item.pulse_frequency : "" }}
  765. </td>
  766. </tr>
  767. </template>
  768. </el-table-column>
  769. <el-table-column label="脉搏(次/分)" align="center" width="120" v-if="isShow('脉搏1')">
  770. <template slot-scope="scope">
  771. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  772. <td style="border-right: none; border-inline-end: none;text-align: center">
  773. {{ item.pulse_frequency_one ? item.pulse_frequency_one : "/" }}
  774. </td>
  775. </tr>
  776. </template>
  777. </el-table-column>
  778. <el-table-column label="呼吸频率(次/分)" align="center" width="120" v-if="isShow('呼吸频率')">
  779. <template slot-scope="scope">
  780. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  781. <td style="border-right: none; border-inline-end: none;text-align: center">
  782. {{ item.breathing_rate ? item.breathing_rate : "/" }}
  783. </td>
  784. </tr>
  785. </template>
  786. </el-table-column>
  787. <el-table-column label="静脉压/动脉压(mmHg)" align="center" width="120">
  788. <template slot-scope="scope">
  789. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  790. <td style="border-right: none; border-inline-end: none;text-align: center">
  791. <span v-if="org_id !=10693"> <span>{{item.venous_pressure ? item.venous_pressure : ""}}/
  792. {{item.arterial_pressure ? item.arterial_pressure : ""}}</span>
  793. </span>
  794. <span v-if="org_id ==10693"> <span>{{item.venous_pressure_one ? item.venous_pressure_one : "/"}}/
  795. {{item.arterial_pressure_one ? item.arterial_pressure_one : "/"}}</span>
  796. </span>
  797. </td>
  798. </tr>
  799. </template>
  800. </el-table-column>
  801. <el-table-column label="血流量" align="center" width="120" v-if="isShow('血流量')">
  802. <template slot-scope="scope">
  803. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  804. <td style="border-right: none; border-inline-end: none;text-align: center">
  805. {{item.blood_flow_volume?item.blood_flow_volume:""}}
  806. </td>
  807. </tr>
  808. </template>
  809. </el-table-column>
  810. <el-table-column label="血流量1" align="center" width="120" v-if="isShow('血流量')">
  811. <template slot-scope="scope">
  812. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  813. <td style="border-right: none; border-inline-end: none;text-align: center">
  814. {{item.dialysate_flow_one?item.dialysate_flow_one:"/"}}
  815. </td>
  816. </tr>
  817. </template>
  818. </el-table-column>
  819. <el-table-column label="跨膜压(mmHg)" align="center" width="120" v-if="isShow('跨膜压')">
  820. <template slot-scope="scope">
  821. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  822. <td style="border-right: none; border-inline-end: none;text-align: center">
  823. {{item.transmembrane_pressure?item.transmembrane_pressure:""}}
  824. </td>
  825. </tr>
  826. </template>
  827. </el-table-column>
  828. <el-table-column label="跨膜压(mmHg)" align="center" width="120" v-if="isShow('跨膜压1')">
  829. <template slot-scope="scope">
  830. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  831. <td style="border-right: none; border-inline-end: none;text-align: center">
  832. {{item.transmembrane_pressure_one?item.transmembrane_pressure_one:"/"}}
  833. </td>
  834. </tr>
  835. </template>
  836. </el-table-column>
  837. <el-table-column label="超滤量(ml)" align="center"
  838. v-if="
  839. isShow('超滤量') &&
  840. (template_id == 6 ||
  841. template_id == 9 ||
  842. template_id == 10 ||
  843. template_id == 11 ||
  844. template_id == 12 ||
  845. template_id == 13 ||
  846. template_id == 17 ||
  847. template_id == 18 ||
  848. template_id == 19 ||
  849. template_id == 20 ||
  850. template_id == 21 ||
  851. template_id == 22 ||
  852. template_id == 23 ||
  853. template_id == 24 ||
  854. template_id == 26 ||
  855. template_id == 27 ||
  856. template_id == 29 ||
  857. template_id == 30 ||
  858. template_id == 31 ||
  859. template_id == 32 ||
  860. template_id == 34 ||
  861. template_id == 35 ||
  862. template_id == 36 ||
  863. template_id == 38 ||
  864. template_id == 39 ||
  865. template_id == 40 ||
  866. template_id == 41 ||
  867. template_id == 43 ||
  868. template_id == 44 ||
  869. template_id == 46 ||
  870. template_id == 47 ||
  871. template_id == 48 ||
  872. template_id == 51 ||
  873. template_id == 53 ||
  874. template_id == 54 ||
  875. template_id == 56 ||
  876. template_id == 60 ||
  877. org_id == 10210 ||
  878. org_id == 9555 || org_id == 10387
  879. || org_id == 10432
  880. || org_id == 10445)
  881. ">
  882. <template slot-scope="scope">
  883. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  884. <td style="border-right: none; border-inline-end: none;text-align: center">
  885. {{item.ultrafiltration_volume?item.ultrafiltration_volume:""}}
  886. </td>
  887. </tr>
  888. </template>
  889. </el-table-column>
  890. <el-table-column label="超滤量(L)" align="center"
  891. v-if="
  892. isShow('超滤量') &&
  893. template_id != 6 &&
  894. template_id != 9 &&
  895. template_id != 10 &&
  896. template_id != 11 &&
  897. template_id != 12 &&
  898. template_id != 13 &&
  899. template_id != 17 &&
  900. template_id != 18 &&
  901. template_id != 19 &&
  902. template_id != 20 &&
  903. template_id != 21 &&
  904. template_id != 22 &&
  905. template_id != 23 &&
  906. template_id != 24 &&
  907. template_id != 26 &&
  908. template_id != 27 &&
  909. template_id != 29 &&
  910. template_id != 30 &&
  911. template_id != 31 &&
  912. template_id != 32 &&
  913. template_id != 34 &&
  914. template_id != 35 &&
  915. template_id != 36 &&
  916. template_id != 38 &&
  917. template_id != 39 &&
  918. template_id != 40 &&
  919. template_id != 41 &&
  920. template_id != 43 &&
  921. template_id != 44 &&
  922. template_id != 46 &&
  923. template_id != 47 &&
  924. template_id != 48 &&
  925. template_id != 51 &&
  926. template_id != 53 &&
  927. template_id != 54 &&
  928. template_id != 56 &&
  929. template_id != 60 &&
  930. org_id!= 10210 &&
  931. org_id != 9555 && org_id!=10387
  932. && org_id!=10432 && org_id!=10445
  933. ">
  934. <template slot-scope="scope">
  935. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  936. <td style="border-right: none; border-inline-end: none;text-align: center">
  937. {{item.ultrafiltration_volume?item.ultrafiltration_volume:""}}
  938. </td>
  939. </tr>
  940. </template>
  941. </el-table-column>
  942. <el-table-column label="超滤量(ml)" align="center"
  943. v-if="
  944. isShow('超滤量1')">
  945. <template slot-scope="scope">
  946. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  947. <td style="border-right: none; border-inline-end: none;text-align: center">
  948. {{item.ultrafiltration_volume_one?item.ultrafiltration_volume_one:"/"}}
  949. </td>
  950. </tr>
  951. </template>
  952. </el-table-column>
  953. <el-table-column label="超滤率(ml/h)" align="center"
  954. v-if="isShow('超滤率') &&
  955. (template_id == 6 ||
  956. template_id == 10 ||
  957. template_id == 11 ||
  958. template_id == 12 ||
  959. template_id == 13 ||
  960. template_id == 17 ||
  961. template_id == 18 ||
  962. template_id == 19 ||
  963. template_id == 20 ||
  964. template_id == 21 ||
  965. template_id == 22 ||
  966. template_id == 23 ||
  967. template_id == 24 ||
  968. template_id == 26 ||
  969. template_id == 29 ||
  970. template_id == 30 ||
  971. template_id == 31 ||
  972. template_id == 34 ||
  973. template_id == 35 ||
  974. template_id == 38 ||
  975. template_id == 41 ||
  976. template_id == 43 ||
  977. template_id == 44 ||
  978. template_id == 46 ||
  979. template_id == 48 ||
  980. template_id == 53 ||
  981. template_id == 54 ||
  982. template_id == 56 ||
  983. template_id == 47 ||
  984. template_id == 60 ||
  985. org_id == 10432 ||
  986. org_id == 10445)
  987. ">
  988. <template slot-scope="scope">
  989. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  990. <td style="border-right: none; border-inline-end: none;text-align: center">
  991. {{item.ultrafiltration_rate? item.ultrafiltration_rate: ""}}
  992. </td>
  993. </tr>
  994. </template>
  995. </el-table-column>
  996. <el-table-column label="超滤率(L/h)" align="center"
  997. v-if="
  998. isShow('超滤率') &&
  999. template_id != 6 &&
  1000. template_id != 10 &&
  1001. template_id != 11 &&
  1002. template_id != 12 &&
  1003. template_id != 13 &&
  1004. template_id != 17 &&
  1005. template_id != 18 &&
  1006. template_id != 19 &&
  1007. template_id != 20 &&
  1008. template_id != 21 &&
  1009. template_id != 22 &&
  1010. template_id != 23 &&
  1011. template_id != 24 &&
  1012. template_id != 26 &&
  1013. template_id != 29 &&
  1014. template_id != 30 &&
  1015. template_id != 31 &&
  1016. template_id != 34 &&
  1017. template_id != 35 &&
  1018. template_id != 38 &&
  1019. template_id != 41 &&
  1020. template_id != 43 &&
  1021. template_id != 44 &&
  1022. template_id != 46 &&
  1023. template_id != 53 &&
  1024. template_id != 54 &&
  1025. template_id != 56 &&
  1026. template_id != 48 &&
  1027. template_id != 47 &&
  1028. template_id != 60 &&
  1029. org_id!=10432 &&
  1030. org_id!=10445
  1031. "
  1032. >
  1033. <template slot-scope="scope">
  1034. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1035. <td style="border-right: none; border-inline-end: none;text-align: center">
  1036. {{item.ultrafiltration_rate? item.ultrafiltration_rate: ""}}
  1037. </td>
  1038. </tr>
  1039. </template>
  1040. </el-table-column>
  1041. <el-table-column label="超滤率(ml/h)" align="center"
  1042. v-if="
  1043. isShow('超滤率2')">
  1044. <template slot-scope="scope">
  1045. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1046. <td style="border-right: none; border-inline-end: none;text-align: center">
  1047. {{item.ultrafiltration_rate_one?item.ultrafiltration_rate_one:"/"}}
  1048. </td>
  1049. </tr>
  1050. </template>
  1051. </el-table-column>
  1052. <el-table-column label="钠浓度(mmol/L)" align="center" v-if="isShow('钠浓度')">
  1053. <template slot-scope="scope">
  1054. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1055. <td style="border-right: none; border-inline-end: none;text-align: center">
  1056. {{item.sodium_concentration? item.sodium_concentration: ""}}
  1057. </td>
  1058. </tr>
  1059. </template>
  1060. </el-table-column>
  1061. <el-table-column label="钠浓度(mmol/L)" align="center" v-if="isShow('钠浓度1')">
  1062. <template slot-scope="scope">
  1063. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1064. <td style="border-right: none; border-inline-end: none;text-align: center">
  1065. {{item.sodium_concentration_one? item.sodium_concentration_one: "/"}}
  1066. </td>
  1067. </tr>
  1068. </template>
  1069. </el-table-column>
  1070. <el-table-column label="透析液温度(℃)" align="center" v-if="isShow('透析液温度')">
  1071. <template slot-scope="scope">
  1072. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1073. <td style="border-right: none; border-inline-end: none;text-align: center">
  1074. {{item.dialysate_temperature? item.dialysate_temperature: ""}}
  1075. </td>
  1076. </tr>
  1077. </template>
  1078. </el-table-column>
  1079. <el-table-column label="透析液温度(℃)" align="center" v-if="isShow('透析液温度1')">
  1080. <template slot-scope="scope">
  1081. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1082. <td style="border-right: none; border-inline-end: none;text-align: center">
  1083. {{item.dialysate_temperature_one? item.dialysate_temperature_one: "/"}}
  1084. </td>
  1085. </tr>
  1086. </template>
  1087. </el-table-column>
  1088. <el-table-column label="置换率(ml/min)" align="center"
  1089. v-if="
  1090. isShow('置换率') &&
  1091. (template_id == 6 ||
  1092. template_id == 10 ||
  1093. template_id == 11 ||
  1094. template_id == 20 ||
  1095. template_id == 26 ||
  1096. template_id == 29 ||
  1097. template_id == 48 ||
  1098. template_id == 53 ||
  1099. template_id == 54 ||
  1100. template_id == 56 ||
  1101. org_id ==10432 ||
  1102. org_id ==10445
  1103. )
  1104. ">
  1105. <template slot-scope="scope">
  1106. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1107. <td style="border-right: none; border-inline-end: none;text-align: center">
  1108. {{item.replacement_rate? item.replacement_rate: ""}}
  1109. </td>
  1110. </tr>
  1111. </template>
  1112. </el-table-column>
  1113. <el-table-column label="置换率(L/h)" align="center"
  1114. v-if="
  1115. isShow('置换率') &&
  1116. template_id != 6 &&
  1117. template_id != 10 &&
  1118. template_id != 11 &&
  1119. template_id != 20 &&
  1120. template_id != 26 &&
  1121. template_id != 29 &&
  1122. template_id != 48 &&
  1123. template_id != 53 &&
  1124. template_id != 54 &&
  1125. template_id != 56 &&
  1126. org_id !=10432 &&
  1127. org_id !=10445
  1128. "
  1129. >
  1130. <template slot-scope="scope">
  1131. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1132. <td style="border-right: none; border-inline-end: none;text-align: center">
  1133. {{item.replacement_rate? item.replacement_rate: ""}}
  1134. </td>
  1135. </tr>
  1136. </template>
  1137. </el-table-column>
  1138. <el-table-column label="置换率(ml/h)" align="center"
  1139. v-if="isShow('置换率1')"
  1140. >
  1141. <template slot-scope="scope">
  1142. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1143. <td style="border-right: none; border-inline-end: none;text-align: center">
  1144. {{item.replacement_rate_one? item.replacement_rate_one: "/"}}
  1145. </td>
  1146. </tr>
  1147. </template>
  1148. </el-table-column>
  1149. <el-table-column label="置换量(L)" align="center"
  1150. v-if="isShow('置换量') && (template_id == 43 || template_id == 48)"
  1151. >
  1152. <template slot-scope="scope">
  1153. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1154. <td style="border-right: none; border-inline-end: none;text-align: center">
  1155. {{item.displacement_quantity? item.displacement_quantity: ""}}
  1156. </td>
  1157. </tr>
  1158. </template>
  1159. </el-table-column>
  1160. <el-table-column label="置换量(ml)" align="center"
  1161. v-if="
  1162. isShow('置换量') &&
  1163. ((template_id == 6 &&
  1164. org_id != 9919 &&
  1165. org_id != 10191 &&
  1166. template_id != 43 &&
  1167. template_id != 47) ||
  1168. org_id == 9779 ||
  1169. template_id == 11 ||
  1170. template_id == 20 ||
  1171. template_id == 26 ||
  1172. template_id == 29 ||
  1173. template_id == 53 ||
  1174. template_id == 54 ||
  1175. template_id == 56 ||
  1176. template_id == 48 ||
  1177. org_id == 10340 ||
  1178. org_id == 10432 ||
  1179. org_id == 10445)
  1180. ">
  1181. <template slot-scope="scope">
  1182. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1183. <td style="border-right: none; border-inline-end: none;text-align: center">
  1184. {{item.displacement_quantity? item.displacement_quantity: ""}}
  1185. </td>
  1186. </tr>
  1187. </template>
  1188. </el-table-column>
  1189. <el-table-column label="置换量(L)" align="center"
  1190. v-if="
  1191. isShow('置换量') &&
  1192. (template_id != 6 || org_id == 9919 || org_id == 10191) &&
  1193. template_id != 9779 &&
  1194. template_id != 11 &&
  1195. template_id != 20 &&
  1196. template_id != 26 &&
  1197. template_id != 29 &&
  1198. template_id != 43 &&
  1199. template_id != 53 &&
  1200. template_id != 54 &&
  1201. template_id != 56 &&
  1202. template_id != 48 &&
  1203. org_id !=10340 &&
  1204. org_id !=10432 &&
  1205. org_id !=10445
  1206. "
  1207. >
  1208. <template slot-scope="scope">
  1209. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1210. <td style="border-right: none; border-inline-end: none;text-align: center">
  1211. {{item.displacement_quantity? item.displacement_quantity: ""}}
  1212. </td>
  1213. </tr>
  1214. </template>
  1215. </el-table-column>
  1216. <el-table-column label="置换量(ml)" align="center"
  1217. v-if="isShow('置换量1')"
  1218. >
  1219. <template slot-scope="scope">
  1220. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1221. <td style="border-right: none; border-inline-end: none;text-align: center">
  1222. {{item.displacement_quantity_one? item.displacement_quantity_one: "/"}}
  1223. </td>
  1224. </tr>
  1225. </template>
  1226. </el-table-column>
  1227. <el-table-column label="SpO₂(%)" align="center"
  1228. v-if="
  1229. isShow('SpO₂') &&
  1230. template_id != 6 &&
  1231. template_id != 10 &&
  1232. template_id != 11
  1233. "
  1234. >
  1235. <template slot-scope="scope">
  1236. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1237. <td style="border-right: none; border-inline-end: none;text-align: center">
  1238. {{item.blood_oxygen_saturation? item.blood_oxygen_saturation: ""}}
  1239. </td>
  1240. </tr>
  1241. </template>
  1242. </el-table-column>
  1243. <el-table-column label="SpO₂(%)" align="center"
  1244. v-if="
  1245. isShow('SpO₂1')
  1246. "
  1247. >
  1248. <template slot-scope="scope">
  1249. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1250. <td style="border-right: none; border-inline-end: none;text-align: center">
  1251. {{item.blood_oxygen_saturation_one? item.blood_oxygen_saturation_one: "/"}}
  1252. </td>
  1253. </tr>
  1254. </template>
  1255. </el-table-column>
  1256. <el-table-column label="电导度(mS/cm)" align="center"
  1257. v-if="isShow('电导度')">
  1258. <template slot-scope="scope">
  1259. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1260. <td style="border-right: none; border-inline-end: none;text-align: center">
  1261. {{item.conductivity? item.conductivity: ""}}
  1262. </td>
  1263. </tr>
  1264. </template>
  1265. </el-table-column>
  1266. <el-table-column label="电导度(mS/cm)" align="center"
  1267. v-if="isShow('电导度1')">
  1268. <template slot-scope="scope">
  1269. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1270. <td style="border-right: none; border-inline-end: none;text-align: center">
  1271. {{item.conductivity_one? item.conductivity_one: "/"}}
  1272. </td>
  1273. </tr>
  1274. </template>
  1275. </el-table-column>
  1276. <el-table-column label="置换液流量(ml/h)" align="center"
  1277. v-if="isShow('置换液流量') && template_id != 27"
  1278. >
  1279. <!-- 数据的遍历 scope.row就代表数据的每一个对象-->
  1280. <template slot-scope="scope">
  1281. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1282. <td style="border-right: none; border-inline-end: none;text-align: center">
  1283. {{item.displacement_flow_quantity? item.displacement_flow_quantity: ""}}
  1284. </td>
  1285. </tr>
  1286. </template>
  1287. </el-table-column>
  1288. <el-table-column label="置换液流量(ml/min)" align="center"
  1289. v-if="isShow('置换液流量') && template_id == 27"
  1290. >
  1291. <template slot-scope="scope">
  1292. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1293. <td style="border-right: none; border-inline-end: none;text-align: center">
  1294. {{item.displacement_flow_quantity? item.displacement_flow_quantity: ""}}
  1295. </td>
  1296. </tr>
  1297. </template>
  1298. </el-table-column>
  1299. <el-table-column label="置换液流量(ml/min)" align="center"
  1300. v-if="isShow('置换液流量1')"
  1301. >
  1302. <template slot-scope="scope">
  1303. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1304. <td style="border-right: none; border-inline-end: none;text-align: center">
  1305. {{item.displacement_flow_quantity_one? item.displacement_flow_quantity_one: "/"}}
  1306. </td>
  1307. </tr>
  1308. </template>
  1309. </el-table-column>
  1310. <el-table-column label="透析液流量(ml/h)" align="center" v-if="isShow('透析液流量')">
  1311. <template slot-scope="scope">
  1312. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1313. <td style="border-right: none; border-inline-end: none;text-align: center">
  1314. {{item.dialysate_flow? item.dialysate_flow: ""}}
  1315. </td>
  1316. </tr>
  1317. </template>
  1318. </el-table-column>
  1319. <el-table-column label="透析液流量(ml/h)" align="center" v-if="isShow('透析液流量1')">
  1320. <template slot-scope="scope">
  1321. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1322. <td style="border-right: none; border-inline-end: none;text-align: center">
  1323. {{item.dialysate_flow_one? item.dialysate_flow_one: "/"}}
  1324. </td>
  1325. </tr>
  1326. </template>
  1327. </el-table-column>
  1328. <el-table-column label="肝素用量余量(ml)" align="center" v-if="isShow('肝素用量余量')">
  1329. <template slot-scope="scope">
  1330. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1331. <td style="border-right: none; border-inline-end: none;text-align: center">
  1332. {{item.heparin? item.heparin: ""}}
  1333. </td>
  1334. </tr>
  1335. </template>
  1336. </el-table-column>
  1337. <el-table-column label="剩余肝素(ml)" align="center" v-if="isShow('剩余肝素')">
  1338. <template slot-scope="scope">
  1339. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1340. <td style="border-right: none; border-inline-end: none;text-align: center">
  1341. {{item.heparin_one? item.heparin_one: "/"}}
  1342. </td>
  1343. </tr>
  1344. </template>
  1345. </el-table-column>
  1346. <el-table-column label="血压监测部位" align="center" v-if="isShow('血压监测部位')">
  1347. <template slot-scope="scope">
  1348. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1349. <td style="border-right: none; border-inline-end: none;text-align: center">
  1350. {{ getBloodPressure(item.blood_pressure_monitoring_site) }}
  1351. </td>
  1352. </tr>
  1353. </template>
  1354. </el-table-column>
  1355. <el-table-column label="并发症" align="center" v-if="isShow('并发症')">
  1356. <template slot-scope="scope">
  1357. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1358. <td style="border-right: none; border-inline-end: none;text-align: center">
  1359. {{ getComplication(item.complication) }}
  1360. </td>
  1361. </tr>
  1362. </template>
  1363. </el-table-column>
  1364. <el-table-column label="累计血容量(ml)" align="center"
  1365. v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671 && org_id != 10340"
  1366. >
  1367. <template slot-scope="scope">
  1368. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1369. <td style="border-right: none; border-inline-end: none;text-align: center">
  1370. {{item.accumulated_blood_volume}}
  1371. </td>
  1372. </tr>
  1373. </template>
  1374. </el-table-column>
  1375. <el-table-column label="累计血容量(L)" align="center"
  1376. v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9538 || org_id == 9671 || org_id == 10340)"
  1377. >
  1378. <template slot-scope="scope">
  1379. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1380. <td style="border-right: none; border-inline-end: none;text-align: center">
  1381. {{item.accumulated_blood_volume}}
  1382. </td>
  1383. </tr>
  1384. </template>
  1385. </el-table-column>
  1386. <el-table-column label="血容量" align="center" v-if="isShow('血容量')">
  1387. <template slot-scope="scope">
  1388. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1389. <td style="border-right: none; border-inline-end: none;text-align: center">
  1390. {{item.accumulated_blood_volume}}
  1391. </td>
  1392. </tr>
  1393. </template>
  1394. </el-table-column>
  1395. <el-table-column label="血容量" align="center" v-if="isShow('血容量1')">
  1396. <template slot-scope="scope">
  1397. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1398. <td style="border-right: none; border-inline-end: none;text-align: center">
  1399. {{item.accumulated_blood_volume_one?item.accumulated_blood_volume_one:"/"}}
  1400. </td>
  1401. </tr>
  1402. </template>
  1403. </el-table-column>
  1404. <el-table-column label="血温监测" align="center" v-if="isShow('血温监测')">
  1405. <template slot-scope="scope">
  1406. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1407. <td style="border-right: none; border-inline-end: none;text-align: center">
  1408. {{item.blood_temperature}}
  1409. </td>
  1410. </tr>
  1411. </template>
  1412. </el-table-column>
  1413. <el-table-column label="血温监测" align="center" v-if="isShow('血温监测1')">
  1414. <template slot-scope="scope">
  1415. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1416. <td style="border-right: none; border-inline-end: none;text-align: center">
  1417. {{item.blood_temperature_one?item.blood_temperature_one:"/"}}
  1418. </td>
  1419. </tr>
  1420. </template>
  1421. </el-table-column>
  1422. <el-table-column label="尿素监测" align="center" v-if="isShow('尿素监测')" >
  1423. <template slot-scope="scope">
  1424. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1425. <td style="border-right: none; border-inline-end: none;text-align: center">
  1426. {{item.urea_monitoring}}
  1427. </td>
  1428. </tr>
  1429. </template>
  1430. </el-table-column>
  1431. <el-table-column label="尿素监测" align="center" v-if="isShow('尿素监测1')" >
  1432. <template slot-scope="scope">
  1433. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1434. <td style="border-right: none; border-inline-end: none;text-align: center">
  1435. {{item.urea_monitoring_one?item.urea_monitoring_one:"/"}}
  1436. </td>
  1437. </tr>
  1438. </template>
  1439. </el-table-column>
  1440. <el-table-column label="血压监测" align="center" v-if="isShow('血压监测')">
  1441. <template slot-scope="scope">
  1442. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1443. <td style="border-right: none; border-inline-end: none;text-align: center">
  1444. {{item.blood_monitor}}
  1445. </td>
  1446. </tr>
  1447. </template>
  1448. </el-table-column>
  1449. <el-table-column label="肝素量(mg)" align="center" v-if="isShow('肝素量')">
  1450. <template slot-scope="scope">
  1451. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1452. <td style="border-right: none; border-inline-end: none;text-align: center">
  1453. {{item.heparin_amount}}
  1454. </td>
  1455. </tr>
  1456. </template>
  1457. </el-table-column>
  1458. <el-table-column label="脱水(L)" align="center" v-if="isShow('脱水')">
  1459. <template slot-scope="scope">
  1460. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1461. <td style="border-right: none; border-inline-end: none;text-align: center">
  1462. {{item.dehydration}}
  1463. </td>
  1464. </tr>
  1465. </template>
  1466. </el-table-column>
  1467. <el-table-column label="KT/V" align="center"
  1468. v-if="isShow('KT/V') &&(org_id == 9987 || org_id == 10215 || org_id == 9800 || org_id == 9671 || org_id == 9675)"
  1469. >
  1470. <template slot-scope="scope">
  1471. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1472. <td style="border-right: none; border-inline-end: none;text-align: center">
  1473. {{item.ktv}}
  1474. </td>
  1475. </tr>
  1476. </template>
  1477. </el-table-column>
  1478. <el-table-column label="KT/V" align="center"
  1479. v-if="isShow('kt/v1')"
  1480. >
  1481. <template slot-scope="scope">
  1482. <tr style="background: none" v-for="(item,index) in scope.row.monitoring_record" :key="index">
  1483. <td style="border-right: none; border-inline-end: none;text-align: center">
  1484. {{item.ktv_one?item.ktv_one:"/"}}
  1485. </td>
  1486. </tr>
  1487. </template>
  1488. </el-table-column>
  1489. </el-table>
  1490. <el-pagination
  1491. align="right"
  1492. @size-change="handleSizeChange"
  1493. @current-change="handleCurrentChange"
  1494. :page-sizes="[20, 40, 60, 80,100,300,500]"
  1495. :page-size="10"
  1496. background
  1497. style="margin-top:20px;"
  1498. layout="total, sizes, prev, pager, next, jumper"
  1499. :total="total"
  1500. ></el-pagination>
  1501. <!-- :page-sizes="[20, 40, 60, 80,100,300,500]" -->
  1502. </div>
  1503. </div>
  1504. </template>
  1505. <script>
  1506. import UploadExcel from '@/xt_pages/components/UploadExcel'
  1507. import { getDataConfig } from "@/utils/data";
  1508. import store from "@/store";
  1509. import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
  1510. import { parseTime } from "@/utils";
  1511. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  1512. import { getPrintTemplate } from "@/api/data";
  1513. import { uParseTime } from '@/utils/tools'
  1514. const moment = require('moment')
  1515. export default {
  1516. name: "Patient",
  1517. components: {
  1518. UploadExcel,
  1519. },
  1520. data() {
  1521. return {
  1522. crumbs: [
  1523. { path: false, name: "透析管理" },
  1524. { path: false, name: "透析监测" }
  1525. ],
  1526. loading: false,
  1527. time: "",
  1528. search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
  1529. patient_search_keyword: "",
  1530. SchedualPatientsTableData: [],
  1531. active: true,
  1532. schedulType: 0,
  1533. schedulArr: [
  1534. { value: 0, label: "全部" },
  1535. { value: 1, label: "上午" },
  1536. { value: 2, label: "下午" },
  1537. { value: 3, label: "晚上" }
  1538. ],
  1539. template_id: 0,
  1540. partitionType: 0,
  1541. labelArr: ["第1次", "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
  1542. pickerOptions1: {
  1543. shortcuts: [
  1544. {
  1545. text: "今天",
  1546. onClick(picker) {
  1547. var date = new Date();
  1548. var year = date.getFullYear();
  1549. var month = date.getMonth() + 1;
  1550. var day = date.getDate();
  1551. if (month < 10) {
  1552. month = "0" + month;
  1553. }
  1554. if (day < 10) {
  1555. day = "0" + day;
  1556. }
  1557. var nowDate = year + "-" + month + "-" + day;
  1558. var date1 = new Date(nowDate + " 00:00:00");
  1559. picker.$emit("pick", date1.getTime());
  1560. }
  1561. },
  1562. {
  1563. text: "昨天",
  1564. onClick(picker) {
  1565. var d = new Date();
  1566. d.setTime(d.getTime() - 3600 * 1000 * 24);
  1567. var date = d;
  1568. var year = date.getFullYear();
  1569. var month = date.getMonth() + 1;
  1570. var day = date.getDate();
  1571. if (month < 10) {
  1572. month = "0" + month;
  1573. }
  1574. if (day < 10) {
  1575. day = "0" + day;
  1576. }
  1577. var nowDate = year + "-" + month + "-" + day;
  1578. var date1 = new Date(nowDate + " 00:00:00");
  1579. picker.$emit("pick", date1.getTime());
  1580. }
  1581. },
  1582. {
  1583. text: "一周前",
  1584. onClick(picker) {
  1585. var d = new Date();
  1586. d.setTime(d.getTime() - 3600 * 1000 * 24 * 7);
  1587. var date = d;
  1588. var year = date.getFullYear();
  1589. var month = date.getMonth() + 1;
  1590. var day = date.getDate();
  1591. if (month < 10) {
  1592. month = "0" + month;
  1593. }
  1594. if (day < 10) {
  1595. day = "0" + day;
  1596. }
  1597. var nowDate = year + "-" + month + "-" + day;
  1598. var date1 = new Date(nowDate + " 00:00:00");
  1599. picker.$emit("pick", date1.getTime());
  1600. }
  1601. },
  1602. {
  1603. text: "清空",
  1604. onClick(picker) {
  1605. picker.$emit("pick");
  1606. }
  1607. }
  1608. ]
  1609. },
  1610. total: 0,
  1611. listQuery: {
  1612. page: 1,
  1613. limit: 20,
  1614. schedul_type: 0,
  1615. partition_type: 0,
  1616. schedul_time: "",
  1617. keywords: "",
  1618. start_time:"",
  1619. end_time:"",
  1620. },
  1621. selecting_schs: [],
  1622. partitionArr: [],
  1623. bloodPressureMmonitoringSite: [],
  1624. complicationList: [],
  1625. template_id:0,
  1626. org_id:0,
  1627. page2:0,
  1628. };
  1629. },
  1630. created() {
  1631. this.listQuery.page=sessionStorage.getItem("page");
  1632. sessionStorage.removeItem("page");
  1633. this.template_id = this.$store.getters.xt_user.template_info.template_id;
  1634. this.org_id = this.$store.getters.xt_user.template_info.org_id;
  1635. this.bloodPressureMmonitoringSite = getDataConfig(
  1636. "hemodialysis",
  1637. "blood_pressure_monitoring_site"
  1638. );
  1639. this.complicationList = getDataConfig("hemodialysis", "complication");
  1640. var search_mode = this.$store.getters.search_mode
  1641. var search_value = this.$store.getters.search_value
  1642. console.log('search_mode',search_mode)
  1643. if(search_mode == 2){
  1644. this.search_mode = search_mode
  1645. if(search_value != ''){
  1646. this.patient_search_keyword = search_value
  1647. this.listQuery.keywords = search_value
  1648. this.getSchedualPatientList();
  1649. var date = new Date();
  1650. this.time = date;
  1651. var year = date.getFullYear();
  1652. var month = date.getMonth() + 1;
  1653. var day = date.getDate();
  1654. if (month < 10) {
  1655. month = "0" + month;
  1656. }
  1657. if (day < 10) {
  1658. day = "0" + day;
  1659. }
  1660. var nowDate = year + "-" + month + "-" + day;
  1661. var date = new Date(nowDate + " 00:00:00");
  1662. this.listQuery.schedul_time = date.getTime();
  1663. this.getAllZone();
  1664. this.getTemplateInfo();
  1665. }else {
  1666. var start_month = moment().startOf('month').format('YYYY-MM-DD')
  1667. var start_time = this.getTimestamp(start_month)
  1668. this.listQuery.start_time = start_time
  1669. var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
  1670. var end_time = this.getTimestamp(end_month)
  1671. this.listQuery.end_time = end_time
  1672. this.getSchedualPatientList()
  1673. this.getAllZone();
  1674. this.getTemplateInfo();
  1675. }
  1676. }else {
  1677. var date = new Date();
  1678. this.time = date;
  1679. var year = date.getFullYear();
  1680. var month = date.getMonth() + 1;
  1681. var day = date.getDate();
  1682. if (month < 10) {
  1683. month = "0" + month;
  1684. }
  1685. if (day < 10) {
  1686. day = "0" + day;
  1687. }
  1688. var nowDate = year + "-" + month + "-" + day;
  1689. var date = new Date(nowDate + " 00:00:00");
  1690. this.listQuery.schedul_time = date.getTime();
  1691. var start_month = moment().startOf('month').format('YYYY-MM-DD')
  1692. var start_time = this.getTimestamp(start_month)
  1693. this.listQuery.start_time = start_time
  1694. var end_month = moment(new Date()).add('year',0).format("YYYY-MM-DD")
  1695. var end_time = this.getTimestamp(end_month)
  1696. this.listQuery.end_time = end_time
  1697. this.getAllZone();
  1698. this.getSchedualPatientList();
  1699. this.getTemplateInfo();
  1700. }
  1701. // this.template_id = this.$store.getters.xt_user.template_info.template_id;
  1702. },
  1703. methods: {
  1704. getTemplateInfo() {
  1705. getPrintTemplate().then(response => {
  1706. if (response.data.state == 0) {
  1707. this.$message.error(response.data.msg);
  1708. return false;
  1709. } else {
  1710. var template = response.data.data.template;
  1711. this.template_id = template.template_id;
  1712. console.log("templage-i233232323232322323233232323223",this.template_id)
  1713. }
  1714. });
  1715. },
  1716. clickCurrent(val) {
  1717. sessionStorage.setItem("page", this.listQuery.page);
  1718. // this.page2 = this.listQuery.page
  1719. console.log('val',this.listQuery.page);
  1720. this.$router.push({
  1721. path: "/dialysis/details",
  1722. query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
  1723. });
  1724. },
  1725. handleSelectionChange(val) {
  1726. this.selecting_schs = val;
  1727. },
  1728. selectSchedulType(scheduleType) {
  1729. // alert(scheduleType);/
  1730. this.schedulType = scheduleType;
  1731. this.listQuery.schedul_type = scheduleType;
  1732. this.getSchedualPatientList();
  1733. },
  1734. selectPartitionType(partitionType) {
  1735. this.partitionType = partitionType;
  1736. this.listQuery.partition_type = partitionType;
  1737. this.getSchedualPatientList();
  1738. },
  1739. changeTime() {
  1740. this.listQuery.start_time = ""
  1741. this.listQuery.end_time = ""
  1742. this.listQuery.start_time = this.getTimestampOne(this.time)
  1743. this.listQuery.end_time = this.getTimestampOne(this.time)
  1744. this.listQuery.schedul_time = this.time;
  1745. this.getSchedualPatientList();
  1746. },
  1747. changeStartTime(){
  1748. this.getSchedualPatientList()
  1749. },
  1750. changeEndTime(){
  1751. this.getSchedualPatientList()
  1752. },
  1753. getAllZone: function() {
  1754. GetAllZone().then(response => {
  1755. if (response.data.state == 0) {
  1756. this.$message.error(response.data.msg);
  1757. return false;
  1758. } else {
  1759. this.partitionArr = response.data.data.zone;
  1760. this.partitionArr.unshift({ id: 0, name: "全部" });
  1761. }
  1762. });
  1763. },
  1764. getTimestamp(time) { //把时间日期转成时间戳
  1765. return (new Date(time)).getTime() - 28800000
  1766. },
  1767. getTimestampOne(time) { //把时间日期转成时间戳
  1768. return (new Date(time)).getTime()
  1769. },
  1770. getSchedualPatientList: function() {
  1771. this.loading = true;
  1772. if (this.search_mode == 1) {
  1773. this.listQuery.keywords = "";
  1774. } else {
  1775. this.listQuery.schedul_time = "";
  1776. }
  1777. console.log("params332322332323232",this.listQuery.start_time)
  1778. this.SchedualPatientsTableData = [];
  1779. getSchedualPatient(this.listQuery).then(response => {
  1780. if (response.data.state == 0) {
  1781. this.loading = false;
  1782. this.$message.error(response.data.msg);
  1783. return false;
  1784. } else {
  1785. this.loading = false;
  1786. this.total = response.data.data.total;
  1787. console.log("世界文化遗产",response.data.data.schedule)
  1788. for (let i = 0; i < response.data.data.schedule.length; i++) {
  1789. if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
  1790. const SchedualPatientsTable = {
  1791. bp: []
  1792. };
  1793. if(response.data.data.schedule[i].dialysis_order!=null){
  1794. SchedualPatientsTable["start_time"] = response.data.data.schedule[i].dialysis_order.start_time ? parseTime(response.data.data.schedule[i].dialysis_order.start_time,"{h}:{i}") : '';
  1795. }
  1796. SchedualPatientsTable["sch_id"] = response.data.data.schedule[i].id;
  1797. SchedualPatientsTable["sch_time_int"] = response.data.data.schedule[i].schedule_date;
  1798. SchedualPatientsTable["sch_time"] = parseTime(response.data.data.schedule[i].schedule_date,"{y}-{m}-{d}");
  1799. SchedualPatientsTable["mode_id"] = response.data.data.schedule[i].mode_id
  1800. if(response.data.data.schedule[i].patient!=null){
  1801. SchedualPatientsTable["dialysis_no"] = response.data.data.schedule[i].patient.dialysis_no;
  1802. SchedualPatientsTable["name"] = response.data.data.schedule[i].patient.name;
  1803. SchedualPatientsTable["gender"] = response.data.data.schedule[i].patient.gender;
  1804. SchedualPatientsTable["source"] = response.data.data.schedule[i].patient.source;
  1805. SchedualPatientsTable["patient_id"] = response.data.data.schedule[i].patient_id;
  1806. }
  1807. SchedualPatientsTable["number"] = response.data.data.schedule[i].device_number.number;
  1808. SchedualPatientsTable["mode_name"] = this.getModeId(response.data.data.schedule[i].mode_id)
  1809. // if(response.data.data.schedule[i].treatment_mode!=null){
  1810. // SchedualPatientsTable["mode_name"] = response.data.data.schedule[i].treatment_mode.name;
  1811. // }
  1812. if(response.data.data.schedule[i].prescription!=null){
  1813. SchedualPatientsTable["target_ultrafiltration"] = response.data.data.schedule[i].prescription.target_ultrafiltration;
  1814. }
  1815. if(response.data.data.schedule[i].prescription!=null){
  1816. SchedualPatientsTable["prescription_water"] = response.data.data.schedule[i].prescription.prescription_water;
  1817. }
  1818. if (response.data.data.schedule[i].assessment_before_dislysis != null) {
  1819. SchedualPatientsTable["dialysis_before_weight"] =response.data.data.schedule[i].assessment_before_dislysis.weight_before;
  1820. }
  1821. if (response.data.data.schedule[i].assessment_before_dislysis != null) {
  1822. SchedualPatientsTable["dry_weight"] =response.data.data.schedule[i].assessment_before_dislysis.dry_weight;
  1823. }
  1824. if (response.data.data.schedule[i].assessment_after_dislysis !=null) {
  1825. SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
  1826. }
  1827. if (response.data.data.schedule[i].assessment_before_dislysis != null) {
  1828. 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;
  1829. }
  1830. if(response.data.data.schedule[i].monitoring_record!=null &&response.data.data.schedule[i].monitoring_record.length >0 ){
  1831. SchedualPatientsTable["monitoring_record"] = response.data.data.schedule[i].monitoring_record
  1832. }
  1833. SchedualPatientsTable.bp = [];
  1834. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0 && this.org_id!=10693){
  1835. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1836. const bp = {};
  1837. 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();
  1838. SchedualPatientsTable.bp.push(bp);
  1839. }
  1840. }
  1841. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0 && this.org_id==10693){
  1842. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1843. const bp = {};
  1844. bp["value"] =response.data.data.schedule[i].monitoring_record[a].monitor_systolic_blood_pressure_one.toString()+"/" +response.data.data.schedule[i].monitoring_record[a].monitor_diastolic_blood_pressure_one.toString();
  1845. SchedualPatientsTable.bp.push(bp);
  1846. }
  1847. }
  1848. // 体温
  1849. SchedualPatientsTable.tp = [];
  1850. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length >0 && this.org_id !=10693){
  1851. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1852. const tp = {};
  1853. tp["value"] =response.data.data.schedule[i].monitoring_record[a].temperature
  1854. SchedualPatientsTable.tp.push(tp);
  1855. }
  1856. }
  1857. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length >0 && this.org_id ==10693){
  1858. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1859. const tp = {};
  1860. tp["value"] =response.data.data.schedule[i].monitoring_record[a].monitor_temperature_one?response.data.data.schedule[i].monitoring_record[a].monitor_temperature_one:"/"
  1861. SchedualPatientsTable.tp.push(tp);
  1862. }
  1863. }
  1864. // 脉搏
  1865. SchedualPatientsTable.mp = [];
  1866. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length >0 && this.org_id!=10693){
  1867. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1868. const mp = {};
  1869. mp["value"] =response.data.data.schedule[i].monitoring_record[a].pulse_frequency
  1870. SchedualPatientsTable.mp.push(mp);
  1871. }
  1872. }
  1873. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length >0 && this.org_id == 10693){
  1874. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1875. const mp = {};
  1876. mp["value"] =response.data.data.schedule[i].monitoring_record[a].pulse_frequency_one?response.data.data.schedule[i].monitoring_record[a].pulse_frequency_one:"/"
  1877. SchedualPatientsTable.mp.push(mp);
  1878. }
  1879. }
  1880. //呼吸频率
  1881. SchedualPatientsTable.hp = [];
  1882. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length >0){
  1883. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1884. const hp = {};
  1885. hp["value"] =response.data.data.schedule[i].monitoring_record[a].breathing_rate?response.data.data.schedule[i].monitoring_record[a].breathing_rate:"/"
  1886. SchedualPatientsTable.hp.push(hp);
  1887. }
  1888. }
  1889. //静脉压/动脉压(kpa)
  1890. SchedualPatientsTable.jp = [];
  1891. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0 && this.org_id!=10693){
  1892. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1893. const jp = {};
  1894. jp["value"] =response.data.data.schedule[i].monitoring_record[a].venous_pressure.toString()+"/" +response.data.data.schedule[i].monitoring_record[a].arterial_pressure.toString();
  1895. SchedualPatientsTable.jp.push(jp);
  1896. }
  1897. }
  1898. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0 && this.org_id ==10693){
  1899. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1900. const jp = {};
  1901. jp["value"] =response.data.data.schedule[i].monitoring_record[a].venous_pressure_one.toString()+"/" +response.data.data.schedule[i].monitoring_record[a].arterial_pressure_one.toString();
  1902. SchedualPatientsTable.jp.push(jp);
  1903. }
  1904. }
  1905. //血流量
  1906. SchedualPatientsTable.xp = [];
  1907. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  1908. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1909. const xp = {};
  1910. xp["value"] =response.data.data.schedule[i].monitoring_record[a].blood_flow_volume
  1911. SchedualPatientsTable.xp.push(xp);
  1912. }
  1913. }
  1914. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0 && this.org_id ==10693){
  1915. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1916. const xp = {};
  1917. xp["value"] =response.data.data.schedule[i].monitoring_record[a].blood_flow_volume_one?response.data.data.schedule[i].monitoring_record[a].blood_flow_volume_one:"/"
  1918. SchedualPatientsTable.xp.push(xp);
  1919. }
  1920. }
  1921. //跨膜压
  1922. SchedualPatientsTable.kp = [];
  1923. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&& this.org_id!=10693){
  1924. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1925. const kp = {};
  1926. kp["value"] =response.data.data.schedule[i].monitoring_record[a].transmembrane_pressure
  1927. SchedualPatientsTable.kp.push(kp);
  1928. }
  1929. }
  1930. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id ==10693){
  1931. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1932. const kp = {};
  1933. kp["value"] =response.data.data.schedule[i].monitoring_record[a].transmembrane_pressure_one?response.data.data.schedule[i].monitoring_record[a].transmembrane_pressure_one:"/"
  1934. SchedualPatientsTable.kp.push(kp);
  1935. }
  1936. }
  1937. //超滤量
  1938. SchedualPatientsTable.cp = [];
  1939. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0 && this.org_id!=10693){
  1940. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1941. const cp = {};
  1942. cp["value"] =response.data.data.schedule[i].monitoring_record[a].ultrafiltration_volume
  1943. SchedualPatientsTable.cp.push(cp);
  1944. }
  1945. }
  1946. SchedualPatientsTable.cp = [];
  1947. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id==10693){
  1948. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1949. const cp = {};
  1950. cp["value"] =response.data.data.schedule[i].monitoring_record[a].ultrafiltration_volume_one?response.data.data.schedule[i].monitoring_record[a].ultrafiltration_volume_one:"/"
  1951. SchedualPatientsTable.cp.push(cp);
  1952. }
  1953. }
  1954. //超滤率
  1955. SchedualPatientsTable.clp = [];
  1956. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  1957. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1958. const clp = {};
  1959. clp["value"] =response.data.data.schedule[i].monitoring_record[a].ultrafiltration_rate
  1960. SchedualPatientsTable.clp.push(clp);
  1961. }
  1962. }
  1963. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id ==10693){
  1964. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1965. const clp = {};
  1966. clp["value"] =response.data.data.schedule[i].monitoring_record[a].ultrafiltration_rate?response.data.data.schedule[i].monitoring_record[a].ultrafiltration_rate:"/"
  1967. SchedualPatientsTable.clp.push(clp);
  1968. }
  1969. }
  1970. //钠浓度
  1971. SchedualPatientsTable.np = [];
  1972. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&& this.org_id!=10693){
  1973. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1974. const np = {};
  1975. np["value"] =response.data.data.schedule[i].monitoring_record[a].sodium_concentration
  1976. SchedualPatientsTable.np.push(np);
  1977. }
  1978. }
  1979. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id==10693){
  1980. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1981. const np = {};
  1982. np["value"] =response.data.data.schedule[i].monitoring_record[a].sodium_concentration_one?response.data.data.schedule[i].monitoring_record[a].sodium_concentration_one:"/"
  1983. SchedualPatientsTable.np.push(np);
  1984. }
  1985. }
  1986. // 透析液温度
  1987. SchedualPatientsTable.tcp = [];
  1988. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  1989. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1990. const tcp = {};
  1991. tcp["value"] =response.data.data.schedule[i].monitoring_record[a].dialysate_temperature
  1992. SchedualPatientsTable.tcp.push(tcp);
  1993. }
  1994. }
  1995. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0 &&this.org_id ==10693){
  1996. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  1997. const tcp = {};
  1998. tcp["value"] =response.data.data.schedule[i].monitoring_record[a].dialysate_temperature_one?response.data.data.schedule[i].monitoring_record[a].dialysate_temperature_one:"/"
  1999. SchedualPatientsTable.tcp.push(tcp);
  2000. }
  2001. }
  2002. //置换率(ml/min)
  2003. SchedualPatientsTable.zp = [];
  2004. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id ==10693){
  2005. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2006. const zp = {};
  2007. zp["value"] =response.data.data.schedule[i].monitoring_record[a].replacement_rate
  2008. SchedualPatientsTable.zp.push(zp);
  2009. }
  2010. }
  2011. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id==10693){
  2012. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2013. const zp = {};
  2014. zp["value"] =response.data.data.schedule[i].monitoring_record[a].replacement_rate_one?response.data.data.schedule[i].monitoring_record[a].replacement_rate_one:"/"
  2015. SchedualPatientsTable.zp.push(zp);
  2016. }
  2017. }
  2018. // 置换量(ml/h)
  2019. SchedualPatientsTable.zhp = [];
  2020. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  2021. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2022. const zhp = {};
  2023. zhp["value"] =response.data.data.schedule[i].monitoring_record[a].displacement_quantity
  2024. SchedualPatientsTable.zhp.push(zhp);
  2025. }
  2026. }
  2027. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id == 10693){
  2028. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2029. const zhp = {};
  2030. zhp["value"] =response.data.data.schedule[i].monitoring_record[a].displacement_quantity_one?response.data.data.schedule[i].monitoring_record[a].displacement_quantity_one:"/"
  2031. SchedualPatientsTable.zhp.push(zhp);
  2032. }
  2033. }
  2034. // SpO₂
  2035. SchedualPatientsTable.sp = [];
  2036. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  2037. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2038. const sp = {};
  2039. sp["value"] =response.data.data.schedule[i].monitoring_record[a].blood_oxygen_saturation
  2040. SchedualPatientsTable.sp.push(sp);
  2041. }
  2042. }
  2043. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id ==10693){
  2044. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2045. const sp = {};
  2046. sp["value"] =response.data.data.schedule[i].monitoring_record[a].blood_oxygen_saturation_one?response.data.data.schedule[i].monitoring_record[a].blood_oxygen_saturation_one:"/"
  2047. SchedualPatientsTable.sp.push(sp);
  2048. }
  2049. }
  2050. // 电导度(mS/m)
  2051. SchedualPatientsTable.ddp = [];
  2052. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  2053. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2054. const ddp = {};
  2055. ddp["value"] =response.data.data.schedule[i].monitoring_record[a].conductivity
  2056. SchedualPatientsTable.ddp.push(ddp);
  2057. }
  2058. }
  2059. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id ==10693){
  2060. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2061. const ddp = {};
  2062. ddp["value"] =response.data.data.schedule[i].monitoring_record[a].conductivity_one?response.data.data.schedule[i].monitoring_record[a].conductivity_one:"/"
  2063. SchedualPatientsTable.ddp.push(ddp);
  2064. }
  2065. }
  2066. //置换液流量(ml/h)
  2067. SchedualPatientsTable.zhyp = [];
  2068. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  2069. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2070. const zhyp = {};
  2071. zhyp["value"] =response.data.data.schedule[i].monitoring_record[a].displacement_flow_quantity
  2072. SchedualPatientsTable.zhyp.push(zhyp);
  2073. }
  2074. }
  2075. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id==10693){
  2076. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2077. const zhyp = {};
  2078. zhyp["value"] =response.data.data.schedule[i].monitoring_record[a].displacement_flow_quantity_one?response.data.data.schedule[i].monitoring_record[a].displacement_flow_quantity_one:"/"
  2079. SchedualPatientsTable.zhyp.push(zhyp);
  2080. }
  2081. }
  2082. // 透析液流量(ml/h)
  2083. SchedualPatientsTable.tcyp = [];
  2084. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  2085. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2086. const tcyp = {};
  2087. tcyp["value"] =response.data.data.schedule[i].monitoring_record[a].dialysate_flow
  2088. SchedualPatientsTable.tcyp.push(tcyp);
  2089. }
  2090. }
  2091. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id ==10693){
  2092. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2093. const tcyp = {};
  2094. tcyp["value"] =response.data.data.schedule[i].monitoring_record[a].dialysate_flow_one?response.data.data.schedule[i].monitoring_record[a].dialysate_flow_one:"/"
  2095. SchedualPatientsTable.tcyp.push(tcyp);
  2096. }
  2097. }
  2098. // 肝素用量余量
  2099. SchedualPatientsTable.gsyp = [];
  2100. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  2101. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2102. const gsyp = {};
  2103. gsyp["value"] =response.data.data.schedule[i].monitoring_record[a].heparin
  2104. SchedualPatientsTable.gsyp.push(gsyp);
  2105. }
  2106. }
  2107. // 肝素量(mg)
  2108. SchedualPatientsTable.gsp = [];
  2109. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  2110. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2111. const gsp = {};
  2112. gsp["value"] =response.data.data.schedule[i].monitoring_record[a].heparin_amount
  2113. SchedualPatientsTable.gsp.push(gsp);
  2114. }
  2115. }
  2116. // 血压监测部位
  2117. SchedualPatientsTable.xyjcp = [];
  2118. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  2119. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2120. const xyjcp = {};
  2121. xyjcp["value"] = this.getBloodPressure(response.data.data.schedule[i].monitoring_record[a].blood_pressure_monitoring_site)
  2122. SchedualPatientsTable.xyjcp.push(xyjcp);
  2123. }
  2124. }
  2125. // 并发症
  2126. SchedualPatientsTable.bfp = [];
  2127. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  2128. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2129. const bfp = {};
  2130. bfp["value"] = this.getComplication(response.data.data.schedule[i].monitoring_record[a].complication)
  2131. SchedualPatientsTable.bfp.push(bfp);
  2132. }
  2133. }
  2134. // 累计血容量
  2135. SchedualPatientsTable.ljxrp = [];
  2136. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  2137. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2138. const ljxrp = {};
  2139. ljxrp["value"] = response.data.data.schedule[i].monitoring_record[a].accumulated_blood_volume
  2140. SchedualPatientsTable.ljxrp.push(ljxrp);
  2141. }
  2142. }
  2143. // 血容量
  2144. SchedualPatientsTable.xrp = [];
  2145. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  2146. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2147. const xrp = {};
  2148. xrp["value"] = response.data.data.schedule[i].monitoring_record[a].accumulated_blood_volume
  2149. SchedualPatientsTable.xrp.push(xrp);
  2150. }
  2151. }
  2152. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id == 10693){
  2153. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2154. const xrp = {};
  2155. xrp["value"] = response.data.data.schedule[i].monitoring_record[a].accumulated_blood_volume_one?response.data.data.schedule[i].monitoring_record[a].accumulated_blood_volume_one:"/"
  2156. SchedualPatientsTable.xrp.push(xrp);
  2157. }
  2158. }
  2159. // 血温监测
  2160. SchedualPatientsTable.xwp = [];
  2161. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  2162. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2163. const xwp = {};
  2164. xwp["value"] = response.data.data.schedule[i].monitoring_record[a].blood_temperature
  2165. SchedualPatientsTable.xwp.push(xwp);
  2166. }
  2167. }
  2168. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id==10693){
  2169. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2170. const xwp = {};
  2171. xwp["value"] = response.data.data.schedule[i].monitoring_record[a].blood_temperature_one?response.data.data.schedule[i].monitoring_record[a].blood_temperature_one:"/"
  2172. SchedualPatientsTable.xwp.push(xwp);
  2173. }
  2174. }
  2175. //尿素监测
  2176. SchedualPatientsTable.nxp = [];
  2177. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  2178. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2179. const nxp = {};
  2180. nxp["value"] = response.data.data.schedule[i].monitoring_record[a].urea_monitoring
  2181. SchedualPatientsTable.nxp.push(nxp);
  2182. }
  2183. }
  2184. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0 || this.org_id ==10693){
  2185. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2186. const nxp = {};
  2187. nxp["value"] = response.data.data.schedule[i].monitoring_record[a].urea_monitoring_one?response.data.data.schedule[i].monitoring_record[a].urea_monitoring_one:"/"
  2188. SchedualPatientsTable.nxp.push(nxp);
  2189. }
  2190. }
  2191. // 血压监测
  2192. SchedualPatientsTable.xyjc = [];
  2193. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  2194. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2195. const xyjc = {};
  2196. xyjc["value"] = response.data.data.schedule[i].monitoring_record[a].blood_monitor
  2197. SchedualPatientsTable.xyjc.push(xyjc);
  2198. }
  2199. }
  2200. // 脱水(L)
  2201. SchedualPatientsTable.tshp = [];
  2202. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
  2203. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2204. const tshp = {};
  2205. tshp["value"] = response.data.data.schedule[i].monitoring_record[a].dehydration
  2206. SchedualPatientsTable.tshp.push(tshp);
  2207. }
  2208. }
  2209. // KT/V
  2210. SchedualPatientsTable.ktvp = [];
  2211. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id!=10693){
  2212. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2213. const ktvp = {};
  2214. ktvp["value"] = response.data.data.schedule[i].monitoring_record[a].ktv
  2215. SchedualPatientsTable.ktvp.push(ktvp);
  2216. }
  2217. }
  2218. if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0&&this.org_id==10693){
  2219. for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
  2220. const ktvp = {};
  2221. ktvp["value"] = response.data.data.schedule[i].monitoring_record[a].ktv_one?response.data.data.schedule[i].monitoring_record[a].ktv_one:"/"
  2222. SchedualPatientsTable.ktvp.push(ktvp);
  2223. }
  2224. }
  2225. if (response.data.data.schedule[i].assessment_after_dislysis != null) {
  2226. SchedualPatientsTable["after_pressure_name"] =response.data.data.schedule[i].assessment_after_dislysis.systolic_blood_pressure+"/"+ response.data.data.schedule[i].assessment_after_dislysis.diastolic_blood_pressure;
  2227. }
  2228. this.SchedualPatientsTableData.push(SchedualPatientsTable);
  2229. // console.log("wode数据",(-100).toString())
  2230. // console.log("数据哦哦😯噢232o",this.SchedualPatientsTableData)
  2231. }
  2232. }
  2233. }
  2234. });
  2235. },
  2236. isShow(name) {
  2237. var filedList = store.getters.xt_user.fileds;
  2238. for (let i = 0; i < filedList.length; i++) {
  2239. if (
  2240. filedList[i].module == 4 &&
  2241. filedList[i].filed_name_cn == name &&
  2242. filedList[i].is_show == 1
  2243. ) {
  2244. return true;
  2245. }
  2246. }
  2247. return false;
  2248. },
  2249. cellStyle({ row, column, rowIndex, columnIndex }) {
  2250. 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];
  2251. if (arr.indexOf(columnIndex) > -1) {
  2252. return "spanClass";
  2253. }
  2254. },
  2255. getTimeOne(val) {
  2256. if(val < 0){
  2257. return ""
  2258. }
  2259. if(val == ""){
  2260. return ""
  2261. }else {
  2262. return uParseTime(val, '{h}:{i}')
  2263. }
  2264. },
  2265. getBloodPressure(id) {
  2266. var name = "";
  2267. for (let i = 0; i < this.bloodPressureMmonitoringSite.length; i++) {
  2268. if (id == this.bloodPressureMmonitoringSite[i].id) {
  2269. name = this.bloodPressureMmonitoringSite[i].name;
  2270. }
  2271. }
  2272. return name;
  2273. },
  2274. getComplication(id) {
  2275. var name = "";
  2276. for (let i = 0; i < this.complicationList.length; i++) {
  2277. if (id == this.complicationList[i].id) {
  2278. name = this.complicationList[i].name;
  2279. }
  2280. }
  2281. return name;
  2282. },
  2283. getValue: function(val) {
  2284. if (val != undefined) {
  2285. var str = val.value.split("/")
  2286. return str[0];
  2287. } else {
  2288. return "";
  2289. }
  2290. },
  2291. getValueOne: function(val) {
  2292. if (val != undefined) {
  2293. var str = val.value.split("/")
  2294. return str[1];
  2295. } else {
  2296. return "";
  2297. }
  2298. },
  2299. handleCurrentChange(val) {
  2300. this.listQuery.page = val;
  2301. this.getSchedualPatientList();
  2302. },
  2303. changeSearchMode: function() {
  2304. if (this.search_mode == 1) {
  2305. this.search_mode = 2;
  2306. } else {
  2307. this.search_mode = 1;
  2308. var date = new Date();
  2309. this.time = date;
  2310. var year = date.getFullYear();
  2311. var month = date.getMonth() + 1;
  2312. var day = date.getDate();
  2313. if (month < 10) {
  2314. month = "0" + month;
  2315. }
  2316. if (day < 10) {
  2317. day = "0" + day;
  2318. }
  2319. var nowDate = year + "-" + month + "-" + day;
  2320. var date = new Date(nowDate + " 00:00:00");
  2321. this.listQuery.schedul_time = date.getTime();
  2322. this.getAllZone();
  2323. this.getSchedualPatientList();
  2324. this.getTemplateInfo();
  2325. }
  2326. this.$store.dispatch('SetSearchMode', this.search_mode)
  2327. },
  2328. searchPatientAction: function() {
  2329. this.listQuery.keywords = this.patient_search_keyword;
  2330. this.$store.dispatch('SetSearchValue', this.patient_search_keyword)
  2331. console.log(this.patient_search_keyword);
  2332. if (this.patient_search_keyword.length == 0) {
  2333. return;
  2334. }
  2335. this.getSchedualPatientList();
  2336. },
  2337. handleSizeChange(val) {
  2338. this.listQuery.limit = val;
  2339. this.getSchedualPatientList();
  2340. },
  2341. batchPrintAction: function() {
  2342. if (this.selecting_schs.length === 0) {
  2343. this.$message.error("请至少选择一条需要打印的内容");
  2344. return false;
  2345. }
  2346. // 模板ID为6
  2347. var sch_ids = [];
  2348. for (let index = 0; index < this.selecting_schs.length; index++) {
  2349. sch_ids.push(this.selecting_schs[index].sch_id);
  2350. }
  2351. console.log("sch_ids",sch_ids)
  2352. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  2353. if (this.template_id == 2 || this.template_id == 0) {
  2354. this.$router.push({ path: "/dialysis/print/batch/other" });
  2355. } else if (this.template_id == 1) {
  2356. this.$router.push({ path: "/dialysis/print/batch" });
  2357. } else if (this.template_id == 3) {
  2358. this.$router.push({ path: "/dialysis/print/batch/three" });
  2359. } else if (this.template_id == 4) {
  2360. this.$router.push({ path: "/dialysis/print/batch/four" });
  2361. } else if (this.template_id == 5) {
  2362. this.$router.push({ path: "/dialysis/print/batch/five" });
  2363. } else if (this.template_id == 6) {
  2364. this.$router.push({ path: "/dialysis/print/batch/six" });
  2365. } else if (this.template_id == 7) {
  2366. this.$router.push({ path: "/dialysis/print/batch/seven" });
  2367. } else if (this.template_id == 8) {
  2368. this.$router.push({ path: "/dialysis/print/batch/eight" });
  2369. } else if (this.template_id == 9) {
  2370. this.$router.push({ path: "/dialysis/print/batch/nine" });
  2371. }else if (this.template_id == 11) {
  2372. this.$router.push({ path: "/dialysis/print/batch/Eleven" });
  2373. } else if (this.template_id == 12) {
  2374. this.$router.push({ path: "/dialysis/print/batch/twelve" });
  2375. } else if (this.template_id == 13) {
  2376. this.$router.push({ path: "/dialysis/print/batch/thirteen" });
  2377. } else if (this.template_id == 15) {
  2378. this.$router.push({ path: "/dialysis/print/batch/fifteen" });
  2379. } else if (this.template_id == 17) {
  2380. this.$router.push({ path: "/dialysis/print/batch/seventeen" });
  2381. } else if (this.template_id == 20) {
  2382. this.$router.push({ path: "/dialysis/print/batch/twenty" });
  2383. } else if (this.template_id == 22) {
  2384. this.$router.push({ path: "/dialysis/print/batch/twentyTwo" });
  2385. } else if (this.template_id == 25) {
  2386. this.$router.push({ path: "/dialysis/print/batch/twentyFive" });
  2387. }else if (this.template_id == 27) {
  2388. this.$router.push({ path: "/dialysis/print/batch/twentySeven" });
  2389. } else if(this.template_id == 28){
  2390. this.$router.push({path:"/dialysis/print/batch/twentyEight"})
  2391. } else if (this.template_id == 30) {
  2392. this.$router.push({ path: "/dialysis/print/batch/thirty" });
  2393. } else if (this.template_id == 32) {
  2394. this.$router.push({ path: "/dialysis/print/batch/thirtyTwo" });
  2395. } else if (this.template_id == 33) {
  2396. this.$router.push({ path: "/dialysis/print/batch/thirtyThree" });
  2397. } else if (this.template_id == 37) {
  2398. this.$router.push({ path: "/dialysis/print/batch/thirtySeven" });
  2399. } else if (this.template_id == 38) {
  2400. this.$router.push({ path: "/dialysis/print/batch/thirtyEight" });
  2401. } else if (this.template_id == 39) {
  2402. this.$router.push({ path: "/dialysis/print/batch/thirtyNine" });
  2403. } else if (this.template_id == 40) {
  2404. this.$router.push({ path: "/dialysis/print/batch/forty" });
  2405. } else if (this.template_id == 41) {
  2406. this.$router.push({ path: "/dialysis/print/batch/fortyOne" });
  2407. } else if (this.template_id == 43) {
  2408. this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
  2409. } else if (this.template_id == 47 && this.org_id!=10318) {
  2410. this.$router.push({ path: "/dialysis/print/batch/fortyThree" });
  2411. } else if (this.template_id == 48) {
  2412. this.$router.push({ path: "/dialysis/print/batch/six" });
  2413. }else if (this.template_id == 51) {
  2414. this.$router.push({ path: "/dialysis/print/batch/fiftyOne" });
  2415. }else if (this.template_id == 53) {
  2416. this.$router.push({ path: "/dialysis/print/batch/fiftyThree" });
  2417. }else if (this.template_id == 59) {
  2418. this.$router.push({ path: "/dialysis/print/batch/fiftynine" });
  2419. }else if (this.template_id == 60) {
  2420. this.$router.push({ path: "/dialysis/print/batch/sixty" });
  2421. }else if (this.template_id == 61) {
  2422. this.$router.push({ path: "/dialysis/print/batch/sixtyOne" });
  2423. }else if (this.template_id == 62) {
  2424. this.$router.push({ path: "/dialysis/print/batch/sixtyTwo" });
  2425. }else if (this.template_id == 65) {
  2426. this.$router.push({ path: "/dialysis/print/batch/sixtyFive" });
  2427. }else if (this.template_id == 66) {
  2428. this.$router.push({ path: "/dialysis/print/batch/sixtysix" });
  2429. }
  2430. else if (this.template_id == 67) {
  2431. this.$router.push({ path: "/dialysis/print/batch/sixtyseven" });
  2432. }
  2433. else if (this.template_id == 68) {
  2434. this.$router.push({ path: "/dialysis/print/batch/sixtyeight" });
  2435. }else if (this.template_id == 70) {
  2436. this.$router.push({ path: "/dialysis/print/batch/seventy" });
  2437. }else if (this.template_id == 71) {
  2438. this.$router.push({ path: "/dialysis/print/batch/seventyone" });
  2439. }else if (this.template_id == 72) {
  2440. this.$router.push({ path: "/dialysis/print/batch/seventytwo" });
  2441. }else if (this.template_id == 73) {
  2442. this.$router.push({ path: "/dialysis/print/batch/seventythree" });
  2443. }else if (this.template_id == 74) {
  2444. this.$router.push({ path: '/dialysis/print/batch/seventyfour' });
  2445. }else if (this.template_id == 75) {
  2446. this.$router.push({ path: "/dialysis/print/batch/seventyfive" });
  2447. }else if (this.template_id == 76) {
  2448. this.$router.push({ path: "/dialysis/print/batch/Seventysix" });
  2449. }else if (this.template_id == 78) {
  2450. this.$router.push({ path: "/dialysis/print/batch/seventyeight" });
  2451. }else if (this.template_id == 79) {
  2452. this.$router.push({ path: "/dialysis/print/batch/seventynine" });
  2453. }
  2454. },
  2455. batchPrintActionOne: function() {
  2456. if (this.selecting_schs.length === 0) {
  2457. this.$message.error("请至少选择一条需要打印的内容");
  2458. return false;
  2459. }
  2460. var sch_ids = [];
  2461. for (let index = 0; index < this.selecting_schs.length; index++) {
  2462. sch_ids.push(this.selecting_schs[index].sch_id);
  2463. }
  2464. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  2465. if (this.template_id == 2 || this.template_id == 0) {
  2466. this.$router.push({ path: "/dialysis/print/batch/otherone" });
  2467. } else if (this.template_id == 1) {
  2468. this.$router.push({ path: "/dialysis/print/batch" });
  2469. } else if (this.template_id == 5) {
  2470. this.$router.push({ path: "/dialysis/print/batch/fiveone" });
  2471. } else if (this.template_id == 22) {
  2472. this.$router.push({ path: "/dialysis/print/batch/twentyTwo_one" });
  2473. } else if(this.template_id == 33){
  2474. this.$router.push({ path: "/dialysis/print/batch/thirtyThree_one" });
  2475. }
  2476. },
  2477. batchPrintActionTwo: function() {
  2478. if (this.selecting_schs.length === 0) {
  2479. this.$message.error("请至少选择一条需要打印的内容");
  2480. return false;
  2481. }
  2482. var sch_ids = [];
  2483. for (let index = 0; index < this.selecting_schs.length; index++) {
  2484. sch_ids.push(this.selecting_schs[index].sch_id);
  2485. }
  2486. this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
  2487. if (this.template_id == 2 || this.template_id == 0) {
  2488. this.$router.push({ path: "/dialysis/print/batch/othertwo" });
  2489. } else if (this.template_id == 1) {
  2490. this.$router.push({ path: "/dialysis/print/batch" });
  2491. } else if (this.template_id == 5) {
  2492. this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
  2493. } else if (this.template_id == 22) {
  2494. this.$router.push({ path: "/dialysis/print/batch/twentyTwo_two" });
  2495. } else if (this.template_id == 33) {
  2496. this.$router.push({ path: "/dialysis/print/batch/thirtyThree_two" });
  2497. }
  2498. },
  2499. toExport(){
  2500. import('@/vendor/Export2Excel').then(excel => {
  2501. if(this.SchedualPatientsTableData!=null){
  2502. for(let i=0;i<this.SchedualPatientsTableData.length;i++){
  2503. this.SchedualPatientsTableData[i].index = i + 1
  2504. this.SchedualPatientsTableData[i].start_time_one = ""
  2505. this.SchedualPatientsTableData[i].start_time_two = ""
  2506. this.SchedualPatientsTableData[i].start_time_three = ""
  2507. this.SchedualPatientsTableData[i].start_time_four = ""
  2508. this.SchedualPatientsTableData[i].start_time_five = ""
  2509. this.SchedualPatientsTableData[i].start_time_six = ""
  2510. this.SchedualPatientsTableData[i].start_time_seven = ""
  2511. this.SchedualPatientsTableData[i].blood_press_one = ""
  2512. this.SchedualPatientsTableData[i].blood_press_two = ""
  2513. this.SchedualPatientsTableData[i].blood_press_three = ""
  2514. this.SchedualPatientsTableData[i].blood_press_four = ""
  2515. this.SchedualPatientsTableData[i].blood_press_five = ""
  2516. this.SchedualPatientsTableData[i].blood_press_six = ""
  2517. this.SchedualPatientsTableData[i].blood_press_seven = ""
  2518. this.SchedualPatientsTableData[i].temperature_one = ""
  2519. this.SchedualPatientsTableData[i].temperature_two = ""
  2520. this.SchedualPatientsTableData[i].temperature_three = ""
  2521. this.SchedualPatientsTableData[i].temperature_four = ""
  2522. this.SchedualPatientsTableData[i].temperature_five = ""
  2523. this.SchedualPatientsTableData[i].temperature_six = ""
  2524. this.SchedualPatientsTableData[i].temperature_seven = ""
  2525. this.SchedualPatientsTableData[i].breathing_rate_one = ""
  2526. this.SchedualPatientsTableData[i].breathing_rate_two = ""
  2527. this.SchedualPatientsTableData[i].breathing_rate_three = ""
  2528. this.SchedualPatientsTableData[i].breathing_rate_four = ""
  2529. this.SchedualPatientsTableData[i].breathing_rate_five = ""
  2530. this.SchedualPatientsTableData[i].breathing_rate_six = ""
  2531. this.SchedualPatientsTableData[i].breathing_rate_seven = ""
  2532. this.SchedualPatientsTableData[i].pulse_frequency_one = ""
  2533. this.SchedualPatientsTableData[i].pulse_frequency_two = ""
  2534. this.SchedualPatientsTableData[i].pulse_frequency_three = ""
  2535. this.SchedualPatientsTableData[i].pulse_frequency_four = ""
  2536. this.SchedualPatientsTableData[i].pulse_frequency_five = ""
  2537. this.SchedualPatientsTableData[i].pulse_frequency_six = ""
  2538. this.SchedualPatientsTableData[i].pulse_frequency_seven = ""
  2539. if(this.SchedualPatientsTableData[i].monitoring_record!=null&&this.SchedualPatientsTableData[i].monitoring_record.length>0){
  2540. if(this.SchedualPatientsTableData[i].monitoring_record.length >=1){
  2541. if(this.SchedualPatientsTableData[i].monitoring_record[0].operate_time!=undefined){
  2542. this.SchedualPatientsTableData[i].start_time_one =this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[0].operate_time)
  2543. }
  2544. if(this.SchedualPatientsTableData[i].monitoring_record[0].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[0].diastolic_blood_pressure!=undefined ){
  2545. this.SchedualPatientsTableData[i].blood_press_one = this.SchedualPatientsTableData[i].monitoring_record[0].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[0].diastolic_blood_pressure
  2546. }
  2547. if(this.SchedualPatientsTableData[i].monitoring_record[0].temperature!=undefined){
  2548. this.SchedualPatientsTableData[i].temperature_one = this.SchedualPatientsTableData[i].monitoring_record[0].temperature
  2549. }
  2550. if(this.SchedualPatientsTableData[i].monitoring_record[0].breathing_rate!=undefined){
  2551. this.SchedualPatientsTableData[i].breathing_rate_one = this.SchedualPatientsTableData[i].monitoring_record[0].breathing_rate
  2552. }
  2553. if(this.SchedualPatientsTableData[i].monitoring_record[0].pulse_frequency!=undefined){
  2554. this.SchedualPatientsTableData[i].pulse_frequency_one = this.SchedualPatientsTableData[i].monitoring_record[0].pulse_frequency
  2555. }
  2556. }
  2557. if(this.SchedualPatientsTableData[i].monitoring_record.length >=2){
  2558. if(this.SchedualPatientsTableData[i].monitoring_record[1].operate_time!=undefined){
  2559. this.SchedualPatientsTableData[i].start_time_two = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[1].operate_time)
  2560. }
  2561. if(this.SchedualPatientsTableData[i].monitoring_record[1].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[1].diastolic_blood_pressure!=undefined ){
  2562. this.SchedualPatientsTableData[i].blood_press_two = this.SchedualPatientsTableData[i].monitoring_record[1].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[1].diastolic_blood_pressure
  2563. }
  2564. if(this.SchedualPatientsTableData[i].monitoring_record[1].temperature!=undefined){
  2565. this.SchedualPatientsTableData[i].temperature_two = this.SchedualPatientsTableData[i].monitoring_record[1].temperature
  2566. }
  2567. if(this.SchedualPatientsTableData[i].monitoring_record[1].breathing_rate!=undefined){
  2568. this.SchedualPatientsTableData[i].breathing_rate_two = this.SchedualPatientsTableData[i].monitoring_record[1].breathing_rate
  2569. }
  2570. if(this.SchedualPatientsTableData[i].monitoring_record[1].pulse_frequency!=undefined){
  2571. this.SchedualPatientsTableData[i].pulse_frequency_two = this.SchedualPatientsTableData[i].monitoring_record[1].pulse_frequency
  2572. }
  2573. }
  2574. if(this.SchedualPatientsTableData[i].monitoring_record.length>=3){
  2575. if(this.SchedualPatientsTableData[i].monitoring_record[2].operate_time!=undefined){
  2576. this.SchedualPatientsTableData[i].start_time_three = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[2].operate_time)
  2577. }
  2578. if(this.SchedualPatientsTableData[i].monitoring_record[2].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[2].diastolic_blood_pressure!=undefined ){
  2579. this.SchedualPatientsTableData[i].blood_press_three = this.SchedualPatientsTableData[i].monitoring_record[2].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[2].diastolic_blood_pressure
  2580. }
  2581. if(this.SchedualPatientsTableData[i].monitoring_record[2].temperature!=undefined){
  2582. this.SchedualPatientsTableData[i].temperature_three = this.SchedualPatientsTableData[i].monitoring_record[2].temperature
  2583. }
  2584. if(this.SchedualPatientsTableData[i].monitoring_record[2].breathing_rate!=undefined){
  2585. this.SchedualPatientsTableData[i].breathing_rate_three = this.SchedualPatientsTableData[i].monitoring_record[2].breathing_rate
  2586. }
  2587. if(this.SchedualPatientsTableData[i].monitoring_record[2].pulse_frequency!=undefined){
  2588. this.SchedualPatientsTableData[i].pulse_frequency_three= this.SchedualPatientsTableData[i].monitoring_record[2].pulse_frequency
  2589. }
  2590. }
  2591. if(this.SchedualPatientsTableData[i].monitoring_record.length >=4){
  2592. if(this.SchedualPatientsTableData[i].monitoring_record[3].operate_time!=undefined){
  2593. this.SchedualPatientsTableData[i].start_time_four = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[3].operate_time)
  2594. }
  2595. if(this.SchedualPatientsTableData[i].monitoring_record[3].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[3].diastolic_blood_pressure!=undefined ){
  2596. this.SchedualPatientsTableData[i].blood_press_four = this.SchedualPatientsTableData[i].monitoring_record[3].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[3].diastolic_blood_pressure
  2597. }
  2598. if(this.SchedualPatientsTableData[i].monitoring_record[3].temperature!=undefined){
  2599. this.SchedualPatientsTableData[i].temperature_four = this.SchedualPatientsTableData[i].monitoring_record[3].temperature
  2600. }
  2601. if(this.SchedualPatientsTableData[i].monitoring_record[3].breathing_rate!=undefined){
  2602. this.SchedualPatientsTableData[i].breathing_rate_four = this.SchedualPatientsTableData[i].monitoring_record[3].breathing_rate
  2603. }
  2604. if(this.SchedualPatientsTableData[i].monitoring_record[3].pulse_frequency!=undefined){
  2605. this.SchedualPatientsTableData[i].pulse_frequency_four= this.SchedualPatientsTableData[i].monitoring_record[3].pulse_frequency
  2606. }
  2607. }
  2608. if(this.SchedualPatientsTableData[i].monitoring_record.length >=5){
  2609. if(this.SchedualPatientsTableData[i].monitoring_record[4].operate_time!=undefined){
  2610. this.SchedualPatientsTableData[i].start_time_five = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[4].operate_time)
  2611. }
  2612. if(this.SchedualPatientsTableData[i].monitoring_record[4].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[4].diastolic_blood_pressure!=undefined ){
  2613. this.SchedualPatientsTableData[i].blood_press_five = this.SchedualPatientsTableData[i].monitoring_record[4].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[4].diastolic_blood_pressure
  2614. }
  2615. if(this.SchedualPatientsTableData[i].monitoring_record[4].temperature!=undefined){
  2616. this.SchedualPatientsTableData[i].temperature_five = this.SchedualPatientsTableData[i].monitoring_record[4].temperature
  2617. }
  2618. if(this.SchedualPatientsTableData[i].monitoring_record[4].breathing_rate!=undefined){
  2619. this.SchedualPatientsTableData[i].breathing_rate_five = this.SchedualPatientsTableData[i].monitoring_record[4].breathing_rate
  2620. }
  2621. if(this.SchedualPatientsTableData[i].monitoring_record[4].pulse_frequency!=undefined){
  2622. this.SchedualPatientsTableData[i].pulse_frequency_five= this.SchedualPatientsTableData[i].monitoring_record[4].pulse_frequency
  2623. }
  2624. }
  2625. if(this.SchedualPatientsTableData[i].monitoring_record.length >=6){
  2626. if(this.SchedualPatientsTableData[i].monitoring_record[5].operate_time!=undefined){
  2627. this.SchedualPatientsTableData[i].start_time_six = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[5].operate_time)
  2628. }
  2629. if(this.SchedualPatientsTableData[i].monitoring_record[5].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[5].diastolic_blood_pressure!=undefined ){
  2630. this.SchedualPatientsTableData[i].blood_press_six = this.SchedualPatientsTableData[i].monitoring_record[5].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[5].diastolic_blood_pressure
  2631. }
  2632. if(this.SchedualPatientsTableData[i].monitoring_record[5].temperature!=undefined){
  2633. this.SchedualPatientsTableData[i].temperature_six = this.SchedualPatientsTableData[i].monitoring_record[5].temperature
  2634. }
  2635. if(this.SchedualPatientsTableData[i].monitoring_record[5].breathing_rate!=undefined){
  2636. this.SchedualPatientsTableData[i].breathing_rate_six = this.SchedualPatientsTableData[i].monitoring_record[5].breathing_rate
  2637. }
  2638. if(this.SchedualPatientsTableData[i].monitoring_record[5].pulse_frequency!=undefined){
  2639. this.SchedualPatientsTableData[i].pulse_frequency_six= this.SchedualPatientsTableData[i].monitoring_record[5].pulse_frequency
  2640. }
  2641. }
  2642. if(this.SchedualPatientsTableData[i].monitoring_record.length >= 7){
  2643. if(this.SchedualPatientsTableData[i].monitoring_record[6].operate_time!=undefined){
  2644. this.SchedualPatientsTableData[i].start_time_seven = this.getTimeOne(this.SchedualPatientsTableData[i].monitoring_record[6].operate_time)
  2645. }
  2646. if(this.SchedualPatientsTableData[i].monitoring_record[6].systolic_blood_pressure!=undefined &&this.SchedualPatientsTableData[i].monitoring_record[6].diastolic_blood_pressure!=undefined ){
  2647. this.SchedualPatientsTableData[i].blood_press_seven = this.SchedualPatientsTableData[i].monitoring_record[6].systolic_blood_pressure + "/" +this.SchedualPatientsTableData[i].monitoring_record[6].diastolic_blood_pressure
  2648. }
  2649. if(this.SchedualPatientsTableData[i].monitoring_record[6].temperature!=undefined){
  2650. this.SchedualPatientsTableData[i].temperature_seven = this.SchedualPatientsTableData[i].monitoring_record[6].temperature
  2651. }
  2652. if(this.SchedualPatientsTableData[i].monitoring_record[6].breathing_rate!=undefined){
  2653. this.SchedualPatientsTableData[i].breathing_rate_seven = this.SchedualPatientsTableData[i].monitoring_record[6].breathing_rate
  2654. }
  2655. if(this.SchedualPatientsTableData[i].monitoring_record[6].pulse_frequency!=undefined){
  2656. this.SchedualPatientsTableData[i].pulse_frequency_seven= this.SchedualPatientsTableData[i].monitoring_record[6].pulse_frequency
  2657. }
  2658. }
  2659. }
  2660. }
  2661. }
  2662. console.log("监测统计",this.SchedualPatientsTableData)
  2663. const multiHeader = [['序号','机号','排班日期','上机时间','透析号','姓名','透析模式','目标超滤量','透前血压','干体重','透前称重','透后称重','监测时间','','','','','','','透中血压','','','','','','','体温','','','','','','','呼吸','','','','','','','脉搏','','','','','','']]
  2664. 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次',]
  2665. 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']
  2666. 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']
  2667. const data = this.formatJson(filterVal, this.SchedualPatientsTableData)
  2668. const filename = '监测数据'
  2669. console.log("datawoowowow",data)
  2670. excel.export_json_to_excel({
  2671. multiHeader,
  2672. header,
  2673. merges,
  2674. data,
  2675. filename
  2676. })
  2677. })
  2678. },
  2679. formatJson(filterVal, jsonData) {
  2680. return jsonData.map(v => filterVal.map(j => v[j]));
  2681. },
  2682. getModeId(val){
  2683. var name =""
  2684. if(val == 1){
  2685. name ="HD"
  2686. }
  2687. if(val == 2){
  2688. name ="HDF"
  2689. }
  2690. if(val == 3){
  2691. name ="HD+HP"
  2692. }
  2693. if(val == 4){
  2694. name ="HP"
  2695. }
  2696. if(val == 5){
  2697. name ="HF"
  2698. }
  2699. if(val == 6){
  2700. name ="SCUF"
  2701. }
  2702. if(val == 7){
  2703. name ="IUF"
  2704. }
  2705. if(val == 8){
  2706. name ="HFHD"
  2707. }
  2708. if(val == 9){
  2709. name ="HFHD+HP"
  2710. }
  2711. if(val == 10){
  2712. name ="PHF"
  2713. }
  2714. if(val == 11){
  2715. name ="HFR"
  2716. }
  2717. if(val == 12){
  2718. name ="HDF+HP"
  2719. }
  2720. if(val == 13){
  2721. name ="CRRT"
  2722. }
  2723. if(val == 14){
  2724. name ="腹水回输"
  2725. }
  2726. if(val == 19){
  2727. name ="IUF+HD"
  2728. }
  2729. if(val == 20){
  2730. name ="UF"
  2731. }
  2732. if(val == 21){
  2733. name ="HD+"
  2734. }
  2735. if(val == 22){
  2736. name ="血浆胆红素吸附+HDF"
  2737. }
  2738. if(val == 23){
  2739. name ="血浆胆红素吸附"
  2740. }
  2741. if(val == 24){
  2742. name ="I-HDF"
  2743. }
  2744. if(val == 25){
  2745. name ="HD高通"
  2746. }
  2747. if(val == 26){
  2748. name ="CVVH"
  2749. }
  2750. if(val == 27){
  2751. name ="CVVHD"
  2752. }
  2753. if(val == 28){
  2754. name ="CVVHDF"
  2755. }
  2756. if(val == 29){
  2757. name ="PE"
  2758. }
  2759. if(val == 30){
  2760. name ="血浆胆红素吸附+HP"
  2761. }
  2762. if(val == 31){
  2763. name ="HPD"
  2764. }
  2765. if(val == 32){
  2766. name ="HDP"
  2767. }
  2768. if(val == 33){
  2769. name ="HDP"
  2770. }
  2771. if(val == 33){
  2772. name ="HFD"
  2773. }
  2774. if(val == 34){
  2775. name ="HDF100"
  2776. }
  2777. if(val == 35){
  2778. name ="HDF600"
  2779. }
  2780. if(val == 36){
  2781. name ="HDF800"
  2782. }
  2783. if(val == 37){
  2784. name ="HDF1000"
  2785. }
  2786. if(val == 38){
  2787. name ="HDF80"
  2788. }
  2789. if(val == 39){
  2790. name ="HF16"
  2791. }
  2792. if(val == 40){
  2793. name ="HD(无肝素)"
  2794. }
  2795. if(val == 41){
  2796. name ="HDF17H"
  2797. }
  2798. if(val == 42){
  2799. name ="HD."
  2800. }
  2801. if(val == 43){
  2802. name ="HD(2)"
  2803. }
  2804. return name
  2805. },
  2806. },
  2807. components: {
  2808. BreadCrumb
  2809. }
  2810. };
  2811. </script>
  2812. <style rel="stylesheet/scss" lang="scss" scoped>
  2813. .app-container {
  2814. // margin: 20px;
  2815. font-size: 15px;
  2816. .filter-container {
  2817. padding-bottom: 5px;
  2818. }
  2819. .cqd-dataTitle {
  2820. color: #303133;
  2821. font-size: 14px;
  2822. border-bottom: 2px #e4e7ed solid;
  2823. height: 36px;
  2824. line-height: 36px;
  2825. margin: 0 0 25px 0;
  2826. position: relative;
  2827. }
  2828. .cqd-dataTitle::before {
  2829. position: absolute;
  2830. left: 0;
  2831. bottom: -2px;
  2832. content: "";
  2833. width: 42px;
  2834. height: 2px;
  2835. background: #409eff;
  2836. }
  2837. .search-component {
  2838. width: 500px;
  2839. .searchBox {
  2840. width: 300px;
  2841. height: 36px;
  2842. line-height: 36px;
  2843. padding-left: 15px;
  2844. border: 1px #dcdfe6 solid;
  2845. border-right: none;
  2846. outline: none;
  2847. float: left;
  2848. border-radius: 6px 0 0 6px;
  2849. font-size: 14px;
  2850. color: #333;
  2851. background: #fff;
  2852. box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  2853. }
  2854. .searchBtn {
  2855. background-color: #409eff;
  2856. color: #fff;
  2857. font-size: 15px;
  2858. text-align: center;
  2859. height: 36px;
  2860. line-height: 36px;
  2861. float: left;
  2862. outline: none;
  2863. width: 70px;
  2864. border: none;
  2865. border-radius: 0 6px 6px 0;
  2866. font-family: "Microsoft Yahei";
  2867. cursor: pointer;
  2868. }
  2869. }
  2870. .amount {
  2871. font-weight: normal;
  2872. padding: 10px 0 0 0;
  2873. color: #606266;
  2874. font-size: 14px;
  2875. span {
  2876. color: #ef2525;
  2877. font-family: "Arial";
  2878. padding: 0 2px;
  2879. }
  2880. }
  2881. }
  2882. .el-table td,
  2883. .el-table th.is-leaf,
  2884. .el-table--border,
  2885. .el-table--group {
  2886. border-color: #d0d3da;
  2887. }
  2888. .el-table--border::after,
  2889. .el-table--group::after,
  2890. .el-table::before {
  2891. background-color: #d0d3da;
  2892. }
  2893. .el-checkbox__inner::after {
  2894. height: 10px;
  2895. left: 7px;
  2896. }
  2897. .el-checkbox__inner {
  2898. width: 20px;
  2899. height: 20px;
  2900. }
  2901. </style>
  2902. <style scoped>
  2903. /* 合并表格线样式 */
  2904. .spanClass .cell {
  2905. padding: 0 !important;
  2906. }
  2907. .spanClass .cell tr {
  2908. display: inline-block;
  2909. width: 100%;
  2910. }
  2911. .spanClass .cell tr td {
  2912. padding: 10px 0;
  2913. border-bottom: 1px solid #ebeef5;
  2914. display: block;
  2915. width: 100%;
  2916. }
  2917. .spanClass .cell tr:last-of-type td {
  2918. border-bottom: none;
  2919. }
  2920. </style>