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

dialysisPrescriptionDialog.vue 174KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073
  1. <template>
  2. <div>
  3. <el-dialog
  4. title="透析处方"
  5. :visible.sync="isVisibility"
  6. width="1010px"
  7. :modal-append-to-body="false"
  8. :append-to-body="true"
  9. class="newDialog"
  10. >
  11. <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
  12. <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
  13. <el-form
  14. ref="dialysisPrescription"
  15. :model="dialysisPrescription"
  16. label-width="148px"
  17. >
  18. <el-row :gutter="24">
  19. <el-col :span="8" v-if="isShows('透析模式')">
  20. <el-form-item label="透析模式">
  21. <el-select
  22. v-model="dialysisPrescription.mode_id"
  23. @change="changePrescription(dialysisPrescription.mode_id)"
  24. >
  25. <el-option :key="0" label="请选择" :value="0"></el-option>
  26. <el-option
  27. v-for="(item, index) in treatment_mode"
  28. :label="item.name"
  29. :value="item.id"
  30. :key="index + 'q'"
  31. ></el-option>
  32. </el-select>
  33. </el-form-item>
  34. </el-col>
  35. <el-col :span="8" v-if="isShows('透析时长')">
  36. <el-form-item label="透析时长(h): ">
  37. <el-input
  38. type="number"
  39. v-model="dialysisPrescription.dialysis_duration_hour"
  40. ></el-input>
  41. </el-form-item>
  42. </el-col>
  43. <el-col :span="8" v-if="isShows('透析时长')">
  44. <el-form-item label="透析时长(min): ">
  45. <el-input
  46. type="number"
  47. v-model="dialysisPrescription.dialysis_duration_minute"
  48. ></el-input>
  49. </el-form-item>
  50. </el-col>
  51. <!-- </el-row>
  52. <el-row :gutter="20"> -->
  53. <el-col :span="8" v-if="isShows('血流量')">
  54. <el-form-item label="血流量(ml/min):">
  55. <el-input
  56. type="number"
  57. v-model="dialysisPrescription.blood_flow_volume"
  58. ></el-input>
  59. </el-form-item>
  60. </el-col>
  61. <el-col :span="8"
  62. v-if="isShows('预冲量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.org_id == 10345)">
  63. <el-form-item label="预冲量(ml):">
  64. <el-input
  65. type="number"
  66. v-model="dialysisPrescription.pre_impulse"
  67. ></el-input>
  68. </el-form-item>
  69. </el-col>
  70. <el-col :span="8"
  71. v-if="isShows('预冲量') && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id !=23 && this.$store.getters.xt_user.template_info.template_id !=36 && this.$store.getters.xt_user.template_info.org_id!=10345">
  72. <el-form-item label="预冲量(L):">
  73. <el-input
  74. type="number"
  75. v-model="dialysisPrescription.pre_impulse"
  76. ></el-input>
  77. </el-form-item>
  78. </el-col>
  79. <el-col :span="8"
  80. v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46 || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395)">
  81. <el-form-item label="目标超滤量(ml):">
  82. <el-input
  83. type="number"
  84. v-model="dialysisPrescription.target_ultrafiltration"
  85. ></el-input>
  86. </el-form-item>
  87. </el-col>
  88. <el-col :span="8"
  89. v-if="isShows('目标超滤量') && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 46 && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 && this.$store.getters.xt_user.template_info.org_id != 10345 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 && this.$store.getters.xt_user.template_info.org_id != 10395">
  90. <el-form-item label="目标超滤量(L):">
  91. <el-input
  92. type="number"
  93. v-model="dialysisPrescription.target_ultrafiltration"
  94. ></el-input>
  95. </el-form-item>
  96. </el-col>
  97. <el-col :span="8" v-if="isShows('单超时长')">
  98. <el-form-item label="单超时长(h):">
  99. <el-input v-model="dialysisPrescription.single_time"></el-input>
  100. </el-form-item>
  101. </el-col>
  102. <el-col :span="8" v-if="isShows('单超脱水')">
  103. <el-form-item label="单超脱水(L):">
  104. <el-input v-model="dialysisPrescription.single_water"></el-input>
  105. </el-form-item>
  106. </el-col>
  107. <el-col :span="8" v-if="isShows('透析液配方')">
  108. <el-form-item label="透析液配方:">
  109. <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
  110. <el-select
  111. v-model="dialysisPrescription.dialysate_formulation"
  112. placeholder="请选择"
  113. >
  114. <el-option :key="0" label="请选择" :value="0"></el-option>
  115. <el-option
  116. v-for="(option, index) in dialysate_formulation_options"
  117. :key="index + 'w'"
  118. :label="option.name"
  119. :value="option.id"
  120. ></el-option>
  121. </el-select>
  122. </el-form-item>
  123. </el-col>
  124. <!-- </el-row>
  125. <el-row :gutter="20"> -->
  126. <el-col :span="8" v-if="isShows('抗凝剂')">
  127. <el-form-item label="抗凝剂:">
  128. <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择"
  129. style="width:100%;"
  130. @change="changeThisAnticoagulant">
  131. <el-option :key="0" label="请选择" :value="0"></el-option>
  132. <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
  133. :value="3"></el-option>
  134. <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name"
  135. :key="index + 'e'"
  136. :value="item.id"></el-option>
  137. </el-select>
  138. </el-form-item>
  139. </el-col>
  140. <el-col :span="8" v-if="isShows('抗凝剂商品名称')">
  141. <el-form-item label="抗凝剂商品名称:">
  142. <el-input
  143. v-model="dialysisPrescription.antioxidant_commodity_name"
  144. ></el-input>
  145. </el-form-item>
  146. </el-col>
  147. <el-col :span="8" v-if="isShows('肝素钠') && dialysisPrescription.anticoagulant ==10">
  148. <el-form-item label="肝素钠(mg/h):">
  149. <el-input
  150. v-model="dialysisPrescription.heparin_sodium"
  151. ></el-input>
  152. </el-form-item>
  153. </el-col>
  154. <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
  155. <el-form-item label="鱼精蛋白(mg/h):">
  156. <el-input
  157. v-model="dialysisPrescription.nucleoprotamine"
  158. ></el-input>
  159. </el-form-item>
  160. </el-col>
  161. <el-col :span="8" v-if="isShows('下机前推注鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
  162. <el-form-item label="下机前推注鱼精蛋白(mg):">
  163. <el-input
  164. v-model="dialysisPrescription.push_the_protamine"
  165. ></el-input>
  166. </el-form-item>
  167. </el-col>
  168. <el-col :span="8" v-if="isShows('无肝素备注') && dialysisPrescription.anticoagulant ==1">
  169. <el-form-item label="无肝素备注:">
  170. <el-input
  171. v-model="dialysisPrescription.no_heparin_remarks"
  172. ></el-input>
  173. </el-form-item>
  174. </el-col>
  175. <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
  176. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54">
  177. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
  178. <el-form-item
  179. v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id!=9990'
  180. :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
  181. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  182. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  183. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  184. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  185. </el-form-item>
  186. <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant==7 && this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(mg):'">
  187. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  188. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  189. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  190. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  191. </el-form-item>
  192. <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7" :label="'首剂(iu):'">
  193. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  194. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  195. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  196. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  197. </el-form-item>
  198. <el-form-item
  199. v-if='dialysisPrescription.anticoagulant == 2 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 && dialysisPrescription.anticoagulant == 2'
  200. :label="'首剂(mg) : '">
  201. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  202. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  203. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  204. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  205. </el-form-item>
  206. </div>
  207. <div v-else>
  208. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '">
  209. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  210. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  211. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  212. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  213. </el-form-item>
  214. <el-form-item v-else :label="'首剂(iu) : '">
  215. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  216. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  217. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  218. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  219. </el-form-item>
  220. </div>
  221. </div>
  222. <div v-else>
  223. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '">
  224. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  225. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  226. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  227. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  228. </el-form-item>
  229. <el-form-item v-else :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
  230. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  231. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  232. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  233. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  234. </el-form-item>
  235. </div>
  236. </el-col>
  237. <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')">
  238. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id == 9990">
  239. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 ">
  240. <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
  241. v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.org_id != 54 && this.$store.getters.xt_user.template_info.org_id != 9990">
  242. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  243. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  244. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  245. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  246. </el-form-item>
  247. <el-form-item :label="'维持(mg/h) : '"
  248. v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 9990">
  249. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  250. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  251. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  252. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  253. </el-form-item>
  254. </div>
  255. <div v-else>
  256. <el-form-item :label="'维持(iu/h) : '"
  257. v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant != 2">
  258. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  259. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  260. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  261. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  262. </el-form-item>
  263. <el-form-item :label="'维持(mg/h) : '"
  264. v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant == 2">
  265. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  266. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  267. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  268. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  269. </el-form-item>
  270. </div>
  271. </div>
  272. <div v-else>
  273. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '">
  274. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  275. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  276. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  277. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  278. </el-form-item>
  279. <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" v-else>
  280. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  281. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  282. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  283. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  284. </el-form-item>
  285. </div>
  286. </el-col>
  287. <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
  288. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
  289. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
  290. <el-form-item
  291. v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990'
  292. :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
  293. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  294. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  295. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  296. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  297. </el-form-item>
  298. <el-form-item
  299. v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38|| this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387'
  300. :label="'总量(mg) : '">
  301. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  302. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  303. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  304. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  305. </el-form-item>
  306. <el-form-item
  307. v-if='this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant == 7 && this.$store.getters.xt_user.template_info.template_id!=6'
  308. :label="'总量(mg)'">
  309. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  310. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  311. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  312. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  313. </el-form-item>
  314. <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7" :label="'总量(iu)'">
  315. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  316. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  317. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  318. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  319. </el-form-item>
  320. </div>
  321. <div v-else>
  322. <el-form-item
  323. v-if='dialysisPrescription.anticoagulant != 2'
  324. :label="'总量(iu) : '">
  325. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  326. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  327. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  328. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  329. </el-form-item>
  330. <el-form-item
  331. v-if='dialysisPrescription.anticoagulant == 2'
  332. :label="'总量(mg) : '">
  333. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  334. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  335. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  336. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  337. </el-form-item>
  338. </div>
  339. </div>
  340. <div v-else>
  341. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'总量(mg) : '">
  342. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  343. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  344. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  345. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  346. </el-form-item>
  347. <el-form-item v-else :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
  348. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  349. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  350. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  351. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  352. </el-form-item>
  353. </div>
  354. </el-col>
  355. <el-col :span="8"
  356. v-if="isShows('置换量') && (this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 46 || this.$store.getters.xt_user.template_info.template_id == 53)"
  357. v-show="zhiShow">
  358. <el-form-item label="置换量(ml):">
  359. <el-input
  360. type="number"
  361. v-model="dialysisPrescription.replacement_total"
  362. ></el-input>
  363. </el-form-item>
  364. </el-col>
  365. <el-col :span="8"
  366. v-if="isShows('置换量') && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 46 && this.$store.getters.xt_user.template_info.template_id != 53"
  367. v-show="zhiShow">
  368. <el-form-item label="置换量(L):">
  369. <el-input
  370. type="number"
  371. v-model="dialysisPrescription.replacement_total"
  372. ></el-input>
  373. </el-form-item>
  374. </el-col>
  375. <el-col :span="8" v-if="isShows('置换速度')" v-show="totalShow">
  376. <el-form-item label="置换速度(ml/min)">
  377. <el-input
  378. v-model="dialysisPrescription.displace_speed"
  379. ></el-input>
  380. </el-form-item>
  381. </el-col>
  382. <el-col
  383. :span="8"
  384. v-if="isShows('钙名称')"
  385. >
  386. <el-form-item label="钙名称 : ">
  387. <el-input
  388. v-model="dialysisPrescription.anticoagulant_gaimingcheng"
  389. placeholder="钙名称"
  390. ></el-input>
  391. </el-form-item>
  392. </el-col>
  393. <el-col
  394. :span="8"
  395. v-if="isShows('钙剂量')"
  396. ></el-col>
  397. <el-col :span="8" v-if="isShows('钙剂量')" >
  398. <el-form-item label="钙剂量(ml) : ">
  399. <el-input
  400. type="number"
  401. v-model="dialysisPrescription.anticoagulant_gaijiliang"
  402. placeholder="钙剂量"
  403. ></el-input>
  404. </el-form-item>
  405. </el-col>
  406. <el-col :span="8" v-if="isShows('钾')">
  407. <el-form-item label="钾(mmol/L): ">
  408. <el-input
  409. type="number"
  410. v-model="dialysisPrescription.kalium"
  411. ></el-input>
  412. </el-form-item>
  413. </el-col>
  414. <el-col :span="8" v-if="isShows('钠')">
  415. <el-form-item label="钠(mmol/L):">
  416. <el-input
  417. type="number"
  418. v-model="dialysisPrescription.sodium"
  419. ></el-input>
  420. </el-form-item>
  421. </el-col>
  422. <el-col :span="8" v-if="isShows('钙')">
  423. <el-form-item label="钙(mmol/L):">
  424. <el-input
  425. type="number"
  426. v-model="dialysisPrescription.calcium"
  427. ></el-input>
  428. </el-form-item>
  429. </el-col>
  430. <el-col :span="8" v-if="isShows('碳酸氢盐')">
  431. <el-form-item label="碳酸氢盐(mmol/L):">
  432. <el-input
  433. type="number"
  434. v-model="dialysisPrescription.bicarbonate"
  435. ></el-input>
  436. </el-form-item>
  437. </el-col>
  438. <!-- <el-col :span="8" v-if="isShows('葡萄糖')">
  439. <el-form-item label="葡萄糖(mmol/L):">
  440. <el-input
  441. type="number"
  442. v-model="dialysisPrescription.glucose"
  443. ></el-input>
  444. </el-form-item>
  445. </el-col> -->
  446. <el-col :span="8" v-if="isShows('透析液流量')">
  447. <el-form-item label="透析液流量(ml/min):">
  448. <el-input
  449. type="number"
  450. v-model="dialysisPrescription.dialysate_flow"
  451. ></el-input>
  452. </el-form-item>
  453. </el-col>
  454. <el-col :span="8" v-if="isShows('透析液温度')">
  455. <el-form-item label="透析液温度(°C):">
  456. <el-input
  457. type="number"
  458. v-model="dialysisPrescription.dialysate_temperature"
  459. ></el-input>
  460. </el-form-item>
  461. </el-col>
  462. <el-col :span="8" v-if="isShows('电导率')">
  463. <el-form-item label="电导率(mS/cm): ">
  464. <el-input
  465. type="number"
  466. v-model="dialysisPrescription.conductivity"
  467. ></el-input>
  468. </el-form-item>
  469. </el-col>
  470. <el-col :span="8" v-if="isShows('透析器/灌流器')">
  471. <el-form-item label="透析器/灌流器">
  472. <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
  473. @focus="showInnerDialog('5')"></el-input>
  474. </el-form-item>
  475. </el-col>
  476. <el-col :span="8" v-if="isShows('透析器')">
  477. <el-form-item label="透析器:">
  478. <el-input v-model="dialysisPrescription.dialysis_dialyszers"
  479. @focus="showInnerDialog('7')"></el-input>
  480. </el-form-item>
  481. </el-col>
  482. <el-col :span="8" v-if="isShows('灌流器')">
  483. <el-form-item label="灌流器:">
  484. <el-input v-model="dialysisPrescription.dialysis_irrigation"
  485. @focus="showInnerDialog('8')"></el-input>
  486. </el-form-item>
  487. </el-col>
  488. <el-col :span="8" v-if="isShows('血浆分离器')">
  489. <el-form-item label="血浆分离器:">
  490. <el-input v-model="dialysisPrescription.plasma_separator"
  491. @focus="showInnerDialog('9')"></el-input>
  492. </el-form-item>
  493. </el-col>
  494. <el-col :span="8" v-if="isShows('胆红素吸附柱')">
  495. <el-form-item label="胆红素吸附柱:">
  496. <el-input v-model="dialysisPrescription.bilirubin_adsorption_column"
  497. @focus="showInnerDialog('10')"></el-input>
  498. </el-form-item>
  499. </el-col>
  500. <el-col :span="8" v-if="isShows('体液过多症状')">
  501. <el-form-item label="体液过多症状:">
  502. <el-select
  503. v-model="dialysisPrescription.body_fluid"
  504. placeholder="请选择"
  505. style="width:100%;"
  506. >
  507. <el-option :key="0" label="请选择" :value="0"></el-option>
  508. <el-option
  509. v-for="(item, index) in body_fluid_option"
  510. :label="item.name"
  511. :key="index + 't'"
  512. :value="item.id"
  513. ></el-option>
  514. </el-select>
  515. </el-form-item>
  516. </el-col>
  517. <el-col :span="8" v-if="isShows('体液过多其他症状')">
  518. <el-form-item label="体液过多其他症状">
  519. <el-input
  520. v-model="dialysisPrescription.body_fluid_other"
  521. ></el-input>
  522. </el-form-item>
  523. </el-col>
  524. <el-col :span="8" v-if="isShows('透析前使用特殊药物')">
  525. <el-form-item label="透析前使用特殊药物">
  526. <el-select
  527. v-model="dialysisPrescription.special_medicine"
  528. placeholder="请选择"
  529. style="width:100%;"
  530. >
  531. <el-option :key="0" label="请选择" :value="0"></el-option>
  532. <el-option
  533. v-for="(item, index) in special_medicine_option"
  534. :label="item.name"
  535. :key="index + 'y'"
  536. :value="item.id"
  537. ></el-option>
  538. </el-select>
  539. </el-form-item>
  540. </el-col>
  541. <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')">
  542. <el-form-item label="透析前使用其他特殊药物">
  543. <el-input
  544. v-model="dialysisPrescription.special_medicine_other"
  545. ></el-input>
  546. </el-form-item>
  547. </el-col>
  548. <el-col :span="8">
  549. <el-form-item
  550. label="置换液:"
  551. v-if="isShows('置换液')"
  552. v-show="huShow"
  553. >
  554. <el-select
  555. v-model="dialysisPrescription.displace_liqui_part"
  556. placeholder="请选择"
  557. >
  558. <el-option :key="0" label="请选择" :value="0"></el-option>
  559. <el-option
  560. v-for="(option, index) in displace_liqui_part_option"
  561. :key="index + 'u'"
  562. :label="option.name"
  563. :value="option.id"
  564. ></el-option>
  565. </el-select>
  566. </el-form-item>
  567. </el-col>
  568. <el-col :span="8"
  569. v-if="isShows('置换液总量') && ((this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id ==24 || this.$store.getters.xt_user.template_info.template_id ==53) && this.$store.getters.xt_user.template_info.org_id != 10249)"
  570. v-show="totalShow">
  571. <el-form-item label="置换液总量(ml)">
  572. <el-input
  573. v-model="dialysisPrescription.displace_liqui_value"
  574. ></el-input>
  575. </el-form-item>
  576. </el-col>
  577. <el-col :span="8"
  578. v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24 && this.$store.getters.xt_user.template_info.template_id !=53) || this.$store.getters.xt_user.template_info.org_id == 10249"
  579. v-show="totalShow">
  580. <el-form-item label="置换液总量(L)">
  581. <el-input
  582. v-model="dialysisPrescription.displace_liqui_value"
  583. ></el-input>
  584. </el-form-item>
  585. </el-col>
  586. <el-col :span="8" v-if="isShows('目标KT/V')">
  587. <el-form-item label="目标KT/V">
  588. <el-input v-model="dialysisPrescription.target_ktv"></el-input>
  589. </el-form-item>
  590. </el-col>
  591. <el-col :span="8" v-if="isShows('血管通路')">
  592. <el-form-item label="血管通路:">
  593. <el-select
  594. v-model="dialysisPrescription.blood_access"
  595. placeholder="请选择"
  596. >
  597. <el-option :key="0" label="请选择" :value="0"></el-option>
  598. <el-option
  599. v-for="(option, index) in blood_access_option"
  600. :key="index + 'i'"
  601. :label="option.name"
  602. :value="option.id"
  603. ></el-option>
  604. </el-select>
  605. </el-form-item>
  606. </el-col>
  607. <el-col :span="8" v-if="isShows('抗凝提前停止')">
  608. <el-form-item label="抗凝提前停止(h): ">
  609. <el-input
  610. type="number"
  611. v-model="dialysisPrescription.anticoagulant_stop_time_hour"
  612. ></el-input>
  613. </el-form-item>
  614. </el-col>
  615. <el-col :span="8" v-if="isShows('抗凝提前停止')">
  616. <el-form-item label="抗凝提前停止(min): ">
  617. <el-input
  618. type="number"
  619. v-model="dialysisPrescription.anticoagulant_stop_time_min"
  620. ></el-input>
  621. </el-form-item>
  622. </el-col>
  623. <el-col :span="8" v-if="isShows('抽血')">
  624. <el-form-item label="抽血:">
  625. <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')"></el-input>
  626. </el-form-item>
  627. </el-col>
  628. <el-col :span="8" v-if="isShows('病情')">
  629. <el-form-item label="病情:">
  630. <el-select v-model="dialysisPrescription.illness" placeholder="请选择">
  631. <el-option :key="0" label="请选择" :value="0"></el-option>
  632. <el-option
  633. v-for="(item, index) in illnessList "
  634. :key="index"
  635. :label="item.name"
  636. :value="item.id"
  637. ></el-option>
  638. </el-select>
  639. </el-form-item>
  640. </el-col>
  641. <el-col :span="8" v-if="isShows('葡萄糖')">
  642. <el-form-item label="葡萄糖:">
  643. <el-input v-model="dialysisPrescription.amylaceum"></el-input>
  644. </el-form-item>
  645. </el-col>
  646. <el-col :span="8" v-if="isShows('置换流量')">
  647. <el-form-item label="置换流量(L/h):">
  648. <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
  649. </el-form-item>
  650. </el-col>
  651. <el-col :span="8" v-if="isShows('吸氧')">
  652. <el-form-item label="吸氧:">
  653. <el-select v-model="dialysisPrescription.oxygen_uptake" placeholder="请选择"
  654. @change="changeOxygenList">
  655. <el-option :key="0" label="请选择" :value="0"></el-option>
  656. <el-option
  657. v-for="(item, index) in oxygenList "
  658. :key="index"
  659. :label="item.name"
  660. :value="item.id"
  661. ></el-option>
  662. </el-select>
  663. </el-form-item>
  664. </el-col>
  665. <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
  666. <el-form-item label="吸氧流量(L/分):">
  667. <el-input v-model="dialysisPrescription.oxygen_flow"></el-input>
  668. </el-form-item>
  669. </el-col>
  670. <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
  671. <el-form-item label="吸氧时长(h):">
  672. <el-input v-model="dialysisPrescription.oxygen_time"></el-input>
  673. </el-form-item>
  674. </el-col>
  675. <el-col :span="8" v-if="isShows('透析管路')">
  676. <el-form-item label="透析管路:">
  677. <el-select
  678. v-model="dialysisPrescription.hemodialysis_pipelines"
  679. placeholder="请选择"
  680. style="width:100%;"
  681. >
  682. <el-option :key="0" label="请选择" :value="0"></el-option>
  683. <el-option
  684. v-for="(item, index) in hemodialysisPipelinesOptions"
  685. :label="item.name"
  686. :key="index + 't'"
  687. :value="item.name"
  688. ></el-option>
  689. </el-select>
  690. </el-form-item>
  691. </el-col>
  692. <el-col :span="8" v-if="isShows('透析管路支数')">
  693. <el-form-item label="透析管路支数">
  694. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.hemodialysis_pipelines_count"
  695. ></el-input>
  696. </el-form-item>
  697. </el-col>
  698. <el-col :span="8" v-if="isShows('穿刺针')">
  699. <el-form-item label="穿刺针">
  700. <el-input v-model="dialysisPrescription.puncture_needle"
  701. @focus="showInnerDialog('11')"></el-input>
  702. </el-form-item>
  703. </el-col>
  704. <el-col :span="8" v-if="isShows('穿刺针支数')">
  705. <el-form-item label="穿刺针支数">
  706. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.puncture_needle_count"
  707. ></el-input>
  708. </el-form-item>
  709. </el-col>
  710. <el-col :span="8" v-if="isShows('促红素')">
  711. <el-form-item label="促红素:">
  712. <el-select
  713. v-model="dialysisPrescription.epo"
  714. placeholder="请选择"
  715. style="width:100%;"
  716. >
  717. <el-option :key="0" label="请选择" :value="0"></el-option>
  718. <el-option
  719. v-for="(item, index) in epoOptions"
  720. :label="item.name"
  721. :key="index + 't'"
  722. :value="item.name"
  723. ></el-option>
  724. </el-select>
  725. </el-form-item>
  726. </el-col>
  727. <el-col :span="8" v-if="isShows('促红素支数')">
  728. <el-form-item label="促红素支数">
  729. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.epo_count"></el-input>
  730. </el-form-item>
  731. </el-col>
  732. <el-col :span="8" v-if="isShows('最大超滤率')">
  733. <el-form-item label="最大超滤率(ml/h)">
  734. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.max_ultrafiltration_rate"></el-input>
  735. </el-form-item>
  736. </el-col>
  737. </el-row>
  738. <el-row :gutter="20">
  739. <el-col :span="24">
  740. <el-form-item label="备注: ">
  741. <el-input
  742. type="textarea"
  743. v-model="dialysisPrescription.remark"
  744. :rows="5"
  745. ></el-input>
  746. </el-form-item>
  747. </el-col>
  748. </el-row>
  749. </el-form>
  750. <span slot="footer" class="dialog-footer">
  751. <el-button @click="handleCancle">取 消</el-button>
  752. <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
  753. <el-button type="primary" @click="handleCommit" :loading="isLoading">保 存</el-button>
  754. <el-button type="primary" @click="handleSolution" :loading="isLoading"
  755. >保存为长期处方</el-button
  756. >
  757. </span>
  758. </el-dialog>
  759. <el-dialog
  760. title="长期医嘱推送"
  761. :visible.sync="isShowRemindAdvice"
  762. width="1010px"
  763. :modal-append-to-body="false"
  764. :append-to-body="true"
  765. >
  766. <div style='display:flex;align-items:center;'>
  767. <span style="font-weight: bold;color: #409eff;width:80px;">开始时间:</span>
  768. <el-date-picker
  769. type="datetime"
  770. format="yyyy-MM-dd HH:mm"
  771. value-format="yyyy-MM-dd HH:mm"
  772. placeholder="选择时间"
  773. v-model="start_time"
  774. ></el-date-picker>
  775. <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->
  776. </div>
  777. <el-checkbox-group v-model="checkedCities">
  778. <el-checkbox
  779. style="display: flex;align-items: center"
  780. v-for="(advice, index) in targetAdvices"
  781. :label="advice.id"
  782. :key="index+'q'"
  783. :value="advice.id"
  784. :name="advice.id"
  785. >
  786. <div style="padding-top: 10px;padding-left: 10px">
  787. 开嘱医生&nbsp;{{ getDoctorName(advice.advice_doctor) }}
  788. </div>
  789. <br/>
  790. <div style="padding-left: 10px">
  791. 开嘱时间&nbsp;{{ getTime(advice.created_time) }}
  792. </div>
  793. <br/>
  794. <div style="padding-bottom: 10px;padding-left: 10px">
  795. 医嘱内容&nbsp;{{ getContent(advice) }}
  796. </div>
  797. <div
  798. style="padding-bottom: 10px;padding-left: 10px"
  799. v-if="advice.frequency_type == 1"
  800. >
  801. 推送频率 每次必推
  802. </div>
  803. <div
  804. style="padding-bottom: 10px;padding-left: 10px"
  805. v-if="advice.frequency_type == 2"
  806. >
  807. 推送频率&nbsp;{{ advice.day_count }}天/次
  808. </div>
  809. <div
  810. style="padding-bottom: 10px;padding-left: 10px"
  811. v-if="advice.frequency_type == 3"
  812. >
  813. 推送频率&nbsp;每周{{ advice.week_day }}
  814. </div>
  815. </el-checkbox>
  816. </el-checkbox-group>
  817. <span slot="footer" class="dialog-footer">
  818. <el-button @click="handleAdviceCancle">取 消</el-button>
  819. <el-button type="primary" @click="handleAdviceCommit" :loading="isLoading">保 存</el-button>
  820. </span>
  821. </el-dialog>
  822. <el-dialog
  823. :title="patient.name"
  824. :visible.sync="msgtip_visibility"
  825. :close-on-click-modal="false"
  826. :close-on-press-escape="false"
  827. :show-close="false"
  828. width="30%"
  829. >
  830. <div class="newLine">
  831. <span>本次透析日期</span>
  832. <span>{{ dialysis_date }}</span>
  833. </div>
  834. <div class="newLine">
  835. <span>透前称重(kg)</span>
  836. <span>{{ getBeforeWeight(predialysis) }}</span>
  837. </div>
  838. <div class="newLine">
  839. <span>干体重(kg)</span>
  840. <span>{{ getDryWeight() }}</span>
  841. </div>
  842. <div class="newLine">
  843. <span>衣物重(kg)</span>
  844. <span>{{ predialysis.additional_weight }}</span>
  845. </div>
  846. <div class="newLine">
  847. <span>体重增加(kg)</span>
  848. <span>{{ add_weight }}</span>
  849. </div>
  850. <div class="newLine">
  851. <span>透后称重(kg)</span>
  852. <span>{{ getAfterWeight(record) }}</span>
  853. </div>
  854. <div class="newLine">
  855. <span>体重减少(kg)</span>
  856. <span>{{ record.weight_loss }}</span>
  857. </div>
  858. <div class="newLine">
  859. <span>上次透后称重(kg)</span>
  860. <span>{{ getLastAfterWeight(last_record) }}</span>
  861. </div>
  862. <span slot="footer" class="dialog-footer">
  863. <el-button @click="cancleMsg()">取 消</el-button>
  864. <el-button type="primary" @click="cancleMsg()">确 定</el-button>
  865. </span>
  866. </el-dialog>
  867. <multi-select-box
  868. :propsForm="InnerDialogProps"
  869. v-on:dialog-comfirm="innerDialogComfirm"
  870. v-on:dialog-cancle="innerDialogCancle"
  871. ></multi-select-box>
  872. </div>
  873. </template>
  874. <script>
  875. import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution } from '@/api/dialysis'
  876. import { getDataConfig } from '@/utils/data'
  877. import { calculateAnticoagulantZL, uParseTime } from '@/utils/tools'
  878. import store from '@/store'
  879. import MsgTip from './MsgTip'
  880. import request from '@/utils/request'
  881. import multiSelectBox from './MultiSelectBox'
  882. export default {
  883. name: 'dialysisPrescriptionDialog',
  884. components: { MsgTip, multiSelectBox },
  885. props: {
  886. mode_id: {
  887. type: Number
  888. },
  889. schedual: {
  890. type: Object
  891. },
  892. is_open: {
  893. type: Number,
  894. default: () => {
  895. return 0
  896. }
  897. },
  898. waitUploadAdvices: {
  899. type: Array,
  900. default: () => {
  901. return []
  902. }
  903. },
  904. targetAdvices: {
  905. type: Array,
  906. default: () => {
  907. return []
  908. }
  909. },
  910. admin_users: {
  911. type: Array,
  912. default: () => {
  913. return []
  914. }
  915. },
  916. niprocart_info: {
  917. type: Array,
  918. default: () => {
  919. return []
  920. }
  921. },
  922. jms_info: {
  923. type: Array,
  924. default: () => {
  925. return []
  926. }
  927. },
  928. fistula_needle_set_info: {
  929. type: Array,
  930. default: () => {
  931. return []
  932. }
  933. },
  934. fistula_needle_set_16_info: {
  935. type: Array,
  936. default: () => {
  937. return []
  938. }
  939. },
  940. hemoperfusion_info: {
  941. type: Array,
  942. default: () => {
  943. return []
  944. }
  945. },
  946. dialyser_sterilised_info: {
  947. type: Array,
  948. default: () => {
  949. return []
  950. }
  951. },
  952. filtryzer_info: {
  953. type: Array,
  954. default: () => {
  955. return []
  956. }
  957. },
  958. dialyzers_info: {
  959. type: Array,
  960. default: () => {
  961. return []
  962. }
  963. },
  964. injector_info: {
  965. type: Array,
  966. default: () => {
  967. return []
  968. }
  969. },
  970. bloodlines_info: {
  971. type: Array,
  972. default: () => {
  973. return []
  974. }
  975. },
  976. tubingHemodialysis_info: {
  977. type: Array,
  978. default: () => {
  979. return []
  980. }
  981. },
  982. safe_package_info: {
  983. type: Array,
  984. default: () => {
  985. return []
  986. }
  987. },
  988. aliquid_info: {
  989. type: Array,
  990. default: () => {
  991. return []
  992. }
  993. },
  994. config: {
  995. type: Object,
  996. default: () => {
  997. return { id: 0 }
  998. }
  999. },
  1000. prescription: {
  1001. // 透析处方
  1002. type: Object,
  1003. default: () => {
  1004. return { id: 0 }
  1005. }
  1006. },
  1007. solution: {
  1008. // 长期处方
  1009. type: Object,
  1010. default: () => {
  1011. return { id: 0 }
  1012. }
  1013. },
  1014. dialysis_order: {
  1015. // 透析记录
  1016. type: Object,
  1017. default: () => {
  1018. return { id: 0 }
  1019. }
  1020. },
  1021. patient: {
  1022. // 患者信息
  1023. type: Object,
  1024. default: () => {
  1025. return { id: 0 }
  1026. }
  1027. },
  1028. devices: {
  1029. type: Array,
  1030. default: function() {
  1031. return new Array()
  1032. }
  1033. },
  1034. predialysis: {
  1035. type: Object,
  1036. default: () => {
  1037. return { id: 0 }
  1038. }
  1039. },
  1040. last_predialysis: {
  1041. type: Object,
  1042. default: () => {
  1043. return { id: 0 }
  1044. }
  1045. },
  1046. record: {
  1047. type: Object,
  1048. default: () => {
  1049. return { id: 0 }
  1050. }
  1051. },
  1052. last_record: {
  1053. type: Object,
  1054. default: () => {
  1055. return { id: 0 }
  1056. }
  1057. },
  1058. dry_weight: {
  1059. type: Object,
  1060. default: () => {
  1061. return { id: 0 }
  1062. }
  1063. },
  1064. last_prescription: {
  1065. type: Object,
  1066. default: () => {
  1067. return { id: 0 }
  1068. }
  1069. },
  1070. scheudle_mode: Number,
  1071. stockType: {
  1072. type: Array,
  1073. default: () => {
  1074. return []
  1075. }
  1076. },
  1077. lastAssessment: {
  1078. type: Object,
  1079. default: () => {
  1080. return { id: 0 }
  1081. }
  1082. }
  1083. },
  1084. computed: {
  1085. dialysis_date: function() {
  1086. if (this.$route.query.date) {
  1087. return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
  1088. } else {
  1089. return this.record_date
  1090. }
  1091. }
  1092. },
  1093. data() {
  1094. return {
  1095. InnerDialogProps: {
  1096. values: [],
  1097. visibility: false,
  1098. isShowTextArea: true,
  1099. customContent: '',
  1100. titles: '',
  1101. type: '' // 不同弹框类型,用来匹配数据
  1102. },
  1103. advice_start_time: '',
  1104. showTxt: '',
  1105. start_time: '',
  1106. hasPermission: true,
  1107. zhiShow: false,
  1108. totalShow: false,
  1109. huShow: false,
  1110. showName: '',
  1111. isShowRemindAdvice: false,
  1112. checkedCities: [],
  1113. isVisibility: false,
  1114. isShowTime: false,
  1115. isClose: false,
  1116. isShow: false,
  1117. record_date: '',
  1118. time: '',
  1119. treatment_mode: [],
  1120. timeValue: '',
  1121. deviceList: [],
  1122. replacement_ways: [],
  1123. anticoagulantsConfit: {},
  1124. dialysate_formulation_options: [],
  1125. add_weight: 0,
  1126. body_fluid_option: [],
  1127. special_medicine_option: [],
  1128. displace_liqui_part_option: [],
  1129. blood_access_option: [],
  1130. is_pre: 0,
  1131. msgtip_visibility: false,
  1132. startVisibility:false,
  1133. dialysisPrescription: {
  1134. replacement_total: '',
  1135. mode_id: '',
  1136. dialysis_duration: '',
  1137. dialysis_duration_hour: '',
  1138. dialysis_duration_minute: '',
  1139. mode_name: '',
  1140. dialyzer: '',
  1141. perfusion_apparatus: '',
  1142. blood_flow_volume: '',
  1143. dewater_amount: '',
  1144. displace_liqui: '',
  1145. replacement_way: '',
  1146. anticoagulant: '',
  1147. anticoagulant_shouji: '',
  1148. anticoagulant_weichi: '',
  1149. anticoagulant_zongliang: '',
  1150. anticoagulant_gaimingcheng: '',
  1151. anticoagulant_gaijiliang: '',
  1152. kalium: '',
  1153. sodium: '',
  1154. calcium: '',
  1155. bicarbonate: '',
  1156. glucose: '',
  1157. dry_weight: '',
  1158. dialysate_flow: '',
  1159. dialysate_temperature: '',
  1160. target_ultrafiltration: '',
  1161. dialysate_formulation: '',
  1162. conductivity: '',
  1163. doctor: '',
  1164. remark: '',
  1165. dialyzer_perfusion_apparatus: '',
  1166. body_fluid: '',
  1167. body_fluid_other: '',
  1168. special_medicine: '',
  1169. special_medicine_other: '',
  1170. displace_liqui_part: '',
  1171. displace_liqui_value: '',
  1172. ultrafiltration: '',
  1173. blood_access: '',
  1174. niprocart: '',
  1175. jms: '',
  1176. fistula_needle_set: '',
  1177. fistula_needle_set_16: '',
  1178. hemoperfusion: '',
  1179. dialyser_sterilised: '',
  1180. filtryzer: '',
  1181. target_ktv: '',
  1182. dialyzers: '',
  1183. injector: '',
  1184. bloodlines: '',
  1185. tubing_hemodialysis: '',
  1186. package: '',
  1187. a_liquid: '',
  1188. no_anticoagulant_shouji: '0',
  1189. no_anticoagulant_weichi: '0',
  1190. no_anticoagulant_zongliang: '0',
  1191. creater: 0,
  1192. pre_impulse: 0, //预冲量
  1193. anticoagulant_stop_time_hour: '',
  1194. anticoagulant_stop_time_min: '',
  1195. push_the_protamine: '',//下机前推注鱼精蛋白
  1196. heparin_sodium: '', //肝素钠
  1197. nucleoprotamine: '',//鱼精蛋白
  1198. no_heparin_remarks: '',
  1199. blood: '',
  1200. dialysis_dialyszers: '',
  1201. dialysis_irrigation: '',
  1202. irrigation: '',
  1203. antioxidant_commodity_name: '',
  1204. displace_speed: '',
  1205. illness: '',
  1206. amylaceum: '',
  1207. single_time: '',
  1208. single_water: '',
  1209. replacement_flow: '',
  1210. plasma_separator: '',
  1211. bilirubin_adsorption_column: '',
  1212. oxygen_uptake: '',
  1213. oxygen_flow: '',
  1214. oxygen_time: '',
  1215. hemodialysis_pipelines: '',
  1216. hemodialysis_pipelines_count: '',
  1217. puncture_needle: '',
  1218. puncture_needle_count: '',
  1219. epo: '',
  1220. epo_count: '',
  1221. max_ultrafiltration_rate:'',
  1222. hemodialysisPipelinesOptions: [],
  1223. punctureNeedleOptions: [],
  1224. epoOptions: [],
  1225. impulse:0,
  1226. },
  1227. anticoagulant: {
  1228. id: 0,
  1229. name: '',
  1230. type: 1,
  1231. shouji: 1,
  1232. weichi: 1,
  1233. zongliang: 1,
  1234. gaimingcheng: -1,
  1235. gaijiliang: -1,
  1236. shouji_unit: 'mg',
  1237. weichi_unit: 'mg/h',
  1238. zongliang_unit: 'mg',
  1239. gaimingcheng_unit: '',
  1240. gaijiliang_unit: ''
  1241. },
  1242. doctorAdvices: [],
  1243. dialyzerPerfusionApparatus: [],
  1244. bloods: [],
  1245. irrigations: [],
  1246. dialyzers: [],
  1247. illnessList: [],
  1248. plasmaSeparatorList: [],
  1249. bilirubinAdsorptionColumn: [],
  1250. oxygenList: [
  1251. { id: 1, name: '需' },
  1252. { id: 2, name: '无' }
  1253. ],
  1254. oxygenShow: false,
  1255. hemodialysisPipelinesOptions: [],
  1256. epoOptions: [],
  1257. isLoading: false
  1258. }
  1259. },
  1260. methods: {
  1261. changeOxygenList(val) {
  1262. if (val == 1) {
  1263. this.oxygenShow = true
  1264. }
  1265. if (val == 2) {
  1266. this.oxygenShow = false
  1267. this.prescription.oxygen_flow = ''
  1268. this.prescription.oxygen_time = ''
  1269. }
  1270. },
  1271. changeTime: function(val) {
  1272. this.advice_start_time = val
  1273. },
  1274. showInnerDialog: function(val) {
  1275. this.InnerDialogProps.visibility = true
  1276. switch (val) {
  1277. case '5': // 透析器/灌流器
  1278. this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
  1279. this.InnerDialogProps.titles = '透析器/灌流器'
  1280. this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
  1281. this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
  1282. this.InnerDialogProps.isShowTextArea = false
  1283. break
  1284. case '6': // 透析器/灌流器
  1285. this.InnerDialogProps.values = this.bloods
  1286. this.InnerDialogProps.titles = '抽血'
  1287. this.InnerDialogProps.type = 'blood'
  1288. this.InnerDialogProps.selected = this.dialysisPrescription.blood
  1289. this.InnerDialogProps.isShowTextArea = false
  1290. case '7': // 透析器
  1291. for (let i = 0; i < this.dialyzers.length; i++) {
  1292. this.dialyzers[i].name = this.dialyzers[i].specification_name
  1293. }
  1294. this.InnerDialogProps.values = this.dialyzers
  1295. this.InnerDialogProps.titles = '透析器'
  1296. this.InnerDialogProps.type = 'dialyzers'
  1297. this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
  1298. this.InnerDialogProps.isShowTextArea = false
  1299. break
  1300. case '8':
  1301. for (let i = 0; i < this.irrigations.length; i++) {
  1302. this.irrigations[i].name = this.irrigations[i].specification_name
  1303. }
  1304. this.InnerDialogProps.values = this.irrigations
  1305. this.InnerDialogProps.titles = '灌流器'
  1306. this.InnerDialogProps.type = 'irrigations'
  1307. this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
  1308. this.InnerDialogProps.isShowTextArea = false
  1309. break
  1310. case '9': // 血浆灌流器
  1311. this.InnerDialogProps.values = this.plasmaSeparatorList
  1312. this.InnerDialogProps.titles = '血浆灌流器'
  1313. this.InnerDialogProps.type = 'plasma_separator'
  1314. this.InnerDialogProps.selected = this.dialysisPrescription.plasma_separator
  1315. this.InnerDialogProps.isShowTextArea = false
  1316. break
  1317. case '10': // 胆红素吸附柱
  1318. this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
  1319. this.InnerDialogProps.titles = '胆红素吸附柱'
  1320. this.InnerDialogProps.type = 'bilirubin_adsorption_column'
  1321. this.InnerDialogProps.selected = this.dialysisPrescription.bilirubin_adsorption_column
  1322. this.InnerDialogProps.isShowTextArea = false
  1323. break
  1324. case '11': //穿刺针
  1325. this.InnerDialogProps.values = this.punctureNeedleOptions
  1326. this.InnerDialogProps.titles = '穿刺针'
  1327. this.InnerDialogProps.type = 'puncture_needle'
  1328. this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
  1329. this.InnerDialogProps.isShowTextArea = false
  1330. break
  1331. }
  1332. },
  1333. innerDialogComfirm: function(val) {
  1334. this.InnerDialogProps.visibility = false
  1335. switch (val.type) {
  1336. case 'dialyzer_perfusion_apparatus':
  1337. this.dialysisPrescription.dialyzer_perfusion_apparatus = val.value.join(',')
  1338. break
  1339. case 'blood':
  1340. this.dialysisPrescription.blood = val.value.join(',')
  1341. break
  1342. case 'dialyzers':
  1343. this.dialysisPrescription.dialysis_dialyszers = val.value.join(',')
  1344. break
  1345. case 'irrigations':
  1346. this.dialysisPrescription.dialysis_irrigation = val.value.join(',')
  1347. break
  1348. case 'plasma_separator':
  1349. this.dialysisPrescription.plasma_separator = val.value.join(',')
  1350. break
  1351. case 'bilirubin_adsorption_column':
  1352. this.dialysisPrescription.bilirubin_adsorption_column = val.value.join(',')
  1353. break
  1354. case 'puncture_needle':
  1355. this.dialysisPrescription.puncture_needle = val.value.join(',')
  1356. break
  1357. }
  1358. },
  1359. innerDialogCancle: function() {
  1360. this.InnerDialogProps.visibility = false
  1361. },
  1362. getDryWeight() {
  1363. if (this.dry_weight != null && this.dry_weight.id > 0) {
  1364. return this.dry_weight.dry_weight
  1365. } else {
  1366. if (this.last_predialysis != null && this.last_predialysis.id > 0) {
  1367. return this.last_predialysis.dry_weight
  1368. } else {
  1369. return ''
  1370. }
  1371. }
  1372. },
  1373. getLastAfterWeight(record) {
  1374. if (record != null && record.id > 0) {
  1375. if (record.weight_after > 0) {
  1376. let additional_weight = 0
  1377. if (this.predialysis.additional_weight != undefined) {
  1378. additional_weight = this.predialysis.additional_weight
  1379. }
  1380. return parseFloat(record.weight_after - additional_weight).toFixed(1)
  1381. } else {
  1382. return ''
  1383. }
  1384. }
  1385. },
  1386. getBeforeWeight(predialysis) {
  1387. if (predialysis.id > 0) {
  1388. if (predialysis.weight_before > 0) {
  1389. return parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1)
  1390. } else {
  1391. return ''
  1392. }
  1393. }
  1394. },
  1395. getAfterWeight(record) {
  1396. if (record.id > 0) {
  1397. if (record.weight_after > 0) {
  1398. return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1)
  1399. } else {
  1400. return ''
  1401. }
  1402. }
  1403. },
  1404. setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis, system_prescribe) {
  1405. this.treatment_mode = this.$store.getters.treatment_mode
  1406. // console.log("99999",this.treatment_mode)
  1407. this.perfusion_apparatus = getDataConfig(
  1408. 'hemodialysis',
  1409. 'perfusion_apparatus'
  1410. )
  1411. this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
  1412. this.dialysate_formulation_options = getDataConfig(
  1413. 'hemodialysis',
  1414. 'dialysate_formulation'
  1415. )
  1416. // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  1417. var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
  1418. // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
  1419. // console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
  1420. // }
  1421. // var anticoagulantsConfit = getDataConfig('hemodialysis', 'anticoagulant')
  1422. // const arr = []
  1423. // anticoagulantsConfit.map((item, index) => {
  1424. // const objChild = { ...item }
  1425. // arr.push(objChild)
  1426. // })
  1427. // var arrthree = {}
  1428. // arrthree = { ...arr }
  1429. // console.log('arrthree', arrthree)
  1430. const arrFour = []
  1431. Object.keys(anticoagulantsConfitOne).map((item, index) => {
  1432. if (index != 2) {
  1433. arrFour.push(anticoagulantsConfitOne[item])
  1434. }
  1435. })
  1436. this.anticoagulantsConfit = arrFour
  1437. this.dialysisList = this.devices
  1438. this.body_fluid_option = this.$store.getters.body_fluid
  1439. this.special_medicine_option = this.$store.getters.special_medicine
  1440. this.displace_liqui_part_option = this.$store.getters.displace_liqui
  1441. this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
  1442. this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
  1443. this.epoOptions = getDataConfig('hemodialysis', 'epo')
  1444. // this.blood_access_option = this.$store.getters.blood_access_internal_fistula;
  1445. this.blood_access_option = getDataConfig(
  1446. 'hemodialysis',
  1447. 'vascular_access_desc'
  1448. )
  1449. // console.log('血管通路', this.blood_access_option)
  1450. this.dialyzerPerfusionApparatus = getDataConfig(
  1451. 'hemodialysis',
  1452. 'dialyzer_perfusion_apparatus'
  1453. )
  1454. // console.log('3333333', this.dialyzerPerfusionApparatus)
  1455. this.bloods = getDataConfig(
  1456. 'hemodialysis',
  1457. 'blood'
  1458. )
  1459. // dialyzerPerfusionApparatus.map(item => {
  1460. // item.name = item.name.toUpperCase()
  1461. // })
  1462. // //去重
  1463. // var arr = this.unique(dialyzerPerfusionApparatus)
  1464. // this.dialyzerPerfusionApparatus = arr
  1465. // console.log('灌流器', arr)
  1466. if (this.$route.query && this.$route.query.date) {
  1467. var date = this.$route.query && this.$route.query.date
  1468. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  1469. } else {
  1470. var date = schedual.schedule_date
  1471. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  1472. }
  1473. if (this.prescription != null && typeof this.prescription.id !== 'undefined' && this.prescription.id > 0) {
  1474. for (const key in this.prescription) {
  1475. this.dialysisPrescription[key] = this.prescription[key]
  1476. }
  1477. } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
  1478. for (const key in this.solution) {
  1479. if (key != 'target_ultrafiltration') {
  1480. this.dialysisPrescription[key] = this.solution[key]
  1481. }
  1482. }
  1483. } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
  1484. for (const key in lastDialysisPrescribe) {
  1485. if (key != 'target_ultrafiltration') {
  1486. this.dialysisPrescription[key] = lastDialysisPrescribe[key]
  1487. }
  1488. }
  1489. } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' && system_prescribe.id > 0) {
  1490. for (const key in system_prescribe) {
  1491. if (key != 'target_ultrafiltration') {
  1492. this.dialysisPrescription[key] = system_prescribe[key]
  1493. }
  1494. }
  1495. } else {
  1496. if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
  1497. this.zhiShow = true
  1498. this.huShow = true
  1499. this.totalShow = true
  1500. } else {
  1501. this.zhiShow = false
  1502. this.huShow = false
  1503. this.totalShow = false
  1504. }
  1505. // this.dialysisPrescription.mode_id = schedual.mode_id
  1506. }
  1507. var thismode = parseInt(this.dialysisPrescription.anticoagulant)
  1508. if (isNaN(thismode) || thismode <= 0) {
  1509. return false
  1510. }
  1511. if (
  1512. typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
  1513. this.anticoagulantsConfit[thismode] == null
  1514. ) {
  1515. return false
  1516. }
  1517. this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
  1518. },
  1519. menuMsgTip: function() {
  1520. this.msgtip_visibility = false
  1521. this.isVisibility = true
  1522. },
  1523. handleAdviceCommit() {
  1524. let results = []
  1525. for (let i = 0; i < this.targetAdvices.length; i++) {
  1526. for (let a = 0; a < this.checkedCities.length; a++) {
  1527. if (this.targetAdvices[i].id == this.checkedCities[a]) {
  1528. results.push(this.targetAdvices[i])
  1529. }
  1530. }
  1531. }
  1532. var obj5 = {}
  1533. results = results.reduce((cur, next) => {
  1534. obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
  1535. return cur
  1536. }, [])
  1537. var date = new Date()
  1538. var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  1539. var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  1540. if (results.length > 0) {
  1541. if(!this.isLoading){
  1542. if (this.is_pre == 1) {
  1543. if (this.patient.id <= 0) {
  1544. this.$message.error('没有选择患者')
  1545. this.loading = false
  1546. return
  1547. }
  1548. var arr = this.dialysisPrescription
  1549. const ParamsQuery = arr
  1550. ParamsQuery['patient'] = this.patient.id
  1551. ParamsQuery['record_date'] = this.record_date
  1552. ParamsQuery['patient_id'] = this.$route.query.patient_id
  1553. if(this.$route.query.patient_id ==undefined){
  1554. ParamsQuery['patient_id'] = this.patient.id
  1555. }
  1556. if (this.prescription.creater <= 0) {
  1557. ParamsQuery['mode'] = '1'
  1558. } else {
  1559. ParamsQuery['mode'] = '2'
  1560. if (
  1561. this.$store.getters.xt_user.user.id !=
  1562. this.dialysisPrescription.creater
  1563. ) {
  1564. ParamsQuery['mode'] = '3'
  1565. }
  1566. }
  1567. this.isLoading = true
  1568. console.log("ParamsQuery233232322323322332232323",ParamsQuery)
  1569. postPrescription(ParamsQuery).then(response => {
  1570. if (response.data.state == 0) {
  1571. this.$message.error(response.data.msg)
  1572. this.isLoading = false
  1573. return false
  1574. } else {
  1575. this.$notify({
  1576. title: '成功',
  1577. message: '提交成功',
  1578. type: 'success',
  1579. duration: 2000
  1580. })
  1581. var date = new Date()
  1582. const params = {
  1583. advices: results,
  1584. advice_date: this.start_time.split(' ')[0],
  1585. advice_doctor: results[0].advice_doctor,
  1586. advice_type: results[0].advice_type,
  1587. parent_id: this.patient_id,
  1588. start_time: this.start_time,
  1589. remark: ''
  1590. }
  1591. var patient_id = 0
  1592. if(this.$route.query.patient_id == undefined){
  1593. patient_id = this.patient.id
  1594. }else{
  1595. patient_id = this.$route.query.patient_id
  1596. }
  1597. CreateGroupAdvice(patient_id, 0, params).then(
  1598. rs => {
  1599. var resp = rs.data
  1600. if (resp.state == 1) {
  1601. this.doctorAdvices = resp.data.advices
  1602. this.$emit('advice')
  1603. this.isLoading = false
  1604. } else {
  1605. this.isLoading = false
  1606. }
  1607. }
  1608. )
  1609. const prescription_resp = response.data.data.prescription
  1610. var prescription = this.prescription
  1611. for (var index in prescription_resp) {
  1612. // prescription[index] = prescription_resp[index];
  1613. this.$set(prescription, index, prescription_resp[index])
  1614. }
  1615. this.hide()
  1616. }
  1617. })
  1618. } else if (this.is_pre == 2) {
  1619. if (this.patient.id <= 0) {
  1620. this.$message.error('没有选择患者')
  1621. this.loading = false
  1622. return
  1623. }
  1624. var arr = this.dialysisPrescription
  1625. const ParamsQuery = arr
  1626. ParamsQuery['patient'] = this.patient.id
  1627. ParamsQuery['record_date'] = this.record_date
  1628. ParamsQuery['mode'] = 1
  1629. postSoulution(ParamsQuery).then(response => {
  1630. if (response.data.state == 0) {
  1631. this.$message.error(response.data.msg)
  1632. this.isLoading = false
  1633. return false
  1634. } else {
  1635. this.$notify({
  1636. title: '成功',
  1637. message: '提交成功',
  1638. type: 'success',
  1639. duration: 2000
  1640. })
  1641. // console.log(hour + ':' + minute)
  1642. var date = new Date()
  1643. var hour =
  1644. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  1645. var minute =
  1646. date.getMinutes() < 10
  1647. ? '0' + date.getMinutes()
  1648. : date.getMinutes()
  1649. const params = {
  1650. advices: results,
  1651. advice_date: this.start_time.split(' ')[0],
  1652. advice_doctor: results[0].advice_doctor,
  1653. advice_type: results[0].advice_type,
  1654. parent_id: this.patient_id,
  1655. start_time: this.start_time,
  1656. remark: ''
  1657. }
  1658. var patient_id = 0
  1659. if(this.$route.query.patient_id == undefined){
  1660. patient_id = this.patient.id
  1661. }else{
  1662. patient_id = this.$route.query.patient_id
  1663. }
  1664. CreateGroupAdvice(patient_id, 0, params).then(
  1665. rs => {
  1666. var resp = rs.data
  1667. if (resp.state == 1) {
  1668. // this.doctorAdvices = resp.data.advices
  1669. this.$emit('advice')
  1670. this.isLoading = false
  1671. } else {
  1672. this.isLoading = false
  1673. }
  1674. }
  1675. )
  1676. const prescription_resp = response.data.data.prescription
  1677. const solution_resp = response.data.data.solution
  1678. var prescription = this.prescription
  1679. var solution = this.solution
  1680. for (var index in prescription_resp) {
  1681. // prescription[index] = prescription_resp[index];
  1682. this.$set(prescription, index, prescription_resp[index])
  1683. }
  1684. for (var index in solution_resp) {
  1685. // solution[index] = solution_resp[index];
  1686. this.$set(solution, index, solution_resp[index])
  1687. }
  1688. this.hide()
  1689. }
  1690. })
  1691. }
  1692. }
  1693. } else {
  1694. if (this.is_pre == 1) {
  1695. if (this.patient.id <= 0) {
  1696. this.$message.error('没有选择患者')
  1697. this.loading = false
  1698. return
  1699. }
  1700. var arr = this.dialysisPrescription
  1701. const ParamsQuery = arr
  1702. // console.log('医嘱推送4', ParamsQuery)
  1703. ParamsQuery['patient'] = this.patient.id
  1704. ParamsQuery['record_date'] = this.record_date
  1705. // console.log(this.prescription)
  1706. let mode = ''
  1707. if (this.prescription.creater <= 0) {
  1708. mode = 1
  1709. } else {
  1710. mode = 2
  1711. }
  1712. ParamsQuery['mode'] = mode
  1713. console.log("paramsquery",ParamsQuery)
  1714. postPrescription(ParamsQuery).then(response => {
  1715. if (response.data.state == 0) {
  1716. this.$message.error(response.data.msg)
  1717. return false
  1718. } else {
  1719. this.$notify({
  1720. title: '成功',
  1721. message: '提交成功',
  1722. type: 'success',
  1723. duration: 2000
  1724. })
  1725. const prescription_resp = response.data.data.prescription
  1726. var prescription = this.prescription
  1727. for (var index in prescription_resp) {
  1728. // prescription[index] = prescription_resp[index];
  1729. this.$set(prescription, index, prescription_resp[index])
  1730. }
  1731. this.hide()
  1732. }
  1733. })
  1734. } else if (this.is_pre == 2) {
  1735. if (this.patient.id <= 0) {
  1736. this.$message.error('没有选择患者')
  1737. this.loading = false
  1738. return
  1739. }
  1740. var arr = this.dialysisPrescription
  1741. const ParamsQuery = arr
  1742. ParamsQuery['patient'] = this.patient.id
  1743. ParamsQuery['record_date'] = this.record_date
  1744. ParamsQuery['mode'] = 1
  1745. postSoulution(ParamsQuery).then(response => {
  1746. if (response.data.state == 0) {
  1747. this.$message.error(response.data.msg)
  1748. return false
  1749. } else {
  1750. this.$notify({
  1751. title: '成功',
  1752. message: '提交成功',
  1753. type: 'success',
  1754. duration: 2000
  1755. })
  1756. const prescription_resp = response.data.data.prescription
  1757. const solution_resp = response.data.data.solution
  1758. var prescription = this.prescription
  1759. var solution = this.solution
  1760. for (var index in prescription_resp) {
  1761. // prescription[index] = prescription_resp[index];
  1762. this.$set(prescription, index, prescription_resp[index])
  1763. }
  1764. for (var index in solution_resp) {
  1765. // solution[index] = solution_resp[index];
  1766. this.$set(solution, index, solution_resp[index])
  1767. }
  1768. this.hide()
  1769. }
  1770. })
  1771. }
  1772. }
  1773. this.isShowRemindAdvice = false
  1774. this.isVisibility = true
  1775. },
  1776. handleAdviceCancle() {
  1777. this.isShowRemindAdvice = false
  1778. this.isVisibility = true
  1779. },
  1780. getTime(val) {
  1781. return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
  1782. },
  1783. show(pre, schedual, last, his_is_open,is_advice_open) {
  1784. if (pre != undefined) {
  1785. if (pre.oxygen_uptake == 1) {
  1786. this.oxygenShow = true
  1787. }
  1788. if (pre.oxygen_uptake == 2) {
  1789. this.oxygenShow = false
  1790. this.prescription.oxygen_flow = ''
  1791. this.prescription.oxygen_time = ''
  1792. }
  1793. }
  1794. if (his_is_open == 1) {
  1795. this.is_open = 0
  1796. }
  1797. if(is_advice_open == 1){
  1798. this.is_open = 1
  1799. }
  1800. if(this.$store.getters.xt_user.org.id == 10101){
  1801. if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
  1802. var date = new Date(this.predialysis.created_time * 1000)
  1803. var year = date.getFullYear()
  1804. var month = date.getMonth() + 1
  1805. var day = date.getDate()
  1806. var hours = date.getHours()
  1807. var minites = date.getMinutes()
  1808. if (month < 10) {
  1809. month = '0' + month
  1810. }
  1811. if (day < 10) {
  1812. day = '0' + day
  1813. }
  1814. if (hours < 10) {
  1815. hours = '0' + hours
  1816. }
  1817. if (minites < 10) {
  1818. minites = '0' + minites
  1819. }
  1820. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  1821. } else {
  1822. var date = new Date()
  1823. var year = date.getFullYear()
  1824. var month = date.getMonth() + 1
  1825. var day = date.getDate()
  1826. var hours = date.getHours()
  1827. var minites = date.getMinutes()
  1828. if (month < 10) {
  1829. month = '0' + month
  1830. }
  1831. if (day < 10) {
  1832. day = '0' + day
  1833. }
  1834. if (hours < 10) {
  1835. hours = '0' + hours
  1836. }
  1837. if (minites < 10) {
  1838. minites = '0' + minites
  1839. }
  1840. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  1841. }
  1842. }else{
  1843. var date = new Date()
  1844. var year = date.getFullYear()
  1845. var month = date.getMonth() + 1
  1846. var day = date.getDate()
  1847. var hours = date.getHours()
  1848. var minites = date.getMinutes()
  1849. if (month < 10) {
  1850. month = '0' + month
  1851. }
  1852. if (day < 10) {
  1853. day = '0' + day
  1854. }
  1855. if (hours < 10) {
  1856. hours = '0' + hours
  1857. }
  1858. if (minites < 10) {
  1859. minites = '0' + minites
  1860. }
  1861. if (this.$store.getters.xt_user.org.id == 10016 || this.$store.getters.xt_user.org.id == 10121 || this.$store.getters.xt_user.org.id == 4 || this.$store.getters.xt_user.org.id == 10013 || this.$store.getters.xt_user.org.id == 10014 ) {
  1862. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  1863. }else if(this.$store.getters.xt_user.org.id == 10234 || this.$store.getters.xt_user.org.id == 9990){
  1864. if (schedual.schedule_type == 1) {
  1865. this.start_time = year + '-' + month + '-' + day + ' ' + '06:00'
  1866. } else if (schedual.schedule_type == 2) {
  1867. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  1868. } else if (schedual.schedule_type == 3) {
  1869. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  1870. }
  1871. } else {
  1872. if (schedual.schedule_type == 1) {
  1873. this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
  1874. } else if (schedual.schedule_type == 2) {
  1875. this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
  1876. } else if (schedual.schedule_type == 3) {
  1877. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  1878. }
  1879. }
  1880. }
  1881. if (pre.anticoagulant == 3) {
  1882. this.dialysisPrescription.anticoagulant = '低分子肝素'
  1883. }
  1884. // 入口
  1885. var pre = pre
  1886. this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
  1887. if (pre.id > 0) {
  1888. this.dialysisPrescription.mode_id = pre.mode_id
  1889. }
  1890. // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
  1891. // console.log('this.schedual', schedual.mode_id)
  1892. if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
  1893. this.zhiShow = true
  1894. this.huShow = true
  1895. this.totalShow = true
  1896. } else if (
  1897. pre.mode_id == 1 ||
  1898. pre.mode_id == 3 ||
  1899. pre.mode_id == 4 ||
  1900. pre.mode_id == 6 ||
  1901. pre.mode_id == 7 ||
  1902. pre.mode_id == 8 ||
  1903. pre.mode_id == 9 ||
  1904. pre.mode_id == 10 ||
  1905. pre.mode_id == 11 ||
  1906. pre.mode_id == 13 ||
  1907. pre.mode_id == 14 ||
  1908. pre.mode_id == 19
  1909. ) {
  1910. this.zhiShow = false
  1911. this.huShow = false
  1912. this.totalShow = false
  1913. }
  1914. this.pre = pre
  1915. // console.log("pre1", pre);
  1916. this.getPermission()
  1917. let last_weight_after = 0
  1918. let weight_before = 0
  1919. if (this.last_record == null) {
  1920. last_weight_after = 0
  1921. } else {
  1922. last_weight_after = this.last_record.weight_after
  1923. }
  1924. console.log("last2323232323232332",last)
  1925. if (this.predialysis == null || this.predialysis.id == 0) {
  1926. if (last != null) {
  1927. this.dialysisPrescription.niprocart = last.niprocart
  1928. this.dialysisPrescription.jms = last.jms
  1929. this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
  1930. this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
  1931. this.dialysisPrescription.hemoperfusion = last.hemoperfusion
  1932. this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
  1933. this.dialysisPrescription.filtryzer = last.filtryzer
  1934. this.dialysisPrescription.target_ktv = last.target_ktv
  1935. this.dialysisPrescription.dialyzers = last.dialyzers
  1936. this.dialysisPrescription.injector = last.injector
  1937. this.dialysisPrescription.bloodlines = last.bloodlines
  1938. this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
  1939. this.dialysisPrescription.package = last.package
  1940. this.dialysisPrescription.a_liquid = last.a_liquid
  1941. weight_before = 0
  1942. }
  1943. } else {
  1944. weight_before = this.predialysis.weight_before
  1945. }
  1946. if (weight_before > 0 && last_weight_after > 0) {
  1947. this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
  1948. 2
  1949. )
  1950. // console.log('体重增加', this.add_weight)
  1951. }
  1952. this.isVisibility = true
  1953. this.checkedCities = []
  1954. for (let i = 0; i < this.targetAdvices.length; i++) {
  1955. if (this.targetAdvices[i].isCheck == 1) {
  1956. this.checkedCities.push(this.targetAdvices[i].id)
  1957. }
  1958. }
  1959. },
  1960. hide() {
  1961. this.isVisibility = false
  1962. },
  1963. changeThisAnticoagulant: function(val) {
  1964. console.log("val",val)
  1965. var thismode = val
  1966. if (isNaN(thismode) || thismode <= 0) {
  1967. return false
  1968. }
  1969. if (val <= 2) {
  1970. this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
  1971. }
  1972. if (val > 2) {
  1973. this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
  1974. }
  1975. if ((this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 41 || this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 47) && val == 2) {
  1976. if(val == 2){
  1977. this.anticoagulant.shouji_unit = 'mg'
  1978. }else{
  1979. this.anticoagulant.shouji_unit = 'iu'
  1980. }
  1981. this.anticoagulant.weichi_unit = 'mg/h'
  1982. this.anticoagulant.zongliang_unit = 'mg'
  1983. }
  1984. if (this.$store.getters.xt_user.template_info.template_id == 27 && val == 4) {
  1985. this.anticoagulant.shouji_unit = 'ml'
  1986. this.anticoagulant.weichi_unit = 'ml'
  1987. this.anticoagulant.zongliang_unit = 'ml'
  1988. }
  1989. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.$store.getters.xt_user.template_info.template_id == 6 && this.dialysisPrescription.anticoagulant == 2){
  1990. this.dialysisPrescription.anticoagulant_zongliang = ""
  1991. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  1992. }
  1993. },
  1994. handleCommit: function() {
  1995. if(!this.isLoading){
  1996. if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
  1997. this.dialysisPrescription.anticoagulant = 3
  1998. }
  1999. if (this.dialysisPrescription.anticoagulant == 1) {
  2000. this.dialysisPrescription.anticoagulant_weichi = '0'
  2001. this.dialysisPrescription.anticoagulant_shouji = '0'
  2002. this.dialysisPrescription.anticoagulant_zongliang = '0'
  2003. }
  2004. if (this.$store.getters.xt_user.template_info.template_id == 6) {
  2005. if (this.dialysisPrescription.mode_id == 2) {
  2006. if (
  2007. this.dialysisPrescription.displace_liqui_part == 0 ||
  2008. this.dialysisPrescription.displace_liqui_part == -2 ||
  2009. this.dialysisPrescription.displace_liqui_value == 0 ||
  2010. this.dialysisPrescription.displace_liqui_value == ''
  2011. ) {
  2012. this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  2013. return
  2014. }
  2015. }
  2016. }
  2017. if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
  2018. this.dialysisPrescription.displace_liqui_part = 0
  2019. this.dialysisPrescription.displace_liqui_value = 0
  2020. }
  2021. this.is_pre = 1
  2022. if (this.prescription.id == 0) {
  2023. if (this.is_open == 0) {
  2024. if (this.patient.id <= 0) {
  2025. this.$message.error('没有选择患者')
  2026. this.loading = false
  2027. return
  2028. }
  2029. var arr = this.dialysisPrescription
  2030. const ParamsQuery = arr
  2031. // console.log('night', ParamsQuery)
  2032. ParamsQuery['patient'] = this.patient.id
  2033. ParamsQuery['record_date'] = this.record_date
  2034. ParamsQuery['mode'] = '1'
  2035. ParamsQuery['patient_id'] = this.patient.id
  2036. console.log('第一', ParamsQuery)
  2037. postPrescription(ParamsQuery).then(response => {
  2038. if (response.data.state == 0) {
  2039. this.$message.error(response.data.msg)
  2040. return false
  2041. } else {
  2042. this.$notify({
  2043. title: '成功',
  2044. message: '提交成功',
  2045. type: 'success',
  2046. duration: 2000
  2047. })
  2048. const prescription_resp = response.data.data.prescription
  2049. var prescription = this.prescription
  2050. for (var index in prescription_resp) {
  2051. // prescription[index] = prescription_resp[index];
  2052. this.$set(prescription, index, prescription_resp[index])
  2053. }
  2054. this.hide()
  2055. }
  2056. })
  2057. } else if (this.is_open == 1) {
  2058. if (this.targetAdvices.length > 0) {
  2059. // 弹框推送提醒
  2060. this.isShowRemindAdvice = true
  2061. this.isVisibility = false
  2062. } else {
  2063. if (this.patient.id <= 0) {
  2064. this.$message.error('没有选择患者')
  2065. this.loading = false
  2066. return
  2067. }
  2068. var arr = this.dialysisPrescription
  2069. const ParamsQuery = arr
  2070. // console.log('ParamsQuerytwo', ParamsQuery)
  2071. ParamsQuery['patient'] = this.patient.id
  2072. ParamsQuery['record_date'] = this.record_date
  2073. ParamsQuery['mode'] = '1'
  2074. ParamsQuery['patient_id'] = this.patient.id
  2075. console.log('第二')
  2076. postPrescription(ParamsQuery).then(response => {
  2077. if (response.data.state == 0) {
  2078. this.$message.error(response.data.msg)
  2079. return false
  2080. } else {
  2081. this.$notify({
  2082. title: '成功',
  2083. message: '提交成功',
  2084. type: 'success',
  2085. duration: 2000
  2086. })
  2087. const prescription_resp = response.data.data.prescription
  2088. var prescription = this.prescription
  2089. for (var index in prescription_resp) {
  2090. // prescription[index] = prescription_resp[index];
  2091. this.$set(prescription, index, prescription_resp[index])
  2092. }
  2093. this.hide()
  2094. }
  2095. })
  2096. }
  2097. } else if (this.is_open == 2) {
  2098. var date = new Date()
  2099. var hour =
  2100. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2101. var minute =
  2102. date.getMinutes() < 10
  2103. ? '0' + date.getMinutes()
  2104. : date.getMinutes()
  2105. if (this.waitUploadAdvices.length > 0) {
  2106. if (this.patient.id <= 0) {
  2107. this.$message.error('没有选择患者')
  2108. this.loading = false
  2109. return
  2110. }
  2111. var arr = this.dialysisPrescription
  2112. const ParamsQuery = arr
  2113. console.log('paramsquerythree', ParamsQuery)
  2114. ParamsQuery['patient'] = this.patient.id
  2115. ParamsQuery['record_date'] = this.record_date
  2116. ParamsQuery['mode'] = '1'
  2117. ParamsQuery['patient_id'] = this.patient.id
  2118. console.log('第三')
  2119. postPrescription(ParamsQuery).then(response => {
  2120. if (response.data.state == 0) {
  2121. this.$message.error(response.data.msg)
  2122. return false
  2123. } else {
  2124. this.$notify({
  2125. title: '成功',
  2126. message: '提交成功',
  2127. type: 'success',
  2128. duration: 2000
  2129. })
  2130. const params = {
  2131. advices: this.waitUploadAdvices,
  2132. advice_date: uParseTime(
  2133. this.$route.query.date,
  2134. '{y}-{m}-{d}'
  2135. ),
  2136. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2137. advice_type: this.waitUploadAdvices[0].advice_type,
  2138. parent_id: this.patient_id,
  2139. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  2140. start_time:
  2141. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2142. ' ' +
  2143. this.advice_start_time,
  2144. remark: ''
  2145. }
  2146. console.log('params--------', params)
  2147. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  2148. rs => {
  2149. var resp = rs.data
  2150. if (resp.state == 1) {
  2151. // this.doctorAdvices = resp.data.advices
  2152. this.$emit('advice')
  2153. } else {
  2154. }
  2155. }
  2156. )
  2157. const prescription_resp = response.data.data.prescription
  2158. var prescription = this.prescription
  2159. for (var index in prescription_resp) {
  2160. // prescription[index] = prescription_resp[index];
  2161. this.$set(prescription, index, prescription_resp[index])
  2162. }
  2163. this.hide()
  2164. }
  2165. })
  2166. } else {
  2167. if (this.patient.id <= 0) {
  2168. this.$message.error('没有选择患者')
  2169. this.loading = false
  2170. return
  2171. }
  2172. var arr = this.dialysisPrescription
  2173. const ParamsQuery = arr
  2174. // console.log('paramsqueryfour', ParamsQuery)
  2175. // console.log('创建者', this.prescription.creater)
  2176. // if (this.prescription.creater <= 0) {
  2177. // mode = 1;
  2178. // } else {
  2179. // mode = 2;
  2180. // }
  2181. ParamsQuery['patient'] = this.patient.id
  2182. ParamsQuery['record_date'] = this.record_date
  2183. // console.log(this.prescription);
  2184. console.log('第四')
  2185. ParamsQuery['patient_id'] = this.patient.id
  2186. postPrescription(ParamsQuery).then(response => {
  2187. if (response.data.state == 0) {
  2188. this.$message.error(response.data.msg)
  2189. return false
  2190. } else {
  2191. this.$notify({
  2192. title: '成功',
  2193. message: '提交成功',
  2194. type: 'success',
  2195. duration: 2000
  2196. })
  2197. const prescription_resp = response.data.data.prescription
  2198. // console.log("aaaaaaa", prescription_resp);
  2199. var prescription = this.prescription
  2200. for (var index in prescription_resp) {
  2201. // prescription[index] = prescription_resp[index];
  2202. this.$set(prescription, index, prescription_resp[index])
  2203. }
  2204. this.hide()
  2205. }
  2206. })
  2207. }
  2208. }
  2209. } else {
  2210. if (this.prescription.creater == 0) {
  2211. if (this.is_open == 0) {
  2212. if (this.patient.id <= 0) {
  2213. this.$message.error('没有选择患者')
  2214. this.loading = false
  2215. return
  2216. }
  2217. var arr = this.dialysisPrescription
  2218. // console.log('arr', arr)
  2219. const ParamsQuery = arr
  2220. // console.log('paramsqueryfive', ParamsQuery)
  2221. ParamsQuery['patient'] = this.patient.id
  2222. ParamsQuery['record_date'] = this.record_date
  2223. ParamsQuery['mode'] = '1'
  2224. ParamsQuery['patient_id'] = this.patient.id
  2225. console.log('第五')
  2226. postPrescription(ParamsQuery).then(response => {
  2227. if (response.data.state == 0) {
  2228. this.$message.error(response.data.msg)
  2229. return false
  2230. } else {
  2231. this.$notify({
  2232. title: '成功',
  2233. message: '提交成功',
  2234. type: 'success',
  2235. duration: 2000
  2236. })
  2237. const prescription_resp = response.data.data.prescription
  2238. var prescription = this.prescription
  2239. for (var index in prescription_resp) {
  2240. // prescription[index] = prescription_resp[index];
  2241. this.$set(prescription, index, prescription_resp[index])
  2242. }
  2243. this.hide()
  2244. }
  2245. })
  2246. } else if (this.is_open == 1) {
  2247. if (this.targetAdvices.length > 0) {
  2248. // 弹框推送提醒
  2249. this.isShowRemindAdvice = true
  2250. this.isVisibility = false
  2251. } else {
  2252. if (this.patient.id <= 0) {
  2253. this.$message.error('没有选择患者')
  2254. this.loading = false
  2255. return
  2256. }
  2257. var arr = this.dialysisPrescription
  2258. // console.log('arr', arr)
  2259. const ParamsQuery = arr
  2260. // console.log('ParamsQuerysix', ParamsQuery)
  2261. ParamsQuery['patient'] = this.patient.id
  2262. ParamsQuery['record_date'] = this.record_date
  2263. ParamsQuery['mode'] = '1'
  2264. console.log('第6')
  2265. ParamsQuery['patient_id'] = this.patient.id
  2266. postPrescription(ParamsQuery).then(response => {
  2267. if (response.data.state == 0) {
  2268. this.$message.error(response.data.msg)
  2269. return false
  2270. } else {
  2271. this.$notify({
  2272. title: '成功',
  2273. message: '提交成功',
  2274. type: 'success',
  2275. duration: 2000
  2276. })
  2277. const prescription_resp = response.data.data.prescription
  2278. var prescription = this.prescription
  2279. for (var index in prescription_resp) {
  2280. // prescription[index] = prescription_resp[index];
  2281. this.$set(prescription, index, prescription_resp[index])
  2282. }
  2283. this.hide()
  2284. }
  2285. })
  2286. }
  2287. } else if (this.is_open == 2) {
  2288. var date = new Date()
  2289. var hour =
  2290. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2291. var minute =
  2292. date.getMinutes() < 10
  2293. ? '0' + date.getMinutes()
  2294. : date.getMinutes()
  2295. if (this.waitUploadAdvices.length > 0) {
  2296. if (this.patient.id <= 0) {
  2297. this.$message.error('没有选择患者')
  2298. this.loading = false
  2299. return
  2300. }
  2301. var arr = this.dialysisPrescription
  2302. // console.log('arr', arr)
  2303. const ParamsQuery = arr
  2304. // console.log('parasmqueryseven', parasmqueryseven)
  2305. ParamsQuery['patient'] = this.patient.id
  2306. ParamsQuery['record_date'] = this.record_date
  2307. ParamsQuery['mode'] = '1'
  2308. console.log('第七')
  2309. ParamsQuery['patient_id'] = this.patient.id
  2310. postPrescription(ParamsQuery).then(response => {
  2311. if (response.data.state == 0) {
  2312. this.$message.error(response.data.msg)
  2313. return false
  2314. } else {
  2315. this.$notify({
  2316. title: '成功',
  2317. message: '提交成功',
  2318. type: 'success',
  2319. duration: 2000
  2320. })
  2321. const params = {
  2322. advices: this.waitUploadAdvices,
  2323. advice_date: uParseTime(
  2324. this.$route.query.date,
  2325. '{y}-{m}-{d}'
  2326. ),
  2327. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2328. advice_type: this.waitUploadAdvices[0].advice_type,
  2329. parent_id: this.patient_id,
  2330. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  2331. start_time:
  2332. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2333. ' ' +
  2334. hour +
  2335. ':' +
  2336. minute,
  2337. remark: ''
  2338. }
  2339. CreateGroupAdvice(
  2340. this.$route.query.patient_id,
  2341. 0,
  2342. params
  2343. ).then(rs => {
  2344. var resp = rs.data
  2345. if (resp.state == 1) {
  2346. // this.doctorAdvices = resp.data.advices
  2347. this.$emit('advice')
  2348. } else {
  2349. }
  2350. })
  2351. const prescription_resp = response.data.data.prescription
  2352. var prescription = this.prescription
  2353. for (var index in prescription_resp) {
  2354. // prescription[index] = prescription_resp[index];
  2355. this.$set(prescription, index, prescription_resp[index])
  2356. }
  2357. this.hide()
  2358. }
  2359. })
  2360. } else {
  2361. if (this.patient.id <= 0) {
  2362. this.$message.error('没有选择患者')
  2363. this.loading = false
  2364. return
  2365. }
  2366. var arr = this.dialysisPrescription
  2367. // console.log('arr', arr)
  2368. const ParamsQuery = arr
  2369. // console.log('eight', ParamsQuery)
  2370. ParamsQuery['patient'] = this.patient.id
  2371. ParamsQuery['record_date'] = this.record_date
  2372. ParamsQuery['mode'] = '1'
  2373. ParamsQuery['patient_id'] = this.patient.id
  2374. console.log('第八')
  2375. postPrescription(ParamsQuery).then(response => {
  2376. if (response.data.state == 0) {
  2377. this.$message.error(response.data.msg)
  2378. return false
  2379. } else {
  2380. this.$notify({
  2381. title: '成功',
  2382. message: '提交成功',
  2383. type: 'success',
  2384. duration: 2000
  2385. })
  2386. const prescription_resp = response.data.data.prescription
  2387. var prescription = this.prescription
  2388. for (var index in prescription_resp) {
  2389. // prescription[index] = prescription_resp[index];
  2390. this.$set(prescription, index, prescription_resp[index])
  2391. }
  2392. this.hide()
  2393. }
  2394. })
  2395. }
  2396. }
  2397. } else {
  2398. if (this.patient.id <= 0) {
  2399. this.$message.error('没有选择患者')
  2400. this.loading = false
  2401. return
  2402. }
  2403. var arr = this.dialysisPrescription
  2404. // console.log('arr', arr)
  2405. const ParamsQuery = arr
  2406. // console.log('night', ParamsQuery)
  2407. ParamsQuery['patient'] = this.patient.id
  2408. ParamsQuery['record_date'] = this.record_date
  2409. ParamsQuery['mode'] = '2'
  2410. ParamsQuery['patient_id'] = this.patient.id
  2411. if (
  2412. this.$store.getters.xt_user.user.id !=
  2413. this.dialysisPrescription.creater
  2414. ) {
  2415. ParamsQuery['mode'] = '3'
  2416. }
  2417. console.log('第九',ParamsQuery)
  2418. postPrescription(ParamsQuery).then(response => {
  2419. if (response.data.state == 0) {
  2420. this.$message.error(response.data.msg)
  2421. return false
  2422. } else {
  2423. this.$notify({
  2424. title: '成功',
  2425. message: '提交成功',
  2426. type: 'success',
  2427. duration: 2000
  2428. })
  2429. const prescription_resp = response.data.data.prescription
  2430. var prescription = this.prescription
  2431. for (var index in prescription_resp) {
  2432. // prescription[index] = prescription_resp[index];
  2433. this.$set(prescription, index, prescription_resp[index])
  2434. }
  2435. this.hide()
  2436. }
  2437. })
  2438. }
  2439. }
  2440. }
  2441. },
  2442. handleCancle: function() {
  2443. this.hide()
  2444. },
  2445. handleSolution: function() {
  2446. if(!this.isLoading){
  2447. if (this.dialysisPrescription.anticoagulant == 1) {
  2448. this.dialysisPrescription.anticoagulant_weichi = '0'
  2449. this.dialysisPrescription.anticoagulant_shouji = '0'
  2450. this.dialysisPrescription.anticoagulant_zongliang = '0'
  2451. }
  2452. if (this.$store.getters.xt_user.template_info.template_id == 6) {
  2453. if (this.dialysisPrescription.mode_id == 2) {
  2454. if (
  2455. this.dialysisPrescription.displace_liqui_part == 0 ||
  2456. this.dialysisPrescription.displace_liqui_part == -2 ||
  2457. this.dialysisPrescription.displace_liqui_value == 0 ||
  2458. this.dialysisPrescription.displace_liqui_value == ''
  2459. ) {
  2460. this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  2461. return
  2462. }
  2463. }
  2464. if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
  2465. this.dialysisPrescription.displace_liqui_part == 0
  2466. this.dialysisPrescription.displace_liqui_value == 0
  2467. }
  2468. }
  2469. this.is_pre = 2
  2470. if (this.prescription.id == 0) {
  2471. if (this.is_open == 0) {
  2472. if (this.patient.id <= 0) {
  2473. this.$message.error('没有选择患者')
  2474. this.loading = false
  2475. return
  2476. }
  2477. console.log("预充了2",this.dialysisPrescription.pre_impulse)
  2478. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  2479. var arr = this.dialysisPrescription
  2480. const ParamsQuery = arr
  2481. ParamsQuery['patient'] = this.patient.id
  2482. ParamsQuery['record_date'] = this.record_date
  2483. ParamsQuery['mode'] = '1'
  2484. postSoulution(ParamsQuery).then(response => {
  2485. if (response.data.state == 0) {
  2486. this.$message.error(response.data.msg)
  2487. return false
  2488. } else {
  2489. this.$notify({
  2490. title: '成功',
  2491. message: '提交成功',
  2492. type: 'success',
  2493. duration: 2000
  2494. })
  2495. const prescription_resp = response.data.data.prescription
  2496. const solution_resp = response.data.data.solution
  2497. var prescription = this.prescription
  2498. var solution = this.solution
  2499. for (var index in prescription_resp) {
  2500. // prescription[index] = prescription_resp[index];
  2501. this.$set(prescription, index, prescription_resp[index])
  2502. }
  2503. for (var index in solution_resp) {
  2504. // solution[index] = solution_resp[index];
  2505. this.$set(solution, index, solution_resp[index])
  2506. }
  2507. this.hide()
  2508. }
  2509. })
  2510. } else if (this.is_open == 1) {
  2511. if (this.targetAdvices.length > 0) {
  2512. // 弹框推送提
  2513. this.isShowRemindAdvice = true
  2514. this.isVisibility = false
  2515. } else {
  2516. if (this.patient.id <= 0) {
  2517. this.$message.error('没有选择患者')
  2518. this.loading = false
  2519. return
  2520. }
  2521. console.log("预充了3",this.dialysisPrescription.pre_impulse)
  2522. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  2523. var arr = this.dialysisPrescription
  2524. console.log('arr3', arr)
  2525. const ParamsQuery = arr
  2526. // console.log('长期处方2', ParamsQuery)
  2527. ParamsQuery['patient'] = this.patient.id
  2528. ParamsQuery['record_date'] = this.record_date
  2529. ParamsQuery['mode'] = '1'
  2530. postSoulution(ParamsQuery).then(response => {
  2531. if (response.data.state == 0) {
  2532. this.$message.error(response.data.msg)
  2533. return false
  2534. } else {
  2535. this.$notify({
  2536. title: '成功',
  2537. message: '提交成功',
  2538. type: 'success',
  2539. duration: 2000
  2540. })
  2541. const prescription_resp = response.data.data.prescription
  2542. const solution_resp = response.data.data.solution
  2543. var prescription = this.prescription
  2544. var solution = this.solution
  2545. for (var index in prescription_resp) {
  2546. // prescription[index] = prescription_resp[index];
  2547. this.$set(prescription, index, prescription_resp[index])
  2548. }
  2549. for (var index in solution_resp) {
  2550. // solution[index] = solution_resp[index];
  2551. this.$set(solution, index, solution_resp[index])
  2552. }
  2553. this.hide()
  2554. }
  2555. })
  2556. }
  2557. } else if (this.is_open == 2) {
  2558. var date = new Date()
  2559. var hour =
  2560. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2561. var minute =
  2562. date.getMinutes() < 10
  2563. ? '0' + date.getMinutes()
  2564. : date.getMinutes()
  2565. if (this.waitUploadAdvices.length > 0) {
  2566. // if (this.patient.id <= 0) {
  2567. // this.$message.error('没有选择患者')
  2568. // this.loading = false
  2569. // return
  2570. // }
  2571. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  2572. var arr = this.dialysisPrescription
  2573. const ParamsQuery = arr
  2574. // console.log('长期处方3', ParamsQuery)
  2575. ParamsQuery['patient'] = this.patient.id
  2576. ParamsQuery['record_date'] = this.record_date
  2577. // console.log(this.prescription)
  2578. ParamsQuery['mode'] = '1'
  2579. postPrescription(ParamsQuery).then(response => {
  2580. if (response.data.state == 0) {
  2581. this.$message.error(response.data.msg)
  2582. return false
  2583. } else {
  2584. this.$notify({
  2585. title: '成功',
  2586. message: '提交成功',
  2587. type: 'success',
  2588. duration: 2000
  2589. })
  2590. const params = {
  2591. advices: this.waitUploadAdvices,
  2592. advice_date: uParseTime(
  2593. this.$route.query.date,
  2594. '{y}-{m}-{d}'
  2595. ),
  2596. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2597. advice_type: this.waitUploadAdvices[0].advice_type,
  2598. parent_id: this.patient_id,
  2599. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  2600. start_time:
  2601. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2602. ' ' +
  2603. hour +
  2604. ':' +
  2605. minute,
  2606. remark: ''
  2607. }
  2608. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  2609. rs => {
  2610. var resp = rs.data
  2611. if (resp.state == 1) {
  2612. // this.doctorAdvices = resp.data.advices
  2613. this.$emit('advice')
  2614. } else {
  2615. }
  2616. }
  2617. )
  2618. const prescription_resp = response.data.data.prescription
  2619. var prescription = this.prescription
  2620. for (var index in prescription_resp) {
  2621. // prescription[index] = prescription_resp[index];
  2622. this.$set(prescription, index, prescription_resp[index])
  2623. }
  2624. this.hide()
  2625. }
  2626. })
  2627. } else {
  2628. if (this.patient.id <= 0) {
  2629. this.$message.error('没有选择患者')
  2630. this.loading = false
  2631. return
  2632. }
  2633. console.log("预充了5",this.dialysisPrescription.pre_impulse)
  2634. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  2635. var arr = this.dialysisPrescription
  2636. console.log('arr5', arr)
  2637. const ParamsQuery = arr
  2638. // console.log('长期处方5', ParamsQuery)
  2639. ParamsQuery['patient'] = this.patient.id
  2640. ParamsQuery['record_date'] = this.record_date
  2641. ParamsQuery['mode'] = '1'
  2642. postSoulution(ParamsQuery).then(response => {
  2643. if (response.data.state == 0) {
  2644. this.$message.error(response.data.msg)
  2645. return false
  2646. } else {
  2647. this.$notify({
  2648. title: '成功',
  2649. message: '提交成功',
  2650. type: 'success',
  2651. duration: 2000
  2652. })
  2653. const prescription_resp = response.data.data.prescription
  2654. const solution_resp = response.data.data.solution
  2655. var prescription = this.prescription
  2656. var solution = this.solution
  2657. for (var index in prescription_resp) {
  2658. // prescription[index] = prescription_resp[index];
  2659. this.$set(prescription, index, prescription_resp[index])
  2660. }
  2661. for (var index in solution_resp) {
  2662. // solution[index] = solution_resp[index];
  2663. this.$set(solution, index, solution_resp[index])
  2664. }
  2665. this.hide()
  2666. }
  2667. })
  2668. }
  2669. }
  2670. } else {
  2671. if (this.prescription.creater == 0) {
  2672. if (this.is_open == 0) {
  2673. if (this.patient.id <= 0) {
  2674. this.$message.error('没有选择患者')
  2675. this.loading = false
  2676. return
  2677. }
  2678. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  2679. var arr = this.dialysisPrescription
  2680. console.log('arr', arr)
  2681. const ParamsQuery = arr
  2682. // console.log('长期处方6', ParamsQuery)
  2683. ParamsQuery['patient'] = this.patient.id
  2684. ParamsQuery['record_date'] = this.record_date
  2685. ParamsQuery['mode'] = '1'
  2686. postSoulution(ParamsQuery).then(response => {
  2687. if (response.data.state == 0) {
  2688. this.$message.error(response.data.msg)
  2689. return false
  2690. } else {
  2691. this.$notify({
  2692. title: '成功',
  2693. message: '提交成功',
  2694. type: 'success',
  2695. duration: 2000
  2696. })
  2697. const prescription_resp = response.data.data.prescription
  2698. const solution_resp = response.data.data.solution
  2699. var prescription = this.prescription
  2700. var solution = this.solution
  2701. for (var index in prescription_resp) {
  2702. // prescription[index] = prescription_resp[index];
  2703. this.$set(prescription, index, prescription_resp[index])
  2704. }
  2705. for (var index in solution_resp) {
  2706. // solution[index] = solution_resp[index];
  2707. this.$set(solution, index, solution_resp[index])
  2708. }
  2709. this.hide()
  2710. }
  2711. })
  2712. } else if (this.is_open == 1) {
  2713. if (this.targetAdvices.length > 0) {
  2714. // 弹框推送提醒
  2715. this.isShowRemindAdvice = true
  2716. this.isVisibility = false
  2717. } else {
  2718. if (this.patient.id <= 0) {
  2719. this.$message.error('没有选择患者')
  2720. this.loading = false
  2721. return
  2722. }
  2723. console.log("预充了7",this.dialysisPrescription.pre_impulse)
  2724. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  2725. var arr = this.dialysisPrescription
  2726. // console.log('arr', arr)
  2727. const ParamsQuery = arr
  2728. console.log('长期处方7', ParamsQuery)
  2729. ParamsQuery['patient'] = this.patient.id
  2730. ParamsQuery['record_date'] = this.record_date
  2731. ParamsQuery['mode'] = '1'
  2732. postSoulution(ParamsQuery).then(response => {
  2733. if (response.data.state == 0) {
  2734. this.$message.error(response.data.msg)
  2735. return false
  2736. } else {
  2737. this.$notify({
  2738. title: '成功',
  2739. message: '提交成功',
  2740. type: 'success',
  2741. duration: 2000
  2742. })
  2743. const prescription_resp = response.data.data.prescription
  2744. const solution_resp = response.data.data.solution
  2745. var prescription = this.prescription
  2746. var solution = this.solution
  2747. for (var index in prescription_resp) {
  2748. // prescription[index] = prescription_resp[index];
  2749. this.$set(prescription, index, prescription_resp[index])
  2750. }
  2751. for (var index in solution_resp) {
  2752. // solution[index] = solution_resp[index];
  2753. this.$set(solution, index, solution_resp[index])
  2754. }
  2755. this.hide()
  2756. }
  2757. })
  2758. }
  2759. } else if (this.is_open == 2) {
  2760. var date = new Date()
  2761. var hour =
  2762. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2763. var minute =
  2764. date.getMinutes() < 10
  2765. ? '0' + date.getMinutes()
  2766. : date.getMinutes()
  2767. if (this.waitUploadAdvices.length > 0) {
  2768. if (this.patient.id <= 0) {
  2769. this.$message.error('没有选择患者')
  2770. this.loading = false
  2771. return
  2772. }
  2773. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  2774. var arr = this.dialysisPrescription
  2775. const ParamsQuery = arr
  2776. // console.log('长期处方8', ParamsQuery)
  2777. ParamsQuery['patient'] = this.patient.id
  2778. ParamsQuery['record_date'] = this.record_date
  2779. ParamsQuery['mode'] = '1'
  2780. postSoulution(ParamsQuery).then(response => {
  2781. if (response.data.state == 0) {
  2782. this.$message.error(response.data.msg)
  2783. return false
  2784. } else {
  2785. this.$notify({
  2786. title: '成功',
  2787. message: '提交成功',
  2788. type: 'success',
  2789. duration: 2000
  2790. })
  2791. const params = {
  2792. advices: this.waitUploadAdvices,
  2793. advice_date: uParseTime(
  2794. this.$route.query.date,
  2795. '{y}-{m}-{d}'
  2796. ),
  2797. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  2798. advice_type: this.waitUploadAdvices[0].advice_type,
  2799. parent_id: this.patient_id,
  2800. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
  2801. start_time:
  2802. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  2803. ' ' +
  2804. hour +
  2805. ':' +
  2806. minute,
  2807. remark: ''
  2808. }
  2809. CreateGroupAdvice(
  2810. this.$route.query.patient_id,
  2811. 0,
  2812. params
  2813. ).then(rs => {
  2814. var resp = rs.data
  2815. if (resp.state == 1) {
  2816. // this.doctorAdvices = resp.data.advices
  2817. this.$emit('advice')
  2818. } else {
  2819. }
  2820. })
  2821. const prescription_resp = response.data.data.prescription
  2822. const solution_resp = response.data.data.solution
  2823. var prescription = this.prescription
  2824. var solution = this.solution
  2825. for (var index in prescription_resp) {
  2826. // prescription[index] = prescription_resp[index];
  2827. this.$set(prescription, index, prescription_resp[index])
  2828. }
  2829. for (var index in solution_resp) {
  2830. // solution[index] = solution_resp[index];
  2831. this.$set(solution, index, solution_resp[index])
  2832. }
  2833. this.hide()
  2834. }
  2835. })
  2836. } else {
  2837. if (this.patient.id <= 0) {
  2838. this.$message.error('没有选择患者')
  2839. this.loading = false
  2840. return
  2841. }
  2842. console.log("预充了99999",this.dialysisPrescription.pre_impulse)
  2843. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  2844. var arr = this.dialysisPrescription
  2845. console.log('arr', arr)
  2846. const ParamsQuery = arr
  2847. // console.log('长期处方9', ParamsQuery)
  2848. ParamsQuery['patient'] = this.patient.id
  2849. ParamsQuery['record_date'] = this.record_date
  2850. ParamsQuery['mode'] = '1'
  2851. postSoulution(ParamsQuery).then(response => {
  2852. if (response.data.state == 0) {
  2853. this.$message.error(response.data.msg)
  2854. return false
  2855. } else {
  2856. this.$notify({
  2857. title: '成功',
  2858. message: '提交成功',
  2859. type: 'success',
  2860. duration: 2000
  2861. })
  2862. const prescription_resp = response.data.data.prescription
  2863. const solution_resp = response.data.data.solution
  2864. var prescription = this.prescription
  2865. var solution = this.solution
  2866. for (var index in prescription_resp) {
  2867. // prescription[index] = prescription_resp[index];
  2868. this.$set(prescription, index, prescription_resp[index])
  2869. }
  2870. for (var index in solution_resp) {
  2871. // solution[index] = solution_resp[index];
  2872. this.$set(solution, index, solution_resp[index])
  2873. }
  2874. this.hide()
  2875. }
  2876. })
  2877. }
  2878. }
  2879. } else {
  2880. if (this.patient.id <= 0) {
  2881. this.$message.error('没有选择患者')
  2882. this.loading = false
  2883. return
  2884. }
  2885. console.log("预充了1",this.dialysisPrescription.pre_impulse)
  2886. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  2887. var arr = this.dialysisPrescription
  2888. console.log('arr12333223', arr)
  2889. const ParamsQuery = arr
  2890. ParamsQuery['patient'] = this.patient.id
  2891. ParamsQuery['record_date'] = this.record_date
  2892. ParamsQuery['mode'] = '1'
  2893. console.log('长期处方10', ParamsQuery)
  2894. postSoulution(ParamsQuery).then(response => {
  2895. if (response.data.state == 0) {
  2896. this.$message.error(response.data.msg)
  2897. return false
  2898. } else {
  2899. this.$notify({
  2900. title: '成功',
  2901. message: '提交成功',
  2902. type: 'success',
  2903. duration: 2000
  2904. })
  2905. const prescription_resp = response.data.data.prescription
  2906. const solution_resp = response.data.data.solution
  2907. var prescription = this.prescription
  2908. var solution = this.solution
  2909. for (var index in prescription_resp) {
  2910. // prescription[index] = prescription_resp[index];
  2911. this.$set(prescription, index, prescription_resp[index])
  2912. }
  2913. for (var index in solution_resp) {
  2914. // solution[index] = solution_resp[index];
  2915. this.$set(solution, index, solution_resp[index])
  2916. }
  2917. this.hide()
  2918. }
  2919. })
  2920. }
  2921. }
  2922. }
  2923. },
  2924. isShows(name) {
  2925. var filedList = store.getters.xt_user.fileds
  2926. for (let i = 0; i < filedList.length; i++) {
  2927. if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  2928. return true
  2929. }
  2930. }
  2931. return false
  2932. },
  2933. getDoctorName(doctor_id) {
  2934. for (let i = 0; i < this.admin_users.length; i++) {
  2935. if (this.admin_users[i].id == doctor_id) {
  2936. return this.admin_users[i].name
  2937. }
  2938. }
  2939. },
  2940. getContent(val) {
  2941. let prescribing_number = ''
  2942. let single_dose = ''
  2943. let advice_desc = ''
  2944. if (val.prescribing_number > 0) {
  2945. prescribing_number =
  2946. val.prescribing_number + val.prescribing_number_unit
  2947. }
  2948. if (val.single_dose > 0) {
  2949. single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
  2950. }
  2951. if (val.advice_desc > 0 || val.advice_desc.length > 0) {
  2952. advice_desc = val.advice_desc + val.drug_spec_unit
  2953. }
  2954. let name = ''
  2955. if (val.child.length > 0) {
  2956. for (let i = 0; i < val.child.length; i++) {
  2957. if (val.child[i].prescribing_number > 0) {
  2958. val.child[i]['presc'] =
  2959. val.child[i].prescribing_number +
  2960. val.child[i].prescribing_number_unit
  2961. } else {
  2962. val.child[i]['presc'] = ''
  2963. }
  2964. if (val.child[i].single_dose > 0) {
  2965. val.child[i]['single'] =
  2966. ' ' +
  2967. ' 单次用量 ' +
  2968. ' ' +
  2969. val.child[i].single_dose +
  2970. val.child[i].single_dose_unit
  2971. } else {
  2972. val.child[i]['single'] = ''
  2973. }
  2974. name =
  2975. name +
  2976. '▲' +
  2977. val.child[i].advice_name +
  2978. '' +
  2979. val.child[i].advice_desc +
  2980. val.child[i].drug_spec_unit +
  2981. val.child[i].presc +
  2982. val.child[i].single
  2983. }
  2984. return (
  2985. val.advice_name +
  2986. ' ' +
  2987. advice_desc +
  2988. ' ' +
  2989. val.drug_spec_unit +
  2990. prescribing_number +
  2991. ' ' +
  2992. single_dose +
  2993. ' ' +
  2994. ' ' +
  2995. val.delivery_way +
  2996. ' ' +
  2997. val.execution_frequency +
  2998. val.remark +
  2999. name
  3000. )
  3001. } else {
  3002. return (
  3003. val.advice_name +
  3004. ' ' +
  3005. advice_desc +
  3006. prescribing_number +
  3007. ' ' +
  3008. single_dose +
  3009. ' ' +
  3010. ' ' +
  3011. val.delivery_way +
  3012. ' ' +
  3013. val.execution_frequency +
  3014. val.remark
  3015. )
  3016. }
  3017. },
  3018. changePrescription(id) {
  3019. console.log("id233223232323232323",id)
  3020. if(id != 2 && id!=5 && id!= 12){
  3021. this.dialysisPrescription.displace_liqui_value = ""
  3022. this.dialysisPrescription.displace_liqui_part = ""
  3023. }
  3024. const ParamsQuery = {}
  3025. ParamsQuery['patient_id'] = this.$route.query.patient_id
  3026. ParamsQuery['mode_id'] = id
  3027. GetSolution(ParamsQuery).then(response => {
  3028. if (response.data.state == 0) {
  3029. this.$message.error(response.data.msg)
  3030. return false
  3031. } else {
  3032. console.log('切换数据', response.data.data.solution)
  3033. this.$message.success('切换成功')
  3034. if (response.data.data.solution != null) {
  3035. for (const key in response.data.data.solution) {
  3036. // 长期处方不为空
  3037. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3038. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3039. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
  3040. this.dialysisPrescription[key] =
  3041. response.data.data.solution[key]
  3042. }
  3043. }
  3044. } else {
  3045. if (response.data.data.prescription != null) {
  3046. // 临时处方不为空
  3047. for (const key in response.data.data.prescription) {
  3048. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3049. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3050. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
  3051. this.dialysisPrescription[key] =
  3052. response.data.data.prescription[key]
  3053. }
  3054. }
  3055. } else if (response.data.data.system_prescription != null) {
  3056. // 系统处方不为空
  3057. for (const key in response.data.data.system_prescription) {
  3058. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3059. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3060. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
  3061. this.dialysisPrescription[key] =
  3062. response.data.data.system_prescription[key]
  3063. }
  3064. }
  3065. } else {
  3066. for (const key in this.dialysisPrescription) {
  3067. // 临时处方为空
  3068. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  3069. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  3070. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid') {
  3071. this.dialysisPrescription[key] = ''
  3072. }
  3073. }
  3074. this.dialysisPrescription.mode_id = id
  3075. }
  3076. }
  3077. }
  3078. if (
  3079. this.dialysisPrescription.dialysis_duration_hour === '' ||
  3080. this.dialysisPrescription.dialysis_duration_minute === ''
  3081. ) {
  3082. this.timeValue = ''
  3083. this.time = '03:00'
  3084. } else {
  3085. this.timeValue =
  3086. this.dialysisPrescription.dialysis_duration_hour +
  3087. '小时' +
  3088. this.dialysisPrescription.dialysis_duration_minute +
  3089. '分钟'
  3090. this.time =
  3091. (this.dialysisPrescription.dialysis_duration_hour > 10
  3092. ? this.dialysisPrescription.dialysis_duration_hour
  3093. : '0' + this.dialysisPrescription.dialysis_duration_hour) +
  3094. ':' +
  3095. (this.dialysisPrescription.dialysis_duration_minute > 10
  3096. ? this.dialysisPrescription.dialysis_duration_minute
  3097. : '0' + this.dialysisPrescription.dialysis_duration_minute)
  3098. }
  3099. })
  3100. if (
  3101. id === 1 ||
  3102. id === 3 ||
  3103. id === 4 ||
  3104. id === 6 ||
  3105. id === 7 ||
  3106. id === 8 ||
  3107. id === 9 ||
  3108. id === 10 ||
  3109. id === 11 ||
  3110. id === 13 ||
  3111. id === 14 ||
  3112. id === 15 ||
  3113. id === 16 ||
  3114. id === 19
  3115. ) {
  3116. this.zhiShow = false
  3117. this.huShow = false
  3118. this.totalShow = false
  3119. } else {
  3120. this.zhiShow = true
  3121. this.huShow = true
  3122. this.totalShow = true
  3123. }
  3124. },
  3125. handlePatientInfo() {
  3126. this.isVisibility = false
  3127. this.msgtip_visibility = true
  3128. },
  3129. handlePatientInfoOne(){
  3130. this.isVisibility = false
  3131. this.startVisibility = true
  3132. },
  3133. cancleMsg() {
  3134. this.isVisibility = true
  3135. this.msgtip_visibility = false
  3136. },
  3137. cancleMsgOne(){
  3138. this.isVisibility = true
  3139. this.startVisibility = false
  3140. },
  3141. getPermission() {
  3142. request
  3143. .get('/api/func_per/get', {
  3144. params: {
  3145. create_url: '/api/dialysis/prescription?mode=1',
  3146. modify_url: '/api/dialysis/prescription?mode=2',
  3147. modify_other_url: '/api/dialysis/prescription?mode=3',
  3148. module: 1
  3149. }
  3150. })
  3151. .then(res => {
  3152. // console.log(res)
  3153. // console.log('predialysis.creater', this.pre.creater)
  3154. // console.log('admin.id', this.$store.getters.xt_user.user.id)
  3155. if (res.data.state == 0) {
  3156. this.hasPermission = false
  3157. } else if (res.data.state == 1) {
  3158. if (this.pre.id != '' && this.pre.creater != 0) {
  3159. // 有数据
  3160. if (this.pre.creater == this.$store.getters.xt_user.user.id) {
  3161. // 创建人是自己
  3162. if (res.data.data.is_has_modify == false) {
  3163. this.hasPermission = false
  3164. this.showTxt = '你没有修改透析处方权限'
  3165. }
  3166. } else {
  3167. // 创建人不是自己
  3168. if (res.data.data.is_has_modify_other == false) {
  3169. this.hasPermission = false
  3170. this.showTxt = '你没有修改他人透析处方权限'
  3171. }
  3172. }
  3173. } else if (this.pre.id == '' || this.pre.creater == 0) {
  3174. if (res.data.data.is_has_create == false) {
  3175. this.hasPermission = false
  3176. this.showTxt = '你没有新增透析处方权限'
  3177. }
  3178. }
  3179. }
  3180. })
  3181. },
  3182. unique(arr) {
  3183. const res = new Map()
  3184. return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
  3185. },
  3186. },
  3187. watch: {
  3188. 'dialysisPrescription.dialysis_duration_hour': function() {
  3189. let dialysis_duration_minute = 0
  3190. let dialysis_duration_hour = 0
  3191. let duration = 0
  3192. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  3193. dialysis_duration_minute = 0
  3194. } else {
  3195. dialysis_duration_minute = this.dialysisPrescription
  3196. .dialysis_duration_minute
  3197. }
  3198. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  3199. dialysis_duration_hour = 0
  3200. } else {
  3201. dialysis_duration_hour = this.dialysisPrescription
  3202. .dialysis_duration_hour
  3203. }
  3204. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  3205. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
  3206. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  3207. this.dialysisPrescription.anticoagulant_zongliang = ''
  3208. }
  3209. },
  3210. 'dialysisPrescription.dialysis_duration_minute': function() {
  3211. let dialysis_duration_minute = 0
  3212. let dialysis_duration_hour = 0
  3213. let duration = 0
  3214. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  3215. dialysis_duration_minute = 0
  3216. } else {
  3217. dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
  3218. }
  3219. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  3220. dialysis_duration_hour = 0
  3221. } else {
  3222. dialysis_duration_hour = this.dialysisPrescription
  3223. .dialysis_duration_hour
  3224. }
  3225. duration =
  3226. parseFloat(dialysis_duration_hour) +
  3227. parseFloat(dialysis_duration_minute) / 60
  3228. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
  3229. this.dialysisPrescription.anticoagulant_weichi
  3230. )
  3231. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  3232. this.dialysisPrescription.anticoagulant_zongliang = ''
  3233. }
  3234. },
  3235. 'dialysisPrescription.anticoagulant_shouji': function() {
  3236. let dialysis_duration_minute = 0
  3237. let dialysis_duration_hour = 0
  3238. let duration = 0
  3239. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  3240. dialysis_duration_minute = 0
  3241. } else {
  3242. dialysis_duration_minute = this.dialysisPrescription
  3243. .dialysis_duration_minute
  3244. }
  3245. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  3246. dialysis_duration_hour = 0
  3247. } else {
  3248. dialysis_duration_hour = this.dialysisPrescription
  3249. .dialysis_duration_hour
  3250. }
  3251. duration =
  3252. parseFloat(dialysis_duration_hour) +
  3253. parseFloat(dialysis_duration_minute) / 60
  3254. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  3255. 1,
  3256. this.dialysisPrescription.anticoagulant_shouji,
  3257. duration,
  3258. this.dialysisPrescription.anticoagulant_weichi
  3259. )
  3260. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  3261. this.dialysisPrescription.anticoagulant_zongliang = ''
  3262. }
  3263. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  3264. this.dialysisPrescription.anticoagulant_zongliang = ""
  3265. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  3266. }
  3267. },
  3268. 'dialysisPrescription.anticoagulant_weichi': function() {
  3269. let dialysis_duration_minute = 0
  3270. let dialysis_duration_hour = 0
  3271. let duration = 0
  3272. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  3273. dialysis_duration_minute = 0
  3274. } else {
  3275. dialysis_duration_minute = this.dialysisPrescription
  3276. .dialysis_duration_minute
  3277. }
  3278. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  3279. dialysis_duration_hour = 0
  3280. } else {
  3281. dialysis_duration_hour = this.dialysisPrescription
  3282. .dialysis_duration_hour
  3283. }
  3284. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  3285. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi)
  3286. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  3287. this.dialysisPrescription.anticoagulant_zongliang = ''
  3288. }
  3289. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  3290. this.dialysisPrescription.anticoagulant_zongliang = ""
  3291. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  3292. }
  3293. },
  3294. 'prescription.id': {
  3295. immediate: true,
  3296. deep: true,
  3297. handler(oldVal, newVal) {
  3298. if (oldVal == newVal) {
  3299. for (var index in this.dialysisPrescription) {
  3300. this.dialysisPrescription[index] = this.prescription[index]
  3301. }
  3302. if (this.prescription['dialysate_formulation'] == 0) {
  3303. this.dialysisPrescription['dialysate_formulation'] = ''
  3304. }
  3305. if (this.prescription['anticoagulant'] == 0) {
  3306. this.dialysisPrescription['anticoagulant'] = ''
  3307. }
  3308. if (this.prescription['dialysis_duration_hour'] == 0) {
  3309. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3310. }
  3311. if (this.prescription['dialysis_duration_minute'] == 0) {
  3312. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3313. }
  3314. if (this.prescription['blood_flow_volume'] == 0) {
  3315. this.dialysisPrescription['blood_flow_volume'] = ''
  3316. }
  3317. if (this.prescription['target_ultrafiltration'] == 0) {
  3318. this.dialysisPrescription['target_ultrafiltration'] = ''
  3319. }
  3320. if (this.prescription['dialysate_temperature'] == 0) {
  3321. this.dialysisPrescription['dialysate_temperature'] = ''
  3322. }
  3323. if (this.prescription['anticoagulant_shouji'] == 0) {
  3324. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3325. }
  3326. if (this.prescription['anticoagulant_weichi'] == 0) {
  3327. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3328. }
  3329. if (this.prescription['anticoagulant_zongliang'] == 0) {
  3330. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3331. }
  3332. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  3333. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3334. }
  3335. if (this.prescription['kalium'] == 0) {
  3336. this.dialysisPrescription['kalium'] = ''
  3337. }
  3338. if (this.prescription['sodium'] == 0) {
  3339. this.dialysisPrescription['sodium'] = ''
  3340. }
  3341. if (this.prescription['calcium'] == 0) {
  3342. this.dialysisPrescription['calcium'] = ''
  3343. }
  3344. if (this.prescription['bicarbonate'] == 0) {
  3345. this.dialysisPrescription['bicarbonate'] = ''
  3346. }
  3347. if (this.prescription['glucose'] == 0) {
  3348. this.dialysisPrescription['glucose'] = ''
  3349. }
  3350. if (this.prescription['dialysate_flow'] == 0) {
  3351. this.dialysisPrescription['dialysate_flow'] = ''
  3352. }
  3353. if (this.prescription['conductivity'] == 0) {
  3354. this.dialysisPrescription['conductivity'] = ''
  3355. }
  3356. if (this.prescription['replacement_total'] == 0) {
  3357. this.dialysisPrescription['replacement_total'] = ''
  3358. }
  3359. if (this.prescription['target_ktv'] == 0) {
  3360. this.dialysisPrescription['target_ktv'] = ''
  3361. }
  3362. }
  3363. if (this.prescription.id > 0) {
  3364. for (var index in this.dialysisPrescription) {
  3365. this.dialysisPrescription[index] = this.prescription[index]
  3366. }
  3367. if (this.prescription['dialysate_formulation'] == 0) {
  3368. this.dialysisPrescription['dialysate_formulation'] = ''
  3369. }
  3370. if (this.prescription['anticoagulant'] == 0) {
  3371. this.dialysisPrescription['anticoagulant'] = ''
  3372. }
  3373. if (this.prescription['dialysis_duration_hour'] == 0) {
  3374. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3375. }
  3376. if (this.prescription['dialysis_duration_minute'] == 0) {
  3377. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3378. }
  3379. if (this.prescription['blood_flow_volume'] == 0) {
  3380. this.dialysisPrescription['blood_flow_volume'] = ''
  3381. }
  3382. if (this.prescription['target_ultrafiltration'] == 0) {
  3383. this.dialysisPrescription['target_ultrafiltration'] = ''
  3384. }
  3385. if (this.prescription['dialysate_temperature'] == 0) {
  3386. this.dialysisPrescription['dialysate_temperature'] = ''
  3387. }
  3388. if (this.prescription['anticoagulant_shouji'] == 0) {
  3389. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3390. }
  3391. if (this.prescription['anticoagulant_weichi'] == 0) {
  3392. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3393. }
  3394. if (this.prescription['anticoagulant_zongliang'] == 0) {
  3395. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3396. }
  3397. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  3398. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3399. }
  3400. if (this.prescription['kalium'] == 0) {
  3401. this.dialysisPrescription['kalium'] = ''
  3402. }
  3403. if (this.prescription['sodium'] == 0) {
  3404. this.dialysisPrescription['sodium'] = ''
  3405. }
  3406. if (this.prescription['calcium'] == 0) {
  3407. this.dialysisPrescription['calcium'] = ''
  3408. }
  3409. if (this.prescription['bicarbonate'] == 0) {
  3410. this.dialysisPrescription['bicarbonate'] = ''
  3411. }
  3412. if (this.prescription['glucose'] == 0) {
  3413. this.dialysisPrescription['glucose'] = ''
  3414. }
  3415. if (this.prescription['dialysate_flow'] == 0) {
  3416. this.dialysisPrescription['dialysate_flow'] = ''
  3417. }
  3418. if (this.prescription['conductivity'] == 0) {
  3419. this.dialysisPrescription['conductivity'] = ''
  3420. }
  3421. if (this.prescription['replacement_total'] == 0) {
  3422. this.dialysisPrescription['replacement_total'] = ''
  3423. }
  3424. if (this.prescription['target_ktv'] == 0) {
  3425. this.dialysisPrescription['target_ktv'] = ''
  3426. }
  3427. } else if (this.prescription.id == 0) {
  3428. for (var index in this.dialysisPrescription) {
  3429. this.dialysisPrescription[index] = this.prescription[index]
  3430. }
  3431. if (this.prescription['dialysate_formulation'] == 0) {
  3432. this.dialysisPrescription['dialysate_formulation'] = ''
  3433. }
  3434. if (this.prescription['anticoagulant'] == 0) {
  3435. this.dialysisPrescription['anticoagulant'] = ''
  3436. }
  3437. if (this.prescription['dialysis_duration_hour'] == 0) {
  3438. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3439. }
  3440. if (this.prescription['dialysis_duration_minute'] == 0) {
  3441. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3442. }
  3443. if (this.prescription['blood_flow_volume'] == 0) {
  3444. this.dialysisPrescription['blood_flow_volume'] = ''
  3445. }
  3446. if (this.prescription['target_ultrafiltration'] == 0) {
  3447. this.dialysisPrescription['target_ultrafiltration'] = ''
  3448. }
  3449. if (this.prescription['dialysate_temperature'] == 0) {
  3450. this.dialysisPrescription['dialysate_temperature'] = ''
  3451. }
  3452. if (this.prescription['anticoagulant_shouji'] == 0) {
  3453. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3454. }
  3455. if (this.prescription['anticoagulant_weichi'] == 0) {
  3456. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3457. }
  3458. if (this.prescription['anticoagulant_zongliang'] == 0) {
  3459. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3460. }
  3461. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  3462. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3463. }
  3464. if (this.prescription['kalium'] == 0) {
  3465. this.dialysisPrescription['kalium'] = ''
  3466. }
  3467. if (this.prescription['sodium'] == 0) {
  3468. this.dialysisPrescription['sodium'] = ''
  3469. }
  3470. if (this.prescription['calcium'] == 0) {
  3471. this.dialysisPrescription['calcium'] = ''
  3472. }
  3473. if (this.prescription['bicarbonate'] == 0) {
  3474. this.dialysisPrescription['bicarbonate'] = ''
  3475. }
  3476. if (this.prescription['glucose'] == 0) {
  3477. this.dialysisPrescription['glucose'] = ''
  3478. }
  3479. if (this.prescription['dialysate_flow'] == 0) {
  3480. this.dialysisPrescription['dialysate_flow'] = ''
  3481. }
  3482. if (this.prescription['conductivity'] == 0) {
  3483. this.dialysisPrescription['conductivity'] = ''
  3484. }
  3485. if (this.prescription['replacement_total'] == 0) {
  3486. this.dialysisPrescription['replacement_total'] = ''
  3487. }
  3488. if (this.prescription['target_ktv'] == 0) {
  3489. this.dialysisPrescription['target_ktv'] = ''
  3490. }
  3491. }
  3492. }
  3493. },
  3494. 'solution.id': function() {
  3495. if (this.solution.id > 0) {
  3496. if (
  3497. this.prescription != null &&
  3498. typeof this.prescription.id !== 'undefined' &&
  3499. this.prescription.id > 0
  3500. ) {
  3501. for (const key in this.prescription) {
  3502. this.dialysisPrescription[key] = this.prescription[key]
  3503. }
  3504. if (this.prescription['dialysate_formulation'] == 0) {
  3505. this.dialysisPrescription['dialysate_formulation'] = ''
  3506. }
  3507. if (this.prescription['anticoagulant'] == 0) {
  3508. this.dialysisPrescription['anticoagulant'] = ''
  3509. }
  3510. if (this.prescription['dialysis_duration_hour'] == 0) {
  3511. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3512. }
  3513. if (this.prescription['dialysis_duration_minute'] == 0) {
  3514. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3515. }
  3516. if (this.prescription['blood_flow_volume'] == 0) {
  3517. this.dialysisPrescription['blood_flow_volume'] = ''
  3518. }
  3519. if (this.prescription['target_ultrafiltration'] == 0) {
  3520. this.dialysisPrescription['target_ultrafiltration'] = ''
  3521. }
  3522. if (this.prescription['dialysate_temperature'] == 0) {
  3523. this.dialysisPrescription['dialysate_temperature'] = ''
  3524. }
  3525. if (this.prescription['anticoagulant_shouji'] == 0) {
  3526. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3527. }
  3528. if (this.prescription['anticoagulant_weichi'] == 0) {
  3529. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3530. }
  3531. if (this.prescription['anticoagulant_zongliang'] == 0) {
  3532. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3533. }
  3534. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  3535. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3536. }
  3537. if (this.prescription['kalium'] == 0) {
  3538. this.dialysisPrescription['kalium'] = ''
  3539. }
  3540. if (this.prescription['sodium'] == 0) {
  3541. this.dialysisPrescription['sodium'] = ''
  3542. }
  3543. if (this.prescription['calcium'] == 0) {
  3544. this.dialysisPrescription['calcium'] = ''
  3545. }
  3546. if (this.prescription['bicarbonate'] == 0) {
  3547. this.dialysisPrescription['bicarbonate'] = ''
  3548. }
  3549. if (this.prescription['glucose'] == 0) {
  3550. this.dialysisPrescription['glucose'] = ''
  3551. }
  3552. if (this.prescription['dialysate_flow'] == 0) {
  3553. this.dialysisPrescription['dialysate_flow'] = ''
  3554. }
  3555. if (this.prescription['conductivity'] == 0) {
  3556. this.dialysisPrescription['conductivity'] = ''
  3557. }
  3558. if (this.prescription['replacement_total'] == 0) {
  3559. this.dialysisPrescription['replacement_total'] = ''
  3560. }
  3561. if (this.prescription['target_ktv'] == 0) {
  3562. this.dialysisPrescription['target_ktv'] = ''
  3563. }
  3564. } else if (
  3565. this.solution != null &&
  3566. typeof this.solution.id !== 'undefined' &&
  3567. this.solution.id
  3568. ) {
  3569. for (const key in this.solution) {
  3570. this.dialysisPrescription[key] = this.solution[key]
  3571. }
  3572. if (this.solution['dialysate_formulation'] == 0) {
  3573. this.dialysisPrescription['dialysate_formulation'] = ''
  3574. }
  3575. if (this.solution['anticoagulant'] == 0) {
  3576. this.dialysisPrescription['anticoagulant'] = ''
  3577. }
  3578. if (this.solution['dialysis_duration_hour'] == 0) {
  3579. this.dialysisPrescription['dialysis_duration_hour'] = ''
  3580. }
  3581. if (this.solution['dialysis_duration_minute'] == 0) {
  3582. this.dialysisPrescription['dialysis_duration_minute'] = ''
  3583. }
  3584. if (this.solution['blood_flow_volume'] == 0) {
  3585. this.dialysisPrescription['blood_flow_volume'] = ''
  3586. }
  3587. if (this.solution['target_ultrafiltration'] == 0) {
  3588. this.dialysisPrescription['target_ultrafiltration'] = ''
  3589. }
  3590. if (this.solution['dialysate_temperature'] == 0) {
  3591. this.dialysisPrescription['dialysate_temperature'] = ''
  3592. }
  3593. if (this.solution['anticoagulant_shouji'] == 0) {
  3594. this.dialysisPrescription['anticoagulant_shouji'] = 0
  3595. }
  3596. if (this.solution['anticoagulant_weichi'] == 0) {
  3597. this.dialysisPrescription['anticoagulant_weichi'] = 0
  3598. }
  3599. if (this.solution['anticoagulant_zongliang'] == 0) {
  3600. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  3601. }
  3602. if (this.solution['anticoagulant_gaijiliang'] == 0) {
  3603. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  3604. }
  3605. if (this.solution['kalium'] == 0) {
  3606. this.dialysisPrescription['kalium'] = ''
  3607. }
  3608. if (this.solution['sodium'] == 0) {
  3609. this.dialysisPrescription['sodium'] = ''
  3610. }
  3611. if (this.solution['calcium'] == 0) {
  3612. this.dialysisPrescription['calcium'] = ''
  3613. }
  3614. if (this.solution['bicarbonate'] == 0) {
  3615. this.dialysisPrescription['bicarbonate'] = ''
  3616. }
  3617. if (this.solution['glucose'] == 0) {
  3618. this.dialysisPrescription['glucose'] = ''
  3619. }
  3620. if (this.solution['dialysate_flow'] == 0) {
  3621. this.dialysisPrescription['dialysate_flow'] = ''
  3622. }
  3623. if (this.solution['conductivity'] == 0) {
  3624. this.dialysisPrescription['conductivity'] = ''
  3625. }
  3626. if (this.solution['replacement_total'] == 0) {
  3627. this.dialysisPrescription['replacement_total'] = ''
  3628. }
  3629. if (this.solution['target_ktv'] == 0) {
  3630. this.dialysisPrescription['target_ktv'] = ''
  3631. }
  3632. }
  3633. }
  3634. },
  3635. stockType: function() {
  3636. console.log('stockType', this.stockType)
  3637. var arr = []
  3638. var arrTwo = []
  3639. for (let i = 0; i < this.stockType.length; i++) {
  3640. if (this.stockType[i].stock_attribute == 2) {
  3641. arr.push(this.stockType[i])
  3642. }
  3643. if (this.stockType[i].stock_attribute == 3) {
  3644. arrTwo.push(this.stockType[i])
  3645. }
  3646. }
  3647. var dialyzator = []
  3648. var irrigation = []
  3649. for (let i = 0; i < arr.length; i++) {
  3650. for (let j = 0; j < arr[i].GoodInfo.length; j++) {
  3651. dialyzator.push(arr[i].GoodInfo[j])
  3652. }
  3653. }
  3654. this.dialyzers = dialyzator
  3655. for (let i = 0; i < arrTwo.length; i++) {
  3656. for (let j = 0; j < arrTwo[i].GoodInfo.length; j++) {
  3657. irrigation.push(arrTwo[i].GoodInfo[j])
  3658. }
  3659. }
  3660. this.irrigations = irrigation
  3661. console.log('透析器', this.dialyzers)
  3662. console.log('灌流器', this.irrigations)
  3663. },
  3664. },
  3665. created() {
  3666. console.log("schedual232323323232323232",this.schedual)
  3667. this.illnessList = getDataConfig('hemodialysis', 'illness')
  3668. this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')
  3669. this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis', 'bilirubin_adsorption_column')
  3670. }
  3671. }
  3672. </script>
  3673. <style rel="stylesheet/scss" lang="scss" scoped>
  3674. .el-checkbox,
  3675. .el-checkbox__input {
  3676. vertical-align: middle;
  3677. }
  3678. .newLine {
  3679. display: flex;
  3680. justify-content: space-between;
  3681. height: 40px;
  3682. line-height: 40px;
  3683. border-bottom: 1px solid #ccc;
  3684. color: #303133;
  3685. }
  3686. .warnTxt {
  3687. text-align: center;
  3688. margin: 0 auto;
  3689. background: #faa331;
  3690. max-width: 240px;
  3691. padding: 10px 20px;
  3692. border-radius: 4px;
  3693. margin-bottom: 10px;
  3694. color: #fff;
  3695. }
  3696. </style>
  3697. <style lang="scss">
  3698. .newDialog {
  3699. .el-dialog__body {
  3700. padding: 10px 20px 30px;
  3701. }
  3702. }
  3703. </style>