Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

dialysisPrescriptionDialog.vue 230KB

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