dialysisPrescriptionDialog.vue 249KB

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