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

dialysisPrescriptionDialog.vue 229KB

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