dialysisPrescriptionDialog.vue 223KB

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