bloodPresssWatch.vue 132KB

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