index.vue 119KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259
  1. <template>
  2. <!-- 点击透析记录患者资料跳转的页面 -->
  3. <div class="main-contain">
  4. <div class="position">
  5. <bread-crumb :crumbs="crumbs"></bread-crumb>
  6. <div class="print" style="float:left;">
  7. <el-button
  8. v-if="queueConfig.txxqyxs == 1"
  9. size="small"
  10. type="primary"
  11. @click="call"
  12. >叫号</el-button
  13. >
  14. <el-button
  15. v-if="queueConfig.txxqyxs == 1"
  16. size="small"
  17. type="primary"
  18. @click="next"
  19. >下一位</el-button
  20. >
  21. <el-button
  22. size="small"
  23. type="primary"
  24. @click="history_click"
  25. >透析历史</el-button>
  26. <el-button
  27. size="small"
  28. type="primary"
  29. @click="printOrderOne"
  30. icon="el-icon-printer"
  31. >打印上机单</el-button>
  32. <el-button
  33. size="small"
  34. type="primary"
  35. @click="printOrder"
  36. icon="el-icon-printer"
  37. >打印</el-button
  38. >
  39. </div>
  40. </div>
  41. <div
  42. class="loadingBox"
  43. v-loading="loading"
  44. element-loading-text="拼命加载中"
  45. element-loading-spinner="el-icon-loading"
  46. element-loading-background="rgba(0, 0, 0, 0.8)"
  47. >
  48. <div class="patientBox" style="width:300px;padding-left:10px;position: relative;" v-if="norefresh">
  49. <el-button
  50. style="position: absolute;right:0;top:2px;z-index:10"
  51. size="small"
  52. type="primary"
  53. @click="refresh"
  54. >刷新</el-button>
  55. <el-tabs v-model="activeName" @tab-click="handleClick">
  56. <!-- 候诊区 -->
  57. <el-tab-pane label="候诊区" name="first">
  58. <div class="cell clearfix" style="margin-bottom:10px;">
  59. <el-date-picker v-model="selected_date"
  60. prefix-icon="el-icon-date" @change="handleScheduleDateChange"
  61. :editable="false" :clearable="false"
  62. style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" >
  63. </el-date-picker>
  64. <el-input size="small" style="width:25%;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  65. <el-button size="small" class="filter-item" type="primary" style="margin-right:20px;" @click="searchAction">搜索</el-button>
  66. </div>
  67. <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
  68. <el-select v-model="patientStateVal" placeholder="全部患者状态" style="margin-right:10px;" @change="handleStateChange">
  69. <el-option
  70. v-for="item in patient_state"
  71. :key="item.value"
  72. :label="item.label"
  73. :value="item.value">
  74. </el-option>
  75. </el-select>
  76. <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="margin-right:20px;" @change="handleTreatChange">
  77. <el-option
  78. v-for="item in treat_state"
  79. :key="item.value"
  80. :label="item.label"
  81. :value="item.value">
  82. </el-option>
  83. </el-select>
  84. </div>
  85. <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
  86. <el-select v-model="scheduleStateVal" placeholder="班次" style="margin-right:10px;" @change="handletimeType">
  87. <el-option
  88. v-for="item in schedule_options"
  89. :key="item.value"
  90. :label="item.label"
  91. :value="item.value">
  92. </el-option>
  93. </el-select>
  94. <el-select v-model="zoneVal" placeholder="分区" style="margin-right:20px;" @change="handleZoneChange">
  95. <el-option
  96. v-for="item in zone_options"
  97. :key="item.id"
  98. :label="item.text"
  99. :value="item.id">
  100. </el-option>
  101. </el-select>
  102. </div>
  103. <div style="padding-right:20px;">
  104. <el-table
  105. ref="tab"
  106. @row-click="changePatient"
  107. highlight-current-row
  108. :data="tableData"
  109. height="500"
  110. border
  111. style="width: 100%">
  112. <el-table-column
  113. prop="date"
  114. label="床号"
  115. width="50"
  116. >
  117. <template slot-scope="scope">
  118. {{ scope.row.device_number.number }}
  119. </template>
  120. </el-table-column>
  121. <el-table-column
  122. prop="date"
  123. label="患者"
  124. >
  125. <template slot-scope="scope">
  126. {{ scope.row.patient.name }}
  127. <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
  128. ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
  129. </span>
  130. <!-- <span class="touxi_cishu" @click.stop="chishuclick(scope.row.patient.name)">
  131. 0/4
  132. </span> -->
  133. </template>
  134. </el-table-column>
  135. <el-table-column
  136. prop="name"
  137. label="状态"
  138. >
  139. <template slot-scope="scope">
  140. <div style="display:flex;align-items:center;justify-content:space-around;">
  141. <span class="tip1" v-if="scope.row.prescription == null || scope.row.prescription.creater == 0">
  142. 待开处方
  143. </span>
  144. <span class="tip2" v-if="scope.row.assessment_before_dislysis == null || scope.row.assessment_before_dislysis.weight_before == ''">
  145. 待称重
  146. </span>
  147. </div>
  148. </template>
  149. </el-table-column>
  150. </el-table>
  151. </div>
  152. </el-tab-pane>
  153. <!-- 透析区 -->
  154. <el-tab-pane label="透析区" name="second">
  155. <div class="cell clearfix" style="margin-bottom:10px;">
  156. <el-date-picker v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 45%;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
  157. <el-input size="small" style="width:25%;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  158. <el-button size="small" class="filter-item" style="margin-right:20px;" type="primary" @click="searchAction">搜索</el-button>
  159. </div>
  160. <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
  161. <el-select v-model="patientStateVal" placeholder="全部患者状态" style="margin-right:10px;" @change="handleStateChange">
  162. <el-option
  163. v-for="item in patient_state"
  164. :key="item.value"
  165. :label="item.label"
  166. :value="item.value">
  167. </el-option>
  168. </el-select>
  169. <el-select v-model="treatStateVal" placeholder="全部治疗状态" style="margin-right:20px;" @change="handleTreatChange">
  170. <el-option
  171. v-for="item in treat_state"
  172. :key="item.value"
  173. :label="item.label"
  174. :value="item.value">
  175. </el-option>
  176. </el-select>
  177. </div>
  178. <div class="cell clearfix" style="margin-bottom:10px;display:flex;">
  179. <el-select v-model="scheduleStateVal" placeholder="班次" style="margin-right:10px;" @change="handletimeType">
  180. <el-option
  181. v-for="item in schedule_options"
  182. :key="item.value"
  183. :label="item.label"
  184. :value="item.value">
  185. </el-option>
  186. </el-select>
  187. <el-select v-model="zoneVal" placeholder="分区" style="margin-right:20px;" @change="handleZoneChange">
  188. <el-option
  189. v-for="item in zone_options"
  190. :key="item.id"
  191. :label="item.text"
  192. :value="item.id">
  193. </el-option>
  194. </el-select>
  195. </div>
  196. <div style="padding-right:20px;">
  197. <el-table
  198. ref="tab1"
  199. @row-click="changePatient"
  200. highlight-current-row
  201. :data="tableData1"
  202. height="500"
  203. border
  204. style="width: 100%">
  205. <el-table-column
  206. prop="date"
  207. label="床号"
  208. width="50"
  209. >
  210. <template slot-scope="scope">
  211. {{ scope.row.device_number.number }}
  212. </template>
  213. </el-table-column>
  214. <el-table-column
  215. prop="date"
  216. label="患者"
  217. >
  218. <template slot-scope="scope">
  219. {{ scope.row.patient.name }}
  220. <span v-if="scope.row.assessment_before_dislysis && patientStateVal == 1">
  221. ({{ getTime(scope.row.assessment_before_dislysis.created_time) }})
  222. </span>
  223. <!-- <span class="touxi_cishu" @click.stop="chishuclick(scope.row.patient.name)">
  224. 0/4
  225. </span> -->
  226. </template>
  227. </el-table-column>
  228. <el-table-column
  229. prop="name"
  230. label="状态"
  231. >
  232. <template slot-scope="scope">
  233. <div style="display:flex;align-items:center;justify-content:space-around;">
  234. <span class="tip3" v-if="scope.row.dialysis_order ? scope.row.dialysis_order.stage == 1 : false">
  235. 已上机
  236. </span>
  237. <span class="tip4" v-if="scope.row.dialysis_order ? scope.row.dialysis_order.stage == 2 : false">
  238. 已下机
  239. </span>
  240. <span class="tip5" v-if="scope.row.treatment_summary == null || scope.row.treatment_summary.dialysis_summary == ''">
  241. 待开小结
  242. </span>
  243. </div>
  244. </template>
  245. </el-table-column>
  246. </el-table>
  247. </div>
  248. </el-tab-pane>
  249. </el-tabs>
  250. <!-- 打印上机单弹窗 -->
  251. <el-dialog
  252. :visible.sync="startVisibility"
  253. :close-on-click-modal="false"
  254. :close-on-press-escape="false"
  255. :show-close="false"
  256. width="30%"
  257. >
  258. <el-button
  259. size="small"
  260. icon="el-icon-printer"
  261. type="primary"
  262. @click="printAction"
  263. style="float:right"
  264. >打印</el-button
  265. >
  266. <div id="print_content">
  267. <div class="print_main_content">
  268. <div class="table_panel">
  269. <div v-for="(main_collection,index) in printList" :key="index">
  270. <div class="signPrint" style="width: 360px;font-size:16px;">
  271. <div style="margin-left:50px;">姓名:
  272. <span>{{main_collection.patient.name}} </span>
  273. ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no) }}岁)
  274. </div>
  275. <div class="printCell" style="display:flex;justify-content: space-around;">
  276. <span style="display: block;width: 50%;">
  277. 床号:{{ main_collection.number.number }}
  278. <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
  279. <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
  280. <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
  281. </span>
  282. <span style="display: block;width: 50%;">{{ printDate }}</span>
  283. </div>
  284. <div class="printCell" style="display:flex;justify-content: space-around;">
  285. <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
  286. <span style="display: block;width: 50%;">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
  287. </div>
  288. <div class="printCell" style="display:flex;justify-content: space-around;">
  289. <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
  290. <span style="display: block;width: 50%;">
  291. 首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
  292. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  293. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  294. </span>
  295. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  296. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  297. </span>
  298. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  299. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  300. </span>
  301. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  302. {{main_collection.dialysissolution.anticoagulant_shouji}} mg
  303. </span>
  304. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  305. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  306. </span>
  307. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  308. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  309. </span>
  310. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  311. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  312. </span>
  313. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  314. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  315. </span>
  316. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  317. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  318. </span>
  319. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  320. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  321. </span>
  322. </span>
  323. </div>
  324. <div class="printCell" style="display:flex;justify-content: space-around;">
  325. <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
  326. <span style="display: block;width: 50%;">
  327. 维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
  328. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  329. mg/h
  330. </span>
  331. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  332. mg/h
  333. </span>
  334. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  335. iu/h
  336. </span>
  337. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  338. mg/h
  339. </span>
  340. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  341. mg/h
  342. </span>
  343. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  344. iu/h
  345. </span>
  346. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  347. iu/h
  348. </span>
  349. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  350. iu/h
  351. </span>
  352. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  353. iu/h
  354. </span>
  355. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  356. iu/h
  357. </span>
  358. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  359. iu/h
  360. </span>
  361. </span>
  362. </div>
  363. <div class="printCell" style="display:flex;justify-content: space-around;">
  364. <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
  365. <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138 || $store.getters.xt_user.org.id == 10460">ml</span>
  366. <span v-else>L</span>
  367. </span>
  368. <span style="display: block;width: 50%;">
  369. 总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
  370. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  371. mg
  372. </span>
  373. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  374. mg
  375. </span>
  376. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  377. iu
  378. </span>
  379. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  380. mg
  381. </span>
  382. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  383. mg
  384. </span>
  385. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  386. iu
  387. </span>
  388. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  389. iu
  390. </span>
  391. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  392. iu
  393. </span>
  394. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  395. iu
  396. </span>
  397. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  398. iu
  399. </span>
  400. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  401. iu
  402. </span>
  403. </span>
  404. </div>
  405. </div>
  406. </div>
  407. <!-- <div v-for="(main_collection,index) in printList" :key="index" style="width: 80%;">
  408. <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; text-align: center; margin: auto;">
  409. <tr style="height: 20px;">
  410. <td>{{ printDate }}</td>
  411. <td>机号:{{ main_collection.number.number }}</td>
  412. </tr>
  413. <tr style="height: 20px;">
  414. <td>姓名</td>
  415. <td>{{main_collection.patient.name}}</td>
  416. </tr>
  417. <tr style="height: 20px;">
  418. <td>治疗方式</td>
  419. <td></td>
  420. </tr>
  421. <tr style="height: 20px;">
  422. <td>透析时间</td>
  423. <td>{{ printDate }}</td>
  424. </tr>
  425. <tr style="height: 20px;">
  426. <td>透前体重</td>
  427. <td></td>
  428. </tr>
  429. <tr style="height: 20px;">
  430. <td>干体重</td>
  431. <td>{{main_collection.assessmentbefor.dry_weight}}Kg</td>
  432. </tr>
  433. <tr style="height: 20px;">
  434. <td>超滤量</td>
  435. <td></td>
  436. </tr>
  437. <tr style="height: 20px;">
  438. <td>透前血压</td>
  439. <td>-</td>
  440. </tr>
  441. <tr style="height: 20px;">
  442. <td></td>
  443. <td></td>
  444. </tr>
  445. <tr style="height: 20px;">
  446. <td></td>
  447. <td></td>
  448. </tr>
  449. </table>
  450. </div> -->
  451. </div>
  452. </div>
  453. </div>
  454. <span slot="footer" class="dialog-footer">
  455. <el-button @click="startVisibility = false">取 消</el-button>
  456. </span>
  457. </el-dialog>
  458. <!-- 打印上机单弹窗----新 -->
  459. <el-dialog
  460. :visible.sync="centerDialogVisible"
  461. width="30%"
  462. >
  463. <el-button
  464. size="small"
  465. icon="el-icon-printer"
  466. type="primary"
  467. @click="printAction"
  468. style="float:right"
  469. >打印</el-button
  470. >
  471. <div id="print_content">
  472. <div class="print_main_content">
  473. <div class="table_panel" v-for="(main_collection,index) in printList">
  474. <div style="border: 1px solid black;width: 82%;" >
  475. <div style="margin: 5px 0;">
  476. <span style="font-weight: bolder;">{{main_collection.patient.name}} </span>&nbsp;&nbsp;
  477. <span>
  478. <span v-if="main_collection.patient.gender==1">男</span>
  479. <span v-if="main_collection.patient.gender==2">女</span>
  480. </span>&nbsp;&nbsp;
  481. <span>{{getNewAge(main_collection.patient.id_card_no) }}岁</span>&nbsp;&nbsp;<span>{{getTimes(main_collection.schedule_date)}}</span>&nbsp;&nbsp;
  482. <span></span>
  483. &nbsp;&nbsp;
  484. <span>
  485. <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
  486. <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
  487. <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
  488. </span>&nbsp;&nbsp;<span>{{ main_collection.number.number }}</span>
  489. </div>
  490. <div style="margin: 5px 0;">
  491. <span>身高:{{ main_collection.patient.height?main_collection.patient.height:"" }} cm</span>&nbsp;&nbsp;<span>干体重:{{main_collection.assessmentbefor.dry_weight}}kg</span>&nbsp;&nbsp;
  492. <span>HCT:%</span>&nbsp;&nbsp;<span>KTV目标:</span>
  493. </div>
  494. </div>
  495. <div style="height: 30px;width: 82%;border: 1px solid black;">
  496. </div>
  497. <div style="border: 1px solid black;width: 82%;">
  498. <div style="display: flex;margin: 5px 0;">
  499. <div style="flex: 1;">透析模式:{{getModeId(main_collection.mode_id)}}</div>
  500. <div style="flex: 1;">透析器/灌流器:{{main_collection.prescription.dialyzer_perfusion_apparatus }} </div>
  501. </div>
  502. <div style="display: flex;margin: 5px 0;">
  503. <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
  504. <div style="flex: 1;">置换液总量:<span v-if="main_collection.prescription.displace_liqui_value>0">{{main_collection.prescription.displace_liqui_value}}</span>L</div>
  505. </div>
  506. <div style="margin: 5px 0;">
  507. <div>透析液类型:
  508. <span>Na:{{ main_collection.prescription.sodium }}</span>
  509. <span>K:{{ main_collection.prescription.kalium }}</span>
  510. <span>Ca:{{main_collection.prescription.calcium }}</span>
  511. <span>
  512. <span v-if="main_collection.prescription.chaptalization==0"> 不含 </span>
  513. <span v-if="main_collection.prescription.chaptalization>0"> 含糖:{{main_collection.prescription.chaptalization}} </span>
  514. HCO3:</span>
  515. </div>
  516. </div>
  517. <div style="display: flex;margin: 5px 0;">
  518. <div style="flex: 1;">超滤曲线:</div>
  519. <div style="flex: 1;">Na曲线:</div>
  520. </div>
  521. <div style="margin: 5px 0;">
  522. <span>抗凝方案:</span>
  523. <span>{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
  524. <span>
  525. 首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
  526. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  527. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  528. </span>
  529. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  530. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  531. </span>
  532. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  533. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  534. </span>
  535. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  536. {{main_collection.dialysissolution.anticoagulant_shouji}} mg
  537. </span>
  538. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  539. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  540. </span>
  541. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  542. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  543. </span>
  544. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  545. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  546. </span>
  547. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  548. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  549. </span>
  550. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  551. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  552. </span>
  553. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  554. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  555. </span>
  556. </span>
  557. <span>
  558. 维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
  559. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  560. mg/h
  561. </span>
  562. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  563. mg/h
  564. </span>
  565. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  566. iu/h
  567. </span>
  568. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  569. mg/h
  570. </span>
  571. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  572. mg/h
  573. </span>
  574. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  575. iu/h
  576. </span>
  577. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  578. iu/h
  579. </span>
  580. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  581. iu/h
  582. </span>
  583. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  584. iu/h
  585. </span>
  586. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  587. iu/h
  588. </span>
  589. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  590. iu/h
  591. </span>
  592. </span>
  593. <span>
  594. 总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
  595. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  596. mg
  597. </span>
  598. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  599. mg
  600. </span>
  601. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  602. iu
  603. </span>
  604. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  605. mg
  606. </span>
  607. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  608. mg
  609. </span>
  610. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  611. iu
  612. </span>
  613. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  614. iu
  615. </span>
  616. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  617. iu
  618. </span>
  619. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  620. iu
  621. </span>
  622. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  623. iu
  624. </span>
  625. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  626. iu
  627. </span>
  628. </span>
  629. </div>
  630. <div style="margin: 5px 0;">
  631. 血管通路:{{getBloodAccess(main_collection.assessmentbefor.blood_access_part_opera_id) }}
  632. </div>
  633. </div>
  634. <div style="border: 1px solid black;width: 82%;">
  635. <div style="margin: 5px 0;">高危因素:{{ main_collection.prescription.remark }}</div>
  636. </div>
  637. </div>
  638. </div>
  639. </div>
  640. <span slot="footer" class="dialog-footer">
  641. <el-button @click="centerDialogVisible = false">取 消</el-button>
  642. </span>
  643. </el-dialog>
  644. <el-dialog
  645. :visible.sync="endVisibility"
  646. :close-on-click-modal="false"
  647. :close-on-press-escape="false"
  648. :show-close="false"
  649. width="30%"
  650. >
  651. <el-button
  652. size="small"
  653. icon="el-icon-printer"
  654. type="primary"
  655. @click="printAction"
  656. style="float:right"
  657. >打印</el-button
  658. >
  659. <div id="print_content">
  660. <div class="print_main_content">
  661. <div class="table_panel">
  662. <div v-for="(main_collection,index) in printList" :key="index">
  663. <div class="signPrint" style="width: 360px;font-size:16px;">
  664. <div style="margin-left:50px;">姓名:
  665. <span>{{main_collection.patient.name}} </span>
  666. ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no) }}岁)
  667. </div>
  668. <div class="printCell" style="display:flex;justify-content: space-around;">
  669. <span style="display: block;width: 50%;">
  670. 床号:{{ main_collection.number.number }}
  671. <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
  672. <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
  673. <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
  674. </span>
  675. <span style="display: block;width: 50%;">{{ printDate }}</span>
  676. </div>
  677. <div class="printCell" style="display:flex;justify-content: space-around;">
  678. <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
  679. <span style="display: block;width: 50%;">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
  680. </div>
  681. <div class="printCell" style="display:flex;justify-content: space-around;">
  682. <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
  683. <span style="display: block;width: 50%;">
  684. 首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
  685. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  686. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  687. </span>
  688. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  689. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  690. </span>
  691. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  692. {{main_collection.dialysissolution.anticoagulant_shouji}}mg
  693. </span>
  694. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  695. {{main_collection.dialysissolution.anticoagulant_shouji}} mg
  696. </span>
  697. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  698. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  699. </span>
  700. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  701. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  702. </span>
  703. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  704. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  705. </span>
  706. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  707. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  708. </span>
  709. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  710. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  711. </span>
  712. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  713. {{main_collection.dialysissolution.anticoagulant_shouji}}iu
  714. </span>
  715. </span>
  716. </div>
  717. <div class="printCell" style="display:flex;justify-content: space-around;">
  718. <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
  719. <span style="display: block;width: 50%;">
  720. 维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
  721. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  722. mg/h
  723. </span>
  724. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  725. mg/h
  726. </span>
  727. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  728. iu/h
  729. </span>
  730. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  731. mg/h
  732. </span>
  733. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  734. mg/h
  735. </span>
  736. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  737. iu/h
  738. </span>
  739. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  740. iu/h
  741. </span>
  742. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  743. iu/h
  744. </span>
  745. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  746. iu/h
  747. </span>
  748. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  749. iu/h
  750. </span>
  751. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  752. iu/h
  753. </span>
  754. </span>
  755. </div>
  756. <div class="printCell" style="display:flex;justify-content: space-around;">
  757. <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
  758. <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138">ml</span>
  759. <span v-else>L</span>
  760. </span>
  761. <span style="display: block;width: 50%;">
  762. 总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
  763. <span v-if="main_collection.dialysissolution.anticoagulant == 1">
  764. mg
  765. </span>
  766. <span v-if="main_collection.dialysissolution.anticoagulant == 2">
  767. mg
  768. </span>
  769. <span v-if="main_collection.dialysissolution.anticoagulant == 3">
  770. iu
  771. </span>
  772. <span v-if="main_collection.dialysissolution.anticoagulant == 4">
  773. mg
  774. </span>
  775. <span v-if="main_collection.dialysissolution.anticoagulant == 5">
  776. mg
  777. </span>
  778. <span v-if="main_collection.dialysissolution.anticoagulant == 6">
  779. iu
  780. </span>
  781. <span v-if="main_collection.dialysissolution.anticoagulant == 7">
  782. iu
  783. </span>
  784. <span v-if="main_collection.dialysissolution.anticoagulant == 8">
  785. iu
  786. </span>
  787. <span v-if="main_collection.dialysissolution.anticoagulant == 9">
  788. iu
  789. </span>
  790. <span v-if="main_collection.dialysissolution.anticoagulant == 10">
  791. iu
  792. </span>
  793. <span v-if="main_collection.dialysissolution.anticoagulant == 11">
  794. iu
  795. </span>
  796. </span>
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. <span slot="footer" class="dialog-footer">
  804. <el-button @click="endVisibility = false">取 消</el-button>
  805. </span>
  806. </el-dialog>
  807. <!-- 显示透析日期的弹窗 -->
  808. <el-dialog
  809. :title="'患者信息(姓名:'+Dialysis_patient+'、透析号:'+20011120+')'"
  810. :visible.sync="cishu_dialogVisible"
  811. width="50%"
  812. :modal-append-to-body='false'
  813. :close-on-click-modal="false">
  814. <div>
  815. <div style="line-height: 40px;">
  816. 透析频率:HD(每周2次)
  817. </div>
  818. <div style="line-height: 40px;">
  819. 已排详情
  820. </div>
  821. <div>
  822. <el-calendar>
  823. <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法-->
  824. <template
  825. slot="dateCell"
  826. slot-scope="{date, data}">
  827. <P v-if="data.day.split('-').slice(1).join('-')=='03-06'"
  828. style="background: red;color: white;text-align: center;">
  829. HD
  830. </P>
  831. <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
  832. {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : ''}}<br/>
  833. <span v-if="data.day.split('-').slice(1).join('-')=='03-06'">上午 门诊</span>
  834. </p>
  835. </template>
  836. </el-calendar>
  837. </div>
  838. </div>
  839. </el-dialog>
  840. </div>
  841. <!-- 右侧内容 -->
  842. <div style="width:75%" v-show="!showView">
  843. <!-- <div v-if="Refresh"> -->
  844. <div style="margin-left:60px;color:#34495e">
  845. <span>{{ patient.name }}({{ patient.dialysis_no }})</span>
  846. <span v-if="newTime != ''">&nbsp;&nbsp;|&nbsp;&nbsp;</span>
  847. <span v-if="newTime != ''">签到时间:{{ newTime }}</span>
  848. </div>
  849. <nav-igation
  850. ref="nav"
  851. title="弹窗导航"
  852. @advice="adviceFunc"
  853. :patient="patient"
  854. :schedual="schedual"
  855. :prescription="prescription"
  856. :solution="solution"
  857. :receiver_treatment_access="receiver_treatment_access"
  858. :predialysis_evaluation="predialysis_evaluation"
  859. :doctor_advices="doctor_advices"
  860. :double_check="double_check"
  861. :assessment_after_dislysis="assessment_after_dislysis"
  862. :treatment_summary="treatment_summary"
  863. :monitor_records="monitor_records"
  864. :dialysis_order="dialysis_order"
  865. :admin_users="admin_users"
  866. :devices="devices"
  867. :device_numbers="device_numbers"
  868. :admin_user_map="admin_user_map"
  869. :device_map="device_map"
  870. :device_number_map="device_number_map"
  871. :niprocart_info="niprocart_info"
  872. :jms_info="jms_info"
  873. :fistula_needle_set_info="fistula_needle_set_info"
  874. :fistula_needle_set_16_info="fistula_needle_set_16_info"
  875. :hemoperfusion_info="hemoperfusion_info"
  876. :dialyser_sterilised_info="dialyser_sterilised_info"
  877. :filtryzer_info="filtryzer_info"
  878. :dialyzers_info="dialyzers_info"
  879. :injector_info="injector_info"
  880. :bloodlines_info="bloodlines_info"
  881. :tubingHemodialysis_info="tubingHemodialysis_info"
  882. :safe_package_info="safe_package_info"
  883. :aliquid_info="aliquid_info"
  884. :config="config"
  885. :longAdvices="longAdvices"
  886. :waitUploadAdvices="waitUploadAdvices"
  887. :is_open="is_open"
  888. :last_predialysis_evaluation="lastPredialysisEvaluation"
  889. :last_monitor_record="lastMonitorRecord"
  890. :last_assessment_after_dislysis="lastAssessmentAfterDislysis"
  891. :last_dialysis_prescribe="lastDialysisPrescribe"
  892. :last_dryWeight_dislysis="lastDryWeightDislysis"
  893. :special_premission="headNurses"
  894. @assessmentAfterDislysis="assessmentAfterDislysisFunc"
  895. :system_prescribe="system_prescribe"
  896. :his_is_open="his_is_open"
  897. :is_advice_open="is_advice_open"
  898. :lastAssessment="lastAssessment"
  899. :stockType="stockType"
  900. :his_doctor_advices="his_doctor_advices"
  901. :lastOrder="lastOrder"
  902. :dryWeightList="dryWeightList"
  903. :docList="docList"
  904. >
  905. </nav-igation>
  906. <basic-infor
  907. :patient="patient"
  908. :dialysis_date="dialysis_date"
  909. :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
  910. :steps="steps"
  911. title="基本信息"
  912. ></basic-infor>
  913. <dialysis-prescription
  914. :prescription="prescription"
  915. :solution="solution"
  916. :device_map="device_map"
  917. :preparestock="preparestock"
  918. title="透析处方"
  919. ></dialysis-prescription>
  920. <!-- <past-data class="往期数据"></past-data> -->
  921. <div style="height: 20px;background-color: #f6f8f9"></div>
  922. <accepts-assessment
  923. :record="receiver_treatment_access"
  924. title="接诊评估"
  925. ></accepts-assessment>
  926. <assessment-before
  927. :record="predialysis_evaluation"
  928. ref="assessment_before"
  929. title="透前评估"
  930. ></assessment-before>
  931. <stat-order
  932. ref="stat_order"
  933. :advices="doctor_advices"
  934. :doctor_map="admin_user_map"
  935. title="临时医嘱"
  936. ></stat-order>
  937. <double-check
  938. ref="double_check"
  939. :record="double_check"
  940. :admin_map="admin_user_map"
  941. title="双人核对 "
  942. ></double-check>
  943. <dialysis-computer
  944. ref="dialysis_computer"
  945. :record="dialysis_order"
  946. :admin_map="admin_user_map"
  947. :device_number_map="device_number_map"
  948. title="透析上机 "
  949. ></dialysis-computer>
  950. <dialysis-monitoring
  951. ref="monitoring"
  952. :monitores="monitor_records"
  953. title="透析监测"
  954. ></dialysis-monitoring>
  955. <!-- </div> -->
  956. <el-dialog
  957. title="长期医嘱单"
  958. :visible.sync="dialogFormVisible"
  959. width="960px"
  960. >
  961. <div class="printForm">
  962. <h1 class="title">长期医嘱单</h1>
  963. <div class="info">
  964. <ul>
  965. <li>
  966. <span class="name">姓名:</span>
  967. <input type="text" class="InputBox" />
  968. </li>
  969. <li>
  970. <span class="name">性别:</span>
  971. <input type="text" class="InputBox" />
  972. </li>
  973. <li>
  974. <span class="name">年龄:</span>
  975. <input type="text" class="InputBox" />
  976. </li>
  977. <li>
  978. <span class="name">科别:</span>
  979. <input type="text" class="InputBox" />
  980. </li>
  981. <li>
  982. <span class="name">床号:</span>
  983. <input type="text" class="InputBox" />
  984. </li>
  985. <li>
  986. <span class="name">住院号:</span>
  987. <input type="text" class="InputBox" />
  988. </li>
  989. </ul>
  990. </div>
  991. <table
  992. border="1"
  993. style="border:1px #999 solid;margin-top:20px;"
  994. bordercolorlight="#fff"
  995. bordercolordark="#fff"
  996. width="100%"
  997. cellpadding="0"
  998. cellspacing="0"
  999. class="printTable"
  1000. >
  1001. <tbody>
  1002. <tr align="center">
  1003. <th style="width:20%;" colspan="2" align="center">起始</th>
  1004. <th style="width:20%;" rowspan="2" align="center">医嘱</th>
  1005. <th style="width:8%;" rowspan="2" align="center">医师签名</th>
  1006. <th style="width:6%;" rowspan="2" align="center">执行护士签名</th>
  1007. <th style="width:42%;" colspan="4" align="center">停止</th>
  1008. </tr>
  1009. <tr align="center">
  1010. <th align="center">日期</th>
  1011. <th align="center">时间</th>
  1012. <th style="width:10%;" align="center">日期</th>
  1013. <th style="width:10%;" align="center">时间</th>
  1014. <th style="width:10%;" align="center">医师签名</th>
  1015. <th style="width:6%;" align="center">执行护士签名</th>
  1016. </tr>
  1017. <tr align="center">
  1018. <td>2018-90-09</td>
  1019. <td>2018-90-09</td>
  1020. <td>地方开发发地方开发发方发发发大渡岗</td>
  1021. <td>张三</td>
  1022. <td>张三</td>
  1023. <td>张三</td>
  1024. <td>张三</td>
  1025. <td>张三</td>
  1026. <td>张三</td>
  1027. </tr>
  1028. <tr align="center">
  1029. <td>2018-90-09</td>
  1030. <td>2018-90-09</td>
  1031. <td>地方开发发地方开发发方发发发大渡岗</td>
  1032. <td>张三</td>
  1033. <td>张三</td>
  1034. <td>张三</td>
  1035. <td>张三</td>
  1036. <td>张三</td>
  1037. <td>张三</td>
  1038. </tr>
  1039. </tbody>
  1040. </table>
  1041. </div>
  1042. </el-dialog>
  1043. <el-dialog title="临时医嘱单" :visible.sync="orders" width="960px">
  1044. <div class="printForm">
  1045. <h1 class="title">临时医嘱单</h1>
  1046. <div class="info">
  1047. <ul>
  1048. <li>
  1049. <span class="name">姓名:</span>
  1050. <input type="text" class="InputBox" />
  1051. </li>
  1052. <li>
  1053. <span class="name">性别:</span>
  1054. <input type="text" class="InputBox" />
  1055. </li>
  1056. <li>
  1057. <span class="name">年龄:</span>
  1058. <input type="text" class="InputBox" />
  1059. </li>
  1060. <li>
  1061. <span class="name">科:</span>
  1062. <input type="text" class="InputBox" />
  1063. </li>
  1064. <li>
  1065. <span class="name">区:</span>
  1066. <input type="text" class="InputBox" />
  1067. </li>
  1068. <li>
  1069. <span class="name">房:</span>
  1070. <input type="text" class="InputBox" />
  1071. </li>
  1072. <li>
  1073. <span class="name">床:</span>
  1074. <input type="text" class="InputBox" />
  1075. </li>
  1076. <li>
  1077. <span class="name">住院号:</span>
  1078. <input type="text" class="InputBox" />
  1079. </li>
  1080. </ul>
  1081. </div>
  1082. <table
  1083. border="1"
  1084. style="border:1px #999 solid;margin-top:20px;"
  1085. bordercolorlight="#fff"
  1086. bordercolordark="#fff"
  1087. width="100%"
  1088. cellpadding="0"
  1089. cellspacing="0"
  1090. class="printTable"
  1091. >
  1092. <tbody>
  1093. <tr align="center">
  1094. <th style="width:10%;" align="center">日期</th>
  1095. <th style="width:10%;" align="center">时间</th>
  1096. <th style="width:10%;" align="center">医生签名</th>
  1097. <th style="width:40%;" align="center">医嘱内容</th>
  1098. <th style="width:10%;" align="center">执行时间</th>
  1099. <th style="width:10%;" align="center">护士签名</th>
  1100. <th style="width:10%;" align="center">金额</th>
  1101. </tr>
  1102. <tr align="center">
  1103. <td>2018-90-09</td>
  1104. <td>2018-90-09</td>
  1105. <td>张三</td>
  1106. <td>张三</td>
  1107. <td>张三</td>
  1108. <td>张三</td>
  1109. <td>888</td>
  1110. </tr>
  1111. <tr align="center">
  1112. <td>2018-90-09</td>
  1113. <td>2018-90-09</td>
  1114. <td>张三</td>
  1115. <td>张三</td>
  1116. <td>2018-90-09</td>
  1117. <td>张三</td>
  1118. <td>888</td>
  1119. </tr>
  1120. </tbody>
  1121. </table>
  1122. </div>
  1123. </el-dialog>
  1124. <dialysis-off
  1125. ref="dialysis_off"
  1126. :record="dialysis_order"
  1127. :admin_map="admin_user_map"
  1128. title="透析下机 "
  1129. ></dialysis-off>
  1130. <assessment-after
  1131. ref="assessment_after"
  1132. :record="assessment_after_dislysis"
  1133. title="透后评估"
  1134. ></assessment-after>
  1135. <treatment-of
  1136. ref="treatment_of"
  1137. :record="treatment_summary"
  1138. title="治疗小结"
  1139. ></treatment-of>
  1140. </div>
  1141. <div v-if="showView" style="text-align:center;margin: 0 auto;font-size:20px;">
  1142. <p style="margin-top:20px;">当前叫号</p>
  1143. <p style="margin-top:20px;">{{ $route.query.patient_name ? $route.query.patient_name : ""}}</p>
  1144. <p style="margin-top:20px;">签到时间:{{ $route.query.curPatientTime ? getDates($route.query.curPatientTime) : '' }}</p>
  1145. <p style="color:red;margin-top:20px;">提示:当前患者无排班,请先排班</p>
  1146. </div>
  1147. </div>
  1148. <!-- 透析历史 -->
  1149. <el-dialog class="history"
  1150. :title="'患者信息(姓名:'+patient.name+'、透析号:'+patient.dialysis_no +')' "
  1151. :visible.sync="historyclick"
  1152. width="50%"
  1153. >
  1154. <div>
  1155. <!-- <div >
  1156. 透析频率:
  1157. <div class="touxipl"></div>
  1158. </div> -->
  1159. <div style="margin: 20px 0;">
  1160. <div style="border-left: 2px solid #409eff;color: #409eff;padding: 0 10px;">
  1161. <span>已排详情</span>
  1162. </div>
  1163. <div @click="viewDayWork">
  1164. <el-calendar v-model="time_value">
  1165. <template
  1166. slot="dateCell"
  1167. slot-scope="{date, data}">
  1168. <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
  1169. {{ data.day.split('-').slice(2).join('-') }}<br/>
  1170. <span v-for="(item,index) in orderList" :key="index" style="background: red;color: white;text-align: center;">
  1171. <span v-if="data.day == item.order_date">
  1172. {{ getModeId(item.mode_id) }}
  1173. <span v-if="item.schedual_type_name ==1">上午</span>
  1174. <span v-if="item.schedual_type_name ==2">下午</span>
  1175. <span v-if="item.schedual_type_name ==3">晚上</span>
  1176. </span>
  1177. </span>
  1178. </p>
  1179. </template>
  1180. </el-calendar>
  1181. </div>
  1182. </div>
  1183. </div>
  1184. </el-dialog>
  1185. </div>
  1186. </template>
  1187. <script>
  1188. const moment = require('moment')
  1189. import axios from 'axios'
  1190. import NavIgation from './NavIgation'
  1191. import BasicInfor from './BasicInfor'
  1192. import DialysisPrescription from './DialysisPrescription'
  1193. import PastData from './pastData'
  1194. import AcceptsAssessment from './acceptsAssessment'
  1195. import AssessmentBefore from './assessmentBefore'
  1196. import StatOrder from './statOrder'
  1197. import DialysisComputer from './dialysisComputer'
  1198. import DoubleCheck from './doubleCheck'
  1199. import DialysisMonitoring from './dialysisMonitoring'
  1200. import DialysisOff from './dialysisOff'
  1201. import AssessmentAfter from './assessmentAfter'
  1202. import TreatmentOf from './treatmentOf'
  1203. import OperationStaff from './operationStaff'
  1204. import {
  1205. getDialysisScheduleDetail,
  1206. getLongAdviceTwo,
  1207. getDialysisRecordInitData,
  1208. getDialysisSchedules,
  1209. getInitPrintData,
  1210. getPatientDialysisRecordList
  1211. } from '@/api/dialysis_record'
  1212. import { getDataConfig } from '@/utils/data'
  1213. import { parseTime } from '@/utils'
  1214. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  1215. import print from 'print-js'
  1216. import { uParseTime } from '@/utils/tools'
  1217. import Calendar from 'vue-calendar-component'
  1218. import data from '../../../store/modules/data'
  1219. export default {
  1220. name: 'index',
  1221. components: {
  1222. NavIgation,
  1223. BasicInfor,
  1224. DialysisPrescription,
  1225. PastData,
  1226. AcceptsAssessment,
  1227. AssessmentBefore,
  1228. StatOrder,
  1229. DialysisComputer,
  1230. DoubleCheck,
  1231. DialysisMonitoring,
  1232. DialysisOff,
  1233. AssessmentAfter,
  1234. TreatmentOf,
  1235. OperationStaff,
  1236. BreadCrumb,
  1237. Calendar,//日历
  1238. },
  1239. data() {
  1240. return {
  1241. crumbs: [
  1242. { path: false, name: '透析管理' },
  1243. { path: false, name: '透析记录' },
  1244. { path: false, name: '透析单' }
  1245. ],
  1246. dialogFormVisible: false,
  1247. orders: false,
  1248. loading: false,
  1249. cishu_dialogVisible:false,//
  1250. patient_id: 0,
  1251. date: 0,
  1252. dialysis_date:0,
  1253. longAdvices: [],
  1254. waitUploadAdvices: [],
  1255. is_open: 0,
  1256. targetAdvices: [],
  1257. patient: { id: 0 }, // 患者信息
  1258. schedual: { id: 0 }, // 患者排班信息
  1259. prescription: { id: 0 }, // 透析处方
  1260. solution: { id: 0 }, // 透析方案
  1261. system_prescribe: { id: 0 },
  1262. receiver_treatment_access: { id: 0 }, // 接诊评估
  1263. predialysis_evaluation: { id: 0 }, // 透前评估
  1264. doctor_advices: [], // 临时医嘱
  1265. double_check: { id: 0 }, // 双人核对
  1266. assessment_after_dislysis: { id: 0 }, // 透后评估
  1267. treatment_summary: { id: 0 }, // 治疗小结
  1268. monitor_records: [], // 透析监测
  1269. dialysis_order: { id: 0 }, // 透析记录
  1270. admin_users: [], // 系统用户列表
  1271. devices: [], // 设备
  1272. device_numbers: [], // 床位号
  1273. admin_user_map: {}, // {user_id: admin_user object}
  1274. device_map: {}, // {device_id: device}
  1275. device_number_map: {}, // {device_number_id: device_number}
  1276. niprocart_info: [],
  1277. jms_info: [],
  1278. fistula_needle_set_info: [],
  1279. fistula_needle_set_16_info: [],
  1280. hemoperfusion_info: [],
  1281. dialyser_sterilised_info: [],
  1282. filtryzer_info: [],
  1283. dialyzers_info: [],
  1284. injector_info: [],
  1285. bloodlines_info: [],
  1286. tubingHemodialysis_info: [],
  1287. safe_package_info: [],
  1288. aliquid_info: [],
  1289. config: {},
  1290. his_is_open:0,
  1291. is_advice_open:0,
  1292. lastPredialysisEvaluation: { id: 0 },
  1293. lastMonitorRecord: { id: 0 },
  1294. lastAssessmentAfterDislysis: { id: 0 },
  1295. lastDryWeightDislysis: { id: 0 },
  1296. lastAssessment:{id:0},
  1297. headNurses: [],
  1298. lastDialysisPrescribe: { id: 0 },
  1299. //
  1300. activeName: 'first',
  1301. selected_date: new Date(),
  1302. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  1303. search_keyword: '', // 确定用于搜索的关键字
  1304. search_input: '', // 输入中的关键字
  1305. patient_state: [
  1306. { value: 0, label: '全部患者' },
  1307. { value: 1, label: '已签到' },
  1308. { value: 2, label: '未签到' },
  1309. { value: 3, label: '已上机' },
  1310. { value: 4, label: '已下机' }
  1311. ],
  1312. patientStateVal: 0,
  1313. treat_state: [
  1314. { value: 0, label: '全部治疗' },
  1315. { value: 1, label: '待开处方' },
  1316. { value: 2, label: '待开小结' },
  1317. { value: 3, label: '待医嘱核对' },
  1318. ],
  1319. treatStateVal: 0,
  1320. schedule_options: [
  1321. { value: 0, label: '全部班' },
  1322. { value: 1, label: '上午' },
  1323. { value: 2, label: '下午' },
  1324. { value: 3, label: '晚上' }
  1325. ],
  1326. scheduleStateVal: 0,
  1327. zone_options: [
  1328. { id: 0, text: '全部分区' }
  1329. ],
  1330. zoneVal: 0,
  1331. tableData: [],
  1332. tableData1: [],
  1333. arr: [],
  1334. newName: '',
  1335. newTime: '',
  1336. scheudle_mode:"",
  1337. showView:false,
  1338. curPatient:{},
  1339. queueConfig:{},
  1340. stockType:[],
  1341. preparestock:[],
  1342. his_doctor_advices:[],
  1343. startVisibility:false,
  1344. endVisibility:false,
  1345. centerDialogVisible:false,//新上机单弹窗
  1346. printList:[],
  1347. anticoagulants_confit:null,
  1348. printDate:'',
  1349. assessmentAfterDislysis:{},
  1350. lastOrder:{},
  1351. dryWeightList:[],
  1352. docList:[],
  1353. blood_access_part_opera: [],
  1354. Dialysis_patient:'',
  1355. Refresh:true,
  1356. norefresh:true,
  1357. historyclick:false,
  1358. time_value:new Date(),
  1359. start_time:moment().startOf('months').format('YYYY-MM-DD'),
  1360. end_time:moment().endOf('months').format('YYYY-MM-DD'),
  1361. orderList:[]
  1362. }
  1363. },
  1364. created() {
  1365. this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1366. this.org_id = this.$store.getters.xt_user.org.id,
  1367. this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
  1368. if(this.$route.query.showView){
  1369. this.showView = this.$route.query.showView
  1370. }
  1371. if(sessionStorage.getItem("nameActive")){
  1372. this.activeName = sessionStorage.getItem("nameActive")
  1373. }
  1374. var patient_id = this.$route.query.patient_id
  1375. var date = this.$route.query.date
  1376. this.patient_id = patient_id
  1377. this.date = date
  1378. this.dialysis_date=
  1379. this.getScheduleDetail()
  1380. this.getLongAdvice()
  1381. this.selected_date = this.$route.query.date * 1000
  1382. var schedule_type_selected = this.$store.getters.schedule_type_selected
  1383. var zone_selected = this.$store.getters.zone_selected
  1384. var patient_state_selected = this.$store.getters.patient_state_selected
  1385. var treat_state_selected = this.$store.getters.treat_state_selected
  1386. var selected_date = this.$store.getters.selected_date
  1387. if (schedule_type_selected) {
  1388. this.scheduleStateVal = schedule_type_selected.schedule_type_selected
  1389. }
  1390. if (zone_selected) {
  1391. this.zoneVal = zone_selected.zone_selected
  1392. }
  1393. if (patient_state_selected) {
  1394. this.patientStateVal = patient_state_selected.patient_state_selected
  1395. }
  1396. if (treat_state_selected) {
  1397. this.treatStateVal = treat_state_selected.treat_state_selected
  1398. }
  1399. if (selected_date.selected_date) {
  1400. this.selected_date = selected_date.selected_date
  1401. }
  1402. this.initData = {
  1403. cmd: "queue/join",
  1404. data: {type:3,page:0,size:0},
  1405. };
  1406. this.websocketSend(this.initData)
  1407. this.getInitData()
  1408. this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
  1409. },
  1410. computed: {
  1411. websocket() {
  1412. return this.$store.state.user.websocket;
  1413. },
  1414. steps: function() {
  1415. var steps = [
  1416. { title: '透析处方', finish: false },
  1417. { title: '接诊评估', finish: false },
  1418. { title: '透前评估', finish: false },
  1419. { title: '临时医嘱', finish: false },
  1420. { title: '双人核对', finish: false },
  1421. { title: '透析上机', finish: false },
  1422. { title: '透析监测', finish: false },
  1423. { title: '透析下机', finish: false },
  1424. { title: '透后评估', finish: false },
  1425. { title: '治疗小结', finish: false }
  1426. ]
  1427. steps[0].finish = this.prescription.id && this.prescription.creater > 0
  1428. steps[1].finish = this.receiver_treatment_access.id > 0
  1429. // steps[2].finish =this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.creater > 0
  1430. steps[2].finish =this.predialysis_evaluation.id > 0
  1431. steps[3].finish = this.doctor_advices.length > 0
  1432. steps[5].finish = this.dialysis_order.id > 0
  1433. steps[7].finish =
  1434. this.dialysis_order.id > 0 && this.dialysis_order.stage == 2
  1435. steps[4].finish =
  1436. this.double_check.id > 0 &&
  1437. this.double_check.creater > 0 &&
  1438. this.double_check.modifier > 0
  1439. steps[6].finish = this.monitor_records.length > 0
  1440. // steps[8].finish = this.assessment_after_dislysis.id > 0 && this.assessment_after_dislysis.creater > 0
  1441. steps[8].finish = this.assessment_after_dislysis.id > 0
  1442. steps[9].finish = this.treatment_summary.id > 0
  1443. return steps
  1444. },
  1445. filtedSchedules: function() {
  1446. var search_keyword = this.search_keyword
  1447. if (search_keyword.length > 0) {
  1448. var schedules = []
  1449. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1450. const scheduleInfo = this.zone_schedules[o_i]
  1451. var originSchedules = scheduleInfo.schedules
  1452. if (originSchedules.length == 0) {
  1453. continue
  1454. }
  1455. var filtedSchedules = []
  1456. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1457. const schedule = originSchedules[s_i]
  1458. if ((schedule.patient.name.indexOf(search_keyword) != -1) || (schedule.patient.first_letter.indexOf(search_keyword) != -1)) {
  1459. filtedSchedules.push(schedule)
  1460. // break
  1461. }
  1462. }
  1463. if (filtedSchedules.length > 0) {
  1464. schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1465. }
  1466. }
  1467. return schedules
  1468. }
  1469. // var zone_selected = this.zoneVal
  1470. // var timetype_selected = this.scheduleStateVal
  1471. // if ((zone_selected == 0 && timetype_selected == 0) || this.zone_options.length <= 1) {
  1472. // var schedules = []
  1473. // for (let index = 0; index < this.zone_schedules.length; index++) {
  1474. // const scheduleInfo = this.zone_schedules[index]
  1475. // if (scheduleInfo.schedules.length != 0) {
  1476. // schedules.push(scheduleInfo)
  1477. // }
  1478. // }
  1479. // return schedules
  1480. // }
  1481. // var schedules = []
  1482. // for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1483. // const scheduleInfo = this.zone_schedules[o_i]
  1484. // if (zone_selected == scheduleInfo.zone_id && timetype_selected == 0) {
  1485. // if (scheduleInfo.schedules.length == 0) {
  1486. // return []
  1487. // } else {
  1488. // return [scheduleInfo]
  1489. // }
  1490. // }
  1491. // var originSchedules = scheduleInfo.schedules
  1492. // if (originSchedules.length == 0) {
  1493. // continue
  1494. // }
  1495. // var filtedSchedules = []
  1496. // for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1497. // const schedule = originSchedules[s_i]
  1498. // if (zone_selected != 0) {
  1499. // if (zone_selected == schedule.device_number.zone.id) {
  1500. // if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
  1501. // filtedSchedules.push(schedule)
  1502. // }
  1503. // }
  1504. // } else {
  1505. // if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
  1506. // filtedSchedules.push(schedule)
  1507. // }
  1508. // }
  1509. // }
  1510. // if (filtedSchedules.length > 0) {
  1511. // schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1512. // }
  1513. // }
  1514. // return schedules
  1515. }
  1516. },
  1517. beforeMount() {
  1518. if (this.websocket) {
  1519. if (this.websocket.readyState == 1) {
  1520. console.log('执行1')
  1521. this.websocketMess();
  1522. } else {
  1523. setTimeout(() => {
  1524. console.log('执行2')
  1525. this.websocketMess();
  1526. }, 1000);
  1527. }
  1528. } else {
  1529. setTimeout(() => {
  1530. if (this.websocket) {
  1531. console.log('执行3')
  1532. this.websocketMess();
  1533. } else {
  1534. setTimeout(() => {
  1535. console.log('执行4')
  1536. this.websocketMess();
  1537. }, 1000);
  1538. }
  1539. }, 1000);
  1540. }
  1541. },
  1542. mounted() {
  1543. const timer = setInterval(() => {
  1544. // this.getInitData();
  1545. this.requestDialysisSchedules()
  1546. }, 1000 * 30)
  1547. // 通过$once来监听定时器,在beforeDestroy钩子可以被清除。
  1548. this.$once('hook:beforeDestroy', () => {
  1549. clearInterval(timer)
  1550. })
  1551. let obj = {
  1552. cmd: "queue/join",
  1553. data: {type:3,page:0,size:0},
  1554. };
  1555. this.websocketSend(obj)
  1556. // this.getmonth(this.time_value)
  1557. // this.handlePick(this.time_value)
  1558. },
  1559. beforeDestroy(){
  1560. let unObj = {
  1561. cmd: "queue/unjoin",
  1562. data: {type:3},
  1563. };
  1564. this.websocketSend(unObj)
  1565. },
  1566. methods: {
  1567. // 透析次数
  1568. chishuclick(row){
  1569. this.cishu_dialogVisible=true
  1570. console.log('ddddddd',row);
  1571. this.Dialysis_patient=row
  1572. },
  1573. getNewAge(UUserCard) {
  1574. if (UUserCard != null && UUserCard != '') {
  1575. // 获取年龄
  1576. var myDate = new Date()
  1577. var month = myDate.getMonth() + 1
  1578. var day = myDate.getDate()
  1579. var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
  1580. if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
  1581. age++
  1582. }
  1583. return age
  1584. }
  1585. },
  1586. adviceFunc() {
  1587. this.getScheduleDetail()
  1588. },
  1589. getLongAdvice() {
  1590. const params = {
  1591. patient_id: this.patient_id,
  1592. schedule_date:this.$route.query.date,
  1593. }
  1594. getLongAdviceTwo(params).then(rs => {
  1595. var resp = rs.data
  1596. if (resp.state == 1) {
  1597. console.log('vbnvnffvvvv',resp);
  1598. var status = parseInt(resp.data.status)
  1599. switch (status) {
  1600. case 2:
  1601. var totalAdvice = resp.data.advices
  1602. var longAdvicesTwo = resp.data.advices_two
  1603. var waitUploadAdvices = []
  1604. for (let i = 0; i < totalAdvice.length; i++) {
  1605. totalAdvice[i]['isCheck'] = 1
  1606. }
  1607. for (let i = 0; i < totalAdvice.length; i++) {
  1608. for (let a = 0; a < longAdvicesTwo.length; a++) {
  1609. if (
  1610. totalAdvice[i].template_id ==
  1611. longAdvicesTwo[a].template_id &&
  1612. totalAdvice[i].frequency_type ==
  1613. longAdvicesTwo[a].frequency_type
  1614. ) {
  1615. totalAdvice[i]['isCheck'] = 0
  1616. }
  1617. }
  1618. }
  1619. for (let i = 0; i < totalAdvice.length; i++) {
  1620. if (totalAdvice[i].isCheck == 1) {
  1621. waitUploadAdvices.push(totalAdvice[i])
  1622. }
  1623. }
  1624. this.is_open = resp.data.is_open_remind
  1625. if(this.his_is_open == 1){
  1626. this.is_open = 0
  1627. }
  1628. if(this.is_advice_open == 1){
  1629. this.is_open = 1
  1630. }
  1631. this.longAdvices = totalAdvice
  1632. console.log("长期医嘱汇总 u 公告让你😯23232322332",this.longAdvices)
  1633. this.waitUploadAdvices = waitUploadAdvices
  1634. break
  1635. }
  1636. } else {
  1637. this.$message.error(resp.msg)
  1638. }
  1639. })
  1640. },
  1641. assessmentAfterDislysisFunc: function(val) {
  1642. for (var index in val) {
  1643. this.$set(this.assessment_after_dislysis, index, val[index])
  1644. }
  1645. },
  1646. didDelMonitor(record_id) {
  1647. var mrl = this.monitor_records.length
  1648. for (let index = 0; index < mrl; index++) {
  1649. if (this.monitor_records[index].id == record_id) {
  1650. this.monitor_records.splice(index, 1)
  1651. break
  1652. }
  1653. }
  1654. },
  1655. getScheduleDetail: function() {
  1656. this.loading = true
  1657. var dateStr = parseTime(this.date, '{y}-{m}-{d}')
  1658. if(this.$route.query.showView == true){
  1659. this.loading = false
  1660. return
  1661. }
  1662. // console.log('kkkkkkk',dateStr);
  1663. this.doctor_advices = []
  1664. getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
  1665. var resp = rs.data
  1666. if (resp.state == 1) {
  1667. var patient = resp.data.patient // 患者信息
  1668. var schedual = resp.data.schedual // 患者排班信息
  1669. console.log("排班22222222222",resp)
  1670. var prescription = resp.data.prescription // 透析处方
  1671. if (prescription != null) {
  1672. if (prescription.body_fluid == -2) {
  1673. prescription.body_fluid = 0
  1674. }
  1675. if(prescription.bilirubin_adsorption_column == 0){
  1676. prescription.bilirubin_adsorption_column = ""
  1677. }
  1678. if(prescription.plasma_separator == 0){
  1679. prescription.plasma_separator = ""
  1680. }
  1681. }
  1682. var solution = resp.data.solution // 透析方案
  1683. var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
  1684. var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
  1685. if (predialysis_evaluation != null) {
  1686. if (predialysis_evaluation.blood_access_part_id == -2) {
  1687. predialysis_evaluation.blood_access_part_id = 0
  1688. }
  1689. if(predialysis_evaluation.blood_pressure_during_dialysis == 0){
  1690. predialysis_evaluation.blood_pressure_during_dialysis = ""
  1691. }
  1692. }
  1693. var doctor_advices = resp.data.doctor_advices // 临时医嘱
  1694. var double_check = resp.data.double_check // 双人核对
  1695. var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
  1696. var treatment_summary = resp.data.treatment_summary // 治疗小结
  1697. var monitor_records = resp.data.monitor_records // 透析监测
  1698. var dialysis_order = resp.data.dialysis_order // 透析记录
  1699. var niprocart_info = resp.data.niprocart_info
  1700. var jms_info = resp.data.jms_info
  1701. var fistula_needle_set_info = resp.data.fistula_needle_set_info
  1702. var fistula_needle_set_16_info = resp.data.fistula_needle_set_16_info
  1703. var hemoperfusion_info = resp.data.hemoperfusion_info
  1704. var dialyser_sterilised_info = resp.data.dialyser_sterilised_info
  1705. var filtryzer_info = resp.data.filtryzer_info
  1706. var dialyzers_info = resp.data.dialyzers_info
  1707. var injector_info = resp.data.injector_info
  1708. var bloodlines_info = resp.data.bloodlines_info
  1709. var tubingHemodialysis_info = resp.data.tubingHemodialysis_info
  1710. var safe_package_info = resp.data.safe_package_info
  1711. var aliquid_info = resp.data.aliquid_info
  1712. var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
  1713. if (lastPredialysisEvaluation != null) {
  1714. if (lastPredialysisEvaluation.blood_access_part_id == -2) {
  1715. lastPredialysisEvaluation.blood_access_part_id = 0
  1716. }
  1717. }
  1718. var lastMonitorRecord = resp.data.lastMonitorRecord
  1719. var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
  1720. // if(lastAssessmentAfterDislysis.hypertenison!=""){
  1721. // lastAssessmentAfterDislysis.hypertenison = lastAssessmentAfterDislysis.hypertenison.toString()
  1722. // }
  1723. // if(lastAssessmentAfterDislysis.hypopiesia!=""){
  1724. // lastAssessmentAfterDislysis.hypopiesia = lastAssessmentAfterDislysis.hypopiesia.toString()
  1725. // }
  1726. var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
  1727. var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
  1728. var system_prescribe = resp.data.system_prescribe
  1729. var lastAssessment = resp.data.lastAssessment
  1730. var lastOrder = resp.data.lastOrder
  1731. this.lastOrder = lastOrder
  1732. this.$refs.nav.setLastRecord(
  1733. lastPredialysisEvaluation,
  1734. lastMonitorRecord,
  1735. lastAssessmentAfterDislysis,
  1736. lastDialysisPrescribe,
  1737. lastDryWeightDislysis,
  1738. schedual,
  1739. system_prescribe,
  1740. lastAssessment,
  1741. )
  1742. var headNurses = resp.data.headNurse
  1743. var config = resp.data.config
  1744. this.lastPredialysisEvaluation = lastPredialysisEvaluation
  1745. this.lastMonitorRecord = lastMonitorRecord
  1746. this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis
  1747. this.lastDialysisPrescribe = lastDialysisPrescribe
  1748. this.lastDryWeightDislysis = lastDryWeightDislysis
  1749. this.lastAssessment = lastAssessment
  1750. this.headNurses = headNurses
  1751. this.system_prescribe = system_prescribe
  1752. this.niprocart_info = []
  1753. this.jms_info = []
  1754. this.fistula_needle_set_info = []
  1755. this.fistula_needle_set_16_info = []
  1756. this.hemoperfusion_info = []
  1757. this.dialyser_sterilised_info = []
  1758. this.filtryzer_info = []
  1759. this.dialyzers_info = []
  1760. this.injector_info = []
  1761. this.bloodlines_info = []
  1762. this.tubingHemodialysis_info = []
  1763. this.safe_package_info = []
  1764. this.aliquid_info = []
  1765. this.niprocart_info = niprocart_info
  1766. this.jms_info = jms_info
  1767. this.fistula_needle_set_info = fistula_needle_set_info
  1768. this.fistula_needle_set_16_info = fistula_needle_set_16_info
  1769. this.hemoperfusion_info = hemoperfusion_info
  1770. this.dialyser_sterilised_info = dialyser_sterilised_info
  1771. this.filtryzer_info = filtryzer_info
  1772. this.dialyzers_info = dialyzers_info
  1773. this.injector_info = injector_info
  1774. this.bloodlines_info = bloodlines_info
  1775. this.tubingHemodialysis_info = tubingHemodialysis_info
  1776. this.safe_package_info = safe_package_info
  1777. this.aliquid_info = aliquid_info
  1778. this.config = config
  1779. // console.log('sdfdasfda4444444',this.patient);
  1780. this.patient = patient
  1781. console.log('bbbbbbbcccccccccc',this.patient);
  1782. this.schedual = schedual == null ? { id: 0 } : schedual
  1783. this.prescription = prescription == null ? { id: 0 } : prescription
  1784. this.solution = solution == null ? { id: 0 } : solution
  1785. this.receiver_treatment_access =
  1786. receiver_treatment_access == null
  1787. ? { id: 0 }
  1788. : receiver_treatment_access
  1789. this.predialysis_evaluation =
  1790. predialysis_evaluation == null ? { id: 0 } : predialysis_evaluation
  1791. this.doctor_advices = doctor_advices == null ? [] : doctor_advices
  1792. this.double_check = double_check == null ? { id: 0 } : double_check
  1793. this.assessment_after_dislysis =
  1794. assessment_after_dislysis == null
  1795. ? { id: 0 }
  1796. : assessment_after_dislysis
  1797. this.treatment_summary =
  1798. treatment_summary == null ? { id: 0 } : treatment_summary
  1799. this.monitor_records = monitor_records == null ? [] : monitor_records
  1800. this.dialysis_order =
  1801. dialysis_order == null ? { id: 0 } : dialysis_order
  1802. this.admin_users = resp.data.doctors
  1803. this.devices = resp.data.devices
  1804. this.device_numbers = resp.data.device_numbers
  1805. var his_doctor_advices = resp.data.his_advices
  1806. this.his_doctor_advices = his_doctor_advices
  1807. this.his_is_open = resp.data.is_open_config.is_open
  1808. this.is_advice_open = resp.data.is_advice_open.is_advice_open
  1809. var stockType = resp.data.stockType
  1810. this.stockType = stockType
  1811. this.dryWeightList = resp.data.dryWeightList
  1812. this.docList = resp.data.docList
  1813. console.log("doclist-----",this.docList)
  1814. var prepare = resp.data.prepare
  1815. if(prepare!=null){
  1816. this.preparestock = prepare
  1817. }else{
  1818. this.preparestock = []
  1819. }
  1820. for (let i = 0; i < this.doctor_advices.length; i++){
  1821. this.doctor_advices[i]['origin'] = 1
  1822. }
  1823. if (his_doctor_advices != null) {
  1824. for (let i = 0; i < his_doctor_advices.length; i++) {
  1825. his_doctor_advices[i]['origin'] = 2
  1826. his_doctor_advices[i]['way'] = 1
  1827. this.doctor_advices.push(his_doctor_advices[i])
  1828. }
  1829. }
  1830. const obj = {}
  1831. this.doctor_advices = this.doctor_advices.reduce((cur, next) => {
  1832. obj[next.id] ? '' : obj[next.id] = true && cur.push(next)
  1833. return cur
  1834. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  1835. var device_map = {}
  1836. for (let index = 0; index < this.devices.length; index++) {
  1837. const device = this.devices[index]
  1838. device_map[device.id] = device
  1839. }
  1840. this.device_map = device_map
  1841. var admin_map = {}
  1842. for (let index = 0; index < this.admin_users.length; index++) {
  1843. const admin = this.admin_users[index]
  1844. admin_map[admin.id] = admin
  1845. }
  1846. this.admin_user_map = admin_map
  1847. var device_number_map = {}
  1848. for (let index = 0; index < this.device_numbers.length; index++) {
  1849. const device_number = this.device_numbers[index]
  1850. device_number_map[device_number.id] = device_number
  1851. }
  1852. this.device_number_map = device_number_map
  1853. } else {
  1854. this.$message.error(resp.msg)
  1855. }
  1856. // 目标超滤量是否默认上次数据
  1857. if (this.lastDialysisPrescribe != null) {
  1858. delete this.lastDialysisPrescribe.target_ultrafiltration
  1859. }
  1860. if (this.solution != null) {
  1861. delete this.solution.target_ultrafiltration
  1862. }
  1863. if(this.predialysis_evaluation.id > 0){
  1864. this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
  1865. this.dialysis_date = parseTime(this.predialysis_evaluation.created_time, '{y}-{m}-{d}')
  1866. console.log('qqqqqqqqq',this.dialysis_date);
  1867. // this.dialysis_date=this.predialysis_evaluation.created_time
  1868. }
  1869. this.loading = false
  1870. })
  1871. },
  1872. printOrder() {
  1873. var xtdate = parseTime(this.date, '{y}-{m}-{d}')
  1874. this.$router.push(
  1875. '/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no +"&patient_id="+this.patient.id
  1876. )
  1877. },
  1878. printOrderOne(){
  1879. this.getInitPrintData()
  1880. },
  1881. // 日期
  1882. handleScheduleDateChange: function(index) {
  1883. this.treatStateVal = 0
  1884. this.patientStateVal = 0
  1885. this.zoneVal = 0
  1886. this.scheduleStateVal = 0
  1887. this.search_keyword = this.search_input = ''
  1888. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  1889. // zone: this.zone_selected,
  1890. // schedule_type: this.schedule_type_selected,
  1891. // schedule_date: this.selected_date,
  1892. // })
  1893. this.selected_date = index
  1894. this.$store.dispatch('SetSelectedDate', { selected_date: index })
  1895. this.requestDialysisSchedules()
  1896. },
  1897. // 初始化数据
  1898. getInitData: function() {
  1899. getDialysisRecordInitData().then(rs => {
  1900. var resp = rs.data
  1901. if (resp.state == 1) {
  1902. var zones = resp.data.zones
  1903. var schedules = resp.data.schedules
  1904. var zone_options = [{ id: 0, text: '全部分区' }]
  1905. for (let z_i = 0; z_i < zones.length; z_i++) {
  1906. const zone = zones[z_i]
  1907. zone_options.push({ id: zone.id, text: zone.name })
  1908. }
  1909. this.zone_options = zone_options
  1910. this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
  1911. this.requestDialysisSchedules()
  1912. } else {
  1913. this.$message.error(resp.msg)
  1914. }
  1915. })
  1916. },
  1917. // 班次
  1918. handletimeType: function(index) {
  1919. this.scheduleStateVal = index
  1920. this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
  1921. this.search_keyword = this.search_input = ''
  1922. this.getData()
  1923. },
  1924. // 分区
  1925. handleZoneChange: function(index) {
  1926. this.zoneVal = index
  1927. this.$store.dispatch('SetZoneSelected', { zone_selected: index })
  1928. this.search_keyword = this.search_input = ''
  1929. this.getData()
  1930. },
  1931. // 患者状态
  1932. handleStateChange: function(index) {
  1933. this.patientStateVal = index
  1934. this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
  1935. this.search_keyword = this.search_input = ''
  1936. this.getData()
  1937. },
  1938. handleTreatChange: function(index) {
  1939. this.treatStateVal = index
  1940. this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
  1941. this.search_keyword = this.search_input = ''
  1942. this.getData()
  1943. },
  1944. processedDialysisSchedules: function(schedules, zone_options) {
  1945. var zoneMap = {}
  1946. var scheduleMap = {}
  1947. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  1948. const zone = zone_options[z_i]
  1949. if (zone.id == 0) {
  1950. continue
  1951. }
  1952. scheduleMap[zone.id] = []
  1953. }
  1954. for (let index = 0; index < schedules.length; index++) {
  1955. const schedule = schedules[index]
  1956. scheduleMap[schedule.device_number.zone.id].push(schedule)
  1957. }
  1958. var zone_schedules = []
  1959. for (let index = 0; index < zone_options.length; index++) {
  1960. const zone = zone_options[index]
  1961. if (zone.id == 0) {
  1962. continue
  1963. }
  1964. var schedules = scheduleMap[zone.id]
  1965. zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
  1966. }
  1967. return zone_schedules
  1968. },
  1969. searchAction: function() {
  1970. this.search_keyword = this.search_input
  1971. this.scheduleStateVal = 0
  1972. this.zoneVal = 0
  1973. this.treatStateVal = 0
  1974. this.patientStateVal = 0
  1975. if (this.search_input != '') {
  1976. const arr = []
  1977. this.filtedSchedules.map(item => {
  1978. arr.push(...item.schedules)
  1979. })
  1980. if (this.activeName == 'first') {
  1981. this.tableData = arr
  1982. } else if (this.activeName == 'second') {
  1983. this.tableData1 = arr
  1984. }
  1985. } else {
  1986. this.getData()
  1987. }
  1988. },
  1989. requestDialysisSchedules: function() {
  1990. var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
  1991. getDialysisSchedules(ymd).then(rs => {
  1992. var resp = rs.data
  1993. if (resp.state == 1) {
  1994. var schedules = resp.data.schedules
  1995. // if(this.prescription!=null){
  1996. // for(let i=0;i<schedules.length;i++){
  1997. // if(this.prescription.patient_id == schedules[i].patient_id){
  1998. // this.prescription = schedules[i].prescription
  1999. // }
  2000. // }
  2001. // }
  2002. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  2003. const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  2004. if (this.activeName == 'first') {
  2005. for (let i = 0; i < patientArr.length; i++) {
  2006. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2007. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
  2008. // 删除元素后改变i的值
  2009. patientArr[i].schedules.splice(j--, 1)
  2010. }
  2011. }
  2012. }
  2013. } else if (this.activeName == 'second') {
  2014. for (let i = 0; i < patientArr.length; i++) {
  2015. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2016. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
  2017. // 删除元素后改变i的值
  2018. patientArr[i].schedules.splice(j--, 1)
  2019. }
  2020. }
  2021. }
  2022. }
  2023. const newArr = []
  2024. patientArr.map(item => {
  2025. newArr.push(...item.schedules)
  2026. })
  2027. // console.log("newArrwowowowowoowwowo",newArr)
  2028. this.tableData = newArr
  2029. this.getData()
  2030. } else {
  2031. this.$message.error(resp.msg)
  2032. }
  2033. })
  2034. },
  2035. changePatient(schedual) {
  2036. this.patient_id = schedual.patient_id
  2037. this.date = schedual.schedule_date
  2038. this.getScheduleDetail();
  2039. console.log('schedual',schedual);
  2040. //this.getLongAdvice();
  2041. var patient_id = schedual.patient_id
  2042. var date = schedual.schedule_date
  2043. this.$router.push({
  2044. path: '/dialysis/details',
  2045. query: {
  2046. patient_id: patient_id,
  2047. date: date,
  2048. patient_name: schedual.patient.name,
  2049. mode_id:schedual.mode_id
  2050. }
  2051. })
  2052. },
  2053. handleClick(type) {
  2054. sessionStorage.setItem('nameActive', type.name);
  2055. this.getData()
  2056. },
  2057. getData() {
  2058. let patientArr = []
  2059. patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  2060. if (this.activeName == 'first') {
  2061. for (let i = 0; i < patientArr.length; i++) {
  2062. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2063. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
  2064. // 删除元素后改变i的值
  2065. // console.log('候诊区', patientArr[i].schedules[j])
  2066. patientArr[i].schedules.splice(j--, 1)
  2067. }
  2068. }
  2069. }
  2070. let arr1 = []
  2071. if (this.patientStateVal == 0) {
  2072. arr1 = patientArr
  2073. } else if (this.patientStateVal == 1) {
  2074. let arr = []
  2075. arr = patientArr
  2076. for (let i = 0; i < arr.length; i++) {
  2077. for (let j = 0; j < arr[i].schedules.length; j++) {
  2078. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis == null || (arr[i].schedules[j].assessment_before_dislysis.weight_before == '' && arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure == '' && arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure == ''))) {
  2079. // 删除元素后改变i的值
  2080. arr[i].schedules.splice(j--, 1)
  2081. }
  2082. }
  2083. }
  2084. // console.log('执行1', arr)
  2085. arr1 = arr
  2086. } else if (this.patientStateVal == 2) {
  2087. let arr = []
  2088. arr = patientArr
  2089. for (let i = 0; i < arr.length; i++) {
  2090. for (let j = 0; j < arr[i].schedules.length; j++) {
  2091. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis != null && (arr[i].schedules[j].assessment_before_dislysis.weight_before != 0 || arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure != 0 || arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure != 0))) {
  2092. // 删除元素后改变i的值
  2093. arr[i].schedules.splice(j--, 1)
  2094. }
  2095. }
  2096. }
  2097. // console.log('执行2', arr)
  2098. arr1 = arr
  2099. }
  2100. let arr2 = []
  2101. if (this.treatStateVal == 0) {
  2102. arr2 = JSON.parse(JSON.stringify(arr1))
  2103. } else if (this.treatStateVal == 1) {
  2104. let arr = []
  2105. arr = JSON.parse(JSON.stringify(arr1))
  2106. for (let i = 0; i < arr.length; i++) {
  2107. for (let j = 0; j < arr[i].schedules.length; j++) {
  2108. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].prescription != null || arr[i].schedules[j].prescription != null ? arr[i].schedules[j].prescription.creater != 0 : false)) {
  2109. // 删除元素后改变i的值
  2110. arr[i].schedules.splice(j--, 1)
  2111. }
  2112. }
  2113. }
  2114. arr2 = arr
  2115. } else if(this.treatStateVal == 3){
  2116. let arr = []
  2117. arr = JSON.parse(JSON.stringify(arr1))
  2118. for (let i = 0; i < arr.length; i++) {
  2119. for (let j = 0; j < arr[i].schedules.length; j++) {
  2120. if(arr[i].schedules[j].doctor_advice.length == 0){
  2121. arr[i].schedules.splice(j--, 1)
  2122. }
  2123. if(arr[i].schedules && arr[i].schedules[j] && arr[i].schedules[j].doctor_advice){
  2124. let sign = 0
  2125. arr[i].schedules[j].doctor_advice.map(item => {
  2126. if(item.check_state == 1){
  2127. sign++
  2128. }
  2129. })
  2130. if(sign == arr[i].schedules[j].doctor_advice.length && arr[i].schedules[j].doctor_advice.length > 0){
  2131. arr[i].schedules.splice(j--, 1)
  2132. }
  2133. }
  2134. }
  2135. }
  2136. arr2 = arr
  2137. }
  2138. let arr3 = []
  2139. if (this.scheduleStateVal == 0) {
  2140. arr3 = JSON.parse(JSON.stringify(arr2))
  2141. } else {
  2142. let arr = []
  2143. arr = JSON.parse(JSON.stringify(arr2))
  2144. for (let i = 0; i < arr.length; i++) {
  2145. for (let j = 0; j < arr[i].schedules.length; j++) {
  2146. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2147. // 删除元素后改变i的值
  2148. arr[i].schedules.splice(j--, 1)
  2149. }
  2150. }
  2151. }
  2152. arr3 = arr
  2153. }
  2154. let arr4 = []
  2155. if (this.zoneVal == 0) {
  2156. arr4 = JSON.parse(JSON.stringify(arr3))
  2157. } else {
  2158. let arr = []
  2159. arr = JSON.parse(JSON.stringify(arr3))
  2160. for (let i = 0; i < arr.length; i++) {
  2161. if (this.zoneVal != arr[i].zone_id) {
  2162. // 删除元素后改变i的值
  2163. arr.splice(i--, 1)
  2164. }
  2165. }
  2166. arr4 = arr
  2167. }
  2168. const newArr = []
  2169. arr4.map(item => {
  2170. newArr.push(...item.schedules)
  2171. })
  2172. if(this.patientStateVal == 1){
  2173. newArr.map(item => {
  2174. item.created_time = item.assessment_before_dislysis.created_time
  2175. })
  2176. newArr.sort(this.compare('created_time'))
  2177. }
  2178. if(this.org_id ==10579 || this.org_id == 0 || this.org_id ==10587 || this.org_id ==10571){
  2179. if(newArr!=null && newArr.length>0){
  2180. for(let i=0;i<newArr.length;i++){
  2181. newArr[i].sort =0
  2182. newArr[i].sort =newArr[i].device_number.sort
  2183. }
  2184. }
  2185. newArr.sort(function(a, b) {
  2186. return a.sort - b.sort;
  2187. });
  2188. }
  2189. // console.log('排序',newArr)
  2190. this.tableData = newArr
  2191. const name = this.$route.query.patient_name
  2192. this.tableData.map((item, index) => {
  2193. if (name == item.patient.name) {
  2194. // if (item.assessment_before_dislysis != null) {
  2195. // this.newTime = parseTime(item.assessment_before_dislysis.created_time, '{h}:{i}')
  2196. // }
  2197. setTimeout(() => {
  2198. this.$refs.tab.setCurrentRow(this.tableData[index])
  2199. }, 10)
  2200. }
  2201. })
  2202. } else if (this.activeName == 'second') {
  2203. for (let i = 0; i < patientArr.length; i++) {
  2204. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2205. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
  2206. // 删除元素后改变i的值
  2207. patientArr[i].schedules.splice(j--, 1)
  2208. }
  2209. }
  2210. }
  2211. let arr1 = []
  2212. // let patientArr =
  2213. if (this.patientStateVal == 0) {
  2214. arr1 = patientArr
  2215. } else if (this.patientStateVal == 1) {
  2216. let arr = []
  2217. arr = patientArr
  2218. for (let i = 0; i < arr.length; i++) {
  2219. for (let j = 0; j < arr[i].schedules.length; j++) {
  2220. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis == null || (arr[i].schedules[j].assessment_before_dislysis.weight_before == '' && arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure == '' && arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure == ''))) {
  2221. // 删除元素后改变i的值
  2222. arr[i].schedules.splice(j--, 1)
  2223. }
  2224. }
  2225. }
  2226. arr1 = arr
  2227. } else if (this.patientStateVal == 2) {
  2228. let arr = []
  2229. arr = patientArr
  2230. for (let i = 0; i < arr.length; i++) {
  2231. for (let j = 0; j < arr[i].schedules.length; j++) {
  2232. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].assessment_before_dislysis != null && (arr[i].schedules[j].assessment_before_dislysis.weight_before != 0 || arr[i].schedules[j].assessment_before_dislysis.diastolic_blood_pressure != 0 || arr[i].schedules[j].assessment_before_dislysis.systolic_blood_pressure != 0))) {
  2233. // 删除元素后改变i的值
  2234. arr[i].schedules.splice(j--, 1)
  2235. }
  2236. }
  2237. }
  2238. arr1 = arr
  2239. } else if (this.patientStateVal == 3) {
  2240. let arr = []
  2241. arr = patientArr
  2242. for (let i = 0; i < arr.length; i++) {
  2243. for (let j = 0; j < arr[i].schedules.length; j++) {
  2244. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1)) {
  2245. // 删除元素后改变i的值
  2246. arr[i].schedules.splice(j--, 1)
  2247. }
  2248. }
  2249. }
  2250. arr1 = arr
  2251. } else if (this.patientStateVal == 4) {
  2252. let arr = []
  2253. arr = patientArr
  2254. for (let i = 0; i < arr.length; i++) {
  2255. for (let j = 0; j < arr[i].schedules.length; j++) {
  2256. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2)) {
  2257. // 删除元素后改变i的值
  2258. arr[i].schedules.splice(j--, 1)
  2259. }
  2260. }
  2261. }
  2262. arr1 = arr
  2263. }
  2264. let arr2 = []
  2265. if (this.treatStateVal == 0) {
  2266. arr2 = JSON.parse(JSON.stringify(arr1))
  2267. } else if (this.treatStateVal == 2) {
  2268. let arr = []
  2269. arr = JSON.parse(JSON.stringify(arr1))
  2270. for (let i = 0; i < arr.length; i++) {
  2271. for (let j = 0; j < arr[i].schedules.length; j++) {
  2272. if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
  2273. // 删除元素后改变i的值
  2274. arr[i].schedules.splice(j--, 1)
  2275. }
  2276. }
  2277. }
  2278. arr2 = arr
  2279. } else if(this.treatStateVal == 3){
  2280. let arr = []
  2281. arr = JSON.parse(JSON.stringify(arr1))
  2282. for (let i = 0; i < arr.length; i++) {
  2283. for (let j = 0; j < arr[i].schedules.length; j++) {
  2284. if(arr[i].schedules[j].doctor_advice.length == 0){
  2285. arr[i].schedules.splice(j--, 1)
  2286. }
  2287. if(arr[i].schedules && arr[i].schedules[j] && arr[i].schedules[j].doctor_advice){
  2288. let sign = 0
  2289. arr[i].schedules[j].doctor_advice.map(item => {
  2290. if(item.check_state == 1){
  2291. sign++
  2292. }
  2293. })
  2294. if(sign == arr[i].schedules[j].doctor_advice.length && arr[i].schedules[j].doctor_advice.length > 0){
  2295. arr[i].schedules.splice(j--, 1)
  2296. }
  2297. }
  2298. }
  2299. }
  2300. arr2 = arr
  2301. }
  2302. let arr3 = []
  2303. if (this.scheduleStateVal == 0) {
  2304. arr3 = JSON.parse(JSON.stringify(arr2))
  2305. } else {
  2306. let arr = []
  2307. arr = JSON.parse(JSON.stringify(arr2))
  2308. for (let i = 0; i < arr.length; i++) {
  2309. for (let j = 0; j < arr[i].schedules.length; j++) {
  2310. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2311. // 删除元素后改变i的值
  2312. arr[i].schedules.splice(j--, 1)
  2313. }
  2314. }
  2315. }
  2316. arr3 = arr
  2317. }
  2318. let arr4 = []
  2319. if (this.zoneVal == 0) {
  2320. arr4 = JSON.parse(JSON.stringify(arr3))
  2321. } else {
  2322. let arr = []
  2323. arr = JSON.parse(JSON.stringify(arr3))
  2324. for (let i = 0; i < arr.length; i++) {
  2325. if (this.zoneVal != arr[i].zone_id) {
  2326. // 删除元素后改变i的值
  2327. arr.splice(i--, 1)
  2328. }
  2329. }
  2330. arr4 = arr
  2331. }
  2332. const newArr = []
  2333. arr4.map(item => {
  2334. newArr.push(...item.schedules)
  2335. })
  2336. if(this.patientStateVal == 1){
  2337. newArr.map(item => {
  2338. item.created_time = item.assessment_before_dislysis.created_time
  2339. })
  2340. newArr.sort(this.compare('created_time'))
  2341. }
  2342. if(this.org_id == 0 || this.org_id == 10579 || this.org_id ==10587){
  2343. if(newArr!=null && newArr.length>0){
  2344. for(let i=0;i<newArr.length;i++){
  2345. newArr[i].sort =0
  2346. newArr[i].sort =newArr[i].device_number.sort
  2347. }
  2348. }
  2349. newArr.sort(function(a, b) {
  2350. return a.sort - b.sort;
  2351. });
  2352. }
  2353. this.tableData1 = newArr
  2354. const name = this.$route.query.patient_name
  2355. this.tableData1.map((item, index) => {
  2356. if (name == item.patient.name) {
  2357. // if (item.assessment_before_dislysis != null) {
  2358. // this.newTime = parseTime(item.assessment_before_dislysis.created_time, '{h}:{i}')
  2359. // }
  2360. setTimeout(() => {
  2361. this.$refs.tab1.setCurrentRow(this.tableData1[index])
  2362. }, 10)
  2363. }
  2364. })
  2365. }
  2366. },
  2367. compare(property){
  2368. return function(a,b){
  2369. var value1 = a[property];
  2370. var value2 = b[property];
  2371. return value2 - value1;
  2372. }
  2373. },
  2374. getTime(date){
  2375. date = new Date(date * 1000)
  2376. var Y = date.getFullYear() + '-';
  2377. var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
  2378. var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
  2379. var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
  2380. var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
  2381. var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
  2382. let strDate = h + ':' + m;
  2383. return strDate;
  2384. },
  2385. getTimes(time) {
  2386. return uParseTime(time, '{y}-{m}-{d}')
  2387. },
  2388. refresh(){
  2389. this.requestDialysisSchedules()
  2390. },
  2391. websocketSend(data) {
  2392. try {
  2393. this.websocket.send(JSON.stringify(data))
  2394. } catch (error) {
  2395. this.showError = true;
  2396. this.showIndex = 4;
  2397. this.errorInfo = "网络异常,请稍后退出重试!";
  2398. }
  2399. },
  2400. websocketMess() {
  2401. this.websocket.onmessage = e => {
  2402. let res = JSON.parse(e.data);
  2403. // let res = re.data;
  2404. // console.log('res3333333333',res)
  2405. if(res.channel == 'queue/join'){
  2406. let timeType = null
  2407. if(this.scheduleStateVal == 1){
  2408. timeType = 1
  2409. }else if(this.scheduleStateVal == 2){
  2410. timeType = 2
  2411. }else{
  2412. if(new Date().getHours() < 10){
  2413. timeType = 1
  2414. }else if(new Date().getHours() >= 10){
  2415. timeType = 2
  2416. }
  2417. }
  2418. let fisrtQueueInfo = []
  2419. this.newFisrtQueueInfo = res.data.fisrtQueueInfo
  2420. this.queueConfig = res.data.queueConfig
  2421. if(res.data.fisrtQueueInfo != null){
  2422. if(timeType == 1){
  2423. fisrtQueueInfo = res.data.fisrtQueueInfo.morning
  2424. if(fisrtQueueInfo.create_time){
  2425. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2426. }
  2427. }else if(timeType == 2){
  2428. fisrtQueueInfo = res.data.fisrtQueueInfo.afternoon
  2429. if(fisrtQueueInfo.create_time){
  2430. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2431. }
  2432. }
  2433. }
  2434. this.fisrtQueueInfo = fisrtQueueInfo
  2435. // this.fisrtQueueInfo = res.data.fisrtQueueInfo
  2436. let arr = res.data.patientQueueList.data
  2437. let waitingCalledArr = []
  2438. let calledArr = []
  2439. arr.map(item => {
  2440. if(item.status == 1){
  2441. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2442. waitingCalledArr.push(item)
  2443. }else if(item.status == 2){
  2444. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2445. calledArr.push(item)
  2446. }
  2447. })
  2448. this.waitingCalled = waitingCalledArr
  2449. this.called = calledArr
  2450. }else if(res.channel == 'allQueueList'){
  2451. let arr = res.data.queue_list.data
  2452. let waitingCalledArr = []
  2453. let calledArr = []
  2454. arr.map(item => {
  2455. if(item.status == 1){
  2456. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2457. waitingCalledArr.push(item)
  2458. }else if(item.status == 2){
  2459. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2460. calledArr.push(item)
  2461. }
  2462. })
  2463. this.waitingCalled = waitingCalledArr
  2464. this.called = calledArr
  2465. }else if(res.channel == 'patientCallInfo'){
  2466. res.data.patientInfo.create_time = moment(res.data.patientInfo.create_time * 1000).format('HH:mm')
  2467. this.fisrtQueueInfo = res.data.patientInfo
  2468. }else if(res.channel == 'fisrtQueueInfo'){
  2469. if(this.scheduleStateVal == 1){
  2470. timeType = 1
  2471. }else if(this.scheduleStateVal == 2){
  2472. timeType = 2
  2473. }else{
  2474. if(new Date().getHours() < 10){
  2475. timeType = 1
  2476. }else if(new Date().getHours() >= 10){
  2477. timeType = 2
  2478. }
  2479. }
  2480. let fisrtQueueInfo = []
  2481. this.newFisrtQueueInfo = res.data.patientInfo
  2482. if(res.data.patientInfo != null){
  2483. if(timeType == 1){
  2484. fisrtQueueInfo = res.data.patientInfo.morning
  2485. if(fisrtQueueInfo.create_time){
  2486. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2487. }
  2488. }else if(timeType == 2){
  2489. fisrtQueueInfo = res.data.patientInfo.afternoon
  2490. if(fisrtQueueInfo.create_time){
  2491. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2492. }
  2493. }
  2494. }
  2495. this.fisrtQueueInfo = fisrtQueueInfo
  2496. }
  2497. }
  2498. },
  2499. call(){
  2500. // console.log('patient_id',patient_id)
  2501. let org_id = parseInt(sessionStorage.getItem("org_id"));
  2502. let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
  2503. axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
  2504. // let patientArr = res.data.queue_list.data
  2505. // this.patientArr = patientArr
  2506. // this.$emit('child-event',this.patientArr)
  2507. if(res.data.data.patientInfo == null){
  2508. this.$message.error('已经是最后一位了');
  2509. return
  2510. }
  2511. if(res.data.code == 200){
  2512. this.$message({
  2513. message: res.data.msg,
  2514. type: 'success'
  2515. });
  2516. this.curPatient = res.data.data.patientInfo
  2517. let arr = []
  2518. let newArr = []
  2519. this.zone_schedules.map(item => {
  2520. newArr.push(...item.schedules)
  2521. })
  2522. newArr.map(item => {
  2523. arr.push(item.patient_id)
  2524. })
  2525. if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
  2526. this.showView = false
  2527. this.$router.push({
  2528. path: '/dialysis/details',
  2529. query: {
  2530. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2531. date: this.$route.query.date,
  2532. patient_name: res.data.data.patientInfo.patient_name,
  2533. mode_id:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
  2534. curPatientTime:res.data.data.patientInfo.create_time,
  2535. showView:false
  2536. }
  2537. })
  2538. }else {
  2539. this.showView = true
  2540. this.$router.push({
  2541. path: '/dialysis/details',
  2542. query: {
  2543. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2544. date: this.$route.query.date,
  2545. patient_name: res.data.data.patientInfo.patient_name,
  2546. mode_id:this.$route.query.mode_id,
  2547. curPatientTime:res.data.data.patientInfo.create_time,
  2548. showView:true
  2549. }
  2550. })
  2551. }
  2552. }
  2553. })
  2554. },
  2555. next(){
  2556. let schedule_type = null
  2557. if(new Date().getHours() < 11){
  2558. schedule_type = 1
  2559. }else {
  2560. schedule_type = 2
  2561. }
  2562. let org_id = parseInt(sessionStorage.getItem("org_id"));
  2563. let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
  2564. axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
  2565. if(res.data.data.patientInfo == null){
  2566. this.$message.error('已经是最后一位了');
  2567. return
  2568. }
  2569. if(res.data.code == 200){
  2570. this.$message({
  2571. message: res.data.msg,
  2572. type: 'success'
  2573. });
  2574. this.curPatient = res.data.data.patientInfo
  2575. let arr = []
  2576. let newArr = []
  2577. this.zone_schedules.map(item => {
  2578. newArr.push(...item.schedules)
  2579. })
  2580. newArr.map(item => {
  2581. arr.push(item.patient_id)
  2582. })
  2583. if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
  2584. this.showView = false
  2585. this.$router.push({
  2586. path: '/dialysis/details',
  2587. query: {
  2588. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2589. date: this.$route.query.date,
  2590. patient_name: res.data.data.patientInfo.patient_name,
  2591. mode_id:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
  2592. curPatientTime:res.data.data.patientInfo.create_time,
  2593. showView:false
  2594. }
  2595. })
  2596. }else {
  2597. this.showView = true
  2598. this.$router.push({
  2599. path: '/dialysis/details',
  2600. query: {
  2601. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2602. date: this.$route.query.date,
  2603. patient_name: res.data.data.patientInfo.patient_name,
  2604. mode_id:this.$route.query.mode_id,
  2605. curPatientTime:res.data.data.patientInfo.create_time,
  2606. showView:true
  2607. }
  2608. })
  2609. }
  2610. }
  2611. })
  2612. },
  2613. getDates(time){
  2614. return moment(time * 1000).format('HH:mm:ss')
  2615. },
  2616. printAction: function() {
  2617. const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
  2618. const style1 = '@page {margin-top:10px;} @media print{}'
  2619. printJS({
  2620. printable: 'print_content',
  2621. type: 'html',
  2622. documentTitle: '',
  2623. style: style1,
  2624. scanStyles: false
  2625. })
  2626. },
  2627. getInitPrintData(){
  2628. const loading = this.$loading({
  2629. lock: true,
  2630. text: 'Loading',
  2631. spinner: 'el-icon-loading',
  2632. background: 'rgba(0, 0, 0, 0.7)'
  2633. })
  2634. var params = {
  2635. patient_id:this.$route.query.patient_id,
  2636. record_date:this.$route.query.date,
  2637. }
  2638. getInitPrintData(params).then(response=>{
  2639. if(response.data.state == 1){
  2640. var list = response.data.data.list
  2641. console.log("listwowoowowowowow",list)
  2642. var assessmentAfterDislysis = response.data.data.assessmentAfterDislysis
  2643. this.printList = list
  2644. this.assessmentAfterDislysis = assessmentAfterDislysis
  2645. if(this.org_id == 0 || this.org_id ==10469){
  2646. this.centerDialogVisible = true
  2647. }else{
  2648. this.startVisibility = true
  2649. }
  2650. loading.close()
  2651. }
  2652. })
  2653. },
  2654. getModeId(val){
  2655. var name =""
  2656. if(val == 1){
  2657. name ="HD"
  2658. }
  2659. if(val == 2){
  2660. name ="HDF"
  2661. }
  2662. if(val == 3){
  2663. name ="HD+HP"
  2664. }
  2665. if(val == 4){
  2666. name ="HP"
  2667. }
  2668. if(val == 5){
  2669. name ="HF"
  2670. }
  2671. if(val == 6){
  2672. name ="SCUF"
  2673. }
  2674. if(val == 7){
  2675. name ="IUF"
  2676. }
  2677. if(val == 8){
  2678. name ="IUF"
  2679. }
  2680. if(val == 9){
  2681. name ="HFHD+HP"
  2682. }
  2683. if(val == 10){
  2684. name ="HFHD+HP"
  2685. }
  2686. if(val == 11){
  2687. name ="HFR"
  2688. }
  2689. if(val == 12){
  2690. name ="HDF+HP"
  2691. }
  2692. if(val == 13){
  2693. name ="CRRT"
  2694. }
  2695. if(val == 14){
  2696. name ="腹水回输"
  2697. }
  2698. if(val == 19){
  2699. name ="IUF+HD"
  2700. }
  2701. if(val == 20){
  2702. name ="UF"
  2703. }
  2704. if(val == 21){
  2705. name ="HD+"
  2706. }
  2707. if(val == 22){
  2708. name ="血浆胆红素吸附+HDF"
  2709. }
  2710. if(val == 23){
  2711. name ="血浆胆红素吸附"
  2712. }
  2713. if(val == 24){
  2714. name ="I-HDF"
  2715. }
  2716. if(val == 25){
  2717. name ="HD高通"
  2718. }
  2719. if(val == 26){
  2720. name ="CVVH"
  2721. }
  2722. if(val == 27){
  2723. name ="CVVHD"
  2724. }
  2725. if(val == 28){
  2726. name ="CVVHDF"
  2727. }
  2728. if(val == 29){
  2729. name ="PE"
  2730. }
  2731. if(val == 30){
  2732. name ="血浆胆红素吸附+HP"
  2733. }
  2734. if(val == 31){
  2735. name ="HPD"
  2736. }
  2737. if(val == 32){
  2738. name ="HDP"
  2739. }
  2740. if(val == 33){
  2741. name ="HDP"
  2742. }
  2743. if(val == 33){
  2744. name ="HFD"
  2745. }
  2746. if(val == 34){
  2747. name ="HDF100"
  2748. }
  2749. if(val == 35){
  2750. name ="HDF600"
  2751. }
  2752. if(val == 36){
  2753. name ="HDF800"
  2754. }
  2755. if(val == 37){
  2756. name ="HDF1000"
  2757. }
  2758. return name
  2759. },
  2760. getBloodAccess(id){
  2761. var name = ""
  2762. for(let i=0;i<this.blood_access_part_opera.length;i++){
  2763. if(id == this.blood_access_part_opera[i].id){
  2764. name = this.blood_access_part_opera[i].name
  2765. }
  2766. }
  2767. return name
  2768. },
  2769. // 透析历史
  2770. history_click(){
  2771. this.getPatientDialysisRecordList()
  2772. // this.getmonth(this.time_value2)
  2773. // console.log('time_value',moment(this.time_value2).format('YYYY-MM-DD'));
  2774. },
  2775. getPatientDialysisRecordList(){
  2776. var params= {
  2777. patient_id:this.$route.query.patient_id,
  2778. start_time:this.start_time,
  2779. end_time:this.end_time,
  2780. }
  2781. getPatientDialysisRecordList(params).then(response=>{
  2782. if(response.data.state == 1){
  2783. var list = response.data.data.list
  2784. this.historyclick =true
  2785. if(list!=null && list.length>0){
  2786. for(let i=0;i<list.length;i++){
  2787. list[i].order_date =""
  2788. if(this.org_id ==9538 || this.org_id ==10101||this.org_id ==10353){
  2789. list[i].order_date = this.getOrderTime(list[i].dialysis_date)
  2790. list[i].schedual_type_name= list[i].schedual_type
  2791. }else{
  2792. list[i].order_date = this.getOrderTime(list[i].schedule_date)
  2793. list[i].schedual_type_name= list[i].schedule_type
  2794. }
  2795. }
  2796. }
  2797. console.log("list------",list)
  2798. this.orderList = []
  2799. this.orderList = list
  2800. }
  2801. })
  2802. },
  2803. // 获取每个月的第一天和最后一天
  2804. getmonth(val){
  2805. // const months= new Date(val).getMonth()
  2806. // let startTime = moment().month(months).startOf('month').format('YYYY-MM-DD')
  2807. // // //某月最后一天
  2808. // let endTime = moment().month(months).endOf('month').format('YYYY-MM-DD')
  2809. // this.startTime = startTime
  2810. // this.endTime = endTime
  2811. // console.log('time_value333333',this.startTime,this.endTime);
  2812. },
  2813. getOrderTime(val){
  2814. if (val < 0) {
  2815. return "";
  2816. }
  2817. if (val == "") {
  2818. return "";
  2819. } else {
  2820. return uParseTime(val, "{y}-{m}-{d}");
  2821. }
  2822. },
  2823. viewDayWork(val){
  2824. console.log("val33333333333333",val)
  2825. var patient_id = this.$route.query.patient_id
  2826. var start_time = this.timestamp(this.start_time)
  2827. this.$router.push({
  2828. path: "/dialysis/details",
  2829. query: { patient_id:patient_id , date: start_time}
  2830. });
  2831. this.history_click = false
  2832. },
  2833. timestamp(start_time) {
  2834. // 使用 Date 对象和它的 getTime 方法将日期字符串转换为时间戳
  2835. return new Date(start_time).getTime()/1000 - 28800;
  2836. }
  2837. },
  2838. watch:{
  2839. time_value:{
  2840. handler(newValue,oldValue){
  2841. console.log("newValue----------",newValue)
  2842. // this.initData()
  2843. this.time_value = newValue
  2844. this.getmonth(this.time_value)
  2845. console.log('yyyyyyyyyyy',moment(this.time_value).format('YYYY-MM-DD'),moment(oldValue).format('YYYY-MM-DD'))
  2846. this.start_time = moment(this.time_value).format('YYYY-MM-DD')
  2847. this.end_time = moment(oldValue).format('YYYY-MM-DD')
  2848. }
  2849. }
  2850. }
  2851. }
  2852. </script>
  2853. <style style="stylesheet/scss" lang="scss" scoped>
  2854. .details-bg {
  2855. background: #fff;
  2856. margin: 0 15px;
  2857. }
  2858. .printForm {
  2859. .title {
  2860. font-size: 30px;
  2861. font-weight: 500;
  2862. text-align: center;
  2863. line-height: 60px;
  2864. }
  2865. .info {
  2866. ul {
  2867. display: -webkit-box;
  2868. display: -moz-box;
  2869. display: -ms-flexbox;
  2870. display: -webkit-flex;
  2871. display: flex;
  2872. align-items: center;
  2873. -moz-box-sizing: border-box;
  2874. -webkit-box-sizing: border-box;
  2875. -o-box-sizing: border-box;
  2876. -ms-box-sizing: border-box;
  2877. box-sizing: border-box;
  2878. -webkit-justify-content: space-around;
  2879. -moz-justify-content: space-around;
  2880. -ms-justify-content: space-around;
  2881. -o-justify-content: space-around;
  2882. justify-content: space-around;
  2883. li {
  2884. display: flex;
  2885. box-sizing: border-box;
  2886. justify-content: space-around;
  2887. // .name {
  2888. // }
  2889. .InputBox {
  2890. padding: 0;
  2891. border: none;
  2892. border-bottom: 1px #e5e5e5 solid;
  2893. width: 60px;
  2894. outline: none;
  2895. }
  2896. }
  2897. }
  2898. }
  2899. .printTable {
  2900. tr {
  2901. padding: 2px;
  2902. th {
  2903. padding: 6px 4px;
  2904. }
  2905. td {
  2906. padding: 6px 4px;
  2907. }
  2908. }
  2909. }
  2910. }
  2911. .loadingBox{
  2912. display: flex;
  2913. .patientBox{
  2914. background: #fff;
  2915. .touxi_cishu{
  2916. display: inline-block;
  2917. border: 1px solid #409eff;
  2918. width: 30px;
  2919. text-align: center;
  2920. border-radius: 10px;
  2921. }
  2922. }
  2923. .tip1{
  2924. background: #4fc7cb;
  2925. border-radius: 5px;
  2926. text-align: center;
  2927. font-size: 12px;
  2928. display: inline-block;
  2929. width: 60px;
  2930. // height: 23px;
  2931. // line-height: 23px;
  2932. color: #fff;
  2933. }
  2934. .tip2{
  2935. background: #ee8556;
  2936. border-radius: 5px;
  2937. text-align: center;
  2938. font-size: 12px;
  2939. display: inline-block;
  2940. width: 60px;
  2941. // height: 23px;
  2942. // line-height: 23px;
  2943. color: #fff;
  2944. }
  2945. .tip3{
  2946. background: #409eff;
  2947. border-radius: 5px;
  2948. text-align: center;
  2949. font-size: 12px;
  2950. display: inline-block;
  2951. width: 60px;
  2952. color: #fff;
  2953. }
  2954. .tip4{
  2955. background: #a8b3ba;
  2956. border-radius: 5px;
  2957. text-align: center;
  2958. font-size: 12px;
  2959. display: inline-block;
  2960. width: 60px;
  2961. color: #fff;
  2962. }
  2963. .tip5{
  2964. background: #7bce91;
  2965. border-radius: 5px;
  2966. text-align: center;
  2967. font-size: 12px;
  2968. display: inline-block;
  2969. width: 60px;
  2970. color: #fff;
  2971. }
  2972. }
  2973. .history{
  2974. .touxipl{
  2975. display: inline-block;
  2976. width: 60%;
  2977. border-bottom:1px solid gray;
  2978. }
  2979. }
  2980. </style>
  2981. <style lang="scss">
  2982. .loadingBox{
  2983. .el-loading-spinner{
  2984. top:10%;
  2985. }
  2986. .el-button--small, .el-button--small.is-round{
  2987. padding:9px 10px;
  2988. }
  2989. .el-date-editor{
  2990. .el-input__inner{
  2991. padding-right:0px;
  2992. }
  2993. }
  2994. .el-table td, .el-table th{
  2995. text-align: center;
  2996. }
  2997. .el-table td{
  2998. height: 44px !important;
  2999. }
  3000. .el-table .cell{
  3001. padding: 0;
  3002. }
  3003. }
  3004. .history{
  3005. .el-dialog{
  3006. .el-dialog__header{
  3007. padding: 10px 10px 10px;
  3008. background-color: #409eff;
  3009. .el-dialog__title{
  3010. color: white;
  3011. font-size: 15px;
  3012. }
  3013. .el-dialog__headerbtn{
  3014. position: absolute;
  3015. top: 12px;
  3016. right: 20px;
  3017. .el-dialog__close{
  3018. color: white;
  3019. }
  3020. }
  3021. }
  3022. .el-dialog__body{
  3023. padding: 15px 10px
  3024. }
  3025. }
  3026. }
  3027. .Calendar{
  3028. color: #000 !important;
  3029. width: 100% !important;
  3030. max-width: 839px !important;
  3031. .wh_content_all{
  3032. background-color: #fff;
  3033. .wh_top_changge{
  3034. .wh_jiantou1{
  3035. border-top: 2px solid #000;
  3036. border-left: 2px solid #000;
  3037. }
  3038. .wh_content_li{
  3039. color: #000;
  3040. }
  3041. .wh_jiantou2{
  3042. border-top: 2px solid #000;
  3043. border-right: 2px solid #000;
  3044. }
  3045. }
  3046. .wh_content_item{
  3047. text-align: center;
  3048. color: #000 ;
  3049. height: 50px;
  3050. .wh_top_tag{
  3051. width: 100%;
  3052. height: 50px ;
  3053. line-height: 50px;
  3054. margin: 0;
  3055. display: flex;
  3056. justify-content: center;
  3057. align-items: center;
  3058. text-align: center
  3059. }
  3060. .wh_isToday{
  3061. border: 1px solid #409eff;
  3062. background: #409eff !important;
  3063. color: #fff;
  3064. border-radius: 0;
  3065. }
  3066. .wh_chose_day{
  3067. border: 1px solid #409eff;
  3068. background: #fff !important;
  3069. color: #409eff;
  3070. border-radius: 0;
  3071. }
  3072. .wh_item_date{
  3073. width: 100%;
  3074. height: 50px;
  3075. line-height: 50px;
  3076. margin: 0;
  3077. display: flex;
  3078. justify-content: center;
  3079. align-items: center;
  3080. }
  3081. .wh_item_date:hover {
  3082. background: #fff;
  3083. cursor: pointer;
  3084. }
  3085. }
  3086. }
  3087. }
  3088. </style>