dialysisPage.vue 186KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415
  1. <template>
  2. <div class="app-container">
  3. <el-container style="border: 1px solid #eee">
  4. <el-container>
  5. <el-main>
  6. <check-box-dialog :titles="dialogFistulaTitle" :values="DialysisBeforeAssesGuiltyData" :visibility="isVisibiltyForFistulaDialog"
  7. v-on:dialog-comfirm="fistulaDialogComfirm" v-on:dialog-cancle="fistulaDialogCancle"></check-box-dialog>
  8. <check-box-dialog :titles="dialogPipeTitle" :values="dialysisBeforeAssesCatheterData" :visibility="isVisibiltyForPipeDialog"
  9. v-on:dialog-comfirm="pipeDialogComfirm" v-on:dialog-cancle="pipeDialogCancle"></check-box-dialog>
  10. <check-box-dialog :titles="dialogDialysisBeforeAssesGuiltyTitle" :values="DialysisBeforeAssesGuiltyData"
  11. :visibility="isVisibiltyForDialysisBeforeAssesGuiltyDialog"
  12. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  13. <check-box-dialog :titles="dialogDialysisBeforeAssesCatheterTitle" :values="dialysisBeforeAssesCatheterData"
  14. :visibility="isVisibiltyForDialysisBeforeAssesCatheterDialog"
  15. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  16. <!--透前评估-->
  17. <check-box-dialog :titles="dialogDialysisIntervalTitle" :values="dialysisIntervalData"
  18. :visibility="isVisibiltyForDialysisIntervalDialog"
  19. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  20. <check-box-dialog :titles="dialogAfterTheLastDialysisTitle" :values="afterTheLastDialysiData"
  21. :visibility="isVisibiltyForAfterTheLastDialysisDialog"
  22. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  23. <check-box-dialog :titles="dialogPreExistingSymptomsTitle" :values="preExistingSymptomsData"
  24. :visibility="isVisibiltyForPreExistingSymptomsDialog"
  25. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  26. <check-box-dialog :titles="dialogDialysisBeforeAssesGuiltyTitle" :values="DialysisBeforeAssesGuiltyData"
  27. :visibility="isVisibiltyForDialysisBeforeAssesGuiltyDialog"
  28. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  29. <check-box-dialog :titles="dialogDialysisBeforeAssesCatheterTitle" :values="dialysisBeforeAssesCatheterData"
  30. :visibility="isVisibiltyForDialysisBeforeAssesCatheterDialog"
  31. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  32. <check-box-dialog :titles="dialogDialysisBeforeAssesComplicationsTitle"
  33. :values="dialysisBeforeAssesComplicationsData"
  34. :visibility="isVisibiltyForDialysisBeforeAssesComplicationsDialog"
  35. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  36. <!--透后评估-->
  37. <check-box-dialog :titles="dialogCruorTitle" :values="cruorData" :visibility="isVisibiltyForCruorDialog"
  38. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  39. <check-box-dialog :titles="dialogSymptomsAfterDialysiTitle" :values="symptomsAfterDialysiData"
  40. :visibility="isVisibiltyForSymptomsAfterDialysiDialog"
  41. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  42. <check-box-dialog :titles="dialogComplicationsTitle" :values="complicationsData"
  43. :visibility="isVisibiltyForcomplicationsDialog"
  44. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"></check-box-dialog>
  45. <check-box-dialog :titles="dialogSymptomsTitle" :values="symptomsArray"
  46. :visibility="isVisibiltyForSymptomsDialog"
  47. :isShowTextArea="false" v-on:dialog-comfirm="DialogComfirm"
  48. v-on:dialog-cancle="DialogCancle" append-to-body></check-box-dialog>
  49. <check-box-dialog :titles="dialogDealTitle" :values="dealArray" :visibility="isVisibiltyForDealDialog"
  50. :isShowTextArea="false" v-on:dialog-comfirm="DialogComfirm"
  51. v-on:dialog-cancle="DialogCancle" append-to-body></check-box-dialog>
  52. <check-box-dialog :titles="dialogResultsTitle" :values="resultsArray"
  53. :visibility="isVisibiltyForResultsDialog" :isShowTextArea="false"
  54. v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"
  55. append-to-body></check-box-dialog>
  56. <!--干体重-->
  57. <dry-weight-dialog :titles="dialogAdjustWeightTitle" :doctorList="doctorList"
  58. :weightList="weightList"
  59. :visibility="isVisibiltyAdjustDryWeightDialog"
  60. v-on:dialog-comfirm="DialogComfirm"
  61. v-on:dialog-cancle="DialogCancle"></dry-weight-dialog>
  62. <el-dialog :title="dialogTitle" :visible.sync="dialogFormVisible" width="40%">
  63. <el-form ref="adviceForm" :rules="adviceRules" :model="adviceForm" label-width="90px">
  64. <el-row>
  65. <el-col :span="15">
  66. <el-form-item label="医嘱类型 :" required prop="advice_type">
  67. <el-select v-model="adviceForm.advice_type" :disabled="isEdit||adviceForm.parent_id>0?true:false"
  68. placeholder="请选择">
  69. <el-option :label="item.label" :value="item.value"
  70. v-for="item in adviceTypeArr" :key="item.id"></el-option>
  71. </el-select>
  72. </el-form-item>
  73. </el-col>
  74. <el-col :span="15">
  75. <el-form-item label="医嘱时间 :" required prop="advice_date">
  76. <el-date-picker type="date" readonly format="yyyy-MM-dd" value-format="yyyy-MM-dd"
  77. placeholder="选择日期" v-model="adviceForm.advice_date"
  78. style="width: 100%;"></el-date-picker>
  79. </el-form-item>
  80. </el-col>
  81. </el-row>
  82. <el-form-item label="开始时间 :" required prop="start_time">
  83. <el-date-picker type="datetime" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
  84. placeholder="选择时间" v-model="adviceForm.start_time" style="width:50%"
  85. :disabled="adviceForm.parent_id==0?false:true"></el-date-picker>
  86. </el-form-item>
  87. <el-form-item label="医嘱名称 :" required prop="advice_name">
  88. <el-select v-model="adviceForm.advice_name" @change="changeAdviceName" filterable
  89. placeholder="请选择(输入可搜索)" style="width:50%">
  90. <el-option
  91. v-for="item in drugOptions"
  92. :key="item.id"
  93. :label="item.name"
  94. :value="item.id"
  95. >
  96. <span>{{ item.name }}</span>
  97. <span>{{ item.spec }}</span>
  98. </el-option>
  99. </el-select>
  100. </el-form-item>
  101. <el-form-item label="医嘱内容 :" prop="advice_desc">
  102. <el-input v-model="adviceForm.advice_desc" style="width:50%"></el-input>
  103. </el-form-item>
  104. <el-row>
  105. <el-col :span="15">
  106. <el-form-item label="单次用量 :" prop="single_dose">
  107. <el-col :span="11">
  108. <el-input v-model="adviceForm.single_dose"></el-input>
  109. </el-col>
  110. <el-col class="line" :span="2">&nbsp;</el-col>
  111. <el-col :span="6">
  112. <el-input v-model="adviceForm.single_dose_unit"></el-input>
  113. </el-col>
  114. </el-form-item>
  115. </el-col>
  116. <el-col :span="15">
  117. <el-form-item label="开药数量 :" prop="prescribing_number">
  118. <el-col :span="11">
  119. <el-input v-model="adviceForm.prescribing_number"></el-input>
  120. </el-col>
  121. <el-col class="line" :span="2">&nbsp;</el-col>
  122. <el-col :span="6">
  123. <el-input v-model="adviceForm.prescribing_number_unit"></el-input>
  124. </el-col>
  125. </el-form-item>
  126. </el-col>
  127. </el-row>
  128. <el-row>
  129. <el-col :span="15">
  130. <el-form-item label="给药途径 :" prop="delivery_way">
  131. <el-select v-model="adviceForm.delivery_way" :disabled="adviceForm.parent_id==0?false:true"
  132. filterable placeholder="请选择(输入可搜索)" style="width:100%">
  133. <el-option
  134. v-for="item in deliveryWayOptions"
  135. :key="item.id"
  136. :label="item.name "
  137. :value="item.name">
  138. </el-option>
  139. </el-select>
  140. </el-form-item>
  141. </el-col>
  142. <el-col :span="15">
  143. <el-form-item label="执行频率 :" prop="execution_frequency">
  144. <el-select v-model="adviceForm.execution_frequency" :disabled="adviceForm.parent_id==0?false:true"
  145. filterable placeholder="请选择(输入可搜索)" style="width:100%">
  146. <el-option
  147. v-for="item in executionFrequencyOptions"
  148. :key="item.id"
  149. :label="item.name"
  150. :value="item.name">
  151. </el-option>
  152. </el-select>
  153. </el-form-item>
  154. </el-col>
  155. </el-row>
  156. <!--<el-form-item label="开嘱医生 :" prop="advice_doctor" required>-->
  157. <!--<el-input v-model="advice_doctor"></el-input>-->
  158. <!--</el-form-item>-->
  159. <!--<el-input-number v-model="num1" @change="handleChange" :min="1" :max="10" label="描述文字"></el-input-number>-->
  160. <el-form-item label="子药数量 : ">
  161. <el-input-number :disabled="$store.getters.xt_user.subscibe.state==3?true:false" v-model="adviceForm.num" @change="handleChangeChild" :min="0"
  162. label="0"></el-input-number>
  163. </el-form-item>
  164. <el-form v-show="lastValue != 0">
  165. <el-form
  166. v-for="item in SubAdvice"
  167. :key="item.id"
  168. >
  169. <el-form-item
  170. :label="item.labelName "
  171. >
  172. <el-select v-model="item.subAdivceForm.advice_name"
  173. @change="changeSubAdviceName(item.subAdivceForm.advice_name,item.subAdivceForm)"
  174. filterable
  175. placeholder="请选择(输入可搜索)" style="width:50%">
  176. <el-option
  177. v-for="item in drugOptions"
  178. :key="item.id"
  179. :label="item.name"
  180. :value="item.id"
  181. >
  182. <span>{{ item.name }}</span>
  183. <span>{{ item.spec }}</span>
  184. </el-option>
  185. </el-select>
  186. </el-form-item>
  187. <el-form-item
  188. :label="item.labeldesc"
  189. >
  190. <el-input style="width: 250px" v-model="item.subAdivceForm.advice_desc"
  191. readonly="readonly"></el-input>
  192. </el-form-item>
  193. <el-form-item
  194. :label="item.sigle"
  195. >
  196. <el-col :span="11">
  197. <el-input v-model="item.subAdivceForm.single_dose"></el-input>
  198. </el-col>
  199. <el-col class="line" :span="2">&nbsp;</el-col>
  200. <el-col :span="6">
  201. <el-input v-model="item.subAdivceForm.single_dose_unit"></el-input>
  202. </el-col>
  203. </el-form-item>
  204. <el-form-item
  205. :label="item.num"
  206. >
  207. <el-col :span="11">
  208. <el-input v-model="item.subAdivceForm.prescribing_number"></el-input>
  209. </el-col>
  210. <el-col class="line" :span="2">&nbsp;</el-col>
  211. <el-col :span="6">
  212. <el-input v-model="item.subAdivceForm.prescribing_number_unit"></el-input>
  213. </el-col>
  214. </el-form-item>
  215. </el-form>
  216. </el-form>
  217. </el-form>
  218. <div slot="footer" class="dialog-footer">
  219. <template v-if="isEdit">
  220. <el-button type="primary" @click="dialogFormVisible = false">取消</el-button>
  221. <el-button type="primary" :disabled="$store.getters.xt_user.subscibe.state==3?true:false" @click="submitEditAdvice('adviceForm')">保 存</el-button>
  222. </template>
  223. <template v-else>
  224. <el-button type="primary" @click="dialogFormVisible = false">取 消</el-button>
  225. <el-button type="primary" :disabled="$store.getters.xt_user.subscibe.state==3?true:false" @click="submitNewAdvice('adviceForm')">保 存</el-button>
  226. <!--<el-button type="primary" @click="submitNewAdvice('adviceForm', 're')" v-if="adviceForm.parent_id==0">继 续</el-button>-->
  227. </template>
  228. </div>
  229. </el-dialog>
  230. <el-dialog :title="dialogTitle" :visible.sync="dialogFormExecutionVisible" width="40%">
  231. <el-form ref="adviceForm" :rules="adviceRules" :model="adviceForm" label-width="90px">
  232. <el-form-item label="医嘱内容 :" required>
  233. </el-form-item>
  234. <el-input style="margin-bottom: 20px" type="textarea" :rows="4" v-model="executionForm.content"
  235. readonly="readonly"></el-input>
  236. <el-form-item label="执行时间 :" required prop="start_time">
  237. <el-date-picker type="datetime" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
  238. placeholder="选择时间" v-model="executionForm.execution_time" style="width:50%"
  239. ></el-date-picker>
  240. </el-form-item>
  241. </el-form>
  242. <div slot="footer" class="dialog-footer">
  243. <template>
  244. <el-button type="primary" @click="dialogFormExecutionVisible = false">取消</el-button>
  245. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="submitExecuteAdvice">保 存</el-button>
  246. </template>
  247. </div>
  248. </el-dialog>
  249. <!--//透析监测-->
  250. <add-monitor :titles="dialogMonitorTitle" :symptoms="symptomsData" :deal="dealData" :results="resultsData"
  251. :visibility="isVisibiltyForMonitorDialog" :form="MonitorForm"
  252. :nurseList="nurseList" v-on:dialog-comfirm="DialogComfirm" v-on:dialog-cancle="DialogCancle"
  253. v-on:symptom-click="showInnerDialog('symptom')" v-on:deal-click="showInnerDialog('deal')"
  254. v-on:result-click="showInnerDialog('result')"></add-monitor>
  255. <form-dialog :titles="dialogDialysateVolumeTitle" :formValue="dialysateVolumeData"
  256. :visibility="isVisibiltyForDialysateVolumeDialog"
  257. v-on:form-dialog-comfirm="FormDialogComfirm"
  258. v-on:form-dialog-cancle="FormDialogCancle"></form-dialog>
  259. <el-form :model="userInfo" class="demo-form-inline" label-width="104px">
  260. <el-row :gutter="20">
  261. <el-col :span="6">
  262. <el-form-item label="透析日期 : " >
  263. <el-date-picker
  264. style="width:200px"
  265. v-model="dialysisTime"
  266. type="date"
  267. @change="schedualPickTime"
  268. placeholder="选择日期">
  269. </el-date-picker>
  270. </el-form-item>
  271. <el-form-item label="性别 : ">
  272. <el-input v-model="userInfo.gender" :disabled="true"></el-input>
  273. </el-form-item>
  274. </el-col>
  275. <el-col :span="6">
  276. <el-form-item label="姓名 : ">
  277. <el-input v-model="userInfo.userName" :disabled="true"></el-input>
  278. </el-form-item>
  279. <el-form-item label="机号 : ">
  280. <el-input v-model="userInfo.bed" :disabled="true"></el-input>
  281. </el-form-item>
  282. </el-col>
  283. <el-col :span="6">
  284. <el-form-item label="年龄 : ">
  285. <el-input v-model="userInfo.age" :disabled="true"></el-input>
  286. </el-form-item>
  287. <el-form-item label="来源 : ">
  288. <el-radio v-model="radio" label="1" readonly="readonly">{{userInfo.label}}</el-radio>
  289. </el-form-item>
  290. </el-col>
  291. <el-col :span="6">
  292. <el-form-item label="透析号 : ">
  293. <el-input v-model="userInfo.dialysisNumber" :disabled="true"></el-input>
  294. </el-form-item>
  295. <el-form-item label="">
  296. <el-button type="primary" @click="printOrder">打印</el-button>
  297. </el-form-item>
  298. </el-col>
  299. </el-row>
  300. </el-form>
  301. <div class="border"></div>
  302. <p class="title">透析处方</p>
  303. <el-row>
  304. <el-col :span="23">
  305. <el-form :model="dialysisPrescription" class="demo-form-inline"
  306. :label-position="labelPosition"
  307. label-width="148px">
  308. <el-col :span="size">
  309. <el-form-item label="透析模式 : ">
  310. <el-select v-model="dialysisPrescription.dialysisMode" placeholder="请选择" style="width:100%;"
  311. @change="changeDialysisMode">
  312. <el-option v-for="item in modeOptions " :label="item.name" :value="item.id"
  313. :key="item.id"></el-option>
  314. </el-select>
  315. </el-form-item>
  316. </el-col>
  317. <el-col :span="size">
  318. <el-form-item label="透析时长(h) : ">
  319. <!-- <el-input v-model="dialysisPrescription.dialysisTime"></el-input> -->
  320. <el-time-picker
  321. v-model="dialysisTimeShow"
  322. :picker-options="{
  323. selectableRange: '00:01:00 - 23:59:00'
  324. }"
  325. placeholder="透析时长"
  326. style="width:100%;"
  327. value-format="H:m"
  328. format="H:m"
  329. @change="selectDialysisPrescriptionDialysisTime"
  330. >
  331. </el-time-picker>
  332. </el-form-item>
  333. </el-col>
  334. <el-col :span="size">
  335. <el-form-item label="透析机 : ">
  336. <el-select v-model="dialysisPrescription.machine" style="width:100%;" placeholder="请选择"
  337. @change="changeDialysisMachine">
  338. <el-option v-for="item in deviceList" :label="item.name"
  339. :value="item.id" :key="item.id"></el-option>
  340. </el-select>
  341. </el-form-item>
  342. </el-col>
  343. <!--<el-col :span="size">-->
  344. <!--<el-form-item label="机型 : ">-->
  345. <!--<el-input placeholder="请选择透析机" v-model="dialysisPrescription.machineType"-->
  346. <!--:disabled="true"></el-input>-->
  347. <!--</el-form-item>-->
  348. <!--</el-col>-->
  349. <el-col :span="size">
  350. <el-form-item label="灌流器 : ">
  351. <el-select v-model="dialysisPrescription.hemoperfusion" style="width:100%;"
  352. placeholder="请选择">
  353. <el-option v-for="item in perfusionApparatus " :label="item.name" :value="item.id"
  354. :key="item.id"></el-option>
  355. </el-select>
  356. </el-form-item>
  357. </el-col>
  358. <!--<el-col :span="size">-->
  359. <!--<el-form-item label="血透器 : ">-->
  360. <!--<el-select v-model="dialysisPrescription.hemodialysisDevice" placeholder="请选择" style="width:100%"-->
  361. <!--@change="changeDialysisMode"-->
  362. <!--:disabled="treatmentMode.hemodialysis_machine==1?false:true">-->
  363. <!--<el-option v-for="item in hemodialysisMachines " :label="item.name" :value="item.id"-->
  364. <!--:key="item.id"></el-option>-->
  365. <!--</el-select>-->
  366. <!--</el-form-item>-->
  367. <!--</el-col>-->
  368. <el-col :span="size">
  369. <el-form-item label="血流量(ml/min) : ">
  370. <el-input v-model="dialysisPrescription.bloodFlow"></el-input>
  371. </el-form-item>
  372. </el-col>
  373. <el-col :span="size">
  374. <el-form-item label="脱水量(L) : ">
  375. <el-input v-model="dialysisPrescription.targetDewateringAmount"></el-input>
  376. </el-form-item>
  377. </el-col>
  378. <!--<el-col :span="size">-->
  379. <!--<el-form-item label="目标脱水量(L) : ">-->
  380. <!--<el-input v-model="dialysisPrescription.targetDewateringAmount "></el-input>-->
  381. <!--</el-form-item>-->
  382. <!--</el-col>-->
  383. <!--<el-col :span="size">-->
  384. <!--<el-form-item label="处方脱水量(L) : ">-->
  385. <!--<el-input placeholder="医生设定" v-model="dialysisPrescription.prescriptionDehydration"></el-input>-->
  386. <!--</el-form-item>-->
  387. <!--</el-col>-->
  388. <el-col :span="size">
  389. <el-form-item label="置换液(L) : ">
  390. <el-input v-model="dialysisPrescription.displaceLiqui"></el-input>
  391. </el-form-item>
  392. </el-col>
  393. <el-col :span="size">
  394. <el-form-item label="置换方式 : ">
  395. <el-select v-model="dialysisPrescription.displacesMethod" placeholder="请选择" style="width:100%;"
  396. @change="changeDialysisMode">
  397. <el-option v-for="item in replacementWays " :label="item.name" :value="item.id"
  398. :key="item.id"></el-option>
  399. </el-select>
  400. </el-form-item>
  401. </el-col>
  402. <el-col :span="size">
  403. <el-form-item label="抗凝剂 : ">
  404. <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择" style="width:100%;"
  405. @change="changeThisAnticoagulant">
  406. <el-option v-for="item in anticoagulantsConfit" :label="item.name" :key="item.id"
  407. :value="item.id"></el-option>
  408. </el-select>
  409. </el-form-item>
  410. </el-col>
  411. <el-col :span="size" v-if="anticoagulant.shouji != -1">
  412. <el-form-item :label="'首剂('+anticoagulant.shouji_unit+') : '">
  413. <el-input v-model="dialysisPrescription.firstDose"></el-input>
  414. </el-form-item>
  415. </el-col>
  416. <el-col :span="size">
  417. <el-form-item :label="'维持('+anticoagulant.weichi_unit+') : '" v-if="anticoagulant.weichi != -1">
  418. <el-input v-model="dialysisPrescription.maintenance"></el-input>
  419. </el-form-item>
  420. </el-col>
  421. <el-col :span="size" v-if="anticoagulant.zongliang != -1">
  422. <el-form-item :label="'总量('+anticoagulant.zongliang_unit+') : '">
  423. <el-input v-model="dialysisPrescription.total"></el-input>
  424. </el-form-item>
  425. </el-col>
  426. <el-col :span="size" v-if="anticoagulant.gaimingcheng != -1">
  427. <el-form-item label="钙名称 : ">
  428. <el-input v-model="dialysisPrescription.gaimingcheng"
  429. :disabled="anticoagulant.gaimingcheng==1?false:true" placeholder="钙名称"></el-input>
  430. </el-form-item>
  431. </el-col>
  432. <el-col :span="size" v-if="anticoagulant.gaijiliang != -1">
  433. <el-form-item label="钙剂量(ml/h) : ">
  434. <el-input v-model="dialysisPrescription.gaijiliang"
  435. :disabled="anticoagulant.gaijiliang==1?false:true" placeholder="钙剂量"></el-input>
  436. </el-form-item>
  437. </el-col>
  438. <!--<el-col :span="size">-->
  439. <!--<el-form-item label="置换总量 : ">-->
  440. <!--<el-input v-model="dialysisPrescription.displacesTotal"-->
  441. <!--:disabled="treatmentMode.dialysis_duration==1?false:true"></el-input>-->
  442. <!--</el-form-item>-->
  443. <!--</el-col>-->
  444. <!--<el-col :span="size">-->
  445. <!--<el-form-item label="血滤器 : ">-->
  446. <!--<el-select v-model="dialysisPrescription.bloodFilterDevice" style="width:100%;"-->
  447. <!--:disabled="treatmentMode.blood_filter==1?false:true" placeholder="请选择">-->
  448. <!--<el-option v-for="item in bloodFilters " :label="item.name" :value="item.id"-->
  449. <!--:key="item.id"></el-option>-->
  450. <!--</el-select>-->
  451. <!--</el-form-item>-->
  452. <!--</el-col>-->
  453. <!-- <el-col :span="size">
  454. <div @click="showDialog('adjustDryWeight')">
  455. <el-form-item label="干体重 : ">
  456. <el-input v-model="dialysisPrescription.adjustDryWeight" readonly="readonly"></el-input>
  457. </el-form-item>
  458. </div>
  459. </el-col> -->
  460. <el-col :span="size">
  461. <div >
  462. <el-form-item label="干体重 : ">
  463. <el-input v-model="dialysisPrescription.adjustDryWeight" type="number"></el-input>
  464. </el-form-item>
  465. </div>
  466. </el-col>
  467. <el-col :span="size">
  468. <el-form-item label="目标超滤量(ml) : ">
  469. <el-input v-model="dialysisPrescription.target_ultrafiltration" type="number"></el-input>
  470. </el-form-item>
  471. </el-col>
  472. <el-col :span="24">
  473. <el-form-item label="透析液配方:">
  474. <el-radio v-model="dialysisPrescription.dialysate_formulation" label="1">常规</el-radio>
  475. <el-radio v-model="dialysisPrescription.dialysate_formulation" label="2">低钙(1.25mmol/L)</el-radio>
  476. <el-radio v-model="dialysisPrescription.dialysate_formulation" label="3">高钙(1.75mmol/L)</el-radio>
  477. <el-radio v-model="dialysisPrescription.dialysate_formulation" label="4">低钠(135mmol/L)</el-radio>
  478. <el-radio v-model="dialysisPrescription.dialysate_formulation" label="5">高钠(145mmol/L)</el-radio>
  479. </el-form-item>
  480. </el-col>
  481. <el-col :span="size">
  482. <el-form-item label="透析液流量(ml/min) : ">
  483. <el-input v-model="dialysisPrescription.dialysateFlow"
  484. :disabled="treatmentMode.dialysate_flow==1?false:true"></el-input>
  485. </el-form-item>
  486. </el-col>
  487. <el-col :span="size">
  488. <el-form-item label="透析液温度(℃) : ">
  489. <el-input v-model="dialysisPrescription.dialysate_temperature"
  490. :disabled="treatmentMode.dialysate_flow==1?false:true"></el-input>
  491. </el-form-item>
  492. </el-col>
  493. <el-col :span="size">
  494. <el-form-item label="钾(mmol/L) : ">
  495. <el-input v-model="dialysisPrescription.kalium"
  496. :disabled="treatmentMode.kalium==1?false:true"></el-input>
  497. </el-form-item>
  498. </el-col>
  499. <el-col :span="size">
  500. <el-form-item label="钠(mmol/L) : ">
  501. <el-input v-model="dialysisPrescription.sodium"
  502. :disabled="treatmentMode.sodium==1?false:true"></el-input>
  503. </el-form-item>
  504. </el-col>
  505. <el-col :span="size">
  506. <el-form-item label="钙(mmol/L) : ">
  507. <el-input v-model="dialysisPrescription.calcium"
  508. :disabled="treatmentMode.calcium==1?false:true"></el-input>
  509. </el-form-item>
  510. </el-col>
  511. <el-col :span="size">
  512. <el-form-item label="碳酸氢盐(mmol/L) : ">
  513. <el-input v-model="dialysisPrescription.bicarbonate"
  514. :disabled="treatmentMode.bicarbonate==1?false:true"></el-input>
  515. </el-form-item>
  516. </el-col>
  517. <el-col :span="size">
  518. <el-form-item label="葡萄糖(mmol/L) : ">
  519. <el-input v-model="dialysisPrescription.glucose"
  520. :disabled="treatmentMode.bicarbonate==1?false:true"></el-input>
  521. </el-form-item>
  522. </el-col>
  523. <el-col :span="size">
  524. <el-form-item label="电导率(mmol/L) : ">
  525. <el-input v-model="dialysisPrescription.conductivity "></el-input>
  526. </el-form-item>
  527. </el-col>
  528. <!--<el-col :span="10">-->
  529. <!--<el-form-item label="血管通路 : ">-->
  530. <!--<el-select v-model="dialysisPrescription.vascularAccess" placeholder="请选择" style="width:100%;">-->
  531. <!--<el-option v-for="item in vascularAccess " :label="item.name" :value="item.id"-->
  532. <!--:key="item.id"></el-option>-->
  533. <!--</el-select>-->
  534. <!--</el-form-item>-->
  535. <!--</el-col>-->
  536. <!--<el-col :span="size">-->
  537. <!--<el-form-item label-width="10px">-->
  538. <!--<el-select v-model="dialysisPrescription.vascularAccessDesc" placeholder="请选择">-->
  539. <!--<el-option v-for="item in vascularAccessDesc " :label="item.name" :value="item.id"-->
  540. <!--:key="item.id"></el-option>-->
  541. <!--</el-select>-->
  542. <!--</el-form-item>-->
  543. <!--</el-col>-->
  544. <el-col :span="24">
  545. <el-form-item label="备注 : ">
  546. <el-input type="textarea" :rows="5" v-model="dialysisPrescription.remark"
  547. placeholder="请输入内容">
  548. </el-input>
  549. </el-form-item>
  550. </el-col>
  551. <el-col :span="22">
  552. <el-form-item>
  553. <p>{{ DialysisPrescriptionComfirmUserName }}</p>
  554. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescriptionAndOther">提交并设为长期处方</el-button>
  555. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescription">提交</el-button>
  556. <el-button type="primary" @click="printDan">打印上机单</el-button>
  557. </el-form-item>
  558. </el-col>
  559. </el-form>
  560. </el-col>
  561. </el-row>
  562. <div style="display:none">
  563. <div id="shangjidan" class="shangjidan">
  564. <div class="dan-title">上机单</div>
  565. <table class="dan-table">
  566. <tbody>
  567. <tr>
  568. <td class="dan-td-col-2">姓名</td>
  569. <td class="dan-td">
  570. <div class="dan-value">{{userInfo.userName}}</div>
  571. </td>
  572. <td class="dan-td-col-2">性别</td>
  573. <td class="dan-td">
  574. <div class="dan-value">{{userInfo.gender}}</div>
  575. </td>
  576. <td class="dan-td-col-2">年龄</td>
  577. <td class="dan-td">
  578. <div class="dan-value">{{userInfo.age}}</div>
  579. </td>
  580. </tr>
  581. </tbody>
  582. </table>
  583. <table class="dan-table">
  584. <tbody>
  585. <tr>
  586. <td class="dan-td-col-4">出生日期</td>
  587. <td class="dan-td">
  588. <div class="dan-value">{{userInfo.birthdate}}</div>
  589. </td>
  590. <td class="dan-td-col-3">透析号</td>
  591. <td class="dan-td">
  592. <div class="dan-value">{{userInfo.dialysisNumber}}</div>
  593. </td>
  594. <td class="dan-td-col-2">机号</td>
  595. <td class="dan-td">
  596. <div class="dan-value "><b class="print-b">{{userInfo.bed}}</b></div>
  597. </td>
  598. </tr>
  599. </tbody>
  600. </table>
  601. <table class="dan-table">
  602. <tbody>
  603. <tr>
  604. <td class="dan-td-col-4">处方医生</td>
  605. <td class="dan-td">
  606. <div class="dan-value">{{danPrintData.doctor}}</div>
  607. </td>
  608. <td class="dan-td-col-4">处方时间</td>
  609. <td class="dan-td">
  610. <div class="dan-value">{{danPrintData.time}}</div>
  611. </td>
  612. </tr>
  613. </tbody>
  614. </table>
  615. <div style="border:1px solid #666;margin:15px 0px; ">
  616. <div class="dan-title">透前信息</div>
  617. <div class="dan-main">
  618. <table class="dan-table" style="margin-top: 0px;">
  619. <tbody>
  620. <tr>
  621. <td class="dan-td-col-4">透前称重</td>
  622. <td class="dan-td">
  623. <div class="dan-value"><b class="print-b">{{danPrintData.weight_before}}</b></div>
  624. </td>
  625. <td>kg</td>
  626. <td class="dan-td-col-3">衣物重</td>
  627. <td class="dan-td">
  628. <div class="dan-value">{{danPrintData.additional_weight}}</div>
  629. </td>
  630. <td>kg</td>
  631. </tr>
  632. </tbody>
  633. </table>
  634. <table class="dan-table">
  635. <tbody>
  636. <tr>
  637. <td class="dan-td-col-4">透前血压</td>
  638. <td class="dan-td">
  639. <div class="dan-value"><b class="print-b">{{danPrintData.systolic_blood_pressure}}/{{danPrintData.diastolic_blood_pressure}}</b>
  640. </div>
  641. </td>
  642. <td>mmHg</td>
  643. <td class="dan-td-col-4">心率</td>
  644. <td class="dan-td">
  645. <div class="dan-value ">{{danPrintData.breathing_rate}}</div>
  646. </td>
  647. <td>次/分</td>
  648. </tr>
  649. </tbody>
  650. </table>
  651. </div>
  652. <div class="dan-title">处方内容</div>
  653. <div class="dan-main" style="border:1px solid #666;margin:15px 0px;">
  654. <table class="dan-table">
  655. <tbody>
  656. <tr>
  657. <td class="dan-td-col-4">透析模式</td>
  658. <td class="dan-td">
  659. <div class="dan-value">
  660. <b class="print-b">{{danPrintData.modelName}}</b>
  661. </div>
  662. </td>
  663. <td class="dan-td-col-4">透析时长</td>
  664. <td class="dan-td">
  665. <div class="dan-value ">{{danPrintData.dialysis_duration}}
  666. </div>
  667. </td>
  668. <td>h</td>
  669. <td class="dan-td-col-3">透析机</td>
  670. <td class="dan-td">
  671. <div class="dan-value ">{{danPrintData.dialyzer}}
  672. </div>
  673. </td>
  674. </tr>
  675. </tbody>
  676. </table>
  677. <table class="dan-table">
  678. <tbody>
  679. <tr>
  680. <td class="dan-td-col-3">灌流器</td>
  681. <td class="dan-td">
  682. <div class="dan-value">
  683. {{danPrintData.perfusion_apparatus}}
  684. </div>
  685. </td>
  686. <td class="dan-td-col-3">血流量</td>
  687. <td class="dan-td">
  688. <div class="dan-value ">{{danPrintData.blood_flow_volume}}
  689. </div>
  690. </td>
  691. <td>ml/min</td>
  692. <td class="dan-td-col-3">脱水量</td>
  693. <td class="dan-td">
  694. <div class="dan-value ">{{danPrintData.dewater_amount}}
  695. </div>
  696. </td>
  697. <td>L</td>
  698. </tr>
  699. </tbody>
  700. </table>
  701. <table class="dan-table">
  702. <tbody>
  703. <tr>
  704. <td class="dan-td-col-3">置换液</td>
  705. <td class="dan-td">
  706. <div class="dan-value">
  707. {{danPrintData.displace_liqui}}
  708. </div>
  709. </td>
  710. <td>L</td>
  711. <td class="dan-td-col-4">置换方式</td>
  712. <td class="dan-td">
  713. <div class="dan-value ">{{danPrintData.replacement_way}}
  714. </div>
  715. </td>
  716. </tr>
  717. </tbody>
  718. </table>
  719. <table class="dan-table">
  720. <tbody>
  721. <tr>
  722. <td class="dan-td-col-3">抗凝剂</td>
  723. <td class="dan-td">
  724. <div class="dan-value">
  725. {{danPrintData.anticoagulant}}
  726. </div>
  727. </td>
  728. <template v-if="danPrintData.AlPanel.shouji != -1">
  729. <td class="dan-td-col-2">首剂</td>
  730. <td class="dan-td">
  731. <div class="dan-value ">{{danPrintData.anticoagulant_shouji}}
  732. </div>
  733. </td>
  734. <td>{{danPrintData.AlPanel.shouji_unit}}</td>
  735. </template>
  736. <template v-if="danPrintData.AlPanel.weichi != -1">
  737. <td class="dan-td-col-2">维持</td>
  738. <td class="dan-td">
  739. <div class="dan-value ">{{danPrintData.anticoagulant_weichi}}
  740. </div>
  741. </td>
  742. <td>{{danPrintData.AlPanel.weichi_unit}}</td>
  743. </template>
  744. <template v-if="danPrintData.AlPanel.zongliang != -1">
  745. <td class="dan-td-col-2">总量</td>
  746. <td class="dan-td">
  747. <div class="dan-value ">{{danPrintData.anticoagulant_zongliang}}
  748. </div>
  749. </td>
  750. <td>{{danPrintData.AlPanel.zongliang_unit}}</td>
  751. </template>
  752. <template v-if="danPrintData.AlPanel.gaimingcheng != -1">
  753. <td class="dan-td-col-3">钙名称</td>
  754. <td class="dan-td">
  755. <div class="dan-value ">{{danPrintData.anticoagulant_gaimingcheng}}
  756. </div>
  757. </td>
  758. <td>{{danPrintData.AlPanel.gaimingcheng_unit}}</td>
  759. </template>
  760. <template v-if="danPrintData.AlPanel.gaijiliang != -1">
  761. <td class="dan-td-col-3">钙剂量</td>
  762. <td class="dan-td">
  763. <div class="dan-value ">{{danPrintData.anticoagulant_gaijiliang}}
  764. </div>
  765. </td>
  766. <td>{{danPrintData.AlPanel.gaijiliang_unit}}</td>
  767. </template>
  768. </tr>
  769. </tbody>
  770. </table>
  771. <table class="dan-table">
  772. <tbody>
  773. <tr>
  774. <td class="dan-td-col-3">干体重</td>
  775. <td class="dan-td">
  776. <div class="dan-value">
  777. {{danPrintData.dry_weight}}
  778. </div>
  779. </td>
  780. <td>kg</td>
  781. <td class="dan-td-col-5">透析液流量</td>
  782. <td class="dan-td">
  783. <div class="dan-value ">{{danPrintData.dialysate_flow}}
  784. </div>
  785. </td>
  786. <td>ml/min</td>
  787. <td class="dan-td-col-5">透析液温度</td>
  788. <td class="dan-td">
  789. <div class="dan-value ">{{danPrintData.dialysate_temperature}}
  790. </div>
  791. </td>
  792. <td>℃</td>
  793. </tr>
  794. </tbody>
  795. </table>
  796. <table class="dan-table">
  797. <tbody>
  798. <tr>
  799. <td class="dan-td-col-1">钾</td>
  800. <td class="dan-td">
  801. <div class="dan-value">
  802. {{danPrintData.kalium}}
  803. </div>
  804. </td>
  805. <td>mmol/L</td>
  806. <td class="dan-td-col-1">钠</td>
  807. <td class="dan-td">
  808. <div class="dan-value ">{{danPrintData.sodium}}
  809. </div>
  810. </td>
  811. <td>mmol/L</td>
  812. <td class="dan-td-col-1">钙</td>
  813. <td class="dan-td">
  814. <div class="dan-value ">{{danPrintData.calcium}}
  815. </div>
  816. </td>
  817. <td>mmol/L</td>
  818. </tr>
  819. </tbody>
  820. </table>
  821. <table class="dan-table">
  822. <tbody>
  823. <tr>
  824. <td class="dan-td-col-4">碳酸氢盐</td>
  825. <td class="dan-td">
  826. <div class="dan-value">
  827. {{danPrintData.bicarbonate}}
  828. </div>
  829. </td>
  830. <td>mmol/L</td>
  831. <td class="dan-td-col-3">葡萄糖</td>
  832. <td class="dan-td">
  833. <div class="dan-value ">{{danPrintData.glucose}}
  834. </div>
  835. </td>
  836. <td>mmol/L</td>
  837. <td class="dan-td-col-3">电导率</td>
  838. <td class="dan-td">
  839. <div class="dan-value ">{{danPrintData.conductivity}}
  840. </div>
  841. </td>
  842. <td>mmol/L</td>
  843. </tr>
  844. </tbody>
  845. </table>
  846. </div>
  847. <div class="dan-title">备注</div>
  848. <div class="dan-main">
  849. <table class="dan-table">
  850. <tbody>
  851. <tr>
  852. <td class="">
  853. <div class="">{{danPrintData.remark}}</div>
  854. </td>
  855. </tr>
  856. </tbody>
  857. </table>
  858. </div>
  859. </div>
  860. </div>
  861. </div>
  862. <div class="border"></div>
  863. <el-row>
  864. <p class="title">接诊评估</p>
  865. <el-col :span="24">
  866. <el-form :model="receiveTreatmentAsses" class="demo-form-inline" label-width="110px">
  867. <el-form-item label="入室方式 : ">
  868. <el-radio v-model="receiveTreatmentAsses.way" label="1">步行</el-radio>
  869. <el-radio v-model="receiveTreatmentAsses.way" label="2">扶行</el-radio>
  870. <el-radio v-model="receiveTreatmentAsses.way" label="3">轮椅</el-radio>
  871. <el-radio v-model="receiveTreatmentAsses.way" label="4">平车</el-radio>
  872. </el-form-item>
  873. <el-form-item label="病人意识 : ">
  874. <el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>
  875. <el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>
  876. <el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>
  877. <el-radio v-model="receiveTreatmentAsses.consciousness" label="4">模糊</el-radio>
  878. </el-form-item>
  879. <el-form-item label="病人食欲 : ">
  880. <el-radio v-model="receiveTreatmentAsses.appetite" label="1">正常</el-radio>
  881. <el-radio v-model="receiveTreatmentAsses.appetite" label="2">减退</el-radio>
  882. <el-radio v-model="receiveTreatmentAsses.appetite" label="3">恶心</el-radio>
  883. <el-radio v-model="receiveTreatmentAsses.appetite" label="4">呕吐</el-radio>
  884. <el-radio v-model="receiveTreatmentAsses.appetite" label="5">腹泻</el-radio>
  885. </el-form-item>
  886. <el-form-item label="病人情况 : ">
  887. <el-radio v-model="receiveTreatmentAsses.condition" label="1">住院</el-radio>
  888. <el-radio v-model="receiveTreatmentAsses.condition" label="2">手术期</el-radio>
  889. </el-form-item>
  890. <el-form-item label="体位 : ">
  891. <el-radio v-model="receiveTreatmentAsses.posture" label="1">自动体位</el-radio>
  892. <el-radio v-model="receiveTreatmentAsses.posture" label="2">平卧位</el-radio>
  893. <el-radio v-model="receiveTreatmentAsses.posture" label="3">半卧位</el-radio>
  894. <el-radio v-model="receiveTreatmentAsses.posture" label="4">端坐位</el-radio>
  895. <el-radio v-model="receiveTreatmentAsses.posture" label="5">躁动不安</el-radio>
  896. </el-form-item>
  897. <el-form-item>
  898. <p>{{CommitReceiveTreatmentAssesComfirmUserName}}</p>
  899. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitReceiveTreatmentAssesRecord">提交</el-button>
  900. </el-form-item>
  901. </el-form>
  902. </el-col>
  903. </el-row>
  904. <div class="border"></div>
  905. <el-row>
  906. <p class="title">透前评估</p>
  907. <el-col :span="23">
  908. <el-form :model="dialysisBeforeAsses" class="demo-form-inline"
  909. :label-position="labelPosition"
  910. label-width="140px">
  911. <el-col :span="size">
  912. <el-form-item label="血压(mmhg):">
  913. <el-input style="width: 60px" v-model="dialysisBeforeAsses.systolic"></el-input>
  914. <label>/</label>
  915. <el-input style="width: 60px" v-model="dialysisBeforeAsses.diastolic"></el-input>
  916. </el-form-item>
  917. </el-col>
  918. <el-col :span="size">
  919. <el-form-item label="体温(℃):">
  920. <el-input v-model="dialysisBeforeAsses.T"></el-input>
  921. </el-form-item>
  922. </el-col>
  923. <el-col :span="size">
  924. <el-form-item label="心率(次/分):">
  925. <el-input v-model="dialysisBeforeAsses.R"></el-input>
  926. </el-form-item>
  927. </el-col>
  928. <!--<el-col :span="size">-->
  929. <!--<el-form-item label="干体重(kg):">-->
  930. <!--<el-input v-model="dialysisBeforeAsses.dryWeight"></el-input>-->
  931. <!--</el-form-item>-->
  932. <!--</el-col>-->
  933. <!--<el-col :span="size">-->
  934. <!--<el-form-item label="上次透后体重(kg):">-->
  935. <!--<el-input v-model="dialysisBeforeAsses.lastdialysisAfterWeight"></el-input>-->
  936. <!--</el-form-item>-->
  937. <!--</el-col>-->
  938. <!--<el-col :span="size">-->
  939. <!--<el-form-item label="称重方式:">-->
  940. <!--<el-select v-model="dialysisBeforeAsses.weightWay" placeholder="请选择">-->
  941. <!--<el-option label="正常" value="1"></el-option>-->
  942. <!--<el-option label="卧床" value="2"></el-option>-->
  943. <!--<el-option label="拒测" value="3"></el-option>-->
  944. <!--</el-select>-->
  945. <!--</el-form-item>-->
  946. <!--</el-col>-->
  947. <!--<el-col :span="size">-->
  948. <!--<el-form-item label="透前称重(kg):">-->
  949. <!--<el-input v-model="dialysisBeforeAsses.dialysisbeforeWeighed"></el-input>-->
  950. <!--</el-form-item>-->
  951. <!--</el-col>-->
  952. <el-col :span="size">
  953. <el-form-item label="附加物重(kg):">
  954. <el-input v-model="dialysisBeforeAsses.clothingWeight"></el-input>
  955. </el-form-item>
  956. </el-col>
  957. <el-col :span="size">
  958. <el-form-item label="透前称重(kg):">
  959. <el-input v-model="dialysisBeforeAsses.dialysisbeforeWeight"></el-input>
  960. </el-form-item>
  961. </el-col>
  962. <!--<el-col :span="size">-->
  963. <!--<el-form-item label="体重增加(kg):">-->
  964. <!--<el-input v-model="dialysisBeforeAsses.weightAdd"></el-input>-->
  965. <!--</el-form-item>-->
  966. <!--</el-col>-->
  967. <!--<el-col :span="size">-->
  968. <!--<el-form-item label="预增脱水量(L):">-->
  969. <!--<el-input v-model="dialysisBeforeAsses.PreDrinkingAmount"></el-input>-->
  970. <!--</el-form-item>-->
  971. <!--</el-col>-->
  972. <!--<el-col :span="size">-->
  973. <!--<el-form-item label="超滤总量(L):">-->
  974. <!--<el-input v-model="dialysisBeforeAsses.totalAmountOfUltrafiltration"></el-input>-->
  975. <!--</el-form-item>-->
  976. <!--</el-col>-->
  977. <el-col :span="size">
  978. <div @click="showDialog('dialysisInterval')">
  979. <el-form-item label="透析间期:">
  980. <el-input v-model="dialysisBeforeAsses.dialysisInterval"></el-input>
  981. </el-form-item>
  982. </div>
  983. </el-col>
  984. <el-col :span="size">
  985. <div @click="showDialog('afterTheLastDialysis')">
  986. <el-form-item label="前次透析后:">
  987. <el-input v-model="dialysisBeforeAsses.afterTheLastDialysis"></el-input>
  988. </el-form-item>
  989. </div>
  990. </el-col>
  991. <el-col :span="size">
  992. <div @click="showDialog('dialysisBeforePreExistingSymptoms')">
  993. <el-form-item label="透前症状:">
  994. <el-input v-model="dialysisBeforeAsses.preExistingSymptoms"></el-input>
  995. </el-form-item>
  996. </div>
  997. </el-col>
  998. <el-col :span="size">
  999. <div @click="showDialog('dialysisBeforeGuilty')">
  1000. <el-form-item label="内瘘:">
  1001. <el-input v-model="dialysisBeforeAsses.guilty"></el-input>
  1002. </el-form-item>
  1003. </div>
  1004. </el-col>
  1005. <el-col :span="size">
  1006. <div @click="showDialog('dialysisBeforeCatheter')">
  1007. <el-form-item label="导管:">
  1008. <el-input v-model="dialysisBeforeAsses.catheter"></el-input>
  1009. </el-form-item>
  1010. </div>
  1011. </el-col>
  1012. <el-col :span="size">
  1013. <div @click="showDialog('dialysisBeforeComplications')">
  1014. <el-form-item label="合并症:">
  1015. <el-input v-model="dialysisBeforeAsses.complications"></el-input>
  1016. </el-form-item>
  1017. </div>
  1018. </el-col>
  1019. <el-col :span="size">
  1020. <el-form-item label="血管通路部位:">
  1021. <el-select v-model="dialysisBeforeAsses.blood_access_part_id" placeholder="请选择">
  1022. <el-option
  1023. v-for="item in vascularAccess"
  1024. :key="item.id"
  1025. :label="item.name"
  1026. :value="item.id">
  1027. </el-option>
  1028. </el-select>
  1029. </el-form-item>
  1030. </el-col>
  1031. <el-col :span="size">
  1032. <el-form-item label="血管通路操作:">
  1033. <el-select v-model="dialysisBeforeAsses.blood_access_part_opera_id" placeholder="请选择">
  1034. <el-option
  1035. v-for="item in vascularAccessDesc"
  1036. :key="item.id"
  1037. :label="item.name"
  1038. :value="item.id">
  1039. </el-option>
  1040. </el-select>
  1041. </el-form-item>
  1042. </el-col>
  1043. <el-col :span="24">
  1044. <el-form-item label="出血:">
  1045. <el-radio v-model="dialysisBeforeAsses.is_hemorrhage" label="2">否</el-radio>
  1046. <el-radio v-model="dialysisBeforeAsses.is_hemorrhage" label="1">是</el-radio>
  1047. </el-form-item>
  1048. </el-col>
  1049. <el-col :span="24" v-show="dialysisBeforeAsses.is_hemorrhage==1">
  1050. <el-form-item label="" prop="hemorrhage_value">
  1051. <el-checkbox-group v-model="dialysisBeforeAsses.hemorrhage_value">
  1052. <el-checkbox v-for="item in hemorrhageOptions" :label="item.label" :key="item.value" :value="item.label">{{item.label}}</el-checkbox>
  1053. </el-checkbox-group>
  1054. </el-form-item>
  1055. </el-col>
  1056. <el-col :span="24" v-show="dialysisBeforeAsses.is_hemorrhage==1">
  1057. <el-form-item label="">
  1058. <el-input v-model="dialysisBeforeAsses.hemorrhage_other" placeholder="若有其他出血情况,请填写"></el-input>
  1059. </el-form-item>
  1060. </el-col>
  1061. <el-col style="width: 100%" :span="24">
  1062. <el-form-item label="备注 : ">
  1063. <el-input type="textarea" :row="5" v-model="dialysisBeforeAsses.remark"
  1064. placeholder="请输入内容">
  1065. </el-input>
  1066. </el-form-item>
  1067. </el-col>
  1068. <el-col :span="22">
  1069. <el-form-item>
  1070. <p>{{DialysisBeforeAssesComfirmUserName}}</p>
  1071. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="submitDialysisBeforeAssesForm">提交</el-button>
  1072. </el-form-item>
  1073. </el-col>
  1074. </el-form>
  1075. </el-col>
  1076. </el-row>
  1077. <div class="border"></div>
  1078. <el-row>
  1079. <p class="title">临时医嘱</p>
  1080. <el-col :span="24">
  1081. <el-col style="margin:0 25px 25px 0;">
  1082. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="success" @click="stat_order_action">新增医嘱</el-button>
  1083. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="execution_action">执行医嘱</el-button>
  1084. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="danger" @click="delete_action">删除</el-button>
  1085. </el-col>
  1086. <el-table
  1087. ref="singleTable"
  1088. highlight-current-row
  1089. :data="adviceTableData"
  1090. @row-click="onRowClick"
  1091. :row-class-name="tableRowClassName"
  1092. border
  1093. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
  1094. style="width: 100%;margin:0 0 30px 0;">
  1095. <!--<el-table-column-->
  1096. <!--prop="advice_doctor"-->
  1097. <!--label="开嘱医生"-->
  1098. <!--align="center"-->
  1099. <!--&gt;-->
  1100. <!--</el-table-column>-->
  1101. <el-table-column key="advice_doctor" label="开嘱医生" min-width="80" property="advice_doctor" align="center">
  1102. <template slot-scope="scope">
  1103. {{getXuserName(scope.row.advice_doctor)}}
  1104. </template>
  1105. </el-table-column>
  1106. <el-table-column
  1107. prop="start_time"
  1108. label="开始时间"
  1109. align="center"
  1110. >
  1111. </el-table-column>
  1112. <el-table-column
  1113. prop="advice_content"
  1114. align="center"
  1115. label="医嘱内容">
  1116. </el-table-column>
  1117. <el-table-column
  1118. prop="execution_time"
  1119. align="center"
  1120. label="执行时间">
  1121. </el-table-column>
  1122. <el-table-column
  1123. prop="execution_staff"
  1124. align="center"
  1125. label="执行护士">
  1126. <template slot-scope="scope">
  1127. <span v-if="scope.row.parent_id==0">{{getXuserName(scope.row.execution_staff)}}</span>
  1128. </template>
  1129. </el-table-column>
  1130. <el-table-column
  1131. prop="checker"
  1132. align="center"
  1133. label="核对人员">
  1134. <template slot-scope="scope">
  1135. <span v-if="scope.row.parent_id==0">{{getXuserName(scope.row.checker)}}</span>
  1136. </template>
  1137. </el-table-column>
  1138. </el-table>
  1139. </el-col>
  1140. </el-row>
  1141. <div class="border"></div>
  1142. <el-row>
  1143. <el-col :span="23">
  1144. <p class="title">透析上机</p>
  1145. <el-form>
  1146. <el-form-item>
  1147. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="startDialysis">执行上机</el-button>
  1148. </el-form-item>
  1149. </el-form>
  1150. </el-col>
  1151. </el-row>
  1152. <div class="border"></div>
  1153. <el-row>
  1154. <p class="title">双人核对</p>
  1155. <el-col :span="24">
  1156. <el-col style="margin:0 0 25px 0;">
  1157. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDoubleCheck">保 存</el-button>
  1158. </el-col>
  1159. <el-form :model="doubleReview" class="demo-form-inline" label-width="110px">
  1160. <el-form-item label="透析物品核查 : ">
  1161. <el-radio v-model="doubleReview.dialysis_item_check" label="1">正确</el-radio>
  1162. <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio>
  1163. <label style="margin-left: 30px;color: #2d2f33">差错 : </label>
  1164. <el-input style="width: 60%;" v-model="doubleReview.dialysis_item_desc"></el-input>
  1165. </el-form-item>
  1166. <el-form-item label="透析参数核查 : ">
  1167. <el-radio v-model="doubleReview.dialysis_parameter_check" label="1">正确</el-radio>
  1168. <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio>
  1169. <label style="margin-left: 30px;color: #2d2f33">差错 : </label>
  1170. <el-input style="width: 60%;" v-model="doubleReview.dialysis_parameter_desc"></el-input>
  1171. </el-form-item>
  1172. <el-form-item label="血管通路核查 : ">
  1173. <el-radio v-model="doubleReview.vascular_access_verification" label="1">正确</el-radio>
  1174. <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio>
  1175. <label style="margin-left: 30px;color: #2d2f33">差错 : </label>
  1176. <el-input style="width: 60%;" v-model="doubleReview.vascular_access_desc"></el-input>
  1177. </el-form-item>
  1178. <el-form-item label="管道连接核查 : ">
  1179. <el-radio v-model="doubleReview.pipeline_connection_check" label="1">正确</el-radio>
  1180. <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio>
  1181. <label style="margin-left: 30px;color: #2d2f33">差错 : </label>
  1182. <el-input style="width: 60%;" v-model="doubleReview.pipeline_connection_desc"></el-input>
  1183. </el-form-item>
  1184. <p>{{DoubleCheckComfirmUserName}}</p>
  1185. </el-form>
  1186. </el-col>
  1187. </el-row>
  1188. <div class="border"></div>
  1189. <el-row>
  1190. <p class="title">透析监测</p>
  1191. <el-col :span="24">
  1192. <el-col style="margin:0 0 25px 0;">
  1193. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="success" @click="isVisibiltyForMonitorDialog = true">新增监测</el-button>
  1194. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="danger" @click="delMonitor">删除</el-button>
  1195. </el-col>
  1196. <el-table
  1197. :data="monitoringRecordTableData"
  1198. border
  1199. highlight-current-row
  1200. @row-click="onMonitorRowClick"
  1201. :row-class-name="tableMonitorRowClassName"
  1202. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
  1203. style="margin:0 0 25px 0;">
  1204. <el-table-column
  1205. prop="time"
  1206. label="时间"
  1207. align="center"
  1208. width="100">
  1209. </el-table-column>
  1210. <el-table-column
  1211. prop="PB"
  1212. label="血压(mmhg)"
  1213. align="center"
  1214. width="100">
  1215. </el-table-column>
  1216. <el-table-column
  1217. prop="pulse_frequency"
  1218. align="center"
  1219. label="脉率(次/分)"
  1220. width="100"
  1221. >
  1222. </el-table-column>
  1223. <el-table-column
  1224. prop="breathing_rate"
  1225. align="center"
  1226. width="100"
  1227. label="呼吸(次/分)">
  1228. </el-table-column>
  1229. <el-table-column
  1230. prop="blood_flow_volume"
  1231. align="center"
  1232. width="100"
  1233. label="血流量(ml/min)">
  1234. </el-table-column>
  1235. <el-table-column
  1236. prop="venous_pressure"
  1237. label="静脉压(mmhg)"
  1238. align="center"
  1239. width="100"
  1240. >
  1241. </el-table-column>
  1242. <el-table-column
  1243. prop="transmembrane_pressure"
  1244. label="跨膜压(mmhg)"
  1245. align="center"
  1246. width="100">
  1247. </el-table-column>
  1248. <el-table-column
  1249. prop="ultrafiltration_volume"
  1250. align="center"
  1251. width="100"
  1252. label="超滤量(ml/h)">
  1253. </el-table-column>
  1254. <el-table-column
  1255. prop="sodium_concentration"
  1256. align="center"
  1257. width="100"
  1258. label="钠浓度(mmol/L)">
  1259. </el-table-column>
  1260. <el-table-column
  1261. prop="dialysate_temperature"
  1262. align="center"
  1263. width="100"
  1264. label="透析液温度(℃)">
  1265. </el-table-column>
  1266. <el-table-column
  1267. prop="replacement_rate"
  1268. label="置换率(ml/min)"
  1269. align="center"
  1270. width="100">
  1271. </el-table-column>
  1272. <el-table-column
  1273. prop="displacement_quantity"
  1274. label="置换量(L)"
  1275. align="center"
  1276. width="100">
  1277. </el-table-column>
  1278. <el-table-column
  1279. prop="symptom"
  1280. align="center"
  1281. width="120"
  1282. label="病情变化">
  1283. </el-table-column>
  1284. <el-table-column
  1285. prop="dispose"
  1286. align="center"
  1287. width="120"
  1288. label="处理">
  1289. </el-table-column>
  1290. <el-table-column
  1291. prop="result"
  1292. width="120"
  1293. align="center"
  1294. label="结果">
  1295. </el-table-column>
  1296. </el-table>
  1297. </el-col>
  1298. </el-row>
  1299. <div class="border"></div>
  1300. <el-row>
  1301. <el-col :span="23">
  1302. <p class="title">透析下机</p>
  1303. <el-form>
  1304. <el-form-item>
  1305. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="finishDialysis">执行下机</el-button>
  1306. </el-form-item>
  1307. </el-form>
  1308. </el-col>
  1309. </el-row>
  1310. <div class="border"></div>
  1311. <el-row>
  1312. <p class="title">透后评估</p>
  1313. <el-col :span="24">
  1314. <el-form :model="dialysisAfterAsses" class="demo-form-inline"
  1315. :label-position="labelPosition"
  1316. label-width="140px">
  1317. <el-col :span="size">
  1318. <el-form-item label="透后称重(kg):">
  1319. <el-input v-model="dialysisAfterAsses.weightAfterDialysi"></el-input>
  1320. </el-form-item>
  1321. </el-col>
  1322. <el-col :span="size">
  1323. <el-form-item label="体重减少(kg):">
  1324. <el-input v-model="dialysisAfterAsses.weightReduce"></el-input>
  1325. </el-form-item>
  1326. </el-col>
  1327. <el-col :span="size">
  1328. <el-form-item label="体温(℃) : ">
  1329. <el-input v-model="dialysisAfterAsses.T"></el-input>
  1330. </el-form-item>
  1331. </el-col>
  1332. <el-col :span="size">
  1333. <el-form-item label="血压(mmhg) : ">
  1334. <!--<el-select v-model="dialysisAfterAsses.part" :value="dialysisAfterAsses.part" placeholder="请选择"-->
  1335. <!--style="width:50%;">-->
  1336. <!--<el-option v-for="item in bpTypeData" :key="item.id" :label="item.text"-->
  1337. <!--:value="item.id"></el-option>-->
  1338. <!--</el-select>-->
  1339. <el-input style="width: 70px" v-model="dialysisAfterAsses.systolic"></el-input>
  1340. <label>/</label>
  1341. <el-input style="width: 70px" v-model="dialysisAfterAsses.diastolic"></el-input>
  1342. </el-form-item>
  1343. </el-col>
  1344. <el-col :span="size">
  1345. <el-form-item label="脉率(次/分) : ">
  1346. <el-input v-model="dialysisAfterAsses.P"></el-input>
  1347. </el-form-item>
  1348. </el-col>
  1349. <!-- <el-col :span="size">
  1350. <el-form-item label="心率(次/分) : ">
  1351. <el-input v-model="dialysisAfterAsses.R"></el-input>
  1352. </el-form-item>
  1353. </el-col> -->
  1354. <el-col :span="size">
  1355. <el-form-item label="实际超滤量(ml) : ">
  1356. <el-input v-model="dialysisAfterAsses.actualUfv"></el-input>
  1357. </el-form-item>
  1358. </el-col>
  1359. <el-col :span="size">
  1360. <el-form-item label="实际置换量(L) : ">
  1361. <el-input v-model="dialysisAfterAsses.actualSubstituteFluidvolume"></el-input>
  1362. </el-form-item>
  1363. </el-col>
  1364. <el-col :span="size">
  1365. <el-form-item label="实际治疗时长 : ">
  1366. <el-input style="width:30%;" v-model="dialysisAfterAsses.actualtreatHour"></el-input>
  1367. <label>h</label>
  1368. <el-input style="width:30%;" v-model="dialysisAfterAsses.actualtreatmin"></el-input>
  1369. <label>min</label>
  1370. </el-form-item>
  1371. </el-col>
  1372. <el-col :span="size">
  1373. <div @click="showDialog('cruor')">
  1374. <el-form-item label="凝血 : ">
  1375. <el-input v-model="dialysisAfterAsses.cruor" :value="dialysisAfterAsses.cruor"
  1376. :readonly="true"></el-input>
  1377. </el-form-item>
  1378. </div>
  1379. </el-col>
  1380. <el-col :span="size">
  1381. <div @click="showDialog('symptomsAfterDialysi')">
  1382. <el-form-item label="透后症状 : ">
  1383. <el-input v-model="dialysisAfterAsses.symptomsAfterDialysi"
  1384. :value="dialysisAfterAsses.symptomsAfterDialysi" :readonly="true"></el-input>
  1385. </el-form-item>
  1386. </div>
  1387. </el-col>
  1388. <el-col :span="size">
  1389. <div @click="showDialog('dialysateVolume')">
  1390. <el-form-item label="透析中入量 : ">
  1391. <el-input v-model="dialysisAfterAsses.dialysateVolume" :value="dialysisAfterAsses.dialysateVolume"
  1392. :readonly="true"></el-input>
  1393. </el-form-item>
  1394. </div>
  1395. </el-col>
  1396. <el-col :span="size">
  1397. <div @click="showDialog('fistula')">
  1398. <el-form-item label="内瘘 : ">
  1399. <el-input v-model="dialysisAfterAsses.fistula" :value="dialysisAfterAsses.fistula"
  1400. :readonly="true"></el-input>
  1401. </el-form-item>
  1402. </div>
  1403. </el-col>
  1404. <el-col :span="size">
  1405. <el-form-item label="血管通路部位:">
  1406. <el-select v-model="dialysisAfterAsses.blood_access_part_id" placeholder="请选择">
  1407. <el-option
  1408. v-for="item in vascularAccess"
  1409. :key="item.id"
  1410. :label="item.name"
  1411. :value="item.id">
  1412. </el-option>
  1413. </el-select>
  1414. </el-form-item>
  1415. </el-col>
  1416. <el-col :span="size">
  1417. <el-form-item label="血管通路操作:">
  1418. <el-select v-model="dialysisAfterAsses.blood_access_part_opera_id" placeholder="请选择">
  1419. <el-option
  1420. v-for="item in vascularAccessDesc"
  1421. :key="item.id"
  1422. :label="item.name"
  1423. :value="item.id">
  1424. </el-option>
  1425. </el-select>
  1426. </el-form-item>
  1427. </el-col>
  1428. <el-col :span="size">
  1429. <div @click="showDialog('pipe')">
  1430. <el-form-item label="导管 : ">
  1431. <el-input v-model="dialysisAfterAsses.pipe" :value="dialysisAfterAsses.pipe"
  1432. :readonly="true"></el-input>
  1433. </el-form-item>
  1434. </div>
  1435. </el-col>
  1436. <el-col :span="size">
  1437. <div @click="showDialog('complications')">
  1438. <el-form-item label="并发症 : ">
  1439. <el-input v-model="dialysisAfterAsses.complications" :value="dialysisAfterAsses.complications"
  1440. :readonly="true"></el-input>
  1441. </el-form-item>
  1442. </div>
  1443. </el-col>
  1444. <el-col :span="24">
  1445. <el-form-item label="拔针后穿刺点渗血:">
  1446. <el-radio v-model="dialysisAfterAsses.puncture_point_oozing_blood" label="1">有</el-radio>
  1447. <el-radio v-model="dialysisAfterAsses.puncture_point_oozing_blood" label="2">无</el-radio>
  1448. </el-form-item>
  1449. <el-form-item label="穿刺处血肿:">
  1450. <el-radio v-model="dialysisAfterAsses.puncture_point_haematoma" label="1">有</el-radio>
  1451. <el-radio v-model="dialysisAfterAsses.puncture_point_haematoma" label="2">无</el-radio>
  1452. </el-form-item>
  1453. <el-form-item label="压迫后内瘘震颤:">
  1454. <el-radio v-model="dialysisAfterAsses.internal_fistula_tremor_ac" label="1">存在</el-radio>
  1455. <el-radio v-model="dialysisAfterAsses.internal_fistula_tremor_ac" label="2">减弱</el-radio>
  1456. <el-radio v-model="dialysisAfterAsses.internal_fistula_tremor_ac" label="3">无</el-radio>
  1457. </el-form-item>
  1458. </el-col>
  1459. <el-col :span="24">
  1460. <el-form-item label="患者去向:">
  1461. <el-radio v-model="dialysisAfterAsses.patient_gose" label="1">离院</el-radio>
  1462. <el-radio v-model="dialysisAfterAsses.patient_gose" label="2">留观</el-radio>
  1463. <el-radio v-model="dialysisAfterAsses.patient_gose" label="3">住院</el-radio>
  1464. </el-form-item>
  1465. </el-col>
  1466. <el-col :span="12" v-show="dialysisAfterAsses.patient_gose==3">
  1467. <el-form-item label="科室 : ">
  1468. <el-input style="width:100%;" v-model="dialysisAfterAsses.inpatient_department"></el-input>
  1469. </el-form-item>
  1470. </el-col>
  1471. <el-col :span="24" v-show="dialysisAfterAsses.patient_gose==3">
  1472. <el-form-item label="交待病房护士/患者/陪人观察内容" prop="observation_content_value">
  1473. <el-checkbox-group v-model="dialysisAfterAsses.observation_content_value">
  1474. <el-checkbox v-for="item in observationContentOptions" :label="item.label" :key="item.value" :value="item.label">{{item.label}}</el-checkbox>
  1475. </el-checkbox-group>
  1476. </el-form-item>
  1477. </el-col>
  1478. <el-col :span="24" v-show="dialysisAfterAsses.patient_gose==3">
  1479. <el-form-item label="">
  1480. <el-input v-model="dialysisAfterAsses.observation_content_other" placeholder="若有观察内容,请填写"></el-input>
  1481. </el-form-item>
  1482. </el-col>
  1483. <el-col :span="20">
  1484. <el-form-item label="备注 : ">
  1485. <el-input type="textarea" :rows="5"
  1486. placeholder="请输入内容" v-model="dialysisAfterAsses.remark">
  1487. </el-input>
  1488. </el-form-item>
  1489. </el-col>
  1490. <el-col :span="20">
  1491. <el-form-item>
  1492. <p>{{SubmitDialysisAfterAssesComfirmUserName}}</p>
  1493. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="submitDialysisAfterAssesForm">提交</el-button>
  1494. </el-form-item>
  1495. </el-col>
  1496. </el-form>
  1497. </el-col>
  1498. </el-row>
  1499. <div class="border"></div>
  1500. <el-row>
  1501. <p class="title">治疗小结</p>
  1502. <el-col :span="24">
  1503. <el-form ref="dialysisSummary" label-width="140px" class="demo-form-inline"
  1504. :model="dialysisSummary">
  1505. <el-col :span="8">
  1506. <el-form-item label="透后宣教 : " prop="text">
  1507. <el-select @change="dialysisAfterTeachSelectChange" style="width:100%;"
  1508. v-model="dialysisSummary.text" placeholder="请选择">
  1509. <el-option v-for="(s, index) in summary" :label="s.text" :value="s.value"
  1510. :key="index"></el-option>
  1511. </el-select>
  1512. </el-form-item>
  1513. </el-col>
  1514. <el-col :span="16">
  1515. <el-form-item label="" prop="propagandaAndEducationContent" label-width="20px">
  1516. <el-input
  1517. type="textarea"
  1518. :rows="5"
  1519. placeholder="请输入内容"
  1520. v-model="dialysisSummary.propagandaAndEducationContent">
  1521. </el-input>
  1522. </el-form-item>
  1523. </el-col>
  1524. <el-col :span="8">
  1525. <el-form-item label="透析小结 : " prop="text2">
  1526. <el-select @change="dialysisSummarySelectChange" style="width:100%;" v-model="dialysisSummary.text2"
  1527. placeholder="请选择">
  1528. <el-option v-for="(s, index) in summary" :label="s.text" :value="s.value"
  1529. :key="index"></el-option>
  1530. </el-select>
  1531. </el-form-item>
  1532. </el-col>
  1533. <el-col :span="16">
  1534. <el-form-item label="" prop="summaryContent" label-width="20px">
  1535. <el-input
  1536. type="textarea"
  1537. :rows="5"
  1538. placeholder="请输入内容"
  1539. v-model="dialysisSummary.summaryContent"
  1540. >
  1541. </el-input>
  1542. </el-form-item>
  1543. </el-col>
  1544. <el-col :span="20">
  1545. <el-form-item>
  1546. <p>{{DialysisSummaryComfirmUserName}}</p>
  1547. <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="submitSummary">提交</el-button>
  1548. </el-form-item>
  1549. </el-col>
  1550. </el-form>
  1551. </el-col>
  1552. </el-row>
  1553. <div class="border"></div>
  1554. </el-main>
  1555. </el-container>
  1556. </el-container>
  1557. <!--<stat-order-dialog ref="stat_order_dialog"></stat-order-dialog>-->
  1558. </div>
  1559. </template>
  1560. <style scoped>
  1561. .border {
  1562. border-top: 1px #dcdfe6 solid;
  1563. }
  1564. .title {
  1565. font-size: 20px;
  1566. text-align: center;
  1567. }
  1568. </style>
  1569. <script>
  1570. import CheckBoxDialog from './Dialog/CheckBoxDialog'
  1571. import InnerDialog from './Dialog/InnerDialog'
  1572. import AddMonitor from './Dialog/AddMonitor'
  1573. import DryWeightDialog from './Dialog/DryWeightDialog'
  1574. import FormDialog from './Dialog/FormDialog'
  1575. import { createDryWeight, getDryWeights } from '@/api/patient'
  1576. import { fetchAllDoctorAndNurse, fetchAllAdminUsers } from '@/api/doctor'
  1577. import {
  1578. PatientInfo,
  1579. doctorAndNurseList,
  1580. commitDailysisRecord,
  1581. commitDailysisSolution,
  1582. CreateDoctorAdvice,
  1583. getDoctorAdviceById,
  1584. editDoctorAdviceById,
  1585. CreateMonitor,
  1586. GetAllZone,
  1587. PostStartRecordInfo,
  1588. GetGlobalInfo,
  1589. GetDeviceInfo,
  1590. delMonitor
  1591. } from '@/api/dialysis'
  1592. import { uParseTime } from '@/utils/tools'
  1593. import {
  1594. getAdviceConfig,
  1595. getDoctorAdviceList,
  1596. EditDoctorAdvice,
  1597. StopDoctorAdvice,
  1598. DeleteDoctorAdvice
  1599. } from '@/api/advice'
  1600. import print from 'print-js'
  1601. import { getDataConfig } from '@/utils/data'
  1602. const bpTypeData = [
  1603. { id: 1, text: '上肢', value: 1 },
  1604. { id: 2, text: '下肢', value: 2 },
  1605. { id: 3, text: '拒测', value: 3 },
  1606. { id: 4, text: '测不出来', value: 4 }
  1607. ]
  1608. const defalutValue = {
  1609. 'eats': 0,
  1610. 'transfusion': 0,
  1611. 'bloodTransfusion': 0,
  1612. 'washPipe': 0
  1613. }
  1614. export default {
  1615. beforeCreate() {
  1616. console.log('beforeCreate')
  1617. },
  1618. created() {
  1619. console.log('created')
  1620. var ptime = Math.round(new Date().getTime() / 1000)
  1621. this.danPrintData.time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  1622. var xtuser = this.$store.getters.xt_user
  1623. this.orgname = xtuser.org.org_name
  1624. this.adminusername = xtuser.user.user_name
  1625. },
  1626. beforeMount() {
  1627. console.log('beforeMount')
  1628. },
  1629. mounted() {
  1630. this.initData()
  1631. var _this = this // 声明一个变量指向vue实例this,保证作用域一致
  1632. this.timer = setInterval(function() {
  1633. var ptime = Math.round(new Date().getTime() / 1000)
  1634. _this.danPrintData.time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  1635. }, 60000)
  1636. },
  1637. beforeUpdate() {
  1638. console.log('beforeUpdate')
  1639. },
  1640. updated() {
  1641. console.log('updated')
  1642. },
  1643. beforeDestroy() {
  1644. console.log('beforeDestroy')
  1645. },
  1646. destroyed() {
  1647. console.log('destroyed')
  1648. },
  1649. components: {
  1650. CheckBoxDialog,
  1651. FormDialog,
  1652. InnerDialog,
  1653. DryWeightDialog,
  1654. AddMonitor
  1655. },
  1656. data() {
  1657. return {
  1658. hemorrhageOptions: [
  1659. { value: 1, label: '穿刺点渗血' },
  1660. { value: 2, label: '牙龈出血' },
  1661. { value: 3, label: '消化道出血' },
  1662. { value: 4, label: '女性经期' }
  1663. ],
  1664. observationContentOptions: [
  1665. { value: 1, label: '意识状态' },
  1666. { value: 2, label: '生命体征' },
  1667. { value: 3, label: '内瘘搏动/渗血' },
  1668. { value: 4, label: '导管固定/穿刺口渗血' },
  1669. { value: 5, label: '动静脉直接穿刺口渗血/肢端循环情况' }
  1670. ],
  1671. adminusername: '',
  1672. orgname: '',
  1673. drugOptions: [],
  1674. deliveryWayOptions: [],
  1675. executionFrequencyOptions: [],
  1676. dialysisTime: '',
  1677. dialysisPrescriptionIsComfirm: false,
  1678. receiveTreatmentAssesIsComfirm: false,
  1679. dialysisBeforeAssesIsComfirm: false,
  1680. doctorAdviceIsComfirm: false,
  1681. doubleCheckIsComfirm: false,
  1682. monitoringRecordIsComfirm: false,
  1683. dialysisAfterAssesIsComfirm: false,
  1684. dialysisSummaryIsComfirm: false,
  1685. dialysisTimeShow: new Date(2018, 1, 1, 3, 0),
  1686. dialysisId: 0,
  1687. dialysisStatus: -1,
  1688. DialysisPrescriptionComfirmUserName: '',
  1689. CommitReceiveTreatmentAssesComfirmUserName: '',
  1690. DialysisBeforeAssesComfirmUserName: '',
  1691. DoubleCheckComfirmUserName: '',
  1692. SubmitDialysisAfterAssesComfirmUserName: '',
  1693. DialysisSummaryComfirmUserName: '',
  1694. currentMonitorTableIndex: -1,
  1695. recordStatus: -1,
  1696. dialogTitle: '新增',
  1697. dialogFormVisible: false,
  1698. isEdit: false,
  1699. searchKey: '',
  1700. // 透析监控
  1701. MonitorForm: {
  1702. monitoring_date: '',
  1703. operate_date: '',
  1704. monitoring_time: '',
  1705. pulse_frequency: '',
  1706. breathing_rated: '',
  1707. blood_pressure_type: '',
  1708. systolic_blood_pressure: '',
  1709. diastolic_blood_pressure: '',
  1710. blood_flow_volume: '',
  1711. venous_pressure: '',
  1712. arterial_pressure: '',
  1713. transmembrane_pressure: '',
  1714. Transme: '',
  1715. ultrafiltration_rate: '',
  1716. ultrafiltration_volume: '',
  1717. sodium_concentration: '',
  1718. dialysate_temperature: '',
  1719. replacement_rate: '',
  1720. displacement_quantity: '',
  1721. ktv: '',
  1722. monitoring_nurse: '',
  1723. venous_pressure_unit: 'mmhg',
  1724. transmembrane_pressure_unit: 'mmhg'
  1725. },
  1726. pickerOptions: {
  1727. shortcuts: [
  1728. {
  1729. text: '今天',
  1730. onClick(picker) {
  1731. picker.$emit('pick', new Date())
  1732. }
  1733. },
  1734. {
  1735. text: '昨天',
  1736. onClick(picker) {
  1737. const date = new Date()
  1738. date.setTime(date.getTime() - 3600 * 1000 * 24)
  1739. picker.$emit('pick', date)
  1740. }
  1741. },
  1742. {
  1743. text: '一周前',
  1744. onClick(picker) {
  1745. const date = new Date()
  1746. date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
  1747. picker.$emit('pick', date)
  1748. }
  1749. },
  1750. {
  1751. text: '清空',
  1752. onClick(picker) {
  1753. picker.$emit('pick')
  1754. }
  1755. }
  1756. ]
  1757. },
  1758. adviceType: 1,
  1759. adviceTypeArr: [
  1760. { value: 2, label: '临时', id: '1' }
  1761. ],
  1762. stopType: 0,
  1763. stopTypeArr: [
  1764. { value: 0, label: '全部' },
  1765. { value: 2, label: '未停止' },
  1766. { value: 1, label: '已停止' }
  1767. ],
  1768. adviceTableData: [],
  1769. isShow: false,
  1770. bpTypeData: bpTypeData,
  1771. isSelected: false,
  1772. adviceForm: {
  1773. advice_type: '',
  1774. advice_date: '',
  1775. start_time: '',
  1776. advice_name: '',
  1777. advice_desc: '',
  1778. single_dose: '',
  1779. single_dose_unit: '',
  1780. prescribing_number: '',
  1781. prescribing_number_unit: '',
  1782. delivery_way: '',
  1783. execution_frequency: '',
  1784. advice_doctor: this.$store.getters.xt_user.user.user_name,
  1785. remark: '',
  1786. parent_id: 0,
  1787. num: 0,
  1788. checker: '',
  1789. execution_time: '',
  1790. execution_staff: ''
  1791. },
  1792. executionForm: {
  1793. advice_doctor: this.$store.getters.xt_user.user.user_name,
  1794. start_time: '',
  1795. checker: '',
  1796. // execution_time: this.$store.getters.xt_user.user.user_name,
  1797. // execution_staff: this.$store.getters.xt_user.user.user_name,
  1798. content: '',
  1799. id: 0,
  1800. parent_id: 0
  1801. },
  1802. stopForm: {
  1803. id: 0,
  1804. stop_time: '',
  1805. stop_reason: ''
  1806. },
  1807. adviceRules: {
  1808. advice_type: [{ required: true, message: '请选择医嘱类型', trigger: 'blur' }],
  1809. advice_date: [{ required: true, message: '请选择医嘱时间', trigger: 'blur' }],
  1810. start_time: [{ required: true, message: '请选择开始时间', trigger: 'blur' }],
  1811. advice_name: [{ required: true, message: '请填写医嘱名称', trigger: 'blur' }]
  1812. // advice_doctor: [{required: true, message: "请选择开嘱医生", trigger: 'blur'},],
  1813. },
  1814. stopRules: {
  1815. stop_time: [{ required: true, message: '请选择停止时间', trigger: 'blur' }]
  1816. },
  1817. listQuery: {
  1818. start_time: '',
  1819. end_time: '',
  1820. advice_type: 1,
  1821. stop_state: '',
  1822. keywords: '',
  1823. id: 0
  1824. },
  1825. summaryUncomfirm: '未确定',
  1826. patientId: 0,
  1827. // 左侧栏初始化数据
  1828. record_date: '',
  1829. timeValue: 1,
  1830. sickAreaValue: 1,
  1831. SchedualPatientsTableData: [],
  1832. // 左侧栏下拉选项框数据
  1833. sickAreaData: [],
  1834. summary: [],
  1835. anticoagulantsConfit: {},
  1836. modeOptions: null,
  1837. replacementWays: [],
  1838. // 排版患者列表
  1839. dialysisList: [],
  1840. deviceList: [],
  1841. doctorList: [],
  1842. nurseList: [],
  1843. bloodFilters: [],
  1844. perfusionApparatus: [],
  1845. hemodialysisMachines: [],
  1846. vascularAccess: [],
  1847. vascularAccessDesc: [],
  1848. weightList: [],
  1849. lastValue: 0,
  1850. // 患者信息
  1851. userInfo: {
  1852. radio: 1,
  1853. userName: '',
  1854. gender: '',
  1855. age: '',
  1856. label: '门诊',
  1857. dialysisNumber: '',
  1858. inpatientWard: '',
  1859. bed: '',
  1860. dialysisCount: '',
  1861. diagnosis: '',
  1862. entryMethod: '',
  1863. firstDialysisTime: '',
  1864. dialysisTime: '',
  1865. admission_number: ''
  1866. },
  1867. anticoagulant: {
  1868. id: 0,
  1869. name: '',
  1870. type: 1,
  1871. shouji: 1,
  1872. weichi: 1,
  1873. zongliang: 1,
  1874. gaimingcheng: -1,
  1875. gaijiliang: -1,
  1876. shouji_unit: 'mg',
  1877. weichi_unit: 'mg/h',
  1878. zongliang_unit: 'mg',
  1879. gaimingcheng_unit: '',
  1880. gaijiliang_unit: ''
  1881. },
  1882. dialysisPrescription: {
  1883. module: 'dialysisPrescription',
  1884. gaijiliang: '',
  1885. gaimingcheng: '',
  1886. machine: '',
  1887. machineType: '',
  1888. targetDewateringAmount: '',
  1889. prescriptionDehydration: '',
  1890. anticoagulant: '',
  1891. firstDose: '',
  1892. maintenance: '',
  1893. total: '',
  1894. dialysisTime: '',
  1895. dialysisMode: '',
  1896. displacesTotal: '',
  1897. displacesMethod: '',
  1898. hemodialysisDevice: '',
  1899. bloodFilterDevice: '',
  1900. hemoperfusion: '',
  1901. adjustDryWeight: '',
  1902. vascularAccess: '',
  1903. vascularAccessDesc: '',
  1904. bloodFlow: '',
  1905. displaceLiqui: '',
  1906. dialysateFlow: '',
  1907. kalium: '',
  1908. sodium: '',
  1909. calcium: '',
  1910. bicarbonate: '',
  1911. glucose: '',
  1912. remark: '',
  1913. conductivity: '',
  1914. dialysate_temperature: '',
  1915. dialysis_duration_hour: '',
  1916. dialysis_duration_minute: '',
  1917. target_ultrafiltration: '',
  1918. dialysate_formulation: '1'
  1919. },
  1920. // 透前评估
  1921. dialysisBeforeAsses: {
  1922. module: 'dialysisBeforeAsses',
  1923. T: '',
  1924. P: '',
  1925. R: '',
  1926. part: '',
  1927. systolic: '',
  1928. diastolic: '',
  1929. dryWeight: '',
  1930. lastdialysisAfterWeight: '',
  1931. weightWay: '',
  1932. dialysisbeforeWeighed: '',
  1933. clothingWeight: '',
  1934. dialysisbeforeWeight: '',
  1935. weightAdd: '',
  1936. PreDrinkingAmount: '',
  1937. totalAmountOfUltrafiltration: '',
  1938. dialysisInterval: '',
  1939. afterTheLastDialysis: '',
  1940. preExistingSymptoms: '',
  1941. guilty: '',
  1942. catheter: '',
  1943. complications: '',
  1944. remark: '',
  1945. is_hemorrhage: '2',
  1946. hemorrhage_value: [],
  1947. hemorrhage: '',
  1948. hemorrhage_other: '',
  1949. blood_access_part_id: '',
  1950. blood_access_part_opera_id: ''
  1951. },
  1952. dialysisbeforeWeighedIsDisabled: false,
  1953. clothingWeightIsDisabled: false,
  1954. dialysisbeforeWeightIsDisabled: false,
  1955. weightAddIsDisabled: false,
  1956. // 接诊评估
  1957. receiveTreatmentAsses: {
  1958. module: 'receiveTreatmentAsses',
  1959. way: '1',
  1960. consciousness: '1',
  1961. appetite: '1',
  1962. condition: '1'
  1963. },
  1964. // 双人检查
  1965. doubleReview: {
  1966. module: 'doubleReview',
  1967. dialysis_item_check: '1',
  1968. dialysis_parameter_check: '1',
  1969. vascular_access_verification: '1',
  1970. pipeline_connection_check: '1',
  1971. dialysis_item_desc: '',
  1972. dialysis_parameter_desc: '',
  1973. vascular_access_desc: '',
  1974. pipeline_connection_desc: '',
  1975. collator: ''
  1976. },
  1977. tempDoctorAdvice: {},
  1978. monitoringRecordTableData: [],
  1979. watchRecord: {},
  1980. treatmentSummary: {},
  1981. treatmentMode: {
  1982. id: 1,
  1983. name: 'HD',
  1984. dialysis_duration: 1,
  1985. replacement_way: 2,
  1986. hemodialysis_machine: 1,
  1987. blood_filter: 2,
  1988. perfusion_apparatus: 2,
  1989. blood_flow_volume: 1,
  1990. dialysate_flow: 1,
  1991. kalium: 1,
  1992. sodium: 1,
  1993. calcium: 1,
  1994. bicarbonate: 1
  1995. },
  1996. tableData3: [],
  1997. content: '',
  1998. content1: '',
  1999. size: 8,
  2000. labelPosition: 'right',
  2001. data_value: '',
  2002. input1: '',
  2003. value12: '',
  2004. formInline: {
  2005. user: '',
  2006. region: ''
  2007. },
  2008. radio: '1',
  2009. adminUserOptions: null,
  2010. doctorOptions: [],
  2011. isVisibiltyForMonitorDialog: false,
  2012. isVisibiltyForSymptomsDialog: false,
  2013. isVisibiltyForDealDialog: false,
  2014. isVisibiltyForResultsDialog: false,
  2015. dialogSymptomsTitle: '症状',
  2016. dialogDealTitle: '处理',
  2017. dialogResultsTitle: '结果',
  2018. symptomsData: '',
  2019. dealData: '',
  2020. resultsData: '',
  2021. symptomsArray: [],
  2022. dealArray: [],
  2023. resultsArray: [],
  2024. dialogFormExecutionVisible: false,
  2025. // 透前评估(弹窗相关)
  2026. dialogDialysisIntervalTitle: '透析期间',
  2027. dialysisIntervalData: [],
  2028. isVisibiltyForDialysisIntervalDialog: false,
  2029. dialogAfterTheLastDialysisTitle: '前次透析后',
  2030. afterTheLastDialysiData: [],
  2031. isVisibiltyForAfterTheLastDialysisDialog: false,
  2032. dialogPreExistingSymptomsTitle: '透前症状',
  2033. preExistingSymptomsData: [],
  2034. isVisibiltyForPreExistingSymptomsDialog: false,
  2035. dialogDialysisBeforeAssesGuiltyTitle: '内瘘',
  2036. DialysisBeforeAssesGuiltyData: [],
  2037. isVisibiltyForDialysisBeforeAssesGuiltyDialog: false,
  2038. dialogDialysisBeforeAssesCatheterTitle: '导管',
  2039. dialysisBeforeAssesCatheterData: [],
  2040. isVisibiltyForDialysisBeforeAssesCatheterDialog: false,
  2041. dialogDialysisBeforeAssesComplicationsTitle: '合并症',
  2042. dialysisBeforeAssesComplicationsData: [],
  2043. isVisibiltyForDialysisBeforeAssesComplicationsDialog: false,
  2044. // 透后评估(弹窗相关)
  2045. cruorData: [],
  2046. symptomsAfterDialysiData: [],
  2047. dialysateVolumeData: defalutValue,
  2048. fistulaData: [],
  2049. pipeData: [],
  2050. complicationsData: [],
  2051. isVisibiltyForCruorDialog: false,
  2052. isVisibiltyForSymptomsAfterDialysiDialog: false,
  2053. isVisibiltyForDialysateVolumeDialog: false,
  2054. isVisibiltyForFistulaDialog: false,
  2055. isVisibiltyForPipeDialog: false,
  2056. isVisibiltyForcomplicationsDialog: false,
  2057. isVisibiltyAdjustDryWeightDialog: false,
  2058. dialogCruorTitle: '凝血',
  2059. dialogSymptomsAfterDialysiTitle: '透后症状',
  2060. dialogDialysateVolumeTitle: '透析中入量',
  2061. dialogFistulaTitle: '内瘘',
  2062. dialogPipeTitle: '导管',
  2063. dialogComplicationsTitle: '并发症',
  2064. dialogAdjustWeightTitle: '调整干体重',
  2065. dialogMonitorTitle: '监测记录',
  2066. // 透后评估
  2067. dialysisAfterAsses: {
  2068. module: 'dialysisAfterAsses',
  2069. T: '',
  2070. P: '',
  2071. R: '',
  2072. part: '',
  2073. systolic: '',
  2074. diastolic: '',
  2075. actualUfv: '',
  2076. actualSubstituteFluidvolume: '',
  2077. actualtreatHour: '',
  2078. actualtreatmin: '',
  2079. weighWay: '',
  2080. weightAfterDialysi: '',
  2081. weightReduce: '',
  2082. cruor: '',
  2083. symptomsAfterDialysi: '',
  2084. dialysateVolume: '',
  2085. dialysisIntakesFeed: '',
  2086. dialysisIntakesTransfusion: '',
  2087. dialysisIntakesBloodTransfusion: '',
  2088. dialysisIntakesWashpipe: '',
  2089. fistula: '',
  2090. pipe: '',
  2091. complications: '',
  2092. remark: '',
  2093. puncture_point_oozing_blood: '2',
  2094. puncture_point_haematoma: '2',
  2095. internal_fistula_tremor_ac: '3',
  2096. patient_gose: '',
  2097. inpatient_department: '',
  2098. observation_content: '',
  2099. observation_content_other: '',
  2100. observation_content_value: []
  2101. // evaluator: "",
  2102. },
  2103. // 透析小结
  2104. dialysisSummary: {
  2105. module: 'summary',
  2106. text: '',
  2107. propagandaAndEducationContent: '',
  2108. text2: '',
  2109. summaryContent: '',
  2110. changeMedicalNurse: '',
  2111. treatNurse: '',
  2112. checkStaff: '',
  2113. deboardNurse: '',
  2114. treatDoctor: ''
  2115. },
  2116. SubAdvice: [],
  2117. // 医嘱表格当前选中的值
  2118. selectedAdviceData: null,
  2119. currentIndex: -1,
  2120. danPrintData: {
  2121. time: '',
  2122. doctor: '',
  2123. dialyzer: '',
  2124. modelName: '',
  2125. perfusion_apparatus: '',
  2126. blood_flow_volume: '',
  2127. dewater_amount: '',
  2128. displace_liqui: '',
  2129. replacement_way: '',
  2130. anticoagulant: '',
  2131. anticoagulant_shouji: '',
  2132. anticoagulant_weichi: '',
  2133. anticoagulant_zongliang: '',
  2134. anticoagulant_gaimingcheng: '',
  2135. anticoagulant_gaijiliang: '',
  2136. dry_weight: '',
  2137. dialysate_flow: '',
  2138. dialysate_temperature: '',
  2139. kalium: '',
  2140. sodium: '',
  2141. calcium: '',
  2142. bicarbonate: '',
  2143. glucose: '',
  2144. conductivity: '',
  2145. remark: '',
  2146. AlPanel: {
  2147. id: 0,
  2148. name: '',
  2149. type: 1,
  2150. shouji: 2,
  2151. weichi: 2,
  2152. zongliang: 2,
  2153. gaimingcheng: -1,
  2154. gaijiliang: -1,
  2155. shouji_unit: 'mg',
  2156. weichi_unit: 'mg/h',
  2157. zongliang_unit: 'mg',
  2158. gaimingcheng_unit: '',
  2159. gaijiliang_unit: ''
  2160. },
  2161. weight_before: '',
  2162. additional_weight: '',
  2163. systolic_blood_pressure: '',
  2164. diastolic_blood_pressure: '',
  2165. breathing_rate: ''
  2166. }
  2167. }
  2168. },
  2169. methods: {
  2170. printOrder() {
  2171. var xtdate = uParseTime(this.record_date, '{y}-{m}-{d}')
  2172. this.$router.push('/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.userInfo.dialysisNumber)
  2173. },
  2174. selectDialysisPrescriptionDialysisTime(val) {
  2175. var valTime = val.split(':')
  2176. this.dialysisPrescription.dialysisTime = valTime[0] + '.' + valTime[1]
  2177. this.dialysisPrescription.dialysis_duration_hour = valTime[0]
  2178. this.dialysisPrescription.dialysis_duration_minute = valTime[1]
  2179. },
  2180. setTQdataFromData(prescription) {
  2181. this.danPrintData.doctor = this.getXuserName(prescription.prescription_doctor)
  2182. this.danPrintData.modelName = this.modeName(prescription.mode_id)
  2183. this.danPrintData.dialysis_duration = prescription.dialysis_duration
  2184. var deviceLen = this.deviceList.length
  2185. this.danPrintData.dialyzer = ''
  2186. for (let index = 0; index < deviceLen; index++) {
  2187. if (this.deviceList[index].id == prescription.dialyzer) {
  2188. this.danPrintData.dialyzer = this.deviceList[index].name
  2189. break
  2190. }
  2191. }
  2192. var paLen = this.perfusionApparatus.length
  2193. this.danPrintData.perfusion_apparatus = ''
  2194. for (let index = 0; index < paLen; index++) {
  2195. if (this.perfusionApparatus[index].id == prescription.perfusion_apparatus) {
  2196. this.danPrintData.perfusion_apparatus = this.perfusionApparatus[index].name
  2197. break
  2198. }
  2199. }
  2200. this.danPrintData.blood_flow_volume = prescription.blood_flow_volume
  2201. this.danPrintData.dewater_amount = prescription.dewater_amount
  2202. this.danPrintData.displace_liqui = prescription.displace_liqui
  2203. var rwLen = this.replacementWays.length
  2204. this.danPrintData.replacement_way = ''
  2205. for (let index = 0; index < rwLen; index++) {
  2206. if (this.replacementWays[index].id == prescription.replacement_way) {
  2207. this.danPrintData.replacement_way = this.replacementWays[index].name
  2208. break
  2209. }
  2210. }
  2211. var acLen = this.anticoagulantsConfit.length
  2212. this.danPrintData.anticoagulant = ''
  2213. var thisALID = prescription.anticoagulant
  2214. this.danPrintData.AlPanel = {}
  2215. if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  2216. this.danPrintData.anticoagulant = this.anticoagulantsConfit[thisALID].name
  2217. this.danPrintData.AlPanel = this.anticoagulantsConfit[thisALID]
  2218. }
  2219. this.danPrintData.anticoagulant_shouji = prescription.anticoagulant_shouji
  2220. this.danPrintData.anticoagulant_weichi = prescription.anticoagulant_weichi
  2221. this.danPrintData.anticoagulant_zongliang = prescription.anticoagulant_zongliang
  2222. this.danPrintData.anticoagulant_gaimingcheng = prescription.anticoagulant_gaimingcheng
  2223. this.danPrintData.anticoagulant_gaijiliang = prescription.anticoagulant_gaijiliang
  2224. this.danPrintData.dry_weight = prescription.dry_weight
  2225. this.danPrintData.dialysate_flow = prescription.dialysate_flow
  2226. this.danPrintData.dialysate_temperature = prescription.dialysate_temperature
  2227. this.danPrintData.kalium = prescription.kalium
  2228. this.danPrintData.sodium = prescription.sodium
  2229. this.danPrintData.calcium = prescription.calcium
  2230. this.danPrintData.bicarbonate = prescription.bicarbonate
  2231. this.danPrintData.glucose = prescription.glucose
  2232. this.danPrintData.conductivity = prescription.conductivity
  2233. this.danPrintData.remark = prescription.remark
  2234. },
  2235. setTQdata(prescription) {
  2236. this.danPrintData.doctor = this.getXuserName(this.$store.getters.xt_user.user.id)
  2237. this.danPrintData.modelName = this.modeName(prescription.dialysisMode)
  2238. this.danPrintData.dialysis_duration = prescription.dialysisTime
  2239. var deviceLen = this.deviceList.length
  2240. this.danPrintData.dialyzer = ''
  2241. for (let index = 0; index < deviceLen; index++) {
  2242. if (this.deviceList[index].id == prescription.machine) {
  2243. this.danPrintData.dialyzer = this.deviceList[index].name
  2244. break
  2245. }
  2246. }
  2247. var paLen = this.perfusionApparatus.length
  2248. this.danPrintData.perfusion_apparatus = ''
  2249. for (let index = 0; index < paLen; index++) {
  2250. if (this.perfusionApparatus[index].id == prescription.hemoperfusion) {
  2251. this.danPrintData.perfusion_apparatus = this.perfusionApparatus[index].name
  2252. break
  2253. }
  2254. }
  2255. this.danPrintData.blood_flow_volume = prescription.bloodFlow
  2256. this.danPrintData.dewater_amount = prescription.targetDewateringAmount
  2257. this.danPrintData.displace_liqui = prescription.displaceLiqui
  2258. var rwLen = this.replacementWays.length
  2259. this.danPrintData.replacement_way = ''
  2260. for (let index = 0; index < rwLen; index++) {
  2261. if (this.replacementWays[index].id == prescription.displacesMethod) {
  2262. this.danPrintData.replacement_way = this.replacementWays[index].name
  2263. break
  2264. }
  2265. }
  2266. var acLen = this.anticoagulantsConfit.length
  2267. this.danPrintData.anticoagulant = ''
  2268. var thisALID = prescription.anticoagulant
  2269. this.danPrintData.AlPanel = {}
  2270. if (typeof (this.anticoagulantsConfit[thisALID]) !== 'undefined' && this.anticoagulantsConfit[thisALID] != null) {
  2271. this.danPrintData.anticoagulant = this.anticoagulantsConfit[thisALID].name
  2272. this.danPrintData.AlPanel = this.anticoagulantsConfit[thisALID]
  2273. }
  2274. this.danPrintData.anticoagulant_shouji = prescription.firstDose
  2275. this.danPrintData.anticoagulant_weichi = prescription.maintenance
  2276. this.danPrintData.anticoagulant_zongliang = prescription.total
  2277. this.danPrintData.anticoagulant_gaimingcheng = prescription.gaimingcheng
  2278. this.danPrintData.anticoagulant_gaijiliang = prescription.gaijiliang
  2279. this.danPrintData.dry_weight = prescription.adjustDryWeight
  2280. this.danPrintData.dialysate_flow = prescription.dialysateFlow
  2281. this.danPrintData.dialysate_temperature = prescription.dialysate_temperature
  2282. this.danPrintData.kalium = prescription.kalium
  2283. this.danPrintData.sodium = prescription.sodium
  2284. this.danPrintData.calcium = prescription.calcium
  2285. this.danPrintData.bicarbonate = prescription.bicarbonate
  2286. this.danPrintData.glucose = prescription.glucose
  2287. this.danPrintData.conductivity = prescription.conductivity
  2288. this.danPrintData.remark = prescription.remark
  2289. },
  2290. setBdData(dialysis) {
  2291. console.log(dialysis)
  2292. this.danPrintData.weight_before = dialysis.dialysisbeforeWeight
  2293. this.danPrintData.additional_weight = dialysis.clothingWeight
  2294. this.danPrintData.systolic_blood_pressure = dialysis.systolic
  2295. this.danPrintData.diastolic_blood_pressure = dialysis.diastolic
  2296. this.danPrintData.breathing_rate = dialysis.R
  2297. },
  2298. modeName(mode_id) {
  2299. return typeof (this.modeOptions[mode_id]) !== 'undefined' && typeof (this.modeOptions[mode_id].name) !== 'undefined' ? this.modeOptions[mode_id].name : ''
  2300. },
  2301. getXuserName(id) {
  2302. if (id <= 0) {
  2303. return ''
  2304. }
  2305. var name = ''
  2306. if (this.adminUserOptions == null || typeof (this.adminUserOptions.length) === 'undefined') {
  2307. return name
  2308. }
  2309. var leng = this.adminUserOptions.length
  2310. if (leng == 0) {
  2311. return name
  2312. }
  2313. for (let index = 0; index < leng; index++) {
  2314. if (this.adminUserOptions[index].id == id) {
  2315. name = this.adminUserOptions[index].name
  2316. break
  2317. }
  2318. }
  2319. return name
  2320. },
  2321. printDan() {
  2322. var ptime = Math.round(new Date().getTime() / 1000)
  2323. this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
  2324. const style = '@media print { .shangjidan{width:500px;margin:0 auto}.shangjidan .dan-title{text-align:center;font-size:24px;font-weight:600;margin:0 auto;margin-top:15px;padding:5px 0}.shangjidan .dan-table{margin-top:10px;width:100%;line-height:20px;border-collapse:collapse}.shangjidan .dan-td-col-2{width:40px}.shangjidan .dan-td-col-4{width:80px}.shangjidan .dan-td-col-3{width:60px}.shangjidan .dan-td-col-5{width:100px}.shangjidan .dan-td{border-bottom:1px solid #666;text-align:center;max-width:200px}.shangjidan .dan-value{width:100%;margin:0 2px}.shangjidan .dan-main{border-bottom:1px solid #666;border-top:1px solid #666;padding:10px 5px} }'
  2325. setTimeout(() => {
  2326. printJS({
  2327. printable: 'shangjidan',
  2328. type: 'html',
  2329. style: style,
  2330. scanStyles: false
  2331. })
  2332. }, 1)
  2333. },
  2334. stat_order_action: function() {
  2335. this.dialogFormVisible = true
  2336. },
  2337. execution_action: function() {
  2338. if (this.selectedAdviceData != null) {
  2339. const params = {
  2340. 'patient_id': this.patientId,
  2341. 'id': this.selectedAdviceData.id,
  2342. 'parent_id': this.selectedAdviceData.parent_id
  2343. }
  2344. getDoctorAdviceById(params).then(response => {
  2345. if (response.data.state == 0) {
  2346. this.$message.error(response.data.msg)
  2347. return false
  2348. } else {
  2349. this.dialogFormExecutionVisible = true
  2350. this.executionForm.advice_doctor = response.data.data.advice.advice_doctor
  2351. this.executionForm.start_time = response.data.data.advice.start_time
  2352. this.executionForm.content = response.data.data.advice.advice_name +
  2353. response.data.data.advice.advice_desc +
  2354. ' ' +
  2355. response.data.data.advice.single_dose +
  2356. response.data.data.advice.single_dose_unit +
  2357. ' ' +
  2358. response.data.data.advice.prescribing_number +
  2359. response.data.data.advice.prescribing_number_unit +
  2360. ' ' +
  2361. response.data.data.advice.delivery_way +
  2362. response.data.data.advice.execution_frequency
  2363. if (response.data.data.subAdvice != null) {
  2364. for (let i = 0; i < response.data.data.subAdvice.length; i++) {
  2365. this.executionForm.content = this.executionForm.content + '\n' +
  2366. response.data.data.subAdvice[i].advice_name +
  2367. response.data.data.subAdvice[i].advice_desc +
  2368. ' ' +
  2369. response.data.data.subAdvice[i].single_dose +
  2370. response.data.data.subAdvice[i].single_dose_unit +
  2371. ' ' +
  2372. response.data.data.subAdvice[i].prescribing_number +
  2373. response.data.data.subAdvice[i].prescribing_number_unit
  2374. this.executionForm.parent_id = response.data.data.subAdvice[i].parent_id
  2375. }
  2376. }
  2377. this.executionForm.id = response.data.data.advice.id
  2378. return false
  2379. }
  2380. })
  2381. } else {
  2382. this.$message.error('请选择要执行的医嘱')
  2383. }
  2384. },
  2385. delete_action: function() {
  2386. if (this.selectedAdviceData != null) {
  2387. this.$confirm('确认删除些条医嘱?', '医嘱删除', {
  2388. confirmButtonText: '确定',
  2389. cancelButtonText: '取消',
  2390. type: 'warning'
  2391. }).then(() => {
  2392. DeleteDoctorAdvice(this.selectedAdviceData.id).then(response => {
  2393. if (response.data.state == 0) {
  2394. this.$message.error(response.data.msg)
  2395. return false
  2396. } else {
  2397. this.$notify({
  2398. title: '成功',
  2399. message: '医嘱已经删除',
  2400. type: 'success',
  2401. duration: 2000
  2402. })
  2403. this.deleteResetData(this.currentIndex, this.selectedAdviceData)
  2404. }
  2405. })
  2406. }).catch(() => {
  2407. })
  2408. } else {
  2409. this.$message.error('请选择要删除的医嘱')
  2410. }
  2411. },
  2412. changeAdviceName(change) {
  2413. this.adviceForm.advice_name = this.drugOptions[change].name
  2414. this.adviceForm.advice_desc = this.drugOptions[change].spec
  2415. this.adviceForm.single_dose_unit = this.drugOptions[change].spec_unit
  2416. this.adviceForm.prescribing_number_unit = this.drugOptions[change].form_unit
  2417. },
  2418. changeSubAdviceName(change, val) {
  2419. val.advice_name = this.drugOptions[change].name
  2420. val.advice_desc = this.drugOptions[change].spec
  2421. val.single_dose_unit = this.drugOptions[change].spec_unit
  2422. val.prescribing_number_unit = this.drugOptions[change].form_unit
  2423. },
  2424. // 初始化数据
  2425. initData: function() {
  2426. console.log(this.$store.getters.xt_user.user.user_name)
  2427. var date = new Date()
  2428. var year = date.getFullYear()
  2429. var month = date.getMonth() + 1
  2430. var day = date.getDate()
  2431. if (month < 10) {
  2432. month = '0' + month
  2433. }
  2434. if (day < 10) {
  2435. day = '0' + day
  2436. }
  2437. var nowDate = year + '-' + month + '-' + day
  2438. var date = new Date(nowDate + ' 00:00:00')
  2439. this.record_date = date.getTime() / 1000
  2440. const id = this.$route.params && this.$route.params.id
  2441. this.patientId = id
  2442. // 全局信息
  2443. this.getAllDoctorAndNurses()
  2444. this.getAdviceConfig()
  2445. this.getAllZone()
  2446. this.GetAllData()
  2447. this.GetPatinentInfo()
  2448. this.fetchAllAdminUsers()
  2449. this.fetchAllDoctorAndNurse()
  2450. // store数据
  2451. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  2452. this.modeOptions = this.$store.getters.treatment_mode
  2453. this.replacementWays = this.$store.getters.replacement_ways
  2454. // debugger
  2455. // this.replacementWays = getDataConfig('hemodialysis','replacement_ways')
  2456. this.bloodFilters = this.$store.getters.blood_filters
  2457. this.perfusionApparatus = this.$store.getters.perfusion_apparatus
  2458. this.hemodialysisMachines = this.$store.getters.hemodialysis_machines
  2459. var vascularAccessObj = this.$store.getters.vascular_access
  2460. for (var index in vascularAccessObj) {
  2461. this.vascularAccess.push(vascularAccessObj[index])
  2462. }
  2463. var vascularAccessDescObj = this.$store.getters.vascular_access_desc
  2464. for (var index in vascularAccessDescObj) {
  2465. this.vascularAccessDesc.push(vascularAccessDescObj[index])
  2466. }
  2467. this.symptomsArray = this.$store.getters.symptoms
  2468. this.dealArray = this.$store.getters.deals
  2469. this.resultsArray = this.$store.getters.results
  2470. this.dialysisIntervalData = this.$store.getters.dialysis_duration
  2471. this.afterTheLastDialysiData = this.$store.getters.last_dialysis_after
  2472. this.preExistingSymptomsData = this.$store.getters.dialysis_before
  2473. this.DialysisBeforeAssesGuiltyData = this.$store.getters.internal_fistula
  2474. this.dialysisBeforeAssesCatheterData = this.$store.getters.catheter
  2475. this.dialysisBeforeAssesComplicationsData = this.$store.getters.complication
  2476. this.summary = this.$store.getters.summary
  2477. this.cruorData = this.$store.getters.cruor
  2478. this.symptomsAfterDialysiData = this.$store.getters.last_dialysis_after
  2479. this.fistulaData = this.$store.getters.internal_fistula
  2480. this.pipeData = this.$store.getters.catheter
  2481. this.complicationsData = this.$store.getters.complication
  2482. // this.cruorData = this.
  2483. var theDate = new Date()
  2484. var year = theDate.getFullYear()
  2485. var month = theDate.getMonth() + 1
  2486. var dat = theDate.getDate()
  2487. month = month < 10 ? '0' + month : month
  2488. dat = dat < 10 ? '0' + dat : dat
  2489. var adviceDate = year + '-' + month + '-' + dat
  2490. this.adviceForm.advice_date = adviceDate
  2491. },
  2492. toggleSelection(rows) {
  2493. if (rows) {
  2494. rows.forEach(row => {
  2495. this.$refs.multipleTable.toggleRowSelection(row)
  2496. })
  2497. } else {
  2498. this.$refs.multipleTable.clearSelection()
  2499. }
  2500. },
  2501. handleSelectionChange(val) {
  2502. this.multipleSelection = val
  2503. },
  2504. alertLog: function() {
  2505. },
  2506. listenToChildValue: function(val) {
  2507. this.dialysisAfterAsses.dialysateVolume = val
  2508. },
  2509. DialogComfirm: function(val) {
  2510. switch (val.title) {
  2511. case this.dialogDialysisIntervalTitle:
  2512. this.dialysisBeforeAsses.dialysisInterval = val.value.join(',')
  2513. this.isVisibiltyForDialysisIntervalDialog = false
  2514. break
  2515. case this.dialogAfterTheLastDialysisTitle:
  2516. this.dialysisBeforeAsses.afterTheLastDialysis = val.value.join(',')
  2517. this.isVisibiltyForAfterTheLastDialysisDialog = false
  2518. break
  2519. case this.dialogPreExistingSymptomsTitle:
  2520. this.dialysisBeforeAsses.preExistingSymptoms = val.value.join(',')
  2521. this.isVisibiltyForPreExistingSymptomsDialog = false
  2522. break
  2523. case this.dialogDialysisBeforeAssesGuiltyTitle:
  2524. this.dialysisBeforeAsses.guilty = val.value.join(',')
  2525. this.isVisibiltyForDialysisBeforeAssesGuiltyDialog = false
  2526. break
  2527. case this.dialogDialysisBeforeAssesCatheterTitle:
  2528. this.dialysisBeforeAsses.catheter = val.value.join(',')
  2529. this.isVisibiltyForDialysisBeforeAssesCatheterDialog = false
  2530. break
  2531. case this.dialogDialysisBeforeAssesComplicationsTitle:
  2532. this.dialysisBeforeAsses.complications = val.value.join(',')
  2533. this.isVisibiltyForDialysisBeforeAssesComplicationsDialog = false
  2534. break
  2535. // 透后评估部分
  2536. case this.dialogCruorTitle:
  2537. this.dialysisAfterAsses.cruor = val.value.join(',')
  2538. this.isVisibiltyForCruorDialog = false
  2539. break
  2540. case this.dialogSymptomsAfterDialysiTitle:
  2541. this.dialysisAfterAsses.symptomsAfterDialysi = val.value.join(',')
  2542. this.isVisibiltyForSymptomsAfterDialysiDialog = false
  2543. break
  2544. case this.dialogComplicationsTitle:
  2545. this.dialysisAfterAsses.complications = val.value.join(',')
  2546. this.isVisibiltyForcomplicationsDialog = false
  2547. break
  2548. case this.dialogComplicationsTitle:
  2549. this.dialysisAfterAsses.dialysateVolume = val.value.join(',')
  2550. this.isVisibiltyForDialysateVolumeDialog = false
  2551. break
  2552. // 调整干体重
  2553. case this.dialogAdjustWeightTitle:
  2554. // 提交干体重信息
  2555. createDryWeight(this.patientId, val.value).then(response => {
  2556. if (response.data.state == 0) {
  2557. this.$message.error(response.data.msg)
  2558. return false
  2559. } else {
  2560. this.$notify({
  2561. title: '成功',
  2562. message: '新增成功',
  2563. type: 'success',
  2564. duration: 2000
  2565. })
  2566. this.weightList.unshift(response.data.data.weight)
  2567. if (this.weightList.length > 6) {
  2568. this.weightList.pop()
  2569. }
  2570. this.dialogFormVisible = false
  2571. this.dialysisPrescription.adjustDryWeight = response.data.data.weight.weight
  2572. }
  2573. })
  2574. this.isVisibiltyAdjustDryWeightDialog = false
  2575. break
  2576. case this.dialogMonitorTitle:
  2577. // 提交数据
  2578. this.isVisibiltyForMonitorDialog = false
  2579. const ParamsQuery = val.value
  2580. ParamsQuery['id'] = this.patientId
  2581. ParamsQuery['dialysis_order_id'] = this.dialysisId
  2582. CreateMonitor(ParamsQuery).then(response => {
  2583. if (response.data.state == 0) {
  2584. this.$message.error(response.data.msg)
  2585. return false
  2586. } else {
  2587. this.monitoringRecordIsComfirm = true
  2588. this.$notify({
  2589. title: '成功',
  2590. message: '新增成功',
  2591. type: 'success',
  2592. duration: 2000
  2593. })
  2594. const monitor = {}
  2595. monitor['id'] = response.data.data.monitor.id
  2596. monitor['time'] = response.data.data.monitor.monitoring_time
  2597. monitor['PB'] = response.data.data.monitor.systolic_blood_pressure.toString() + '/' + response.data.data.monitor.diastolic_blood_pressure.toString()
  2598. monitor['pulse_frequency'] = response.data.data.monitor.pulse_frequency
  2599. monitor['breathing_rate'] = response.data.data.monitor.breathing_rate
  2600. monitor['blood_flow_volume'] = response.data.data.monitor.blood_flow_volume
  2601. monitor['venous_pressure'] = response.data.data.monitor.venous_pressure
  2602. monitor['transmembrane_pressure'] = response.data.data.monitor.transmembrane_pressure
  2603. monitor['ultrafiltration_volume'] = response.data.data.monitor.ultrafiltration_volume
  2604. monitor['sodium_concentration'] = response.data.data.monitor.sodium_concentration
  2605. monitor['dialysate_temperature'] = response.data.data.monitor.dialysate_temperature
  2606. monitor['replacement_rate'] = response.data.data.monitor.replacement_rate
  2607. monitor['displacement_quantity'] = response.data.data.monitor.displacement_quantity
  2608. monitor['symptom'] = response.data.data.monitor.symptom
  2609. monitor['dispose'] = response.data.data.monitor.dispose
  2610. monitor['replacement_rate'] = response.data.data.monitor.replacement_rate
  2611. monitor['result'] = response.data.data.monitor.result
  2612. this.monitoringRecordTableData.unshift(monitor)
  2613. }
  2614. })
  2615. break
  2616. case this.dialogSymptomsTitle:
  2617. this.symptomsData = val.value.join(',')
  2618. this.isVisibiltyForSymptomsDialog = false
  2619. break
  2620. case this.dialogDealTitle:
  2621. this.dealData = val.value.join(',')
  2622. this.isVisibiltyForDealDialog = false
  2623. break
  2624. case this.dialogResultsTitle:
  2625. this.resultsData = val.value.join(',')
  2626. this.isVisibiltyForResultsDialog = false
  2627. break
  2628. }
  2629. },
  2630. DialogCancle: function(val) {
  2631. switch (val) {
  2632. // 透前评估部分
  2633. case this.dialogDialysisIntervalTitle:
  2634. this.isVisibiltyForDialysisIntervalDialog = false
  2635. break
  2636. case this.dialogAfterTheLastDialysisTitle:
  2637. this.isVisibiltyForAfterTheLastDialysisDialog = false
  2638. break
  2639. case this.dialogPreExistingSymptomsTitle:
  2640. this.isVisibiltyForPreExistingSymptomsDialog = false
  2641. break
  2642. case this.dialogDialysisBeforeAssesGuiltyTitle:
  2643. this.isVisibiltyForDialysisBeforeAssesGuiltyDialog = false
  2644. break
  2645. case this.dialogDialysisBeforeAssesCatheterTitle:
  2646. this.isVisibiltyForDialysisBeforeAssesCatheterDialog = false
  2647. break
  2648. case this.dialogDialysisBeforeAssesComplicationsTitle:
  2649. this.isVisibiltyForDialysisBeforeAssesComplicationsDialog = false
  2650. break
  2651. // 透后评估部分
  2652. case this.dialogCruorTitle:
  2653. this.isVisibiltyForCruorDialog = false
  2654. break
  2655. case this.dialogSymptomsAfterDialysiTitle:
  2656. this.isVisibiltyForSymptomsAfterDialysiDialog = false
  2657. break
  2658. case this.dialogFistulaTitle:
  2659. this.isVisibiltyForFistulaDialog = false
  2660. break
  2661. case this.dialogPipeTitle:
  2662. this.isVisibiltyForPipeDialog = false
  2663. case this.dialogComplicationsTitle:
  2664. this.isVisibiltyForcomplicationsDialog = false
  2665. break
  2666. // 调整干体重
  2667. case this.dialogAdjustWeightTitle:
  2668. this.isVisibiltyAdjustDryWeightDialog = false
  2669. break
  2670. // 监测记录'
  2671. case this.dialogMonitorTitle:
  2672. this.isVisibiltyForMonitorDialog = false
  2673. break
  2674. case this.dialogSymptomsTitle:
  2675. this.isVisibiltyForSymptomsDialog = false
  2676. break
  2677. case this.dialogDealTitle:
  2678. this.isVisibiltyForDealDialog = false
  2679. break
  2680. case this.dialogResultsTitle:
  2681. this.isVisibiltyForResultsDialog = false
  2682. break
  2683. }
  2684. }, FormDialogComfirm: function(val) {
  2685. this.dialysisAfterAsses.dialysateVolume = val
  2686. this.isVisibiltyForDialysateVolumeDialog = false
  2687. }, FormDialogCancle: function() {
  2688. this.isVisibiltyForDialysateVolumeDialog = false
  2689. },
  2690. changeDialysisMachine: function(val) {
  2691. for (let i = 0; i < this.deviceList.length; i++) {
  2692. if (this.deviceList[i].id == val) {
  2693. this.dialysisPrescription.machineType = this.deviceList[i].model
  2694. }
  2695. }
  2696. },
  2697. changeThisAnticoagulant: function(val) {
  2698. var thismode = parseInt(val)
  2699. if (isNaN(thismode) || thismode <= 0) {
  2700. return false
  2701. }
  2702. if (typeof (this.anticoagulantsConfit[thismode]) === 'undefined' || this.anticoagulantsConfit[thismode] == null) {
  2703. return false
  2704. }
  2705. this.anticoagulant = this.anticoagulantsConfit[thismode]
  2706. },
  2707. commitDialysisPrescriptionAndOther() {
  2708. const ParamsQuery = this.dialysisPrescription
  2709. ParamsQuery['id'] = this.patientId
  2710. ParamsQuery['dialysis_order_id'] = this.dialysisId
  2711. ParamsQuery['record_date'] = this.record_date
  2712. ParamsQuery['isCommitSolution'] = 1
  2713. commitDailysisRecord(ParamsQuery).then(response => {
  2714. // this.DialysisPrescriptionComfirmUserName = response.data.data.orgName + " " + "已确定"
  2715. if (response.data.state == 1) {
  2716. this.$notify({
  2717. title: '成功',
  2718. message: '确认成功',
  2719. type: 'success',
  2720. duration: 2000
  2721. })
  2722. this.setTQdata(ParamsQuery)
  2723. } else {
  2724. this.$message.error(response.data.msg)
  2725. return false
  2726. }
  2727. })
  2728. this.dialysisPrescriptionIsComfirm = true
  2729. }, getAllDoctorAndNurses: function() {
  2730. doctorAndNurseList().then(response => {
  2731. if (response.data.data.doctors != null) {
  2732. this.doctorList = response.data.data.doctors
  2733. }
  2734. if (response.data.data.nursers != null) {
  2735. this.nurseList = response.data.data.nursers
  2736. }
  2737. })
  2738. },
  2739. getFormatDate: function(timestamp) {
  2740. timestamp = parseInt(timestamp + '000')
  2741. var newDate = new Date(timestamp)
  2742. Date.prototype.format = function(format) {
  2743. var date = {
  2744. 'M+': this.getMonth() + 1,
  2745. 'd+': this.getDate(),
  2746. 'h+': this.getHours(),
  2747. 'm+': this.getMinutes(),
  2748. 's+': this.getSeconds(),
  2749. 'q+': Math.floor((this.getMonth() + 3) / 3),
  2750. 'S+': this.getMilliseconds()
  2751. }
  2752. if (/(y+)/i.test(format)) {
  2753. format = format.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
  2754. }
  2755. for (var k in date) {
  2756. if (new RegExp('(' + k + ')').test(format)) {
  2757. format = format.replace(RegExp.$1, RegExp.$1.length == 1
  2758. ? date[k] : ('00' + date[k]).substr(('' + date[k]).length))
  2759. }
  2760. }
  2761. return format
  2762. }
  2763. return newDate.format('yyyy-MM-dd')
  2764. },
  2765. calAgeByBirthday: function(time) {
  2766. var r = this.getFormatDate(time).match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/)
  2767. if (r == null) return false
  2768. var d = new Date(r[1], r[3] - 1, r[4])
  2769. if (d.getFullYear() == r[1] && (d.getMonth() + 1) == r[3] && d.getDate() == r[4]) {
  2770. var Y = new Date().getFullYear()
  2771. return (Y - r[1])
  2772. } else {
  2773. return 0
  2774. }
  2775. },
  2776. dialysisAfterTeachSelectChange: function(values) {
  2777. console.log(this.dialysisSummary.propagandaAndEducationContent)
  2778. if (this.dialysisSummary.propagandaAndEducationContent == '') {
  2779. this.dialysisSummary.propagandaAndEducationContent = values
  2780. } else {
  2781. if (this.dialysisSummary.propagandaAndEducationContent.indexOf(values) == -1) {
  2782. if (this.dialysisSummary.propagandaAndEducationContent.charAt(this.dialysisSummary.propagandaAndEducationContent.length - 1).indexOf('。') == -1) {
  2783. this.dialysisSummary.propagandaAndEducationContent = this.dialysisSummary.propagandaAndEducationContent + ',' + values
  2784. } else {
  2785. this.dialysisSummary.propagandaAndEducationContent = this.dialysisSummary.propagandaAndEducationContent + values
  2786. }
  2787. }
  2788. }
  2789. },
  2790. dialysisSummarySelectChange: function(values) {
  2791. if (this.dialysisSummary.summaryContent == '') {
  2792. this.dialysisSummary.summaryContent = values
  2793. } else {
  2794. if (this.dialysisSummary.summaryContent.indexOf(values) == -1) {
  2795. if (this.dialysisSummary.summaryContent.charAt(this.dialysisSummary.summaryContent.length - 1).indexOf('。') == -1) {
  2796. this.dialysisSummary.summaryContent = this.dialysisSummary.summaryContent + ',' + values
  2797. } else {
  2798. this.dialysisSummary.summaryContent = this.dialysisSummary.summaryContent + ',' + values
  2799. this.dialysisSummary.summaryContent = this.dialysisSummary.summaryContent + values
  2800. }
  2801. }
  2802. }
  2803. }, commitDialysisPrescription() {
  2804. const ParamsQuery = this.dialysisPrescription
  2805. console.log(ParamsQuery)
  2806. ParamsQuery['id'] = this.patientId
  2807. ParamsQuery['dialysis_order_id'] = this.dialysisId
  2808. ParamsQuery['record_date'] = this.record_date
  2809. commitDailysisRecord(ParamsQuery).then(response => {
  2810. // this.DialysisPrescriptionComfirmUserName = response.data.data.orgName + " " + "已确定"
  2811. if (response.data.state == 1) {
  2812. if (this.$store.getters.xt_user.user.user_type == 1) {
  2813. this.DialysisPrescriptionComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 管理员'
  2814. } else if (this.$store.getters.xt_user.user.user_type == 2) {
  2815. this.DialysisPrescriptionComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 医生'
  2816. } else if (this.$store.getters.xt_user.user.user_type == 3) {
  2817. this.DialysisPrescriptionComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 护士'
  2818. } else if (this.$store.getters.xt_user.user.user_type == 4) {
  2819. this.DialysisPrescriptionComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 运营'
  2820. }
  2821. this.$notify({
  2822. title: '成功',
  2823. message: '确认成功',
  2824. type: 'success',
  2825. duration: 2000
  2826. })
  2827. this.setTQdata(ParamsQuery)
  2828. } else {
  2829. this.$message.error(response.data.msg)
  2830. return false
  2831. }
  2832. })
  2833. this.dialysisPrescriptionIsComfirm = true
  2834. }, submitDialysisBeforeAssesForm: function() {
  2835. const ParamsQuery = this.dialysisBeforeAsses
  2836. ParamsQuery['id'] = this.patientId
  2837. ParamsQuery['dialysis_order_id'] = this.dialysisId
  2838. ParamsQuery['record_date'] = this.record_date
  2839. commitDailysisRecord(ParamsQuery).then(response => {
  2840. // this.DialysisBeforeAssesComfirmUserName = response.data.data.orgName + " " + "已确定"
  2841. if (response.data.state == 1) {
  2842. if (this.$store.getters.xt_user.user.user_type == 1) {
  2843. this.DialysisBeforeAssesComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 管理员'
  2844. } else if (this.$store.getters.xt_user.user.user_type == 2) {
  2845. this.DialysisBeforeAssesComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 医生'
  2846. } else if (this.$store.getters.xt_user.user.user_type == 3) {
  2847. this.DialysisBeforeAssesComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 护士'
  2848. } else if (this.$store.getters.xt_user.user.user_type == 4) {
  2849. this.DialysisBeforeAssesComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 运营'
  2850. }
  2851. this.$notify({
  2852. title: '成功',
  2853. message: '确认成功',
  2854. type: 'success',
  2855. duration: 2000
  2856. })
  2857. // 为了打印
  2858. this.setBdData(ParamsQuery)
  2859. } else {
  2860. this.$message.error(response.data.msg)
  2861. return false
  2862. }
  2863. })
  2864. this.dialysisBeforeAssesIsComfirm = true
  2865. },
  2866. submitDialysisAfterAssesForm: function() {
  2867. const ParamsQuery = this.dialysisAfterAsses
  2868. ParamsQuery['id'] = this.patientId
  2869. ParamsQuery['dialysis_order_id'] = this.dialysisId
  2870. ParamsQuery['record_date'] = this.record_date
  2871. commitDailysisRecord(ParamsQuery).then(response => {
  2872. if (response.data.state == 1) {
  2873. // this.SubmitDialysisAfterAssesComfirmUserName = response.data.data.orgName + " " + "已确定"
  2874. if (this.$store.getters.xt_user.user.user_type == 1) {
  2875. this.dialysisAfterAssesIsComfirm = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 管理员'
  2876. } else if (this.$store.getters.xt_user.user.user_type == 2) {
  2877. this.dialysisAfterAssesIsComfirm = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 医生'
  2878. } else if (this.$store.getters.xt_user.user.user_type == 3) {
  2879. this.dialysisAfterAssesIsComfirm = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 护士'
  2880. } else if (this.$store.getters.xt_user.user.user_type == 4) {
  2881. this.dialysisAfterAssesIsComfirm = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 运营'
  2882. }
  2883. this.$notify({
  2884. title: '成功',
  2885. message: '确认成功',
  2886. type: 'success',
  2887. duration: 2000
  2888. })
  2889. } else {
  2890. this.$message.error(response.data.msg)
  2891. return false
  2892. }
  2893. })
  2894. this.dialysisAfterAssesIsComfirm = true
  2895. },
  2896. submitSummary: function(val) {
  2897. const ParamsQuery = this.dialysisSummary
  2898. ParamsQuery['id'] = this.patientId
  2899. ParamsQuery['dialysis_order_id'] = this.dialysisId
  2900. ParamsQuery['record_date'] = this.record_date
  2901. commitDailysisRecord(ParamsQuery).then(response => {
  2902. if (response.data.state == 1) {
  2903. // this.DialysisSummaryComfirmUserName = response.data.data.orgName + " " + "已确定"
  2904. if (this.$store.getters.xt_user.user.user_type == 1) {
  2905. this.DialysisSummaryComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 管理员'
  2906. } else if (this.$store.getters.xt_user.user.user_type == 2) {
  2907. this.DialysisSummaryComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 医生'
  2908. } else if (this.$store.getters.xt_user.user.user_type == 3) {
  2909. this.DialysisSummaryComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 护士'
  2910. } else if (this.$store.getters.xt_user.user.user_type == 4) {
  2911. this.DialysisSummaryComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 运营'
  2912. }
  2913. this.$notify({
  2914. title: '成功',
  2915. message: '确认成功',
  2916. type: 'success',
  2917. duration: 2000
  2918. })
  2919. } else {
  2920. this.$message.error(response.data.msg)
  2921. return false
  2922. }
  2923. })
  2924. this.dialysisSummaryIsComfirm = true
  2925. }, commitDoubleCheck: function() {
  2926. const ParamsQuery = this.doubleReview
  2927. ParamsQuery['id'] = this.patientId
  2928. ParamsQuery['dialysis_order_id'] = this.dialysisId
  2929. ParamsQuery['record_date'] = this.record_date
  2930. commitDailysisRecord(ParamsQuery).then(response => {
  2931. if (response.data.state == 1) {
  2932. // this.DoubleCheckComfirmUserName = response.data.data.orgName + " " + "已确定"
  2933. if (this.$store.getters.xt_user.user.user_type == 1) {
  2934. this.DoubleCheckComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 管理员'
  2935. } else if (this.$store.getters.xt_user.user.user_type == 2) {
  2936. this.DoubleCheckComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 医生'
  2937. } else if (this.$store.getters.xt_user.user.user_type == 3) {
  2938. this.DoubleCheckComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 护士'
  2939. } else if (this.$store.getters.xt_user.user.user_type == 4) {
  2940. this.DoubleCheckComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 运营'
  2941. }
  2942. this.$notify({
  2943. title: '成功',
  2944. message: '确认成功',
  2945. type: 'success',
  2946. duration: 2000
  2947. })
  2948. } else {
  2949. this.$message.error(response.data.msg)
  2950. return false
  2951. }
  2952. })
  2953. this.doubleCheckIsComfirm = true
  2954. }, commitReceiveTreatmentAssesRecord: function() {
  2955. const ParamsQuery = this.receiveTreatmentAsses
  2956. ParamsQuery['id'] = this.patientId
  2957. ParamsQuery['dialysis_order_id'] = this.dialysisId
  2958. ParamsQuery['record_date'] = this.record_date
  2959. commitDailysisRecord(ParamsQuery).then(response => {
  2960. if (response.data.state == 1) {
  2961. // this.CommitReceiveTreatmentAssesComfirmUserName = response.data.data.orgName + " " + "已确定"
  2962. if (this.$store.getters.xt_user.user.user_type == 1) {
  2963. this.CommitReceiveTreatmentAssesComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 管理员'
  2964. } else if (this.$store.getters.xt_user.user.user_type == 2) {
  2965. this.CommitReceiveTreatmentAssesComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 医生'
  2966. } else if (this.$store.getters.xt_user.user.user_type == 3) {
  2967. this.CommitReceiveTreatmentAssesComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 护士'
  2968. } else if (this.$store.getters.xt_user.user.user_type == 4) {
  2969. this.CommitReceiveTreatmentAssesComfirmUserName = '提交人: ' + this.$store.getters.xt_user.user.user_name + ' 运营'
  2970. }
  2971. this.$notify({
  2972. title: '成功',
  2973. message: '确认成功',
  2974. type: 'success',
  2975. duration: 2000
  2976. })
  2977. } else {
  2978. this.$message.error(response.data.msg)
  2979. return false
  2980. }
  2981. })
  2982. this.receiveTreatmentAssesIsComfirm = true
  2983. },
  2984. showDialog: function(val) {
  2985. switch (val) {
  2986. // 透前评估
  2987. case 'dialysisInterval':
  2988. this.isVisibiltyForDialysisIntervalDialog = true
  2989. break
  2990. case 'afterTheLastDialysis':
  2991. this.isVisibiltyForAfterTheLastDialysisDialog = true
  2992. break
  2993. case 'dialysisBeforePreExistingSymptoms':
  2994. this.isVisibiltyForPreExistingSymptomsDialog = true
  2995. break
  2996. case 'dialysisBeforeGuilty':
  2997. this.isVisibiltyForDialysisBeforeAssesGuiltyDialog = true
  2998. break
  2999. case 'dialysisBeforeCatheter':
  3000. this.isVisibiltyForDialysisBeforeAssesCatheterDialog = true
  3001. break
  3002. case 'dialysisBeforeComplications':
  3003. this.isVisibiltyForDialysisBeforeAssesComplicationsDialog = true
  3004. break
  3005. // 透后评估
  3006. case 'cruor':
  3007. this.isVisibiltyForCruorDialog = true
  3008. break
  3009. case 'symptomsAfterDialysi':
  3010. this.isVisibiltyForSymptomsAfterDialysiDialog = true
  3011. break
  3012. case 'dialysateVolume':
  3013. this.isVisibiltyForDialysateVolumeDialog = true
  3014. break
  3015. case 'fistula':
  3016. this.isVisibiltyForFistulaDialog = true
  3017. break
  3018. case 'pipe':
  3019. this.isVisibiltyForPipeDialog = true
  3020. break
  3021. case 'complications':
  3022. this.isVisibiltyForcomplicationsDialog = true
  3023. break
  3024. // 调整干体重
  3025. case 'adjustDryWeight':
  3026. if (this.patientId == 0) {
  3027. alert('请选择患者')
  3028. return
  3029. } else {
  3030. this.isVisibiltyAdjustDryWeightDialog = true
  3031. }
  3032. break
  3033. }
  3034. },
  3035. showInnerDialog: function(val) {
  3036. switch (val) {
  3037. case 'symptom':
  3038. this.isVisibiltyForSymptomsDialog = true
  3039. break
  3040. case 'deal':
  3041. this.isVisibiltyForDealDialog = true
  3042. break
  3043. case 'result':
  3044. this.isVisibiltyForResultsDialog = true
  3045. break
  3046. }
  3047. },
  3048. changeSelect: function() {
  3049. switch (this.dialysisBeforeAsses.weightWay) {
  3050. case '1':
  3051. this.dialysisbeforeWeighedIsDisabled = false
  3052. this.clothingWeightIsDisabled = false
  3053. this.dialysisbeforeWeightIsDisabled = false
  3054. this.weightAddIsDisabled = false
  3055. this.dialysisBeforeAsses.dialysisbeforeWeighed = ''
  3056. break
  3057. case '2':
  3058. this.dialysisbeforeWeighedIsDisabled = true
  3059. this.clothingWeightIsDisabled = true
  3060. this.dialysisbeforeWeightIsDisabled = true
  3061. this.weightAddIsDisabled = true
  3062. this.dialysisBeforeAsses.dialysisbeforeWeighed = '卧床'
  3063. break
  3064. case '3':
  3065. this.dialysisbeforeWeighedIsDisabled = true
  3066. this.clothingWeightIsDisabled = true
  3067. this.dialysisbeforeWeightIsDisabled = true
  3068. this.weightAddIsDisabled = true
  3069. this.dialysisBeforeAsses.dialysisbeforeWeighed = '拒测'
  3070. break
  3071. }
  3072. }, changeDialysisMode: function(val) {
  3073. var thismode = parseInt(val)
  3074. if (isNaN(thismode) || thismode <= 0) {
  3075. return false
  3076. }
  3077. if (typeof (this.modeOptions[thismode]) === 'undefined' || this.modeOptions[thismode] == null) {
  3078. return false
  3079. }
  3080. this.treatmentMode = this.modeOptions[thismode]
  3081. }, adjustDryWeight: function() {
  3082. }, getAllWeightList: function(val) {
  3083. const listQuery = {
  3084. page: 0,
  3085. limit: 0,
  3086. id: val.id
  3087. }
  3088. getDryWeights(listQuery).then(response => {
  3089. console.log(response)
  3090. if (response.data.state == 1) {
  3091. this.weightList = response.data.data.weights
  3092. if (this.weightList.length > 0) {
  3093. this.dialysisPrescription.adjustDryWeight = this.weightList[0].weight
  3094. }
  3095. }
  3096. })
  3097. },
  3098. // 医嘱相关
  3099. getAdviceConfig() {
  3100. let params = { //医嘱类型 0临时医嘱模版 1长期医嘱模版
  3101. type: 0
  3102. }
  3103. getAdviceConfig(params.type).then(response => {
  3104. if (response.data.state == 1) {
  3105. this.deliveryWayOptions = response.data.data.drugways
  3106. this.executionFrequencyOptions = response.data.data.efs
  3107. var druglist = {}
  3108. var durglength = response.data.data.drugs.length
  3109. for (let index = 0; index < durglength; index++) {
  3110. druglist[response.data.data.drugs[index].id] = response.data.data.drugs[index]
  3111. }
  3112. this.drugOptions = druglist
  3113. }
  3114. })
  3115. },
  3116. submitEditAdvice(formName) {
  3117. // this.$refs[formName].validate((valid) => {
  3118. // if (valid) {
  3119. // EditDoctorAdvice(this.patientId, this.adviceForm.id, this.adviceForm).then(response => {
  3120. // if (response.data.state == 0) {
  3121. // this.$message.error(response.data.msg);
  3122. // return false;
  3123. // } else {
  3124. // this.$notify({
  3125. // title: "成功",
  3126. // message: "修改医嘱成功",
  3127. // type: "success",
  3128. // duration: 2000
  3129. // });
  3130. // this.dialogFormVisible = false;
  3131. // // this.resetForm(formName);
  3132. //
  3133. // for (let i = 0; i < this.doctorList.length; i++) {
  3134. // if (this.doctorList[i].id == response.data.data.advice.execution_staff) {
  3135. // this.adviceTableData[this.currentIndex].execution_staff = this.doctorList[i].name
  3136. // }
  3137. // }
  3138. // for (let i = 0; i < this.nurseList.length; i++) {
  3139. // if (this.doctorList[i].id == response.data.data.advice.execution_staff) {
  3140. // this.adviceTableData[this.currentIndex].execution_staff = this.doctorList[i].name
  3141. // }
  3142. // }
  3143. // for (let i = 0; i < this.doctorList.length; i++) {
  3144. // if (this.doctorList[i].id == response.data.data.advice.execution_staff) {
  3145. // this.adviceTableData[this.currentIndex].checker = this.doctorList[i].name
  3146. // }
  3147. // }
  3148. // for (let i = 0; i < this.nurseList.length; i++) {
  3149. // if (this.doctorList[i].id == response.data.data.advice.execution_staff) {
  3150. // this.adviceTableData[this.currentIndex].checker = this.doctorList[i].name
  3151. // }
  3152. // }
  3153. // this.adviceTableData[this.currentIndex].execution_time = this.getFormatDate(response.data.data.advice.execution_time)
  3154. // this.currentIndex = -1;
  3155. // return false;
  3156. // }
  3157. // });
  3158. // }
  3159. // });
  3160. },
  3161. submitNewAdvice(formName, action) {
  3162. const SubAdvices = []
  3163. for (var i = 0; i < this.SubAdvice.length; i++) {
  3164. SubAdvices.push(this.SubAdvice[i].subAdivceForm)
  3165. }
  3166. this.adviceForm['subAdviceForm'] = SubAdvices
  3167. this.$refs[formName].validate((valid) => {
  3168. if (valid) {
  3169. const form = Object.assign({}, this.adviceForm)
  3170. CreateDoctorAdvice(this.patientId, this.dialysisId, this.record_date, form).then(response => {
  3171. if (response.data.state == 0) {
  3172. this.$message.error(response.data.msg)
  3173. return false
  3174. } else {
  3175. this.$notify({
  3176. title: '成功',
  3177. message: '新增医嘱成功',
  3178. type: 'success',
  3179. duration: 2000
  3180. })
  3181. this.dialogFormVisible = false
  3182. if (response.data.data.subAdvice != null) {
  3183. for (let i = 0; i < response.data.data.subAdvice.length; i++) {
  3184. const subAdviceTableData = {}
  3185. subAdviceTableData['advice_content'] = response.data.data.subAdvice[i].advice_name + response.data.data.subAdvice[i].advice_desc + ' ' + response.data.data.subAdvice[i].single_dose + response.data.data.subAdvice[i].single_dose_unit + ' ' + response.data.data.subAdvice[i].prescribing_number + response.data.data.subAdvice[i].prescribing_number_unit
  3186. subAdviceTableData['id'] = response.data.data.subAdvice[i].id
  3187. subAdviceTableData['parent_id'] = response.data.data.subAdvice[i].parent_id
  3188. this.adviceTableData.unshift(subAdviceTableData)
  3189. }
  3190. }
  3191. if (response.data.data.advice != null) {
  3192. const adviceTableDatas = {}
  3193. adviceTableDatas['start_time'] = this.getFormatDate(response.data.data.advice.start_time)
  3194. adviceTableDatas['advice_content'] = response.data.data.advice.advice_name + response.data.data.advice.advice_desc + ' ' + response.data.data.advice.single_dose + response.data.data.advice.single_dose_unit + ' ' + response.data.data.advice.prescribing_number + response.data.data.advice.prescribing_number_unit + ' ' + response.data.data.advice.delivery_way + response.data.data.advice.execution_frequency
  3195. adviceTableDatas['id'] = response.data.data.advice.id
  3196. adviceTableDatas['parent_id'] = response.data.data.advice.parent_id
  3197. adviceTableDatas['advice_doctor'] = response.data.data.advice.advice_doctor
  3198. adviceTableDatas['execution_time'] = ''
  3199. adviceTableDatas['execution_staff'] = ''
  3200. adviceTableDatas['checker'] = ''
  3201. this.adviceTableData.unshift(adviceTableDatas)
  3202. this.currentIndex = -1
  3203. return false
  3204. }
  3205. }
  3206. })
  3207. }
  3208. })
  3209. }, getAllZone: function() {
  3210. GetAllZone().then(response => {
  3211. if (response.data.state == 0) {
  3212. this.$message.error(response.data.msg)
  3213. return false
  3214. } else {
  3215. this.sickAreaData = response.data.data.zone
  3216. }
  3217. })
  3218. },
  3219. handleChangeChild: function(value) {
  3220. console.log(value)
  3221. console.log(this.lastValue)
  3222. if (parseInt(value) > this.lastValue) { // 新增
  3223. this.lastValue = parseInt(value)
  3224. const Object = {
  3225. 'id': value,
  3226. 'labelName': '子药名称' + value,
  3227. 'labeldesc': '子药描述' + value,
  3228. 'sigle': '单次用量' + value,
  3229. 'num': '开药数量' + value,
  3230. 'subAdivceForm': {
  3231. 'advice_name': '',
  3232. 'advice_desc': '',
  3233. 'single_dose': '',
  3234. 'single_dose_unit': '',
  3235. 'prescribing_number': '',
  3236. 'prescribing_number_unit': ''
  3237. }
  3238. }
  3239. this.SubAdvice.push(Object)
  3240. return
  3241. } else if (parseInt(value) < this.lastValue) {
  3242. this.lastValue = parseInt(value)
  3243. this.SubAdvice.pop()
  3244. return
  3245. }
  3246. }, deleteResetData(index, data) {
  3247. if (data.parent_id > 0) { // 子药物
  3248. this.adviceTableData.splice(index, 1)
  3249. } else {
  3250. var resetTableData = this.adviceTableData
  3251. this.adviceTableData = []
  3252. var that = this
  3253. resetTableData.forEach(function(item, itemindex) {
  3254. if (item.id != data.id && item.parent_id != data.id) {
  3255. that.adviceTableData.push(item)
  3256. }
  3257. })
  3258. }
  3259. }, tableRowClassName({ row, rowIndex }) {
  3260. // 把每一行的索引放进row
  3261. row.index = rowIndex
  3262. },
  3263. onRowClick(row, event, column) {
  3264. this.currentIndex = row.index
  3265. this.selectedAdviceData = row
  3266. }, submitExecuteAdvice() {
  3267. const params = {
  3268. 'patient': this.patientId,
  3269. 'id': this.executionForm.id,
  3270. 'parent_id': this.executionForm.parent_id,
  3271. 'execution_time': this.executionForm.execution_time,
  3272. 'execution_staff': this.executionForm.execution_staff,
  3273. 'checker': this.executionForm.checker
  3274. }
  3275. editDoctorAdviceById(params).then(response => {
  3276. if (response.data.state == 0) {
  3277. this.$message.error(response.data.msg)
  3278. return false
  3279. } else {
  3280. this.$notify({
  3281. title: '成功',
  3282. message: '执行医嘱成功',
  3283. type: 'success',
  3284. duration: 2000
  3285. })
  3286. this.dialogFormExecutionVisible = false
  3287. this.adviceTableData[this.currentIndex].execution_staff = response.data.data.advice.execution_staff
  3288. this.adviceTableData[this.currentIndex].checker = response.data.data.advice.checker
  3289. this.adviceTableData[this.currentIndex].execution_time = this.getFormatDate(response.data.data.advice.execution_time)
  3290. this.currentIndex = -1
  3291. return false
  3292. }
  3293. })
  3294. }, GetAllData: function() {
  3295. const params = {}
  3296. GetDeviceInfo(params).then(response => {
  3297. this.deviceList = response.data.data.device
  3298. })
  3299. }, tableMonitorRowClassName({ row, rowIndex }) {
  3300. // 把每一行的索引放进row
  3301. row.index = rowIndex
  3302. },
  3303. onMonitorRowClick(row, event, column) {
  3304. this.currentMonitorTableIndex = row.index
  3305. }, delMonitor: function() {
  3306. if (this.currentMonitorTableIndex == -1) {
  3307. this.$message.error('请选择要删除的记录')
  3308. return
  3309. } else {
  3310. const id = this.monitoringRecordTableData[this.currentMonitorTableIndex].id
  3311. const params = {
  3312. 'recordId': id,
  3313. 'id': this.patientId
  3314. }
  3315. this.$confirm('确认删除这条监控?', '透析监控删除', {
  3316. confirmButtonText: '确定',
  3317. cancelButtonText: '取消',
  3318. type: 'warning'
  3319. }).then(() => {
  3320. delMonitor(params).then(response => {
  3321. if (response.data.state == 0) {
  3322. this.$message.error(response.data.msg)
  3323. return false
  3324. } else {
  3325. this.$notify({
  3326. title: '成功',
  3327. message: '删除成功',
  3328. type: 'success',
  3329. duration: 2000
  3330. })
  3331. this.monitoringRecordTableData.splice(this.currentMonitorTableIndex, 1)
  3332. }
  3333. })
  3334. }).catch(() => {
  3335. })
  3336. }
  3337. }, startDialysis: function() {
  3338. if (this.dialysisId == 0) {
  3339. let tip = ''
  3340. if (this.dialysisPrescriptionIsComfirm != true) {
  3341. tip = tip + '透析处方,'
  3342. }
  3343. if (this.receiveTreatmentAssesIsComfirm != true) {
  3344. tip = tip + '接诊评估,'
  3345. }
  3346. if (this.dialysisBeforeAssesIsComfirm != true) {
  3347. tip = tip + '透前评估,'
  3348. }
  3349. if (this.doctorAdviceIsComfirm != true) {
  3350. tip = tip + '临时医嘱'
  3351. }
  3352. if (tip.length <= 0) {
  3353. tip = ''
  3354. } else {
  3355. tip = tip + '等尚未确认是否开始上机'
  3356. }
  3357. this.$confirm(tip, {
  3358. confirmButtonText: '确定',
  3359. cancelButtonText: '取消',
  3360. type: 'warning'
  3361. }).then(() => {
  3362. const params = {
  3363. 'id': this.patientId,
  3364. 'status': 1
  3365. }
  3366. PostStartRecordInfo(params).then(response => {
  3367. if (response.data.state == 0) {
  3368. this.$message.error(response.data.msg)
  3369. return false
  3370. } else {
  3371. this.$notify({
  3372. title: '成功',
  3373. message: '上机成功',
  3374. type: 'success',
  3375. duration: 2000
  3376. })
  3377. this.dialysisId = response.data.data.dialysisOrder.id
  3378. this.dialysisStatus = response.data.data.dialysisOrder.stage
  3379. }
  3380. })
  3381. }).catch(() => {
  3382. })
  3383. } else {
  3384. if (this.dialysisStatus == 1) {
  3385. this.$message.error('已经处于上机状态')
  3386. } else if (this.dialysisStatus == 2) {
  3387. this.$message.error('透析已结束')
  3388. }
  3389. }
  3390. }, finishDialysis: function() {
  3391. if (this.dialysisStatus == 1) {
  3392. let tip = ''
  3393. if (this.dialysisPrescriptionIsComfirm != true) {
  3394. tip = tip + '透析处方,'
  3395. }
  3396. if (this.receiveTreatmentAssesIsComfirm != true) {
  3397. tip = tip + '接诊评估,'
  3398. }
  3399. if (this.dialysisBeforeAssesIsComfirm != true) {
  3400. tip = tip + '透前评估,'
  3401. }
  3402. if (this.doctorAdviceIsComfirm != true) {
  3403. tip = tip + '临时医嘱,'
  3404. }
  3405. if (this.doubleCheckIsComfirm != true) {
  3406. tip = tip + '双人核对,'
  3407. }
  3408. if (this.monitoringRecordIsComfirm != true) {
  3409. tip = tip + '透析监测,'
  3410. }
  3411. this.$confirm(tip + '等尚未确认是否开始下机', {
  3412. confirmButtonText: '确定',
  3413. cancelButtonText: '取消',
  3414. type: 'warning'
  3415. }).then(() => {
  3416. const params = {
  3417. 'id': this.patientId,
  3418. 'status': 2,
  3419. 'record_id': this.dialysisId
  3420. }
  3421. PostStartRecordInfo(params).then(response => {
  3422. if (response.data.state == 0) {
  3423. this.$message.error(response.data.msg)
  3424. return false
  3425. } else {
  3426. this.$notify({
  3427. title: '成功',
  3428. message: '下机成功',
  3429. type: 'success',
  3430. duration: 2000
  3431. })
  3432. this.dialysisStatus = response.data.data.dialysisOrder.stage
  3433. }
  3434. })
  3435. }).catch(() => {
  3436. })
  3437. } else if (this.dialysisStatus == 2) {
  3438. this.$message.error('透析已结束')
  3439. } else {
  3440. this.$message.error('尚未开始上机,无法执行下机')
  3441. }
  3442. }, schedualPickTime: function(val) {
  3443. this.record_date = val.getTime() / 1000
  3444. this.GetPatinentInfo()
  3445. }, initModel: function() {
  3446. this.dialysisSummary = {
  3447. module: 'summary',
  3448. text: '',
  3449. propagandaAndEducationContent: '',
  3450. text2: '',
  3451. summaryContent: '',
  3452. changeMedicalNurse: '',
  3453. treatNurse: '',
  3454. checkStaff: '',
  3455. deboardNurse: '',
  3456. treatDoctor: ''
  3457. }
  3458. this.userInfo = {
  3459. radio: 1,
  3460. userName: '',
  3461. gender: '',
  3462. age: '',
  3463. label: '门诊',
  3464. dialysisNumber: '',
  3465. inpatientWard: '',
  3466. bed: '',
  3467. dialysisCount: '',
  3468. diagnosis: '',
  3469. entryMethod: '',
  3470. firstDialysisTime: '',
  3471. dialysisTime: '',
  3472. admission_number: ''
  3473. }
  3474. this.dialysisPrescription = {
  3475. module: 'dialysisPrescription',
  3476. gaijiliang: '',
  3477. gaimingcheng: '',
  3478. machine: '',
  3479. machineType: '',
  3480. targetDewateringAmount: '',
  3481. prescriptionDehydration: '',
  3482. anticoagulant: '',
  3483. firstDose: '',
  3484. maintenance: '',
  3485. total: '',
  3486. dialysisTime: '',
  3487. dialysisMode: '',
  3488. displacesTotal: '',
  3489. displacesMethod: '',
  3490. hemodialysisDevice: '',
  3491. bloodFilterDevice: '',
  3492. hemoperfusion: '',
  3493. adjustDryWeight: '',
  3494. vascularAccess: '',
  3495. vascularAccessDesc: '',
  3496. bloodFlow: '',
  3497. displaceLiqui: '',
  3498. dialysateFlow: '',
  3499. kalium: '',
  3500. sodium: '',
  3501. calcium: '',
  3502. bicarbonate: '',
  3503. glucose: '',
  3504. remark: '',
  3505. conductivity: '',
  3506. dialysate_temperature: '',
  3507. dialysis_duration_hour: '',
  3508. dialysis_duration_minute: '',
  3509. target_ultrafiltration: '',
  3510. dialysate_formulation: '1'
  3511. }
  3512. // 透前评估
  3513. this.dialysisBeforeAsses = {
  3514. module: 'dialysisBeforeAsses',
  3515. T: '',
  3516. P: '',
  3517. R: '',
  3518. part: '',
  3519. systolic: '',
  3520. diastolic: '',
  3521. dryWeight: '',
  3522. lastdialysisAfterWeight: '',
  3523. weightWay: '',
  3524. dialysisbeforeWeighed: '',
  3525. clothingWeight: '',
  3526. dialysisbeforeWeight: '',
  3527. weightAdd: '',
  3528. PreDrinkingAmount: '',
  3529. totalAmountOfUltrafiltration: '',
  3530. dialysisInterval: '',
  3531. afterTheLastDialysis: '',
  3532. preExistingSymptoms: '',
  3533. guilty: '',
  3534. catheter: '',
  3535. complications: '',
  3536. is_hemorrhage: '2',
  3537. hemorrhage_value: [],
  3538. hemorrhage: '',
  3539. hemorrhage_other: '',
  3540. blood_access_part_id: '',
  3541. blood_access_part_opera_id: ''
  3542. }
  3543. // 接诊评估
  3544. this.receiveTreatmentAsses = {
  3545. module: 'receiveTreatmentAsses',
  3546. way: '1',
  3547. consciousness: '1',
  3548. appetite: '1',
  3549. condition: '1',
  3550. posture: '1'
  3551. }
  3552. // 双人检查
  3553. this.doubleReview = {
  3554. module: 'doubleReview',
  3555. dialysis_item_check: '1',
  3556. dialysis_parameter_check: '1',
  3557. vascular_access_verification: '1',
  3558. pipeline_connection_check: '1',
  3559. dialysis_item_desc: '',
  3560. dialysis_parameter_desc: '',
  3561. vascular_access_desc: '',
  3562. pipeline_connection_desc: '',
  3563. collator: ''
  3564. }
  3565. this.dialysisAfterAsses = {
  3566. module: 'dialysisAfterAsses',
  3567. T: '',
  3568. P: '',
  3569. R: '',
  3570. part: '',
  3571. systolic: '',
  3572. diastolic: '',
  3573. actualUfv: '',
  3574. actualSubstituteFluidvolume: '',
  3575. actualtreatHour: '',
  3576. actualtreatmin: '',
  3577. weighWay: '',
  3578. weightAfterDialysi: '',
  3579. weightReduce: '',
  3580. cruor: '',
  3581. symptomsAfterDialysi: '',
  3582. dialysateVolume: '',
  3583. dialysisIntakesFeed: '',
  3584. dialysisIntakesTransfusion: '',
  3585. dialysisIntakesBloodTransfusion: '',
  3586. dialysisIntakesWashpipe: '',
  3587. fistula: '',
  3588. pipe: '',
  3589. complications: '',
  3590. remark: '',
  3591. puncture_point_oozing_blood: '2',
  3592. puncture_point_haematoma: '2',
  3593. internal_fistula_tremor_ac: '3',
  3594. patient_gose: '',
  3595. inpatient_department: '',
  3596. observation_content: '',
  3597. observation_content_other: '',
  3598. observation_content_value: []
  3599. // evaluator: "",
  3600. }
  3601. }, GetPatinentInfo: function() {
  3602. const patientsParamsQuery = {
  3603. 'id': this.patientId,
  3604. 'record_date': this.record_date
  3605. }
  3606. PatientInfo(patientsParamsQuery).then(response => {
  3607. this.initModel()
  3608. this.adviceTableData = []
  3609. this.monitoringRecordTableData = []
  3610. this.recordStatus = response.data.data.dialysisStatus
  3611. if (response.data.data.patientInfo.id > 0) {
  3612. // 设置用户基本信息
  3613. this.userInfo.userName = response.data.data.patientInfo.name
  3614. if (response.data.data.patientInfo.gender == 2) {
  3615. this.userInfo.gender = '女'
  3616. } else {
  3617. this.userInfo.gender = '男'
  3618. }
  3619. if (response.data.data.patientInfo.source == 1) {
  3620. this.userInfo.label = '门诊'
  3621. } else {
  3622. this.userInfo.label = '住院'
  3623. }
  3624. this.userInfo.birthdate = uParseTime(response.data.data.patientInfo.birthday, '{y}-{m}-{d}')
  3625. this.userInfo.admission_number = response.data.data.patientInfo.admission_number
  3626. this.userInfo.dialysisNumber = response.data.data.patientInfo.dialysis_no
  3627. this.userInfo.inpatientWard = response.data.data.patientInfo.partition_id
  3628. this.userInfo.userName = response.data.data.patientInfo.name
  3629. this.userInfo.dialysisCount = response.data.data.patientInfo.total_dialysis
  3630. this.userInfo.diagnosis = response.data.data.patientInfo.diagnose
  3631. this.userInfo.firstDialysisTime = this.getFormatDate(response.data.data.patientInfo.first_dialysis_date)
  3632. this.userInfo.age = this.calAgeByBirthday(response.data.data.patientInfo.birthday)
  3633. this.userInfo.bed = response.data.data.patientInfo.DialysisSchedule.DeviceNumber.number
  3634. this.userInfo.inpatientWard = response.data.data.patientInfo.DialysisSchedule.DeviceZone.name
  3635. }
  3636. if (response.data.data.dialysisOrder != null) {
  3637. if (response.data.data.dialysisOrder.id > 0) {
  3638. this.dialysisId = response.data.data.dialysisOrder.id
  3639. this.dialysisStatus = response.data.data.dialysisOrder.stage
  3640. }
  3641. }
  3642. // 设置透析处方
  3643. if (response.data.data.dialysisPrescription.id > 0) {
  3644. if (response.data.data.isSolution == 1) {
  3645. this.dialysisPrescriptionIsComfirm = false
  3646. } else {
  3647. this.dialysisPrescriptionIsComfirm = true
  3648. }
  3649. this.dialysisPrescription.gaijiliang = response.data.data.dialysisPrescription.anticoagulant_gaijiliang
  3650. this.dialysisPrescription.gaimingcheng = response.data.data.dialysisPrescription.anticoagulant_gaimingcheng
  3651. this.dialysisPrescription.machine = response.data.data.dialysisPrescription.dialyzer
  3652. this.dialysisPrescription.machineType = response.data.data.dialysisPrescription.machine_type
  3653. this.dialysisPrescription.targetDewateringAmount = response.data.data.dialysisPrescription.dewater_amount
  3654. // this.dialysisPrescription.prescriptionDehydration = response.data.data.dialysisPrescription.prescription_dewatering
  3655. this.dialysisPrescription.anticoagulant = response.data.data.dialysisPrescription.anticoagulant
  3656. this.dialysisPrescription.firstDose = response.data.data.dialysisPrescription.anticoagulant_shouji
  3657. this.dialysisPrescription.maintenance = response.data.data.dialysisPrescription.anticoagulant_weichi
  3658. this.dialysisPrescription.total = response.data.data.dialysisPrescription.anticoagulant_zongliang
  3659. this.dialysisPrescription.dialysisTime = response.data.data.dialysisPrescription.dialysis_duration
  3660. this.dialysisPrescription.dialysisMode = response.data.data.dialysisPrescription.mode_id
  3661. this.dialysisPrescription.displacesTotal = response.data.data.dialysisPrescription.replacement_total
  3662. this.dialysisPrescription.displacesMethod = response.data.data.dialysisPrescription.replacement_way
  3663. this.dialysisPrescription.hemodialysisDevice = response.data.data.dialysisPrescription.hemodialysis_machine
  3664. this.dialysisPrescription.bloodFilterDevice = response.data.data.dialysisPrescription.blood_filter
  3665. this.dialysisPrescription.hemoperfusion = response.data.data.dialysisPrescription.perfusion_apparatus
  3666. this.dialysisPrescription.adjustDryWeight = response.data.data.dialysisPrescription.dry_weight
  3667. this.dialysisPrescription.vascularAccess = response.data.data.dialysisPrescription.vascular_access_mode
  3668. this.dialysisPrescription.vascularAccessDesc = response.data.data.dialysisPrescription.vascular_access
  3669. this.dialysisPrescription.bloodFlow = response.data.data.dialysisPrescription.blood_flow_volume
  3670. this.dialysisPrescription.displaceLiqui = response.data.data.dialysisPrescription.displace_liqui
  3671. this.dialysisPrescription.dialysateFlow = response.data.data.dialysisPrescription.dialysate_flow
  3672. this.dialysisPrescription.kalium = response.data.data.dialysisPrescription.kalium
  3673. this.dialysisPrescription.sodium = response.data.data.dialysisPrescription.sodium
  3674. this.dialysisPrescription.calcium = response.data.data.dialysisPrescription.calcium
  3675. this.dialysisPrescription.bicarbonate = response.data.data.dialysisPrescription.bicarbonate
  3676. this.dialysisPrescription.glucose = response.data.data.dialysisPrescription.glucose
  3677. this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
  3678. this.dialysisPrescription.conductivity = response.data.data.dialysisPrescription.conductivity
  3679. this.dialysisPrescription.dialysate_temperature = response.data.data.dialysisPrescription.dialysate_temperature
  3680. this.dialysisPrescription.dialysis_duration_hour = response.data.data.dialysisPrescription.dialysis_duration_hour
  3681. this.dialysisPrescription.dialysis_duration_minute = response.data.data.dialysisPrescription.dialysis_duration_minute
  3682. this.dialysisPrescription.target_ultrafiltration = response.data.data.dialysisPrescription.target_ultrafiltration
  3683. this.dialysisPrescription.dialysate_formulation = response.data.data.dialysisPrescription.dialysate_formulation.toString()
  3684. this.dialysisTimeShow = new Date(2018, 1, 1, this.dialysisPrescription.dialysis_duration_hour, this.dialysisPrescription.dialysis_duration_minute)
  3685. // 为了打印
  3686. this.setTQdataFromData(response.data.data.dialysisPrescription)
  3687. }
  3688. // 设置接诊评估
  3689. if (response.data.data.receiverTreatmentAccess.id > 0) {
  3690. this.receiveTreatmentAssesIsComfirm = true
  3691. this.receiveTreatmentAsses.way = response.data.data.receiverTreatmentAccess.way.toString()
  3692. this.receiveTreatmentAsses.consciousness = response.data.data.receiverTreatmentAccess.consciousness.toString()
  3693. this.receiveTreatmentAsses.appetite = response.data.data.receiverTreatmentAccess.appetite.toString()
  3694. this.receiveTreatmentAsses.condition = response.data.data.receiverTreatmentAccess.condition.toString()
  3695. this.receiveTreatmentAsses.posture = response.data.data.receiverTreatmentAccess.posture.toString()
  3696. }
  3697. // 设置透前评估
  3698. if (response.data.data.predialysisEvaluation.id > 0) {
  3699. this.dialysisBeforeAssesIsComfirm = true
  3700. this.dialysisBeforeAsses.T = response.data.data.predialysisEvaluation.temperature
  3701. this.dialysisBeforeAsses.P = response.data.data.predialysisEvaluation.pulse_frequency
  3702. this.dialysisBeforeAsses.R = response.data.data.predialysisEvaluation.breathing_rate
  3703. this.dialysisBeforeAsses.part = response.data.data.predialysisEvaluation.blood_pressure_type
  3704. this.dialysisBeforeAsses.systolic = response.data.data.predialysisEvaluation.systolic_blood_pressure
  3705. this.dialysisBeforeAsses.diastolic = response.data.data.predialysisEvaluation.diastolic_blood_pressure
  3706. this.dialysisBeforeAsses.dryWeight = response.data.data.predialysisEvaluation.dry_weight
  3707. this.dialysisBeforeAsses.lastdialysisAfterWeight = response.data.data.predialysisEvaluation.weight_after_last_transparency
  3708. this.dialysisBeforeAsses.weightWay = response.data.data.predialysisEvaluation.weighing_way
  3709. this.dialysisBeforeAsses.dialysisbeforeWeighed = response.data.data.predialysisEvaluation.weighing_before
  3710. this.dialysisBeforeAsses.clothingWeight = response.data.data.predialysisEvaluation.additional_weight
  3711. this.dialysisBeforeAsses.dialysisbeforeWeight = response.data.data.predialysisEvaluation.weight_before
  3712. this.dialysisBeforeAsses.weightAdd = response.data.data.predialysisEvaluation.weight_gain
  3713. this.dialysisBeforeAsses.PreDrinkingAmount = response.data.data.assessmentAfterDislysis.preloaded_dewatering
  3714. this.dialysisBeforeAsses.totalAmountOfUltrafiltration = response.data.data.predialysisEvaluation.ultrafiltration_amount
  3715. this.dialysisBeforeAsses.dialysisInterval = response.data.data.predialysisEvaluation.dialysis_interphase
  3716. this.dialysisBeforeAsses.afterTheLastDialysis = response.data.data.predialysisEvaluation.last_post_dialysis
  3717. this.dialysisBeforeAsses.preExistingSymptoms = response.data.data.predialysisEvaluation.symptom_before_dialysis
  3718. this.dialysisBeforeAsses.guilty = response.data.data.predialysisEvaluation.internal_fistula
  3719. this.dialysisBeforeAsses.catheter = response.data.data.predialysisEvaluation.catheter
  3720. this.dialysisBeforeAsses.complications = response.data.data.predialysisEvaluation.complication
  3721. this.dialysisBeforeAsses.remark = response.data.data.predialysisEvaluation.remark
  3722. this.dialysisBeforeAsses.is_hemorrhage = response.data.data.predialysisEvaluation.is_hemorrhage.toString()
  3723. this.dialysisBeforeAsses.hemorrhage_other = response.data.data.predialysisEvaluation.hemorrhage_other
  3724. this.dialysisBeforeAsses.hemorrhage_value = response.data.data.predialysisEvaluation.hemorrhage.split(',')
  3725. if (response.data.data.predialysisEvaluation.blood_access_part_opera_id == 0) {
  3726. this.dialysisBeforeAsses.blood_access_part_opera_id = ''
  3727. } else {
  3728. this.dialysisBeforeAsses.blood_access_part_opera_id = response.data.data.predialysisEvaluation.blood_access_part_opera_id
  3729. }
  3730. if (response.data.data.predialysisEvaluation.blood_access_part_id == 0) {
  3731. this.dialysisBeforeAsses.blood_access_part_id = ''
  3732. } else {
  3733. this.dialysisBeforeAsses.blood_access_part_id = response.data.data.predialysisEvaluation.blood_access_part_id
  3734. }
  3735. // 为了打印
  3736. this.danPrintData.weight_before = response.data.data.predialysisEvaluation.weight_before
  3737. this.danPrintData.additional_weight = response.data.data.predialysisEvaluation.additional_weight
  3738. this.danPrintData.systolic_blood_pressure = response.data.data.predialysisEvaluation.systolic_blood_pressure
  3739. this.danPrintData.diastolic_blood_pressure = response.data.data.predialysisEvaluation.diastolic_blood_pressure
  3740. this.danPrintData.breathing_rate = response.data.data.predialysisEvaluation.breathing_rate
  3741. }
  3742. // 设置医嘱
  3743. var adviceTableDatas = {}
  3744. var subAdviceTableData = {}
  3745. if (response.data.data.doctorAdvice != null) {
  3746. if (response.data.data.doctorAdvice.length > 0) {
  3747. this.doctorAdviceIsComfirm = true
  3748. }
  3749. for (let i = 0; i < response.data.data.doctorAdvice.length; i++) {
  3750. if (response.data.data.doctorAdvice[i].parent_id > 0) {
  3751. subAdviceTableData['advice_content'] = response.data.data.doctorAdvice[i].advice_name +
  3752. response.data.data.doctorAdvice[i].advice_desc +
  3753. ' ' +
  3754. response.data.data.doctorAdvice[i].single_dose +
  3755. response.data.data.doctorAdvice[i].single_dose_unit +
  3756. ' ' +
  3757. response.data.data.doctorAdvice[i].prescribing_number +
  3758. response.data.data.doctorAdvice[i].prescribing_number_unit
  3759. subAdviceTableData['id'] = response.data.data.doctorAdvice[i].id
  3760. subAdviceTableData['parent_id'] = response.data.data.doctorAdvice[i].parent_id
  3761. this.adviceTableData.push(subAdviceTableData)
  3762. } else {
  3763. adviceTableDatas['start_time'] = this.getFormatDate(response.data.data.doctorAdvice[i].start_time)
  3764. adviceTableDatas['advice_content'] = response.data.data.doctorAdvice[i].advice_name +
  3765. response.data.data.doctorAdvice[i].advice_desc +
  3766. ' ' +
  3767. response.data.data.doctorAdvice[i].single_dose +
  3768. response.data.data.doctorAdvice[i].single_dose_unit +
  3769. ' ' +
  3770. response.data.data.doctorAdvice[i].prescribing_number +
  3771. response.data.data.doctorAdvice[i].prescribing_number_unit +
  3772. ' ' +
  3773. response.data.data.doctorAdvice[i].delivery_way +
  3774. response.data.data.doctorAdvice[i].execution_frequency
  3775. adviceTableDatas['id'] = response.data.data.doctorAdvice[i].id
  3776. adviceTableDatas['parent_id'] = response.data.data.doctorAdvice[i].parent_id
  3777. adviceTableDatas['advice_doctor'] = response.data.data.doctorAdvice[i].advice_doctor
  3778. if (response.data.data.doctorAdvice[i].execution_time > 0) {
  3779. adviceTableDatas['execution_time'] = this.getFormatDate(response.data.data.doctorAdvice[i].execution_time)
  3780. }
  3781. adviceTableDatas['execution_staff'] = response.data.data.doctorAdvice[i].execution_staff
  3782. adviceTableDatas['checker'] = response.data.data.doctorAdvice[i].checker
  3783. this.adviceTableData.push(adviceTableDatas)
  3784. }
  3785. }
  3786. }
  3787. // 设置双人核对
  3788. if (response.data.data.doubleCheck.id > 0) {
  3789. this.doubleCheckIsComfirm = true
  3790. this.doubleReview.dialysis_item_check = response.data.data.doubleCheck.dialysis_item_check.toString()
  3791. this.doubleReview.dialysis_parameter_check = response.data.data.doubleCheck.dialysis_parameter_check.toString()
  3792. this.doubleReview.vascular_access_verification = response.data.data.doubleCheck.vascular_access_verification.toString()
  3793. this.doubleReview.pipeline_connection_check = response.data.data.doubleCheck.pipeline_connection_check.toString()
  3794. this.doubleReview.dialysis_item_desc = response.data.data.doubleCheck.dialysis_item_desc
  3795. this.doubleReview.dialysis_parameter_desc = response.data.data.doubleCheck.dialysis_parameter_desc
  3796. this.doubleReview.vascular_access_desc = response.data.data.doubleCheck.vascular_access_desc
  3797. this.doubleReview.pipeline_connection_desc = response.data.data.doubleCheck.pipeline_connection_desc
  3798. this.doubleReview.collator = response.data.data.doubleCheck.collator
  3799. }
  3800. // 设置透析监测
  3801. if (response.data.data.monitorRecord.length > 0) {
  3802. this.monitoringRecordIsComfirm = true
  3803. for (let i = 0; i < response.data.data.monitorRecord.length; i++) {
  3804. const monitor = {}
  3805. monitor['id'] = response.data.data.monitorRecord[i].id
  3806. monitor['time'] = response.data.data.monitorRecord[i].monitoring_time
  3807. monitor['PB'] = response.data.data.monitorRecord[i].systolic_blood_pressure.toString() + '/' + response.data.data.monitorRecord[i].diastolic_blood_pressure.toString()
  3808. monitor['pulse_frequency'] = response.data.data.monitorRecord[i].pulse_frequency
  3809. monitor['breathing_rate'] = response.data.data.monitorRecord[i].breathing_rate
  3810. monitor['blood_flow_volume'] = response.data.data.monitorRecord[i].blood_flow_volume
  3811. monitor['venous_pressure'] = response.data.data.monitorRecord[i].venous_pressure
  3812. monitor['transmembrane_pressure'] = response.data.data.monitorRecord[i].transmembrane_pressure
  3813. monitor['ultrafiltration_volume'] = response.data.data.monitorRecord[i].ultrafiltration_volume
  3814. monitor['sodium_concentration'] = response.data.data.monitorRecord[i].sodium_concentration
  3815. monitor['dialysate_temperature'] = response.data.data.monitorRecord[i].dialysate_temperature
  3816. monitor['replacement_rate'] = response.data.data.monitorRecord[i].replacement_rate
  3817. monitor['displacement_quantity'] = response.data.data.monitorRecord[i].displacement_quantity
  3818. monitor['symptom'] = response.data.data.monitorRecord[i].symptom
  3819. monitor['dispose'] = response.data.data.monitorRecord[i].dispose
  3820. monitor['replacement_rate'] = response.data.data.monitorRecord[i].replacement_rate
  3821. monitor['results'] = response.data.data.monitorRecord[i].results
  3822. this.monitoringRecordTableData.unshift(monitor)
  3823. }
  3824. }
  3825. if (response.data.data.assessmentAfterDislysis.id > 0) {
  3826. this.dialysisAfterAssesIsComfirm = true
  3827. // 设置透后评估
  3828. this.dialysisAfterAsses.T = response.data.data.assessmentAfterDislysis.temperature
  3829. this.dialysisAfterAsses.P = response.data.data.assessmentAfterDislysis.pulse_frequency
  3830. this.dialysisAfterAsses.R = response.data.data.assessmentAfterDislysis.breathing_rate
  3831. this.dialysisAfterAsses.part = response.data.data.assessmentAfterDislysis.blood_pressure_type
  3832. this.dialysisAfterAsses.systolic = response.data.data.assessmentAfterDislysis.systolic_blood_pressure
  3833. this.dialysisAfterAsses.diastolic = response.data.data.assessmentAfterDislysis.diastolic_blood_pressure
  3834. this.dialysisAfterAsses.actualUfv = response.data.data.assessmentAfterDislysis.actual_ultrafiltration
  3835. this.dialysisAfterAsses.actualSubstituteFluidvolume = response.data.data.assessmentAfterDislysis.actual_displacement
  3836. this.dialysisAfterAsses.actualtreatHour = response.data.data.assessmentAfterDislysis.actual_treatment_hour
  3837. this.dialysisAfterAsses.actualtreatmin = response.data.data.assessmentAfterDislysis.actual_treatment_minute
  3838. this.dialysisAfterAsses.weighWay = response.data.data.assessmentAfterDislysis.weighing_way
  3839. this.dialysisAfterAsses.weightAfterDialysi = response.data.data.assessmentAfterDislysis.weight_after
  3840. this.dialysisAfterAsses.weightReduce = response.data.data.assessmentAfterDislysis.weight_loss
  3841. this.dialysisAfterAsses.cruor = response.data.data.assessmentAfterDislysis.cruor
  3842. this.dialysisAfterAsses.symptomsAfterDialysi = response.data.data.assessmentAfterDislysis.symptom_after_dialysis
  3843. this.dialysisAfterAsses.dialysateVolume = response.data.data.assessmentAfterDislysis.dialysis_intakes
  3844. this.dialysisAfterAsses.dialysisIntakesFeed = response.data.data.assessmentAfterDislysis.dialysis_intakes_feed
  3845. this.dialysisAfterAsses.dialysisIntakesTransfusion = response.data.data.assessmentAfterDislysis.dialysis_intakes_transfusion
  3846. this.dialysisAfterAsses.dialysisIntakesBloodTransfusion = response.data.data.assessmentAfterDislysis.dialysis_intakes_blood_transfusion
  3847. this.dialysisAfterAsses.dialysisIntakesWashpipe = response.data.data.assessmentAfterDislysis.dialysis_intakes_washpipe
  3848. this.dialysisAfterAsses.fistula = response.data.data.assessmentAfterDislysis.internal_fistula
  3849. this.dialysisAfterAsses.pipe = response.data.data.assessmentAfterDislysis.catheter
  3850. this.dialysisAfterAsses.complications = response.data.data.assessmentAfterDislysis.complication
  3851. this.dialysisAfterAsses.remark = response.data.data.assessmentAfterDislysis.remark
  3852. this.dialysisAfterAsses.puncture_point_oozing_blood = response.data.data.assessmentAfterDislysis.puncture_point_oozing_blood.toString()
  3853. this.dialysisAfterAsses.puncture_point_haematoma = response.data.data.assessmentAfterDislysis.puncture_point_haematoma.toString()
  3854. this.dialysisAfterAsses.internal_fistula_tremor_ac = response.data.data.assessmentAfterDislysis.internal_fistula_tremor_ac.toString()
  3855. this.dialysisAfterAsses.patient_gose = response.data.data.assessmentAfterDislysis.patient_gose.toString()
  3856. this.dialysisAfterAsses.inpatient_department = response.data.data.assessmentAfterDislysis.inpatient_department
  3857. this.dialysisAfterAsses.observation_content_other = response.data.data.assessmentAfterDislysis.observation_content_other
  3858. this.dialysisAfterAsses.observation_content_value = response.data.data.assessmentAfterDislysis.observation_content.split(',')
  3859. } else {
  3860. this.dialysisAfterAsses = {
  3861. module: 'dialysisAfterAsses',
  3862. T: '',
  3863. P: '',
  3864. R: '',
  3865. part: '',
  3866. systolic: '',
  3867. diastolic: '',
  3868. actualUfv: '',
  3869. actualSubstituteFluidvolume: '',
  3870. actualtreatHour: '',
  3871. actualtreatmin: '',
  3872. weighWay: '',
  3873. weightAfterDialysi: '',
  3874. weightReduce: '',
  3875. cruor: '',
  3876. symptomsAfterDialysi: '',
  3877. dialysateVolume: '',
  3878. dialysisIntakesFeed: '',
  3879. dialysisIntakesTransfusion: '',
  3880. dialysisIntakesBloodTransfusion: '',
  3881. dialysisIntakesWashpipe: '',
  3882. fistula: '',
  3883. pipe: '',
  3884. complications: '',
  3885. remark: ''
  3886. }
  3887. }
  3888. if (response.data.data.treatmentSummary.id > 0) {
  3889. this.dialysisSummaryIsComfirm = true
  3890. // 设置用户透析小结
  3891. this.dialysisSummary.propagandaAndEducationContent = response.data.data.treatmentSummary.mission
  3892. this.dialysisSummary.summaryContent = response.data.data.treatmentSummary.dialysis_summary
  3893. this.dialysisSummary.changeMedicalNurse = response.data.data.treatmentSummary.sj_nurse
  3894. this.dialysisSummary.checkStaff = response.data.data.treatmentSummary.hd_nurse
  3895. this.dialysisSummary.deboardNurse = response.data.data.treatmentSummary.xj_nurse
  3896. this.dialysisSummary.treatNurse = response.data.data.treatmentSummary.zl_nurse
  3897. this.dialysisSummary.treatDoctor = response.data.data.treatmentSummary.zl_doctor
  3898. } else {
  3899. }
  3900. })
  3901. }, fetchAllDoctorAndNurse() {
  3902. fetchAllDoctorAndNurse().then(response => {
  3903. if (response.data.state == 1) {
  3904. this.doctorOptions = response.data.data.doctors
  3905. }
  3906. })
  3907. }, fistulaDialogComfirm: function(val) {
  3908. this.dialysisAfterAsses.fistula = val.value.join(',')
  3909. this.isVisibiltyForFistulaDialog = false
  3910. }, fistulaDialogCancle: function() {
  3911. this.isVisibiltyForFistulaDialog = false
  3912. }, pipeDialogComfirm: function(val) {
  3913. this.isVisibiltyForPipeDialog = false
  3914. this.dialysisAfterAsses.pipe = val.value.join(',')
  3915. }, pipeDialogCancle: function() {
  3916. this.isVisibiltyForPipeDialog = false
  3917. }, fetchAllAdminUsers() {
  3918. fetchAllAdminUsers().then(response => {
  3919. if (response.data.state == 1) {
  3920. this.adminUserOptions = response.data.data.users
  3921. var alen = this.adminUserOptions.length
  3922. for (let index = 0; index < alen; index++) {
  3923. if (this.adminUserOptions[index].user_type == 2) {
  3924. this.doctorOptions.push(this.adminUserOptions[index])
  3925. }
  3926. }
  3927. }
  3928. })
  3929. }
  3930. },
  3931. watch: {
  3932. 'dialysisBeforeAsses.is_hemorrhage': function() {
  3933. if (this.dialysisBeforeAsses.is_hemorrhage == 2) {
  3934. this.dialysisBeforeAsses.hemorrhage = ''
  3935. this.dialysisBeforeAsses.hemorrhage_value = []
  3936. this.dialysisBeforeAsses.hemorrhage_other = ''
  3937. }
  3938. },
  3939. 'dialysisBeforeAsses.hemorrhage_value': function() {
  3940. this.dialysisBeforeAsses.hemorrhage = this.dialysisBeforeAsses.hemorrhage_value.join(',')
  3941. },
  3942. 'dialysisAfterAsses.observation_content_value': function() {
  3943. this.dialysisAfterAsses.observation_content = this.dialysisAfterAsses.observation_content_value.join(',')
  3944. },
  3945. 'dialysisAfterAsses.patient_gose': function() {
  3946. if (this.dialysisAfterAsses.patient_gose != 3) {
  3947. this.dialysisBeforeAsses.observation_content = ''
  3948. this.dialysisBeforeAsses.observation_content_value = []
  3949. this.dialysisBeforeAsses.observation_content_other = ''
  3950. this.dialysisBeforeAsses.inpatient_department = ''
  3951. }
  3952. }
  3953. }
  3954. }
  3955. </script>
  3956. <style scoped>
  3957. .shangjidan {
  3958. width: 500px;
  3959. margin: 0 auto;
  3960. }
  3961. .shangjidan .dan-title {
  3962. text-align: center;
  3963. font-size: 24px;
  3964. font-weight: 600;
  3965. margin: 0 auto;
  3966. margin-top: 15px;
  3967. padding: 5px 0px;
  3968. }
  3969. .shangjidan .dan-table {
  3970. margin-top: 10px;
  3971. width: 100%;
  3972. line-height: 20px;
  3973. border-collapse: collapse;
  3974. }
  3975. .shangjidan .dan-td-col-2 {
  3976. width: 40px;
  3977. }
  3978. .shangjidan .dan-td-col-4 {
  3979. width: 80px;
  3980. }
  3981. .shangjidan .dan-td-col-3 {
  3982. width: 60px;
  3983. }
  3984. .shangjidan .dan-td-col-5 {
  3985. width: 100px;
  3986. }
  3987. .shangjidan .dan-td-col-1 {
  3988. width: 20px;
  3989. }
  3990. .shangjidan .dan-td {
  3991. border-bottom: 1px solid #666;
  3992. text-align: center;
  3993. max-width: 200px;
  3994. }
  3995. .shangjidan .dan-value {
  3996. width: 100%;
  3997. margin: 0px 2px;
  3998. }
  3999. .shangjidan .dan-main {
  4000. border-bottom: 1px solid #666;
  4001. border-top: 1px solid #666;
  4002. padding: 10px 5px;
  4003. }
  4004. </style>