dialysisPrescriptionDialog.vue 278KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934
  1. <template>
  2. <div>
  3. <el-dialog
  4. title="透析处方"
  5. :visible.sync="isVisibility"
  6. width="80%"
  7. :modal = 'false'
  8. :modal-append-to-body="false"
  9. :close-on-click-modal="false"
  10. class="newDialog"
  11. >
  12. <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
  13. <div style="position: absolute;left: 20%;top: 3%;width: 70%;">
  14. <span v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
  15. 透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
  16. </span>&nbsp;&nbsp;
  17. <span style="" v-if="this.$store.getters.xt_user.template_info.org_id ==0||this.$store.getters.xt_user.template_info.org_id==10702">
  18. 透前体重:{{predialysis&&(predialysis.weight_before-predialysis.additional_weight).toFixed(2)?(predialysis.weight_before-predialysis.additional_weight).toFixed(2):"" }} kg
  19. </span>&nbsp;&nbsp;
  20. <!-- style="position: absolute;left: 20%;top: 3%" position: absolute;left:38%;top: 3%-->
  21. <span style="">
  22. 干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
  23. </span>&nbsp;&nbsp;
  24. <span style="">
  25. 上次透后体重:
  26. <span v-if="this.$store.getters.xt_user.template_info.org_id!=0 && this.$store.getters.xt_user.template_info.org_id!=10702">{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg</span>
  27. <span v-if="this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10702">{{last_record&&(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2):""}}kg</span>
  28. </span>&nbsp;&nbsp;
  29. </div>
  30. <div style="position: absolute;left: 20%;top: 6.3%;width: 70%;">
  31. <span style="display: inline-block;" v-if="this.$store.getters.xt_user.template_info.org_id==0||this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id ==10721">
  32. 衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:"" }} kg
  33. </span>&nbsp;&nbsp;
  34. <div style="display: inline-block;">
  35. 体重增长:
  36. <span v-if="predialysis!=null && last_record!=null">
  37. {{predialysis&&last_record&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg
  38. </span>&nbsp;&nbsp;
  39. <span style="">
  40. 4小时超滤量上限(5%):
  41. <span v-if="predialysis!=null && ((predialysis.dry_weight)*0.05) >0 "></span> {{(predialysis.dry_weight*0.05).toFixed(2)}}
  42. kg
  43. </span>&nbsp;&nbsp;
  44. </div>
  45. <span style="display: inline-block;" v-if="this.$store.getters.xt_user.template_info.org_id!=10702">
  46. 透前血压: {{predialysis&&predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:"" }} / {{ predialysis&&predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:"" }} mmHg
  47. </span>
  48. </div>
  49. <!-- <span style="position: absolute;left: 48%;top: 3%" :modal = 'false'>
  50. 衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
  51. </span> -->
  52. <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
  53. <el-form
  54. ref="dialysisPrescription"
  55. :model="dialysisPrescription"
  56. label-width="148px"
  57. >
  58. <el-row :gutter="24">
  59. <el-col :span="8" v-if="isShows('透析模式')">
  60. <el-form-item label="透析模式" :prop="isName('透析模式')" :rules="isCheckmust('透析模式')">
  61. <el-select
  62. filterable
  63. v-model="dialysisPrescription.mode_id"
  64. @change="changePrescription(dialysisPrescription.mode_id)" placeholder="请选择">
  65. <!-- <el-option :key="0" label="请选择" :value="0"></el-option> -->
  66. <el-option
  67. v-for="(item, index) in treatment_mode"
  68. :label="item.name"
  69. :value="item.id"
  70. :key="index + 'q'"
  71. ></el-option>
  72. </el-select>
  73. </el-form-item>
  74. </el-col>
  75. <el-col :span="8" v-if="isShows('透析时长')">
  76. <el-form-item label="透析时长(h):" prop="dialysis_duration_hour" :rules="isCheckmust('透析时长')">
  77. <el-input
  78. type="number"
  79. v-model="dialysisPrescription.dialysis_duration_hour"
  80. ></el-input>
  81. </el-form-item>
  82. </el-col>
  83. <el-col :span="8" v-if="isShows('透析时长')">
  84. <el-form-item label="透析时长(min): " prop="dialysis_duration_minute" :rules="isCheckmust('透析时长')">
  85. <el-input
  86. type="number"
  87. v-model="dialysisPrescription.dialysis_duration_minute"
  88. ></el-input>
  89. </el-form-item>
  90. </el-col>
  91. <!-- </el-row>
  92. <el-row :gutter="20"> -->
  93. <el-col :span="8" v-if="isShows('血流量')">
  94. <el-form-item label="血流量(ml/min):" prop="blood_flow_volume" :rules="isCheckmust('血流量')">
  95. <el-input
  96. type="number"
  97. v-model="dialysisPrescription.blood_flow_volume"
  98. ></el-input>
  99. </el-form-item>
  100. </el-col>
  101. <el-col :span="8" v-if="isShows('置换流量') && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10731">
  102. <el-form-item label="置换液流量(L/h):" prop="replacement_flow" :rules="isCheckmust('置换流量')">
  103. <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
  104. </el-form-item>
  105. </el-col>
  106. <el-col :span="8" v-if="isShows('置换流量') && (this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10731)">
  107. <el-form-item label="置换液流量(ml/min):" prop="replacement_flow" :rules="isCheckmust('置换流量')">
  108. <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
  109. </el-form-item>
  110. </el-col>
  111. <el-col :span="8"
  112. 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)">
  113. <el-form-item label="预冲量(ml):" prop="pre_impulse" :rules="isCheckmust('预冲量')">
  114. <el-input
  115. type="number"
  116. v-model="dialysisPrescription.pre_impulse"
  117. ></el-input>
  118. </el-form-item>
  119. </el-col>
  120. <el-col :span="8"
  121. 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">
  122. <el-form-item label="预冲量(L):" prop="pre_impulse" :rules="isCheckmust('预冲量')">
  123. <el-input
  124. type="number"
  125. v-model="dialysisPrescription.pre_impulse"
  126. ></el-input>
  127. </el-form-item>
  128. </el-col>
  129. <el-col :span="8"
  130. 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 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471 || this.$store.getters.xt_user.template_info.org_id == 10460 || this.$store.getters.xt_user.template_info.org_id == 10644 || this.$store.getters.xt_user.template_info.org_id == 10667 || this.$store.getters.xt_user.template_info.org_id == 10723 || this.$store.getters.xt_user.template_info.org_id == 10731 || this.$store.getters.xt_user.template_info.org_id == 10727)">
  131. <el-form-item label="目标超滤量(ml):"
  132. prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
  133. <el-input
  134. type="number"
  135. v-model="dialysisPrescription.target_ultrafiltration"
  136. ></el-input>
  137. </el-form-item>
  138. </el-col>
  139. <el-col :span="8"
  140. v-if="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 && this.$store.getters.xt_user.template_info.template_id != 60 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10460 && this.$store.getters.xt_user.template_info.org_id != 10644 && this.$store.getters.xt_user.template_info.org_id != 10667 && this.$store.getters.xt_user.template_info.org_id != 10723 && this.$store.getters.xt_user.template_info.org_id != 10731 && this.$store.getters.xt_user.template_info.org_id != 10727">
  141. <el-form-item
  142. label="目标超滤量(L):" prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
  143. <el-input
  144. type="number"
  145. v-model="dialysisPrescription.target_ultrafiltration"
  146. ></el-input>
  147. </el-form-item>
  148. </el-col>
  149. <el-col :span="8"
  150. v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597&& this.$store.getters.xt_user.template_info.org_id != 10571 && this.$store.getters.xt_user.template_info.org_id != 10612 && this.$store.getters.xt_user.template_info.org_id != 10598 && this.$store.getters.xt_user.template_info.org_id != 10677 && this.$store.getters.xt_user.template_info.org_id != 10679 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10635 && this.$store.getters.xt_user.template_info.org_id != 10721">
  151. <el-form-item label="处方脱水量(ml):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
  152. <el-input
  153. type="number"
  154. v-model="dialysisPrescription.prescription_water"
  155. ></el-input>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="8"
  159. v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id ==10571 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10598 || this.$store.getters.xt_user.template_info.org_id ==10612 || this.$store.getters.xt_user.template_info.org_id ==10677 || this.$store.getters.xt_user.template_info.org_id==10679 || this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==10721">
  160. <el-form-item label="处方脱水量(L):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
  161. <el-input
  162. type="number"
  163. v-model="dialysisPrescription.prescription_water"
  164. ></el-input>
  165. </el-form-item>
  166. </el-col>
  167. <el-col :span="8"
  168. v-if="isShows('加糖')">
  169. <el-form-item label="加糖:" prop="prescription_water" :rules="isCheckmust('加糖')">
  170. <el-input v-model="dialysisPrescription.chaptalization"
  171. ></el-input>
  172. </el-form-item>
  173. </el-col>
  174. <el-col :span="8" v-if="isShows('带水上机')">
  175. <el-form-item label="带水上机:" prop="water_machine" :rules="isCheckmust('带水上机')">
  176. <el-select v-model="dialysisPrescription.water_machine">
  177. <el-option
  178. v-for="(item, index) in machineList"
  179. :label="item.name"
  180. :value="item.name"
  181. :key="index + 'q'"
  182. ></el-option>
  183. </el-select>
  184. </el-form-item>
  185. </el-col>
  186. <el-col :span="8" v-if="isShows('是否单超脱水')">
  187. <el-form-item label="是否单超脱水:" prop="is_water">
  188. <el-select v-model="dialysisPrescription.is_water">
  189. <el-option
  190. v-for="(item, index) in waterList"
  191. :label="item.name"
  192. :value="item.id"
  193. :key="index + 'q'"
  194. ></el-option>
  195. </el-select>
  196. </el-form-item>
  197. </el-col>
  198. <el-col :span="8" >
  199. <el-form-item label="是否先超脱水:" prop="first_super" v-if="isShows('是否先超脱水')">
  200. <el-select v-model="dialysisPrescription.first_super">
  201. <el-option
  202. v-for="(item, index) in waterListThree"
  203. :label="item.name"
  204. :value="item.id"
  205. :key="index + 's'"
  206. ></el-option>
  207. </el-select>
  208. </el-form-item>
  209. </el-col>
  210. <el-col :span="8">
  211. <el-form-item label="是否序惯脱水:" prop="is_sequential" v-if="isShows('是否序惯脱水')">
  212. <el-select v-model="dialysisPrescription.is_sequential">
  213. <el-option
  214. v-for="(item, index) in waterListTwo"
  215. :label="item.name"
  216. :value="item.id"
  217. :key="index + 't'"
  218. ></el-option>
  219. </el-select>
  220. </el-form-item>
  221. </el-col>
  222. <el-col :span="8">
  223. <el-form-item label="电导度(mS/cm):" prop="conduct" v-if="isShows('电导度')">
  224. <el-input v-model="dialysisPrescription.conduct"></el-input>
  225. </el-form-item>
  226. </el-col>
  227. <el-col :span="8" v-if="isShows('透析液')">
  228. <el-form-item label="透析液:" prop="dialyzate" :rules="isCheckmust('透析液')">
  229. <el-select v-model="dialysisPrescription.dialyzate">
  230. <el-option
  231. v-for="(item, index) in dialyzateList"
  232. :label="item.name"
  233. :value="item.name"
  234. :key="index + 'q'"
  235. ></el-option>
  236. </el-select>
  237. </el-form-item>
  238. </el-col>
  239. <el-col :span="8" v-if="isShows('单超时长') && dialysisPrescription.is_water == 1">
  240. <el-form-item label="单超时长(min):" prop="single_time" :rules="isCheckmust('单超时长')">
  241. <el-input v-model="dialysisPrescription.single_time"></el-input>
  242. </el-form-item>
  243. </el-col>
  244. <el-col :span="8" v-if="isShows('单超脱水') && dialysisPrescription.is_water == 1">
  245. <el-form-item label="单超脱水(ml):" prop="single_water" :rules="isCheckmust('单超脱水')">
  246. <el-input v-model="dialysisPrescription.single_water"></el-input>
  247. </el-form-item>
  248. </el-col>
  249. <el-col :span="8" v-if="isShows('曲线脱水')">
  250. <el-form-item label="曲线脱水(ml):" prop="drhy_water" :rules="isCheckmust('曲线脱水')">
  251. <el-input v-model="dialysisPrescription.drhy_water"></el-input>
  252. </el-form-item>
  253. </el-col>
  254. <el-col :span="8" v-if="isShows('曲线脱水时长')">
  255. <el-form-item label="曲线脱水时长(h):" prop="dry_water_hour" :rules="isCheckmust('曲线脱水时长')">
  256. <el-input v-model="dialysisPrescription.dry_water_hour"></el-input>
  257. </el-form-item>
  258. </el-col>
  259. <el-col :span="8" v-if="isShows('透析液配方')">
  260. <el-form-item label="透析液配方:" prop="dialysate_formulation" :rules="isCheckmust('透析液配方')">
  261. <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
  262. <el-select
  263. v-model="dialysisPrescription.dialysate_formulation"
  264. placeholder="请选择"
  265. >
  266. <el-option :key="0" label="请选择" :value="0"></el-option>
  267. <el-option
  268. v-for="(option, index) in dialysate_formulation_options"
  269. :key="index + 'w'"
  270. :label="option.name"
  271. :value="option.id"
  272. ></el-option>
  273. </el-select>
  274. </el-form-item>
  275. </el-col>
  276. <!-- </el-row>
  277. <el-row :gutter="20"> -->
  278. <el-col :span="8" v-if="isShows('抗凝剂')">
  279. <el-form-item label="抗凝剂:" prop="anticoagulant" :rules="isCheckmust('抗凝剂')">
  280. <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择"
  281. style="width:100%;"
  282. @change="changeThisAnticoagulant">
  283. <el-option :key="0" label="请选择" :value="0"></el-option>
  284. <!-- <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
  285. :value="3"></el-option> -->
  286. <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name"
  287. :key="index + 'e'"
  288. :value="item.id"></el-option>
  289. </el-select>
  290. </el-form-item>
  291. </el-col>
  292. <el-col :span="8" v-if="isShows('抗凝剂商品名称')">
  293. <el-form-item label="抗凝剂商品名称:" prop="antioxidant_commodity_name" :rules="isCheckmust('抗凝剂商品名称')">
  294. <el-input
  295. v-model="dialysisPrescription.antioxidant_commodity_name"
  296. ></el-input>
  297. </el-form-item>
  298. </el-col>
  299. <el-col :span="8" v-if="isShows('肝素钠') && dialysisPrescription.anticoagulant ==10">
  300. <el-form-item label="肝素钠(mg/h):" prop="heparin_sodium" :rules="isCheckmust('肝素钠')">
  301. <el-input
  302. v-model="dialysisPrescription.heparin_sodium"
  303. ></el-input>
  304. </el-form-item>
  305. </el-col>
  306. <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
  307. <el-form-item label="鱼精蛋白(mg/h):" prop="nucleoprotamine" :rules="isCheckmust('鱼精蛋白')">
  308. <el-input肝素
  309. v-model="dialysisPrescription.nucleoprotamine"
  310. ></el-input肝素>
  311. </el-form-item>
  312. </el-col>
  313. <el-col :span="8" v-if="isShows('下机前推注鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
  314. <el-form-item label="下机前推注鱼精蛋白(mg):" prop="push_the_protamine" :rules="isCheckmust('下机前推注鱼精蛋白')">
  315. <el-input
  316. v-model="dialysisPrescription.push_the_protamine"
  317. ></el-input>
  318. </el-form-item>
  319. </el-col>
  320. <el-col :span="8" v-if="isShows('追加肝素量')" >
  321. <el-form-item v-if="dialysisPrescription.anticoagulant == 2"
  322. :label="'追加肝素量(mg) : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
  323. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  324. v-model="dialysisPrescription.add_amount"></el-input>
  325. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  326. v-model="dialysisPrescription.add_amount"></el-input>
  327. </el-form-item>
  328. <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1"
  329. :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
  330. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  331. v-model="dialysisPrescription.add_amount"></el-input>
  332. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  333. v-model="dialysisPrescription.add_amount"></el-input>
  334. </el-form-item>
  335. </el-col>
  336. <el-col :span="8" v-if="isShows('减肝素量')">
  337. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'减肝素量(mg) : '" prop="calculateAnticoagulantZL" :rules="isCheckmust('减肝素量')">
  338. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  339. v-model="dialysisPrescription.calculateAnticoagulantZL"></el-input>
  340. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  341. v-model="dialysisPrescription.reduce_amount"></el-input>
  342. </el-form-item>
  343. <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1"
  344. :label="'减肝素量(' + anticoagulant.shouji_unit + ') : '" prop="reduce_amount" :rules="isCheckmust('减肝素量')">
  345. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  346. v-model="dialysisPrescription.reduce_amount"></el-input>
  347. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  348. v-model="dialysisPrescription.reduce_amount"></el-input>
  349. </el-form-item>
  350. </el-col>
  351. <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂') && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
  352. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 &&this.$store.getters.xt_user.template_info.org_id != 10495 &&this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10510 && this.$store.getters.xt_user.template_info.org_id != 10480">
  353. <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 &&this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 &&this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10510">
  354. <el-form-item v-if='dialysisPrescription.anticoagulant != 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!=9990' :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  355. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  356. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  357. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  358. </el-form-item>
  359. <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant==7 &&
  360. this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(mg):'"
  361. prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  362. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  363. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  364. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  365. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  366. </el-form-item>
  367. <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 &&
  368. dialysisPrescription.anticoagulant!=7 && this.$store.getters.xt_user.template_info.template_id!=6"
  369. :label="'首剂(iu):'" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  370. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  371. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  372. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  373. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  374. </el-form-item>
  375. <el-form-item
  376. v-if='dialysisPrescription.anticoagulant == 2 &&
  377. this.$store.getters.xt_user.template_info.template_id == 21 ||
  378. this.$store.getters.xt_user.template_info.template_id == 23 ||
  379. this.$store.getters.xt_user.template_info.template_id == 38 ||
  380. this.$store.getters.xt_user.template_info.org_id == 9987 ||
  381. this.$store.getters.xt_user.template_info.org_id == 10346 ||
  382. this.$store.getters.xt_user.template_info.org_id == 10387 ||
  383. this.$store.getters.xt_user.template_info.org_id ==10495 ||
  384. this.$store.getters.xt_user.template_info.org_id ==10375 ||
  385. this.$store.getters.xt_user.template_info.org_id ==10551 ||
  386. this.$store.getters.xt_user.template_info.org_id ==10600 ||
  387. this.$store.getters.xt_user.template_info.org_id ==10510 ||
  388. this.$store.getters.xt_user.template_info.org_id ==10480
  389. '
  390. :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  391. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  392. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  393. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  394. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  395. </el-form-item>
  396. </div>
  397. <div v-else>
  398. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  399. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  400. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  401. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  402. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  403. </el-form-item>
  404. <el-form-item v-else :label="'首剂(iu) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  405. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  406. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  407. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  408. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  409. </el-form-item>
  410. </div>
  411. </div>
  412. <div v-else>
  413. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  414. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  415. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  416. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  417. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  418. </el-form-item>
  419. <el-form-item v-if="dialysisPrescription.anticoagulant == 13" :label="'首剂(AXaIU) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  420. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  421. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  422. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  423. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  424. </el-form-item>
  425. <el-form-item v-if="dialysisPrescription.anticoagulant == 11" :label="'首剂(AXaIU) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  426. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  427. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  428. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  429. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  430. </el-form-item>
  431. <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 11 && dialysisPrescription.anticoagulant != 13" :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
  432. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  433. v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
  434. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  435. v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
  436. </el-form-item>
  437. </div>
  438. </el-col>
  439. <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
  440. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702 && this.$store.getters.xt_user.template_info.org_id != 10510 && this.$store.getters.xt_user.template_info.org_id != 10480">
  441. <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 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 ">
  442. <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
  443. v-if="anticoagulant.weichi != -1 &&
  444. this.$store.getters.xt_user.template_info.template_id != 21 &&
  445. this.$store.getters.xt_user.template_info.template_id != 23 &&
  446. this.$store.getters.xt_user.template_info.template_id != 38 &&
  447. this.$store.getters.xt_user.template_info.org_id != 9987 &&
  448. this.$store.getters.xt_user.template_info.org_id != 54 &&
  449. this.$store.getters.xt_user.template_info.org_id != 9990 &&
  450. this.$store.getters.xt_user.template_info.org_id != 10495 &&
  451. this.$store.getters.xt_user.template_info.org_id != 10375 &&
  452. this.$store.getters.xt_user.template_info.org_id != 10551 &&
  453. this.$store.getters.xt_user.template_info.org_id != 10510 &&
  454. this.$store.getters.xt_user.template_info.org_id != 10480 &&
  455. this.$store.getters.xt_user.template_info.org_id != 10600" prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  456. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  457. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  458. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  459. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  460. </el-form-item>
  461. <el-form-item :label="'维持(mg/h) : '"
  462. v-if="anticoagulant.weichi != -1 &&
  463. this.$store.getters.xt_user.template_info.template_id == 21 ||
  464. this.$store.getters.xt_user.template_info.template_id == 23 ||
  465. this.$store.getters.xt_user.template_info.template_id == 38 ||
  466. this.$store.getters.xt_user.template_info.org_id == 9987 ||
  467. this.$store.getters.xt_user.template_info.org_id == 54 ||
  468. this.$store.getters.xt_user.template_info.org_id == 10346 ||
  469. this.$store.getters.xt_user.template_info.org_id == 10387 ||
  470. this.$store.getters.xt_user.template_info.org_id == 9990 ||
  471. this.$store.getters.xt_user.template_info.org_id == 10495 ||
  472. this.$store.getters.xt_user.template_info.org_id == 10375 ||
  473. this.$store.getters.xt_user.template_info.org_id == 10551 ||
  474. this.$store.getters.xt_user.template_info.org_id == 10600 ||
  475. this.$store.getters.xt_user.template_info.org_id == 10510 ||
  476. this.$store.getters.xt_user.template_info.org_id == 10480
  477. " prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  478. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  479. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  480. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  481. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  482. </el-form-item>
  483. </div>
  484. <div v-else>
  485. <el-form-item :label="'维持(iu/h) : '" prop="anticoagulant_weichi" :rules="isCheckmust('维持')"
  486. v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant != 2" >
  487. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  488. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  489. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  490. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  491. </el-form-item>
  492. <el-form-item :label="'维持(mg/h) : '" prop="anticoagulant_weichi" :rules="isCheckmust('维持')"
  493. v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant == 2" >
  494. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  495. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  496. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  497. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  498. </el-form-item>
  499. </div>
  500. </div>
  501. <div v-else>
  502. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '"
  503. prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  504. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  505. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  506. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  507. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  508. </el-form-item>
  509. <el-form-item v-if="dialysisPrescription.anticoagulant == 13" :label="'维持(AXaIU) : '"
  510. prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  511. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  512. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  513. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  514. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  515. </el-form-item>
  516. <el-form-item v-if="dialysisPrescription.anticoagulant == 11" :label="'维持(AXaIU) : '"
  517. prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  518. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  519. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  520. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  521. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  522. </el-form-item>
  523. <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
  524. v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 11 && dialysisPrescription.anticoagulant != 13"
  525. prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
  526. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  527. v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
  528. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  529. v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
  530. </el-form-item>
  531. </div>
  532. </el-col>
  533. <el-col :span="8"
  534. v-if="isShows('维持时长')">
  535. <el-form-item label="维持时长(h):" prop="prescribing_number" :rules="isCheckmust('维持时长')">
  536. <el-input v-model="dialysisPrescription.anticoagulant_weichi_hour"></el-input>
  537. </el-form-item>
  538. </el-col>
  539. <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
  540. <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10702&& this.$store.getters.xt_user.template_info.org_id != 10510 && this.$store.getters.xt_user.template_info.org_id != 10480">
  541. <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 && this.$store.getters.xt_user.template_info.org_id != 10495">
  542. <el-form-item
  543. 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 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551 && this.$store.getters.xt_user.template_info.org_id != 10600 && this.$store.getters.xt_user.template_info.org_id != 10510 && this.$store.getters.xt_user.template_info.org_id != 10480'
  544. :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  545. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  546. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  547. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  548. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  549. </el-form-item>
  550. <el-form-item
  551. 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 == 10495 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10551 || this.$store.getters.xt_user.template_info.org_id == 10600 || this.$store.getters.xt_user.template_info.org_id == 10510 || this.$store.getters.xt_user.template_info.org_id == 10480'
  552. :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  553. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  554. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  555. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  556. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  557. </el-form-item>
  558. <el-form-item
  559. 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'
  560. :label="'总量(mg)'" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  561. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  562. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  563. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  564. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  565. </el-form-item>
  566. <el-form-item
  567. v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7"
  568. :label="'总量(iu)'" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  569. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  570. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  571. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  572. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  573. </el-form-item>
  574. </div>
  575. <div v-else>
  576. <el-form-item
  577. v-if='dialysisPrescription.anticoagulant != 2'
  578. :label="'总量(iu) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  579. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  580. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  581. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  582. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  583. </el-form-item>
  584. <el-form-item
  585. v-if='dialysisPrescription.anticoagulant == 2'
  586. :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  587. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  588. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  589. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  590. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  591. </el-form-item>
  592. </div>
  593. </div>
  594. <div v-else>
  595. <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  596. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  597. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  598. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  599. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  600. </el-form-item>
  601. <el-form-item v-if="dialysisPrescription.anticoagulant == 13" :label="'总量(AXaIU) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  602. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  603. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  604. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  605. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  606. </el-form-item>
  607. <el-form-item v-if="dialysisPrescription.anticoagulant == 11" :label="'总量(AXaIU) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  608. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  609. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  610. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  611. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  612. </el-form-item>
  613. <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 11 && dialysisPrescription.anticoagulant != 13" :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
  614. <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
  615. v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
  616. <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
  617. v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
  618. </el-form-item>
  619. </div>
  620. </el-col>
  621. <el-col :span="8"
  622. v-if="isShows('开药数量')">
  623. <el-form-item label="开药数量(支):" prop="prescribing_number" :rules="isCheckmust('开药数量')">
  624. <el-input type="number" v-model="dialysisPrescription.prescribing_number"></el-input>
  625. </el-form-item>
  626. </el-col>
  627. <el-col :span="8"
  628. 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)&& this.$store.getters.xt_user.template_info.org_id!=10441)"
  629. v-show="zhiShow">
  630. <el-form-item label="置换量(ml):" prop="replacement_total" :rules="isCheckmust('置换量')">
  631. <el-input
  632. type="number"
  633. v-model="dialysisPrescription.replacement_total"
  634. ></el-input>
  635. </el-form-item>
  636. </el-col>
  637. <el-col :span="8"
  638. 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) || this.$store.getters.xt_user.template_info.org_id == 10441"
  639. v-show="zhiShow">
  640. <el-form-item label="置换量(L):" prop="replacement_total" :rules="isCheckmust('置换量')">
  641. <el-input
  642. type="number"
  643. v-model="dialysisPrescription.replacement_total"
  644. ></el-input>
  645. </el-form-item>
  646. </el-col>
  647. <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id != 10375" v-show="totalShow">
  648. <el-form-item label="置换速度(ml/min)" prop="displace_speed" :rules="isCheckmust('置换速度')">
  649. <el-input
  650. v-model="dialysisPrescription.displace_speed"
  651. ></el-input>
  652. </el-form-item>
  653. </el-col>
  654. <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375" v-show="totalShow">
  655. <el-form-item label="置换速度(L/h)" prop="displace_speed" :rules="isCheckmust('置换速度')">
  656. <el-input
  657. v-model="dialysisPrescription.displace_speed"
  658. ></el-input>
  659. </el-form-item>
  660. </el-col>
  661. <el-col
  662. :span="8"
  663. v-if="isShows('钙名称')"
  664. >
  665. <el-form-item label="钙名称 : " prop="anticoagulant_gaimingcheng" :rules="isCheckmust('钙名称')">
  666. <el-input
  667. v-model="dialysisPrescription.anticoagulant_gaimingcheng"
  668. placeholder="钙名称"
  669. ></el-input>
  670. </el-form-item>
  671. </el-col>
  672. <el-col
  673. :span="8"
  674. v-if="isShows('钙剂量')"
  675. ></el-col>
  676. <el-col :span="8" v-if="isShows('钙剂量')" >
  677. <el-form-item label="钙剂量(ml) : " prop="anticoagulant_gaijiliang" :rules="isCheckmust('钙剂量')">
  678. <el-input
  679. type="number"
  680. v-model="dialysisPrescription.anticoagulant_gaijiliang"
  681. placeholder="钙剂量"
  682. ></el-input>
  683. </el-form-item>
  684. </el-col>
  685. <el-col :span="8" v-if="isShows('钾')">
  686. <el-form-item label="钾(mmol/L): " prop="kalium" :rules="isCheckmust('钾')">
  687. <el-input
  688. type="number"
  689. v-model="dialysisPrescription.kalium"
  690. ></el-input>
  691. </el-form-item>
  692. </el-col>
  693. <el-col :span="8" v-if="isShows('钠')"><!-- :prop="isName('钠')" prop="sodium" isCheckmust [{required: true, message: '请输入钠', trigger: 'blur'}]-->
  694. <el-form-item label="钠(mmol/L):" prop="sodium" :rules="isNas('钠')">
  695. <el-input
  696. type="number"
  697. v-model="dialysisPrescription.sodium"
  698. ></el-input>
  699. </el-form-item>
  700. </el-col>
  701. <el-col :span="8" v-if="isShows('钙')">
  702. <el-form-item label="钙(mmol/L):" prop="calcium" :rules="isCheckmust('钙')">
  703. <el-input
  704. type="number"
  705. v-model="dialysisPrescription.calcium"
  706. ></el-input>
  707. </el-form-item>
  708. </el-col>
  709. <el-col :span="8" v-if="isShows('碳酸氢盐')">
  710. <el-form-item label="碳酸氢盐(mmol/L):" prop="bicarbonate" :rules="isCheckmust('碳酸氢盐')">
  711. <el-input
  712. type="number"
  713. v-model="dialysisPrescription.bicarbonate"
  714. ></el-input>
  715. </el-form-item>
  716. </el-col>
  717. <!-- <el-col :span="8" v-if="isShows('葡萄糖')">
  718. <el-form-item label="葡萄糖(mmol/L):">
  719. <el-input
  720. type="number"
  721. v-model="dialysisPrescription.glucose"
  722. ></el-input>
  723. </el-form-item>28
  724. </el-col> -->
  725. <el-col :span="8" v-if="isShows('透析液流量')">
  726. <el-form-item label="透析液流量(ml/min):" prop="dialysate_flow" :rules="isCheckmust('透析液流量')">
  727. <el-input
  728. type="number"
  729. v-model="dialysisPrescription.dialysate_flow"
  730. ></el-input>
  731. </el-form-item>
  732. </el-col>
  733. <el-col :span="8" v-if="isShows('透析液温度')">
  734. <el-form-item label="透析液温度(°C):" prop="dialysate_temperature" :rules="isCheckmust('透析液温度')">
  735. <el-input
  736. type="number"
  737. v-model="dialysisPrescription.dialysate_temperature"
  738. ></el-input>
  739. </el-form-item>
  740. </el-col>
  741. <el-col :span="8" v-if="isShows('电导率')">
  742. <el-form-item label="电导率(mS/cm): " prop="conductivity" :rules="isCheckmust('电导率')">
  743. <el-input
  744. type="number"
  745. v-model="dialysisPrescription.conductivity"
  746. ></el-input>
  747. </el-form-item>
  748. </el-col>
  749. <el-col :span="8" v-if="isShows('透析器/灌流器')" >
  750. <el-form-item label="透析器/灌流器" prop="dialyzer_perfusion_apparatus" :rules="isCheckmust('透析器/灌流器')">
  751. <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
  752. @focus="showInnerDialog('5')"></el-input>
  753. </el-form-item>
  754. </el-col>
  755. <el-col :span="8" v-if="isShows('透析器') && this.$store.getters.xt_user.template_info.org_id != 10164 && this.$store.getters.xt_user.template_info.org_id != 10727">
  756. <el-form-item label="透析器:" prop="dialysis_dialyszers" :rules="isCheckmust('透析器')">
  757. <el-input v-model="dialysisPrescription.dialysis_dialyszers"
  758. @focus="showInnerDialog('7')"></el-input>
  759. </el-form-item>
  760. </el-col>
  761. <el-col :span="8" v-if="isShows('透析器') && (this.$store.getters.xt_user.template_info.org_id == 10164 || this.$store.getters.xt_user.template_info.org_id == 10727)" >
  762. <el-form-item label="透析器:" prop="dialysis_dialyszers" :rules="isCheckmust('透析器')">
  763. <el-input v-model="dialysisPrescription.dialysis_dialyszers"
  764. @focus="showInnerDialog('20')"></el-input>
  765. </el-form-item>
  766. </el-col>
  767. <el-col :span="8" v-if="isShows('灌流器') && this.$store.getters.xt_user.template_info.org_id != 10164">
  768. <el-form-item label="灌流器:" prop="dialysis_irrigation" :rules="isCheckmust('灌流器')">
  769. <el-input v-model="dialysisPrescription.dialysis_irrigation"
  770. @focus="showInnerDialog('8')"></el-input>
  771. </el-form-item>
  772. </el-col>
  773. <el-col :span="8" v-if="isShows('灌流器') && this.$store.getters.xt_user.template_info.org_id == 10164">
  774. <el-form-item label="灌流器:" prop="dialysis_irrigation" :rules="isCheckmust('灌流器')">
  775. <el-input v-model="dialysisPrescription.dialysis_irrigation"
  776. @focus="showInnerDialog('21')"></el-input>
  777. </el-form-item>
  778. </el-col>
  779. <el-col :span="8" v-if="isShows('滤过器')">
  780. <el-form-item label="滤过器:" prop="dialysis_strainer" :rules="isCheckmust('滤过器')">
  781. <el-input v-model="dialysisPrescription.dialysis_strainer"
  782. @focus="showInnerDialog('12')"></el-input>
  783. </el-form-item>
  784. </el-col>
  785. <el-col :span="8" v-if="isShows('血浆分离器')">
  786. <el-form-item label="血浆分离器:" prop="plasma_separator" :rules="isCheckmust('血浆分离器')">
  787. <el-input v-model="dialysisPrescription.plasma_separator"
  788. @focus="showInnerDialog('9')"></el-input>
  789. </el-form-item>
  790. </el-col>
  791. <el-col :span="8" v-if="isShows('胆红素吸附柱')">
  792. <el-form-item label="胆红素吸附柱:" prop="bilirubin_adsorption_column" :rules="isCheckmust('胆红素吸附柱')">
  793. <el-input v-model="dialysisPrescription.bilirubin_adsorption_column"
  794. @focus="showInnerDialog('10')"></el-input>
  795. </el-form-item>
  796. </el-col>
  797. <el-col :span="8" v-if="isShows('体液过多症状')">
  798. <el-form-item label="体液过多症状:" prop="body_fluid" :rules="isCheckmust('体液过多症状')">
  799. <el-select
  800. v-model="dialysisPrescription.body_fluid"
  801. placeholder="请选择"
  802. style="width:100%;"
  803. >
  804. <el-option :key="0" label="请选择" :value="0"></el-option>
  805. <el-option
  806. v-for="(item, index) in body_fluid_option"
  807. :label="item.name"
  808. :key="index + 't'"
  809. :value="item.id"
  810. ></el-option>
  811. </el-select>
  812. </el-form-item>
  813. </el-col>
  814. <el-col :span="8" v-if="isShows('体液过多其他症状')">
  815. <el-form-item label="体液过多其他症状" prop="body_fluid_other" :rules="isCheckmust('体液过多其他症状')">
  816. <el-input
  817. v-model="dialysisPrescription.body_fluid_other"
  818. ></el-input>
  819. </el-form-item>
  820. </el-col>
  821. <el-col :span="8" v-if="isShows('透析前使用特殊药物')" >
  822. <el-form-item label="透析前使用特殊药物" prop="special_medicine" :rules="isCheckmust('透析前使用特殊药物')">
  823. <el-select
  824. v-model="dialysisPrescription.special_medicine"
  825. placeholder="请选择"
  826. style="width:100%;"
  827. >
  828. <el-option :key="0" label="请选择" :value="0"></el-option>
  829. <el-option
  830. v-for="(item, index) in special_medicine_option"
  831. :label="item.name"
  832. :key="index + 'y'"
  833. :value="item.id"
  834. ></el-option>
  835. </el-select>
  836. </el-form-item>
  837. </el-col>
  838. <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')" >
  839. <el-form-item label="透析前使用其他特殊药物" prop="special_medicine_other" :rules="isCheckmust('透析前使用其他特殊药物')">
  840. <el-input
  841. v-model="dialysisPrescription.special_medicine_other"
  842. ></el-input>
  843. </el-form-item>
  844. </el-col>
  845. <el-col :span="8">
  846. <el-form-item
  847. label="置换方式:"
  848. v-if="isShows('置换液')&&this.$store.getters.xt_user.org.id != 10206"
  849. v-show="huShow"
  850. prop="displace_liqui_part"
  851. :rules="isCheckmust('置换液')"
  852. >
  853. <el-select
  854. v-model="dialysisPrescription.displace_liqui_part"
  855. placeholder="请选择"
  856. >
  857. <el-option :key="0" label="请选择" :value="0"></el-option>
  858. <el-option
  859. v-for="(option, index) in displace_liqui_part_option"
  860. :key="index + 'u'"
  861. :label="option.name"
  862. :value="option.id"
  863. ></el-option>
  864. </el-select>
  865. </el-form-item>
  866. <el-form-item
  867. label="置换方式:"
  868. v-if="isShows('置换方式')&&this.$store.getters.xt_user.org.id == 10206"
  869. v-show="huShow"
  870. prop="displace_liqui_part"
  871. :rules="isCheckmust('置换方式')"
  872. >
  873. <el-select
  874. v-model="dialysisPrescription.displace_liqui_part"
  875. placeholder="请选择"
  876. >
  877. <el-option :key="0" label="请选择" :value="0"></el-option>
  878. <el-option
  879. v-for="(option, index) in displace_liqui_part_option"
  880. :key="index + 'u'"
  881. :label="option.name"
  882. :value="option.id"
  883. ></el-option>
  884. </el-select>
  885. </el-form-item>
  886. </el-col>
  887. <el-col :span="8">
  888. </el-col>
  889. <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
  890. <el-form-item label="置换液总量(L)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')" v-if="dialysisPrescription.mode_id!=26">
  891. <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
  892. </el-form-item>
  893. <el-form-item label="置换液总量(L)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')" v-if="dialysisPrescription.mode_id ==26">
  894. <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
  895. </el-form-item>
  896. </el-col>
  897. <!-- <el-col :span="8"
  898. 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 != 10206) || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10721"
  899. v-show="totalShow">
  900. <el-form-item label="置换液总量(L)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')" v-if="dialysisPrescription.mode_id!=26"
  901. <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
  902. </el-form-item>
  903. <el-form-item label="置换液总量(L/h)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')" v-if="dialysisPrescription.mode_id ==26">
  904. <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
  905. </el-form-item>
  906. </el-col> -->
  907. <el-col :span="8" v-if="isShows('目标KT/V')">
  908. <el-form-item label="目标KT/V" prop="target_ktv" :rules="isCheckmust('目标KT/V')">
  909. <el-input v-model="dialysisPrescription.target_ktv"></el-input>
  910. </el-form-item>
  911. </el-col>
  912. <el-col :span="8">
  913. <el-form-item label="血管通路部位: " :prop="isName('血管通路部位')"
  914. :rules="isCheckmust('血管通路部位')" v-if="isShows('血管通路部位')">
  915. <el-input v-model="dialysisPrescription.blood_access_part_id" readonly @focus="showInnerDialog('17')"></el-input>
  916. </el-form-item>
  917. </el-col>
  918. <el-col :span="8" v-if="isShows('血管通路')">
  919. <el-form-item label="血管通路:" prop="blood_access" :rules="isCheckmust('血管通路')">
  920. <el-select
  921. v-model="dialysisPrescription.blood_access"
  922. placeholder="请选择"
  923. >
  924. <el-option :key="0" label="请选择" :value="0"></el-option>
  925. <el-option
  926. v-for="(option, index) in blood_access_option"
  927. :key="index + 'i'"
  928. :label="option.name"
  929. :value="option.id"
  930. ></el-option>
  931. </el-select>
  932. </el-form-item>
  933. </el-col>
  934. <el-col :span="8" v-if="isShows('抗凝提前停止')">
  935. <el-form-item label="抗凝提前停止(h): " prop="anticoagulant_stop_time_hour" :rules="isCheckmust('抗凝提前停止')">
  936. <el-input
  937. type="number"
  938. v-model="dialysisPrescription.anticoagulant_stop_time_hour"
  939. ></el-input>
  940. </el-form-item>
  941. </el-col>
  942. <el-col :span="8" v-if="isShows('抗凝提前停止')">
  943. <el-form-item label="抗凝提前停止(min): " prop="anticoagulant_stop_time_min" :rules="isCheckmust('抗凝提前停止')">
  944. <el-input
  945. type="number"
  946. v-model="dialysisPrescription.anticoagulant_stop_time_min"
  947. ></el-input>
  948. </el-form-item>
  949. </el-col>
  950. <el-col :span="8" v-if="isShows('抽血')">
  951. <el-form-item label="抽血:" prop="blood" :rules="isCheckmust('抽血')">
  952. <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')" ></el-input>
  953. </el-form-item>
  954. </el-col>
  955. <el-col :span="8" v-if="isShows('病情')">
  956. <el-form-item label="病情:" prop="illness" :rules="isCheckmust('病情')">
  957. <el-select v-model="dialysisPrescription.illness" placeholder="请选择">
  958. <el-option :key="0" label="请选择" :value="0"></el-option>
  959. <el-option
  960. v-for="(item, index) in illnessList "
  961. :key="index"
  962. :label="item.name"
  963. :value="item.id"
  964. ></el-option>
  965. </el-select>
  966. </el-form-item>
  967. </el-col>
  968. <el-col :span="8" v-if="isShows('葡萄糖')">
  969. <el-form-item label="葡萄糖(mmol/L):" prop="amylaceum" :rules="isCheckmust('葡萄糖')">
  970. <el-input v-model="dialysisPrescription.amylaceum"></el-input>
  971. </el-form-item>
  972. </el-col>
  973. <el-col :span="8" v-if="isShows('吸氧')">
  974. <el-form-item label="吸氧:" prop="oxygen_uptake" :rules="isCheckmust('吸氧')">
  975. <el-select v-model="dialysisPrescription.oxygen_uptake" placeholder="请选择"
  976. @change="changeOxygenList">
  977. <el-option :key="0" label="请选择" :value="0"></el-option>
  978. <el-option
  979. v-for="(item, index) in oxygenList "
  980. :key="index"
  981. :label="item.name"
  982. :value="item.id"
  983. ></el-option>
  984. </el-select>
  985. </el-form-item>
  986. </el-col>
  987. <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
  988. <el-form-item label="吸氧流量(L/分):" prop="oxygen_flow" :rules="isCheckmust('吸氧流量')">
  989. <el-input v-model="dialysisPrescription.oxygen_flow"></el-input>
  990. </el-form-item>
  991. </el-col>
  992. <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
  993. <el-form-item label="吸氧时长(h):" prop="oxygen_time" :rules="isCheckmust('吸氧时长')">
  994. <el-input v-model="dialysisPrescription.oxygen_time"></el-input>
  995. </el-form-item>
  996. </el-col>
  997. <el-col :span="8" v-if="isShows('透析管路')">
  998. <el-form-item label="透析管路:" prop="hemodialysis_pipelines" :rules="isCheckmust('透析管路')">
  999. <el-select
  1000. v-model="dialysisPrescription.hemodialysis_pipelines"
  1001. placeholder="请选择"
  1002. style="width:100%;"
  1003. >
  1004. <el-option :key="0" label="请选择" :value="0"></el-option>
  1005. <el-option
  1006. v-for="(item, index) in hemodialysisPipelinesOptions"
  1007. :label="item.name"
  1008. :key="index + 't'"
  1009. :value="item.name"
  1010. ></el-option>
  1011. </el-select>
  1012. </el-form-item>
  1013. </el-col>
  1014. <el-col :span="8" v-if="isShows('透析管路支数')">
  1015. <el-form-item label="透析管路支数" prop="hemodialysis_pipelines_count" :rules="isCheckmust('透析管路支数')">
  1016. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.hemodialysis_pipelines_count"
  1017. ></el-input>
  1018. </el-form-item>
  1019. </el-col>
  1020. <el-col :span="8" v-if="isShows('穿刺针')">
  1021. <el-form-item label="穿刺针" prop="puncture_needle" :rules="isCheckmust('穿刺针')">
  1022. <el-input v-model="dialysisPrescription.puncture_needle"
  1023. @focus="showInnerDialog('11')"></el-input>
  1024. </el-form-item>
  1025. </el-col>
  1026. <el-col :span="8" v-if="isShows('穿刺针支数')" >
  1027. <el-form-item label="穿刺针支数" prop="puncture_needle_count" :rules="isCheckmust('穿刺针支数')">
  1028. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.puncture_needle_count"
  1029. ></el-input>
  1030. </el-form-item>
  1031. </el-col>
  1032. <el-col :span="8" v-if="isShows('促红素')">
  1033. <el-form-item label="促红素:" prop="epo" :rules="isCheckmust('促红素')">
  1034. <el-select
  1035. v-model="dialysisPrescription.epo"
  1036. placeholder="请选择"
  1037. style="width:100%;"
  1038. >
  1039. <el-option :key="0" label="请选择" :value="0"></el-option>
  1040. <el-option
  1041. v-for="(item, index) in epoOptions"
  1042. :label="item.name"
  1043. :key="index + 't'"
  1044. :value="item.name"
  1045. ></el-option>
  1046. </el-select>
  1047. </el-form-item>
  1048. </el-col>
  1049. <el-col :span="8" v-if="isShows('促红素支数')">
  1050. <el-form-item label="促红素支数" prop="epo_count" :rules="isCheckmust('促红素支数')">
  1051. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.epo_count"></el-input>
  1052. </el-form-item>
  1053. </el-col>
  1054. <el-col :span="8" v-if="isShows('最大超滤率')">
  1055. <el-form-item label="最大超滤率(ml/h)" prop="max_ultrafiltration_rate" :rules="isCheckmust('最大超滤率')">
  1056. <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.max_ultrafiltration_rate"></el-input>
  1057. </el-form-item>
  1058. </el-col>
  1059. <el-col :span="8" v-if="isShows('处方医生')" >
  1060. <el-form-item label="处方医生" prop="admin_user_id" :rules="isCheckmust('处方医生')">
  1061. <el-select v-model="dialysisPrescription.admin_user_id" placeholder="请选择" style="width:100%;">
  1062. <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
  1063. </el-select>
  1064. </el-form-item>
  1065. </el-col>
  1066. </el-row>
  1067. <el-row :gutter="20">
  1068. <el-col :span="24" v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
  1069. <el-form-item label="透析备注:" prop="value" :rules="isCheckmust('透析备注')">
  1070. <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
  1071. <el-option
  1072. v-for="(item, index) in educationList"
  1073. :label="item.text"
  1074. :value="item.value"
  1075. :key="index"
  1076. ></el-option>
  1077. </el-select>
  1078. </el-form-item>
  1079. </el-col>
  1080. </el-row>
  1081. <el-row :gutter="20">
  1082. <el-col v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
  1083. <el-form-item prop="dialysis_remark" :rules="isCheckmust('透析备注')">
  1084. <el-input
  1085. type="textarea"
  1086. v-model="dialysisPrescription.dialysis_remark"
  1087. :rows="4"
  1088. ></el-input>
  1089. </el-form-item>
  1090. </el-col>
  1091. </el-row>
  1092. <el-row :gutter="20">
  1093. <el-col :span="8" v-if="isShows('处方钠')">
  1094. <el-form-item label="处方钠: " prop="prescription_sodium" :rules="isCheckmust('处方钠')">
  1095. <el-input
  1096. v-model="dialysisPrescription.prescription_sodium"
  1097. :rows="5"
  1098. ></el-input>
  1099. </el-form-item>
  1100. </el-col>
  1101. <el-col :span="8" v-if="isShows('开始钠')">
  1102. <el-form-item label="开始钠: " prop="start_sodium" :rules="isCheckmust('开始钠')">
  1103. <el-input
  1104. v-model="dialysisPrescription.start_sodium"
  1105. :rows="5"
  1106. ></el-input>
  1107. </el-form-item>
  1108. </el-col>
  1109. <el-col :span="8" v-if="isShows('钠曲线')">
  1110. <el-form-item label="钠曲线: " prop="sodium_curve" :rules="isCheckmust('钠曲线')">
  1111. <el-input
  1112. v-model="dialysisPrescription.sodium_curve"
  1113. :rows="5"
  1114. ></el-input>
  1115. </el-form-item>
  1116. </el-col>
  1117. </el-row>
  1118. <el-row>
  1119. <el-col :span="8" v-if="isShows('透析液流速')">
  1120. <el-form-item label="透析液流速(ml/h):" prop="dialysis_fluid_flow" :rules="isCheckmust('透析液流速')">
  1121. <el-input
  1122. v-model="dialysisPrescription.dialysis_fluid_flow"
  1123. :rows="5"
  1124. ></el-input>
  1125. </el-form-item>
  1126. </el-col>
  1127. <el-col :span="8" v-if="isShows('碳酸氢钠流速')">
  1128. <el-form-item label="碳酸氢钠流速(ml/h):" prop="sodium_bicarbonate_flow" :rules="isCheckmust('碳酸氢钠流速')">
  1129. <el-input
  1130. v-model="dialysisPrescription.sodium_bicarbonate_flow"
  1131. :rows="5"
  1132. ></el-input>
  1133. </el-form-item>
  1134. </el-col>
  1135. </el-row>
  1136. <el-row>
  1137. <el-col :span="8">
  1138. <el-form-item label="Ns冲洗量(ml):" :prop="isName('冲洗量')" v-if="isShows('冲洗量') && dialysisPrescription.anticoagulant == 1">
  1139. <el-input v-model="dialysisPrescription.warsh_count"></el-input>
  1140. </el-form-item>
  1141. </el-col>
  1142. <el-col :span="8">
  1143. <el-form-item label="q(h):" :prop="isName('冲洗时间')" v-if="isShows('冲洗时间') && dialysisPrescription.anticoagulant == 1">
  1144. <el-input v-model="dialysisPrescription.washing_time"></el-input>
  1145. </el-form-item>
  1146. </el-col>
  1147. </el-row>
  1148. <el-row :gutter="20">
  1149. <el-col :span="24" v-if="isShows('病情处理')">
  1150. <el-form-item label="病情处理: " prop="treatment_remark" :rules="isCheckmust('病情处理')">
  1151. <el-input
  1152. type="textarea"
  1153. v-model="dialysisPrescription.treatment_remark"
  1154. :rows="5"
  1155. ></el-input>
  1156. </el-form-item>
  1157. </el-col>
  1158. </el-row>
  1159. <el-row :gutter="20">
  1160. <el-col :span="24">
  1161. <el-form-item label="备注: " prop="remark" :rules="isCheckmust('备注')">
  1162. <el-input
  1163. type="textarea"
  1164. v-model="dialysisPrescription.remark"
  1165. :rows="5"
  1166. ></el-input>
  1167. </el-form-item>
  1168. </el-col>
  1169. </el-row>
  1170. </el-form>
  1171. <span slot="footer" class="dialog-footer">
  1172. <el-button @click="handleCancle">取 消</el-button>
  1173. <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
  1174. <el-button type="primary" @click="handleCommit('dialysisPrescription')" :loading="isLoading">保 存</el-button>
  1175. <el-button type="primary" @click="handleSolution('dialysisPrescription')" :loading="isLoading"
  1176. >保存为长期处方</el-button
  1177. >
  1178. </span>
  1179. </el-dialog>
  1180. <!-- 点击保存长期 -->
  1181. <el-dialog
  1182. title="长期医嘱推送"
  1183. :visible.sync="isShowRemindAdvice"
  1184. width="1010px"
  1185. :modal-append-to-body="false"
  1186. :append-to-body="true"
  1187. >
  1188. <div style="display:flex;align-items:center;">
  1189. <span style="font-weight: bold;color: #409eff;width:80px;">开始时间:</span>
  1190. <el-date-picker
  1191. type="datetime"
  1192. format="yyyy-MM-dd HH:mm"
  1193. value-format="yyyy-MM-dd HH:mm"
  1194. placeholder="选择时间"
  1195. v-model="start_time"
  1196. ></el-date-picker>
  1197. <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->
  1198. </div>
  1199. <el-checkbox-group v-model="checkedCities">
  1200. <el-checkbox
  1201. style="display: flex;align-items: center"
  1202. v-for="(advice, index) in targetAdvices"
  1203. :label="advice.id"
  1204. :key="index+'q'"
  1205. :value="advice.id"
  1206. :name="advice.id"
  1207. >
  1208. <div style="padding-top: 10px;padding-left: 10px">
  1209. 开嘱医生&nbsp;{{ getDoctorName(advice.advice_doctor) }}
  1210. </div>
  1211. <br/>
  1212. <div style="padding-left: 10px">
  1213. 开嘱时间&nbsp;{{ getTime(advice.created_time) }}
  1214. </div>
  1215. <br/>
  1216. <div style="padding-bottom: 10px;padding-left: 10px">
  1217. 医嘱内容&nbsp;{{ getContent(advice) }}
  1218. </div>
  1219. <div
  1220. style="padding-bottom: 10px;padding-left: 10px"
  1221. v-if="advice.frequency_type == 1"
  1222. >
  1223. 推送频率 每次必推
  1224. </div>
  1225. <div
  1226. style="padding-bottom: 10px;padding-left: 10px"
  1227. v-if="advice.frequency_type == 2"
  1228. >
  1229. 推送频率&nbsp;{{ advice.day_count }}天/次
  1230. </div>
  1231. <div
  1232. style="padding-bottom: 10px;padding-left: 10px"
  1233. v-if="advice.frequency_type == 3"
  1234. >
  1235. 推送频率&nbsp;每周{{ advice.week_day }}
  1236. </div>
  1237. </el-checkbox>
  1238. </el-checkbox-group>
  1239. <span slot="footer" class="dialog-footer">
  1240. <el-button @click="handleAdviceCancle">取 消</el-button>
  1241. <el-button type="primary" @click="handleAdviceCommit" :loading="isLoading">保 存</el-button>
  1242. </span>
  1243. </el-dialog>
  1244. <el-dialog
  1245. :title="patient.name"
  1246. :visible.sync="msgtip_visibility"
  1247. :close-on-click-modal="false"
  1248. :close-on-press-escape="false"
  1249. :show-close="false"
  1250. width="40%"
  1251. >
  1252. <div class="newLine">
  1253. <span>本次透析日期</span>
  1254. <span>{{ dialysis_date }}</span>
  1255. </div>
  1256. <div class="newLine">
  1257. <span>透前称重(kg)</span>
  1258. <span>{{ getBeforeWeight(predialysis) }}</span>
  1259. </div>
  1260. <div class="newLine">
  1261. <span>干体重(kg)</span>
  1262. <span>{{ getDryWeight() }}</span>
  1263. </div>
  1264. <div class="newLine">
  1265. <span>衣物重(kg)</span>
  1266. <span>{{ predialysis.additional_weight }}</span>
  1267. </div>
  1268. <div class="newLine">
  1269. <span>体重增加(kg)</span>
  1270. <span>{{ add_weight }}</span>
  1271. </div>
  1272. <div class="newLine">
  1273. <span>透后称重(kg)</span>
  1274. <span>{{ getAfterWeight(record) }}</span>
  1275. </div>
  1276. <div class="newLine">
  1277. <span>体重减少(kg)</span>
  1278. <span>{{ record.weight_loss }}</span>
  1279. </div>
  1280. <div class="newLine">
  1281. <span>上次透后称重(kg)</span>
  1282. <span>{{ getLastAfterWeight(last_record) }}</span>
  1283. </div>
  1284. <div class="newLine"><span>近五次数据展示:</span></div>
  1285. <div>
  1286. <el-table
  1287. :data="tableData"
  1288. border
  1289. style="width: 100%">
  1290. <el-table-column prop="date" label="透析日期" width="100">
  1291. <template slot-scope="scope">
  1292. {{getTimeOne(scope.row.assessment_date) }}
  1293. </template>
  1294. </el-table-column>
  1295. <!-- <el-table-column prop="name" label="透前血压(mmHg)" width="140">
  1296. <template slot-scope="scope">
  1297. {{scope.row.systolic_blood_pressure}}/{{scope.row.diastolic_blood_pressure}}
  1298. </template>
  1299. </el-table-column> -->
  1300. <el-table-column prop="name" label="透中血压(mmHg)" width="140">
  1301. <template slot-scope="scope">
  1302. {{ GetMonitorList(scope.row.assessment_date) }}
  1303. </template>
  1304. </el-table-column>
  1305. <el-table-column prop="address" label="透后体重(kg)" width="160">
  1306. <template slot-scope="scope">
  1307. {{GetLast(scope.row.assessment_date)}}
  1308. </template>
  1309. </el-table-column>
  1310. <el-table-column width="180" prop="address" label="透析器评级">
  1311. <template slot-scope="scope">
  1312. {{GetLastCruor(scope.row.assessment_date)}}
  1313. </template>
  1314. </el-table-column>
  1315. </el-table>
  1316. </div>
  1317. <span slot="footer" class="dialog-footer">
  1318. <el-button @click="cancleMsg()">取 消</el-button>
  1319. <el-button type="primary" @click="cancleMsg()">确 定</el-button>
  1320. </span>
  1321. </el-dialog>
  1322. <multi-select-box
  1323. :propsForm="InnerDialogProps"
  1324. v-on:dialog-comfirm="innerDialogComfirm"
  1325. v-on:dialog-cancle="innerDialogCancle"
  1326. ></multi-select-box>
  1327. <radio-select-box
  1328. :propsForm="InnerDialogPropsOne"
  1329. v-on:dialog-comfirm="innerDialogComfirmOne"
  1330. v-on:dialog-cancle="innerDialogCancleOne">
  1331. </radio-select-box>
  1332. <el-dialog
  1333. title="提示"
  1334. :visible.sync="infoDialogVisible"
  1335. width="30%">
  1336. <span>
  1337. <el-form>
  1338. <el-row>
  1339. <span>申请日期:</span>
  1340. <span>
  1341. <el-date-picker
  1342. type="datetime"
  1343. format="yyyy-MM-dd HH:mm"
  1344. value-format="yyyy-MM-dd HH:mm"
  1345. placeholder="选择时间"
  1346. v-model="selected_date"
  1347. ></el-date-picker>
  1348. </span>
  1349. </el-row>
  1350. <el-row>
  1351. <span>备注:</span>
  1352. <span>
  1353. <el-input v-model="remark" style="width:200px"></el-input>
  1354. </span>
  1355. </el-row>
  1356. </el-form>
  1357. </span>
  1358. <span slot="footer" class="dialog-footer">
  1359. <el-button @click="infoDialogVisible = false">取 消</el-button>
  1360. <el-button type="primary" @click="saveInformation">确 定</el-button>
  1361. </span>
  1362. </el-dialog>
  1363. </div>
  1364. </template>
  1365. <script>
  1366. import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution,saveInformation,getPatientRecordList,getPatientBefor } from '@/api/dialysis'
  1367. import { getDataConfig } from '@/utils/data'
  1368. import { calculateAnticoagulantZL, uParseTime,replacementFlow } from '@/utils/tools'
  1369. import store from '@/store'
  1370. import MsgTip from './MsgTip'
  1371. import request from '@/utils/request'
  1372. import multiSelectBox from './MultiSelectBox'
  1373. import radioSelectBox from './RadioSelectBox'
  1374. const moment = require('moment')
  1375. export default {
  1376. name: 'dialysisPrescriptionDialog',
  1377. components: { MsgTip, multiSelectBox,radioSelectBox },
  1378. props: {
  1379. mode_id: {
  1380. type: Number
  1381. },
  1382. schedual: {
  1383. type: Object
  1384. },
  1385. is_open: {
  1386. type: Number,
  1387. default: () => {
  1388. return 0
  1389. }
  1390. },
  1391. waitUploadAdvices: {
  1392. type: Array,
  1393. default: () => {
  1394. return []
  1395. }
  1396. },
  1397. targetAdvices: {
  1398. type: Array,
  1399. default: () => {
  1400. return []
  1401. }
  1402. },
  1403. admin_users: {
  1404. type: Array,
  1405. default: () => {
  1406. return []
  1407. }
  1408. },
  1409. niprocart_info: {
  1410. type: Array,
  1411. default: () => {
  1412. return []
  1413. }
  1414. },
  1415. jms_info: {
  1416. type: Array,
  1417. default: () => {
  1418. return []
  1419. }
  1420. },
  1421. fistula_needle_set_info: {
  1422. type: Array,
  1423. default: () => {
  1424. return []
  1425. }
  1426. },
  1427. fistula_needle_set_16_info: {
  1428. type: Array,
  1429. default: () => {
  1430. return []
  1431. }
  1432. },
  1433. hemoperfusion_info: {
  1434. type: Array,
  1435. default: () => {
  1436. return []
  1437. }
  1438. },
  1439. dialyser_sterilised_info: {
  1440. type: Array,
  1441. default: () => {
  1442. return []
  1443. }
  1444. },
  1445. filtryzer_info: {
  1446. type: Array,
  1447. default: () => {
  1448. return []
  1449. }
  1450. },
  1451. dialyzers_info: {
  1452. type: Array,
  1453. default: () => {
  1454. return []
  1455. }
  1456. },
  1457. injector_info: {
  1458. type: Array,
  1459. default: () => {
  1460. return []
  1461. }
  1462. },
  1463. bloodlines_info: {
  1464. type: Array,
  1465. default: () => {
  1466. return []
  1467. }
  1468. },
  1469. tubingHemodialysis_info: {
  1470. type: Array,
  1471. default: () => {
  1472. return []
  1473. }
  1474. },
  1475. safe_package_info: {
  1476. type: Array,
  1477. default: () => {
  1478. return []
  1479. }
  1480. },
  1481. aliquid_info: {
  1482. type: Array,
  1483. default: () => {
  1484. return []
  1485. }
  1486. },
  1487. config: {
  1488. type: Object,
  1489. default: () => {
  1490. return { id: 0 }
  1491. }
  1492. },
  1493. prescription: {
  1494. // 透析处方
  1495. type: Object,
  1496. default: () => {
  1497. return { id: 0 }
  1498. }
  1499. },
  1500. solution: {
  1501. // 长期处方
  1502. type: Object,
  1503. default: () => {
  1504. return { id: 0 }
  1505. }
  1506. },
  1507. dialysis_order: {
  1508. // 透析记录
  1509. type: Object,
  1510. default: () => {
  1511. return { id: 0 }
  1512. }
  1513. },
  1514. patient: {
  1515. // 患者信息
  1516. type: Object,
  1517. default: () => {
  1518. return { id: 0 }
  1519. }
  1520. },
  1521. devices: {
  1522. type: Array,
  1523. default: function() {
  1524. return new Array()
  1525. }
  1526. },
  1527. predialysis: {
  1528. type: Object,
  1529. default: () => {
  1530. return { id: 0 }
  1531. }
  1532. },
  1533. last_predialysis: {
  1534. type: Object,
  1535. default: () => {
  1536. return { id: 0 }
  1537. }
  1538. },
  1539. record: {
  1540. type: Object,
  1541. default: () => {
  1542. return { id: 0 }
  1543. }
  1544. },
  1545. last_record: {
  1546. type: Object,
  1547. default: () => {
  1548. return { id: 0 }
  1549. }
  1550. },
  1551. dry_weight: {
  1552. type: Object,
  1553. default: () => {
  1554. return { id: 0 }
  1555. }
  1556. },
  1557. last_prescription: {
  1558. type: Object,
  1559. default: () => {
  1560. return { id: 0 }
  1561. }
  1562. },
  1563. scheudle_mode: Number,
  1564. stockType: {
  1565. type: Array,
  1566. default: () => {
  1567. return []
  1568. }
  1569. },
  1570. lastAssessment: {
  1571. type: Object,
  1572. default: () => {
  1573. return { id: 0 }
  1574. }
  1575. },
  1576. admins: {
  1577. type: Array
  1578. },
  1579. },
  1580. computed: {
  1581. dialysis_date: function() {
  1582. if (this.$route.query.date) {
  1583. return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
  1584. } else {
  1585. return this.record_date
  1586. }
  1587. }
  1588. },
  1589. data() {
  1590. return {
  1591. InnerDialogProps: {
  1592. values: [],
  1593. visibility: false,
  1594. isShowTextArea: true,
  1595. customContent: '',
  1596. titles: '',
  1597. type: '' // 不同弹框类型,用来匹配数据
  1598. },
  1599. InnerDialogPropsOne:{
  1600. values: [],
  1601. visibility: false,
  1602. isShowTextArea: true,
  1603. customContent: '',
  1604. titles: '',
  1605. type: '' // 不同弹框类型,用来匹配数据
  1606. },
  1607. advice_start_time: '',
  1608. showTxt: '',
  1609. start_time: '',
  1610. hasPermission: true,
  1611. zhiShow: false,
  1612. totalShow: false,
  1613. huShow: false,
  1614. showName: '',
  1615. isShowRemindAdvice: false,
  1616. checkedCities: [],
  1617. isVisibility: false,
  1618. isShowTime: false,
  1619. isClose: false,
  1620. isShow: false,
  1621. record_date: '',
  1622. time: '',
  1623. treatment_mode: [],
  1624. timeValue: '',
  1625. deviceList: [],
  1626. replacement_ways: [],
  1627. anticoagulantsConfit: {},
  1628. dialysate_formulation_options: [],
  1629. add_weight: 0,
  1630. body_fluid_option: [],
  1631. special_medicine_option: [],
  1632. displace_liqui_part_option: [],
  1633. blood_access_option: [],
  1634. is_pre: 0,
  1635. msgtip_visibility: false,
  1636. startVisibility:false,
  1637. dialysisPrescription: {
  1638. replacement_total: '',
  1639. mode_id: '',
  1640. dialysis_duration: '',
  1641. dialysis_duration_hour: '',
  1642. dialysis_duration_minute: '0',
  1643. mode_name: '',
  1644. dialyzer: '',
  1645. perfusion_apparatus: '',
  1646. blood_flow_volume: '',
  1647. dewater_amount: '',
  1648. displace_liqui: '',
  1649. replacement_way: '',
  1650. anticoagulant: '',
  1651. anticoagulant_shouji: '',
  1652. anticoagulant_weichi: '',
  1653. anticoagulant_zongliang: '',
  1654. anticoagulant_gaimingcheng: '',
  1655. anticoagulant_gaijiliang: '',
  1656. kalium: '',
  1657. sodium: '',
  1658. calcium: '',
  1659. bicarbonate: '',
  1660. glucose: '',
  1661. dry_weight: '',
  1662. dialysate_flow: '',
  1663. dialysate_temperature: '',
  1664. target_ultrafiltration: '',
  1665. dialysate_formulation: '',
  1666. conductivity: '',
  1667. doctor: '',
  1668. remark: '',
  1669. dialyzer_perfusion_apparatus: '',
  1670. body_fluid: '',
  1671. body_fluid_other: '',
  1672. special_medicine: '',
  1673. special_medicine_other: '',
  1674. displace_liqui_part: '',
  1675. displace_liqui_value: '',
  1676. ultrafiltration: '',
  1677. blood_access: '',
  1678. niprocart: '',
  1679. jms: '',
  1680. fistula_needle_set: '',
  1681. fistula_needle_set_16: '',
  1682. hemoperfusion: '',
  1683. dialyser_sterilised: '',
  1684. filtryzer: '',
  1685. target_ktv: '',
  1686. dialyzers: '',
  1687. injector: '',
  1688. bloodlines: '',
  1689. tubing_hemodialysis: '',
  1690. package: '',
  1691. a_liquid: '',
  1692. no_anticoagulant_shouji: '0',
  1693. no_anticoagulant_weichi: '0',
  1694. no_anticoagulant_zongliang: '0',
  1695. creater: 0,
  1696. pre_impulse: 0, //预冲量
  1697. anticoagulant_stop_time_hour: '',
  1698. anticoagulant_stop_time_min: '',
  1699. push_the_protamine: '',//下机前推注鱼精蛋白
  1700. heparin_sodium: '', //肝素钠
  1701. nucleoprotamine: '',//鱼精蛋白
  1702. no_heparin_remarks: '',
  1703. blood: '',
  1704. dialysis_dialyszers: '',
  1705. dialysis_irrigation: '',
  1706. irrigation: '',
  1707. antioxidant_commodity_name: '',
  1708. displace_speed: '',
  1709. illness: '',
  1710. amylaceum: '',
  1711. single_time: '',
  1712. single_water: '',
  1713. replacement_flow: '',
  1714. plasma_separator: '',
  1715. bilirubin_adsorption_column: '',
  1716. oxygen_uptake: '',
  1717. oxygen_flow: '',
  1718. oxygen_time: '',
  1719. hemodialysis_pipelines: '',
  1720. hemodialysis_pipelines_count: '',
  1721. puncture_needle: '',
  1722. puncture_needle_count: '',
  1723. epo: '',
  1724. epo_count: '',
  1725. max_ultrafiltration_rate:'',
  1726. hemodialysisPipelinesOptions: [],
  1727. punctureNeedleOptions: [],
  1728. epoOptions: [],
  1729. impulse:0,
  1730. admin_user_id:"",
  1731. drhy_water:"",
  1732. is_water:0,
  1733. dry_water_hour:"",
  1734. water_machine:"否",
  1735. add_amount:"",
  1736. reduce_amount:"",
  1737. dialysis_remark:"",
  1738. prescribing_number:"",
  1739. treatment_remark:"",
  1740. prescription_sodium:"",
  1741. start_sodium:"",
  1742. sodium_curve:"",
  1743. dialysis_fluid_flow:"",
  1744. sodium_bicarbonate_flow:"",
  1745. prescription_water:"",
  1746. dialysis_strainer:"",
  1747. chaptalization:"",
  1748. warsh_count:"",
  1749. washing_time:"",
  1750. blood_access_part_id:"",
  1751. anticoagulant_weichi_hour:"",
  1752. dialyzate:"",
  1753. first_super:0,
  1754. is_sequential:0,
  1755. conduct:""
  1756. },
  1757. anticoagulant: {
  1758. id: 0,
  1759. name: '',
  1760. type: 1,
  1761. shouji: 1,
  1762. weichi: 1,
  1763. zongliang: 1,
  1764. gaimingcheng: -1,
  1765. gaijiliang: -1,
  1766. shouji_unit: 'mg',
  1767. weichi_unit: 'mg/h',
  1768. zongliang_unit: 'mg',
  1769. gaimingcheng_unit: '',
  1770. gaijiliang_unit: ''
  1771. },
  1772. doctorAdvices: [],
  1773. dialyzerPerfusionApparatus: [],
  1774. bloods: [],
  1775. irrigations: [],
  1776. dialyzers: [],
  1777. dialysisStrainerList:[],
  1778. illnessList: [],
  1779. plasmaSeparatorList: [],
  1780. bilirubinAdsorptionColumn: [],
  1781. oxygenList: [
  1782. { id: 1, name: '需' },
  1783. { id: 2, name: '无' }
  1784. ],
  1785. oxygenShow: false,
  1786. hemodialysisPipelinesOptions: [],
  1787. epoOptions: [],
  1788. isLoading: false,
  1789. adminRoles:[{id:0,name:"请选择"}],
  1790. waterList:[
  1791. {id:0,name:"请选择"},
  1792. {id:1,name:"是"},
  1793. {id:2,name:"否"}
  1794. ],
  1795. waterListOne:[
  1796. {id:0,name:"请选择"},
  1797. {id:1,name:"是"},
  1798. {id:2,name:"否"}
  1799. ],
  1800. waterListTwo:[
  1801. {id:0,name:"请选择"},
  1802. {id:1,name:"是"},
  1803. {id:2,name:"否"}
  1804. ],
  1805. waterListThree:[
  1806. {id:0,name:"请选择"},
  1807. {id:1,name:"是"},
  1808. {id:2,name:"否"}
  1809. ],
  1810. dialyzateList:[
  1811. {id:0,name:"请选择"},
  1812. {id:1,name:"碳酸"},
  1813. {id:2,name:"醋酸"}
  1814. ],
  1815. machineList:[
  1816. {id:1,name:"是"},
  1817. {id:2,name:"否"}
  1818. ],
  1819. zongliang:"",
  1820. educationList:[],
  1821. value:"",
  1822. infoDialogVisible:false,
  1823. selected_date:"",
  1824. remark:"",
  1825. blood_access_part: [],
  1826. tableData:[],
  1827. afterList:[],
  1828. monitorList:[],
  1829. org_id:'',
  1830. }
  1831. },
  1832. methods: {
  1833. changeOxygenList(val) {
  1834. if (val == 1) {
  1835. this.oxygenShow = true
  1836. }
  1837. if (val == 2) {
  1838. this.oxygenShow = false
  1839. this.prescription.oxygen_flow = ''
  1840. this.prescription.oxygen_time = ''
  1841. }
  1842. },
  1843. changeTime: function(val) {
  1844. this.advice_start_time = val
  1845. },
  1846. showInnerDialog: function(val) {
  1847. console.log("处方=======================",val)
  1848. if(val == 20 || val == 21){
  1849. this.InnerDialogPropsOne.visibility = true
  1850. }else{
  1851. this.InnerDialogProps.visibility = true
  1852. }
  1853. switch (val) {
  1854. case '5': // 透析器/灌流器
  1855. this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
  1856. this.InnerDialogProps.titles = '透析器/灌流器'
  1857. this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
  1858. this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
  1859. this.InnerDialogProps.isShowTextArea = false
  1860. break
  1861. case '6': // 透析器/灌流器
  1862. this.InnerDialogProps.values = this.bloods
  1863. this.InnerDialogProps.titles = '抽血'
  1864. this.InnerDialogProps.type = 'blood'
  1865. this.InnerDialogProps.selected = this.dialysisPrescription.blood
  1866. this.InnerDialogProps.isShowTextArea = false
  1867. case '7': // 透析器
  1868. for (let i = 0; i < this.dialyzers.length; i++) {
  1869. this.dialyzers[i].name = this.dialyzers[i].specification_name
  1870. }
  1871. this.InnerDialogProps.values = this.dialyzers
  1872. this.InnerDialogProps.titles = '透析器'
  1873. this.InnerDialogProps.type = 'dialyzers'
  1874. this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
  1875. this.InnerDialogProps.isShowTextArea = false
  1876. break
  1877. case '8':
  1878. for (let i = 0; i < this.irrigations.length; i++) {
  1879. this.irrigations[i].name = this.irrigations[i].specification_name
  1880. }
  1881. this.InnerDialogProps.values = this.irrigations
  1882. this.InnerDialogProps.titles = '灌流器'
  1883. this.InnerDialogProps.type = 'irrigations'
  1884. this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
  1885. this.InnerDialogProps.isShowTextArea = false
  1886. break
  1887. case '9': // 血浆灌流器
  1888. this.InnerDialogProps.values = this.plasmaSeparatorList
  1889. this.InnerDialogProps.titles = '血浆灌流器'
  1890. this.InnerDialogProps.type = 'plasma_separator'
  1891. this.InnerDialogProps.selected = this.dialysisPrescription.plasma_separator
  1892. this.InnerDialogProps.isShowTextArea = false
  1893. break
  1894. mu
  1895. case '10': // 胆红素吸附柱
  1896. this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
  1897. this.InnerDialogProps.titles = '胆红素吸附柱'
  1898. this.InnerDialogProps.type = 'bilirubin_adsorption_column'
  1899. this.InnerDialogProps.selected = this.dialysisPrescription.bilirubin_adsorption_column
  1900. this.InnerDialogProps.isShowTextArea = false
  1901. break
  1902. case '11': //穿刺针
  1903. this.InnerDialogProps.values = this.punctureNeedleOptions
  1904. this.InnerDialogProps.titles = '穿刺针'
  1905. this.InnerDialogProps.type = 'puncture_needle'
  1906. this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
  1907. this.InnerDialogProps.isShowTextArea = false
  1908. break
  1909. case '12':
  1910. for (let i = 0; i < this.dialysisStrainerList.length; i++) {
  1911. this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
  1912. }
  1913. this.InnerDialogProps.values = this.dialysisStrainerList
  1914. this.InnerDialogProps.titles = '滤过器'
  1915. this.InnerDialogProps.type = 'dialysis_strainer'
  1916. this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_strainer
  1917. this.InnerDialogProps.isShowTextArea = false
  1918. break
  1919. case '17': // 水肿
  1920. this.InnerDialogProps.values = this.blood_access_part
  1921. this.InnerDialogProps.titles = '血管通路部位'
  1922. this.InnerDialogProps.type = 'blood_access_part_id'
  1923. this.InnerDialogProps.selected = this.dialysisPrescription.blood_access_part_id
  1924. this.InnerDialogProps.isShowTextArea = false
  1925. break
  1926. case '20': // 透析器
  1927. for (let i = 0; i < this.dialyzers.length; i++) {
  1928. this.dialyzers[i].name = this.dialyzers[i].specification_name
  1929. }
  1930. this.InnerDialogPropsOne.values = this.dialyzers
  1931. this.InnerDialogPropsOne.titles = '透析器'
  1932. this.InnerDialogPropsOne.type = 'dialyzers'
  1933. this.InnerDialogPropsOne.selected = this.dialysisPrescription.dialysis_dialyszers
  1934. this.InnerDialogPropsOne.isShowTextArea = false
  1935. break
  1936. case '21':
  1937. for (let i = 0; i < this.irrigations.length; i++) {
  1938. this.irrigations[i].name = this.irrigations[i].specification_name
  1939. }
  1940. this.InnerDialogPropsOne.values = this.irrigations
  1941. this.InnerDialogPropsOne.titles = '灌流器'
  1942. this.InnerDialogPropsOne.type = 'irrigations'
  1943. this.InnerDialogPropsOne.selected = this.dialysisPrescription.dialysis_irrigation
  1944. this.InnerDialogPropsOne.isShowTextArea = false
  1945. break
  1946. }
  1947. },
  1948. innerDialogComfirm: function(val) {
  1949. this.InnerDialogProps.visibility = false
  1950. switch (val.type) {
  1951. case 'dialyzer_perfusion_apparatus':
  1952. var newArr = []
  1953. if(this.dialyzerPerfusionApparatus!=null && this.dialyzerPerfusionApparatus.length>0){
  1954. for(let i=0;i<this.dialyzerPerfusionApparatus.length;i++){
  1955. for(let j=0;j<val.value.length;j++){
  1956. if(this.dialyzerPerfusionApparatus[i].name == val.value[j]){
  1957. newArr.push(val.value[j])
  1958. }
  1959. }
  1960. }
  1961. }
  1962. if(newArr!=null && newArr.length>0){
  1963. this.dialysisPrescription.dialyzer_perfusion_apparatus = newArr.join(',')
  1964. }else{
  1965. this.dialysisPrescription.dialyzer_perfusion_apparatus = ""
  1966. }
  1967. break
  1968. case 'blood':
  1969. this.dialysisPrescription.blood = val.value.join(',')
  1970. break
  1971. case 'dialyzers':
  1972. var newArr = []
  1973. if(this.dialyzers!=null && this.dialyzers.length >0){
  1974. for(let i=0;i<this.dialyzers.length;i++){
  1975. for(let j=0;j<val.value.length;j++){
  1976. if(this.dialyzers[i].specification_name == val.value[j]){
  1977. newArr.push(val.value[j])
  1978. }
  1979. }
  1980. }
  1981. }
  1982. if(newArr!=null && newArr.length >0){
  1983. this.dialysisPrescription.dialysis_dialyszers = newArr.join(',')
  1984. }else{
  1985. this.dialysisPrescription.dialysis_dialyszers = ""
  1986. }
  1987. break
  1988. case 'irrigations':
  1989. var newArr = []
  1990. if(this.irrigations!=null && this.irrigations.length >0){
  1991. for(let i=0;i<this.irrigations.length;i++){
  1992. for(let j=0;j<val.value.length;j++){
  1993. if(this.irrigations[i].specification_name == val.value[j]){
  1994. newArr.push(val.value[j])
  1995. }
  1996. }
  1997. }
  1998. }
  1999. if(newArr!=null && newArr.length>0){
  2000. this.dialysisPrescription.dialysis_irrigation = newArr.join(',')
  2001. }else{
  2002. this.dialysisPrescription.dialysis_irrigation = ""
  2003. }
  2004. break
  2005. case 'plasma_separator':
  2006. this.dialysisPrescription.plasma_separator = val.value.join(',')
  2007. break
  2008. case 'bilirubin_adsorption_column':
  2009. this.dialysisPrescription.bilirubin_adsorption_column = val.value.join(',')
  2010. break
  2011. case 'puncture_needle':
  2012. this.dialysisPrescription.puncture_needle = val.value.join(',')
  2013. break
  2014. case 'dialysis_strainer':
  2015. this.dialysisPrescription.dialysis_strainer = val.value.join(',')
  2016. break
  2017. case 'blood_access_part_id':
  2018. this.dialysisPrescription.blood_access_part_id = val.value.join(',')
  2019. break
  2020. }
  2021. },
  2022. innerDialogCancle: function() {
  2023. this.InnerDialogProps.visibility = false
  2024. },
  2025. innerDialogComfirmOne: function(val) {
  2026. this.InnerDialogPropsOne.visibility = false
  2027. switch (val.type) {
  2028. case 'dialyzers':
  2029. var newArr = []
  2030. if(this.dialyzers!=null && this.dialyzers.length >0){
  2031. for(let i=0;i<this.dialyzers.length;i++){
  2032. if(this.dialyzers[i].specification_name == val.value){
  2033. newArr.push(val.value)
  2034. }
  2035. }
  2036. }
  2037. if(newArr!=null && newArr.length >0){
  2038. this.dialysisPrescription.dialysis_dialyszers = newArr.join(',')
  2039. }else{
  2040. this.dialysisPrescription.dialysis_dialyszers = ""
  2041. }
  2042. break
  2043. case 'irrigations':
  2044. var newArr = []
  2045. console.log("irrigations0000000000000000",this.irrigations)
  2046. if(this.irrigations!=null && this.irrigations.length >0){
  2047. for(let i=0;i<this.irrigations.length;i++){
  2048. if(this.irrigations[i].specification_name == val.value){
  2049. newArr.push(val.value)
  2050. }
  2051. }
  2052. }
  2053. if(newArr!=null && newArr.length>0){
  2054. this.dialysisPrescription.dialysis_irrigation = newArr.join(',')
  2055. }else{
  2056. this.dialysisPrescription.dialysis_irrigation = ""
  2057. }
  2058. break
  2059. }
  2060. },
  2061. innerDialogCancleOne: function() {
  2062. this.InnerDialogPropsOne.visibility = false
  2063. },
  2064. getDryWeight() {
  2065. if (this.dry_weight != null && this.dry_weight.id > 0) {
  2066. return this.dry_weight.dry_weight
  2067. } else {
  2068. if (this.last_predialysis != null && this.last_predialysis.id > 0) {
  2069. return this.last_predialysis.dry_weight
  2070. } else {
  2071. return ''
  2072. }
  2073. }
  2074. },
  2075. getLastAfterWeight(record) {
  2076. if (record != null && record.id > 0) {
  2077. if (record.weight_after > 0) {
  2078. let additional_weight = 0
  2079. if (this.predialysis.additional_weight != undefined) {
  2080. additional_weight = this.predialysis.additional_weight
  2081. }
  2082. return parseFloat(record.weight_after - additional_weight).toFixed(1)
  2083. } else {
  2084. return ''
  2085. }
  2086. }
  2087. },
  2088. getBeforeWeight(predialysis) {
  2089. if (predialysis.id > 0) {
  2090. if (predialysis.weight_before > 0) {
  2091. return parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1)
  2092. } else {
  2093. return ''
  2094. }
  2095. }
  2096. },
  2097. getAfterWeight(record) {
  2098. if (record.id > 0) {
  2099. if (record.weight_after > 0) {
  2100. return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1)
  2101. } else {
  2102. return ''
  2103. }
  2104. }
  2105. },
  2106. setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis, system_prescribe) {
  2107. this.treatment_mode = this.$store.getters.treatment_mode
  2108. // console.log("99999",this.treatment_mode)
  2109. this.perfusion_apparatus = getDataConfig(
  2110. 'hemodialysis',
  2111. 'perfusion_apparatus'
  2112. )
  2113. this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
  2114. this.dialysate_formulation_options = getDataConfig(
  2115. 'hemodialysis',
  2116. 'dialysate_formulation'
  2117. )
  2118. // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  2119. this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
  2120. console.log("抗凝剂",this.anticoagulantsConfit)
  2121. // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
  2122. // console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
  2123. // }
  2124. // var anticoagulantsConfit = getDataConfig('hemodialysis', 'anticoagulant')
  2125. // const arr = []
  2126. // anticoagulantsConfit.map((item, index) => {
  2127. // const objChild = { ...item }
  2128. // arr.push(objChild)
  2129. // })
  2130. // var arrthree = {}
  2131. // arrthree = { ...arr }
  2132. // console.log('arrthree', arrthree)
  2133. // const arrFour = []
  2134. // Object.keys(anticoagulantsConfitOne).map((item, index) => {
  2135. // arrFour.push(anticoagulantsConfitOne[item])
  2136. // // if (index != 2) {
  2137. // // arrFour.push(anticoagulantsConfitOne[item])
  2138. // // }
  2139. // })
  2140. // console.log("arrFour0-0000000000000wo",arrFour)
  2141. // this.anticoagulantsConfit = arrFour
  2142. this.dialysisList = this.devices
  2143. this.body_fluid_option = this.$store.getters.body_fluid
  2144. this.special_medicine_option = this.$store.getters.special_medicine
  2145. this.displace_liqui_part_option = this.$store.getters.displace_liqui
  2146. this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
  2147. this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
  2148. this.epoOptions = getDataConfig('hemodialysis', 'epo')
  2149. // this.blood_access_option = this.$store.getters.blood_access_internal_fistula;
  2150. this.blood_access_option = getDataConfig(
  2151. 'hemodialysis',
  2152. 'vascular_access_desc'
  2153. )
  2154. // console.log('血管通路', this.blood_access_option)
  2155. this.dialyzerPerfusionApparatus = getDataConfig(
  2156. 'hemodialysis',
  2157. 'dialyzer_perfusion_apparatus'
  2158. )
  2159. // console.log('3333333', this.dialyzerPerfusionApparatus)
  2160. this.bloods = getDataConfig(
  2161. 'hemodialysis',
  2162. 'blood'
  2163. )
  2164. // dialyzerPerfusionApparatus.map(item => {
  2165. // item.name = item.name.toUpperCase()
  2166. // })
  2167. // //去重
  2168. // var arr = this.unique(dialyzerPerfusionApparatus)
  2169. // this.dialyzerPerfusionApparatus = arr
  2170. // console.log('灌流器', arr)
  2171. if (this.$route.query && this.$route.query.date) {
  2172. var date = this.$route.query && this.$route.query.date
  2173. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  2174. } else {
  2175. var date = schedual.schedule_date
  2176. this.record_date = uParseTime(date, '{y}-{m}-{d}')
  2177. }
  2178. if (this.prescription != null && typeof this.prescription.id !== 'undefined' && this.prescription.id > 0) {
  2179. for (const key in this.prescription) {
  2180. this.dialysisPrescription[key] = this.prescription[key]
  2181. }
  2182. } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
  2183. for (const key in this.solution) {
  2184. if (key != 'target_ultrafiltration') {
  2185. this.dialysisPrescription[key] = this.solution[key]
  2186. }
  2187. }
  2188. } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
  2189. for (const key in lastDialysisPrescribe) {
  2190. if (key != 'target_ultrafiltration') {
  2191. this.dialysisPrescription[key] = lastDialysisPrescribe[key]
  2192. }
  2193. }
  2194. } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' && system_prescribe.id > 0) {
  2195. for (const key in system_prescribe) {
  2196. if (key != 'target_ultrafiltration') {
  2197. this.dialysisPrescription[key] = system_prescribe[key]
  2198. }
  2199. }
  2200. } else {
  2201. if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
  2202. this.zhiShow = true
  2203. this.huShow = true
  2204. this.totalShow = true
  2205. if(schedual.mode_id == 2 || schedual.mode_id == 3 || schedual.mode_id == 4 || schedual.mode_id == 12){
  2206. if(this.$store.getters.xt_user.template_info.org_id == 9970){
  2207. this.dialysisPrescription.dialysis_remark = "患者毒素多,出现皮肤瘙痒,定期HDF或HP能改善患者不适症状,有利透析的充分性,因血液透析滤过有更稳定的血流动力学状态,且能有效清除中分子物质;血液灌流能更有效的清除大分子毒素。两者定期治疗能减少透析相关并发症,有得透析充分性,改善患者生活质量。"
  2208. }
  2209. }else{
  2210. this.dialysisPrescription.dialysis_remark=""
  2211. }
  2212. } else {
  2213. this.zhiShow = false
  2214. this.huShow = false
  2215. this.totalShow = false
  2216. }
  2217. // this.dialysisPrescription.mode_id = schedual.mode_id
  2218. }
  2219. var thismode = parseInt(this.dialysisPrescription.anticoagulant)
  2220. if (isNaN(thismode) || thismode <= 0) {
  2221. return false
  2222. }
  2223. if (
  2224. typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
  2225. this.anticoagulantsConfit[thismode] == null
  2226. ) {
  2227. return false
  2228. }
  2229. this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
  2230. },
  2231. menuMsgTip: function() {
  2232. this.msgtip_visibility = false
  2233. this.isVisibility = true
  2234. },
  2235. handleAdviceCommit() {
  2236. let results = []
  2237. for (let i = 0; i < this.targetAdvices.length; i++) {
  2238. for (let a = 0; a < this.checkedCities.length; a++) {
  2239. if (this.targetAdvices[i].id == this.checkedCities[a]) {
  2240. results.push(this.targetAdvices[i])
  2241. }
  2242. }
  2243. }
  2244. var obj5 = {}
  2245. results = results.reduce((cur, next) => {
  2246. obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
  2247. return cur
  2248. }, [])
  2249. var date = new Date()
  2250. var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2251. var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  2252. if (results.length > 0) {
  2253. if(!this.isLoading){
  2254. if (this.is_pre == 1) {
  2255. if (this.patient.id <= 0) {
  2256. this.$message.error('没有选择患者')
  2257. this.loading = false
  2258. return
  2259. }
  2260. var arr = this.dialysisPrescription
  2261. const ParamsQuery = arr
  2262. ParamsQuery['patient'] = this.patient.id
  2263. ParamsQuery['record_date'] = this.record_date
  2264. ParamsQuery['patient_id'] = this.$route.query.patient_id
  2265. if(this.$route.query.patient_id ==undefined){
  2266. ParamsQuery['patient_id'] = this.patient.id
  2267. }
  2268. if (this.prescription.creater <= 0) {
  2269. ParamsQuery['mode'] = '1'
  2270. } else {
  2271. ParamsQuery['mode'] = '2'
  2272. if (
  2273. this.$store.getters.xt_user.user.id !=
  2274. this.dialysisPrescription.creater
  2275. ) {
  2276. ParamsQuery['mode'] = '3'
  2277. }
  2278. }
  2279. this.isLoading = true
  2280. console.log("ParamsQuery233232322323322332232323",ParamsQuery)
  2281. postPrescription(ParamsQuery).then(response => {
  2282. if (response.data.state == 0) {
  2283. this.$message.error(response.data.msg)
  2284. if(response.data.code == 600000008){
  2285. this.infoDialogVisible = true
  2286. }
  2287. this.isLoading = false
  2288. return false
  2289. } else {
  2290. this.$notify({
  2291. title: '成功',
  2292. message: '提交成功',
  2293. type: 'success',
  2294. duration: 2000
  2295. })
  2296. var date = new Date()
  2297. const params = {
  2298. advices: results,
  2299. advice_date: this.start_time.split(' ')[0],
  2300. advice_doctor: results[0].advice_doctor,
  2301. advice_type: results[0].advice_type,
  2302. parent_id: this.patient_id,
  2303. start_time: this.start_time,
  2304. remark: ''
  2305. }
  2306. var patient_id = 0
  2307. if(this.$route.query.patient_id == undefined){
  2308. patient_id = this.patient.id
  2309. }else{
  2310. patient_id = this.$route.query.patient_id
  2311. }
  2312. CreateGroupAdvice(patient_id, 0, params).then(
  2313. rs => {
  2314. var resp = rs.data
  2315. if (resp.state == 1) {
  2316. this.doctorAdvices = resp.data.advices
  2317. this.$emit('advice')
  2318. this.isLoading = false
  2319. } else {
  2320. this.isLoading = false
  2321. if(resp.code == 600000008){
  2322. this.infoDialogVisible = true
  2323. }
  2324. }
  2325. }
  2326. )
  2327. const prescription_resp = response.data.data.prescription
  2328. var prescription = this.prescription
  2329. for (var index in prescription_resp) {
  2330. // prescription[index] = prescription_resp[index];
  2331. this.$set(prescription, index, prescription_resp[index])
  2332. }
  2333. this.hide()
  2334. }
  2335. })
  2336. } else if (this.is_pre == 2) {
  2337. if (this.patient.id <= 0) {
  2338. this.$message.error('没有选择患者')
  2339. this.loading = false
  2340. return
  2341. }
  2342. var arr = this.dialysisPrescription
  2343. const ParamsQuery = arr
  2344. ParamsQuery['patient'] = this.patient.id
  2345. ParamsQuery['record_date'] = this.record_date
  2346. ParamsQuery['mode'] = 1
  2347. postSoulution(ParamsQuery).then(response => {
  2348. if (response.data.state == 0) {
  2349. this.$message.error(response.data.msg)
  2350. if(response.data.code == 600000008){
  2351. this.infoDialogVisible = true
  2352. }
  2353. this.isLoading = false
  2354. return false
  2355. } else {
  2356. this.$notify({
  2357. title: '成功',
  2358. message: '提交成功',
  2359. type: 'success',
  2360. duration: 2000
  2361. })
  2362. // console.log(hour + ':' + minute)
  2363. var date = new Date()
  2364. var hour =
  2365. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  2366. var minute =
  2367. date.getMinutes() < 10
  2368. ? '0' + date.getMinutes()
  2369. : date.getMinutes()
  2370. const params = {
  2371. advices: results,
  2372. advice_date: this.start_time.split(' ')[0],
  2373. advice_doctor: results[0].advice_doctor,
  2374. advice_type: results[0].advice_type,
  2375. parent_id: this.patient_id,
  2376. start_time: this.start_time,
  2377. remark: ''
  2378. }
  2379. var patient_id = 0
  2380. if(this.$route.query.patient_id == undefined){
  2381. patient_id = this.patient.id
  2382. }else{
  2383. patient_id = this.$route.query.patient_id
  2384. }
  2385. CreateGroupAdvice(patient_id, 0, params).then(
  2386. rs => {
  2387. var resp = rs.data
  2388. if (resp.state == 1) {
  2389. // this.doctorAdvices = resp.data.advices
  2390. this.$emit('advice')
  2391. this.isLoading = false
  2392. } else {
  2393. this.isLoading = false
  2394. if(resp.code == 600000008){
  2395. this.infoDialogVisible = true
  2396. }
  2397. }
  2398. }
  2399. )
  2400. const prescription_resp = response.data.data.prescription
  2401. const solution_resp = response.data.data.solution
  2402. var prescription = this.prescription
  2403. var solution = this.solution
  2404. for (var index in prescription_resp) {
  2405. // prescription[index] = prescription_resp[index];
  2406. this.$set(prescription, index, prescription_resp[index])
  2407. }
  2408. for (var index in solution_resp) {
  2409. // solution[index] = solution_resp[index];
  2410. this.$set(solution, index, solution_resp[index])
  2411. }
  2412. this.hide()
  2413. }
  2414. })
  2415. }
  2416. }
  2417. } else {
  2418. if (this.is_pre == 1) {
  2419. if (this.patient.id <= 0) {
  2420. this.$message.error('没有选择患者')
  2421. this.loading = false
  2422. return
  2423. }
  2424. var arr = this.dialysisPrescription
  2425. const ParamsQuery = arr
  2426. // console.log('医嘱推送4', ParamsQuery)
  2427. ParamsQuery['patient'] = this.patient.id
  2428. ParamsQuery['record_date'] = this.record_date
  2429. // console.log(this.prescription)
  2430. let mode = ''
  2431. if (this.prescription.creater <= 0) {
  2432. mode = 1
  2433. } else {
  2434. mode = 2
  2435. }
  2436. ParamsQuery['mode'] = mode
  2437. console.log("paramsquery",ParamsQuery)
  2438. postPrescription(ParamsQuery).then(response => {
  2439. if (response.data.state == 0) {
  2440. this.$message.error(response.data.msg)
  2441. if(response.data.code == 600000008){
  2442. this.infoDialogVisible = true
  2443. }
  2444. return false
  2445. } else {
  2446. this.$notify({
  2447. title: '成功',
  2448. message: '提交成功',
  2449. type: 'success',
  2450. duration: 2000
  2451. })
  2452. const prescription_resp = response.data.data.prescription
  2453. var prescription = this.prescription
  2454. for (var index in prescription_resp) {
  2455. // prescription[index] = prescription_resp[index];
  2456. this.$set(prescription, index, prescription_resp[index])
  2457. }
  2458. this.hide()
  2459. }
  2460. })
  2461. } else if (this.is_pre == 2) {
  2462. if (this.patient.id <= 0) {
  2463. this.$message.error('没有选择患者')
  2464. this.loading = false
  2465. return
  2466. }
  2467. var arr = this.dialysisPrescription
  2468. const ParamsQuery = arr
  2469. ParamsQuery['patient'] = this.patient.id
  2470. ParamsQuery['record_date'] = this.record_date
  2471. ParamsQuery['mode'] = 1
  2472. postSoulution(ParamsQuery).then(response => {
  2473. if (response.data.state == 0) {
  2474. this.$message.error(response.data.msg)
  2475. if(response.data.code == 600000008){
  2476. this.infoDialogVisible = true
  2477. }
  2478. return false
  2479. } else {
  2480. this.$notify({
  2481. title: '成功',
  2482. message: '提交成功',
  2483. type: 'success',
  2484. duration: 2000
  2485. })
  2486. const prescription_resp = response.data.data.prescription
  2487. const solution_resp = response.data.data.solution
  2488. var prescription = this.prescription
  2489. var solution = this.solution
  2490. for (var index in prescription_resp) {
  2491. // prescription[index] = prescription_resp[index];
  2492. this.$set(prescription, index, prescription_resp[index])
  2493. }
  2494. for (var index in solution_resp) {
  2495. // solution[index] = solution_resp[index];
  2496. this.$set(solution, index, solution_resp[index])
  2497. }
  2498. this.hide()
  2499. }
  2500. })
  2501. }
  2502. }
  2503. this.isShowRemindAdvice = false
  2504. this.isVisibility = true
  2505. },
  2506. handleAdviceCancle() {
  2507. this.isShowRemindAdvice = false
  2508. this.isVisibility = true
  2509. },
  2510. getTime(val) {
  2511. return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
  2512. },
  2513. getTimeOne(val) {
  2514. return uParseTime(val, '{y}-{m}-{d}')
  2515. },
  2516. showOne(prescription,admins){
  2517. console.log("prescription",prescription)
  2518. if(prescription!=null && prescription.id == 0){
  2519. console.log("开始啊",admins)
  2520. this.dialysisPrescription.admin_user_id = this.$store.getters.xt_user.user.id
  2521. }else{
  2522. this.dialysisPrescription.admin_user_id = prescription.admin_user_id?this.$store.getters.xt_user.user.id:0
  2523. }
  2524. this.adminRoles = []
  2525. if(admins.length > 0 ){
  2526. for(let i=0;i<admins.length;i++){
  2527. this.adminRoles.push(admins[i])
  2528. }
  2529. }
  2530. },
  2531. show(pre, schedual, last, his_is_open,is_advice_open,admins) {
  2532. console.log("除非=======================")
  2533. if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10726){
  2534. if(this.predialysis!=undefined){
  2535. if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
  2536. this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)
  2537. if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
  2538. this.dialysisPrescription.target_ultrafiltration = 0
  2539. }
  2540. }
  2541. if(this.dialysisPrescription.prescription_water==0 || this.dialysisPrescription.prescription_water==""){
  2542. if((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)>0){
  2543. this.dialysisPrescription.prescription_water = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(1)
  2544. if(this.dialysisPrescription.prescription_water == "NaN"){
  2545. this.dialysisPrescription.prescription_water = 0
  2546. }
  2547. }
  2548. }
  2549. }
  2550. }
  2551. //古镇乐生
  2552. if(this.$store.getters.xt_user.template_info.org_id==10727 || this.$store.getters.xt_user.template_info.org_id==10731){
  2553. if(this.predialysis!=undefined){
  2554. if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
  2555. this.dialysisPrescription.target_ultrafiltration = ((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(0))*1000
  2556. console.log("超滤梁----------------", this.dialysisPrescription.target_ultrafiltration)
  2557. if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
  2558. this.dialysisPrescription.target_ultrafiltration = 0
  2559. }
  2560. }
  2561. }
  2562. }
  2563. if (pre != undefined) {
  2564. this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
  2565. if (pre.oxygen_uptake == 1) {
  2566. this.oxygenShow = true
  2567. }
  2568. if (pre.oxygen_uptake == 2) {
  2569. this.oxygenShow = false
  2570. this.prescription.oxygen_flow = ''
  2571. this.prescription.oxygen_time = ''
  2572. }
  2573. }
  2574. if (his_is_open == 1) {
  2575. this.is_open = 0
  2576. }
  2577. if(is_advice_open == 1){
  2578. this.is_open = 1
  2579. }
  2580. if(this.$store.getters.xt_user.org.id == 10101){
  2581. if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
  2582. var date = new Date(this.predialysis.created_time * 1000)
  2583. var year = date.getFullYear()
  2584. var month = date.getMonth() + 1
  2585. var day = date.getDate()
  2586. var hours = date.getHours()
  2587. var minites = date.getMinutes()
  2588. if (month < 10) {
  2589. month = '0' + month
  2590. }
  2591. if (day < 10) {
  2592. day = '0' + day
  2593. }
  2594. if (hours < 10) {
  2595. hours = '0' + hours
  2596. }
  2597. if (minites < 10) {
  2598. minites = '0' + minites
  2599. }
  2600. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2601. } else {
  2602. var date = new Date()
  2603. var year = date.getFullYear()
  2604. var month = date.getMonth() + 1
  2605. var day = date.getDate()
  2606. var hours = date.getHours()
  2607. var minites = date.getMinutes()
  2608. if (month < 10) {
  2609. month = '0' + month
  2610. }
  2611. if (day < 10) {
  2612. day = '0' + day
  2613. }
  2614. if (hours < 10) {
  2615. hours = '0' + hours
  2616. }
  2617. if (minites < 10) {
  2618. minites = '0' + minites
  2619. }
  2620. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2621. }
  2622. }else{
  2623. var date = new Date()
  2624. var year = date.getFullYear()
  2625. var month = date.getMonth() + 1
  2626. var day = date.getDate()
  2627. var hours = date.getHours()
  2628. var minites = date.getMinutes()
  2629. if (month < 10) {
  2630. month = '0' + month
  2631. }
  2632. if (day < 10) {
  2633. day = '0' + day
  2634. }
  2635. if (hours < 10) {
  2636. hours = '0' + hours
  2637. }
  2638. if (minites < 10) {
  2639. minites = '0' + minites
  2640. }
  2641. 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 || this.$store.getters.xt_user.org.id == 9970) {
  2642. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2643. }else if(this.$store.getters.xt_user.org.id == 9990 || this.$store.getters.xt_user.org.id==10432){
  2644. if (schedual.schedule_type == 1) {
  2645. this.start_time = year + '-' + month + '-' + day + ' ' + '06:00'
  2646. } else if (schedual.schedule_type == 2) {
  2647. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2648. } else if (schedual.schedule_type == 3) {
  2649. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  2650. }
  2651. }else if(this.$store.getters.xt_user.org.id == 9671 ||this.$store.getters.xt_user.org.id == 10340){
  2652. if (schedual.schedule_type == 1) {
  2653. this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
  2654. } else if (schedual.schedule_type == 2) {
  2655. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2656. } else if (schedual.schedule_type == 3) {
  2657. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  2658. }
  2659. }else if(this.$store.getters.xt_user.org.id == 10447){
  2660. if (schedual.schedule_type == 1) {
  2661. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2662. } else if (schedual.schedule_type == 2) {
  2663. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2664. } else if (schedual.schedule_type == 3) {
  2665. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  2666. }
  2667. }else if(this.$store.getters.xt_user.org.id == 10440){
  2668. if (schedual.schedule_type == 1) {
  2669. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2670. } else if (schedual.schedule_type == 2) {
  2671. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2672. } else if (schedual.schedule_type == 3) {
  2673. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2674. }
  2675. }else if(this.$store.getters.xt_user.org.id == 9829){
  2676. if (schedual.schedule_type == 1) {
  2677. this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
  2678. } else if (schedual.schedule_type == 2) {
  2679. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2680. } else if (schedual.schedule_type == 3) {
  2681. this.start_time = year + '-' + month + '-' + day + ' ' + '15:30'
  2682. }
  2683. }else if(this.$store.getters.xt_user.org.id == 10469){
  2684. if (schedual.schedule_type == 1) {
  2685. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2686. } else if (schedual.schedule_type == 2) {
  2687. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2688. } else if (schedual.schedule_type == 3) {
  2689. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2690. }
  2691. }else if(this.$store.getters.xt_user.org.id == 10471){
  2692. if (schedual.schedule_type == 1) {
  2693. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2694. } else if (schedual.schedule_type == 2) {
  2695. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2696. } else if (schedual.schedule_type == 3) {
  2697. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2698. }
  2699. }else if(this.$store.getters.xt_user.org.id == 10580){
  2700. if (schedual.schedule_type == 1) {
  2701. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2702. } else if (schedual.schedule_type == 2) {
  2703. this.start_time = year + '-' + month + '-' + day + ' ' + '10:30'
  2704. } else if (schedual.schedule_type == 3) {
  2705. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2706. }
  2707. }else if(this.$store.getters.xt_user.org.id == 10517){
  2708. if (schedual.schedule_type == 1) {
  2709. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2710. } else if (schedual.schedule_type == 2) {
  2711. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2712. } else if (schedual.schedule_type == 3) {
  2713. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2714. }
  2715. }else if(this.$store.getters.xt_user.org.id == 10383){
  2716. if (schedual.schedule_type == 1) {
  2717. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2718. } else if (schedual.schedule_type == 2) {
  2719. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2720. } else if (schedual.schedule_type == 3) {
  2721. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2722. }
  2723. }else if(this.$store.getters.xt_user.org.id == 10234){
  2724. if (schedual.schedule_type == 1) {
  2725. this.start_time = year + '-' + month + '-' + day + ' ' + '7:30'
  2726. } else if (schedual.schedule_type == 2) {
  2727. this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
  2728. } else if (schedual.schedule_type == 3) {
  2729. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2730. }
  2731. }else if(this.$store.getters.xt_user.org.id == 9850){
  2732. if (schedual.schedule_type == 1) {
  2733. this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
  2734. } else if (schedual.schedule_type == 2) {
  2735. this.start_time = year + '-' + month + '-' + day + ' ' + '11:30'
  2736. } else if (schedual.schedule_type == 3) {
  2737. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2738. }
  2739. }else if(this.$store.getters.xt_user.org.id == 10693){
  2740. if (schedual.schedule_type == 1) {
  2741. this.start_time = year + '-' + month + '-' + day + ' ' + '6:40'
  2742. } else if (schedual.schedule_type == 2) {
  2743. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2744. } else if (schedual.schedule_type == 3) {
  2745. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2746. }
  2747. }else if(this.$store.getters.xt_user.org.id == 10735){
  2748. if (schedual.schedule_type == 1) {
  2749. this.start_time = year + '-' + month + '-' + day + ' ' + '6:00'
  2750. } else if (schedual.schedule_type == 2) {
  2751. this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
  2752. } else if (schedual.schedule_type == 3) {
  2753. this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
  2754. }
  2755. }else if(this.$store.getters.xt_user.org.id == 10353){
  2756. if (schedual.schedule_type == 1) {
  2757. this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
  2758. } else if (schedual.schedule_type == 2) {
  2759. this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
  2760. } else if (schedual.schedule_type == 3) {
  2761. this.start_time = year + '-' + month + '-' + day + ' ' + '17:30'
  2762. }
  2763. }else if (this.$store.getters.xt_user.org.id == 10551){
  2764. var date = new Date()
  2765. var year = date.getFullYear()
  2766. var month = date.getMonth() + 1
  2767. var day = date.getDate()
  2768. var hours = date.getHours()
  2769. var minites = date.getMinutes()
  2770. if (month < 10) {
  2771. month = '0' + month
  2772. }
  2773. if (day < 10) {
  2774. day = '0' + day
  2775. }
  2776. if (hours < 10) {
  2777. hours = '0' + hours
  2778. }
  2779. if (minites < 10) {
  2780. minites = '0' + minites
  2781. }
  2782. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2783. }else if(this.$store.getters.xt_user.org.id == 10495){
  2784. var date = new Date()
  2785. var year = date.getFullYear()
  2786. var month = date.getMonth() + 1
  2787. var day = date.getDate()
  2788. var hours = date.getHours()
  2789. var minites = date.getMinutes()
  2790. if (month < 10) {
  2791. month = '0' + month
  2792. }
  2793. if (day < 10) {
  2794. day = '0' + day
  2795. }
  2796. if (hours < 10) {
  2797. hours = '0' + hours
  2798. }
  2799. if (minites < 10) {
  2800. minites = '0' + minites
  2801. }
  2802. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2803. }else if (this.$store.getters.xt_user.org.id == 10597){
  2804. var date = new Date()
  2805. var year = date.getFullYear()
  2806. var month = date.getMonth() + 1
  2807. var day = date.getDate()
  2808. var hours = date.getHours()
  2809. var minites = date.getMinutes()
  2810. if (month < 10) {
  2811. month = '0' + month
  2812. }
  2813. if (day < 10) {
  2814. day = '0' + day
  2815. }
  2816. if (hours < 10) {
  2817. hours = '0' + hours
  2818. }
  2819. if (minites < 10) {
  2820. minites = '0' + minites
  2821. }
  2822. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2823. }else if (this.$store.getters.xt_user.org.id == 10587){
  2824. var date = new Date()
  2825. var year = date.getFullYear()
  2826. var month = date.getMonth() + 1
  2827. var day = date.getDate()
  2828. var hours = date.getHours()
  2829. var minites = date.getMinutes()
  2830. if (month < 10) {
  2831. month = '0' + month
  2832. }
  2833. if (day < 10) {
  2834. day = '0' + day
  2835. }
  2836. if (hours < 10) {
  2837. hours = '0' + hours
  2838. }
  2839. if (minites < 10) {
  2840. minites = '0' + minites
  2841. }
  2842. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2843. }else if (this.$store.getters.xt_user.org.id == 10587){
  2844. var date = new Date()
  2845. var year = date.getFullYear()
  2846. var month = date.getMonth() + 1
  2847. var day = date.getDate()
  2848. var hours = date.getHours()
  2849. var minites = date.getMinutes()
  2850. if (month < 10) {
  2851. month = '0' + month
  2852. }
  2853. if (day < 10) {
  2854. day = '0' + day
  2855. }
  2856. if (hours < 10) {
  2857. hours = '0' + hours
  2858. }
  2859. if (minites < 10) {
  2860. minites = '0' + minites
  2861. }
  2862. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2863. }else if(this.$store.getters.xt_user.org.id == 10693){
  2864. var date = new Date()
  2865. var year = date.getFullYear()
  2866. var month = date.getMonth() + 1
  2867. var day = date.getDate()
  2868. var hours = date.getHours()
  2869. var minites = date.getMinutes()
  2870. if (month < 10) {
  2871. month = '0' + month
  2872. }
  2873. if (day < 10) {
  2874. day = '0' + day
  2875. }
  2876. if (hours < 10) {
  2877. hours = '0' + hours
  2878. }
  2879. if (minites < 10) {
  2880. minites = '0' + minites
  2881. }
  2882. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2883. }else if(this.$store.getters.xt_user.org.id == 10694){
  2884. var date = new Date()
  2885. var year = date.getFullYear()
  2886. var month = date.getMonth() + 1
  2887. var day = date.getDate()
  2888. var hours = date.getHours()
  2889. var minites = date.getMinutes()
  2890. if (month < 10) {
  2891. month = '0' + month
  2892. }
  2893. if (day < 10) {
  2894. day = '0' + day
  2895. }
  2896. if (hours < 10) {
  2897. hours = '0' + hours
  2898. }
  2899. if (minites < 10) {
  2900. minites = '0' + minites
  2901. }
  2902. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2903. }else if (this.$store.getters.xt_user.org.id == 10587){
  2904. var date = new Date()
  2905. var year = date.getFullYear()
  2906. var month = date.getMonth() + 1
  2907. var day = date.getDate()
  2908. var hours = date.getHours()
  2909. var minites = date.getMinutes()
  2910. if (month < 10) {
  2911. month = '0' + month
  2912. }
  2913. if (day < 10) {
  2914. day = '0' + day
  2915. }
  2916. if (hours < 10) {
  2917. hours = '0' + hours
  2918. }
  2919. if (minites < 10) {
  2920. minites = '0' + minites
  2921. }
  2922. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2923. }else if (this.$store.getters.xt_user.org.id == 10587){
  2924. var date = new Date()
  2925. var year = date.getFullYear()
  2926. var month = date.getMonth() + 1
  2927. var day = date.getDate()
  2928. var hours = date.getHours()
  2929. var minites = date.getMinutes()
  2930. if (month < 10) {
  2931. month = '0' + month
  2932. }
  2933. if (day < 10) {
  2934. day = '0' + day
  2935. }
  2936. if (hours < 10) {
  2937. hours = '0' + hours
  2938. }
  2939. if (minites < 10) {
  2940. minites = '0' + minites
  2941. }
  2942. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2943. }else if (this.$store.getters.xt_user.org.id == 10702){
  2944. var date = new Date()
  2945. var year = date.getFullYear()
  2946. var month = date.getMonth() + 1
  2947. var day = date.getDate()
  2948. var hours = date.getHours()
  2949. var minites = date.getMinutes()
  2950. if (month < 10) {
  2951. month = '0' + month
  2952. }
  2953. if (day < 10) {
  2954. day = '0' + day
  2955. }
  2956. if (hours < 10) {
  2957. hours = '0' + hours
  2958. }
  2959. if (minites < 10) {
  2960. minites = '0' + minites
  2961. }
  2962. this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
  2963. } else {
  2964. if (schedual.schedule_type == 1) {
  2965. this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
  2966. } else if (schedual.schedule_type == 2) {
  2967. this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
  2968. } else if (schedual.schedule_type == 3) {
  2969. this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
  2970. }
  2971. }
  2972. }
  2973. if (pre.anticoagulant == 3) {
  2974. this.dialysisPrescription.anticoagulant = '低分子肝素'
  2975. }
  2976. // 入口
  2977. var pre = pre
  2978. this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
  2979. if (pre.id > 0) {
  2980. this.dialysisPrescription.mode_id = pre.mode_id
  2981. this.dialysisPrescription.water_machine = pre.water_machine
  2982. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  2983. }
  2984. // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
  2985. // console.log('this.schedual', schedual.mode_id)
  2986. 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 || schedual.mode_id == 0 || schedual.mode_id == 37 || schedual.mode_id == 36 || schedual.mode_id == 35 || schedual.mode_id == 34|| schedual.mode_id == 41) {
  2987. this.zhiShow = true
  2988. this.huShow = true
  2989. this.totalShow = true
  2990. } else if (
  2991. pre.mode_id == 1 ||
  2992. pre.mode_id == 3 ||
  2993. pre.mode_id == 4 ||
  2994. pre.mode_id == 6 ||
  2995. pre.mode_id == 7 ||
  2996. pre.mode_id == 8 ||
  2997. pre.mode_id == 9 ||
  2998. pre.mode_id == 11 ||
  2999. pre.mode_id == 13 ||
  3000. pre.mode_id == 14 ||
  3001. pre.mode_id == 19
  3002. ) {
  3003. this.zhiShow = false
  3004. this.huShow = false
  3005. this.totalShow = false
  3006. }
  3007. this.pre = pre
  3008. // console.log("pre1", pre);
  3009. this.getPermission()
  3010. if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726 || this.$store.getters.xt_user.template_info.org_id == 10727 || this.$store.getters.xt_user.template_info.org_id == 10731 || this.$store.getters.xt_user.template_info.org_id == 10735){
  3011. this.getPatientBefor()
  3012. }
  3013. let last_weight_after = 0
  3014. let weight_before = 0
  3015. if (this.last_record == null) {
  3016. last_weight_after = 0
  3017. } else {
  3018. last_weight_after = this.last_record.weight_after
  3019. }
  3020. // console.log("last2323232323232332wode",this.predialysis)
  3021. // console.log("lastwoowowow",last)
  3022. if(this.predialysis!=null && this.predialysis.id == 0){
  3023. if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 || this.$store.getters.xt_user.org.id == 10600){
  3024. this.dialysisPrescription.sodium = 138
  3025. this.dialysisPrescription.bicarbonate = 31.1
  3026. this.dialysisPrescription.dialysate_flow = 500
  3027. this.dialysisPrescription.dialysate_temperature = 36.5
  3028. this.dialysisPrescription.prescribing_number = 1
  3029. }
  3030. if(this.$store.getters.xt_user.org.id == 10447 || this.$store.getters.xt_user.org.id == 10600 ){
  3031. this.dialysisPrescription.dialysate_flow = 500
  3032. }
  3033. if(this.$store.getters.xt_user.org.id == 10375){
  3034. this.dialysisPrescription.dialysate_flow = 500
  3035. this.dialysisPrescription.bicarbonate = 32
  3036. }
  3037. if(this.$store.getters.xt_user.org.id == 10598 || this.$store.getters.xt_user.org.id == 10612){
  3038. if(this.dialysisPrescription.dialysis_duration_minute == ""){
  3039. this.dialysisPrescription.dialysis_duration_minute =0
  3040. }
  3041. if(this.dialysisPrescription.anticoagulant_weichi == ""){
  3042. this.dialysisPrescription.anticoagulant_weichi = 0
  3043. }
  3044. if(this.dialysisPrescription.amylaceum == ""){
  3045. this.dialysisPrescription.amylaceum = 0
  3046. }
  3047. }
  3048. }
  3049. if (this.predialysis == null || this.predialysis.id == 0) {
  3050. if (last != null) {
  3051. this.dialysisPrescription.niprocart = last.niprocart
  3052. this.dialysisPrescription.jms = last.jms
  3053. this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
  3054. this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
  3055. this.dialysisPrescription.hemoperfusion = last.hemoperfusion
  3056. this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
  3057. this.dialysisPrescription.filtryzer = last.filtryzer
  3058. this.dialysisPrescription.target_ktv = last.target_ktv
  3059. this.dialysisPrescription.dialyzers = last.dialyzers
  3060. this.dialysisPrescription.injector = last.injector
  3061. this.dialysisPrescription.bloodlines = last.bloodlines
  3062. this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
  3063. this.dialysisPrescription.package = last.package
  3064. this.dialysisPrescription.a_liquid = last.a_liquid
  3065. this.zongliang = last.anticoagulant_zongliang
  3066. this.dialysisPrescription.chaptalization = last.chaptalization
  3067. this.dialysisPrescription.blood_access_part_id = last.blood_access_part_id
  3068. if(this.$store.getters.xt_user.template_info.org_id!=10013 && this.$store.getters.xt_user.template_info.org_id!=10014){
  3069. this.remark = last.remark
  3070. }
  3071. weight_before = 0
  3072. }
  3073. } else {
  3074. weight_before = this.predialysis.weight_before
  3075. }
  3076. if (weight_before > 0 && last_weight_after > 0) {
  3077. this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
  3078. 2
  3079. )
  3080. // console.log('体重增加', this.add_weight)
  3081. }
  3082. this.isVisibility = true
  3083. this.checkedCities = []
  3084. var total_day = ""
  3085. if(moment().weekday() == 1){
  3086. total_day ="周一"
  3087. }
  3088. if(moment().weekday() == 2){
  3089. total_day ="周二"
  3090. }
  3091. if(moment().weekday() == 3){
  3092. total_day ="周三"
  3093. }
  3094. if(moment().weekday() == 4){
  3095. total_day ="周四"
  3096. }
  3097. if(moment().weekday() == 5){
  3098. total_day ="周五"
  3099. }
  3100. if(moment().weekday() == 6){
  3101. total_day ="周六"
  3102. }
  3103. if(moment().weekday() == 0){
  3104. total_day ="周日"
  3105. }
  3106. if(this.targetAdvices!=null && this.targetAdvices.length >0){
  3107. for (let i = 0; i < this.targetAdvices.length; i++) {
  3108. if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
  3109. this.targetAdvices[i].isCheck = 1
  3110. }
  3111. if(this.targetAdvices[i].frequency_type == 1){
  3112. this.targetAdvices[i].isCheck = 1
  3113. }
  3114. }
  3115. }
  3116. for (let i = 0; i < this.targetAdvices.length; i++) {
  3117. if (this.targetAdvices[i].isCheck == 1) {
  3118. this.checkedCities.push(this.targetAdvices[i].id)
  3119. }
  3120. }
  3121. if(admins.length > 0 ){
  3122. for(let i=0;i<admins.length;i++){
  3123. this.adminRoles.push(admins[i])
  3124. }
  3125. }
  3126. if(this.$store.getters.xt_user.template_info.org_id ==10635 || this.$store.getters.xt_user.template_info.org_id ==0 || this.$store.getters.xt_user.template_info.org_id ==10702 || this.$store.getters.xt_user.template_info.org_id == 10721){
  3127. if(this.dialysisPrescription.target_ultrafiltration == 0 || this.dialysisPrescription.target_ultrafiltration=="" || this.dialysisPrescription.target_ultrafiltration == "undefined" || this.dialysisPrescription.target_ultrafiltration == undefined){
  3128. this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
  3129. if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
  3130. this.dialysisPrescription.target_ultrafiltration = 0
  3131. }
  3132. }
  3133. }
  3134. //古镇乐生
  3135. if(this.$store.getters.xt_user.template_info.org_id==10727 || this.$store.getters.xt_user.template_info.org_id==10731){
  3136. if(this.predialysis!=undefined){
  3137. if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
  3138. this.dialysisPrescription.target_ultrafiltration = ((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(0))*1000
  3139. console.log("目标超滤----------------", this.dialysisPrescription.target_ultrafiltration)
  3140. if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
  3141. this.dialysisPrescription.target_ultrafiltration = 0
  3142. }
  3143. }
  3144. }
  3145. }
  3146. },
  3147. hide() {
  3148. this.isVisibility = false
  3149. },
  3150. changeThisAnticoagulant: function(val) {
  3151. console.log("val",val)
  3152. var thismode = val
  3153. if (isNaN(thismode) || thismode <= 0) {
  3154. return false
  3155. }
  3156. // if (val != 12 && val!=1) {
  3157. // this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
  3158. // }
  3159. // if (val == 12 || val == 1) {
  3160. // this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
  3161. // console.log("抗凝剂",this.anticoagulant)
  3162. // }
  3163. if (
  3164. typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
  3165. this.anticoagulantsConfit[thismode] == null
  3166. ) {
  3167. return false
  3168. }
  3169. this.anticoagulant = this.anticoagulantsConfit[thismode]
  3170. 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) {
  3171. if(val == 2){
  3172. this.anticoagulant.shouji_unit = 'mg'
  3173. }else{
  3174. this.anticoagulant.shouji_unit = 'iu'
  3175. }
  3176. this.anticoagulant.weichi_unit = 'mg/h'
  3177. this.anticoagulant.zongliang_unit = 'mg'
  3178. }
  3179. if (this.$store.getters.xt_user.template_info.template_id == 27 && val == 4) {
  3180. this.anticoagulant.shouji_unit = 'ml'
  3181. this.anticoagulant.weichi_unit = 'ml'
  3182. this.anticoagulant.zongliang_unit = 'ml'
  3183. }
  3184. 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){
  3185. this.dialysisPrescription.anticoagulant_zongliang = ""
  3186. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  3187. }
  3188. },
  3189. handleCommit (formName) {
  3190. if(this.$store.getters.xt_user.template_info.org_id ==10579 ){
  3191. if(this.dialysisPrescription.target_ultrafiltration==0){
  3192. this.$message.error("目标超滤量不能为空")
  3193. return false
  3194. }
  3195. }
  3196. if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
  3197. this.dialysisPrescription.target_ultrafiltration = 0
  3198. }
  3199. if(this.dialysisPrescription.prescription_water == "NaN"){
  3200. this.dialysisPrescription.prescription_water = 0
  3201. }
  3202. this.$refs[formName].validate((valid)=>{
  3203. if(valid){
  3204. if(!this.isLoading){
  3205. if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
  3206. this.dialysisPrescription.anticoagulant = 3
  3207. }
  3208. if (this.dialysisPrescription.anticoagulant == 1 || this.dialysisPrescription.anticoagulant == 12) {
  3209. this.dialysisPrescription.anticoagulant_weichi = '0'
  3210. this.dialysisPrescription.anticoagulant_shouji = '0'
  3211. this.dialysisPrescription.anticoagulant_zongliang = '0'
  3212. }
  3213. // if (this.$store.getters.xt_user.template_info.template_id == 6) {
  3214. // if (this.dialysisPrescription.mode_id == 2) {
  3215. // if (
  3216. // this.dialysisPrescription.displace_liqui_part == 0 ||
  3217. // this.dialysisPrescription.displace_liqui_part == -2 ||
  3218. // this.dialysisPrescription.displace_liqui_value == 0 ||
  3219. // this.dialysisPrescription.displace_liqui_value == ''
  3220. // || this.dialysisPrescription.replacement_total == 0 ||
  3221. // this.dialysisPrescription.replacement_total == '' ||
  3222. // this.dialysisPrescription.displace_speed == 0 ||
  3223. // this.dialysisPrescription.displace_speed == ''
  3224. // ) {
  3225. // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  3226. // return
  3227. // }
  3228. // }
  3229. // }
  3230. if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=10 && this.dialysisPrescription.mode_id!=34 && this.dialysisPrescription.mode_id!=35 && this.dialysisPrescription.mode_id!=36 && this.dialysisPrescription.mode_id!=37 && this.dialysisPrescription.mode_id!=41){
  3231. this.dialysisPrescription.displace_liqui_part = 0
  3232. this.dialysisPrescription.displace_liqui_value = 0
  3233. this.dialysisPrescription.replacement_total = 0
  3234. this.dialysisPrescription.displace_speed = 0
  3235. console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
  3236. console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
  3237. }
  3238. this.is_pre = 1
  3239. if (this.prescription.id == 0) {
  3240. if (this.is_open == 0) {
  3241. if (this.patient.id <= 0) {
  3242. this.$message.error('没有选择患者')
  3243. this.loading = false
  3244. return
  3245. }
  3246. var arr = this.dialysisPrescription
  3247. const ParamsQuery = arr
  3248. // console.log('night', ParamsQuery)
  3249. ParamsQuery['patient'] = this.patient.id
  3250. ParamsQuery['record_date'] = this.record_date
  3251. ParamsQuery['mode'] = '1'
  3252. ParamsQuery['patient_id'] = this.patient.id
  3253. console.log('第一', ParamsQuery)
  3254. postPrescription(ParamsQuery).then(response => {
  3255. if (response.data.state == 0) {
  3256. this.$message.error(response.data.msg)
  3257. if(response.data.code == 600000008){
  3258. this.infoDialogVisible = true
  3259. }
  3260. return false
  3261. } else {
  3262. this.$notify({
  3263. title: '成功',
  3264. message: '提交成功',
  3265. type: 'success',
  3266. duration: 2000
  3267. })
  3268. const prescription_resp = response.data.data.prescription
  3269. var prescription = this.prescription
  3270. for (var index in prescription_resp) {
  3271. // prescription[index] = prescription_resp[index];
  3272. this.$set(prescription, index, prescription_resp[index])
  3273. }
  3274. this.hide()
  3275. }
  3276. })
  3277. } else if (this.is_open == 1) {
  3278. if (this.targetAdvices.length > 0) {
  3279. // 弹框推送提醒
  3280. this.isShowRemindAdvice = true
  3281. this.isVisibility = false
  3282. } else {
  3283. if (this.patient.id <= 0) {
  3284. this.$message.error('没有选择患者')
  3285. this.loading = false
  3286. return
  3287. }
  3288. var arr = this.dialysisPrescription
  3289. const ParamsQuery = arr
  3290. // console.log('ParamsQuerytwo', ParamsQuery)
  3291. ParamsQuery['patient'] = this.patient.id
  3292. ParamsQuery['record_date'] = this.record_date
  3293. ParamsQuery['mode'] = '1'
  3294. ParamsQuery['patient_id'] = this.patient.id
  3295. console.log('第二')
  3296. postPrescription(ParamsQuery).then(response => {
  3297. if (response.data.state == 0) {
  3298. this.$message.error(response.data.msg)
  3299. if(response.data.code == 600000008){
  3300. this.infoDialogVisible = true
  3301. }
  3302. return false
  3303. } else {
  3304. this.$notify({
  3305. title: '成功',
  3306. message: '提交成功',
  3307. type: 'success',
  3308. duration: 2000
  3309. })
  3310. const prescription_resp = response.data.data.prescription
  3311. var prescription = this.prescription
  3312. for (var index in prescription_resp) {
  3313. // prescription[index] = prescription_resp[index];
  3314. this.$set(prescription, index, prescription_resp[index])
  3315. }
  3316. this.hide()
  3317. }
  3318. })
  3319. }
  3320. } else if (this.is_open == 2) {
  3321. var date = new Date()
  3322. var hour =
  3323. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  3324. var minute =
  3325. date.getMinutes() < 10
  3326. ? '0' + date.getMinutes()
  3327. : date.getMinutes()
  3328. if (this.waitUploadAdvices.length > 0) {
  3329. if (this.patient.id <= 0) {
  3330. this.$message.error('没有选择患者')
  3331. this.loading = false
  3332. return
  3333. }
  3334. var arr = this.dialysisPrescription
  3335. const ParamsQuery = arr
  3336. console.log('paramsquerythree', ParamsQuery)
  3337. ParamsQuery['patient'] = this.patient.id
  3338. ParamsQuery['record_date'] = this.record_date
  3339. ParamsQuery['mode'] = '1'
  3340. ParamsQuery['patient_id'] = this.patient.id
  3341. console.log('第三')
  3342. postPrescription(ParamsQuery).then(response => {
  3343. if (response.data.state == 0) {
  3344. this.$message.error(response.data.msg)
  3345. if(response.data.code == 600000008){
  3346. this.infoDialogVisible = true
  3347. }
  3348. return false
  3349. } else {
  3350. this.$notify({
  3351. title: '成功',
  3352. message: '提交成功',
  3353. type: 'success',
  3354. duration: 2000
  3355. })
  3356. const params = {
  3357. advices: this.waitUploadAdvices,
  3358. advice_date: uParseTime(
  3359. this.$route.query.date,
  3360. '{y}-{m}-{d}'
  3361. ),
  3362. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  3363. advice_type: this.waitUploadAdvices[0].advice_type,
  3364. parent_id: this.patient_id,
  3365. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  3366. start_time:
  3367. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  3368. ' ' +
  3369. this.advice_start_time,
  3370. remark: ''
  3371. }
  3372. console.log('params--------', params)
  3373. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  3374. rs => {
  3375. var resp = rs.data
  3376. if (resp.state == 1) {
  3377. // this.doctorAdvices = resp.data.advices
  3378. this.$emit('advice')
  3379. } else {
  3380. if(resp.code == 600000008){
  3381. this.infoDialogVisible = true
  3382. }
  3383. }
  3384. }
  3385. )
  3386. const prescription_resp = response.data.data.prescription
  3387. var prescription = this.prescription
  3388. for (var index in prescription_resp) {
  3389. // prescription[index] = prescription_resp[index];
  3390. this.$set(prescription, index, prescription_resp[index])
  3391. }
  3392. this.hide()
  3393. }
  3394. })
  3395. } else {
  3396. if (this.patient.id <= 0) {
  3397. this.$message.error('没有选择患者')
  3398. this.loading = false
  3399. return
  3400. }
  3401. var arr = this.dialysisPrescription
  3402. const ParamsQuery = arr
  3403. // console.log('paramsqueryfour', ParamsQuery)
  3404. // console.log('创建者', this.prescription.creater)
  3405. // if (this.prescription.creater <= 0) {
  3406. // mode = 1;
  3407. // } else {
  3408. // mode = 2;
  3409. // }
  3410. ParamsQuery['patient'] = this.patient.id
  3411. ParamsQuery['record_date'] = this.record_date
  3412. // console.log(this.prescription);
  3413. console.log('第四')
  3414. ParamsQuery['patient_id'] = this.patient.id
  3415. postPrescription(ParamsQuery).then(response => {
  3416. if (response.data.state == 0) {
  3417. this.$message.error(response.data.msg)
  3418. if(response.data.code == 600000008){
  3419. this.infoDialogVisible = true
  3420. }
  3421. return false
  3422. } else {
  3423. this.$notify({
  3424. title: '成功',
  3425. message: '提交成功',
  3426. type: 'success',
  3427. duration: 2000
  3428. })
  3429. const prescription_resp = response.data.data.prescription
  3430. // console.log("aaaaaaa", prescription_resp);
  3431. var prescription = this.prescription
  3432. for (var index in prescription_resp) {
  3433. // prescription[index] = prescription_resp[index];
  3434. this.$set(prescription, index, prescription_resp[index])
  3435. }
  3436. this.hide()
  3437. }
  3438. })
  3439. }
  3440. }
  3441. } else {
  3442. if (this.prescription.creater == 0) {
  3443. if (this.is_open == 0) {
  3444. if (this.patient.id <= 0) {
  3445. this.$message.error('没有选择患者')
  3446. this.loading = false
  3447. return
  3448. }
  3449. var arr = this.dialysisPrescription
  3450. // console.log('arr', arr)
  3451. const ParamsQuery = arr
  3452. // console.log('paramsqueryfive', ParamsQuery)
  3453. ParamsQuery['patient'] = this.patient.id
  3454. ParamsQuery['record_date'] = this.record_date
  3455. ParamsQuery['mode'] = '1'
  3456. ParamsQuery['patient_id'] = this.patient.id
  3457. console.log('第五')
  3458. postPrescription(ParamsQuery).then(response => {
  3459. if (response.data.state == 0) {
  3460. this.$message.error(response.data.msg)
  3461. if(response.data.code == 600000008){
  3462. this.infoDialogVisible = true
  3463. }
  3464. return false
  3465. } else {
  3466. this.$notify({
  3467. title: '成功',
  3468. message: '提交成功',
  3469. type: 'success',
  3470. duration: 2000
  3471. })
  3472. const prescription_resp = response.data.data.prescription
  3473. var prescription = this.prescription
  3474. for (var index in prescription_resp) {
  3475. // prescription[index] = prescription_resp[index];
  3476. this.$set(prescription, index, prescription_resp[index])
  3477. }
  3478. this.hide()
  3479. }
  3480. })
  3481. } else if (this.is_open == 1) {
  3482. if (this.targetAdvices.length > 0) {
  3483. // 弹框推送提醒
  3484. this.isShowRemindAdvice = true
  3485. this.isVisibility = false
  3486. } else {
  3487. if (this.patient.id <= 0) {
  3488. this.$message.error('没有选择患者')
  3489. this.loading = false
  3490. return
  3491. }
  3492. var arr = this.dialysisPrescription
  3493. // console.log('arr', arr)
  3494. const ParamsQuery = arr
  3495. // console.log('ParamsQuerysix', ParamsQuery)
  3496. ParamsQuery['patient'] = this.patient.id
  3497. ParamsQuery['record_date'] = this.record_date
  3498. ParamsQuery['mode'] = '1'
  3499. console.log('第6')
  3500. ParamsQuery['patient_id'] = this.patient.id
  3501. postPrescription(ParamsQuery).then(response => {
  3502. if (response.data.state == 0) {
  3503. this.$message.error(response.data.msg)
  3504. if(response.data.code == 600000008){
  3505. this.infoDialogVisible = true
  3506. }
  3507. return false
  3508. } else {
  3509. this.$notify({
  3510. title: '成功',
  3511. message: '提交成功',
  3512. type: 'success',
  3513. duration: 2000
  3514. })
  3515. const prescription_resp = response.data.data.prescription
  3516. var prescription = this.prescription
  3517. for (var index in prescription_resp) {
  3518. // prescription[index] = prescription_resp[index];
  3519. this.$set(prescription, index, prescription_resp[index])
  3520. }
  3521. this.hide()
  3522. }
  3523. })
  3524. }
  3525. } else if (this.is_open == 2) {
  3526. var date = new Date()
  3527. var hour =
  3528. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  3529. var minute =
  3530. date.getMinutes() < 10
  3531. ? '0' + date.getMinutes()
  3532. : date.getMinutes()
  3533. if (this.waitUploadAdvices.length > 0) {
  3534. if (this.patient.id <= 0) {
  3535. this.$message.error('没有选择患者')
  3536. this.loading = false
  3537. return
  3538. }
  3539. var arr = this.dialysisPrescription
  3540. // console.log('arr', arr)
  3541. const ParamsQuery = arr
  3542. // console.log('parasmqueryseven', parasmqueryseven)
  3543. ParamsQuery['patient'] = this.patient.id
  3544. ParamsQuery['record_date'] = this.record_date
  3545. ParamsQuery['mode'] = '1'
  3546. console.log('第七')
  3547. ParamsQuery['patient_id'] = this.patient.id
  3548. postPrescription(ParamsQuery).then(response => {
  3549. if (response.data.state == 0) {
  3550. this.$message.error(response.data.msg)
  3551. if(response.data.code == 600000008){
  3552. this.infoDialogVisible = true
  3553. }
  3554. return false
  3555. } else {
  3556. this.$notify({
  3557. title: '成功',
  3558. message: '提交成功',
  3559. type: 'success',
  3560. duration: 2000
  3561. })
  3562. const params = {
  3563. advices: this.waitUploadAdvices,
  3564. advice_date: uParseTime(
  3565. this.$route.query.date,
  3566. '{y}-{m}-{d}'
  3567. ),
  3568. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  3569. advice_type: this.waitUploadAdvices[0].advice_type,
  3570. parent_id: this.patient_id,
  3571. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  3572. start_time:
  3573. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  3574. ' ' +
  3575. hour +
  3576. ':' +
  3577. minute,
  3578. remark: ''
  3579. }
  3580. CreateGroupAdvice(
  3581. this.$route.query.patient_id,
  3582. 0,
  3583. params
  3584. ).then(rs => {
  3585. var resp = rs.data
  3586. if (resp.state == 1) {
  3587. // this.doctorAdvices = resp.data.advices
  3588. this.$emit('advice')
  3589. } else {
  3590. if(resp.code == 600000008){
  3591. this.infoDialogVisible = true
  3592. }
  3593. }
  3594. })
  3595. const prescription_resp = response.data.data.prescription
  3596. var prescription = this.prescription
  3597. for (var index in prescription_resp) {
  3598. // prescription[index] = prescription_resp[index];
  3599. this.$set(prescription, index, prescription_resp[index])
  3600. }
  3601. this.hide()
  3602. }
  3603. })
  3604. } else {
  3605. if (this.patient.id <= 0) {
  3606. this.$message.error('没有选择患者')
  3607. this.loading = false
  3608. return
  3609. }
  3610. var arr = this.dialysisPrescription
  3611. // console.log('arr', arr)
  3612. const ParamsQuery = arr
  3613. // console.log('eight', ParamsQuery)
  3614. ParamsQuery['patient'] = this.patient.id
  3615. ParamsQuery['record_date'] = this.record_date
  3616. ParamsQuery['mode'] = '1'
  3617. ParamsQuery['patient_id'] = this.patient.id
  3618. console.log('第八')
  3619. postPrescription(ParamsQuery).then(response => {
  3620. if (response.data.state == 0) {
  3621. this.$message.error(response.data.msg)
  3622. if(response.data.code == 600000008){
  3623. this.infoDialogVisible = true
  3624. }
  3625. return false
  3626. } else {
  3627. this.$notify({
  3628. title: '成功',
  3629. message: '提交成功',
  3630. type: 'success',
  3631. duration: 2000
  3632. })
  3633. const prescription_resp = response.data.data.prescription
  3634. var prescription = this.prescription
  3635. for (var index in prescription_resp) {
  3636. // prescription[index] = prescription_resp[index];
  3637. this.$set(prescription, index, prescription_resp[index])
  3638. }
  3639. this.hide()
  3640. }
  3641. })
  3642. }
  3643. }
  3644. } else {
  3645. if (this.patient.id <= 0) {
  3646. this.$message.error('没有选择患者')
  3647. this.loading = false
  3648. return
  3649. }
  3650. var arr = this.dialysisPrescription
  3651. // console.log('arr', arr)
  3652. const ParamsQuery = arr
  3653. // console.log('night', ParamsQuery)
  3654. ParamsQuery['patient'] = this.patient.id
  3655. ParamsQuery['record_date'] = this.record_date
  3656. ParamsQuery['mode'] = '2'
  3657. ParamsQuery['patient_id'] = this.patient.id
  3658. if (
  3659. this.$store.getters.xt_user.user.id !=
  3660. this.dialysisPrescription.creater
  3661. ) {
  3662. ParamsQuery['mode'] = '3'
  3663. }
  3664. console.log('第九',ParamsQuery)
  3665. postPrescription(ParamsQuery).then(response => {
  3666. if (response.data.state == 0) {
  3667. this.$message.error(response.data.msg)
  3668. if(response.data.code == 600000008){
  3669. this.infoDialogVisible = true
  3670. }
  3671. return false
  3672. } else {
  3673. this.$notify({
  3674. title: '成功',
  3675. message: '提交成功',
  3676. type: 'success',
  3677. duration: 2000
  3678. })
  3679. const prescription_resp = response.data.data.prescription
  3680. var prescription = this.prescription
  3681. for (var index in prescription_resp) {
  3682. // prescription[index] = prescription_resp[index];
  3683. this.$set(prescription, index, prescription_resp[index])
  3684. }
  3685. this.hide()
  3686. }
  3687. })
  3688. }
  3689. }
  3690. }
  3691. }else {
  3692. console.log("error submit!!");
  3693. return false;
  3694. }
  3695. })
  3696. },
  3697. handleCancle: function() {
  3698. this.hide()
  3699. },
  3700. handleSolution: function(formName) {
  3701. if(this.dialysisPrescription.anticoagulant == "" || this.dialysisPrescription.anticoagulant == 0){
  3702. this.dialysisPrescription.anticoagulant = 3
  3703. }
  3704. if(this.$store.getters.xt_user.template_info.org_id ==10579 ){
  3705. if(this.dialysisPrescription.target_ultrafiltration==0){
  3706. this.$message.error("目标超滤量不能为空")
  3707. return false
  3708. }
  3709. }
  3710. if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
  3711. this.dialysisPrescription.target_ultrafiltration = 0
  3712. }
  3713. if(this.dialysisPrescription.prescription_water == "NaN"){
  3714. this.dialysisPrescription.prescription_water = 0
  3715. }
  3716. this.$refs[formName].validate((valid)=>{
  3717. if(valid){
  3718. if(!this.isLoading){
  3719. if (this.dialysisPrescription.anticoagulant == 1 || this.dialysisPrescription.anticoagulant == 12) {
  3720. this.dialysisPrescription.anticoagulant_weichi = '0'
  3721. this.dialysisPrescription.anticoagulant_shouji = '0'
  3722. this.dialysisPrescription.anticoagulant_zongliang = '0'
  3723. }
  3724. // if (this.$store.getters.xt_user.template_info.template_id == 6) {
  3725. // if (this.dialysisPrescription.mode_id == 2) {
  3726. // if (
  3727. // this.dialysisPrescription.displace_liqui_part == 0 ||
  3728. // this.dialysisPrescription.displace_liqui_part == -2 ||
  3729. // this.dialysisPrescription.displace_liqui_value == 0 ||
  3730. // this.dialysisPrescription.displace_liqui_value == ''
  3731. // || this.dialysisPrescription.replacement_total == 0 ||
  3732. // this.dialysisPrescription.replacement_total == ''||
  3733. // this.dialysisPrescription.displace_speed == 0 ||
  3734. // this.dialysisPrescription.displace_speed == ''
  3735. // ) {
  3736. // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
  3737. // return
  3738. // }
  3739. // }
  3740. // if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
  3741. // this.dialysisPrescription.displace_liqui_part == 0
  3742. // this.dialysisPrescription.displace_liqui_value == 0
  3743. // this.dialysisPrescription.replacement_total == 0
  3744. // this.dialysisPrescription.displace_speed == 0
  3745. // console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
  3746. // console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
  3747. // // this.dialysisPrescription.displace_liqui_part = 0
  3748. // // this.dialysisPrescription.displace_liqui_value = 0
  3749. // // this.dialysisPrescription.replacement_total = 0
  3750. // // this.dialysisPrescription.displace_speed = 0
  3751. // }
  3752. // }
  3753. this.is_pre = 2
  3754. if (this.prescription.id == 0) {
  3755. if (this.is_open == 0) {
  3756. if (this.patient.id <= 0) {
  3757. this.$message.error('没有选择患者')
  3758. this.loading = false
  3759. return
  3760. }
  3761. console.log("预充了2",this.dialysisPrescription.pre_impulse)
  3762. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3763. var arr = this.dialysisPrescription
  3764. const ParamsQuery = arr
  3765. ParamsQuery['patient'] = this.patient.id
  3766. ParamsQuery['record_date'] = this.record_date
  3767. ParamsQuery['mode'] = '1'
  3768. postSoulution(ParamsQuery).then(response => {
  3769. if (response.data.state == 0) {
  3770. this.$message.error(response.data.msg)
  3771. if(response.data.code == 600000008){
  3772. this.infoDialogVisible = true
  3773. }
  3774. return false
  3775. } else {
  3776. this.$notify({
  3777. title: '成功',
  3778. message: '提交成功',
  3779. type: 'success',
  3780. duration: 2000
  3781. })
  3782. const prescription_resp = response.data.data.prescription
  3783. const solution_resp = response.data.data.solution
  3784. var prescription = this.prescription
  3785. var solution = this.solution
  3786. for (var index in prescription_resp) {
  3787. // prescription[index] = prescription_resp[index];
  3788. this.$set(prescription, index, prescription_resp[index])
  3789. }
  3790. for (var index in solution_resp) {
  3791. // solution[index] = solution_resp[index];
  3792. this.$set(solution, index, solution_resp[index])
  3793. }
  3794. this.hide()
  3795. }
  3796. })
  3797. } else if (this.is_open == 1) {
  3798. if (this.targetAdvices.length > 0) {
  3799. // 弹框推送提
  3800. this.isShowRemindAdvice = true
  3801. this.isVisibility = false
  3802. } else {
  3803. if (this.patient.id <= 0) {
  3804. this.$message.error('没有选择患者')
  3805. this.loading = false
  3806. return
  3807. }
  3808. console.log("预充了3",this.dialysisPrescription.pre_impulse)
  3809. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3810. var arr = this.dialysisPrescription
  3811. console.log('arr3', arr)
  3812. const ParamsQuery = arr
  3813. // console.log('长期处方2', ParamsQuery)
  3814. ParamsQuery['patient'] = this.patient.id
  3815. ParamsQuery['record_date'] = this.record_date
  3816. ParamsQuery['mode'] = '1'
  3817. postSoulution(ParamsQuery).then(response => {
  3818. if (response.data.state == 0) {
  3819. this.$message.error(response.data.msg)
  3820. if(response.data.code == 600000008){
  3821. this.infoDialogVisible = true
  3822. }
  3823. return false
  3824. } else {
  3825. this.$notify({
  3826. title: '成功',
  3827. message: '提交成功',
  3828. type: 'success',
  3829. duration: 2000
  3830. })
  3831. const prescription_resp = response.data.data.prescription
  3832. const solution_resp = response.data.data.solution
  3833. var prescription = this.prescription
  3834. var solution = this.solution
  3835. for (var index in prescription_resp) {
  3836. // prescription[index] = prescription_resp[index];
  3837. this.$set(prescription, index, prescription_resp[index])
  3838. }
  3839. for (var index in solution_resp) {
  3840. // solution[index] = solution_resp[index];
  3841. this.$set(solution, index, solution_resp[index])
  3842. }
  3843. this.hide()
  3844. }
  3845. })
  3846. }
  3847. } else if (this.is_open == 2) {
  3848. var date = new Date()
  3849. var hour =
  3850. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  3851. var minute =
  3852. date.getMinutes() < 10
  3853. ? '0' + date.getMinutes()
  3854. : date.getMinutes()
  3855. if (this.waitUploadAdvices.length > 0) {
  3856. // if (this.patient.id <= 0) {
  3857. // this.$message.error('没有选择患者')
  3858. // this.loading = false
  3859. // return
  3860. // }
  3861. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3862. var arr = this.dialysisPrescription
  3863. const ParamsQuery = arr
  3864. // console.log('长期处方3', ParamsQuery)
  3865. ParamsQuery['patient'] = this.patient.id
  3866. ParamsQuery['record_date'] = this.record_date
  3867. // console.log(this.prescription)
  3868. ParamsQuery['mode'] = '1'
  3869. postPrescription(ParamsQuery).then(response => {
  3870. if (response.data.state == 0) {
  3871. this.$message.error(response.data.msg)
  3872. if(response.data.code == 600000008){
  3873. this.infoDialogVisible = true
  3874. }
  3875. return false
  3876. } else {
  3877. this.$notify({
  3878. title: '成功',
  3879. message: '提交成功',
  3880. type: 'success',
  3881. duration: 2000
  3882. })
  3883. const params = {
  3884. advices: this.waitUploadAdvices,
  3885. advice_date: uParseTime(
  3886. this.$route.query.date,
  3887. '{y}-{m}-{d}'
  3888. ),
  3889. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  3890. advice_type: this.waitUploadAdvices[0].advice_type,
  3891. parent_id: this.patient_id,
  3892. // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
  3893. start_time:
  3894. uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  3895. ' ' +
  3896. hour +
  3897. ':' +
  3898. minute,
  3899. remark: ''
  3900. }
  3901. CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
  3902. rs => {
  3903. var resp = rs.data
  3904. if (resp.state == 1) {
  3905. // this.doctorAdvices = resp.data.advices
  3906. this.$emit('advice')
  3907. } else {
  3908. if(resp.code == 600000008){
  3909. this.infoDialogVisible = true
  3910. }
  3911. }
  3912. }
  3913. )
  3914. const prescription_resp = response.data.data.prescription
  3915. var prescription = this.prescription
  3916. for (var index in prescription_resp) {
  3917. // prescription[index] = prescription_resp[index];
  3918. this.$set(prescription, index, prescription_resp[index])
  3919. }
  3920. this.hide()
  3921. }
  3922. })
  3923. } else {
  3924. if (this.patient.id <= 0) {
  3925. this.$message.error('没有选择患者')
  3926. this.loading = false
  3927. return
  3928. }
  3929. console.log("预充了5",this.dialysisPrescription.pre_impulse)
  3930. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3931. var arr = this.dialysisPrescription
  3932. console.log('arr5', arr)
  3933. const ParamsQuery = arr
  3934. // console.log('长期处方5', ParamsQuery)
  3935. ParamsQuery['patient'] = this.patient.id
  3936. ParamsQuery['record_date'] = this.record_date
  3937. ParamsQuery['mode'] = '1'
  3938. postSoulution(ParamsQuery).then(response => {
  3939. if (response.data.state == 0) {
  3940. this.$message.error(response.data.msg)
  3941. if(response.data.code == 600000008){
  3942. this.infoDialogVisible = true
  3943. }
  3944. return false
  3945. } else {
  3946. this.$notify({
  3947. title: '成功',
  3948. message: '提交成功',
  3949. type: 'success',
  3950. duration: 2000
  3951. })
  3952. const prescription_resp = response.data.data.prescription
  3953. const solution_resp = response.data.data.solution
  3954. var prescription = this.prescription
  3955. var solution = this.solution
  3956. for (var index in prescription_resp) {
  3957. // prescription[index] = prescription_resp[index];
  3958. this.$set(prescription, index, prescription_resp[index])
  3959. }
  3960. for (var index in solution_resp) {
  3961. // solution[index] = solution_resp[index];
  3962. this.$set(solution, index, solution_resp[index])
  3963. }
  3964. this.hide()
  3965. }
  3966. })
  3967. }
  3968. }
  3969. } else {
  3970. if (this.prescription.creater == 0) {
  3971. if (this.is_open == 0) {
  3972. if (this.patient.id <= 0) {
  3973. this.$message.error('没有选择患者')
  3974. this.loading = false
  3975. return
  3976. }
  3977. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  3978. var arr = this.dialysisPrescription
  3979. console.log('arr', arr)
  3980. const ParamsQuery = arr
  3981. // console.log('长期处方6', ParamsQuery)
  3982. ParamsQuery['patient'] = this.patient.id
  3983. ParamsQuery['record_date'] = this.record_date
  3984. ParamsQuery['mode'] = '1'
  3985. postSoulution(ParamsQuery).then(response => {
  3986. if (response.data.state == 0) {
  3987. this.$message.error(response.data.msg)
  3988. if(response.data.code == 600000008){
  3989. this.infoDialogVisible = true
  3990. }
  3991. return false
  3992. } else {
  3993. this.$notify({
  3994. title: '成功',
  3995. message: '提交成功',
  3996. type: 'success',
  3997. duration: 2000
  3998. })
  3999. const prescription_resp = response.data.data.prescription
  4000. const solution_resp = response.data.data.solution
  4001. var prescription = this.prescription
  4002. var solution = this.solution
  4003. for (var index in prescription_resp) {
  4004. // prescription[index] = prescription_resp[index];
  4005. this.$set(prescription, index, prescription_resp[index])
  4006. }
  4007. for (var index in solution_resp) {
  4008. // solution[index] = solution_resp[index];
  4009. this.$set(solution, index, solution_resp[index])
  4010. }
  4011. this.hide()
  4012. }
  4013. })
  4014. } else if (this.is_open == 1) {
  4015. if (this.targetAdvices.length > 0) {
  4016. // 弹框推送提醒
  4017. this.isShowRemindAdvice = true
  4018. this.isVisibility = false
  4019. } else {
  4020. if (this.patient.id <= 0) {
  4021. this.$message.error('没有选择患者')
  4022. this.loading = false
  4023. return
  4024. }
  4025. console.log("预充了7",this.dialysisPrescription.pre_impulse)
  4026. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  4027. var arr = this.dialysisPrescription
  4028. // console.log('arr', arr)
  4029. const ParamsQuery = arr
  4030. console.log('长期处方7', ParamsQuery)
  4031. ParamsQuery['patient'] = this.patient.id
  4032. ParamsQuery['record_date'] = this.record_date
  4033. ParamsQuery['mode'] = '1'
  4034. postSoulution(ParamsQuery).then(response => {
  4035. if (response.data.state == 0) {
  4036. this.$message.error(response.data.msg)
  4037. if(response.data.code == 600000008){
  4038. this.infoDialogVisible = true
  4039. }
  4040. return false
  4041. } else {
  4042. this.$notify({
  4043. title: '成功',
  4044. message: '提交成功',
  4045. type: 'success',
  4046. duration: 2000
  4047. })
  4048. const prescription_resp = response.data.data.prescription
  4049. const solution_resp = response.data.data.solution
  4050. var prescription = this.prescription
  4051. var solution = this.solution
  4052. for (var index in prescription_resp) {
  4053. // prescription[index] = prescription_resp[index];
  4054. this.$set(prescription, index, prescription_resp[index])
  4055. }
  4056. for (var index in solution_resp) {
  4057. // solution[index] = solution_resp[index];
  4058. this.$set(solution, index, solution_resp[index])
  4059. }
  4060. this.hide()
  4061. }
  4062. })
  4063. }
  4064. } else if (this.is_open == 2) {
  4065. var date = new Date()
  4066. var hour =
  4067. date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  4068. var minute =
  4069. date.getMinutes() < 10
  4070. ? '0' + date.getMinutes()
  4071. : date.getMinutes()
  4072. if (this.waitUploadAdvices.length > 0) {
  4073. if (this.patient.id <= 0) {
  4074. this.$message.error('没有选择患者')
  4075. this.loading = false
  4076. return
  4077. }
  4078. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  4079. var arr = this.dialysisPrescription
  4080. const ParamsQuery = arr
  4081. // console.log('长期处方8', ParamsQuery)
  4082. ParamsQuery['patient'] = this.patient.id
  4083. ParamsQuery['record_date'] = this.record_date
  4084. ParamsQuery['mode'] = '1'
  4085. postSoulution(ParamsQuery).then(response => {
  4086. if (response.data.state == 0) {
  4087. this.$message.error(response.data.msg)
  4088. if(response.data.code == 600000008){
  4089. this.infoDialogVisible = true
  4090. }
  4091. return false
  4092. } else {
  4093. this.$notify({
  4094. title: '成功',
  4095. message: '提交成功',
  4096. type: 'success',
  4097. duration: 2000
  4098. })
  4099. const params = {
  4100. advices: this.waitUploadAdvices,
  4101. advice_date: uParseTime(
  4102. this.$route.query.date,
  4103. '{y}-{m}-{d}'
  4104. ),
  4105. advice_doctor: this.waitUploadAdvices[0].advice_doctor,
  4106. advice_type: this.waitUploadAdvices[0].advice_type,
  4107. parent_id: this.patient_id,
  4108. start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
  4109. // start_time:
  4110. // uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
  4111. // ' ' +
  4112. // hour +
  4113. // ':' +
  4114. // minute,
  4115. remark: ''
  4116. }
  4117. CreateGroupAdvice(
  4118. this.$route.query.patient_id,
  4119. 0,
  4120. params
  4121. ).then(rs => {
  4122. var resp = rs.data
  4123. if (resp.state == 1) {
  4124. // this.doctorAdvices = resp.data.advices
  4125. this.$emit('advice')
  4126. } else {
  4127. if(resp.code == 600000008){
  4128. this.infoDialogVisible = true
  4129. }
  4130. }
  4131. })
  4132. const prescription_resp = response.data.data.prescription
  4133. const solution_resp = response.data.data.solution
  4134. var prescription = this.prescription
  4135. var solution = this.solution
  4136. for (var index in prescription_resp) {
  4137. // prescription[index] = prescription_resp[index];
  4138. this.$set(prescription, index, prescription_resp[index])
  4139. }
  4140. for (var index in solution_resp) {
  4141. // solution[index] = solution_resp[index];
  4142. this.$set(solution, index, solution_resp[index])
  4143. }
  4144. this.hide()
  4145. }
  4146. })
  4147. } else {
  4148. if (this.patient.id <= 0) {
  4149. this.$message.error('没有选择患者')
  4150. this.loading = false
  4151. return
  4152. }
  4153. console.log("预充了99999",this.dialysisPrescription.pre_impulse)
  4154. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  4155. var arr = this.dialysisPrescription
  4156. console.log('arr', arr)
  4157. const ParamsQuery = arr
  4158. // console.log('长期处方9', ParamsQuery)
  4159. ParamsQuery['patient'] = this.patient.id
  4160. ParamsQuery['record_date'] = this.record_date
  4161. ParamsQuery['mode'] = '1'
  4162. postSoulution(ParamsQuery).then(response => {
  4163. if (response.data.state == 0) {
  4164. this.$message.error(response.data.msg)
  4165. if(response.data.code == 600000008){
  4166. this.infoDialogVisible = true
  4167. }
  4168. return false
  4169. } else {
  4170. this.$notify({
  4171. title: '成功',
  4172. message: '提交成功',
  4173. type: 'success',
  4174. duration: 2000
  4175. })
  4176. const prescription_resp = response.data.data.prescription
  4177. const solution_resp = response.data.data.solution
  4178. var prescription = this.prescription
  4179. var solution = this.solution
  4180. for (var index in prescription_resp) {
  4181. // prescription[index] = prescription_resp[index];
  4182. this.$set(prescription, index, prescription_resp[index])
  4183. }
  4184. for (var index in solution_resp) {
  4185. // solution[index] = solution_resp[index];
  4186. this.$set(solution, index, solution_resp[index])
  4187. }
  4188. this.hide()
  4189. }
  4190. })
  4191. }
  4192. }
  4193. } else {
  4194. if (this.patient.id <= 0) {
  4195. this.$message.error('没有选择患者')
  4196. this.loading = false
  4197. return
  4198. }
  4199. console.log("预充了1",this.dialysisPrescription.pre_impulse)
  4200. this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
  4201. var arr = this.dialysisPrescription
  4202. console.log('arr12333223', arr)
  4203. const ParamsQuery = arr
  4204. ParamsQuery['patient'] = this.patient.id
  4205. ParamsQuery['record_date'] = this.record_date
  4206. ParamsQuery['mode'] = '1'
  4207. console.log('长期处方10', ParamsQuery)
  4208. postSoulution(ParamsQuery).then(response => {
  4209. if (response.data.state == 0) {
  4210. this.$message.error(response.data.msg)
  4211. if(response.data.code == 600000008){
  4212. this.infoDialogVisible = true
  4213. }
  4214. return false
  4215. } else {
  4216. this.$notify({
  4217. title: '成功',
  4218. message: '提交成功',
  4219. type: 'success',
  4220. duration: 2000
  4221. })
  4222. const prescription_resp = response.data.data.prescription
  4223. const solution_resp = response.data.data.solution
  4224. var prescription = this.prescription
  4225. var solution = this.solution
  4226. for (var index in prescription_resp) {
  4227. // prescription[index] = prescription_resp[index];
  4228. this.$set(prescription, index, prescription_resp[index])
  4229. }
  4230. for (var index in solution_resp) {
  4231. // solution[index] = solution_resp[index];
  4232. this.$set(solution, index, solution_resp[index])
  4233. }
  4234. this.hide()
  4235. }
  4236. })
  4237. }
  4238. }
  4239. }
  4240. }
  4241. })
  4242. },
  4243. isName(name) {
  4244. let filedList = store.getters.xt_user.fileds;
  4245. for (let i = 0; i < filedList.length; i++) {
  4246. if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  4247. return filedList[i].filed_name;
  4248. }
  4249. }
  4250. },
  4251. isShows(name) {
  4252. var filedList = store.getters.xt_user.fileds
  4253. for (let i = 0; i < filedList.length; i++) {
  4254. if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
  4255. return true
  4256. }
  4257. }
  4258. return false
  4259. },
  4260. isCheckmust(name) {
  4261. let filedList = store.getters.xt_user.fileds;
  4262. for (let i = 0; i < filedList.length; i++) {
  4263. if (
  4264. filedList[i].module == 1 &&
  4265. filedList[i].filed_name_cn == name &&
  4266. filedList[i].is_write == 1&&
  4267. filedList[i].is_show == 1
  4268. ) {
  4269. // console.log(filedList[i],'false')
  4270. if (name == "透析模式" || name == "透析时长") {
  4271. return [
  4272. { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
  4273. // {
  4274. // required: true,
  4275. // pattern: /^[1-9]\d*$/,
  4276. // message: `请输入${name}`,
  4277. // trigger: ['blur','change']
  4278. // },
  4279. ];
  4280. }
  4281. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  4282. }
  4283. }
  4284. },
  4285. isNas(name){
  4286. let filedList = store.getters.xt_user.fileds;
  4287. for (let i = 0; i < filedList.length; i++) {
  4288. if (
  4289. filedList[i].module == 1 &&
  4290. filedList[i].filed_name_cn == name &&
  4291. filedList[i].is_write == 1&&
  4292. filedList[i].is_show == 1
  4293. ) {
  4294. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  4295. }
  4296. }
  4297. },
  4298. isSubstitution(name){
  4299. if(this.dialysisPrescription.mode_id == 2 ||this.dialysisPrescription.mode_id == 5 || this.dialysisPrescription.mode_id == 12){
  4300. let filedList = store.getters.xt_user.fileds;
  4301. for (let i = 0; i < filedList.length; i++) {
  4302. if (
  4303. filedList[i].module == 1 &&
  4304. filedList[i].filed_name_cn == name &&
  4305. filedList[i].is_write == 1&&
  4306. filedList[i].is_show == 1
  4307. ) {
  4308. if(name == '置换速度'){
  4309. return [
  4310. { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
  4311. // {
  4312. // required: true,
  4313. // pattern: /^[1-9]\d*$/,
  4314. // message: `请输入${name}`,
  4315. // trigger: ['blur','change']
  4316. // },
  4317. ];
  4318. }
  4319. return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
  4320. }
  4321. }
  4322. }else{
  4323. return [{required: false}]
  4324. }
  4325. },
  4326. getDoctorName(doctor_id) {
  4327. for (let i = 0; i < this.admin_users.length; i++) {
  4328. if (this.admin_users[i].id == doctor_id) {
  4329. return this.admin_users[i].name
  4330. }
  4331. }
  4332. },
  4333. getContent(val) {
  4334. let prescribing_number = ''
  4335. let single_dose = ''
  4336. let advice_desc = ''
  4337. if (val.prescribing_number > 0) {
  4338. prescribing_number =
  4339. val.prescribing_number + val.prescribing_number_unit
  4340. }
  4341. if (val.single_dose > 0) {
  4342. single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
  4343. }
  4344. if (val.advice_desc > 0 || val.advice_desc.length > 0) {
  4345. advice_desc = val.advice_desc + val.drug_spec_unit
  4346. }
  4347. let name = ''
  4348. if (val.child.length > 0) {
  4349. for (let i = 0; i < val.child.length; i++) {
  4350. if (val.child[i].prescribing_number > 0) {
  4351. val.child[i]['presc'] =
  4352. val.child[i].prescribing_number +
  4353. val.child[i].prescribing_number_unit
  4354. } else {
  4355. val.child[i]['presc'] = ''
  4356. }
  4357. if (val.child[i].single_dose > 0) {
  4358. val.child[i]['single'] =
  4359. ' ' +
  4360. ' 单次用量 ' +
  4361. ' ' +
  4362. val.child[i].single_dose +
  4363. val.child[i].single_dose_unit
  4364. } else {
  4365. val.child[i]['single'] = ''
  4366. }
  4367. name =
  4368. name +
  4369. '▲' +
  4370. val.child[i].advice_name +
  4371. '' +
  4372. val.child[i].advice_desc +
  4373. val.child[i].drug_spec_unit +
  4374. val.child[i].presc +
  4375. val.child[i].single
  4376. }
  4377. return (
  4378. val.advice_name +
  4379. ' ' +
  4380. advice_desc +
  4381. ' ' +
  4382. val.drug_spec_unit +
  4383. prescribing_number +
  4384. ' ' +
  4385. single_dose +
  4386. ' ' +
  4387. ' ' +
  4388. val.delivery_way +
  4389. ' ' +
  4390. val.execution_frequency +
  4391. val.remark +
  4392. name
  4393. )
  4394. } else {
  4395. return (
  4396. val.advice_name +
  4397. ' ' +
  4398. advice_desc +
  4399. prescribing_number +
  4400. ' ' +
  4401. single_dose +
  4402. ' ' +
  4403. ' ' +
  4404. val.delivery_way +
  4405. ' ' +
  4406. val.execution_frequency +
  4407. val.remark
  4408. )
  4409. }
  4410. },
  4411. changePrescription(id) {
  4412. console.log("id233223232323232323",id)
  4413. if(id != 2 && id!=5 && id!= 12&&id!=34 &&id!=35&&id!=35&&id!=36&&id!=37){
  4414. this.dialysisPrescription.displace_liqui_value = ""
  4415. this.dialysisPrescription.displace_liqui_part = ""
  4416. this.dialysisPrescription.replacement_total = ""
  4417. this.dialysisPrescription.displace_speed = ""
  4418. }
  4419. if(id == 2 || id ==3 || id ==4 || id ==12){
  4420. if(this.$store.getters.xt_user.template_info.org_id == 9970){
  4421. this.dialysisPrescription.dialysis_remark = "患者毒素多,出现皮肤瘙痒,定期HDF或HP能改善患者不适症状,有利透析的充分性,因血液透析滤过有更稳定的血流动力学状态,且能有效清除中分子物质;血液灌流能更有效的清除大分子毒素。两者定期治疗能减少透析相关并发症,有得透析充分性,改善患者生活质量。"
  4422. }
  4423. }else{
  4424. this.dialysisPrescription.dialysis_remark = ""
  4425. }
  4426. const ParamsQuery = {}
  4427. ParamsQuery['patient_id'] = this.$route.query.patient_id
  4428. ParamsQuery['mode_id'] = id
  4429. GetSolution(ParamsQuery).then(response => {
  4430. if (response.data.state == 0) {
  4431. this.$message.error(response.data.msg)
  4432. return false
  4433. } else {
  4434. console.log('切换数据', response.data.data.solution)
  4435. this.$message.success('切换成功')
  4436. console.log("dialysisPrescription",response.data.data.dialysisPrescription)
  4437. if (response.data.data.solution != null) {
  4438. for (const key in response.data.data.solution) {
  4439. // 长期处方不为空
  4440. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  4441. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  4442. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid'&& key != 'remark') {
  4443. this.dialysisPrescription[key] =
  4444. response.data.data.solution[key]
  4445. }
  4446. }
  4447. if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 || this.$store.getters.xt_user.template_info.org_id == 10340) {
  4448. console.log('抠门;哦啊', response.data.data.dialysisPrescription.remark)
  4449. this.dialysisPrescription.sodium = 138
  4450. this.dialysisPrescription.bicarbonate = 31.1
  4451. this.dialysisPrescription.dialysate_flow = 500
  4452. if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
  4453. this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
  4454. }
  4455. }
  4456. if(this.$store.getters.xt_user.template_info.org_id== 10013 || this.$store.getters.xt_user.template_info.org_id== 10014){
  4457. if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
  4458. this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
  4459. }
  4460. }
  4461. } else {
  4462. if (response.data.data.prescription != null) {
  4463. // 临时处方不为空
  4464. for (const key in response.data.data.prescription) {
  4465. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  4466. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  4467. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
  4468. this.dialysisPrescription[key] =
  4469. response.data.data.prescription[key]
  4470. }
  4471. }
  4472. } else if (response.data.data.system_prescription != null) {
  4473. // 系统处方不为空
  4474. for (const key in response.data.data.system_prescription) {
  4475. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  4476. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  4477. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
  4478. this.dialysisPrescription[key] =
  4479. response.data.data.system_prescription[key]
  4480. }
  4481. }
  4482. } else {
  4483. for (const key in this.dialysisPrescription) {
  4484. // 临时处方为空
  4485. if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
  4486. && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
  4487. && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
  4488. this.dialysisPrescription[key] = ''
  4489. }
  4490. }
  4491. this.dialysisPrescription.mode_id = id
  4492. }
  4493. if (this.$store.getters.xt_user.template_info.org_id == 9671 ||this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
  4494. this.dialysisPrescription.sodium = 138
  4495. this.dialysisPrescription.bicarbonate = 31.1
  4496. this.dialysisPrescription.dialysate_flow = 500
  4497. if (this.last_prescription != null && response.data.data.system_prescription != null && response.data.data.system_prescription.remark == '') {
  4498. this.dialysisPrescription.remark = response.data.data.system_prescription.remark
  4499. }
  4500. }
  4501. }
  4502. if(response.data.data.dialysisPrescription!=null){
  4503. this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
  4504. }
  4505. }
  4506. if (response.data.data.solution == null) {
  4507. if (this.$store.getters.xt_user.template_info.org_id== 9671 || this.$store.getters.xt_user.template_info.org_id == 9675 ||this.$store.getters.xt_user.template_info.org_id== 10340) {
  4508. this.dialysisPrescription.sodium = 138
  4509. this.dialysisPrescription.bicarbonate = 31.1
  4510. this.dialysisPrescription.dialysate_flow = 500
  4511. if (this.last_prescription != null) {
  4512. this.dialysisPrescription.remark = this.last_prescription.remark
  4513. }
  4514. }
  4515. if(this.$store.getters.xt_user.template_info.org_id== 10013 || this.$store.getters.xt_user.template_info.org_id== 10014){
  4516. if (this.last_prescription != null) {
  4517. this.dialysisPrescription.remark = this.last_prescription.remark
  4518. }
  4519. }
  4520. }
  4521. if (
  4522. this.dialysisPrescription.dialysis_duration_hour === '' ||
  4523. this.dialysisPrescription.dialysis_duration_minute === ''
  4524. ) {
  4525. this.timeValue = ''
  4526. this.time = '03:00'
  4527. } else {
  4528. this.timeValue =
  4529. this.dialysisPrescription.dialysis_duration_hour +
  4530. '小时' +
  4531. this.dialysisPrescription.dialysis_duration_minute +
  4532. '分钟'
  4533. this.time =
  4534. (this.dialysisPrescription.dialysis_duration_hour > 10
  4535. ? this.dialysisPrescription.dialysis_duration_hour
  4536. : '0' + this.dialysisPrescription.dialysis_duration_hour) +
  4537. ':' +
  4538. (this.dialysisPrescription.dialysis_duration_minute > 10
  4539. ? this.dialysisPrescription.dialysis_duration_minute
  4540. : '0' + this.dialysisPrescription.dialysis_duration_minute)
  4541. }
  4542. })
  4543. if (
  4544. id === 1 ||
  4545. id === 3 ||
  4546. id === 4 ||
  4547. id === 6 ||
  4548. id === 7 ||
  4549. id === 8 ||
  4550. id === 9 ||
  4551. id === 11 ||
  4552. id === 13 ||
  4553. id === 14 ||
  4554. id === 15 ||
  4555. id === 16 ||
  4556. id === 19 ||
  4557. id === 42
  4558. ) {
  4559. this.zhiShow = false
  4560. this.huShow = false
  4561. this.totalShow = false
  4562. } else {
  4563. this.zhiShow = true
  4564. this.huShow = true
  4565. this.totalShow = true
  4566. //针对新化博翔
  4567. if(this.$store.getters.xt_user.template_info.org_id ==10447){
  4568. this.dialysisPrescription.displace_liqui_part = 1
  4569. this.dialysisPrescription.displace_liqui_value = 35
  4570. }
  4571. }
  4572. },
  4573. handlePatientInfo(id) {
  4574. getPatientRecordList(id).then(response=>{
  4575. if(response.data.state ==1){
  4576. this.isVisibility = false
  4577. this.msgtip_visibility = true
  4578. var beforList = response.data.data.beforList
  4579. this.tableData = beforList
  4580. var afterList = response.data.data.afterList
  4581. this.afterList = afterList
  4582. this.monitorList = response.data.data.monitorList
  4583. }
  4584. })
  4585. },
  4586. GetLast(date){
  4587. var weight_after = ""
  4588. for(let i=0;i<this.afterList.length;i++){
  4589. if(date == this.afterList[i].assessment_date){
  4590. weight_after = this.afterList[i].weight_after
  4591. }
  4592. }
  4593. return weight_after
  4594. },
  4595. GetLastCruor(date){
  4596. var cruor = ""
  4597. for(let i=0;i<this.afterList.length;i++){
  4598. if(date == this.afterList[i].assessment_date){
  4599. cruor = this.afterList[i].cruor
  4600. }
  4601. }
  4602. return cruor
  4603. },
  4604. GetMonitorList(monitor_date){
  4605. var str = ""
  4606. var newArr = []
  4607. for(let i=0;i<this.monitorList.length;i++){
  4608. for(let j=0;j<this.monitorList[i].child.length;j++){
  4609. if(monitor_date == this.monitorList[i].monitoring_date){
  4610. newArr.push(this.monitorList[i].child[j])
  4611. }
  4612. }
  4613. }
  4614. if(newArr!=null && newArr.length>0){
  4615. for(let i=0;i<newArr.length;i++){
  4616. str += newArr[i].systolic_blood_pressure +"/"+newArr[i].diastolic_blood_pressure+","
  4617. }
  4618. }
  4619. return str
  4620. },
  4621. handlePatientInfoOne(){
  4622. this.isVisibility = false
  4623. this.startVisibility = true
  4624. },
  4625. cancleMsg() {
  4626. this.isVisibility = true
  4627. this.msgtip_visibility = false
  4628. },
  4629. cancleMsgOne(){
  4630. this.isVisibility = true
  4631. this.startVisibility = false
  4632. },
  4633. getPermission() {
  4634. request
  4635. .get('/api/func_per/get', {
  4636. params: {
  4637. create_url: '/api/dialysis/prescription?mode=1',
  4638. modify_url: '/api/dialysis/prescription?mode=2',
  4639. modify_other_url: '/api/dialysis/prescription?mode=3',
  4640. module: 1
  4641. }
  4642. })
  4643. .then(res => {
  4644. // console.log(res)
  4645. // console.log('predialysis.creater', this.pre.creater)
  4646. // console.log('admin.id', this.$store.getters.xt_user.user.id)
  4647. if (res.data.state == 0) {
  4648. this.hasPermission = false
  4649. } else if (res.data.state == 1) {
  4650. if (this.pre.id != '' && this.pre.creater != 0) {
  4651. // 有数据
  4652. if (this.pre.creater == this.$store.getters.xt_user.user.id) {
  4653. // 创建人是自己
  4654. if (res.data.data.is_has_modify == false) {
  4655. this.hasPermission = false
  4656. this.showTxt = '你没有修改透析处方权限'
  4657. }
  4658. } else {
  4659. // 创建人不是自己
  4660. if (res.data.data.is_has_modify_other == false) {
  4661. this.hasPermission = false
  4662. this.showTxt = '你没有修改他人透析处方权限'
  4663. }
  4664. }
  4665. } else if (this.pre.id == '' || this.pre.creater == 0) {
  4666. if (res.data.data.is_has_create == false) {
  4667. this.hasPermission = false
  4668. this.showTxt = '你没有新增透析处方权限'
  4669. }
  4670. }
  4671. }
  4672. })
  4673. },
  4674. getPatientBefor(){
  4675. var patient_id = 0
  4676. var record_date =""
  4677. if(this.$route.query.patient_id!=undefined){
  4678. patient_id =this.$route.query.patient_id
  4679. record_date = uParseTime(this.$route.query.date, '{y}-{m}-{d}')
  4680. }else{
  4681. patient_id = this.patient.id
  4682. record_date = this.record_date
  4683. }
  4684. var params = {
  4685. patient_id:patient_id,
  4686. record_date:record_date
  4687. }
  4688. console.log("param----------------",params)
  4689. getPatientBefor(params).then(response=>{
  4690. if(response.data.state == 1){
  4691. var patientBefor = response.data.data.patientBefor
  4692. var prescription = response.data.data.prescription
  4693. if(patientBefor!=undefined){
  4694. if(this.$store.getters.xt_user.template_info.org_id == 10727 || this.$store.getters.xt_user.template_info.org_id == 10731){
  4695. if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
  4696. this.dialysisPrescription.target_ultrafiltration = ((patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(0))*1000
  4697. console.log("hhhhhhhhhhhhhhhhhh",this.dialysisPrescription.target_ultrafiltration)
  4698. }
  4699. }else{
  4700. if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
  4701. this.dialysisPrescription.target_ultrafiltration = (patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(1)
  4702. }
  4703. if(this.dialysisPrescription.prescription_water==0 || this.dialysisPrescription.prescription_water==""){
  4704. if((patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(1)>0){
  4705. this.dialysisPrescription.prescription_water = (patientBefor.weight_before - patientBefor.dry_weight - patientBefor.additional_weight).toFixed(1)
  4706. }
  4707. }
  4708. }
  4709. // if(this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0){
  4710. // this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
  4711. // this.dialysisPrescription.prescription_water = prescription.prescription_water
  4712. // }
  4713. }
  4714. if(prescription!=undefined){
  4715. this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
  4716. this.dialysisPrescription.prescription_water = prescription.prescription_water
  4717. }
  4718. }
  4719. })
  4720. },
  4721. unique(arr) {
  4722. const res = new Map()
  4723. return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
  4724. },
  4725. dialysisAfterTeachSelectChange: function(values) {
  4726. console.log("values232323232wo",values)
  4727. if (this.dialysisPrescription.dialysis_remark == '' || this.dialysisPrescription.dialysis_remark==undefined) {
  4728. this.dialysisPrescription.dialysis_remark = values
  4729. } else {
  4730. console.log("this.dialysisPrescription.dialysis_remark",this.dialysisPrescription.dialysis_remark)
  4731. if (this.dialysisPrescription.dialysis_remark!=undefined&&this.dialysisPrescription.dialysis_remark.indexOf(values) == -1) {
  4732. if (this.dialysisPrescription.dialysis_remark.charAt(this.dialysisPrescription.dialysis_remark.length - 1).indexOf('。') == -1) {
  4733. this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + ',' + values
  4734. } else {
  4735. this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + values
  4736. }
  4737. }
  4738. }
  4739. },
  4740. saveInformation(){
  4741. var params = {
  4742. selected_date:this.selected_date,
  4743. patient_id:this.$route.query.patient_id,
  4744. record_date:this.$route.query.date,
  4745. module:1,
  4746. remark:this.remark,
  4747. }
  4748. saveInformation(params).then(response=>{
  4749. if(response.data.state == 1){
  4750. var information = response.data.data.information
  4751. this.$message.success("提交成功!")
  4752. this.infoDialogVisible = false
  4753. }
  4754. })
  4755. }
  4756. },
  4757. watch: {
  4758. // 'dialysisPrescription.blood_flow_volume': function () {
  4759. // this.dialysisPrescription.blood_flow_volume = replacementFlow(this.dialysisPrescription.blood_flow_volume)
  4760. // },
  4761. // 'dialysisPrescription.replacement_flow': function () {
  4762. // console.log("血流量",this.dialysisPrescription.replacement_flow)
  4763. // this.dialysisPrescription.replacement_flow = this.dialysisPrescription.replacement_flow
  4764. // },
  4765. 'dialysisPrescription.dialysis_duration_hour': function() {
  4766. let dialysis_duration_minute = 0
  4767. let dialysis_duration_hour = 0
  4768. let duration = 0
  4769. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4770. dialysis_duration_minute = 0
  4771. } else {
  4772. dialysis_duration_minute = this.dialysisPrescription
  4773. .dialysis_duration_minute
  4774. }
  4775. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4776. dialysis_duration_hour = 0
  4777. } else {
  4778. dialysis_duration_hour = this.dialysisPrescription
  4779. .dialysis_duration_hour
  4780. }
  4781. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  4782. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
  4783. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4784. this.dialysisPrescription.anticoagulant_zongliang = ''
  4785. }
  4786. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4787. },
  4788. 'dialysisPrescription.dialysis_duration_minute': function() {
  4789. let dialysis_duration_minute = 0
  4790. let dialysis_duration_hour = 0
  4791. let duration = 0
  4792. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4793. dialysis_duration_minute = 0
  4794. } else {
  4795. dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
  4796. }
  4797. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4798. dialysis_duration_hour = 0
  4799. } else {
  4800. dialysis_duration_hour = this.dialysisPrescription
  4801. .dialysis_duration_hour
  4802. }
  4803. duration =
  4804. parseFloat(dialysis_duration_hour) +
  4805. parseFloat(dialysis_duration_minute) / 60
  4806. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
  4807. this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount
  4808. )
  4809. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4810. this.dialysisPrescription.anticoagulant_zongliang = ''
  4811. }
  4812. },
  4813. 'dialysisPrescription.anticoagulant_shouji': function() {
  4814. let dialysis_duration_minute = 0
  4815. let dialysis_duration_hour = 0
  4816. let duration = 0
  4817. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4818. dialysis_duration_minute = 0
  4819. } else {
  4820. dialysis_duration_minute = this.dialysisPrescription
  4821. .dialysis_duration_minute
  4822. }
  4823. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4824. dialysis_duration_hour = 0
  4825. } else {
  4826. dialysis_duration_hour = this.dialysisPrescription
  4827. .dialysis_duration_hour
  4828. }
  4829. duration =
  4830. parseFloat(dialysis_duration_hour) +
  4831. parseFloat(dialysis_duration_minute) / 60
  4832. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  4833. 1,
  4834. this.dialysisPrescription.anticoagulant_shouji,
  4835. duration,
  4836. this.dialysisPrescription.anticoagulant_weichi,
  4837. this.dialysisPrescription.add_amount,
  4838. this.dialysisPrescription.reduce_amount
  4839. )
  4840. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4841. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4842. this.dialysisPrescription.anticoagulant_zongliang = ''
  4843. }
  4844. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4845. this.dialysisPrescription.anticoagulant_zongliang = ""
  4846. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4847. }
  4848. },
  4849. 'dialysisPrescription.anticoagulant_weichi': function() {
  4850. let dialysis_duration_minute = 0
  4851. let dialysis_duration_hour = 0
  4852. let duration = 0
  4853. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  4854. dialysis_duration_minute = 0
  4855. } else {
  4856. dialysis_duration_minute = this.dialysisPrescription
  4857. .dialysis_duration_minute
  4858. }
  4859. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  4860. dialysis_duration_hour = 0
  4861. } else {
  4862. dialysis_duration_hour = this.dialysisPrescription
  4863. .dialysis_duration_hour
  4864. }
  4865. duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
  4866. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
  4867. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  4868. this.dialysisPrescription.anticoagulant_zongliang = ''
  4869. }
  4870. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4871. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  4872. this.dialysisPrescription.anticoagulant_zongliang = ""
  4873. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  4874. }
  4875. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  4876. },
  4877. 'prescription.id': {
  4878. immediate: true,
  4879. deep: true,
  4880. handler(oldVal, newVal) {
  4881. if (oldVal == newVal) {
  4882. for (var index in this.dialysisPrescription) {
  4883. this.dialysisPrescription[index] = this.prescription[index]
  4884. }
  4885. if (this.prescription['dialysate_formulation'] == 0) {
  4886. this.dialysisPrescription['dialysate_formulation'] = ''
  4887. }
  4888. if (this.prescription['anticoagulant'] == 0) {
  4889. this.dialysisPrescription['anticoagulant'] = ''
  4890. }
  4891. if (this.prescription['dialysis_duration_hour'] == 0) {
  4892. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4893. }
  4894. if (this.prescription['dialysis_duration_minute'] == 0) {
  4895. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4896. }
  4897. if (this.prescription['blood_flow_volume'] == 0) {
  4898. this.dialysisPrescription['blood_flow_volume'] = ''
  4899. }
  4900. if (this.prescription['target_ultrafiltration'] == 0) {
  4901. this.dialysisPrescription['target_ultrafiltration'] = ''
  4902. }
  4903. if (this.prescription['dialysate_temperature'] == 0) {
  4904. this.dialysisPrescription['dialysate_temperature'] = ''
  4905. }
  4906. if (this.prescription['anticoagulant_shouji'] == 0) {
  4907. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4908. }
  4909. if (this.prescription['anticoagulant_weichi'] == 0) {
  4910. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4911. }
  4912. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4913. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4914. }
  4915. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4916. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4917. }
  4918. if (this.prescription['kalium'] == 0) {
  4919. this.dialysisPrescription['kalium'] = ''
  4920. }
  4921. if (this.prescription['sodium'] == 0) {
  4922. this.dialysisPrescription['sodium'] = ''
  4923. }
  4924. if (this.prescription['calcium'] == 0) {
  4925. this.dialysisPrescription['calcium'] = ''
  4926. }
  4927. if (this.prescription['bicarbonate'] == 0) {
  4928. this.dialysisPrescription['bicarbonate'] = ''
  4929. }
  4930. if (this.prescription['glucose'] == 0) {
  4931. this.dialysisPrescription['glucose'] = ''
  4932. }
  4933. if (this.prescription['dialysate_flow'] == 0) {
  4934. this.dialysisPrescription['dialysate_flow'] = ''
  4935. }
  4936. if (this.prescription['conductivity'] == 0) {
  4937. this.dialysisPrescription['conductivity'] = ''
  4938. }
  4939. if (this.prescription['replacement_total'] == 0) {
  4940. this.dialysisPrescription['replacement_total'] = ''
  4941. }
  4942. if (this.prescription['target_ktv'] == 0) {
  4943. this.dialysisPrescription['target_ktv'] = ''
  4944. }
  4945. }
  4946. if (this.prescription.id > 0) {
  4947. for (var index in this.dialysisPrescription) {
  4948. this.dialysisPrescription[index] = this.prescription[index]
  4949. }
  4950. if (this.prescription['dialysate_formulation'] == 0) {
  4951. this.dialysisPrescription['dialysate_formulation'] = ''
  4952. }
  4953. if (this.prescription['anticoagulant'] == 0) {
  4954. this.dialysisPrescription['anticoagulant'] = ''
  4955. }
  4956. if (this.prescription['dialysis_duration_hour'] == 0) {
  4957. this.dialysisPrescription['dialysis_duration_hour'] = ''
  4958. }
  4959. if (this.prescription['dialysis_duration_minute'] == 0) {
  4960. this.dialysisPrescription['dialysis_duration_minute'] = ''
  4961. }
  4962. if (this.prescription['blood_flow_volume'] == 0) {
  4963. this.dialysisPrescription['blood_flow_volume'] = ''
  4964. }
  4965. if (this.prescription['target_ultrafiltration'] == 0) {
  4966. this.dialysisPrescription['target_ultrafiltration'] = ''
  4967. }
  4968. if (this.prescription['dialysate_temperature'] == 0) {
  4969. this.dialysisPrescription['dialysate_temperature'] = ''
  4970. }
  4971. if (this.prescription['anticoagulant_shouji'] == 0) {
  4972. this.dialysisPrescription['anticoagulant_shouji'] = 0
  4973. }
  4974. if (this.prescription['anticoagulant_weichi'] == 0) {
  4975. this.dialysisPrescription['anticoagulant_weichi'] = 0
  4976. }
  4977. if (this.prescription['anticoagulant_zongliang'] == 0) {
  4978. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  4979. }
  4980. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  4981. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  4982. }
  4983. if (this.prescription['kalium'] == 0) {
  4984. this.dialysisPrescription['kalium'] = ''
  4985. }
  4986. if (this.prescription['sodium'] == 0) {
  4987. this.dialysisPrescription['sodium'] = ''
  4988. }
  4989. if (this.prescription['calcium'] == 0) {
  4990. this.dialysisPrescription['calcium'] = ''
  4991. }
  4992. if (this.prescription['bicarbonate'] == 0) {
  4993. this.dialysisPrescription['bicarbonate'] = ''
  4994. }
  4995. if (this.prescription['glucose'] == 0) {
  4996. this.dialysisPrescription['glucose'] = ''
  4997. }
  4998. if (this.prescription['dialysate_flow'] == 0) {
  4999. this.dialysisPrescription['dialysate_flow'] = ''
  5000. }
  5001. if (this.prescription['conductivity'] == 0) {
  5002. this.dialysisPrescription['conductivity'] = ''
  5003. }
  5004. if (this.prescription['replacement_total'] == 0) {
  5005. this.dialysisPrescription['replacement_total'] = ''
  5006. }
  5007. if (this.prescription['target_ktv'] == 0) {
  5008. this.dialysisPrescription['target_ktv'] = ''
  5009. }
  5010. } else if (this.prescription.id == 0) {
  5011. for (var index in this.dialysisPrescription) {
  5012. this.dialysisPrescription[index] = this.prescription[index]
  5013. }
  5014. if (this.prescription['dialysate_formulation'] == 0) {
  5015. this.dialysisPrescription['dialysate_formulation'] = ''
  5016. }
  5017. if (this.prescription['anticoagulant'] == 0) {
  5018. this.dialysisPrescription['anticoagulant'] = ''
  5019. }
  5020. if (this.prescription['dialysis_duration_hour'] == 0) {
  5021. this.dialysisPrescription['dialysis_duration_hour'] = ''
  5022. }
  5023. if (this.prescription['dialysis_duration_minute'] == 0) {
  5024. this.dialysisPrescription['dialysis_duration_minute'] = ''
  5025. }
  5026. if (this.prescription['blood_flow_volume'] == 0) {
  5027. this.dialysisPrescription['blood_flow_volume'] = ''
  5028. }
  5029. if (this.prescription['target_ultrafiltration'] == 0) {
  5030. this.dialysisPrescription['target_ultrafiltration'] = ''
  5031. }
  5032. if (this.prescription['dialysate_temperature'] == 0) {
  5033. this.dialysisPrescription['dialysate_temperature'] = ''
  5034. }
  5035. if (this.prescription['anticoagulant_shouji'] == 0) {
  5036. this.dialysisPrescription['anticoagulant_'] = 0
  5037. }
  5038. if (this.prescription['anticoagulant_weichi'] == 0) {
  5039. this.dialysisPrescription['anticoagulant_weichi'] = 0
  5040. }
  5041. if (this.prescription['anticoagulant_zongliang'] == 0) {
  5042. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  5043. }
  5044. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  5045. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  5046. }
  5047. if (this.prescription['kalium'] == 0) {
  5048. this.dialysisPrescription['kalium'] = ''
  5049. }
  5050. if (this.prescription['sodium'] == 0) {
  5051. this.dialysisPrescription['sodium'] = ''
  5052. }
  5053. if (this.prescription['calcium'] == 0) {
  5054. this.dialysisPrescription['calcium'] = ''
  5055. }
  5056. if (this.prescription['bicarbonate'] == 0) {
  5057. this.dialysisPrescription['bicarbonate'] = ''
  5058. }
  5059. if (this.prescription['glucose'] == 0) {
  5060. this.dialysisPrescription['glucose'] = ''
  5061. }
  5062. if (this.prescription['dialysate_flow'] == 0) {
  5063. this.dialysisPrescription['dialysate_flow'] = ''
  5064. }
  5065. if (this.prescription['conductivity'] == 0) {
  5066. this.dialysisPrescription['conductivity'] = ''
  5067. }
  5068. if (this.prescription['replacement_total'] == 0) {
  5069. this.dialysisPrescription['replacement_total'] = ''
  5070. }
  5071. if (this.prescription['target_ktv'] == 0) {
  5072. this.dialysisPrescription['target_ktv'] = ''
  5073. }
  5074. }
  5075. }
  5076. },
  5077. 'solution.id': function() {
  5078. if (this.solution.id > 0) {
  5079. if (
  5080. this.prescription != null &&
  5081. typeof this.prescription.id !== 'undefined' &&
  5082. this.prescription.id > 0
  5083. ) {
  5084. for (const key in this.prescription) {
  5085. this.dialysisPrescription[key] = this.prescription[key]
  5086. }
  5087. if (this.prescription['dialysate_formulation'] == 0) {
  5088. this.dialysisPrescription['dialysate_formulation'] = ''
  5089. }
  5090. if (this.prescription['anticoagulant'] == 0) {
  5091. this.dialysisPrescription['anticoagulant'] = ''
  5092. }
  5093. if (this.prescription['dialysis_duration_hour'] == 0) {
  5094. this.dialysisPrescription['dialysis_duration_hour'] = ''
  5095. }
  5096. if (this.prescription['dialysis_duration_minute'] == 0) {
  5097. this.dialysisPrescription['dialysis_duration_minute'] = ''
  5098. }
  5099. if (this.prescription['blood_flow_volume'] == 0) {
  5100. this.dialysisPrescription['blood_flow_volume'] = ''
  5101. }
  5102. if (this.prescription['target_ultrafiltration'] == 0) {
  5103. this.dialysisPrescription['target_ultrafiltration'] = ''
  5104. }
  5105. if (this.prescription['dialysate_temperature'] == 0) {
  5106. this.dialysisPrescription['dialysate_temperature'] = ''
  5107. }
  5108. if (this.prescription['anticoagulant_shouji'] == 0) {
  5109. this.dialysisPrescription['anticoagulant_shouji'] = 0
  5110. }
  5111. if (this.prescription['anticoagulant_weichi'] == 0) {
  5112. this.dialysisPrescription['anticoagulant_weichi'] = 0
  5113. }
  5114. if (this.prescription['anticoagulant_zongliang'] == 0) {
  5115. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  5116. }
  5117. if (this.prescription['anticoagulant_gaijiliang'] == 0) {
  5118. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  5119. }
  5120. if (this.prescription['kalium'] == 0) {
  5121. this.dialysisPrescription['kalium'] = ''
  5122. }
  5123. if (this.prescription['sodium'] == 0) {
  5124. this.dialysisPrescription['sodium'] = ''
  5125. }
  5126. if (this.prescription['calcium'] == 0) {
  5127. this.dialysisPrescription['calcium'] = ''
  5128. }
  5129. if (this.prescription['bicarbonate'] == 0) {
  5130. this.dialysisPrescription['bicarbonate'] = ''
  5131. }
  5132. if (this.prescription['glucose'] == 0) {
  5133. this.dialysisPrescription['glucose'] = ''
  5134. }
  5135. if (this.prescription['dialysate_flow'] == 0) {
  5136. this.dialysisPrescription['dialysate_flow'] = ''
  5137. }
  5138. if (this.prescription['conductivity'] == 0) {
  5139. this.dialysisPrescription['conductivity'] = ''
  5140. }
  5141. if (this.prescription['replacement_total'] == 0) {
  5142. this.dialysisPrescription['replacement_total'] = ''
  5143. }
  5144. if (this.prescription['target_ktv'] == 0) {
  5145. this.dialysisPrescription['target_ktv'] = ''
  5146. }
  5147. } else if (
  5148. this.solution != null &&
  5149. typeof this.solution.id !== 'undefined' &&
  5150. this.solution.id
  5151. ) {
  5152. for (const key in this.solution) {
  5153. this.dialysisPrescription[key] = this.solution[key]
  5154. }
  5155. if (this.solution['dialysate_formulation'] == 0) {
  5156. this.dialysisPrescription['dialysate_formulation'] = ''
  5157. }
  5158. if (this.solution['anticoagulant'] == 0) {
  5159. this.dialysisPrescription['anticoagulant'] = ''
  5160. }
  5161. if (this.solution['dialysis_duration_hour'] == 0) {
  5162. this.dialysisPrescription['dialysis_duration_hour'] = ''
  5163. }
  5164. if (this.solution['dialysis_duration_minute'] == 0) {
  5165. this.dialysisPrescription['dialysis_duration_minute'] = ''
  5166. }
  5167. if (this.solution['blood_flow_volume'] == 0) {
  5168. this.dialysisPrescription['blood_flow_volume'] = ''
  5169. }
  5170. if (this.solution['target_ultrafiltration'] == 0) {
  5171. this.dialysisPrescription['target_ultrafiltration'] = ''
  5172. }
  5173. if (this.solution['dialysate_temperature'] == 0) {
  5174. this.dialysisPrescription['dialysate_temperature'] = ''
  5175. }
  5176. if (this.solution['anticoagulant_shouji'] == 0) {
  5177. this.dialysisPrescription['anticoagulant_shouji'] = 0
  5178. }
  5179. if (this.solution['anticoagulant_weichi'] == 0) {
  5180. this.dialysisPrescription['anticoagulant_weichi'] = 0
  5181. }
  5182. if (this.solution['anticoagulant_zongliang'] == 0) {
  5183. this.dialysisPrescription['anticoagulant_zongliang'] = 0
  5184. }
  5185. if (this.solution['anticoagulant_gaijiliang'] == 0) {
  5186. this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
  5187. }
  5188. if (this.solution['kalium'] == 0) {
  5189. this.dialysisPrescription['kalium'] = ''
  5190. }
  5191. if (this.solution['sodium'] == 0) {
  5192. this.dialysisPrescription['sodium'] = ''
  5193. }
  5194. if (this.solution['calcium'] == 0) {
  5195. this.dialysisPrescription['calcium'] = ''
  5196. }
  5197. if (this.solution['bicarbonate'] == 0) {
  5198. this.dialysisPrescription['bicarbonate'] = ''
  5199. }
  5200. if (this.solution['glucose'] == 0) {
  5201. this.dialysisPrescription['glucose'] = ''
  5202. }
  5203. if (this.solution['dialysate_flow'] == 0) {
  5204. this.dialysisPrescription['dialysate_flow'] = ''
  5205. }
  5206. if (this.solution['conductivity'] == 0) {
  5207. this.dialysisPrescription['conductivity'] = ''
  5208. }
  5209. if (this.solution['replacement_total'] == 0) {
  5210. this.dialysisPrescription['replacement_total'] = ''
  5211. }
  5212. if (this.solution['target_ktv'] == 0) {
  5213. this.dialysisPrescription['target_ktv'] = ''
  5214. }
  5215. }
  5216. }
  5217. },
  5218. 'dialysisPrescription.add_amount': function() {
  5219. let dialysis_duration_minute = 0
  5220. let dialysis_duration_hour = 0
  5221. let duration = 0
  5222. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  5223. dialysis_duration_minute = 0
  5224. } else {
  5225. dialysis_duration_minute = this.dialysisPrescription
  5226. .dialysis_duration_minute
  5227. }
  5228. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  5229. dialysis_duration_hour = 0
  5230. } else {
  5231. dialysis_duration_hour = this.dialysisPrescription
  5232. .dialysis_duration_hour
  5233. }
  5234. duration =
  5235. parseFloat(dialysis_duration_hour) +
  5236. parseFloat(dialysis_duration_minute) / 60
  5237. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  5238. 1,
  5239. this.dialysisPrescription.anticoagulant_shouji,
  5240. duration,
  5241. this.dialysisPrescription.anticoagulant_weichi,
  5242. this.dialysisPrescription.add_amount,
  5243. this.dialysisPrescription.reduce_amount
  5244. )
  5245. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  5246. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  5247. this.dialysisPrescription.anticoagulant_zongliang = ''
  5248. }
  5249. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  5250. this.dialysisPrescription.anticoagulant_zongliang = ""
  5251. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  5252. }
  5253. },
  5254. 'dialysisPrescription.reduce_amount': function() {
  5255. let dialysis_duration_minute = 0
  5256. let dialysis_duration_hour = 0
  5257. let duration = 0
  5258. if (this.dialysisPrescription.dialysis_duration_minute == '') {
  5259. dialysis_duration_minute = 0
  5260. } else {
  5261. dialysis_duration_minute = this.dialysisPrescription
  5262. .dialysis_duration_minute
  5263. }
  5264. if (this.dialysisPrescription.dialysis_duration_hour == '') {
  5265. dialysis_duration_hour = 0
  5266. } else {
  5267. dialysis_duration_hour = this.dialysisPrescription
  5268. .dialysis_duration_hour
  5269. }
  5270. duration =
  5271. parseFloat(dialysis_duration_hour) +
  5272. parseFloat(dialysis_duration_minute) / 60
  5273. this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
  5274. 1,
  5275. this.dialysisPrescription.anticoagulant_shouji,
  5276. duration,
  5277. this.dialysisPrescription.anticoagulant_weichi,
  5278. this.dialysisPrescription.add_amount,
  5279. this.dialysisPrescription.reduce_amount
  5280. )
  5281. this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
  5282. if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
  5283. this.dialysisPrescription.anticoagulant_zongliang = ''
  5284. }
  5285. if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
  5286. this.dialysisPrescription.anticoagulant_zongliang = ""
  5287. this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
  5288. }
  5289. },
  5290. 'dialysisPrescription.prescription_water':function(){
  5291. if(this.$store.getters.xt_user.template_info.org_id==10598){
  5292. if(this.dialysisPrescription.mode_id == 2 || this.dialysisPrescription.mode_id == 3){
  5293. this.dialysisPrescription.target_ultrafiltration = parseFloat(this.dialysisPrescription.prescription_water) + 0.3
  5294. }else{
  5295. if(this.dialysisPrescription.prescription_water > this.dialysisPrescription.target_ultrafiltration){
  5296. this.dialysisPrescription.target_ultrafiltration = this.dialysisPrescription.prescription_water
  5297. }
  5298. }
  5299. }
  5300. },
  5301. stockType: function() {
  5302. console.log('stockType', this.stockType)
  5303. var arr = []
  5304. var arrTwo = []
  5305. var arrThree = []
  5306. for (let i = 0; i < this.stockType.length; i++) {
  5307. if (this.stockType[i].stock_attribute == 2) {
  5308. arr.push(this.stockType[i])
  5309. }
  5310. if (this.stockType[i].stock_attribute == 3) {
  5311. arrTwo.push(this.stockType[i])
  5312. }
  5313. if(this.stockType[i].stock_attribute == 4){
  5314. arrThree.push(this.stockType[i])
  5315. }
  5316. }
  5317. var dialyzator = []
  5318. var irrigation = []
  5319. var dialysis_strainer = []
  5320. for (let i = 0; i < arr.length; i++) {
  5321. for (let j = 0; j < arr[i].GoodInfo.length; j++) {
  5322. dialyzator.push(arr[i].GoodInfo[j])
  5323. }
  5324. }
  5325. this.dialyzers = dialyzator
  5326. for (let i = 0; i < arrTwo.length; i++) {
  5327. for (let j = 0; j < arrTwo[i].GoodInfo.length; j++) {
  5328. irrigation.push(arrTwo[i].GoodInfo[j])
  5329. }
  5330. }
  5331. this.irrigations = irrigation
  5332. for(let i=0;i<arrThree.length;i++){
  5333. for (let j = 0; j < arrThree[i].GoodInfo.length; j++) {
  5334. dialysis_strainer.push(arrThree[i].GoodInfo[j])
  5335. }
  5336. }
  5337. this.dialysisStrainerList = dialysis_strainer
  5338. },
  5339. admin_user_id:function(){
  5340. console.log("处方医生",this.admins)
  5341. if(this.admins.length > 0 ){
  5342. for(let i=0;i<this.admins.length;i++){
  5343. this.adminRoles.push(this.admins[i])
  5344. }
  5345. }
  5346. console.log(" 人员",this.adminRoles)
  5347. },
  5348. },
  5349. created() {
  5350. this.illnessList = getDataConfig('hemodialysis', 'illness')
  5351. this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
  5352. this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')
  5353. this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis', 'bilirubin_adsorption_column')
  5354. this.educationList = getDataConfig('dialysis_remark', 'dialysis_remark')
  5355. this.org_id = this.$store.getters.xt_user.org.id
  5356. console.log('this.org_id',this.org_id);
  5357. }
  5358. }
  5359. </script>
  5360. <style rel="stylesheet/scss" lang="scss" scoped>
  5361. .el-checkbox,
  5362. .el-checkbox__input {
  5363. vertical-align: middle;
  5364. }
  5365. .newLine {
  5366. display: flex;
  5367. justify-content: space-between;
  5368. height: 40px;
  5369. line-height: 40px;
  5370. border-bottom: 1px solid #ccc;
  5371. color: #303133;
  5372. }
  5373. .warnTxt {
  5374. text-align: center;
  5375. margin: 0 auto;
  5376. background: #faa331;
  5377. max-width: 240px;
  5378. padding: 10px 20px;
  5379. border-radius: 4px;
  5380. margin-bottom: 10px;
  5381. color: #fff;
  5382. }
  5383. </style>
  5384. <style lang="scss">
  5385. .newDialog {
  5386. .el-dialog__body {
  5387. padding: 10px 20px 30px;
  5388. }
  5389. }
  5390. </style>