dialysisPrescriptionDialog.vue 287KB

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