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

dialysisPrescriptionDialog.vue 239KB

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