index.vue 117KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194
  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>
  1164. <el-calendar v-model="time_value" >
  1165. <template
  1166. slot="dateCell"
  1167. slot-scope="{date, data}" @click="viewDayWork(data)">
  1168. <P v-if="data.day.split('-').slice(1).join('-')=='03-06'"
  1169. style="background: red;color: white;text-align: center;">
  1170. HD
  1171. </P>
  1172. <p :class="data.isSelected ? 'is-selected' : ''" style="text-align: center;">
  1173. {{ data.day.split('-').slice(2).join('-') }} {{ data.isSelected ? '✔️' : ''}}<br/>
  1174. <span v-if="data.day.split('-').slice(1).join('-')=='03-06'">上午 门诊</span>
  1175. </p>
  1176. </template>
  1177. </el-calendar>
  1178. </div>
  1179. </div>
  1180. </div>
  1181. </el-dialog>
  1182. </div>
  1183. </template>
  1184. <script>
  1185. const moment = require('moment')
  1186. import axios from 'axios'
  1187. import NavIgation from './NavIgation'
  1188. import BasicInfor from './BasicInfor'
  1189. import DialysisPrescription from './DialysisPrescription'
  1190. import PastData from './pastData'
  1191. import AcceptsAssessment from './acceptsAssessment'
  1192. import AssessmentBefore from './assessmentBefore'
  1193. import StatOrder from './statOrder'
  1194. import DialysisComputer from './dialysisComputer'
  1195. import DoubleCheck from './doubleCheck'
  1196. import DialysisMonitoring from './dialysisMonitoring'
  1197. import DialysisOff from './dialysisOff'
  1198. import AssessmentAfter from './assessmentAfter'
  1199. import TreatmentOf from './treatmentOf'
  1200. import OperationStaff from './operationStaff'
  1201. import {
  1202. getDialysisScheduleDetail,
  1203. getLongAdviceTwo,
  1204. getDialysisRecordInitData,
  1205. getDialysisSchedules,
  1206. getInitPrintData,
  1207. getPatientDialysisRecordList
  1208. } from '@/api/dialysis_record'
  1209. import { getDataConfig } from '@/utils/data'
  1210. import { parseTime } from '@/utils'
  1211. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  1212. import print from 'print-js'
  1213. import { uParseTime } from '@/utils/tools'
  1214. import Calendar from 'vue-calendar-component'
  1215. export default {
  1216. name: 'index',
  1217. components: {
  1218. NavIgation,
  1219. BasicInfor,
  1220. DialysisPrescription,
  1221. PastData,
  1222. AcceptsAssessment,
  1223. AssessmentBefore,
  1224. StatOrder,
  1225. DialysisComputer,
  1226. DoubleCheck,
  1227. DialysisMonitoring,
  1228. DialysisOff,
  1229. AssessmentAfter,
  1230. TreatmentOf,
  1231. OperationStaff,
  1232. BreadCrumb,
  1233. Calendar,//日历
  1234. },
  1235. data() {
  1236. return {
  1237. crumbs: [
  1238. { path: false, name: '透析管理' },
  1239. { path: false, name: '透析记录' },
  1240. { path: false, name: '透析单' }
  1241. ],
  1242. dialogFormVisible: false,
  1243. orders: false,
  1244. loading: false,
  1245. cishu_dialogVisible:false,//
  1246. patient_id: 0,
  1247. date: 0,
  1248. dialysis_date:0,
  1249. longAdvices: [],
  1250. waitUploadAdvices: [],
  1251. is_open: 0,
  1252. targetAdvices: [],
  1253. patient: { id: 0 }, // 患者信息
  1254. schedual: { id: 0 }, // 患者排班信息
  1255. prescription: { id: 0 }, // 透析处方
  1256. solution: { id: 0 }, // 透析方案
  1257. system_prescribe: { id: 0 },
  1258. receiver_treatment_access: { id: 0 }, // 接诊评估
  1259. predialysis_evaluation: { id: 0 }, // 透前评估
  1260. doctor_advices: [], // 临时医嘱
  1261. double_check: { id: 0 }, // 双人核对
  1262. assessment_after_dislysis: { id: 0 }, // 透后评估
  1263. treatment_summary: { id: 0 }, // 治疗小结
  1264. monitor_records: [], // 透析监测
  1265. dialysis_order: { id: 0 }, // 透析记录
  1266. admin_users: [], // 系统用户列表
  1267. devices: [], // 设备
  1268. device_numbers: [], // 床位号
  1269. admin_user_map: {}, // {user_id: admin_user object}
  1270. device_map: {}, // {device_id: device}
  1271. device_number_map: {}, // {device_number_id: device_number}
  1272. niprocart_info: [],
  1273. jms_info: [],
  1274. fistula_needle_set_info: [],
  1275. fistula_needle_set_16_info: [],
  1276. hemoperfusion_info: [],
  1277. dialyser_sterilised_info: [],
  1278. filtryzer_info: [],
  1279. dialyzers_info: [],
  1280. injector_info: [],
  1281. bloodlines_info: [],
  1282. tubingHemodialysis_info: [],
  1283. safe_package_info: [],
  1284. aliquid_info: [],
  1285. config: {},
  1286. his_is_open:0,
  1287. is_advice_open:0,
  1288. lastPredialysisEvaluation: { id: 0 },
  1289. lastMonitorRecord: { id: 0 },
  1290. lastAssessmentAfterDislysis: { id: 0 },
  1291. lastDryWeightDislysis: { id: 0 },
  1292. lastAssessment:{id:0},
  1293. headNurses: [],
  1294. lastDialysisPrescribe: { id: 0 },
  1295. //
  1296. activeName: 'first',
  1297. selected_date: new Date(),
  1298. // search_input 和 search_keyword,使输入关键字时不会经常刷新 filtedSchedules
  1299. search_keyword: '', // 确定用于搜索的关键字
  1300. search_input: '', // 输入中的关键字
  1301. patient_state: [
  1302. { value: 0, label: '全部患者' },
  1303. { value: 1, label: '已签到' },
  1304. { value: 2, label: '未签到' },
  1305. { value: 3, label: '已上机' },
  1306. { value: 4, label: '已下机' }
  1307. ],
  1308. patientStateVal: 0,
  1309. treat_state: [
  1310. { value: 0, label: '全部治疗' },
  1311. { value: 1, label: '待开处方' },
  1312. { value: 2, label: '待开小结' },
  1313. { value: 3, label: '待医嘱核对' },
  1314. ],
  1315. treatStateVal: 0,
  1316. schedule_options: [
  1317. { value: 0, label: '全部班' },
  1318. { value: 1, label: '上午' },
  1319. { value: 2, label: '下午' },
  1320. { value: 3, label: '晚上' }
  1321. ],
  1322. scheduleStateVal: 0,
  1323. zone_options: [
  1324. { id: 0, text: '全部分区' }
  1325. ],
  1326. zoneVal: 0,
  1327. tableData: [],
  1328. tableData1: [],
  1329. arr: [],
  1330. newName: '',
  1331. newTime: '',
  1332. scheudle_mode:"",
  1333. showView:false,
  1334. curPatient:{},
  1335. queueConfig:{},
  1336. stockType:[],
  1337. preparestock:[],
  1338. his_doctor_advices:[],
  1339. startVisibility:false,
  1340. endVisibility:false,
  1341. centerDialogVisible:false,//新上机单弹窗
  1342. printList:[],
  1343. anticoagulants_confit:null,
  1344. printDate:'',
  1345. assessmentAfterDislysis:{},
  1346. lastOrder:{},
  1347. dryWeightList:[],
  1348. docList:[],
  1349. blood_access_part_opera: [],
  1350. Dialysis_patient:'',
  1351. Refresh:true,
  1352. norefresh:true,
  1353. historyclick:false,
  1354. time_value:new Date(),
  1355. startTime:'',
  1356. endTime:'',
  1357. }
  1358. },
  1359. created() {
  1360. this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
  1361. this.org_id = this.$store.getters.xt_user.org.id,
  1362. this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
  1363. if(this.$route.query.showView){
  1364. this.showView = this.$route.query.showView
  1365. }
  1366. if(sessionStorage.getItem("nameActive")){
  1367. this.activeName = sessionStorage.getItem("nameActive")
  1368. }
  1369. var patient_id = this.$route.query.patient_id
  1370. var date = this.$route.query.date
  1371. this.patient_id = patient_id
  1372. this.date = date
  1373. this.dialysis_date=
  1374. this.getScheduleDetail()
  1375. this.getLongAdvice()
  1376. this.selected_date = this.$route.query.date * 1000
  1377. var schedule_type_selected = this.$store.getters.schedule_type_selected
  1378. var zone_selected = this.$store.getters.zone_selected
  1379. var patient_state_selected = this.$store.getters.patient_state_selected
  1380. var treat_state_selected = this.$store.getters.treat_state_selected
  1381. var selected_date = this.$store.getters.selected_date
  1382. if (schedule_type_selected) {
  1383. this.scheduleStateVal = schedule_type_selected.schedule_type_selected
  1384. }
  1385. if (zone_selected) {
  1386. this.zoneVal = zone_selected.zone_selected
  1387. }
  1388. if (patient_state_selected) {
  1389. this.patientStateVal = patient_state_selected.patient_state_selected
  1390. }
  1391. if (treat_state_selected) {
  1392. this.treatStateVal = treat_state_selected.treat_state_selected
  1393. }
  1394. if (selected_date.selected_date) {
  1395. this.selected_date = selected_date.selected_date
  1396. }
  1397. this.initData = {
  1398. cmd: "queue/join",
  1399. data: {type:3,page:0,size:0},
  1400. };
  1401. this.websocketSend(this.initData)
  1402. this.getInitData()
  1403. this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
  1404. },
  1405. computed: {
  1406. websocket() {
  1407. return this.$store.state.user.websocket;
  1408. },
  1409. steps: function() {
  1410. var steps = [
  1411. { title: '透析处方', finish: false },
  1412. { title: '接诊评估', finish: false },
  1413. { title: '透前评估', finish: false },
  1414. { title: '临时医嘱', finish: false },
  1415. { title: '双人核对', finish: false },
  1416. { title: '透析上机', finish: false },
  1417. { title: '透析监测', finish: false },
  1418. { title: '透析下机', finish: false },
  1419. { title: '透后评估', finish: false },
  1420. { title: '治疗小结', finish: false }
  1421. ]
  1422. steps[0].finish = this.prescription.id && this.prescription.creater > 0
  1423. steps[1].finish = this.receiver_treatment_access.id > 0
  1424. // steps[2].finish =this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.creater > 0
  1425. steps[2].finish =this.predialysis_evaluation.id > 0
  1426. steps[3].finish = this.doctor_advices.length > 0
  1427. steps[5].finish = this.dialysis_order.id > 0
  1428. steps[7].finish =
  1429. this.dialysis_order.id > 0 && this.dialysis_order.stage == 2
  1430. steps[4].finish =
  1431. this.double_check.id > 0 &&
  1432. this.double_check.creater > 0 &&
  1433. this.double_check.modifier > 0
  1434. steps[6].finish = this.monitor_records.length > 0
  1435. // steps[8].finish = this.assessment_after_dislysis.id > 0 && this.assessment_after_dislysis.creater > 0
  1436. steps[8].finish = this.assessment_after_dislysis.id > 0
  1437. steps[9].finish = this.treatment_summary.id > 0
  1438. return steps
  1439. },
  1440. filtedSchedules: function() {
  1441. var search_keyword = this.search_keyword
  1442. if (search_keyword.length > 0) {
  1443. var schedules = []
  1444. for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1445. const scheduleInfo = this.zone_schedules[o_i]
  1446. var originSchedules = scheduleInfo.schedules
  1447. if (originSchedules.length == 0) {
  1448. continue
  1449. }
  1450. var filtedSchedules = []
  1451. for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1452. const schedule = originSchedules[s_i]
  1453. if ((schedule.patient.name.indexOf(search_keyword) != -1) || (schedule.patient.first_letter.indexOf(search_keyword) != -1)) {
  1454. filtedSchedules.push(schedule)
  1455. // break
  1456. }
  1457. }
  1458. if (filtedSchedules.length > 0) {
  1459. schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1460. }
  1461. }
  1462. return schedules
  1463. }
  1464. // var zone_selected = this.zoneVal
  1465. // var timetype_selected = this.scheduleStateVal
  1466. // if ((zone_selected == 0 && timetype_selected == 0) || this.zone_options.length <= 1) {
  1467. // var schedules = []
  1468. // for (let index = 0; index < this.zone_schedules.length; index++) {
  1469. // const scheduleInfo = this.zone_schedules[index]
  1470. // if (scheduleInfo.schedules.length != 0) {
  1471. // schedules.push(scheduleInfo)
  1472. // }
  1473. // }
  1474. // return schedules
  1475. // }
  1476. // var schedules = []
  1477. // for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
  1478. // const scheduleInfo = this.zone_schedules[o_i]
  1479. // if (zone_selected == scheduleInfo.zone_id && timetype_selected == 0) {
  1480. // if (scheduleInfo.schedules.length == 0) {
  1481. // return []
  1482. // } else {
  1483. // return [scheduleInfo]
  1484. // }
  1485. // }
  1486. // var originSchedules = scheduleInfo.schedules
  1487. // if (originSchedules.length == 0) {
  1488. // continue
  1489. // }
  1490. // var filtedSchedules = []
  1491. // for (let s_i = 0; s_i < originSchedules.length; s_i++) {
  1492. // const schedule = originSchedules[s_i]
  1493. // if (zone_selected != 0) {
  1494. // if (zone_selected == schedule.device_number.zone.id) {
  1495. // if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
  1496. // filtedSchedules.push(schedule)
  1497. // }
  1498. // }
  1499. // } else {
  1500. // if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
  1501. // filtedSchedules.push(schedule)
  1502. // }
  1503. // }
  1504. // }
  1505. // if (filtedSchedules.length > 0) {
  1506. // schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
  1507. // }
  1508. // }
  1509. // return schedules
  1510. }
  1511. },
  1512. beforeMount() {
  1513. if (this.websocket) {
  1514. if (this.websocket.readyState == 1) {
  1515. console.log('执行1')
  1516. this.websocketMess();
  1517. } else {
  1518. setTimeout(() => {
  1519. console.log('执行2')
  1520. this.websocketMess();
  1521. }, 1000);
  1522. }
  1523. } else {
  1524. setTimeout(() => {
  1525. if (this.websocket) {
  1526. console.log('执行3')
  1527. this.websocketMess();
  1528. } else {
  1529. setTimeout(() => {
  1530. console.log('执行4')
  1531. this.websocketMess();
  1532. }, 1000);
  1533. }
  1534. }, 1000);
  1535. }
  1536. },
  1537. mounted() {
  1538. const timer = setInterval(() => {
  1539. // this.getInitData();
  1540. this.requestDialysisSchedules()
  1541. }, 1000 * 30)
  1542. // 通过$once来监听定时器,在beforeDestroy钩子可以被清除。
  1543. this.$once('hook:beforeDestroy', () => {
  1544. clearInterval(timer)
  1545. })
  1546. let obj = {
  1547. cmd: "queue/join",
  1548. data: {type:3,page:0,size:0},
  1549. };
  1550. this.websocketSend(obj)
  1551. // this.getmonth(this.time_value)
  1552. // this.handlePick(this.time_value)
  1553. },
  1554. beforeDestroy(){
  1555. let unObj = {
  1556. cmd: "queue/unjoin",
  1557. data: {type:3},
  1558. };
  1559. this.websocketSend(unObj)
  1560. },
  1561. methods: {
  1562. // 透析次数
  1563. chishuclick(row){
  1564. this.cishu_dialogVisible=true
  1565. console.log('ddddddd',row);
  1566. this.Dialysis_patient=row
  1567. },
  1568. getNewAge(UUserCard) {
  1569. if (UUserCard != null && UUserCard != '') {
  1570. // 获取年龄
  1571. var myDate = new Date()
  1572. var month = myDate.getMonth() + 1
  1573. var day = myDate.getDate()
  1574. var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
  1575. if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
  1576. age++
  1577. }
  1578. return age
  1579. }
  1580. },
  1581. adviceFunc() {
  1582. this.getScheduleDetail()
  1583. },
  1584. getLongAdvice() {
  1585. const params = {
  1586. patient_id: this.patient_id,
  1587. schedule_date:this.$route.query.date,
  1588. }
  1589. getLongAdviceTwo(params).then(rs => {
  1590. var resp = rs.data
  1591. if (resp.state == 1) {
  1592. console.log('vbnvnffvvvv',resp);
  1593. var status = parseInt(resp.data.status)
  1594. switch (status) {
  1595. case 2:
  1596. var totalAdvice = resp.data.advices
  1597. var longAdvicesTwo = resp.data.advices_two
  1598. var waitUploadAdvices = []
  1599. for (let i = 0; i < totalAdvice.length; i++) {
  1600. totalAdvice[i]['isCheck'] = 1
  1601. }
  1602. for (let i = 0; i < totalAdvice.length; i++) {
  1603. for (let a = 0; a < longAdvicesTwo.length; a++) {
  1604. if (
  1605. totalAdvice[i].template_id ==
  1606. longAdvicesTwo[a].template_id &&
  1607. totalAdvice[i].frequency_type ==
  1608. longAdvicesTwo[a].frequency_type
  1609. ) {
  1610. totalAdvice[i]['isCheck'] = 0
  1611. }
  1612. }
  1613. }
  1614. for (let i = 0; i < totalAdvice.length; i++) {
  1615. if (totalAdvice[i].isCheck == 1) {
  1616. waitUploadAdvices.push(totalAdvice[i])
  1617. }
  1618. }
  1619. this.is_open = resp.data.is_open_remind
  1620. if(this.his_is_open == 1){
  1621. this.is_open = 0
  1622. }
  1623. if(this.is_advice_open == 1){
  1624. this.is_open = 1
  1625. }
  1626. this.longAdvices = totalAdvice
  1627. console.log("长期医嘱汇总 u 公告让你😯23232322332",this.longAdvices)
  1628. this.waitUploadAdvices = waitUploadAdvices
  1629. break
  1630. }
  1631. } else {
  1632. this.$message.error(resp.msg)
  1633. }
  1634. })
  1635. },
  1636. assessmentAfterDislysisFunc: function(val) {
  1637. for (var index in val) {
  1638. this.$set(this.assessment_after_dislysis, index, val[index])
  1639. }
  1640. },
  1641. didDelMonitor(record_id) {
  1642. var mrl = this.monitor_records.length
  1643. for (let index = 0; index < mrl; index++) {
  1644. if (this.monitor_records[index].id == record_id) {
  1645. this.monitor_records.splice(index, 1)
  1646. break
  1647. }
  1648. }
  1649. },
  1650. getScheduleDetail: function() {
  1651. this.loading = true
  1652. var dateStr = parseTime(this.date, '{y}-{m}-{d}')
  1653. if(this.$route.query.showView == true){
  1654. this.loading = false
  1655. return
  1656. }
  1657. // console.log('kkkkkkk',dateStr);
  1658. this.doctor_advices = []
  1659. getDialysisScheduleDetail(this.patient_id, dateStr).then(rs => {
  1660. var resp = rs.data
  1661. if (resp.state == 1) {
  1662. var patient = resp.data.patient // 患者信息
  1663. var schedual = resp.data.schedual // 患者排班信息
  1664. console.log("排班22222222222",resp)
  1665. var prescription = resp.data.prescription // 透析处方
  1666. if (prescription != null) {
  1667. if (prescription.body_fluid == -2) {
  1668. prescription.body_fluid = 0
  1669. }
  1670. if(prescription.bilirubin_adsorption_column == 0){
  1671. prescription.bilirubin_adsorption_column = ""
  1672. }
  1673. if(prescription.plasma_separator == 0){
  1674. prescription.plasma_separator = ""
  1675. }
  1676. }
  1677. var solution = resp.data.solution // 透析方案
  1678. var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
  1679. var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
  1680. if (predialysis_evaluation != null) {
  1681. if (predialysis_evaluation.blood_access_part_id == -2) {
  1682. predialysis_evaluation.blood_access_part_id = 0
  1683. }
  1684. if(predialysis_evaluation.blood_pressure_during_dialysis == 0){
  1685. predialysis_evaluation.blood_pressure_during_dialysis = ""
  1686. }
  1687. }
  1688. var doctor_advices = resp.data.doctor_advices // 临时医嘱
  1689. var double_check = resp.data.double_check // 双人核对
  1690. var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
  1691. var treatment_summary = resp.data.treatment_summary // 治疗小结
  1692. var monitor_records = resp.data.monitor_records // 透析监测
  1693. var dialysis_order = resp.data.dialysis_order // 透析记录
  1694. var niprocart_info = resp.data.niprocart_info
  1695. var jms_info = resp.data.jms_info
  1696. var fistula_needle_set_info = resp.data.fistula_needle_set_info
  1697. var fistula_needle_set_16_info = resp.data.fistula_needle_set_16_info
  1698. var hemoperfusion_info = resp.data.hemoperfusion_info
  1699. var dialyser_sterilised_info = resp.data.dialyser_sterilised_info
  1700. var filtryzer_info = resp.data.filtryzer_info
  1701. var dialyzers_info = resp.data.dialyzers_info
  1702. var injector_info = resp.data.injector_info
  1703. var bloodlines_info = resp.data.bloodlines_info
  1704. var tubingHemodialysis_info = resp.data.tubingHemodialysis_info
  1705. var safe_package_info = resp.data.safe_package_info
  1706. var aliquid_info = resp.data.aliquid_info
  1707. var lastPredialysisEvaluation = resp.data.lastPredialysisEvaluation
  1708. if (lastPredialysisEvaluation != null) {
  1709. if (lastPredialysisEvaluation.blood_access_part_id == -2) {
  1710. lastPredialysisEvaluation.blood_access_part_id = 0
  1711. }
  1712. }
  1713. var lastMonitorRecord = resp.data.lastMonitorRecord
  1714. var lastAssessmentAfterDislysis = resp.data.lastAssessmentAfterDislysis
  1715. // if(lastAssessmentAfterDislysis.hypertenison!=""){
  1716. // lastAssessmentAfterDislysis.hypertenison = lastAssessmentAfterDislysis.hypertenison.toString()
  1717. // }
  1718. // if(lastAssessmentAfterDislysis.hypopiesia!=""){
  1719. // lastAssessmentAfterDislysis.hypopiesia = lastAssessmentAfterDislysis.hypopiesia.toString()
  1720. // }
  1721. var lastDialysisPrescribe = resp.data.lastDialysisPrescribe
  1722. var lastDryWeightDislysis = resp.data.lastDryWeightDislysis
  1723. var system_prescribe = resp.data.system_prescribe
  1724. var lastAssessment = resp.data.lastAssessment
  1725. var lastOrder = resp.data.lastOrder
  1726. this.lastOrder = lastOrder
  1727. this.$refs.nav.setLastRecord(
  1728. lastPredialysisEvaluation,
  1729. lastMonitorRecord,
  1730. lastAssessmentAfterDislysis,
  1731. lastDialysisPrescribe,
  1732. lastDryWeightDislysis,
  1733. schedual,
  1734. system_prescribe,
  1735. lastAssessment,
  1736. )
  1737. var headNurses = resp.data.headNurse
  1738. var config = resp.data.config
  1739. this.lastPredialysisEvaluation = lastPredialysisEvaluation
  1740. this.lastMonitorRecord = lastMonitorRecord
  1741. this.lastAssessmentAfterDislysis = lastAssessmentAfterDislysis
  1742. this.lastDialysisPrescribe = lastDialysisPrescribe
  1743. this.lastDryWeightDislysis = lastDryWeightDislysis
  1744. this.lastAssessment = lastAssessment
  1745. this.headNurses = headNurses
  1746. this.system_prescribe = system_prescribe
  1747. this.niprocart_info = []
  1748. this.jms_info = []
  1749. this.fistula_needle_set_info = []
  1750. this.fistula_needle_set_16_info = []
  1751. this.hemoperfusion_info = []
  1752. this.dialyser_sterilised_info = []
  1753. this.filtryzer_info = []
  1754. this.dialyzers_info = []
  1755. this.injector_info = []
  1756. this.bloodlines_info = []
  1757. this.tubingHemodialysis_info = []
  1758. this.safe_package_info = []
  1759. this.aliquid_info = []
  1760. this.niprocart_info = niprocart_info
  1761. this.jms_info = jms_info
  1762. this.fistula_needle_set_info = fistula_needle_set_info
  1763. this.fistula_needle_set_16_info = fistula_needle_set_16_info
  1764. this.hemoperfusion_info = hemoperfusion_info
  1765. this.dialyser_sterilised_info = dialyser_sterilised_info
  1766. this.filtryzer_info = filtryzer_info
  1767. this.dialyzers_info = dialyzers_info
  1768. this.injector_info = injector_info
  1769. this.bloodlines_info = bloodlines_info
  1770. this.tubingHemodialysis_info = tubingHemodialysis_info
  1771. this.safe_package_info = safe_package_info
  1772. this.aliquid_info = aliquid_info
  1773. this.config = config
  1774. // console.log('sdfdasfda4444444',this.patient);
  1775. this.patient = patient
  1776. console.log('bbbbbbbcccccccccc',this.patient);
  1777. this.schedual = schedual == null ? { id: 0 } : schedual
  1778. this.prescription = prescription == null ? { id: 0 } : prescription
  1779. this.solution = solution == null ? { id: 0 } : solution
  1780. this.receiver_treatment_access =
  1781. receiver_treatment_access == null
  1782. ? { id: 0 }
  1783. : receiver_treatment_access
  1784. this.predialysis_evaluation =
  1785. predialysis_evaluation == null ? { id: 0 } : predialysis_evaluation
  1786. this.doctor_advices = doctor_advices == null ? [] : doctor_advices
  1787. this.double_check = double_check == null ? { id: 0 } : double_check
  1788. this.assessment_after_dislysis =
  1789. assessment_after_dislysis == null
  1790. ? { id: 0 }
  1791. : assessment_after_dislysis
  1792. this.treatment_summary =
  1793. treatment_summary == null ? { id: 0 } : treatment_summary
  1794. this.monitor_records = monitor_records == null ? [] : monitor_records
  1795. this.dialysis_order =
  1796. dialysis_order == null ? { id: 0 } : dialysis_order
  1797. this.admin_users = resp.data.doctors
  1798. this.devices = resp.data.devices
  1799. this.device_numbers = resp.data.device_numbers
  1800. var his_doctor_advices = resp.data.his_advices
  1801. this.his_doctor_advices = his_doctor_advices
  1802. this.his_is_open = resp.data.is_open_config.is_open
  1803. this.is_advice_open = resp.data.is_advice_open.is_advice_open
  1804. var stockType = resp.data.stockType
  1805. this.stockType = stockType
  1806. this.dryWeightList = resp.data.dryWeightList
  1807. this.docList = resp.data.docList
  1808. console.log("doclist-----",this.docList)
  1809. var prepare = resp.data.prepare
  1810. if(prepare!=null){
  1811. this.preparestock = prepare
  1812. }else{
  1813. this.preparestock = []
  1814. }
  1815. for (let i = 0; i < this.doctor_advices.length; i++){
  1816. this.doctor_advices[i]['origin'] = 1
  1817. }
  1818. if (his_doctor_advices != null) {
  1819. for (let i = 0; i < his_doctor_advices.length; i++) {
  1820. his_doctor_advices[i]['origin'] = 2
  1821. his_doctor_advices[i]['way'] = 1
  1822. this.doctor_advices.push(his_doctor_advices[i])
  1823. }
  1824. }
  1825. const obj = {}
  1826. this.doctor_advices = this.doctor_advices.reduce((cur, next) => {
  1827. obj[next.id] ? '' : obj[next.id] = true && cur.push(next)
  1828. return cur
  1829. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  1830. var device_map = {}
  1831. for (let index = 0; index < this.devices.length; index++) {
  1832. const device = this.devices[index]
  1833. device_map[device.id] = device
  1834. }
  1835. this.device_map = device_map
  1836. var admin_map = {}
  1837. for (let index = 0; index < this.admin_users.length; index++) {
  1838. const admin = this.admin_users[index]
  1839. admin_map[admin.id] = admin
  1840. }
  1841. this.admin_user_map = admin_map
  1842. var device_number_map = {}
  1843. for (let index = 0; index < this.device_numbers.length; index++) {
  1844. const device_number = this.device_numbers[index]
  1845. device_number_map[device_number.id] = device_number
  1846. }
  1847. this.device_number_map = device_number_map
  1848. } else {
  1849. this.$message.error(resp.msg)
  1850. }
  1851. // 目标超滤量是否默认上次数据
  1852. if (this.lastDialysisPrescribe != null) {
  1853. delete this.lastDialysisPrescribe.target_ultrafiltration
  1854. }
  1855. if (this.solution != null) {
  1856. delete this.solution.target_ultrafiltration
  1857. }
  1858. if(this.predialysis_evaluation.id > 0){
  1859. this.newTime = parseTime(this.predialysis_evaluation.created_time, '{h}:{i}')
  1860. this.dialysis_date = parseTime(this.predialysis_evaluation.created_time, '{y}-{m}-{d}')
  1861. console.log('qqqqqqqqq',this.dialysis_date);
  1862. // this.dialysis_date=this.predialysis_evaluation.created_time
  1863. }
  1864. this.loading = false
  1865. })
  1866. },
  1867. printOrder() {
  1868. var xtdate = parseTime(this.date, '{y}-{m}-{d}')
  1869. this.$router.push(
  1870. '/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no +"&patient_id="+this.patient.id
  1871. )
  1872. },
  1873. printOrderOne(){
  1874. this.getInitPrintData()
  1875. },
  1876. // 日期
  1877. handleScheduleDateChange: function(index) {
  1878. this.treatStateVal = 0
  1879. this.patientStateVal = 0
  1880. this.zoneVal = 0
  1881. this.scheduleStateVal = 0
  1882. this.search_keyword = this.search_input = ''
  1883. // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
  1884. // zone: this.zone_selected,
  1885. // schedule_type: this.schedule_type_selected,
  1886. // schedule_date: this.selected_date,
  1887. // })
  1888. this.selected_date = index
  1889. this.$store.dispatch('SetSelectedDate', { selected_date: index })
  1890. this.requestDialysisSchedules()
  1891. },
  1892. // 初始化数据
  1893. getInitData: function() {
  1894. getDialysisRecordInitData().then(rs => {
  1895. var resp = rs.data
  1896. if (resp.state == 1) {
  1897. var zones = resp.data.zones
  1898. var schedules = resp.data.schedules
  1899. var zone_options = [{ id: 0, text: '全部分区' }]
  1900. for (let z_i = 0; z_i < zones.length; z_i++) {
  1901. const zone = zones[z_i]
  1902. zone_options.push({ id: zone.id, text: zone.name })
  1903. }
  1904. this.zone_options = zone_options
  1905. this.arr = this.processedDialysisSchedules(schedules, this.zone_options)
  1906. this.requestDialysisSchedules()
  1907. } else {
  1908. this.$message.error(resp.msg)
  1909. }
  1910. })
  1911. },
  1912. // 班次
  1913. handletimeType: function(index) {
  1914. this.scheduleStateVal = index
  1915. this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
  1916. this.search_keyword = this.search_input = ''
  1917. this.getData()
  1918. },
  1919. // 分区
  1920. handleZoneChange: function(index) {
  1921. this.zoneVal = index
  1922. this.$store.dispatch('SetZoneSelected', { zone_selected: index })
  1923. this.search_keyword = this.search_input = ''
  1924. this.getData()
  1925. },
  1926. // 患者状态
  1927. handleStateChange: function(index) {
  1928. this.patientStateVal = index
  1929. this.$store.dispatch('SetPatientStateSelected', { patient_state_selected: index })
  1930. this.search_keyword = this.search_input = ''
  1931. this.getData()
  1932. },
  1933. handleTreatChange: function(index) {
  1934. this.treatStateVal = index
  1935. this.$store.dispatch('SetTreatStateSelected', { treat_state_selected: index })
  1936. this.search_keyword = this.search_input = ''
  1937. this.getData()
  1938. },
  1939. processedDialysisSchedules: function(schedules, zone_options) {
  1940. var zoneMap = {}
  1941. var scheduleMap = {}
  1942. for (let z_i = 0; z_i < zone_options.length; z_i++) {
  1943. const zone = zone_options[z_i]
  1944. if (zone.id == 0) {
  1945. continue
  1946. }
  1947. scheduleMap[zone.id] = []
  1948. }
  1949. for (let index = 0; index < schedules.length; index++) {
  1950. const schedule = schedules[index]
  1951. scheduleMap[schedule.device_number.zone.id].push(schedule)
  1952. }
  1953. var zone_schedules = []
  1954. for (let index = 0; index < zone_options.length; index++) {
  1955. const zone = zone_options[index]
  1956. if (zone.id == 0) {
  1957. continue
  1958. }
  1959. var schedules = scheduleMap[zone.id]
  1960. zone_schedules.push({ zone_id: zone.id, zone_name: zone.text, schedules: schedules })
  1961. }
  1962. return zone_schedules
  1963. },
  1964. searchAction: function() {
  1965. this.search_keyword = this.search_input
  1966. this.scheduleStateVal = 0
  1967. this.zoneVal = 0
  1968. this.treatStateVal = 0
  1969. this.patientStateVal = 0
  1970. if (this.search_input != '') {
  1971. const arr = []
  1972. this.filtedSchedules.map(item => {
  1973. arr.push(...item.schedules)
  1974. })
  1975. if (this.activeName == 'first') {
  1976. this.tableData = arr
  1977. } else if (this.activeName == 'second') {
  1978. this.tableData1 = arr
  1979. }
  1980. } else {
  1981. this.getData()
  1982. }
  1983. },
  1984. requestDialysisSchedules: function() {
  1985. console.log("时间人民站起来了呃")
  1986. var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
  1987. getDialysisSchedules(ymd).then(rs => {
  1988. var resp = rs.data
  1989. if (resp.state == 1) {
  1990. var schedules = resp.data.schedules
  1991. // if(this.prescription!=null){
  1992. // for(let i=0;i<schedules.length;i++){
  1993. // if(this.prescription.patient_id == schedules[i].patient_id){
  1994. // this.prescription = schedules[i].prescription
  1995. // }
  1996. // }
  1997. // }
  1998. this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
  1999. const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  2000. if (this.activeName == 'first') {
  2001. for (let i = 0; i < patientArr.length; i++) {
  2002. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2003. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
  2004. // 删除元素后改变i的值
  2005. patientArr[i].schedules.splice(j--, 1)
  2006. }
  2007. }
  2008. }
  2009. } else if (this.activeName == 'second') {
  2010. for (let i = 0; i < patientArr.length; i++) {
  2011. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2012. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
  2013. // 删除元素后改变i的值
  2014. patientArr[i].schedules.splice(j--, 1)
  2015. }
  2016. }
  2017. }
  2018. }
  2019. const newArr = []
  2020. patientArr.map(item => {
  2021. newArr.push(...item.schedules)
  2022. })
  2023. // console.log("newArrwowowowowoowwowo",newArr)
  2024. this.tableData = newArr
  2025. this.getData()
  2026. } else {
  2027. this.$message.error(resp.msg)
  2028. }
  2029. })
  2030. },
  2031. changePatient(schedual) {
  2032. this.patient_id = schedual.patient_id
  2033. this.date = schedual.schedule_date
  2034. this.getScheduleDetail();
  2035. console.log('schedual',schedual);
  2036. //this.getLongAdvice();
  2037. var patient_id = schedual.patient_id
  2038. var date = schedual.schedule_date
  2039. this.$router.push({
  2040. path: '/dialysis/details',
  2041. query: {
  2042. patient_id: patient_id,
  2043. date: date,
  2044. patient_name: schedual.patient.name,
  2045. mode_id:schedual.mode_id
  2046. }
  2047. })
  2048. },
  2049. handleClick(type) {
  2050. sessionStorage.setItem('nameActive', type.name);
  2051. this.getData()
  2052. },
  2053. getData() {
  2054. let patientArr = []
  2055. patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
  2056. if (this.activeName == 'first') {
  2057. for (let i = 0; i < patientArr.length; i++) {
  2058. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2059. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order != null) {
  2060. // 删除元素后改变i的值
  2061. // console.log('候诊区', patientArr[i].schedules[j])
  2062. patientArr[i].schedules.splice(j--, 1)
  2063. }
  2064. }
  2065. }
  2066. let arr1 = []
  2067. if (this.patientStateVal == 0) {
  2068. arr1 = patientArr
  2069. } else if (this.patientStateVal == 1) {
  2070. let arr = []
  2071. arr = patientArr
  2072. for (let i = 0; i < arr.length; i++) {
  2073. for (let j = 0; j < arr[i].schedules.length; j++) {
  2074. 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 == ''))) {
  2075. // 删除元素后改变i的值
  2076. arr[i].schedules.splice(j--, 1)
  2077. }
  2078. }
  2079. }
  2080. // console.log('执行1', arr)
  2081. arr1 = arr
  2082. } else if (this.patientStateVal == 2) {
  2083. let arr = []
  2084. arr = patientArr
  2085. for (let i = 0; i < arr.length; i++) {
  2086. for (let j = 0; j < arr[i].schedules.length; j++) {
  2087. 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))) {
  2088. // 删除元素后改变i的值
  2089. arr[i].schedules.splice(j--, 1)
  2090. }
  2091. }
  2092. }
  2093. // console.log('执行2', arr)
  2094. arr1 = arr
  2095. }
  2096. let arr2 = []
  2097. if (this.treatStateVal == 0) {
  2098. arr2 = JSON.parse(JSON.stringify(arr1))
  2099. } else if (this.treatStateVal == 1) {
  2100. let arr = []
  2101. arr = JSON.parse(JSON.stringify(arr1))
  2102. for (let i = 0; i < arr.length; i++) {
  2103. for (let j = 0; j < arr[i].schedules.length; j++) {
  2104. 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)) {
  2105. // 删除元素后改变i的值
  2106. arr[i].schedules.splice(j--, 1)
  2107. }
  2108. }
  2109. }
  2110. arr2 = arr
  2111. } else if(this.treatStateVal == 3){
  2112. let arr = []
  2113. arr = JSON.parse(JSON.stringify(arr1))
  2114. for (let i = 0; i < arr.length; i++) {
  2115. for (let j = 0; j < arr[i].schedules.length; j++) {
  2116. if(arr[i].schedules[j].doctor_advice.length == 0){
  2117. arr[i].schedules.splice(j--, 1)
  2118. }
  2119. if(arr[i].schedules && arr[i].schedules[j] && arr[i].schedules[j].doctor_advice){
  2120. let sign = 0
  2121. arr[i].schedules[j].doctor_advice.map(item => {
  2122. if(item.check_state == 1){
  2123. sign++
  2124. }
  2125. })
  2126. if(sign == arr[i].schedules[j].doctor_advice.length && arr[i].schedules[j].doctor_advice.length > 0){
  2127. arr[i].schedules.splice(j--, 1)
  2128. }
  2129. }
  2130. }
  2131. }
  2132. arr2 = arr
  2133. }
  2134. let arr3 = []
  2135. if (this.scheduleStateVal == 0) {
  2136. arr3 = JSON.parse(JSON.stringify(arr2))
  2137. } else {
  2138. let arr = []
  2139. arr = JSON.parse(JSON.stringify(arr2))
  2140. for (let i = 0; i < arr.length; i++) {
  2141. for (let j = 0; j < arr[i].schedules.length; j++) {
  2142. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2143. // 删除元素后改变i的值
  2144. arr[i].schedules.splice(j--, 1)
  2145. }
  2146. }
  2147. }
  2148. arr3 = arr
  2149. }
  2150. let arr4 = []
  2151. if (this.zoneVal == 0) {
  2152. arr4 = JSON.parse(JSON.stringify(arr3))
  2153. } else {
  2154. let arr = []
  2155. arr = JSON.parse(JSON.stringify(arr3))
  2156. for (let i = 0; i < arr.length; i++) {
  2157. if (this.zoneVal != arr[i].zone_id) {
  2158. // 删除元素后改变i的值
  2159. arr.splice(i--, 1)
  2160. }
  2161. }
  2162. arr4 = arr
  2163. }
  2164. const newArr = []
  2165. arr4.map(item => {
  2166. newArr.push(...item.schedules)
  2167. })
  2168. if(this.patientStateVal == 1){
  2169. newArr.map(item => {
  2170. item.created_time = item.assessment_before_dislysis.created_time
  2171. })
  2172. newArr.sort(this.compare('created_time'))
  2173. }
  2174. if(this.org_id ==10579 || this.org_id == 0 || this.org_id ==10587 || this.org_id ==10571){
  2175. if(newArr!=null && newArr.length>0){
  2176. for(let i=0;i<newArr.length;i++){
  2177. newArr[i].sort =0
  2178. newArr[i].sort =newArr[i].device_number.sort
  2179. }
  2180. }
  2181. newArr.sort(function(a, b) {
  2182. return a.sort - b.sort;
  2183. });
  2184. }
  2185. // console.log('排序',newArr)
  2186. this.tableData = newArr
  2187. const name = this.$route.query.patient_name
  2188. this.tableData.map((item, index) => {
  2189. if (name == item.patient.name) {
  2190. // if (item.assessment_before_dislysis != null) {
  2191. // this.newTime = parseTime(item.assessment_before_dislysis.created_time, '{h}:{i}')
  2192. // }
  2193. setTimeout(() => {
  2194. this.$refs.tab.setCurrentRow(this.tableData[index])
  2195. }, 10)
  2196. }
  2197. })
  2198. } else if (this.activeName == 'second') {
  2199. for (let i = 0; i < patientArr.length; i++) {
  2200. for (let j = 0; j < patientArr[i].schedules.length; j++) {
  2201. if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
  2202. // 删除元素后改变i的值
  2203. patientArr[i].schedules.splice(j--, 1)
  2204. }
  2205. }
  2206. }
  2207. let arr1 = []
  2208. // let patientArr =
  2209. if (this.patientStateVal == 0) {
  2210. arr1 = patientArr
  2211. } else if (this.patientStateVal == 1) {
  2212. let arr = []
  2213. arr = patientArr
  2214. for (let i = 0; i < arr.length; i++) {
  2215. for (let j = 0; j < arr[i].schedules.length; j++) {
  2216. 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 == ''))) {
  2217. // 删除元素后改变i的值
  2218. arr[i].schedules.splice(j--, 1)
  2219. }
  2220. }
  2221. }
  2222. arr1 = arr
  2223. } else if (this.patientStateVal == 2) {
  2224. let arr = []
  2225. arr = patientArr
  2226. for (let i = 0; i < arr.length; i++) {
  2227. for (let j = 0; j < arr[i].schedules.length; j++) {
  2228. 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))) {
  2229. // 删除元素后改变i的值
  2230. arr[i].schedules.splice(j--, 1)
  2231. }
  2232. }
  2233. }
  2234. arr1 = arr
  2235. } else if (this.patientStateVal == 3) {
  2236. let arr = []
  2237. arr = patientArr
  2238. for (let i = 0; i < arr.length; i++) {
  2239. for (let j = 0; j < arr[i].schedules.length; j++) {
  2240. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 1)) {
  2241. // 删除元素后改变i的值
  2242. arr[i].schedules.splice(j--, 1)
  2243. }
  2244. }
  2245. }
  2246. arr1 = arr
  2247. } else if (this.patientStateVal == 4) {
  2248. let arr = []
  2249. arr = patientArr
  2250. for (let i = 0; i < arr.length; i++) {
  2251. for (let j = 0; j < arr[i].schedules.length; j++) {
  2252. if (arr[i].schedules.length > 0 && (arr[i].schedules[j].dialysis_order != null && arr[i].schedules[j].dialysis_order.stage != 2)) {
  2253. // 删除元素后改变i的值
  2254. arr[i].schedules.splice(j--, 1)
  2255. }
  2256. }
  2257. }
  2258. arr1 = arr
  2259. }
  2260. let arr2 = []
  2261. if (this.treatStateVal == 0) {
  2262. arr2 = JSON.parse(JSON.stringify(arr1))
  2263. } else if (this.treatStateVal == 2) {
  2264. let arr = []
  2265. arr = JSON.parse(JSON.stringify(arr1))
  2266. for (let i = 0; i < arr.length; i++) {
  2267. for (let j = 0; j < arr[i].schedules.length; j++) {
  2268. if (arr[i].schedules.length > 0 && arr[i].schedules[j].treatment_summary != null && arr[i].schedules[j].treatment_summary.dialysis_summary != '') {
  2269. // 删除元素后改变i的值
  2270. arr[i].schedules.splice(j--, 1)
  2271. }
  2272. }
  2273. }
  2274. arr2 = arr
  2275. } else if(this.treatStateVal == 3){
  2276. let arr = []
  2277. arr = JSON.parse(JSON.stringify(arr1))
  2278. for (let i = 0; i < arr.length; i++) {
  2279. for (let j = 0; j < arr[i].schedules.length; j++) {
  2280. if(arr[i].schedules[j].doctor_advice.length == 0){
  2281. arr[i].schedules.splice(j--, 1)
  2282. }
  2283. if(arr[i].schedules && arr[i].schedules[j] && arr[i].schedules[j].doctor_advice){
  2284. let sign = 0
  2285. arr[i].schedules[j].doctor_advice.map(item => {
  2286. if(item.check_state == 1){
  2287. sign++
  2288. }
  2289. })
  2290. if(sign == arr[i].schedules[j].doctor_advice.length && arr[i].schedules[j].doctor_advice.length > 0){
  2291. arr[i].schedules.splice(j--, 1)
  2292. }
  2293. }
  2294. }
  2295. }
  2296. arr2 = arr
  2297. }
  2298. let arr3 = []
  2299. if (this.scheduleStateVal == 0) {
  2300. arr3 = JSON.parse(JSON.stringify(arr2))
  2301. } else {
  2302. let arr = []
  2303. arr = JSON.parse(JSON.stringify(arr2))
  2304. for (let i = 0; i < arr.length; i++) {
  2305. for (let j = 0; j < arr[i].schedules.length; j++) {
  2306. if (this.scheduleStateVal != arr[i].schedules[j].schedule_type) {
  2307. // 删除元素后改变i的值
  2308. arr[i].schedules.splice(j--, 1)
  2309. }
  2310. }
  2311. }
  2312. arr3 = arr
  2313. }
  2314. let arr4 = []
  2315. if (this.zoneVal == 0) {
  2316. arr4 = JSON.parse(JSON.stringify(arr3))
  2317. } else {
  2318. let arr = []
  2319. arr = JSON.parse(JSON.stringify(arr3))
  2320. for (let i = 0; i < arr.length; i++) {
  2321. if (this.zoneVal != arr[i].zone_id) {
  2322. // 删除元素后改变i的值
  2323. arr.splice(i--, 1)
  2324. }
  2325. }
  2326. arr4 = arr
  2327. }
  2328. const newArr = []
  2329. arr4.map(item => {
  2330. newArr.push(...item.schedules)
  2331. })
  2332. if(this.patientStateVal == 1){
  2333. newArr.map(item => {
  2334. item.created_time = item.assessment_before_dislysis.created_time
  2335. })
  2336. newArr.sort(this.compare('created_time'))
  2337. }
  2338. if(this.org_id == 0 || this.org_id == 10579 || this.org_id ==10587){
  2339. if(newArr!=null && newArr.length>0){
  2340. for(let i=0;i<newArr.length;i++){
  2341. newArr[i].sort =0
  2342. newArr[i].sort =newArr[i].device_number.sort
  2343. }
  2344. }
  2345. newArr.sort(function(a, b) {
  2346. return a.sort - b.sort;
  2347. });
  2348. }
  2349. this.tableData1 = newArr
  2350. const name = this.$route.query.patient_name
  2351. this.tableData1.map((item, index) => {
  2352. if (name == item.patient.name) {
  2353. // if (item.assessment_before_dislysis != null) {
  2354. // this.newTime = parseTime(item.assessment_before_dislysis.created_time, '{h}:{i}')
  2355. // }
  2356. setTimeout(() => {
  2357. this.$refs.tab1.setCurrentRow(this.tableData1[index])
  2358. }, 10)
  2359. }
  2360. })
  2361. }
  2362. },
  2363. compare(property){
  2364. return function(a,b){
  2365. var value1 = a[property];
  2366. var value2 = b[property];
  2367. return value2 - value1;
  2368. }
  2369. },
  2370. getTime(date){
  2371. date = new Date(date * 1000)
  2372. var Y = date.getFullYear() + '-';
  2373. var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
  2374. var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate());
  2375. var h = (date.getHours() < 10 ? '0'+date.getHours() : date.getHours());
  2376. var m = (date.getMinutes() < 10 ? '0'+date.getMinutes() : date.getMinutes());
  2377. var s = (date.getSeconds() < 10 ? '0'+date.getSeconds() : date.getSeconds());
  2378. let strDate = h + ':' + m;
  2379. return strDate;
  2380. },
  2381. getTimes(time) {
  2382. return uParseTime(time, '{y}-{m}-{d}')
  2383. },
  2384. refresh(){
  2385. this.requestDialysisSchedules()
  2386. },
  2387. websocketSend(data) {
  2388. try {
  2389. this.websocket.send(JSON.stringify(data))
  2390. } catch (error) {
  2391. this.showError = true;
  2392. this.showIndex = 4;
  2393. this.errorInfo = "网络异常,请稍后退出重试!";
  2394. }
  2395. },
  2396. websocketMess() {
  2397. this.websocket.onmessage = e => {
  2398. let res = JSON.parse(e.data);
  2399. // let res = re.data;
  2400. // console.log('res3333333333',res)
  2401. if(res.channel == 'queue/join'){
  2402. let timeType = null
  2403. if(this.scheduleStateVal == 1){
  2404. timeType = 1
  2405. }else if(this.scheduleStateVal == 2){
  2406. timeType = 2
  2407. }else{
  2408. if(new Date().getHours() < 10){
  2409. timeType = 1
  2410. }else if(new Date().getHours() >= 10){
  2411. timeType = 2
  2412. }
  2413. }
  2414. let fisrtQueueInfo = []
  2415. this.newFisrtQueueInfo = res.data.fisrtQueueInfo
  2416. this.queueConfig = res.data.queueConfig
  2417. if(res.data.fisrtQueueInfo != null){
  2418. if(timeType == 1){
  2419. fisrtQueueInfo = res.data.fisrtQueueInfo.morning
  2420. if(fisrtQueueInfo.create_time){
  2421. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2422. }
  2423. }else if(timeType == 2){
  2424. fisrtQueueInfo = res.data.fisrtQueueInfo.afternoon
  2425. if(fisrtQueueInfo.create_time){
  2426. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2427. }
  2428. }
  2429. }
  2430. this.fisrtQueueInfo = fisrtQueueInfo
  2431. // this.fisrtQueueInfo = res.data.fisrtQueueInfo
  2432. let arr = res.data.patientQueueList.data
  2433. let waitingCalledArr = []
  2434. let calledArr = []
  2435. arr.map(item => {
  2436. if(item.status == 1){
  2437. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2438. waitingCalledArr.push(item)
  2439. }else if(item.status == 2){
  2440. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2441. calledArr.push(item)
  2442. }
  2443. })
  2444. this.waitingCalled = waitingCalledArr
  2445. this.called = calledArr
  2446. }else if(res.channel == 'allQueueList'){
  2447. let arr = res.data.queue_list.data
  2448. let waitingCalledArr = []
  2449. let calledArr = []
  2450. arr.map(item => {
  2451. if(item.status == 1){
  2452. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2453. waitingCalledArr.push(item)
  2454. }else if(item.status == 2){
  2455. // item.create_time = moment(item.create_time * 1000).format('HH:mm:ss')
  2456. calledArr.push(item)
  2457. }
  2458. })
  2459. this.waitingCalled = waitingCalledArr
  2460. this.called = calledArr
  2461. }else if(res.channel == 'patientCallInfo'){
  2462. res.data.patientInfo.create_time = moment(res.data.patientInfo.create_time * 1000).format('HH:mm')
  2463. this.fisrtQueueInfo = res.data.patientInfo
  2464. }else if(res.channel == 'fisrtQueueInfo'){
  2465. if(this.scheduleStateVal == 1){
  2466. timeType = 1
  2467. }else if(this.scheduleStateVal == 2){
  2468. timeType = 2
  2469. }else{
  2470. if(new Date().getHours() < 10){
  2471. timeType = 1
  2472. }else if(new Date().getHours() >= 10){
  2473. timeType = 2
  2474. }
  2475. }
  2476. let fisrtQueueInfo = []
  2477. this.newFisrtQueueInfo = res.data.patientInfo
  2478. if(res.data.patientInfo != null){
  2479. if(timeType == 1){
  2480. fisrtQueueInfo = res.data.patientInfo.morning
  2481. if(fisrtQueueInfo.create_time){
  2482. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2483. }
  2484. }else if(timeType == 2){
  2485. fisrtQueueInfo = res.data.patientInfo.afternoon
  2486. if(fisrtQueueInfo.create_time){
  2487. fisrtQueueInfo.create_time = moment(parseInt(fisrtQueueInfo.create_time) * 1000).format('HH:mm')
  2488. }
  2489. }
  2490. }
  2491. this.fisrtQueueInfo = fisrtQueueInfo
  2492. }
  2493. }
  2494. },
  2495. call(){
  2496. // console.log('patient_id',patient_id)
  2497. let org_id = parseInt(sessionStorage.getItem("org_id"));
  2498. let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
  2499. axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
  2500. // let patientArr = res.data.queue_list.data
  2501. // this.patientArr = patientArr
  2502. // this.$emit('child-event',this.patientArr)
  2503. if(res.data.data.patientInfo == null){
  2504. this.$message.error('已经是最后一位了');
  2505. return
  2506. }
  2507. if(res.data.code == 200){
  2508. this.$message({
  2509. message: res.data.msg,
  2510. type: 'success'
  2511. });
  2512. this.curPatient = res.data.data.patientInfo
  2513. let arr = []
  2514. let newArr = []
  2515. this.zone_schedules.map(item => {
  2516. newArr.push(...item.schedules)
  2517. })
  2518. newArr.map(item => {
  2519. arr.push(item.patient_id)
  2520. })
  2521. if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
  2522. this.showView = false
  2523. this.$router.push({
  2524. path: '/dialysis/details',
  2525. query: {
  2526. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2527. date: this.$route.query.date,
  2528. patient_name: res.data.data.patientInfo.patient_name,
  2529. mode_id:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
  2530. curPatientTime:res.data.data.patientInfo.create_time,
  2531. showView:false
  2532. }
  2533. })
  2534. }else {
  2535. this.showView = true
  2536. this.$router.push({
  2537. path: '/dialysis/details',
  2538. query: {
  2539. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2540. date: this.$route.query.date,
  2541. patient_name: res.data.data.patientInfo.patient_name,
  2542. mode_id:this.$route.query.mode_id,
  2543. curPatientTime:res.data.data.patientInfo.create_time,
  2544. showView:true
  2545. }
  2546. })
  2547. }
  2548. }
  2549. })
  2550. },
  2551. next(){
  2552. let schedule_type = null
  2553. if(new Date().getHours() < 11){
  2554. schedule_type = 1
  2555. }else {
  2556. schedule_type = 2
  2557. }
  2558. let org_id = parseInt(sessionStorage.getItem("org_id"));
  2559. let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
  2560. 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 => {
  2561. if(res.data.data.patientInfo == null){
  2562. this.$message.error('已经是最后一位了');
  2563. return
  2564. }
  2565. if(res.data.code == 200){
  2566. this.$message({
  2567. message: res.data.msg,
  2568. type: 'success'
  2569. });
  2570. this.curPatient = res.data.data.patientInfo
  2571. let arr = []
  2572. let newArr = []
  2573. this.zone_schedules.map(item => {
  2574. newArr.push(...item.schedules)
  2575. })
  2576. newArr.map(item => {
  2577. arr.push(item.patient_id)
  2578. })
  2579. if(arr.indexOf(parseInt(res.data.data.patientInfo.patient_id)) > -1){
  2580. this.showView = false
  2581. this.$router.push({
  2582. path: '/dialysis/details',
  2583. query: {
  2584. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2585. date: this.$route.query.date,
  2586. patient_name: res.data.data.patientInfo.patient_name,
  2587. mode_id:newArr[arr.indexOf(parseInt(res.data.data.patientInfo.patient_id))].mode_id,
  2588. curPatientTime:res.data.data.patientInfo.create_time,
  2589. showView:false
  2590. }
  2591. })
  2592. }else {
  2593. this.showView = true
  2594. this.$router.push({
  2595. path: '/dialysis/details',
  2596. query: {
  2597. patient_id: parseInt(res.data.data.patientInfo.patient_id),
  2598. date: this.$route.query.date,
  2599. patient_name: res.data.data.patientInfo.patient_name,
  2600. mode_id:this.$route.query.mode_id,
  2601. curPatientTime:res.data.data.patientInfo.create_time,
  2602. showView:true
  2603. }
  2604. })
  2605. }
  2606. }
  2607. })
  2608. },
  2609. getDates(time){
  2610. return moment(time * 1000).format('HH:mm:ss')
  2611. },
  2612. printAction: function() {
  2613. 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;}}'
  2614. const style1 = '@page {margin-top:10px;} @media print{}'
  2615. printJS({
  2616. printable: 'print_content',
  2617. type: 'html',
  2618. documentTitle: '',
  2619. style: style1,
  2620. scanStyles: false
  2621. })
  2622. },
  2623. getInitPrintData(){
  2624. const loading = this.$loading({
  2625. lock: true,
  2626. text: 'Loading',
  2627. spinner: 'el-icon-loading',
  2628. background: 'rgba(0, 0, 0, 0.7)'
  2629. })
  2630. var params = {
  2631. patient_id:this.$route.query.patient_id,
  2632. record_date:this.$route.query.date,
  2633. }
  2634. getInitPrintData(params).then(response=>{
  2635. if(response.data.state == 1){
  2636. var list = response.data.data.list
  2637. console.log("listwowoowowowowow",list)
  2638. var assessmentAfterDislysis = response.data.data.assessmentAfterDislysis
  2639. this.printList = list
  2640. this.assessmentAfterDislysis = assessmentAfterDislysis
  2641. if(this.org_id == 0 || this.org_id ==10469){
  2642. this.centerDialogVisible = true
  2643. }else{
  2644. this.startVisibility = true
  2645. }
  2646. loading.close()
  2647. }
  2648. })
  2649. },
  2650. getModeId(val){
  2651. var name =""
  2652. if(val == 1){
  2653. name ="HD"
  2654. }
  2655. if(val == 2){
  2656. name ="HDF"
  2657. }
  2658. if(val == 3){
  2659. name ="HD+HP"
  2660. }
  2661. if(val == 4){
  2662. name ="HP"
  2663. }
  2664. if(val == 5){
  2665. name ="HF"
  2666. }
  2667. if(val == 6){
  2668. name ="SCUF"
  2669. }
  2670. if(val == 7){
  2671. name ="IUF"
  2672. }
  2673. if(val == 8){
  2674. name ="IUF"
  2675. }
  2676. if(val == 9){
  2677. name ="HFHD+HP"
  2678. }
  2679. if(val == 10){
  2680. name ="HFHD+HP"
  2681. }
  2682. if(val == 11){
  2683. name ="HFR"
  2684. }
  2685. if(val == 12){
  2686. name ="HDF+HP"
  2687. }
  2688. if(val == 13){
  2689. name ="CRRT"
  2690. }
  2691. if(val == 14){
  2692. name ="腹水回输"
  2693. }
  2694. if(val == 19){
  2695. name ="IUF+HD"
  2696. }
  2697. if(val == 20){
  2698. name ="UF"
  2699. }
  2700. if(val == 21){
  2701. name ="HD+"
  2702. }
  2703. if(val == 22){
  2704. name ="血浆胆红素吸附+HDF"
  2705. }
  2706. if(val == 23){
  2707. name ="血浆胆红素吸附"
  2708. }
  2709. if(val == 24){
  2710. name ="I-HDF"
  2711. }
  2712. if(val == 25){
  2713. name ="HD高通"
  2714. }
  2715. if(val == 26){
  2716. name ="CVVH"
  2717. }
  2718. if(val == 27){
  2719. name ="CVVHD"
  2720. }
  2721. if(val == 28){
  2722. name ="CVVHDF"
  2723. }
  2724. if(val == 29){
  2725. name ="PE"
  2726. }
  2727. if(val == 30){
  2728. name ="血浆胆红素吸附+HP"
  2729. }
  2730. if(val == 31){
  2731. name ="HPD"
  2732. }
  2733. if(val == 32){
  2734. name ="HDP"
  2735. }
  2736. if(val == 33){
  2737. name ="HDP"
  2738. }
  2739. if(val == 33){
  2740. name ="HFD"
  2741. }
  2742. if(val == 34){
  2743. name ="HDF100"
  2744. }
  2745. if(val == 35){
  2746. name ="HDF600"
  2747. }
  2748. if(val == 36){
  2749. name ="HDF800"
  2750. }
  2751. if(val == 37){
  2752. name ="HDF1000"
  2753. }
  2754. return name
  2755. },
  2756. getBloodAccess(id){
  2757. var name = ""
  2758. for(let i=0;i<this.blood_access_part_opera.length;i++){
  2759. if(id == this.blood_access_part_opera[i].id){
  2760. name = this.blood_access_part_opera[i].name
  2761. }
  2762. }
  2763. return name
  2764. },
  2765. // 透析历史
  2766. history_click(){
  2767. this.historyclick =true
  2768. // this.getmonth(this.time_value2)
  2769. // console.log('time_value',moment(this.time_value2).format('YYYY-MM-DD'));
  2770. },
  2771. // 获取每个月的第一天和最后一天
  2772. getmonth(val){
  2773. const months= new Date(val).getMonth()
  2774. let startTime = moment().month(months).startOf('month').format('YYYY-MM-DD')
  2775. // //某月最后一天
  2776. let endTime = moment().month(months).endOf('month').format('YYYY-MM-DD')
  2777. this.startTime = startTime
  2778. this.endTime = endTime
  2779. console.log('time_value333333',this.startTime,this.endTime);
  2780. }
  2781. },
  2782. watch:{
  2783. time_value:{
  2784. handler(newValue,oldValue){
  2785. // this.initData()
  2786. this.time_value = newValue
  2787. this.getmonth(this.time_value)
  2788. console.log('yyyyyyyyyyy',moment(this.time_value).format('YYYY-MM-DD'),moment(oldValue).format('YYYY-MM-DD'))
  2789. }
  2790. }
  2791. }
  2792. }
  2793. </script>
  2794. <style style="stylesheet/scss" lang="scss" scoped>
  2795. .details-bg {
  2796. background: #fff;
  2797. margin: 0 15px;
  2798. }
  2799. .printForm {
  2800. .title {
  2801. font-size: 30px;
  2802. font-weight: 500;
  2803. text-align: center;
  2804. line-height: 60px;
  2805. }
  2806. .info {
  2807. ul {
  2808. display: -webkit-box;
  2809. display: -moz-box;
  2810. display: -ms-flexbox;
  2811. display: -webkit-flex;
  2812. display: flex;
  2813. align-items: center;
  2814. -moz-box-sizing: border-box;
  2815. -webkit-box-sizing: border-box;
  2816. -o-box-sizing: border-box;
  2817. -ms-box-sizing: border-box;
  2818. box-sizing: border-box;
  2819. -webkit-justify-content: space-around;
  2820. -moz-justify-content: space-around;
  2821. -ms-justify-content: space-around;
  2822. -o-justify-content: space-around;
  2823. justify-content: space-around;
  2824. li {
  2825. display: flex;
  2826. box-sizing: border-box;
  2827. justify-content: space-around;
  2828. // .name {
  2829. // }
  2830. .InputBox {
  2831. padding: 0;
  2832. border: none;
  2833. border-bottom: 1px #e5e5e5 solid;
  2834. width: 60px;
  2835. outline: none;
  2836. }
  2837. }
  2838. }
  2839. }
  2840. .printTable {
  2841. tr {
  2842. padding: 2px;
  2843. th {
  2844. padding: 6px 4px;
  2845. }
  2846. td {
  2847. padding: 6px 4px;
  2848. }
  2849. }
  2850. }
  2851. }
  2852. .loadingBox{
  2853. display: flex;
  2854. .patientBox{
  2855. background: #fff;
  2856. .touxi_cishu{
  2857. display: inline-block;
  2858. border: 1px solid #409eff;
  2859. width: 30px;
  2860. text-align: center;
  2861. border-radius: 10px;
  2862. }
  2863. }
  2864. .tip1{
  2865. background: #4fc7cb;
  2866. border-radius: 5px;
  2867. text-align: center;
  2868. font-size: 12px;
  2869. display: inline-block;
  2870. width: 60px;
  2871. // height: 23px;
  2872. // line-height: 23px;
  2873. color: #fff;
  2874. }
  2875. .tip2{
  2876. background: #ee8556;
  2877. border-radius: 5px;
  2878. text-align: center;
  2879. font-size: 12px;
  2880. display: inline-block;
  2881. width: 60px;
  2882. // height: 23px;
  2883. // line-height: 23px;
  2884. color: #fff;
  2885. }
  2886. .tip3{
  2887. background: #409eff;
  2888. border-radius: 5px;
  2889. text-align: center;
  2890. font-size: 12px;
  2891. display: inline-block;
  2892. width: 60px;
  2893. color: #fff;
  2894. }
  2895. .tip4{
  2896. background: #a8b3ba;
  2897. border-radius: 5px;
  2898. text-align: center;
  2899. font-size: 12px;
  2900. display: inline-block;
  2901. width: 60px;
  2902. color: #fff;
  2903. }
  2904. .tip5{
  2905. background: #7bce91;
  2906. border-radius: 5px;
  2907. text-align: center;
  2908. font-size: 12px;
  2909. display: inline-block;
  2910. width: 60px;
  2911. color: #fff;
  2912. }
  2913. }
  2914. .history{
  2915. .touxipl{
  2916. display: inline-block;
  2917. width: 60%;
  2918. border-bottom:1px solid gray;
  2919. }
  2920. }
  2921. </style>
  2922. <style lang="scss">
  2923. .loadingBox{
  2924. .el-loading-spinner{
  2925. top:10%;
  2926. }
  2927. .el-button--small, .el-button--small.is-round{
  2928. padding:9px 10px;
  2929. }
  2930. .el-date-editor{
  2931. .el-input__inner{
  2932. padding-right:0px;
  2933. }
  2934. }
  2935. .el-table td, .el-table th{
  2936. text-align: center;
  2937. }
  2938. .el-table td{
  2939. height: 44px !important;
  2940. }
  2941. .el-table .cell{
  2942. padding: 0;
  2943. }
  2944. }
  2945. .history{
  2946. .el-dialog{
  2947. .el-dialog__header{
  2948. padding: 10px 10px 10px;
  2949. background-color: #409eff;
  2950. .el-dialog__title{
  2951. color: white;
  2952. font-size: 15px;
  2953. }
  2954. .el-dialog__headerbtn{
  2955. position: absolute;
  2956. top: 12px;
  2957. right: 20px;
  2958. .el-dialog__close{
  2959. color: white;
  2960. }
  2961. }
  2962. }
  2963. .el-dialog__body{
  2964. padding: 15px 10px
  2965. }
  2966. }
  2967. }
  2968. .Calendar{
  2969. color: #000 !important;
  2970. width: 100% !important;
  2971. max-width: 839px !important;
  2972. .wh_content_all{
  2973. background-color: #fff;
  2974. .wh_top_changge{
  2975. .wh_jiantou1{
  2976. border-top: 2px solid #000;
  2977. border-left: 2px solid #000;
  2978. }
  2979. .wh_content_li{
  2980. color: #000;
  2981. }
  2982. .wh_jiantou2{
  2983. border-top: 2px solid #000;
  2984. border-right: 2px solid #000;
  2985. }
  2986. }
  2987. .wh_content_item{
  2988. text-align: center;
  2989. color: #000 ;
  2990. height: 50px;
  2991. .wh_top_tag{
  2992. width: 100%;
  2993. height: 50px ;
  2994. line-height: 50px;
  2995. margin: 0;
  2996. display: flex;
  2997. justify-content: center;
  2998. align-items: center;
  2999. text-align: center
  3000. }
  3001. .wh_isToday{
  3002. border: 1px solid #409eff;
  3003. background: #409eff !important;
  3004. color: #fff;
  3005. border-radius: 0;
  3006. }
  3007. .wh_chose_day{
  3008. border: 1px solid #409eff;
  3009. background: #fff !important;
  3010. color: #409eff;
  3011. border-radius: 0;
  3012. }
  3013. .wh_item_date{
  3014. width: 100%;
  3015. height: 50px;
  3016. line-height: 50px;
  3017. margin: 0;
  3018. display: flex;
  3019. justify-content: center;
  3020. align-items: center;
  3021. }
  3022. .wh_item_date:hover {
  3023. background: #fff;
  3024. cursor: pointer;
  3025. }
  3026. }
  3027. }
  3028. }
  3029. </style>