dialysisPrescriptionDialog.vue 220KB

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