1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602 |
- <template>
- <div>
- <el-dialog
- title="透析处方"
- :visible.sync="isVisibility"
- width="72%"
- :modal = 'false'
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- class="newDialog"
- >
- <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
-
- <span style="position: absolute;left: 20%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
- 透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
- </span>
-
- <span style="position: absolute;left: 20%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id ==0||this.$store.getters.xt_user.template_info.org_id==10702">
- 透前体重:{{predialysis&&(predialysis.weight_before-predialysis.additional_weight).toFixed(2)?(predialysis.weight_before-predialysis.additional_weight).toFixed(2):"" }} kg
- </span>
-
-
-
- <span style="position: absolute;left: 30%;top: 3%">
- 干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
- </span>
- <!-- <span style="position: absolute;left: 48%;top: 3%" :modal = 'false'>
- 衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
- </span> -->
- <span style="position: absolute;left:38%;top: 3%">
- 上次透后体重:
- <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>
- <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>
- </span>
-
- <span style="position: absolute;left:51%;top: 3%">
- 4小时超滤量上限(5%):
- <span v-if="predialysis!=null && ((predialysis.dry_weight)*0.05) >0 "></span> {{(predialysis.dry_weight*0.05).toFixed(2)}}
- kg
- </span>
- <span style="position: absolute;left: 70%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
- 透前血压: {{predialysis&&predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:"" }} / {{ predialysis&&predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:"" }} mmHg
- </span>
-
- <span style="position: absolute;left: 70%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id==0||this.$store.getters.xt_user.template_info.org_id==10702">
- 衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:"" }} kg
- </span>
-
- <span style="position: absolute;left: 80%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id ==10702">
- 体重增长:
- <span v-if="predialysis!=null && last_record!=null">
- {{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
- </span>
-
-
- </span>
- <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
- <el-form
- ref="dialysisPrescription"
- :model="dialysisPrescription"
- label-width="148px"
- >
- <el-row :gutter="24">
- <el-col :span="8" v-if="isShows('透析模式')">
- <el-form-item label="透析模式" :prop="isName('透析模式')" :rules="isCheckmust('透析模式')">
- <el-select
- filterable
- v-model="dialysisPrescription.mode_id"
- @change="changePrescription(dialysisPrescription.mode_id)" placeholder="请选择">
- <!-- <el-option :key="0" label="请选择" :value="0"></el-option> -->
- <el-option
- v-for="(item, index) in treatment_mode"
- :label="item.name"
- :value="item.id"
- :key="index + 'q'"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('透析时长')">
- <el-form-item label="透析时长(h):" prop="dialysis_duration_hour" :rules="isCheckmust('透析时长')">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysis_duration_hour"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('透析时长')">
- <el-form-item label="透析时长(min): " prop="dialysis_duration_minute" :rules="isCheckmust('透析时长')">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysis_duration_minute"
- ></el-input>
- </el-form-item>
- </el-col>
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
- <el-col :span="8" v-if="isShows('血流量')">
- <el-form-item label="血流量(ml/min):" prop="blood_flow_volume" :rules="isCheckmust('血流量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.blood_flow_volume"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('置换流量') && this.$store.getters.xt_user.template_info.org_id != 10340">
- <el-form-item label="置换流量(L/h):" prop="replacement_flow" :rules="isCheckmust('置换流量')">
- <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('置换流量') && this.$store.getters.xt_user.template_info.org_id == 10340">
- <el-form-item label="置换流量(ml/min):" prop="replacement_flow" :rules="isCheckmust('置换流量')">
- <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8"
- 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)">
- <el-form-item label="预冲量(ml):" prop="pre_impulse" :rules="isCheckmust('预冲量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.pre_impulse"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- 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">
- <el-form-item label="预冲量(L):" prop="pre_impulse" :rules="isCheckmust('预冲量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.pre_impulse"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- 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)">
- <el-form-item label="目标超滤量(ml):"
- prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.target_ultrafiltration"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
-
-
- <el-col :span="8"
- 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">
- <el-form-item
- label="目标超滤量(L):" prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.target_ultrafiltration"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- 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">
- <el-form-item label="处方脱水量(ml):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.prescription_water"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- 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">
- <el-form-item label="处方脱水量(L):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.prescription_water"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('加糖')">
- <el-form-item label="加糖:" prop="prescription_water" :rules="isCheckmust('加糖')">
- <el-input v-model="dialysisPrescription.chaptalization"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('带水上机')">
- <el-form-item label="带水上机:" prop="water_machine" :rules="isCheckmust('带水上机')">
- <el-select v-model="dialysisPrescription.water_machine">
- <el-option
- v-for="(item, index) in machineList"
- :label="item.name"
- :value="item.name"
- :key="index + 'q'"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('是否单超脱水')">
- <el-form-item label="是否单超脱水:" prop="is_water" :rules="isCheckmust('是否单超脱水')">
- <el-select v-model="dialysisPrescription.is_water">
- <el-option
- v-for="(item, index) in waterList"
- :label="item.name"
- :value="item.id"
- :key="index + 'q'"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('透析液')">
- <el-form-item label="透析液:" prop="dialyzate" :rules="isCheckmust('透析液')">
- <el-select v-model="dialysisPrescription.dialyzate">
- <el-option
- v-for="(item, index) in dialyzateList"
- :label="item.name"
- :value="item.name"
- :key="index + 'q'"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('单超时长') && dialysisPrescription.is_water == 1">
- <el-form-item label="单超时长(min):" prop="single_time" :rules="isCheckmust('单超时长')">
- <el-input v-model="dialysisPrescription.single_time"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('单超脱水') && dialysisPrescription.is_water == 1">
- <el-form-item label="单超脱水(ml):" prop="single_water" :rules="isCheckmust('单超脱水')">
- <el-input v-model="dialysisPrescription.single_water"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('曲线脱水')">
- <el-form-item label="曲线脱水(ml):" prop="drhy_water" :rules="isCheckmust('曲线脱水')">
- <el-input v-model="dialysisPrescription.drhy_water"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('曲线脱水时长')">
- <el-form-item label="曲线脱水时长(h):" prop="dry_water_hour" :rules="isCheckmust('曲线脱水时长')">
- <el-input v-model="dialysisPrescription.dry_water_hour"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析液配方')">
- <el-form-item label="透析液配方:" prop="dialysate_formulation" :rules="isCheckmust('透析液配方')">
- <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
- <el-select
- v-model="dialysisPrescription.dialysate_formulation"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(option, index) in dialysate_formulation_options"
- :key="index + 'w'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
-
- <el-col :span="8" v-if="isShows('抗凝剂')">
-
- <el-form-item label="抗凝剂:" prop="anticoagulant" :rules="isCheckmust('抗凝剂')">
- <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择"
- style="width:100%;"
- @change="changeThisAnticoagulant">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <!-- <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
- :value="3"></el-option> -->
- <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name"
- :key="index + 'e'"
- :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('抗凝剂商品名称')">
- <el-form-item label="抗凝剂商品名称:" prop="antioxidant_commodity_name" :rules="isCheckmust('抗凝剂商品名称')">
- <el-input
- v-model="dialysisPrescription.antioxidant_commodity_name"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('肝素钠') && dialysisPrescription.anticoagulant ==10">
- <el-form-item label="肝素钠(mg/h):" prop="heparin_sodium" :rules="isCheckmust('肝素钠')">
- <el-input
- v-model="dialysisPrescription.heparin_sodium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
- <el-form-item label="鱼精蛋白(mg/h):" prop="nucleoprotamine" :rules="isCheckmust('鱼精蛋白')">
- <el-input肝素
- v-model="dialysisPrescription.nucleoprotamine"
- ></el-input肝素>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('下机前推注鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
- <el-form-item label="下机前推注鱼精蛋白(mg):" prop="push_the_protamine" :rules="isCheckmust('下机前推注鱼精蛋白')">
- <el-input
- v-model="dialysisPrescription.push_the_protamine"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('追加肝素量')" >
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2"
- :label="'追加肝素量(mg) : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.add_amount"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.add_amount"></el-input>
- </el-form-item>
-
- <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1"
- :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.add_amount"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.add_amount"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('减肝素量')">
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'减肝素量(mg) : '" prop="calculateAnticoagulantZL" :rules="isCheckmust('减肝素量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.calculateAnticoagulantZL"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.reduce_amount"></el-input>
- </el-form-item>
-
- <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1"
- :label="'减肝素量(' + anticoagulant.shouji_unit + ') : '" prop="reduce_amount" :rules="isCheckmust('减肝素量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.reduce_amount"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.reduce_amount"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂') && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
- <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">
- <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">
- <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('首剂')">
-
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
-
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1" v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant==7 &&
- this.$store.getters.xt_user.template_info.template_id!=6" :label="'首剂(mg):'"
- prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
-
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
- <el-form-item v-if="this.$store.getters.xt_user.template_info.org_id == 9990 &&
- dialysisPrescription.anticoagulant!=7 && this.$store.getters.xt_user.template_info.template_id!=6"
- :label="'首剂(iu):'" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
-
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- <el-form-item
- v-if='dialysisPrescription.anticoagulant == 2 &&
- this.$store.getters.xt_user.template_info.template_id == 21 ||
- this.$store.getters.xt_user.template_info.template_id == 23 ||
- this.$store.getters.xt_user.template_info.template_id == 38 ||
- this.$store.getters.xt_user.template_info.org_id == 9987 ||
- this.$store.getters.xt_user.template_info.org_id == 10346 ||
- this.$store.getters.xt_user.template_info.org_id == 10387 ||
- 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
- '
- :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
-
-
- </div>
-
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
- <el-form-item v-else :label="'首剂(iu) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
- </div>
- </div>
-
- <div v-else>
-
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- <el-form-item v-if="dialysisPrescription.anticoagulant == 13" :label="'首剂(AXaIU) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 11" :label="'首剂(AXaIU) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 11 && dialysisPrescription.anticoagulant != 13" :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
-
- </div>
-
- </el-col>
-
-
- <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
- <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">
- <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 ">
- <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
- v-if="anticoagulant.weichi != -1 &&
- this.$store.getters.xt_user.template_info.template_id != 21 &&
- this.$store.getters.xt_user.template_info.template_id != 23 &&
- this.$store.getters.xt_user.template_info.template_id != 38 &&
- this.$store.getters.xt_user.template_info.org_id != 9987 &&
- this.$store.getters.xt_user.template_info.org_id != 54 &&
- this.$store.getters.xt_user.template_info.org_id != 9990 &&
- 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 != 10510 &&
- this.$store.getters.xt_user.template_info.org_id != 10480 &&
- this.$store.getters.xt_user.template_info.org_id != 10600" prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item :label="'维持(mg/h) : '"
- v-if="anticoagulant.weichi != -1 &&
- this.$store.getters.xt_user.template_info.template_id == 21 ||
- this.$store.getters.xt_user.template_info.template_id == 23 ||
- this.$store.getters.xt_user.template_info.template_id == 38 ||
- this.$store.getters.xt_user.template_info.org_id == 9987 ||
- this.$store.getters.xt_user.template_info.org_id == 54 ||
- this.$store.getters.xt_user.template_info.org_id == 10346 ||
- this.$store.getters.xt_user.template_info.org_id == 10387 ||
- this.$store.getters.xt_user.template_info.org_id == 9990 ||
- 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
- " prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
-
-
-
- </div>
- <div v-else>
- <el-form-item :label="'维持(iu/h) : '" prop="anticoagulant_weichi" :rules="isCheckmust('维持')"
- v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant != 2" >
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item :label="'维持(mg/h) : '" prop="anticoagulant_weichi" :rules="isCheckmust('维持')"
- v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant == 2" >
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
-
-
-
- </div>
- </div>
-
-
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '"
- prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 13" :label="'维持(AXaIU) : '"
- prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 11" :label="'维持(AXaIU) : '"
- prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
- v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 11 && dialysisPrescription.anticoagulant != 13"
- prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
-
- </div>
-
- </el-col>
-
-
- <el-col :span="8"
- v-if="isShows('维持时长')">
- <el-form-item label="维持时长(h):" prop="prescribing_number" :rules="isCheckmust('维持时长')">
- <el-input v-model="dialysisPrescription.anticoagulant_weichi_hour"></el-input>
- </el-form-item>
- </el-col>
-
-
-
- <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
- <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">
- <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">
- <el-form-item
- 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'
- :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item
- 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'
- :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
-
- <el-form-item
- v-if='this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant == 7 && this.$store.getters.xt_user.template_info.template_id!=6'
- :label="'总量(mg)'" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item
- v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7"
- :label="'总量(iu)'" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- </div>
- <div v-else>
- <el-form-item
- v-if='dialysisPrescription.anticoagulant != 2'
- :label="'总量(iu) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item
- v-if='dialysisPrescription.anticoagulant == 2'
- :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- </div>
- </div>
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 13" :label="'总量(AXaIU) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 11" :label="'总量(AXaIU) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 11 && dialysisPrescription.anticoagulant != 13" :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- </div>
-
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('开药数量')">
- <el-form-item label="开药数量(支):" prop="prescribing_number" :rules="isCheckmust('开药数量')">
- <el-input type="number" v-model="dialysisPrescription.prescribing_number"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8"
- 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)"
- v-show="zhiShow">
- <el-form-item label="置换量(ml):" prop="replacement_total" :rules="isCheckmust('置换量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.replacement_total"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8"
- 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"
- v-show="zhiShow">
- <el-form-item label="置换量(L):" prop="replacement_total" :rules="isCheckmust('置换量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.replacement_total"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id != 10375" v-show="totalShow">
- <el-form-item label="置换速度(ml/min)" prop="displace_speed" :rules="isCheckmust('置换速度')">
- <el-input
- v-model="dialysisPrescription.displace_speed"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375" v-show="totalShow">
- <el-form-item label="置换速度(L/h)" prop="displace_speed" :rules="isCheckmust('置换速度')">
- <el-input
- v-model="dialysisPrescription.displace_speed"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col
- :span="8"
- v-if="isShows('钙名称')"
- >
- <el-form-item label="钙名称 : " prop="anticoagulant_gaimingcheng" :rules="isCheckmust('钙名称')">
- <el-input
- v-model="dialysisPrescription.anticoagulant_gaimingcheng"
- placeholder="钙名称"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col
- :span="8"
- v-if="isShows('钙剂量')"
- ></el-col>
-
- <el-col :span="8" v-if="isShows('钙剂量')" >
- <el-form-item label="钙剂量(ml) : " prop="anticoagulant_gaijiliang" :rules="isCheckmust('钙剂量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.anticoagulant_gaijiliang"
- placeholder="钙剂量"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钾')">
- <el-form-item label="钾(mmol/L): " prop="kalium" :rules="isCheckmust('钾')">
- <el-input
- type="number"
- v-model="dialysisPrescription.kalium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钠')"><!-- :prop="isName('钠')" prop="sodium" isCheckmust [{required: true, message: '请输入钠', trigger: 'blur'}]-->
- <el-form-item label="钠(mmol/L):" prop="sodium" :rules="isNas('钠')">
- <el-input
- type="number"
- v-model="dialysisPrescription.sodium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钙')">
- <el-form-item label="钙(mmol/L):" prop="calcium" :rules="isCheckmust('钙')">
- <el-input
- type="number"
- v-model="dialysisPrescription.calcium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('碳酸氢盐')">
- <el-form-item label="碳酸氢盐(mmol/L):" prop="bicarbonate" :rules="isCheckmust('碳酸氢盐')">
- <el-input
- type="number"
- v-model="dialysisPrescription.bicarbonate"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <!-- <el-col :span="8" v-if="isShows('葡萄糖')">
- <el-form-item label="葡萄糖(mmol/L):">
- <el-input
- type="number"
- v-model="dialysisPrescription.glucose"
- ></el-input>
- </el-form-item>28
- </el-col> -->
- <el-col :span="8" v-if="isShows('透析液流量')">
- <el-form-item label="透析液流量(ml/min):" prop="dialysate_flow" :rules="isCheckmust('透析液流量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysate_flow"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析液温度')">
- <el-form-item label="透析液温度(°C):" prop="dialysate_temperature" :rules="isCheckmust('透析液温度')">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysate_temperature"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('电导率')">
- <el-form-item label="电导率(mS/cm): " prop="conductivity" :rules="isCheckmust('电导率')">
- <el-input
- type="number"
- v-model="dialysisPrescription.conductivity"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析器/灌流器')" >
- <el-form-item label="透析器/灌流器" prop="dialyzer_perfusion_apparatus" :rules="isCheckmust('透析器/灌流器')">
- <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
- @focus="showInnerDialog('5')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析器')">
- <el-form-item label="透析器:" prop="dialysis_dialyszers" :rules="isCheckmust('透析器')">
- <el-input v-model="dialysisPrescription.dialysis_dialyszers"
- @focus="showInnerDialog('7')"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('灌流器')">
- <el-form-item label="灌流器:" prop="dialysis_irrigation" :rules="isCheckmust('灌流器')">
- <el-input v-model="dialysisPrescription.dialysis_irrigation"
- @focus="showInnerDialog('8')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('滤过器')">
- <el-form-item label="滤过器:" prop="dialysis_strainer" :rules="isCheckmust('滤过器')">
- <el-input v-model="dialysisPrescription.dialysis_strainer"
- @focus="showInnerDialog('12')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('血浆分离器')">
- <el-form-item label="血浆分离器:" prop="plasma_separator" :rules="isCheckmust('血浆分离器')">
- <el-input v-model="dialysisPrescription.plasma_separator"
- @focus="showInnerDialog('9')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('胆红素吸附柱')">
- <el-form-item label="胆红素吸附柱:" prop="bilirubin_adsorption_column" :rules="isCheckmust('胆红素吸附柱')">
- <el-input v-model="dialysisPrescription.bilirubin_adsorption_column"
- @focus="showInnerDialog('10')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('体液过多症状')">
- <el-form-item label="体液过多症状:" prop="body_fluid" :rules="isCheckmust('体液过多症状')">
- <el-select
- v-model="dialysisPrescription.body_fluid"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in body_fluid_option"
- :label="item.name"
- :key="index + 't'"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('体液过多其他症状')">
- <el-form-item label="体液过多其他症状" prop="body_fluid_other" :rules="isCheckmust('体液过多其他症状')">
- <el-input
- v-model="dialysisPrescription.body_fluid_other"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析前使用特殊药物')" >
- <el-form-item label="透析前使用特殊药物" prop="special_medicine" :rules="isCheckmust('透析前使用特殊药物')">
- <el-select
- v-model="dialysisPrescription.special_medicine"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in special_medicine_option"
- :label="item.name"
- :key="index + 'y'"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')" >
- <el-form-item label="透析前使用其他特殊药物" prop="special_medicine_other" :rules="isCheckmust('透析前使用其他特殊药物')">
- <el-input
- v-model="dialysisPrescription.special_medicine_other"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item
- label="置换方式:"
- v-if="isShows('置换液')&&this.$store.getters.xt_user.org.id != 10206"
- v-show="huShow"
- prop="displace_liqui_part"
- :rules="isCheckmust('置换液')"
- >
- <el-select
- v-model="dialysisPrescription.displace_liqui_part"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(option, index) in displace_liqui_part_option"
- :key="index + 'u'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="置换方式:"
- v-if="isShows('置换方式')&&this.$store.getters.xt_user.org.id == 10206"
- v-show="huShow"
- prop="displace_liqui_part"
- :rules="isCheckmust('置换方式')"
- >
- <el-select
- v-model="dialysisPrescription.displace_liqui_part"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(option, index) in displace_liqui_part_option"
- :key="index + 'u'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
-
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('置换液总量') && (((this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id ==24 || this.$store.getters.xt_user.template_info.template_id ==53) && this.$store.getters.xt_user.template_info.org_id != 10249) && this.$store.getters.xt_user.template_info.org_id != 10441)"
- v-show="totalShow">
- <el-form-item label="置换液总量(ml)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')" v-if="dialysisPrescription.mode_id!=26">
- <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
- </el-form-item>
-
- <el-form-item label="置换液总量(L/h)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')" v-if="dialysisPrescription.mode_id ==26">
- <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8"
- v-if="isShows('置换液总量') && (this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id !=24 && this.$store.getters.xt_user.template_info.template_id !=53) || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10441 "
- v-show="totalShow">
- <el-form-item label="置换液总量(L)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')" v-if="dialysisPrescription.mode_id!=26">
- <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
- </el-form-item>
- <el-form-item label="置换液总量(L/h)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')" v-if="dialysisPrescription.mode_id ==26">
- <el-input v-model="dialysisPrescription.displace_liqui_value"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('目标KT/V')">
- <el-form-item label="目标KT/V" prop="target_ktv" :rules="isCheckmust('目标KT/V')">
- <el-input v-model="dialysisPrescription.target_ktv"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="血管通路部位: " :prop="isName('血管通路部位')"
- :rules="isCheckmust('血管通路部位')" v-if="isShows('血管通路部位')">
- <el-input v-model="dialysisPrescription.blood_access_part_id" readonly @focus="showInnerDialog('17')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('血管通路')">
- <el-form-item label="血管通路:" prop="blood_access" :rules="isCheckmust('血管通路')">
- <el-select
- v-model="dialysisPrescription.blood_access"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(option, index) in blood_access_option"
- :key="index + 'i'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('抗凝提前停止')">
- <el-form-item label="抗凝提前停止(h): " prop="anticoagulant_stop_time_hour" :rules="isCheckmust('抗凝提前停止')">
- <el-input
- type="number"
- v-model="dialysisPrescription.anticoagulant_stop_time_hour"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('抗凝提前停止')">
- <el-form-item label="抗凝提前停止(min): " prop="anticoagulant_stop_time_min" :rules="isCheckmust('抗凝提前停止')">
- <el-input
- type="number"
- v-model="dialysisPrescription.anticoagulant_stop_time_min"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('抽血')">
- <el-form-item label="抽血:" prop="blood" :rules="isCheckmust('抽血')">
- <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')" ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('病情')">
- <el-form-item label="病情:" prop="illness" :rules="isCheckmust('病情')">
- <el-select v-model="dialysisPrescription.illness" placeholder="请选择">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(item, index) in illnessList "
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('葡萄糖')">
- <el-form-item label="葡萄糖:" prop="amylaceum" :rules="isCheckmust('葡萄糖')">
- <el-input v-model="dialysisPrescription.amylaceum"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('吸氧')">
- <el-form-item label="吸氧:" prop="oxygen_uptake" :rules="isCheckmust('吸氧')">
- <el-select v-model="dialysisPrescription.oxygen_uptake" placeholder="请选择"
- @change="changeOxygenList">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(item, index) in oxygenList "
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
- <el-form-item label="吸氧流量(L/分):" prop="oxygen_flow" :rules="isCheckmust('吸氧流量')">
- <el-input v-model="dialysisPrescription.oxygen_flow"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
- <el-form-item label="吸氧时长(h):" prop="oxygen_time" :rules="isCheckmust('吸氧时长')">
- <el-input v-model="dialysisPrescription.oxygen_time"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析管路')">
- <el-form-item label="透析管路:" prop="hemodialysis_pipelines" :rules="isCheckmust('透析管路')">
- <el-select
- v-model="dialysisPrescription.hemodialysis_pipelines"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in hemodialysisPipelinesOptions"
- :label="item.name"
- :key="index + 't'"
- :value="item.name"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析管路支数')">
- <el-form-item label="透析管路支数" prop="hemodialysis_pipelines_count" :rules="isCheckmust('透析管路支数')">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.hemodialysis_pipelines_count"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('穿刺针')">
- <el-form-item label="穿刺针" prop="puncture_needle" :rules="isCheckmust('穿刺针')">
- <el-input v-model="dialysisPrescription.puncture_needle"
- @focus="showInnerDialog('11')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('穿刺针支数')" >
- <el-form-item label="穿刺针支数" prop="puncture_needle_count" :rules="isCheckmust('穿刺针支数')">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.puncture_needle_count"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('促红素')">
- <el-form-item label="促红素:" prop="epo" :rules="isCheckmust('促红素')">
- <el-select
- v-model="dialysisPrescription.epo"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in epoOptions"
- :label="item.name"
- :key="index + 't'"
- :value="item.name"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('促红素支数')">
- <el-form-item label="促红素支数" prop="epo_count" :rules="isCheckmust('促红素支数')">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.epo_count"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('最大超滤率')">
- <el-form-item label="最大超滤率(ml/h)" prop="max_ultrafiltration_rate" :rules="isCheckmust('最大超滤率')">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.max_ultrafiltration_rate"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('处方医生')" >
- <el-form-item label="处方医生" prop="admin_user_id" :rules="isCheckmust('处方医生')">
- <el-select v-model="dialysisPrescription.admin_user_id" placeholder="请选择" style="width:100%;">
- <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- </el-row>
-
- <el-row :gutter="20">
- <el-col :span="24" v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
- <el-form-item label="透析备注:" prop="value" :rules="isCheckmust('透析备注')">
- <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
- <el-option
- v-for="(item, index) in educationList"
- :label="item.text"
- :value="item.value"
- :key="index"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
- <el-form-item prop="dialysis_remark" :rules="isCheckmust('透析备注')">
- <el-input
- type="textarea"
- v-model="dialysisPrescription.dialysis_remark"
- :rows="4"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row :gutter="20">
- <el-col :span="8" v-if="isShows('处方钠')">
- <el-form-item label="处方钠: " prop="prescription_sodium" :rules="isCheckmust('处方钠')">
- <el-input
- v-model="dialysisPrescription.prescription_sodium"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('开始钠')">
- <el-form-item label="开始钠: " prop="start_sodium" :rules="isCheckmust('开始钠')">
- <el-input
- v-model="dialysisPrescription.start_sodium"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('钠曲线')">
- <el-form-item label="钠曲线: " prop="sodium_curve" :rules="isCheckmust('钠曲线')">
- <el-input
- v-model="dialysisPrescription.sodium_curve"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row>
- <el-col :span="8" v-if="isShows('透析液流速')">
- <el-form-item label="透析液流速(ml/h):" prop="dialysis_fluid_flow" :rules="isCheckmust('透析液流速')">
- <el-input
-
- v-model="dialysisPrescription.dialysis_fluid_flow"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('碳酸氢钠流速')">
- <el-form-item label="碳酸氢钠流速(ml/h):" prop="sodium_bicarbonate_flow" :rules="isCheckmust('碳酸氢钠流速')">
- <el-input
- v-model="dialysisPrescription.sodium_bicarbonate_flow"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="Ns冲洗量(ml):" :prop="isName('冲洗量')" v-if="isShows('冲洗量') && dialysisPrescription.anticoagulant == 1">
- <el-input v-model="dialysisPrescription.warsh_count"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="q(h):" :prop="isName('冲洗时间')" v-if="isShows('冲洗时间') && dialysisPrescription.anticoagulant == 1">
- <el-input v-model="dialysisPrescription.washing_time"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
-
- <el-row :gutter="20">
- <el-col :span="24" v-if="isShows('病情处理')">
- <el-form-item label="病情处理: " prop="treatment_remark" :rules="isCheckmust('病情处理')">
- <el-input
- type="textarea"
- v-model="dialysisPrescription.treatment_remark"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row :gutter="20">
- <el-col :span="24">
- <el-form-item label="备注: " prop="remark" :rules="isCheckmust('备注')">
- <el-input
- type="textarea"
- v-model="dialysisPrescription.remark"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="handleCancle">取 消</el-button>
- <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
- <el-button type="primary" @click="handleCommit('dialysisPrescription')" :loading="isLoading">保 存</el-button>
- <el-button type="primary" @click="handleSolution('dialysisPrescription')" :loading="isLoading"
- >保存为长期处方</el-button
- >
- </span>
- </el-dialog>
- <!-- 点击保存长期 -->
- <el-dialog
- title="长期医嘱推送"
- :visible.sync="isShowRemindAdvice"
- width="1010px"
- :modal-append-to-body="false"
- :append-to-body="true"
- >
- <div style="display:flex;align-items:center;">
- <span style="font-weight: bold;color: #409eff;width:80px;">开始时间:</span>
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="start_time"
- ></el-date-picker>
-
- <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->
- </div>
- <el-checkbox-group v-model="checkedCities">
- <el-checkbox
- style="display: flex;align-items: center"
- v-for="(advice, index) in targetAdvices"
- :label="advice.id"
- :key="index+'q'"
- :value="advice.id"
- :name="advice.id"
- >
- <div style="padding-top: 10px;padding-left: 10px">
- 开嘱医生 {{ getDoctorName(advice.advice_doctor) }}
- </div>
- <br/>
- <div style="padding-left: 10px">
- 开嘱时间 {{ getTime(advice.created_time) }}
- </div>
- <br/>
- <div style="padding-bottom: 10px;padding-left: 10px">
- 医嘱内容 {{ getContent(advice) }}
- </div>
- <div
- style="padding-bottom: 10px;padding-left: 10px"
- v-if="advice.frequency_type == 1"
- >
- 推送频率 每次必推
- </div>
- <div
- style="padding-bottom: 10px;padding-left: 10px"
- v-if="advice.frequency_type == 2"
- >
- 推送频率 {{ advice.day_count }}天/次
- </div>
- <div
- style="padding-bottom: 10px;padding-left: 10px"
- v-if="advice.frequency_type == 3"
- >
- 推送频率 每周{{ advice.week_day }}
- </div>
- </el-checkbox>
- </el-checkbox-group>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="handleAdviceCancle">取 消</el-button>
- <el-button type="primary" @click="handleAdviceCommit" :loading="isLoading">保 存</el-button>
- </span>
- </el-dialog>
-
- <el-dialog
- :title="patient.name"
- :visible.sync="msgtip_visibility"
- :close-on-click-modal="false"
- :close-on-press-escape="false"
- :show-close="false"
- width="40%"
- >
- <div class="newLine">
- <span>本次透析日期</span>
- <span>{{ dialysis_date }}</span>
- </div>
- <div class="newLine">
- <span>透前称重(kg)</span>
- <span>{{ getBeforeWeight(predialysis) }}</span>
- </div>
- <div class="newLine">
- <span>干体重(kg)</span>
- <span>{{ getDryWeight() }}</span>
- </div>
- <div class="newLine">
- <span>衣物重(kg)</span>
- <span>{{ predialysis.additional_weight }}</span>
- </div>
- <div class="newLine">
- <span>体重增加(kg)</span>
- <span>{{ add_weight }}</span>
- </div>
- <div class="newLine">
- <span>透后称重(kg)</span>
- <span>{{ getAfterWeight(record) }}</span>
- </div>
- <div class="newLine">
- <span>体重减少(kg)</span>
- <span>{{ record.weight_loss }}</span>
- </div>
- <div class="newLine">
- <span>上次透后称重(kg)</span>
- <span>{{ getLastAfterWeight(last_record) }}</span>
- </div>
-
- <div class="newLine"><span>近五次数据展示:</span></div>
- <div>
- <el-table
- :data="tableData"
- border
- style="width: 100%">
- <el-table-column prop="date" label="透析日期" width="100">
- <template slot-scope="scope">
- {{getTimeOne(scope.row.assessment_date) }}
- </template>
- </el-table-column>
- <!-- <el-table-column prop="name" label="透前血压(mmHg)" width="140">
- <template slot-scope="scope">
- {{scope.row.systolic_blood_pressure}}/{{scope.row.diastolic_blood_pressure}}
- </template>
- </el-table-column> -->
- <el-table-column prop="name" label="透中血压(mmHg)" width="140">
- <template slot-scope="scope">
- {{ GetMonitorList(scope.row.assessment_date) }}
- </template>
- </el-table-column>
- <el-table-column prop="address" label="透后体重(kg)" width="160">
- <template slot-scope="scope">
- {{GetLast(scope.row.assessment_date)}}
- </template>
- </el-table-column>
- <el-table-column width="180" prop="address" label="透析器评级">
- <template slot-scope="scope">
- {{GetLastCruor(scope.row.assessment_date)}}
- </template>
- </el-table-column>
- </el-table>
- </div>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="cancleMsg()">取 消</el-button>
- <el-button type="primary" @click="cancleMsg()">确 定</el-button>
- </span>
- </el-dialog>
-
-
-
- <multi-select-box
- :propsForm="InnerDialogProps"
- v-on:dialog-comfirm="innerDialogComfirm"
- v-on:dialog-cancle="innerDialogCancle"
- ></multi-select-box>
-
-
- <el-dialog
- title="提示"
- :visible.sync="infoDialogVisible"
- width="30%">
- <span>
- <el-form>
- <el-row>
- <span>申请日期:</span>
- <span>
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="selected_date"
- ></el-date-picker>
- </span>
- </el-row>
- <el-row>
- <span>备注:</span>
- <span>
- <el-input v-model="remark" style="width:200px"></el-input>
- </span>
- </el-row>
- </el-form>
-
- </span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="infoDialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="saveInformation">确 定</el-button>
- </span>
- </el-dialog>
-
- </div>
- </template>
-
- <script>
- import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution,saveInformation,getPatientRecordList } from '@/api/dialysis'
- import { getDataConfig } from '@/utils/data'
- import { calculateAnticoagulantZL, uParseTime,replacementFlow } from '@/utils/tools'
- import store from '@/store'
- import MsgTip from './MsgTip'
- import request from '@/utils/request'
- import multiSelectBox from './MultiSelectBox'
- const moment = require('moment')
- export default {
- name: 'dialysisPrescriptionDialog',
- components: { MsgTip, multiSelectBox },
- props: {
- mode_id: {
- type: Number
- },
- schedual: {
- type: Object
- },
- is_open: {
- type: Number,
- default: () => {
- return 0
- }
- },
- waitUploadAdvices: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- targetAdvices: {
- type: Array,
- default: () => {
- return []
- }
- },
- admin_users: {
- type: Array,
- default: () => {
- return []
- }
- },
- niprocart_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- jms_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- fistula_needle_set_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- fistula_needle_set_16_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- hemoperfusion_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- dialyser_sterilised_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- filtryzer_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- dialyzers_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- injector_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- bloodlines_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- tubingHemodialysis_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- safe_package_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- aliquid_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- config: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- prescription: {
- // 透析处方
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- solution: {
- // 长期处方
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- dialysis_order: {
- // 透析记录
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- patient: {
- // 患者信息
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- devices: {
- type: Array,
- default: function() {
- return new Array()
- }
- },
-
- predialysis: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- last_predialysis: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- record: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- last_record: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- dry_weight: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- last_prescription: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- scheudle_mode: Number,
- stockType: {
- type: Array,
- default: () => {
- return []
- }
- },
- lastAssessment: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- admins: {
- type: Array
- },
- },
- computed: {
- dialysis_date: function() {
- if (this.$route.query.date) {
- return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
- } else {
- return this.record_date
- }
- }
- },
- data() {
- return {
- InnerDialogProps: {
- values: [],
- visibility: false,
- isShowTextArea: true,
- customContent: '',
- titles: '',
- type: '' // 不同弹框类型,用来匹配数据
- },
- advice_start_time: '',
- showTxt: '',
- start_time: '',
- hasPermission: true,
- zhiShow: false,
- totalShow: false,
- huShow: false,
- showName: '',
- isShowRemindAdvice: false,
- checkedCities: [],
- isVisibility: false,
- isShowTime: false,
- isClose: false,
- isShow: false,
- record_date: '',
- time: '',
- treatment_mode: [],
- timeValue: '',
- deviceList: [],
- replacement_ways: [],
- anticoagulantsConfit: {},
- dialysate_formulation_options: [],
- add_weight: 0,
- body_fluid_option: [],
- special_medicine_option: [],
- displace_liqui_part_option: [],
- blood_access_option: [],
- is_pre: 0,
- msgtip_visibility: false,
- startVisibility:false,
- dialysisPrescription: {
- replacement_total: '',
- mode_id: '',
- dialysis_duration: '',
- dialysis_duration_hour: '',
- dialysis_duration_minute: '0',
- mode_name: '',
- dialyzer: '',
- perfusion_apparatus: '',
- blood_flow_volume: '',
- dewater_amount: '',
- displace_liqui: '',
- replacement_way: '',
- anticoagulant: '',
- anticoagulant_shouji: '',
- anticoagulant_weichi: '',
- anticoagulant_zongliang: '',
- anticoagulant_gaimingcheng: '',
- anticoagulant_gaijiliang: '',
- kalium: '',
- sodium: '',
- calcium: '',
- bicarbonate: '',
- glucose: '',
- dry_weight: '',
- dialysate_flow: '',
- dialysate_temperature: '',
- target_ultrafiltration: '',
- dialysate_formulation: '',
- conductivity: '',
- doctor: '',
- remark: '',
- dialyzer_perfusion_apparatus: '',
-
- body_fluid: '',
- body_fluid_other: '',
- special_medicine: '',
- special_medicine_other: '',
- displace_liqui_part: '',
- displace_liqui_value: '',
- ultrafiltration: '',
- blood_access: '',
-
- niprocart: '',
- jms: '',
- fistula_needle_set: '',
- fistula_needle_set_16: '',
- hemoperfusion: '',
- dialyser_sterilised: '',
- filtryzer: '',
- target_ktv: '',
- dialyzers: '',
- injector: '',
- bloodlines: '',
- tubing_hemodialysis: '',
- package: '',
- a_liquid: '',
- no_anticoagulant_shouji: '0',
- no_anticoagulant_weichi: '0',
- no_anticoagulant_zongliang: '0',
- creater: 0,
- pre_impulse: 0, //预冲量
- anticoagulant_stop_time_hour: '',
- anticoagulant_stop_time_min: '',
- push_the_protamine: '',//下机前推注鱼精蛋白
- heparin_sodium: '', //肝素钠
- nucleoprotamine: '',//鱼精蛋白
- no_heparin_remarks: '',
- blood: '',
- dialysis_dialyszers: '',
- dialysis_irrigation: '',
- irrigation: '',
- antioxidant_commodity_name: '',
- displace_speed: '',
- illness: '',
- amylaceum: '',
- single_time: '',
- single_water: '',
- replacement_flow: '',
- plasma_separator: '',
- bilirubin_adsorption_column: '',
- oxygen_uptake: '',
- oxygen_flow: '',
- oxygen_time: '',
-
- hemodialysis_pipelines: '',
- hemodialysis_pipelines_count: '',
- puncture_needle: '',
- puncture_needle_count: '',
- epo: '',
- epo_count: '',
- max_ultrafiltration_rate:'',
- hemodialysisPipelinesOptions: [],
- punctureNeedleOptions: [],
- epoOptions: [],
- impulse:0,
- admin_user_id:"",
- drhy_water:"",
- is_water:0,
- dry_water_hour:"",
- water_machine:"否",
- add_amount:"",
- reduce_amount:"",
- dialysis_remark:"",
- prescribing_number:"",
- treatment_remark:"",
- prescription_sodium:"",
- start_sodium:"",
- sodium_curve:"",
- dialysis_fluid_flow:"",
- sodium_bicarbonate_flow:"",
- prescription_water:"",
- dialysis_strainer:"",
- chaptalization:"",
- warsh_count:"",
- washing_time:"",
- blood_access_part_id:"",
- anticoagulant_weichi_hour:"",
- dialyzate:""
- },
-
- anticoagulant: {
- id: 0,
- name: '',
- type: 1,
- shouji: 1,
- weichi: 1,
- zongliang: 1,
- gaimingcheng: -1,
- gaijiliang: -1,
- shouji_unit: 'mg',
- weichi_unit: 'mg/h',
- zongliang_unit: 'mg',
- gaimingcheng_unit: '',
- gaijiliang_unit: ''
- },
-
- doctorAdvices: [],
- dialyzerPerfusionApparatus: [],
- bloods: [],
- irrigations: [],
- dialyzers: [],
- dialysisStrainerList:[],
- illnessList: [],
- plasmaSeparatorList: [],
- bilirubinAdsorptionColumn: [],
- oxygenList: [
- { id: 1, name: '需' },
- { id: 2, name: '无' }
- ],
- oxygenShow: false,
- hemodialysisPipelinesOptions: [],
- epoOptions: [],
- isLoading: false,
- adminRoles:[{id:0,name:"请选择"}],
- waterList:[
- {id:0,name:"请选择"},
- {id:1,name:"是"},
- {id:2,name:"否"}
- ],
- dialyzateList:[
- {id:0,name:"请选择"},
- {id:1,name:"碳酸"},
- {id:2,name:"醋酸"}
- ],
- machineList:[
- {id:1,name:"是"},
- {id:2,name:"否"}
- ],
- zongliang:"",
- educationList:[],
- value:"",
- infoDialogVisible:false,
- selected_date:"",
- remark:"",
- blood_access_part: [],
- tableData:[],
- afterList:[],
- monitorList:[],
- }
-
- },
- methods: {
- changeOxygenList(val) {
- if (val == 1) {
- this.oxygenShow = true
- }
- if (val == 2) {
- this.oxygenShow = false
- this.prescription.oxygen_flow = ''
- this.prescription.oxygen_time = ''
- }
- },
- changeTime: function(val) {
- this.advice_start_time = val
-
- },
- showInnerDialog: function(val) {
-
- this.InnerDialogProps.visibility = true
- switch (val) {
- case '5': // 透析器/灌流器
-
- this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
- this.InnerDialogProps.titles = '透析器/灌流器'
- this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
-
- this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
- this.InnerDialogProps.isShowTextArea = false
- break
-
- case '6': // 透析器/灌流器
-
- this.InnerDialogProps.values = this.bloods
- this.InnerDialogProps.titles = '抽血'
- this.InnerDialogProps.type = 'blood'
- this.InnerDialogProps.selected = this.dialysisPrescription.blood
- this.InnerDialogProps.isShowTextArea = false
-
- case '7': // 透析器
-
- for (let i = 0; i < this.dialyzers.length; i++) {
- this.dialyzers[i].name = this.dialyzers[i].specification_name
- }
- this.InnerDialogProps.values = this.dialyzers
- this.InnerDialogProps.titles = '透析器'
- this.InnerDialogProps.type = 'dialyzers'
- this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
- this.InnerDialogProps.isShowTextArea = false
- break
- case '8':
- for (let i = 0; i < this.irrigations.length; i++) {
- this.irrigations[i].name = this.irrigations[i].specification_name
- }
- this.InnerDialogProps.values = this.irrigations
- this.InnerDialogProps.titles = '灌流器'
- this.InnerDialogProps.type = 'irrigations'
- this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
- this.InnerDialogProps.isShowTextArea = false
- break
- case '9': // 血浆灌流器
-
- this.InnerDialogProps.values = this.plasmaSeparatorList
- this.InnerDialogProps.titles = '血浆灌流器'
- this.InnerDialogProps.type = 'plasma_separator'
- this.InnerDialogProps.selected = this.dialysisPrescription.plasma_separator
- this.InnerDialogProps.isShowTextArea = false
- break
- mu
- case '10': // 胆红素吸附柱
-
- this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
- this.InnerDialogProps.titles = '胆红素吸附柱'
- this.InnerDialogProps.type = 'bilirubin_adsorption_column'
- this.InnerDialogProps.selected = this.dialysisPrescription.bilirubin_adsorption_column
- this.InnerDialogProps.isShowTextArea = false
- break
- case '11': //穿刺针
-
- this.InnerDialogProps.values = this.punctureNeedleOptions
- this.InnerDialogProps.titles = '穿刺针'
- this.InnerDialogProps.type = 'puncture_needle'
- this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
- this.InnerDialogProps.isShowTextArea = false
- break
-
- case '12':
- for (let i = 0; i < this.dialysisStrainerList.length; i++) {
- this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
- }
- this.InnerDialogProps.values = this.dialysisStrainerList
- this.InnerDialogProps.titles = '滤过器'
- this.InnerDialogProps.type = 'dialysis_strainer'
- this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_strainer
- this.InnerDialogProps.isShowTextArea = false
- break
- case '17': // 水肿
- this.InnerDialogProps.values = this.blood_access_part
- this.InnerDialogProps.titles = '血管通路部位'
- this.InnerDialogProps.type = 'blood_access_part_id'
- this.InnerDialogProps.selected = this.dialysisPrescription.blood_access_part_id
- this.InnerDialogProps.isShowTextArea = false
-
- break
- }
- },
- innerDialogComfirm: function(val) {
-
-
- this.InnerDialogProps.visibility = false
- switch (val.type) {
-
- case 'dialyzer_perfusion_apparatus':
- var newArr = []
- if(this.dialyzerPerfusionApparatus!=null && this.dialyzerPerfusionApparatus.length>0){
- for(let i=0;i<this.dialyzerPerfusionApparatus.length;i++){
- for(let j=0;j<val.value.length;j++){
- if(this.dialyzerPerfusionApparatus[i].name == val.value[j]){
- newArr.push(val.value[j])
- }
- }
- }
- }
- if(newArr!=null && newArr.length>0){
-
- this.dialysisPrescription.dialyzer_perfusion_apparatus = newArr.join(',')
- }else{
- this.dialysisPrescription.dialyzer_perfusion_apparatus = ""
- }
-
- break
- case 'blood':
-
- this.dialysisPrescription.blood = val.value.join(',')
- break
- case 'dialyzers':
-
- var newArr = []
- if(this.dialyzers!=null && this.dialyzers.length >0){
- for(let i=0;i<this.dialyzers.length;i++){
- for(let j=0;j<val.value.length;j++){
- if(this.dialyzers[i].specification_name == val.value[j]){
- newArr.push(val.value[j])
- }
- }
- }
- }
- if(newArr!=null && newArr.length >0){
- this.dialysisPrescription.dialysis_dialyszers = newArr.join(',')
- }else{
- this.dialysisPrescription.dialysis_dialyszers = ""
- }
-
- break
- case 'irrigations':
- var newArr = []
- if(this.irrigations!=null && this.irrigations.length >0){
- for(let i=0;i<this.irrigations.length;i++){
- for(let j=0;j<val.value.length;j++){
- if(this.irrigations[i].specification_name == val.value[j]){
- newArr.push(val.value[j])
- }
- }
- }
- }
- if(newArr!=null && newArr.length>0){
- this.dialysisPrescription.dialysis_irrigation = newArr.join(',')
- }else{
- this.dialysisPrescription.dialysis_irrigation = ""
- }
-
- break
- case 'plasma_separator':
- this.dialysisPrescription.plasma_separator = val.value.join(',')
- break
- case 'bilirubin_adsorption_column':
- this.dialysisPrescription.bilirubin_adsorption_column = val.value.join(',')
- break
- case 'puncture_needle':
- this.dialysisPrescription.puncture_needle = val.value.join(',')
- break
- case 'dialysis_strainer':
- this.dialysisPrescription.dialysis_strainer = val.value.join(',')
- break
- case 'blood_access_part_id':
- this.dialysisPrescription.blood_access_part_id = val.value.join(',')
- break
- }
- },
- innerDialogCancle: function() {
- this.InnerDialogProps.visibility = false
- },
-
- getDryWeight() {
- if (this.dry_weight != null && this.dry_weight.id > 0) {
- return this.dry_weight.dry_weight
- } else {
- if (this.last_predialysis != null && this.last_predialysis.id > 0) {
- return this.last_predialysis.dry_weight
- } else {
- return ''
- }
- }
- },
- getLastAfterWeight(record) {
- if (record != null && record.id > 0) {
- if (record.weight_after > 0) {
- let additional_weight = 0
- if (this.predialysis.additional_weight != undefined) {
- additional_weight = this.predialysis.additional_weight
- }
- return parseFloat(record.weight_after - additional_weight).toFixed(1)
- } else {
- return ''
- }
- }
- },
- getBeforeWeight(predialysis) {
- if (predialysis.id > 0) {
- if (predialysis.weight_before > 0) {
- return parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1)
- } else {
- return ''
- }
- }
- },
- getAfterWeight(record) {
- if (record.id > 0) {
- if (record.weight_after > 0) {
- return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1)
- } else {
- return ''
- }
- }
- },
- setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis, system_prescribe) {
-
- this.treatment_mode = this.$store.getters.treatment_mode
- // console.log("99999",this.treatment_mode)
- this.perfusion_apparatus = getDataConfig(
- 'hemodialysis',
- 'perfusion_apparatus'
- )
- this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
- this.dialysate_formulation_options = getDataConfig(
- 'hemodialysis',
- 'dialysate_formulation'
- )
- // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
-
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
- console.log("抗凝剂",this.anticoagulantsConfit)
-
- // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
- // console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
- // }
- // var anticoagulantsConfit = getDataConfig('hemodialysis', 'anticoagulant')
- // const arr = []
- // anticoagulantsConfit.map((item, index) => {
- // const objChild = { ...item }
- // arr.push(objChild)
- // })
- // var arrthree = {}
- // arrthree = { ...arr }
- // console.log('arrthree', arrthree)
- // const arrFour = []
- // Object.keys(anticoagulantsConfitOne).map((item, index) => {
- // arrFour.push(anticoagulantsConfitOne[item])
- // // if (index != 2) {
- // // arrFour.push(anticoagulantsConfitOne[item])
- // // }
- // })
- // console.log("arrFour0-0000000000000wo",arrFour)
- // this.anticoagulantsConfit = arrFour
- this.dialysisList = this.devices
-
- this.body_fluid_option = this.$store.getters.body_fluid
- this.special_medicine_option = this.$store.getters.special_medicine
- this.displace_liqui_part_option = this.$store.getters.displace_liqui
-
- this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
- this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
- this.epoOptions = getDataConfig('hemodialysis', 'epo')
-
- // this.blood_access_option = this.$store.getters.blood_access_internal_fistula;
- this.blood_access_option = getDataConfig(
- 'hemodialysis',
- 'vascular_access_desc'
- )
-
- // console.log('血管通路', this.blood_access_option)
- this.dialyzerPerfusionApparatus = getDataConfig(
- 'hemodialysis',
- 'dialyzer_perfusion_apparatus'
- )
- // console.log('3333333', this.dialyzerPerfusionApparatus)
- this.bloods = getDataConfig(
- 'hemodialysis',
- 'blood'
- )
-
- // dialyzerPerfusionApparatus.map(item => {
- // item.name = item.name.toUpperCase()
- // })
- // //去重
- // var arr = this.unique(dialyzerPerfusionApparatus)
- // this.dialyzerPerfusionApparatus = arr
- // console.log('灌流器', arr)
-
- if (this.$route.query && this.$route.query.date) {
- var date = this.$route.query && this.$route.query.date
- this.record_date = uParseTime(date, '{y}-{m}-{d}')
- } else {
- var date = schedual.schedule_date
- this.record_date = uParseTime(date, '{y}-{m}-{d}')
- }
-
- if (this.prescription != null && typeof this.prescription.id !== 'undefined' && this.prescription.id > 0) {
- for (const key in this.prescription) {
- this.dialysisPrescription[key] = this.prescription[key]
- }
- } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
- for (const key in this.solution) {
- if (key != 'target_ultrafiltration') {
- this.dialysisPrescription[key] = this.solution[key]
- }
- }
- } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
- for (const key in lastDialysisPrescribe) {
- if (key != 'target_ultrafiltration') {
- this.dialysisPrescription[key] = lastDialysisPrescribe[key]
- }
- }
- } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' && system_prescribe.id > 0) {
- for (const key in system_prescribe) {
- if (key != 'target_ultrafiltration') {
- this.dialysisPrescription[key] = system_prescribe[key]
- }
- }
- } else {
- if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
- this.zhiShow = true
- this.huShow = true
- this.totalShow = true
- if(schedual.mode_id == 2 || schedual.mode_id == 3 || schedual.mode_id == 4 || schedual.mode_id == 12){
- if(this.$store.getters.xt_user.template_info.org_id == 9970){
- this.dialysisPrescription.dialysis_remark = "患者毒素多,出现皮肤瘙痒,定期HDF或HP能改善患者不适症状,有利透析的充分性,因血液透析滤过有更稳定的血流动力学状态,且能有效清除中分子物质;血液灌流能更有效的清除大分子毒素。两者定期治疗能减少透析相关并发症,有得透析充分性,改善患者生活质量。"
- }
- }else{
- this.dialysisPrescription.dialysis_remark=""
- }
-
- } else {
- this.zhiShow = false
- this.huShow = false
- this.totalShow = false
- }
- // this.dialysisPrescription.mode_id = schedual.mode_id
-
- }
- var thismode = parseInt(this.dialysisPrescription.anticoagulant)
- if (isNaN(thismode) || thismode <= 0) {
- return false
- }
- if (
- typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
- this.anticoagulantsConfit[thismode] == null
- ) {
- return false
- }
- this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
-
- },
- menuMsgTip: function() {
- this.msgtip_visibility = false
- this.isVisibility = true
- },
- handleAdviceCommit() {
-
- let results = []
- for (let i = 0; i < this.targetAdvices.length; i++) {
- for (let a = 0; a < this.checkedCities.length; a++) {
- if (this.targetAdvices[i].id == this.checkedCities[a]) {
- results.push(this.targetAdvices[i])
- }
- }
- }
- var obj5 = {}
- results = results.reduce((cur, next) => {
- obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
- return cur
- }, [])
-
- var date = new Date()
- var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
-
- if (results.length > 0) {
- if(!this.isLoading){
- if (this.is_pre == 1) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
-
- const ParamsQuery = arr
-
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['patient_id'] = this.$route.query.patient_id
- if(this.$route.query.patient_id ==undefined){
- ParamsQuery['patient_id'] = this.patient.id
- }
- if (this.prescription.creater <= 0) {
- ParamsQuery['mode'] = '1'
- } else {
- ParamsQuery['mode'] = '2'
- if (
- this.$store.getters.xt_user.user.id !=
- this.dialysisPrescription.creater
- ) {
- ParamsQuery['mode'] = '3'
- }
- }
- this.isLoading = true
- console.log("ParamsQuery233232322323322332232323",ParamsQuery)
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- this.isLoading = false
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- var date = new Date()
-
- const params = {
- advices: results,
- advice_date: this.start_time.split(' ')[0],
- advice_doctor: results[0].advice_doctor,
- advice_type: results[0].advice_type,
- parent_id: this.patient_id,
- start_time: this.start_time,
- remark: ''
- }
- var patient_id = 0
- if(this.$route.query.patient_id == undefined){
- patient_id = this.patient.id
- }else{
- patient_id = this.$route.query.patient_id
- }
-
- CreateGroupAdvice(patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- this.isLoading = false
- } else {
- this.isLoading = false
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else if (this.is_pre == 2) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = 1
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- this.isLoading = false
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- // console.log(hour + ':' + minute)
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- const params = {
- advices: results,
- advice_date: this.start_time.split(' ')[0],
- advice_doctor: results[0].advice_doctor,
- advice_type: results[0].advice_type,
- parent_id: this.patient_id,
- start_time: this.start_time,
- remark: ''
- }
- var patient_id = 0
- if(this.$route.query.patient_id == undefined){
- patient_id = this.patient.id
- }else{
- patient_id = this.$route.query.patient_id
- }
- CreateGroupAdvice(patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- this.isLoading = false
- } else {
- this.isLoading = false
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.is_pre == 1) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('医嘱推送4', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- // console.log(this.prescription)
- let mode = ''
- if (this.prescription.creater <= 0) {
- mode = 1
- } else {
- mode = 2
- }
- ParamsQuery['mode'] = mode
- console.log("paramsquery",ParamsQuery)
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else if (this.is_pre == 2) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = 1
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
-
- this.isShowRemindAdvice = false
- this.isVisibility = true
-
- },
- handleAdviceCancle() {
- this.isShowRemindAdvice = false
- this.isVisibility = true
- },
- getTime(val) {
- return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
- },
- getTimeOne(val) {
- return uParseTime(val, '{y}-{m}-{d}')
- },
- showOne(prescription,admins){
- console.log("prescription",prescription)
- if(prescription!=null && prescription.id == 0){
- console.log("开始啊",admins)
- this.dialysisPrescription.admin_user_id = this.$store.getters.xt_user.user.id
- }else{
- this.dialysisPrescription.admin_user_id = prescription.admin_user_id?this.$store.getters.xt_user.user.id:0
- }
-
- this.adminRoles = []
- if(admins.length > 0 ){
- for(let i=0;i<admins.length;i++){
- this.adminRoles.push(admins[i])
- }
- }
- },
- show(pre, schedual, last, his_is_open,is_advice_open,admins) {
-
- if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635){
- if(this.predialysis!=undefined){
- if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
- this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
- }
-
- if(this.dialysisPrescription.prescription_water==0 || this.dialysisPrescription.prescription_water==""){
- if((this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)>0){
- this.dialysisPrescription.prescription_water = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
- }
-
- }
- }
- }
- if (pre != undefined) {
- this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
- if (pre.oxygen_uptake == 1) {
- this.oxygenShow = true
- }
- if (pre.oxygen_uptake == 2) {
- this.oxygenShow = false
- this.prescription.oxygen_flow = ''
- this.prescription.oxygen_time = ''
- }
- }
- if (his_is_open == 1) {
- this.is_open = 0
- }
- if(is_advice_open == 1){
- this.is_open = 1
- }
-
- if(this.$store.getters.xt_user.org.id == 10101){
- if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
- var date = new Date(this.predialysis.created_time * 1000)
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- } else {
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }
- }else{
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
-
-
- 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) {
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if(this.$store.getters.xt_user.org.id == 9990 || this.$store.getters.xt_user.org.id==10432){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '06:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 9671 ||this.$store.getters.xt_user.org.id == 10340){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10447){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10440){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 9829){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:30'
- }
- }else if(this.$store.getters.xt_user.org.id == 10469){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10471){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10580){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '10:30'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10517){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10383){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10234){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:30'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 9850){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:30'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10693){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '6:40'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if (this.$store.getters.xt_user.org.id == 10551){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if (this.$store.getters.xt_user.org.id == 10597){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if (this.$store.getters.xt_user.org.id == 10587){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if (this.$store.getters.xt_user.org.id == 10587){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if(this.$store.getters.xt_user.org.id == 10693){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if(this.$store.getters.xt_user.org.id == 10694){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if (this.$store.getters.xt_user.org.id == 10587){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if (this.$store.getters.xt_user.org.id == 10587){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if (this.$store.getters.xt_user.org.id == 10702){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- } else {
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }
- }
-
-
- if (pre.anticoagulant == 3) {
- this.dialysisPrescription.anticoagulant = '低分子肝素'
- }
-
- // 入口
- var pre = pre
- this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
- if (pre.id > 0) {
- this.dialysisPrescription.mode_id = pre.mode_id
- this.dialysisPrescription.water_machine = pre.water_machine
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- }
- // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
- // console.log('this.schedual', schedual.mode_id)
- if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12 || schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12 || schedual.mode_id == 0 || schedual.mode_id == 37 || schedual.mode_id == 36 || schedual.mode_id == 35 || schedual.mode_id == 34|| schedual.mode_id == 41) {
- this.zhiShow = true
- this.huShow = true
- this.totalShow = true
- } else if (
- pre.mode_id == 1 ||
- pre.mode_id == 3 ||
- pre.mode_id == 4 ||
- pre.mode_id == 6 ||
- pre.mode_id == 7 ||
- pre.mode_id == 8 ||
- pre.mode_id == 9 ||
- pre.mode_id == 11 ||
- pre.mode_id == 13 ||
- pre.mode_id == 14 ||
- pre.mode_id == 19
- ) {
- this.zhiShow = false
- this.huShow = false
- this.totalShow = false
-
- }
- this.pre = pre
- // console.log("pre1", pre);
- this.getPermission()
-
- let last_weight_after = 0
- let weight_before = 0
-
- if (this.last_record == null) {
- last_weight_after = 0
- } else {
- last_weight_after = this.last_record.weight_after
- }
- // console.log("last2323232323232332wode",this.predialysis)
- // console.log("lastwoowowow",last)
- if(this.predialysis!=null && this.predialysis.id == 0){
- 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){
- this.dialysisPrescription.sodium = 138
- this.dialysisPrescription.bicarbonate = 31.1
- this.dialysisPrescription.dialysate_flow = 500
- this.dialysisPrescription.dialysate_temperature = 36.5
- this.dialysisPrescription.prescribing_number = 1
- }
- if(this.$store.getters.xt_user.org.id == 10447 || this.$store.getters.xt_user.org.id == 10600 ){
- this.dialysisPrescription.dialysate_flow = 500
- }
-
- if(this.$store.getters.xt_user.org.id == 10375){
- this.dialysisPrescription.dialysate_flow = 500
- this.dialysisPrescription.bicarbonate = 32
- }
-
- if(this.$store.getters.xt_user.org.id == 10598 || this.$store.getters.xt_user.org.id == 10612){
- if(this.dialysisPrescription.dialysis_duration_minute == ""){
- this.dialysisPrescription.dialysis_duration_minute =0
-
- }
-
- if(this.dialysisPrescription.anticoagulant_weichi == ""){
- this.dialysisPrescription.anticoagulant_weichi = 0
- }
-
- if(this.dialysisPrescription.amylaceum == ""){
- this.dialysisPrescription.amylaceum = 0
- }
- }
- }
- if (this.predialysis == null || this.predialysis.id == 0) {
-
- if (last != null) {
-
- this.dialysisPrescription.niprocart = last.niprocart
- this.dialysisPrescription.jms = last.jms
- this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
- this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
- this.dialysisPrescription.hemoperfusion = last.hemoperfusion
- this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
- this.dialysisPrescription.filtryzer = last.filtryzer
- this.dialysisPrescription.target_ktv = last.target_ktv
- this.dialysisPrescription.dialyzers = last.dialyzers
- this.dialysisPrescription.injector = last.injector
- this.dialysisPrescription.bloodlines = last.bloodlines
- this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
- this.dialysisPrescription.package = last.package
- this.dialysisPrescription.a_liquid = last.a_liquid
- this.zongliang = last.anticoagulant_zongliang
- this.dialysisPrescription.chaptalization = last.chaptalization
- this.dialysisPrescription.blood_access_part_id = last.blood_access_part_id
- if(this.$store.getters.xt_user.template_info.org_id!=10013 && this.$store.getters.xt_user.template_info.org_id!=10014){
- this.remark = last.remark
- }
-
- weight_before = 0
-
- }
-
- } else {
- weight_before = this.predialysis.weight_before
-
- }
-
-
- if (weight_before > 0 && last_weight_after > 0) {
- this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
- 2
- )
- // console.log('体重增加', this.add_weight)
- }
-
- this.isVisibility = true
- this.checkedCities = []
- var total_day = ""
- if(moment().weekday() == 1){
- total_day ="周一"
- }
- if(moment().weekday() == 2){
- total_day ="周二"
- }
- if(moment().weekday() == 3){
- total_day ="周三"
- }
- if(moment().weekday() == 4){
- total_day ="周四"
- }
- if(moment().weekday() == 5){
- total_day ="周五"
- }
- if(moment().weekday() == 6){
- total_day ="周六"
- }
- if(moment().weekday() == 0){
- total_day ="周日"
- }
-
- console.log("hhhhhhhhhhhhhhhhhhhhhhhhhhh",this.targetAdvices)
- if(this.targetAdvices!=null && this.targetAdvices.length >0){
- for (let i = 0; i < this.targetAdvices.length; i++) {
- console.log("WOOWOWOWOWOWOW",this.targetAdvices[i].week_day.indexOf(total_day))
- if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
- console.log("尽力啊=--------------------")
- this.targetAdvices[i].isCheck = 1
- }
- if(this.targetAdvices[i].frequency_type == 1){
- this.targetAdvices[i].isCheck = 1
- }
- }
- }
- for (let i = 0; i < this.targetAdvices.length; i++) {
-
- if (this.targetAdvices[i].isCheck == 1) {
- this.checkedCities.push(this.targetAdvices[i].id)
- }
- }
-
-
- if(admins.length > 0 ){
- for(let i=0;i<admins.length;i++){
- this.adminRoles.push(admins[i])
- }
- }
- console.log("---------",this.targetAdvices)
- console.log("admin_user_+id2332323223332", this.adminRoles)
- },
- hide() {
- this.isVisibility = false
- },
- changeThisAnticoagulant: function(val) {
- console.log("val",val)
- var thismode = val
- if (isNaN(thismode) || thismode <= 0) {
- return false
- }
- // if (val != 12 && val!=1) {
- // this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
- // }
- // if (val == 12 || val == 1) {
- // this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
- // console.log("抗凝剂",this.anticoagulant)
- // }
- if (
- typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
- this.anticoagulantsConfit[thismode] == null
- ) {
- return false
- }
- this.anticoagulant = this.anticoagulantsConfit[thismode]
- 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) {
- if(val == 2){
- this.anticoagulant.shouji_unit = 'mg'
- }else{
- this.anticoagulant.shouji_unit = 'iu'
- }
-
- this.anticoagulant.weichi_unit = 'mg/h'
- this.anticoagulant.zongliang_unit = 'mg'
- }
-
- if (this.$store.getters.xt_user.template_info.template_id == 27 && val == 4) {
- this.anticoagulant.shouji_unit = 'ml'
- this.anticoagulant.weichi_unit = 'ml'
- this.anticoagulant.zongliang_unit = 'ml'
- }
- 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){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
-
- },
-
- handleCommit (formName) {
- if(this.$store.getters.xt_user.template_info.org_id ==10579 ){
- if(this.dialysisPrescription.target_ultrafiltration==0){
- this.$message.error("目标超滤量不能为空")
- return false
- }
- }
-
- this.$refs[formName].validate((valid)=>{
- if(valid){
- if(!this.isLoading){
- if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
- this.dialysisPrescription.anticoagulant = 3
- }
- if (this.dialysisPrescription.anticoagulant == 1 || this.dialysisPrescription.anticoagulant == 12) {
- this.dialysisPrescription.anticoagulant_weichi = '0'
- this.dialysisPrescription.anticoagulant_shouji = '0'
- this.dialysisPrescription.anticoagulant_zongliang = '0'
- }
- // if (this.$store.getters.xt_user.template_info.template_id == 6) {
- // if (this.dialysisPrescription.mode_id == 2) {
- // if (
- // this.dialysisPrescription.displace_liqui_part == 0 ||
- // this.dialysisPrescription.displace_liqui_part == -2 ||
- // this.dialysisPrescription.displace_liqui_value == 0 ||
- // this.dialysisPrescription.displace_liqui_value == ''
- // || this.dialysisPrescription.replacement_total == 0 ||
- // this.dialysisPrescription.replacement_total == '' ||
- // this.dialysisPrescription.displace_speed == 0 ||
- // this.dialysisPrescription.displace_speed == ''
- // ) {
- // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
- // return
- // }
- // }
-
- // }
- if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12 && this.dialysisPrescription.mode_id!=10 && this.dialysisPrescription.mode_id!=34 && this.dialysisPrescription.mode_id!=35 && this.dialysisPrescription.mode_id!=36 && this.dialysisPrescription.mode_id!=37 && this.dialysisPrescription.mode_id!=41){
- this.dialysisPrescription.displace_liqui_part = 0
- this.dialysisPrescription.displace_liqui_value = 0
- this.dialysisPrescription.replacement_total = 0
- this.dialysisPrescription.displace_speed = 0
- console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
- console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
-
- }
-
- this.is_pre = 1
-
- if (this.prescription.id == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('night', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
-
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第一', ParamsQuery)
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
-
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提醒
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('ParamsQuerytwo', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第二')
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- console.log('paramsquerythree', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第三')
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const params = {
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- this.advice_start_time,
-
- remark: ''
- }
- console.log('params--------', params)
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('paramsqueryfour', ParamsQuery)
- // console.log('创建者', this.prescription.creater)
- // if (this.prescription.creater <= 0) {
- // mode = 1;
- // } else {
- // mode = 2;
- // }
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- // console.log(this.prescription);
- console.log('第四')
- ParamsQuery['patient_id'] = this.patient.id
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- // console.log("aaaaaaa", prescription_resp);
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.prescription.creater == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('paramsqueryfive', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第五')
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提醒
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('ParamsQuerysix', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- console.log('第6')
- ParamsQuery['patient_id'] = this.patient.id
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('parasmqueryseven', parasmqueryseven)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- console.log('第七')
- ParamsQuery['patient_id'] = this.patient.id
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const params = {
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
-
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- hour +
- ':' +
- minute,
-
- remark: ''
- }
- CreateGroupAdvice(
- this.$route.query.patient_id,
- 0,
- params
- ).then(rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('eight', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第八')
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('night', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '2'
- ParamsQuery['patient_id'] = this.patient.id
-
- if (
- this.$store.getters.xt_user.user.id !=
- this.dialysisPrescription.creater
- ) {
- ParamsQuery['mode'] = '3'
- }
- console.log('第九',ParamsQuery)
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- }
- }
- }else {
- console.log("error submit!!");
- return false;
- }
- })
-
- },
- handleCancle: function() {
- this.hide()
- },
- handleSolution: function(formName) {
- if(this.dialysisPrescription.anticoagulant == "" || this.dialysisPrescription.anticoagulant == 0){
- this.dialysisPrescription.anticoagulant = 3
- }
- if(this.$store.getters.xt_user.template_info.org_id ==10579 ){
- if(this.dialysisPrescription.target_ultrafiltration==0){
- this.$message.error("目标超滤量不能为空")
- return false
- }
- }
- this.$refs[formName].validate((valid)=>{
- if(valid){
- if(!this.isLoading){
- if (this.dialysisPrescription.anticoagulant == 1 || this.dialysisPrescription.anticoagulant == 12) {
- this.dialysisPrescription.anticoagulant_weichi = '0'
- this.dialysisPrescription.anticoagulant_shouji = '0'
- this.dialysisPrescription.anticoagulant_zongliang = '0'
- }
- // if (this.$store.getters.xt_user.template_info.template_id == 6) {
- // if (this.dialysisPrescription.mode_id == 2) {
- // if (
- // this.dialysisPrescription.displace_liqui_part == 0 ||
- // this.dialysisPrescription.displace_liqui_part == -2 ||
- // this.dialysisPrescription.displace_liqui_value == 0 ||
- // this.dialysisPrescription.displace_liqui_value == ''
- // || this.dialysisPrescription.replacement_total == 0 ||
- // this.dialysisPrescription.replacement_total == ''||
- // this.dialysisPrescription.displace_speed == 0 ||
- // this.dialysisPrescription.displace_speed == ''
- // ) {
- // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
- // return
- // }
- // }
- // if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
- // this.dialysisPrescription.displace_liqui_part == 0
- // this.dialysisPrescription.displace_liqui_value == 0
- // this.dialysisPrescription.replacement_total == 0
- // this.dialysisPrescription.displace_speed == 0
- // console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
- // console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
- // // this.dialysisPrescription.displace_liqui_part = 0
- // // this.dialysisPrescription.displace_liqui_value = 0
- // // this.dialysisPrescription.replacement_total = 0
- // // this.dialysisPrescription.displace_speed = 0
- // }
- // }
-
- this.is_pre = 2
-
- if (this.prescription.id == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了2",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- const ParamsQuery = arr
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了3",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr3', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方2', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- // if (this.patient.id <= 0) {
- // this.$message.error('没有选择患者')
- // this.loading = false
- // return
- // }
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- const ParamsQuery = arr
- // console.log('长期处方3', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- // console.log(this.prescription)
-
- ParamsQuery['mode'] = '1'
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const params = {
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- hour +
- ':' +
- minute,
-
- remark: ''
- }
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了5",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr5', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方5', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.prescription.creater == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方6', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提醒
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了7",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- console.log('长期处方7', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- const ParamsQuery = arr
- // console.log('长期处方8', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const params = {
-
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
- start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
- // start_time:
- // uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- // ' ' +
- // hour +
- // ':' +
- // minute,
-
- remark: ''
- }
- CreateGroupAdvice(
- this.$route.query.patient_id,
- 0,
- params
- ).then(rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- console.log("预充了99999",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方9', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了1",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr12333223', arr)
-
- const ParamsQuery = arr
-
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- console.log('长期处方10', ParamsQuery)
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- }
- }
- })
- },
- isName(name) {
- let filedList = store.getters.xt_user.fileds;
- for (let i = 0; i < filedList.length; i++) {
- if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
- return filedList[i].filed_name;
- }
- }
- },
- isShows(name) {
- var filedList = store.getters.xt_user.fileds
- for (let i = 0; i < filedList.length; i++) {
- if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
- return true
- }
- }
- return false
- },
-
- isCheckmust(name) {
- let filedList = store.getters.xt_user.fileds;
-
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 1 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_write == 1&&
- filedList[i].is_show == 1
- ) {
- // console.log(filedList[i],'false')
- if (name == "透析模式" || name == "透析时长") {
- return [
- { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
- // {
- // required: true,
- // pattern: /^[1-9]\d*$/,
- // message: `请输入${name}`,
- // trigger: ['blur','change']
- // },
- ];
- }
- return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
-
- }
- }
- },
- isNas(name){
- let filedList = store.getters.xt_user.fileds;
-
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 1 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_write == 1&&
- filedList[i].is_show == 1
- ) {
- return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
-
- }
- }
- },
- isSubstitution(name){
- if(this.dialysisPrescription.mode_id == 2 ||this.dialysisPrescription.mode_id == 5 || this.dialysisPrescription.mode_id == 12){
- let filedList = store.getters.xt_user.fileds;
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 1 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_write == 1&&
- filedList[i].is_show == 1
- ) {
- if(name == '置换速度'){
- return [
- { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
- // {
- // required: true,
- // pattern: /^[1-9]\d*$/,
- // message: `请输入${name}`,
- // trigger: ['blur','change']
- // },
- ];
- }
- return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
-
- }
- }
- }else{
- return [{required: false}]
- }
-
- },
-
- getDoctorName(doctor_id) {
- for (let i = 0; i < this.admin_users.length; i++) {
- if (this.admin_users[i].id == doctor_id) {
- return this.admin_users[i].name
- }
- }
- },
- getContent(val) {
- let prescribing_number = ''
- let single_dose = ''
- let advice_desc = ''
-
- if (val.prescribing_number > 0) {
- prescribing_number =
- val.prescribing_number + val.prescribing_number_unit
- }
- if (val.single_dose > 0) {
- single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
- }
-
- if (val.advice_desc > 0 || val.advice_desc.length > 0) {
- advice_desc = val.advice_desc + val.drug_spec_unit
- }
-
- let name = ''
- if (val.child.length > 0) {
- for (let i = 0; i < val.child.length; i++) {
- if (val.child[i].prescribing_number > 0) {
- val.child[i]['presc'] =
- val.child[i].prescribing_number +
- val.child[i].prescribing_number_unit
- } else {
- val.child[i]['presc'] = ''
- }
-
- if (val.child[i].single_dose > 0) {
- val.child[i]['single'] =
- ' ' +
- ' 单次用量 ' +
- ' ' +
- val.child[i].single_dose +
- val.child[i].single_dose_unit
- } else {
- val.child[i]['single'] = ''
- }
- name =
- name +
- '▲' +
- val.child[i].advice_name +
- '' +
- val.child[i].advice_desc +
- val.child[i].drug_spec_unit +
- val.child[i].presc +
- val.child[i].single
- }
- return (
- val.advice_name +
- ' ' +
- advice_desc +
- ' ' +
- val.drug_spec_unit +
- prescribing_number +
- ' ' +
- single_dose +
- ' ' +
- ' ' +
- val.delivery_way +
- ' ' +
- val.execution_frequency +
- val.remark +
- name
- )
- } else {
- return (
- val.advice_name +
- ' ' +
- advice_desc +
- prescribing_number +
- ' ' +
- single_dose +
- ' ' +
- ' ' +
- val.delivery_way +
- ' ' +
- val.execution_frequency +
- val.remark
- )
- }
- },
- changePrescription(id) {
- console.log("id233223232323232323",id)
- if(id != 2 && id!=5 && id!= 12&&id!=34 &&id!=35&&id!=35&&id!=36&&id!=37){
- this.dialysisPrescription.displace_liqui_value = ""
- this.dialysisPrescription.displace_liqui_part = ""
- this.dialysisPrescription.replacement_total = ""
- this.dialysisPrescription.displace_speed = ""
- }
-
- if(id == 2 || id ==3 || id ==4 || id ==12){
- if(this.$store.getters.xt_user.template_info.org_id == 9970){
- this.dialysisPrescription.dialysis_remark = "患者毒素多,出现皮肤瘙痒,定期HDF或HP能改善患者不适症状,有利透析的充分性,因血液透析滤过有更稳定的血流动力学状态,且能有效清除中分子物质;血液灌流能更有效的清除大分子毒素。两者定期治疗能减少透析相关并发症,有得透析充分性,改善患者生活质量。"
- }
- }else{
- this.dialysisPrescription.dialysis_remark = ""
- }
-
-
-
- const ParamsQuery = {}
- ParamsQuery['patient_id'] = this.$route.query.patient_id
- ParamsQuery['mode_id'] = id
- GetSolution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- console.log('切换数据', response.data.data.solution)
- this.$message.success('切换成功')
- console.log("dialysisPrescription",response.data.data.dialysisPrescription)
-
- if (response.data.data.solution != null) {
- for (const key in response.data.data.solution) {
- // 长期处方不为空
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid'&& key != 'remark') {
- this.dialysisPrescription[key] =
- response.data.data.solution[key]
- }
- }
- 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) {
- console.log('抠门;哦啊', response.data.data.dialysisPrescription.remark)
- this.dialysisPrescription.sodium = 138
- this.dialysisPrescription.bicarbonate = 31.1
- this.dialysisPrescription.dialysate_flow = 500
- if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
- this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
- }
- }
- if(this.$store.getters.xt_user.template_info.org_id== 10013 || this.$store.getters.xt_user.template_info.org_id== 10014){
- if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
- this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
- }
- }
- } else {
- if (response.data.data.prescription != null) {
- // 临时处方不为空
- for (const key in response.data.data.prescription) {
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
- this.dialysisPrescription[key] =
- response.data.data.prescription[key]
- }
- }
- } else if (response.data.data.system_prescription != null) {
- // 系统处方不为空
- for (const key in response.data.data.system_prescription) {
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
- this.dialysisPrescription[key] =
- response.data.data.system_prescription[key]
- }
- }
-
- } else {
- for (const key in this.dialysisPrescription) {
- // 临时处方为空
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
- this.dialysisPrescription[key] = ''
- }
- }
- this.dialysisPrescription.mode_id = id
- }
- 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) {
- this.dialysisPrescription.sodium = 138
- this.dialysisPrescription.bicarbonate = 31.1
- this.dialysisPrescription.dialysate_flow = 500
- if (this.last_prescription != null && response.data.data.system_prescription != null && response.data.data.system_prescription.remark == '') {
- this.dialysisPrescription.remark = response.data.data.system_prescription.remark
- }
- }
- }
-
- if(response.data.data.dialysisPrescription!=null){
- this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
- }
- }
- if (response.data.data.solution == null) {
- 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) {
- this.dialysisPrescription.sodium = 138
- this.dialysisPrescription.bicarbonate = 31.1
- this.dialysisPrescription.dialysate_flow = 500
- if (this.last_prescription != null) {
- this.dialysisPrescription.remark = this.last_prescription.remark
- }
- }
- if(this.$store.getters.xt_user.template_info.org_id== 10013 || this.$store.getters.xt_user.template_info.org_id== 10014){
- if (this.last_prescription != null) {
- this.dialysisPrescription.remark = this.last_prescription.remark
- }
- }
-
- }
- if (
- this.dialysisPrescription.dialysis_duration_hour === '' ||
- this.dialysisPrescription.dialysis_duration_minute === ''
- ) {
- this.timeValue = ''
- this.time = '03:00'
- } else {
- this.timeValue =
- this.dialysisPrescription.dialysis_duration_hour +
- '小时' +
- this.dialysisPrescription.dialysis_duration_minute +
- '分钟'
- this.time =
- (this.dialysisPrescription.dialysis_duration_hour > 10
- ? this.dialysisPrescription.dialysis_duration_hour
- : '0' + this.dialysisPrescription.dialysis_duration_hour) +
- ':' +
- (this.dialysisPrescription.dialysis_duration_minute > 10
- ? this.dialysisPrescription.dialysis_duration_minute
- : '0' + this.dialysisPrescription.dialysis_duration_minute)
- }
- })
-
- if (
- id === 1 ||
- id === 3 ||
- id === 4 ||
- id === 6 ||
- id === 7 ||
- id === 8 ||
- id === 9 ||
- id === 11 ||
- id === 13 ||
- id === 14 ||
- id === 15 ||
- id === 16 ||
- id === 19 ||
- id === 42
- ) {
- this.zhiShow = false
- this.huShow = false
- this.totalShow = false
- } else {
- this.zhiShow = true
- this.huShow = true
- this.totalShow = true
-
- //针对新化博翔
- if(this.$store.getters.xt_user.template_info.org_id ==10447){
- this.dialysisPrescription.displace_liqui_part = 1
- this.dialysisPrescription.displace_liqui_value = 35
- }
- }
-
- },
- handlePatientInfo(id) {
-
- getPatientRecordList(id).then(response=>{
- if(response.data.state ==1){
- this.isVisibility = false
- this.msgtip_visibility = true
-
-
- var beforList = response.data.data.beforList
-
- this.tableData = beforList
-
- var afterList = response.data.data.afterList
-
- this.afterList = afterList
-
- this.monitorList = response.data.data.monitorList
- }
- })
-
- },
- GetLast(date){
- var weight_after = ""
- for(let i=0;i<this.afterList.length;i++){
- if(date == this.afterList[i].assessment_date){
- weight_after = this.afterList[i].weight_after
- }
- }
- return weight_after
- },
- GetLastCruor(date){
- var cruor = ""
- for(let i=0;i<this.afterList.length;i++){
- if(date == this.afterList[i].assessment_date){
- cruor = this.afterList[i].cruor
- }
- }
- return cruor
- },
- GetMonitorList(monitor_date){
-
- var str = ""
- var newArr = []
- for(let i=0;i<this.monitorList.length;i++){
- for(let j=0;j<this.monitorList[i].child.length;j++){
- if(monitor_date == this.monitorList[i].monitoring_date){
- newArr.push(this.monitorList[i].child[j])
- }
- }
- }
-
- if(newArr!=null && newArr.length>0){
- for(let i=0;i<newArr.length;i++){
- str += newArr[i].systolic_blood_pressure +"/"+newArr[i].diastolic_blood_pressure+","
- }
- }
-
- return str
- },
- handlePatientInfoOne(){
- this.isVisibility = false
- this.startVisibility = true
- },
- cancleMsg() {
- this.isVisibility = true
- this.msgtip_visibility = false
- },
- cancleMsgOne(){
- this.isVisibility = true
- this.startVisibility = false
- },
- getPermission() {
- request
- .get('/api/func_per/get', {
- params: {
- create_url: '/api/dialysis/prescription?mode=1',
- modify_url: '/api/dialysis/prescription?mode=2',
- modify_other_url: '/api/dialysis/prescription?mode=3',
- module: 1
- }
- })
- .then(res => {
- // console.log(res)
- // console.log('predialysis.creater', this.pre.creater)
- // console.log('admin.id', this.$store.getters.xt_user.user.id)
- if (res.data.state == 0) {
- this.hasPermission = false
- } else if (res.data.state == 1) {
- if (this.pre.id != '' && this.pre.creater != 0) {
- // 有数据
- if (this.pre.creater == this.$store.getters.xt_user.user.id) {
- // 创建人是自己
- if (res.data.data.is_has_modify == false) {
- this.hasPermission = false
- this.showTxt = '你没有修改透析处方权限'
- }
- } else {
- // 创建人不是自己
- if (res.data.data.is_has_modify_other == false) {
- this.hasPermission = false
- this.showTxt = '你没有修改他人透析处方权限'
- }
- }
- } else if (this.pre.id == '' || this.pre.creater == 0) {
- if (res.data.data.is_has_create == false) {
- this.hasPermission = false
- this.showTxt = '你没有新增透析处方权限'
- }
- }
- }
- })
- },
- unique(arr) {
- const res = new Map()
- return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
- },
-
- dialysisAfterTeachSelectChange: function(values) {
- console.log("values232323232wo",values)
- if (this.dialysisPrescription.dialysis_remark == '' || this.dialysisPrescription.dialysis_remark==undefined) {
- this.dialysisPrescription.dialysis_remark = values
- } else {
- console.log("this.dialysisPrescription.dialysis_remark",this.dialysisPrescription.dialysis_remark)
- if (this.dialysisPrescription.dialysis_remark!=undefined&&this.dialysisPrescription.dialysis_remark.indexOf(values) == -1) {
- if (this.dialysisPrescription.dialysis_remark.charAt(this.dialysisPrescription.dialysis_remark.length - 1).indexOf('。') == -1) {
- this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + ',' + values
- } else {
- this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + values
- }
- }
- }
- },
-
- saveInformation(){
- var params = {
- selected_date:this.selected_date,
- patient_id:this.$route.query.patient_id,
- record_date:this.$route.query.date,
- module:1,
- remark:this.remark,
- }
- saveInformation(params).then(response=>{
- if(response.data.state == 1){
- var information = response.data.data.information
- this.$message.success("提交成功!")
- this.infoDialogVisible = false
- }
- })
- }
- },
-
- watch: {
- // 'dialysisPrescription.blood_flow_volume': function () {
- // this.dialysisPrescription.blood_flow_volume = replacementFlow(this.dialysisPrescription.blood_flow_volume)
- // },
- // 'dialysisPrescription.replacement_flow': function () {
- // console.log("血流量",this.dialysisPrescription.replacement_flow)
- // this.dialysisPrescription.replacement_flow = this.dialysisPrescription.replacement_flow
- // },
- 'dialysisPrescription.dialysis_duration_hour': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
-
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
-
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- },
- 'dialysisPrescription.dialysis_duration_minute': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
-
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
- }
-
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
- this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount
- )
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- },
- 'dialysisPrescription.anticoagulant_shouji': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
- 1,
- this.dialysisPrescription.anticoagulant_shouji,
- duration,
- this.dialysisPrescription.anticoagulant_weichi,
- this.dialysisPrescription.add_amount,
- this.dialysisPrescription.reduce_amount
- )
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
- },
- 'dialysisPrescription.anticoagulant_weichi': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
-
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
-
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
-
- },
-
-
- 'prescription.id': {
- immediate: true,
- deep: true,
- handler(oldVal, newVal) {
- if (oldVal == newVal) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- }
- if (this.prescription.id > 0) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- } else if (this.prescription.id == 0) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- }
- }
- },
- 'solution.id': function() {
- if (this.solution.id > 0) {
- if (
- this.prescription != null &&
- typeof this.prescription.id !== 'undefined' &&
- this.prescription.id > 0
- ) {
- for (const key in this.prescription) {
- this.dialysisPrescription[key] = this.prescription[key]
- }
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- } else if (
- this.solution != null &&
- typeof this.solution.id !== 'undefined' &&
- this.solution.id
- ) {
- for (const key in this.solution) {
- this.dialysisPrescription[key] = this.solution[key]
- }
-
- if (this.solution['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.solution['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.solution['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.solution['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.solution['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.solution['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.solution['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.solution['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.solution['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.solution['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.solution['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.solution['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.solution['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.solution['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.solution['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.solution['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.solution['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.solution['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.solution['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.solution['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
-
- }
- }
- },
- 'dialysisPrescription.add_amount': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
- 1,
- this.dialysisPrescription.anticoagulant_shouji,
- duration,
- this.dialysisPrescription.anticoagulant_weichi,
- this.dialysisPrescription.add_amount,
- this.dialysisPrescription.reduce_amount
- )
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
- },
- 'dialysisPrescription.reduce_amount': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
- 1,
- this.dialysisPrescription.anticoagulant_shouji,
- duration,
- this.dialysisPrescription.anticoagulant_weichi,
- this.dialysisPrescription.add_amount,
- this.dialysisPrescription.reduce_amount
- )
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
- },
- 'dialysisPrescription.prescription_water':function(){
- if(this.$store.getters.xt_user.template_info.org_id==10598){
-
- if(this.dialysisPrescription.mode_id == 2 || this.dialysisPrescription.mode_id == 3){
- this.dialysisPrescription.target_ultrafiltration = parseFloat(this.dialysisPrescription.prescription_water) + 0.3
- }else{
- if(this.dialysisPrescription.prescription_water > this.dialysisPrescription.target_ultrafiltration){
- this.dialysisPrescription.target_ultrafiltration = this.dialysisPrescription.prescription_water
- }
- }
-
-
- }
-
- },
- stockType: function() {
- console.log('stockType', this.stockType)
- var arr = []
- var arrTwo = []
- var arrThree = []
- for (let i = 0; i < this.stockType.length; i++) {
- if (this.stockType[i].stock_attribute == 2) {
- arr.push(this.stockType[i])
- }
- if (this.stockType[i].stock_attribute == 3) {
- arrTwo.push(this.stockType[i])
- }
- if(this.stockType[i].stock_attribute == 4){
- arrThree.push(this.stockType[i])
- }
- }
- var dialyzator = []
- var irrigation = []
- var dialysis_strainer = []
- for (let i = 0; i < arr.length; i++) {
- for (let j = 0; j < arr[i].GoodInfo.length; j++) {
- dialyzator.push(arr[i].GoodInfo[j])
- }
- }
- this.dialyzers = dialyzator
-
- for (let i = 0; i < arrTwo.length; i++) {
- for (let j = 0; j < arrTwo[i].GoodInfo.length; j++) {
- irrigation.push(arrTwo[i].GoodInfo[j])
- }
- }
- this.irrigations = irrigation
-
- for(let i=0;i<arrThree.length;i++){
- for (let j = 0; j < arrThree[i].GoodInfo.length; j++) {
- dialysis_strainer.push(arrThree[i].GoodInfo[j])
- }
- }
-
- this.dialysisStrainerList = dialysis_strainer
- },
-
- admin_user_id:function(){
- console.log("处方医生",this.admins)
- if(this.admins.length > 0 ){
- for(let i=0;i<this.admins.length;i++){
- this.adminRoles.push(this.admins[i])
- }
- }
- console.log(" 人员",this.adminRoles)
- },
-
- },
- created() {
-
- this.illnessList = getDataConfig('hemodialysis', 'illness')
-
- this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
- this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')
-
- this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis', 'bilirubin_adsorption_column')
-
-
- this.educationList = getDataConfig('dialysis_remark', 'dialysis_remark')
-
-
-
- }
- }
- </script>
-
- <style rel="stylesheet/scss" lang="scss" scoped>
- .el-checkbox,
- .el-checkbox__input {
- vertical-align: middle;
- }
-
- .newLine {
- display: flex;
- justify-content: space-between;
- height: 40px;
- line-height: 40px;
- border-bottom: 1px solid #ccc;
- color: #303133;
- }
-
- .warnTxt {
- text-align: center;
- margin: 0 auto;
- background: #faa331;
- max-width: 240px;
- padding: 10px 20px;
- border-radius: 4px;
- margin-bottom: 10px;
- color: #fff;
- }
- </style>
- <style lang="scss">
- .newDialog {
-
- .el-dialog__body {
- padding: 10px 20px 30px;
- }
-
- }
- </style>
|