index.vue 131KB

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