dialysisPrescriptionDialog.vue 270KB

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