dialysisPrescriptionDialog.vue 274KB

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