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

bloodPresssWatch.vue 82KB

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