dialysisPrescriptionDialog.vue 261KB

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