bloodPresssWatch.vue 131KB

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