dialysisPrescriptionDialog.vue 263KB

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