12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153 |
- <template>
- <div>
- <el-dialog
- title="透析处方"
- :visible.sync="isVisibility"
- width="1010px"
- :modal = 'false'
- :modal-append-to-body="false"
- :close-on-click-modal="false"
- class="newDialog"
- >
- <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
- <span style="position: absolute;left: 22%;top: 3%">
- 透前体重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
- </span>
- <span style="position: absolute;left: 35%;top: 3%">
- 干体重:{{predialysis&&predialysis.dry_weight?predialysis.dry_weight:""}}kg
- </span>
- <!-- <span style="position: absolute;left: 48%;top: 3%" :modal = 'false'>
- 衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
- </span> -->
- <span style="position: absolute;left: 48%;top: 3%">
- 上次透后体重:{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg
- </span>
-
- <span style="position: absolute;left: 65%;top: 3%">
- 4小时超滤量上限(5%):
- <span v-if="predialysis!=null && ((predialysis.dry_weight)*0.05) >0 "></span> {{(predialysis.dry_weight*0.05).toFixed(2)}}
- kg
- </span>
- <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
- <el-form
- ref="dialysisPrescription"
- :model="dialysisPrescription"
- label-width="148px"
- >
- <el-row :gutter="24">
- <el-col :span="8" v-if="isShows('透析模式')">
- <el-form-item label="透析模式" :prop="isName('透析模式')" :rules="isCheckmust('透析模式')">
- <el-select
- filterable
- v-model="dialysisPrescription.mode_id"
- @change="changePrescription(dialysisPrescription.mode_id)" placeholder="请选择">
- <!-- <el-option :key="0" label="请选择" :value="0"></el-option> -->
- <el-option
- v-for="(item, index) in treatment_mode"
- :label="item.name"
- :value="item.id"
- :key="index + 'q'"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('透析时长')">
- <el-form-item label="透析时长(h):" prop="dialysis_duration_hour" :rules="isCheckmust('透析时长')">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysis_duration_hour"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('透析时长')">
- <el-form-item label="透析时长(min): " prop="dialysis_duration_minute" :rules="isCheckmust('透析时长')">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysis_duration_minute"
- ></el-input>
- </el-form-item>
- </el-col>
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
- <el-col :span="8" v-if="isShows('血流量')">
- <el-form-item label="血流量(ml/min):" prop="blood_flow_volume" :rules="isCheckmust('血流量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.blood_flow_volume"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('置换流量') && this.$store.getters.xt_user.template_info.org_id != 10340">
- <el-form-item label="置换流量(L/h):" prop="replacement_flow" :rules="isCheckmust('置换流量')">
- <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('置换流量') && this.$store.getters.xt_user.template_info.org_id == 10340">
- <el-form-item label="置换流量(ml/min):" prop="replacement_flow" :rules="isCheckmust('置换流量')">
- <el-input v-model="dialysisPrescription.replacement_flow"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8"
- 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)">
- <el-form-item label="预冲量(ml):" prop="pre_impulse" :rules="isCheckmust('预冲量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.pre_impulse"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- 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">
- <el-form-item label="预冲量(L):" prop="pre_impulse" :rules="isCheckmust('预冲量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.pre_impulse"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.template_id == 46 || this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249 || this.$store.getters.xt_user.template_info.org_id == 10395 ||this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 9829|| this.$store.getters.xt_user.template_info.org_id == 10440 || this.$store.getters.xt_user.template_info.org_id == 10469|| this.$store.getters.xt_user.template_info.org_id == 10471 || this.$store.getters.xt_user.template_info.org_id == 10460)">
- <el-form-item label="目标超滤量(ml):"
- prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.target_ultrafiltration"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
-
-
- <el-col :span="8"
- v-if="isShows('目标超滤量') && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 46 && this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 && this.$store.getters.xt_user.template_info.org_id != 10345 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 && this.$store.getters.xt_user.template_info.org_id != 10395 && this.$store.getters.xt_user.template_info.template_id != 60 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10460">
- <el-form-item
- label="目标超滤量(L):" prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.target_ultrafiltration"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597">
- <el-form-item label="处方脱水量(ml):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.prescription_water"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597">
- <el-form-item label="处方脱水量(L):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.prescription_water"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('加糖')">
- <el-form-item label="加糖:" prop="prescription_water" :rules="isCheckmust('加糖')">
- <el-input v-model="dialysisPrescription.chaptalization"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('带水上机')">
- <el-form-item label="带水上机:" prop="water_machine" :rules="isCheckmust('带水上机')">
- <el-select v-model="dialysisPrescription.water_machine">
- <el-option
- v-for="(item, index) in machineList"
- :label="item.name"
- :value="item.name"
- :key="index + 'q'"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('是否单超脱水')">
- <el-form-item label="是否单超脱水:" prop="is_water" :rules="isCheckmust('是否单超脱水')">
- <el-select v-model="dialysisPrescription.is_water">
- <el-option
- v-for="(item, index) in waterList"
- :label="item.name"
- :value="item.id"
- :key="index + 'q'"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('单超时长') && dialysisPrescription.is_water == 1">
- <el-form-item label="单超时长(h):" prop="single_time" :rules="isCheckmust('单超时长')">
- <el-input v-model="dialysisPrescription.single_time"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('单超脱水') && dialysisPrescription.is_water == 1">
- <el-form-item label="单超脱水(ml):" prop="single_water" :rules="isCheckmust('单超脱水')">
- <el-input v-model="dialysisPrescription.single_water"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('曲线脱水')">
- <el-form-item label="曲线脱水(ml):" prop="drhy_water" :rules="isCheckmust('曲线脱水')">
- <el-input v-model="dialysisPrescription.drhy_water"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('曲线脱水时长')">
- <el-form-item label="曲线脱水时长(h):" prop="dry_water_hour" :rules="isCheckmust('曲线脱水时长')">
- <el-input v-model="dialysisPrescription.dry_water_hour"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析液配方')">
- <el-form-item label="透析液配方:" prop="dialysate_formulation" :rules="isCheckmust('透析液配方')">
- <!-- <el-input type="number" v-model="dialysisPrescription.dialysate_formulation"></el-input> -->
- <el-select
- v-model="dialysisPrescription.dialysate_formulation"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(option, index) in dialysate_formulation_options"
- :key="index + 'w'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <!-- </el-row>
-
- <el-row :gutter="20"> -->
-
- <el-col :span="8" v-if="isShows('抗凝剂')">
-
- <el-form-item label="抗凝剂:" prop="anticoagulant" :rules="isCheckmust('抗凝剂')">
- <el-select v-model="dialysisPrescription.anticoagulant" placeholder="请选择"
- style="width:100%;"
- @change="changeThisAnticoagulant">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <!-- <el-option v-if="dialysisPrescription.anticoagulant ==3" :key="3" label="低分子肝素"
- :value="3"></el-option> -->
- <el-option v-for="(item, index) in anticoagulantsConfit" :label="item.name"
- :key="index + 'e'"
- :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('抗凝剂商品名称')">
- <el-form-item label="抗凝剂商品名称:" prop="antioxidant_commodity_name" :rules="isCheckmust('抗凝剂商品名称')">
- <el-input
- v-model="dialysisPrescription.antioxidant_commodity_name"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('肝素钠') && dialysisPrescription.anticoagulant ==10">
- <el-form-item label="肝素钠(mg/h):" prop="heparin_sodium" :rules="isCheckmust('肝素钠')">
- <el-input
- v-model="dialysisPrescription.heparin_sodium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
- <el-form-item label="鱼精蛋白(mg/h):" prop="nucleoprotamine" :rules="isCheckmust('鱼精蛋白')">
- <el-input肝素
- v-model="dialysisPrescription.nucleoprotamine"
- ></el-input肝素>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('下机前推注鱼精蛋白') && dialysisPrescription.anticoagulant ==10">
- <el-form-item label="下机前推注鱼精蛋白(mg):" prop="push_the_protamine" :rules="isCheckmust('下机前推注鱼精蛋白')">
- <el-input
- v-model="dialysisPrescription.push_the_protamine"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('追加肝素量')" >
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2"
- :label="'追加肝素量(mg) : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.add_amount"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.add_amount"></el-input>
- </el-form-item>
-
- <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1"
- :label="'追加肝素量(' + anticoagulant.shouji_unit + ') : '" prop="add_amount" :rules="isCheckmust('追加肝素量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.add_amount"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.add_amount"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('减肝素量')">
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'减肝素量(mg) : '" prop="calculateAnticoagulantZL" :rules="isCheckmust('减肝素量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.calculateAnticoagulantZL"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.reduce_amount"></el-input>
- </el-form-item>
-
- <el-form-item v-if="dialysisPrescription.anticoagulant != 2 && dialysisPrescription.anticoagulant != 1"
- :label="'减肝素量(' + anticoagulant.shouji_unit + ') : '" prop="reduce_amount" :rules="isCheckmust('减肝素量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.reduce_amount"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.reduce_amount"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="anticoagulant!=undefined && anticoagulant.shouji != -1 && isShows('首剂') && dialysisPrescription.anticoagulant!=1 && dialysisPrescription.anticoagulant!=12">
- <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 &&
- this.$store.getters.xt_user.template_info.template_id != 54 &&
- 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">
- <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.org_id != 10346 &&
- this.$store.getters.xt_user.template_info.org_id != 10387 &&
- this.$store.getters.xt_user.template_info.org_id != 10495 &&
- this.$store.getters.xt_user.template_info.org_id != 10375 &&
- this.$store.getters.xt_user.template_info.org_id != 10551
- ">
- <el-form-item
- v-if='dialysisPrescription.anticoagulant != 1 &&
- 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.org_id!=9990'
- :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji"
- :rules="isCheckmust('首剂')">
-
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
-
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- <el-form-item 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" :label="'首剂(mg):'"
- prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
-
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
- <el-form-item 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"
- :label="'首剂(iu):'" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
-
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- <el-form-item
- v-if='dialysisPrescription.anticoagulant == 2 &&
- 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.org_id == 10346 ||
- this.$store.getters.xt_user.template_info.org_id == 10387 ||
- this.$store.getters.xt_user.template_info.org_id ==10495 ||
- this.$store.getters.xt_user.template_info.org_id ==10375 ||
- this.$store.getters.xt_user.template_info.org_id ==10551
- '
- :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
-
-
- </div>
-
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
- <el-form-item v-else :label="'首剂(iu) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
- </div>
- </div>
-
- <div v-else>
-
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
- <el-form-item v-else :label="'首剂(' + anticoagulant.shouji_unit + ') : '" prop="anticoagulant_shouji" :rules="isCheckmust('首剂')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
- </el-form-item>
-
-
- </div>
-
- </el-col>
-
-
- <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.weichi != -1 && isShows('维持') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
- <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">
- <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 ">
- <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
- v-if="anticoagulant.weichi != -1 &&
- 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.org_id != 54 &&
- this.$store.getters.xt_user.template_info.org_id != 9990 &&
- this.$store.getters.xt_user.template_info.org_id != 10495 &&
- this.$store.getters.xt_user.template_info.org_id != 10375 &&
- this.$store.getters.xt_user.template_info.org_id != 10551" prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item :label="'维持(mg/h) : '"
- v-if="anticoagulant.weichi != -1 &&
- 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.org_id == 54 ||
- this.$store.getters.xt_user.template_info.org_id == 10346 ||
- this.$store.getters.xt_user.template_info.org_id == 10387 ||
- this.$store.getters.xt_user.template_info.org_id == 9990 ||
- this.$store.getters.xt_user.template_info.org_id == 10495 ||
- this.$store.getters.xt_user.template_info.org_id == 10375 ||
- this.$store.getters.xt_user.template_info.org_id == 10551
- " prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
-
-
-
- </div>
- <div v-else>
- <el-form-item :label="'维持(iu/h) : '" prop="anticoagulant_weichi" :rules="isCheckmust('维持')"
- v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant != 2" >
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item :label="'维持(mg/h) : '" prop="anticoagulant_weichi" :rules="isCheckmust('维持')"
- v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant == 2" >
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
-
-
-
- </div>
- </div>
-
-
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '"
- prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
- <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" v-else
- prop="anticoagulant_weichi" :rules="isCheckmust('维持')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
- </el-form-item>
-
- </div>
-
- </el-col>
-
-
-
- <el-col :span="8" v-if="anticoagulant!=undefined &&anticoagulant.zongliang != -1 && isShows('总量') && dialysisPrescription.anticoagulant!=1&& dialysisPrescription.anticoagulant!=12">
- <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 9675 && this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id != 9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469 && this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551">
- <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">
- <el-form-item
- v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387 && this.$store.getters.xt_user.template_info.org_id != 9990 && this.$store.getters.xt_user.template_info.org_id != 10495 && this.$store.getters.xt_user.template_info.org_id != 10375 && this.$store.getters.xt_user.template_info.org_id != 10551'
- :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item
- v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38|| this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10375 || this.$store.getters.xt_user.template_info.org_id == 10551 '
- :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
-
- <el-form-item
- 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'
- :label="'总量(mg)'" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item
- v-if="this.$store.getters.xt_user.template_info.org_id == 9990 && dialysisPrescription.anticoagulant!=7"
- :label="'总量(iu)'" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- </div>
- <div v-else>
- <el-form-item
- v-if='dialysisPrescription.anticoagulant != 2'
- :label="'总量(iu) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item
- v-if='dialysisPrescription.anticoagulant == 2'
- :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- </div>
- </div>
- <div v-else>
- <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'总量(mg) : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- <el-form-item v-else :label="'总量(' + anticoagulant.zongliang_unit + ') : '" prop="anticoagulant_zongliang" :rules="isCheckmust('总量')">
- <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
- v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
- <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
- v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
- </el-form-item>
- </div>
-
- </el-col>
-
- <el-col :span="8"
- v-if="isShows('开药数量')">
- <el-form-item label="开药数量(支):" prop="prescribing_number" :rules="isCheckmust('开药数量')">
- <el-input type="number" v-model="dialysisPrescription.prescribing_number"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8"
- 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)"
- v-show="zhiShow">
- <el-form-item label="置换量(ml):" prop="replacement_total" :rules="isCheckmust('置换量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.replacement_total"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8"
- 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"
- v-show="zhiShow">
- <el-form-item label="置换量(L):" prop="replacement_total" :rules="isCheckmust('置换量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.replacement_total"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id != 10375" v-show="totalShow">
- <el-form-item label="置换速度(ml/min)" prop="displace_speed" :rules="isCheckmust('置换速度')">
- <el-input
- v-model="dialysisPrescription.displace_speed"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('置换速度') && this.$store.getters.xt_user.template_info.org_id == 10375" v-show="totalShow">
- <el-form-item label="置换速度(L/h)" prop="displace_speed" :rules="isCheckmust('置换速度')">
- <el-input
- v-model="dialysisPrescription.displace_speed"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col
- :span="8"
- v-if="isShows('钙名称')"
- >
- <el-form-item label="钙名称 : " prop="anticoagulant_gaimingcheng" :rules="isCheckmust('钙名称')">
- <el-input
- v-model="dialysisPrescription.anticoagulant_gaimingcheng"
- placeholder="钙名称"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col
- :span="8"
- v-if="isShows('钙剂量')"
- ></el-col>
-
- <el-col :span="8" v-if="isShows('钙剂量')" >
- <el-form-item label="钙剂量(ml) : " prop="anticoagulant_gaijiliang" :rules="isCheckmust('钙剂量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.anticoagulant_gaijiliang"
- placeholder="钙剂量"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钾')">
- <el-form-item label="钾(mmol/L): " prop="kalium" :rules="isCheckmust('钾')">
- <el-input
- type="number"
- v-model="dialysisPrescription.kalium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钠')"><!-- :prop="isName('钠')" prop="sodium" isCheckmust [{required: true, message: '请输入钠', trigger: 'blur'}]-->
- <el-form-item label="钠(mmol/L):" prop="sodium" :rules="isNas('钠')">
- <el-input
- type="number"
- v-model="dialysisPrescription.sodium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('钙')">
- <el-form-item label="钙(mmol/L):" prop="calcium" :rules="isCheckmust('钙')">
- <el-input
- type="number"
- v-model="dialysisPrescription.calcium"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('碳酸氢盐')">
- <el-form-item label="碳酸氢盐(mmol/L):" prop="bicarbonate" :rules="isCheckmust('碳酸氢盐')">
- <el-input
- type="number"
- v-model="dialysisPrescription.bicarbonate"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <!-- <el-col :span="8" v-if="isShows('葡萄糖')">
- <el-form-item label="葡萄糖(mmol/L):">
- <el-input
- type="number"
- v-model="dialysisPrescription.glucose"
- ></el-input>
- </el-form-item>28
- </el-col> -->
- <el-col :span="8" v-if="isShows('透析液流量')">
- <el-form-item label="透析液流量(ml/min):" prop="dialysate_flow" :rules="isCheckmust('透析液流量')">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysate_flow"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析液温度')">
- <el-form-item label="透析液温度(°C):" prop="dialysate_temperature" :rules="isCheckmust('透析液温度')">
- <el-input
- type="number"
- v-model="dialysisPrescription.dialysate_temperature"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('电导率')">
- <el-form-item label="电导率(mS/cm): " prop="conductivity" :rules="isCheckmust('电导率')">
- <el-input
- type="number"
- v-model="dialysisPrescription.conductivity"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析器/灌流器')" >
- <el-form-item label="透析器/灌流器" prop="dialyzer_perfusion_apparatus" :rules="isCheckmust('透析器/灌流器')">
- <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
- @focus="showInnerDialog('5')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析器')">
- <el-form-item label="透析器:" prop="dialysis_dialyszers" :rules="isCheckmust('透析器')">
- <el-input v-model="dialysisPrescription.dialysis_dialyszers"
- @focus="showInnerDialog('7')"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('灌流器')">
- <el-form-item label="灌流器:" prop="dialysis_irrigation" :rules="isCheckmust('灌流器')">
- <el-input v-model="dialysisPrescription.dialysis_irrigation"
- @focus="showInnerDialog('8')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('滤过器')">
- <el-form-item label="滤过器:" prop="dialysis_strainer" :rules="isCheckmust('滤过器')">
- <el-input v-model="dialysisPrescription.dialysis_strainer"
- @focus="showInnerDialog('12')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('血浆分离器')">
- <el-form-item label="血浆分离器:" prop="plasma_separator" :rules="isCheckmust('血浆分离器')">
- <el-input v-model="dialysisPrescription.plasma_separator"
- @focus="showInnerDialog('9')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('胆红素吸附柱')">
- <el-form-item label="胆红素吸附柱:" prop="bilirubin_adsorption_column" :rules="isCheckmust('胆红素吸附柱')">
- <el-input v-model="dialysisPrescription.bilirubin_adsorption_column"
- @focus="showInnerDialog('10')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('体液过多症状')">
- <el-form-item label="体液过多症状:" prop="body_fluid" :rules="isCheckmust('体液过多症状')">
- <el-select
- v-model="dialysisPrescription.body_fluid"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in body_fluid_option"
- :label="item.name"
- :key="index + 't'"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('体液过多其他症状')">
- <el-form-item label="体液过多其他症状" prop="body_fluid_other" :rules="isCheckmust('体液过多其他症状')">
- <el-input
- v-model="dialysisPrescription.body_fluid_other"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析前使用特殊药物')" >
- <el-form-item label="透析前使用特殊药物" prop="special_medicine" :rules="isCheckmust('透析前使用特殊药物')">
- <el-select
- v-model="dialysisPrescription.special_medicine"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in special_medicine_option"
- :label="item.name"
- :key="index + 'y'"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')" >
- <el-form-item label="透析前使用其他特殊药物" prop="special_medicine_other" :rules="isCheckmust('透析前使用其他特殊药物')">
- <el-input
- v-model="dialysisPrescription.special_medicine_other"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item
- label="置换方式:"
- v-if="isShows('置换液')&&this.$store.getters.xt_user.org.id != 10206"
- v-show="huShow"
- prop="displace_liqui_part"
- :rules="isCheckmust('置换液')"
- >
- <el-select
- v-model="dialysisPrescription.displace_liqui_part"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(option, index) in displace_liqui_part_option"
- :key="index + 'u'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="置换方式:"
- v-if="isShows('置换方式')&&this.$store.getters.xt_user.org.id == 10206"
- v-show="huShow"
- prop="displace_liqui_part"
- :rules="isCheckmust('置换方式')"
- >
- <el-select
- v-model="dialysisPrescription.displace_liqui_part"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(option, index) in displace_liqui_part_option"
- :key="index + 'u'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
-
- </el-col>
-
- <el-col :span="8"
- 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)"
- v-show="totalShow">
- <el-form-item label="置换液总量(ml)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')">
- <el-input
- v-model="dialysisPrescription.displace_liqui_value"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8"
- 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 "
- v-show="totalShow">
- <!-- v-show="totalShow" -->
- <el-form-item label="置换液总量(L)" prop="displace_liqui_value" :rules="isCheckmust('置换液总量')">
- <el-input
- v-model="dialysisPrescription.displace_liqui_value"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('目标KT/V')">
- <el-form-item label="目标KT/V" prop="target_ktv" :rules="isCheckmust('目标KT/V')">
- <el-input v-model="dialysisPrescription.target_ktv"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="血管通路部位: " :prop="isName('血管通路部位')"
- :rules="isCheckmust('血管通路部位')" v-if="isShows('血管通路部位')">
- <el-input v-model="dialysisPrescription.blood_access_part_id" readonly @focus="showInnerDialog('17')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('血管通路')">
- <el-form-item label="血管通路:" prop="blood_access" :rules="isCheckmust('血管通路')">
- <el-select
- v-model="dialysisPrescription.blood_access"
- placeholder="请选择"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(option, index) in blood_access_option"
- :key="index + 'i'"
- :label="option.name"
- :value="option.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('抗凝提前停止')">
- <el-form-item label="抗凝提前停止(h): " prop="anticoagulant_stop_time_hour" :rules="isCheckmust('抗凝提前停止')">
- <el-input
- type="number"
- v-model="dialysisPrescription.anticoagulant_stop_time_hour"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('抗凝提前停止')">
- <el-form-item label="抗凝提前停止(min): " prop="anticoagulant_stop_time_min" :rules="isCheckmust('抗凝提前停止')">
- <el-input
- type="number"
- v-model="dialysisPrescription.anticoagulant_stop_time_min"
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('抽血')">
- <el-form-item label="抽血:" prop="blood" :rules="isCheckmust('抽血')">
- <el-input v-model="dialysisPrescription.blood" @focus="showInnerDialog('6')" ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('病情')">
- <el-form-item label="病情:" prop="illness" :rules="isCheckmust('病情')">
- <el-select v-model="dialysisPrescription.illness" placeholder="请选择">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(item, index) in illnessList "
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('葡萄糖')">
- <el-form-item label="葡萄糖:" prop="amylaceum" :rules="isCheckmust('葡萄糖')">
- <el-input v-model="dialysisPrescription.amylaceum"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('吸氧')">
- <el-form-item label="吸氧:" prop="oxygen_uptake" :rules="isCheckmust('吸氧')">
- <el-select v-model="dialysisPrescription.oxygen_uptake" placeholder="请选择"
- @change="changeOxygenList">
- <el-option :key="0" label="请选择" :value="0"></el-option>
- <el-option
- v-for="(item, index) in oxygenList "
- :key="index"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
- <el-form-item label="吸氧流量(L/分):" prop="oxygen_flow" :rules="isCheckmust('吸氧流量')">
- <el-input v-model="dialysisPrescription.oxygen_flow"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
- <el-form-item label="吸氧时长(h):" prop="oxygen_time" :rules="isCheckmust('吸氧时长')">
- <el-input v-model="dialysisPrescription.oxygen_time"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析管路')">
- <el-form-item label="透析管路:" prop="hemodialysis_pipelines" :rules="isCheckmust('透析管路')">
- <el-select
- v-model="dialysisPrescription.hemodialysis_pipelines"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in hemodialysisPipelinesOptions"
- :label="item.name"
- :key="index + 't'"
- :value="item.name"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('透析管路支数')">
- <el-form-item label="透析管路支数" prop="hemodialysis_pipelines_count" :rules="isCheckmust('透析管路支数')">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.hemodialysis_pipelines_count"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('穿刺针')">
- <el-form-item label="穿刺针" prop="puncture_needle" :rules="isCheckmust('穿刺针')">
- <el-input v-model="dialysisPrescription.puncture_needle"
- @focus="showInnerDialog('11')"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('穿刺针支数')" >
- <el-form-item label="穿刺针支数" prop="puncture_needle_count" :rules="isCheckmust('穿刺针支数')">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.puncture_needle_count"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('促红素')">
- <el-form-item label="促红素:" prop="epo" :rules="isCheckmust('促红素')">
- <el-select
- v-model="dialysisPrescription.epo"
- placeholder="请选择"
- style="width:100%;"
- >
- <el-option :key="0" label="请选择" :value="0"></el-option>
-
- <el-option
- v-for="(item, index) in epoOptions"
- :label="item.name"
- :key="index + 't'"
- :value="item.name"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('促红素支数')">
- <el-form-item label="促红素支数" prop="epo_count" :rules="isCheckmust('促红素支数')">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.epo_count"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('最大超滤率')">
- <el-form-item label="最大超滤率(ml/h)" prop="max_ultrafiltration_rate" :rules="isCheckmust('最大超滤率')">
- <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.max_ultrafiltration_rate"></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="8" v-if="isShows('处方医生')" >
- <el-form-item label="处方医生" prop="admin_user_id" :rules="isCheckmust('处方医生')">
- <el-select v-model="dialysisPrescription.admin_user_id" placeholder="请选择" style="width:100%;">
- <el-option v-for="(admin, index) in adminRoles" :key="index" :value="admin.id" :label="admin.name"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
-
-
- </el-row>
-
- <el-row :gutter="20">
- <el-col :span="24" v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
- <el-form-item label="透析备注:" prop="value" :rules="isCheckmust('透析备注')">
- <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
- <el-option
- v-for="(item, index) in educationList"
- :label="item.text"
- :value="item.value"
- :key="index"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col v-if="isShows('透析备注') && (dialysisPrescription.mode_id == 2 || dialysisPrescription.mode_id == 3 || dialysisPrescription.mode_id == 4)">
- <el-form-item prop="dialysis_remark" :rules="isCheckmust('透析备注')">
- <el-input
- type="textarea"
- v-model="dialysisPrescription.dialysis_remark"
- :rows="4"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row :gutter="20">
- <el-col :span="8" v-if="isShows('处方钠')">
- <el-form-item label="处方钠: " prop="prescription_sodium" :rules="isCheckmust('处方钠')">
- <el-input
- v-model="dialysisPrescription.prescription_sodium"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('开始钠')">
- <el-form-item label="开始钠: " prop="start_sodium" :rules="isCheckmust('开始钠')">
- <el-input
- v-model="dialysisPrescription.start_sodium"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" v-if="isShows('钠曲线')">
- <el-form-item label="钠曲线: " prop="sodium_curve" :rules="isCheckmust('钠曲线')">
- <el-input
- v-model="dialysisPrescription.sodium_curve"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row>
- <el-col :span="8" v-if="isShows('透析液流速')">
- <el-form-item label="透析液流速(ml/h):" prop="dialysis_fluid_flow" :rules="isCheckmust('透析液流速')">
- <el-input
-
- v-model="dialysisPrescription.dialysis_fluid_flow"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="isShows('碳酸氢钠流速')">
- <el-form-item label="碳酸氢钠流速(ml/h):" prop="sodium_bicarbonate_flow" :rules="isCheckmust('碳酸氢钠流速')">
- <el-input
- v-model="dialysisPrescription.sodium_bicarbonate_flow"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="Ns冲洗量(ml):" :prop="isName('冲洗量')" v-if="isShows('冲洗量') && dialysisPrescription.anticoagulant == 1">
- <el-input v-model="dialysisPrescription.warsh_count"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="q(h):" :prop="isName('冲洗时间')" v-if="isShows('冲洗时间') && dialysisPrescription.anticoagulant == 1">
- <el-input v-model="dialysisPrescription.washing_time"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
-
- <el-row :gutter="20">
- <el-col :span="24" v-if="isShows('病情处理')">
- <el-form-item label="病情处理: " prop="treatment_remark" :rules="isCheckmust('病情处理')">
- <el-input
- type="textarea"
- v-model="dialysisPrescription.treatment_remark"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row :gutter="20">
- <el-col :span="24">
- <el-form-item label="备注: " prop="remark" :rules="isCheckmust('备注')">
- <el-input
- type="textarea"
- v-model="dialysisPrescription.remark"
- :rows="5"
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="handleCancle">取 消</el-button>
- <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
- <el-button type="primary" @click="handleCommit('dialysisPrescription')" :loading="isLoading">保 存</el-button>
- <el-button type="primary" @click="handleSolution('dialysisPrescription')" :loading="isLoading"
- >保存为长期处方</el-button
- >
- </span>
- </el-dialog>
- <!-- 点击保存长期 -->
- <el-dialog
- title="长期医嘱推送"
- :visible.sync="isShowRemindAdvice"
- width="1010px"
- :modal-append-to-body="false"
- :append-to-body="true"
- >
- <div style="display:flex;align-items:center;">
- <span style="font-weight: bold;color: #409eff;width:80px;">开始时间:</span>
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="start_time"
- ></el-date-picker>
-
- <!--<span style="display: inline-block;border: 1px solid #ccc;padding: 10px 20px;border-radius: 5px;" @click="changeStartTime">{{ advice_start_time }}</span>-->
- </div>
- <el-checkbox-group v-model="checkedCities">
- <el-checkbox
- style="display: flex;align-items: center"
- v-for="(advice, index) in targetAdvices"
- :label="advice.id"
- :key="index+'q'"
- :value="advice.id"
- :name="advice.id"
- >
- <div style="padding-top: 10px;padding-left: 10px">
- 开嘱医生 {{ getDoctorName(advice.advice_doctor) }}
- </div>
- <br/>
- <div style="padding-left: 10px">
- 开嘱时间 {{ getTime(advice.created_time) }}
- </div>
- <br/>
- <div style="padding-bottom: 10px;padding-left: 10px">
- 医嘱内容 {{ getContent(advice) }}
- </div>
- <div
- style="padding-bottom: 10px;padding-left: 10px"
- v-if="advice.frequency_type == 1"
- >
- 推送频率 每次必推
- </div>
- <div
- style="padding-bottom: 10px;padding-left: 10px"
- v-if="advice.frequency_type == 2"
- >
- 推送频率 {{ advice.day_count }}天/次
- </div>
- <div
- style="padding-bottom: 10px;padding-left: 10px"
- v-if="advice.frequency_type == 3"
- >
- 推送频率 每周{{ advice.week_day }}
- </div>
- </el-checkbox>
- </el-checkbox-group>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="handleAdviceCancle">取 消</el-button>
- <el-button type="primary" @click="handleAdviceCommit" :loading="isLoading">保 存</el-button>
- </span>
- </el-dialog>
-
- <el-dialog
- :title="patient.name"
- :visible.sync="msgtip_visibility"
- :close-on-click-modal="false"
- :close-on-press-escape="false"
- :show-close="false"
- width="30%"
- >
- <div class="newLine">
- <span>本次透析日期</span>
- <span>{{ dialysis_date }}</span>
- </div>
- <div class="newLine">
- <span>透前称重(kg)</span>
- <span>{{ getBeforeWeight(predialysis) }}</span>
- </div>
- <div class="newLine">
- <span>干体重(kg)</span>
- <span>{{ getDryWeight() }}</span>
- </div>
- <div class="newLine">
- <span>衣物重(kg)</span>
- <span>{{ predialysis.additional_weight }}</span>
- </div>
- <div class="newLine">
- <span>体重增加(kg)</span>
- <span>{{ add_weight }}</span>
- </div>
- <div class="newLine">
- <span>透后称重(kg)</span>
- <span>{{ getAfterWeight(record) }}</span>
- </div>
- <div class="newLine">
- <span>体重减少(kg)</span>
- <span>{{ record.weight_loss }}</span>
- </div>
- <div class="newLine">
- <span>上次透后称重(kg)</span>
- <span>{{ getLastAfterWeight(last_record) }}</span>
- </div>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="cancleMsg()">取 消</el-button>
- <el-button type="primary" @click="cancleMsg()">确 定</el-button>
- </span>
- </el-dialog>
-
-
-
- <multi-select-box
- :propsForm="InnerDialogProps"
- v-on:dialog-comfirm="innerDialogComfirm"
- v-on:dialog-cancle="innerDialogCancle"
- ></multi-select-box>
-
-
- <el-dialog
- title="提示"
- :visible.sync="infoDialogVisible"
- width="30%">
- <span>
- <el-form>
- <el-row>
- <span>申请日期:</span>
- <span>
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="selected_date"
- ></el-date-picker>
- </span>
- </el-row>
- <el-row>
- <span>备注:</span>
- <span>
- <el-input v-model="remark" style="width:200px"></el-input>
- </span>
- </el-row>
- </el-form>
-
- </span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="infoDialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="saveInformation">确 定</el-button>
- </span>
- </el-dialog>
-
- </div>
- </template>
-
- <script>
- import { CreateGroupAdvice, GetSolution, postPrescription, postSoulution,saveInformation } from '@/api/dialysis'
- import { getDataConfig } from '@/utils/data'
- import { calculateAnticoagulantZL, uParseTime,replacementFlow } from '@/utils/tools'
- import store from '@/store'
- import MsgTip from './MsgTip'
- import request from '@/utils/request'
- import multiSelectBox from './MultiSelectBox'
- const moment = require('moment')
- export default {
- name: 'dialysisPrescriptionDialog',
- components: { MsgTip, multiSelectBox },
- props: {
- mode_id: {
- type: Number
- },
- schedual: {
- type: Object
- },
- is_open: {
- type: Number,
- default: () => {
- return 0
- }
- },
- waitUploadAdvices: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- targetAdvices: {
- type: Array,
- default: () => {
- return []
- }
- },
- admin_users: {
- type: Array,
- default: () => {
- return []
- }
- },
- niprocart_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- jms_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- fistula_needle_set_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- fistula_needle_set_16_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- hemoperfusion_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- dialyser_sterilised_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- filtryzer_info: {
- type: Array,
- default: () => {
- return []
- }
- },
-
- dialyzers_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- injector_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- bloodlines_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- tubingHemodialysis_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- safe_package_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- aliquid_info: {
- type: Array,
- default: () => {
- return []
- }
- },
- config: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- prescription: {
- // 透析处方
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- solution: {
- // 长期处方
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- dialysis_order: {
- // 透析记录
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- patient: {
- // 患者信息
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
-
- devices: {
- type: Array,
- default: function() {
- return new Array()
- }
- },
-
- predialysis: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- last_predialysis: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- record: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- last_record: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- dry_weight: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- last_prescription: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- scheudle_mode: Number,
- stockType: {
- type: Array,
- default: () => {
- return []
- }
- },
- lastAssessment: {
- type: Object,
- default: () => {
- return { id: 0 }
- }
- },
- admins: {
- type: Array
- },
- },
- computed: {
- dialysis_date: function() {
- if (this.$route.query.date) {
- return uParseTime(this.$route.query.date, '{y}/{m}/{d}')
- } else {
- return this.record_date
- }
- }
- },
- data() {
- return {
- InnerDialogProps: {
- values: [],
- visibility: false,
- isShowTextArea: true,
- customContent: '',
- titles: '',
- type: '' // 不同弹框类型,用来匹配数据
- },
- advice_start_time: '',
- showTxt: '',
- start_time: '',
- hasPermission: true,
- zhiShow: false,
- totalShow: false,
- huShow: false,
- showName: '',
- isShowRemindAdvice: false,
- checkedCities: [],
- isVisibility: false,
- isShowTime: false,
- isClose: false,
- isShow: false,
- record_date: '',
- time: '',
- treatment_mode: [],
- timeValue: '',
- deviceList: [],
- replacement_ways: [],
- anticoagulantsConfit: {},
- dialysate_formulation_options: [],
- add_weight: 0,
- body_fluid_option: [],
- special_medicine_option: [],
- displace_liqui_part_option: [],
- blood_access_option: [],
- is_pre: 0,
- msgtip_visibility: false,
- startVisibility:false,
- dialysisPrescription: {
- replacement_total: '',
- mode_id: '',
- dialysis_duration: '',
- dialysis_duration_hour: '',
- dialysis_duration_minute: '0',
- mode_name: '',
- dialyzer: '',
- perfusion_apparatus: '',
- blood_flow_volume: '',
- dewater_amount: '',
- displace_liqui: '',
- replacement_way: '',
- anticoagulant: '',
- anticoagulant_shouji: '',
- anticoagulant_weichi: '',
- anticoagulant_zongliang: '',
- anticoagulant_gaimingcheng: '',
- anticoagulant_gaijiliang: '',
- kalium: '',
- sodium: '',
- calcium: '',
- bicarbonate: '',
- glucose: '',
- dry_weight: '',
- dialysate_flow: '',
- dialysate_temperature: '',
- target_ultrafiltration: '',
- dialysate_formulation: '',
- conductivity: '',
- doctor: '',
- remark: '',
- dialyzer_perfusion_apparatus: '',
-
- body_fluid: '',
- body_fluid_other: '',
- special_medicine: '',
- special_medicine_other: '',
- displace_liqui_part: '',
- displace_liqui_value: '',
- ultrafiltration: '',
- blood_access: '',
-
- niprocart: '',
- jms: '',
- fistula_needle_set: '',
- fistula_needle_set_16: '',
- hemoperfusion: '',
- dialyser_sterilised: '',
- filtryzer: '',
- target_ktv: '',
- dialyzers: '',
- injector: '',
- bloodlines: '',
- tubing_hemodialysis: '',
- package: '',
- a_liquid: '',
- no_anticoagulant_shouji: '0',
- no_anticoagulant_weichi: '0',
- no_anticoagulant_zongliang: '0',
- creater: 0,
- pre_impulse: 0, //预冲量
- anticoagulant_stop_time_hour: '',
- anticoagulant_stop_time_min: '',
- push_the_protamine: '',//下机前推注鱼精蛋白
- heparin_sodium: '', //肝素钠
- nucleoprotamine: '',//鱼精蛋白
- no_heparin_remarks: '',
- blood: '',
- dialysis_dialyszers: '',
- dialysis_irrigation: '',
- irrigation: '',
- antioxidant_commodity_name: '',
- displace_speed: '',
- illness: '',
- amylaceum: '',
- single_time: '',
- single_water: '',
- replacement_flow: '',
- plasma_separator: '',
- bilirubin_adsorption_column: '',
- oxygen_uptake: '',
- oxygen_flow: '',
- oxygen_time: '',
-
- hemodialysis_pipelines: '',
- hemodialysis_pipelines_count: '',
- puncture_needle: '',
- puncture_needle_count: '',
- epo: '',
- epo_count: '',
- max_ultrafiltration_rate:'',
- hemodialysisPipelinesOptions: [],
- punctureNeedleOptions: [],
- epoOptions: [],
- impulse:0,
- admin_user_id:"",
- drhy_water:"",
- is_water:0,
- dry_water_hour:"",
- water_machine:"否",
- add_amount:"",
- reduce_amount:"",
- dialysis_remark:"",
- prescribing_number:"",
- treatment_remark:"",
- prescription_sodium:"",
- start_sodium:"",
- sodium_curve:"",
- dialysis_fluid_flow:"",
- sodium_bicarbonate_flow:"",
- prescription_water:"",
- dialysis_strainer:"",
- chaptalization:"",
- warsh_count:"",
- washing_time:"",
- blood_access_part_id:""
- },
-
- anticoagulant: {
- id: 0,
- name: '',
- type: 1,
- shouji: 1,
- weichi: 1,
- zongliang: 1,
- gaimingcheng: -1,
- gaijiliang: -1,
- shouji_unit: 'mg',
- weichi_unit: 'mg/h',
- zongliang_unit: 'mg',
- gaimingcheng_unit: '',
- gaijiliang_unit: ''
- },
-
- doctorAdvices: [],
- dialyzerPerfusionApparatus: [],
- bloods: [],
- irrigations: [],
- dialyzers: [],
- dialysisStrainerList:[],
- illnessList: [],
- plasmaSeparatorList: [],
- bilirubinAdsorptionColumn: [],
- oxygenList: [
- { id: 1, name: '需' },
- { id: 2, name: '无' }
- ],
- oxygenShow: false,
- hemodialysisPipelinesOptions: [],
- epoOptions: [],
- isLoading: false,
- adminRoles:[{id:0,name:"请选择"}],
- waterList:[
- {id:0,name:"请选择"},
- {id:1,name:"是"},
- {id:2,name:"否"}
- ],
- machineList:[
- {id:1,name:"是"},
- {id:2,name:"否"}
- ],
- zongliang:"",
- educationList:[],
- value:"",
- infoDialogVisible:false,
- selected_date:"",
- remark:"",
- blood_access_part: [],
- }
-
- },
- methods: {
- changeOxygenList(val) {
- if (val == 1) {
- this.oxygenShow = true
- }
- if (val == 2) {
- this.oxygenShow = false
- this.prescription.oxygen_flow = ''
- this.prescription.oxygen_time = ''
- }
- },
- changeTime: function(val) {
- this.advice_start_time = val
-
- },
- showInnerDialog: function(val) {
-
- this.InnerDialogProps.visibility = true
- switch (val) {
- case '5': // 透析器/灌流器
-
- this.InnerDialogProps.values = this.dialyzerPerfusionApparatus
- this.InnerDialogProps.titles = '透析器/灌流器'
- this.InnerDialogProps.type = 'dialyzer_perfusion_apparatus'
-
- this.InnerDialogProps.selected = this.dialysisPrescription.dialyzer_perfusion_apparatus
- this.InnerDialogProps.isShowTextArea = false
- break
-
- case '6': // 透析器/灌流器
-
- this.InnerDialogProps.values = this.bloods
- this.InnerDialogProps.titles = '抽血'
- this.InnerDialogProps.type = 'blood'
- this.InnerDialogProps.selected = this.dialysisPrescription.blood
- this.InnerDialogProps.isShowTextArea = false
-
- case '7': // 透析器
-
- for (let i = 0; i < this.dialyzers.length; i++) {
- this.dialyzers[i].name = this.dialyzers[i].specification_name
- }
- this.InnerDialogProps.values = this.dialyzers
- this.InnerDialogProps.titles = '透析器'
- this.InnerDialogProps.type = 'dialyzers'
- this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
- this.InnerDialogProps.isShowTextArea = false
- break
- case '8':
- for (let i = 0; i < this.irrigations.length; i++) {
- this.irrigations[i].name = this.irrigations[i].specification_name
- }
- this.InnerDialogProps.values = this.irrigations
- this.InnerDialogProps.titles = '灌流器'
- this.InnerDialogProps.type = 'irrigations'
- this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_irrigation
- this.InnerDialogProps.isShowTextArea = false
- break
- case '9': // 血浆灌流器
-
- this.InnerDialogProps.values = this.plasmaSeparatorList
- this.InnerDialogProps.titles = '血浆灌流器'
- this.InnerDialogProps.type = 'plasma_separator'
- this.InnerDialogProps.selected = this.dialysisPrescription.plasma_separator
- this.InnerDialogProps.isShowTextArea = false
- break
- mu
- case '10': // 胆红素吸附柱
-
- this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
- this.InnerDialogProps.titles = '胆红素吸附柱'
- this.InnerDialogProps.type = 'bilirubin_adsorption_column'
- this.InnerDialogProps.selected = this.dialysisPrescription.bilirubin_adsorption_column
- this.InnerDialogProps.isShowTextArea = false
- break
- case '11': //穿刺针
-
- this.InnerDialogProps.values = this.punctureNeedleOptions
- this.InnerDialogProps.titles = '穿刺针'
- this.InnerDialogProps.type = 'puncture_needle'
- this.InnerDialogProps.selected = this.dialysisPrescription.puncture_needle
- this.InnerDialogProps.isShowTextArea = false
- break
-
- case '12':
- for (let i = 0; i < this.dialysisStrainerList.length; i++) {
- this.dialysisStrainerList[i].name = this.dialysisStrainerList[i].specification_name
- }
- this.InnerDialogProps.values = this.dialysisStrainerList
- this.InnerDialogProps.titles = '滤过器'
- this.InnerDialogProps.type = 'dialysis_strainer'
- this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_strainer
- this.InnerDialogProps.isShowTextArea = false
- break
- case '17': // 水肿
- this.InnerDialogProps.values = this.blood_access_part
- this.InnerDialogProps.titles = '血管通路部位'
- this.InnerDialogProps.type = 'blood_access_part_id'
- this.InnerDialogProps.selected = this.dialysisPrescription.blood_access_part_id
- this.InnerDialogProps.isShowTextArea = false
-
- break
- }
- },
- innerDialogComfirm: function(val) {
-
-
- this.InnerDialogProps.visibility = false
- switch (val.type) {
-
- case 'dialyzer_perfusion_apparatus':
- var newArr = []
- if(this.dialyzerPerfusionApparatus!=null && this.dialyzerPerfusionApparatus.length>0){
- for(let i=0;i<this.dialyzerPerfusionApparatus.length;i++){
- for(let j=0;j<val.value.length;j++){
- if(this.dialyzerPerfusionApparatus[i].name == val.value[j]){
- newArr.push(val.value[j])
- }
- }
- }
- }
- if(newArr!=null && newArr.length>0){
-
- this.dialysisPrescription.dialyzer_perfusion_apparatus = newArr.join(',')
- }else{
- this.dialysisPrescription.dialyzer_perfusion_apparatus = ""
- }
-
- break
- case 'blood':
-
- this.dialysisPrescription.blood = val.value.join(',')
- break
- case 'dialyzers':
-
- var newArr = []
- if(this.dialyzers!=null && this.dialyzers.length >0){
- for(let i=0;i<this.dialyzers.length;i++){
- for(let j=0;j<val.value.length;j++){
- if(this.dialyzers[i].specification_name == val.value[j]){
- newArr.push(val.value[j])
- }
- }
- }
- }
- if(newArr!=null && newArr.length >0){
- this.dialysisPrescription.dialysis_dialyszers = newArr.join(',')
- }else{
- this.dialysisPrescription.dialysis_dialyszers = ""
- }
-
- break
- case 'irrigations':
- var newArr = []
- if(this.irrigations!=null && this.irrigations.length >0){
- for(let i=0;i<this.irrigations.length;i++){
- for(let j=0;j<val.value.length;j++){
- if(this.irrigations[i].specification_name == val.value[j]){
- newArr.push(val.value[j])
- }
- }
- }
- }
- if(newArr!=null && newArr.length>0){
- this.dialysisPrescription.dialysis_irrigation = newArr.join(',')
- }else{
- this.dialysisPrescription.dialysis_irrigation = ""
- }
-
- break
- case 'plasma_separator':
- this.dialysisPrescription.plasma_separator = val.value.join(',')
- break
- case 'bilirubin_adsorption_column':
- this.dialysisPrescription.bilirubin_adsorption_column = val.value.join(',')
- break
- case 'puncture_needle':
- this.dialysisPrescription.puncture_needle = val.value.join(',')
- break
- case 'dialysis_strainer':
- this.dialysisPrescription.dialysis_strainer = val.value.join(',')
- break
- case 'blood_access_part_id':
- this.dialysisPrescription.blood_access_part_id = val.value.join(',')
- break
- }
- },
- innerDialogCancle: function() {
- this.InnerDialogProps.visibility = false
- },
-
- getDryWeight() {
- if (this.dry_weight != null && this.dry_weight.id > 0) {
- return this.dry_weight.dry_weight
- } else {
- if (this.last_predialysis != null && this.last_predialysis.id > 0) {
- return this.last_predialysis.dry_weight
- } else {
- return ''
- }
- }
- },
- getLastAfterWeight(record) {
- if (record != null && record.id > 0) {
- if (record.weight_after > 0) {
- let additional_weight = 0
- if (this.predialysis.additional_weight != undefined) {
- additional_weight = this.predialysis.additional_weight
- }
- return parseFloat(record.weight_after - additional_weight).toFixed(1)
- } else {
- return ''
- }
- }
- },
- getBeforeWeight(predialysis) {
- if (predialysis.id > 0) {
- if (predialysis.weight_before > 0) {
- return parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1)
- } else {
- return ''
- }
- }
- },
- getAfterWeight(record) {
- if (record.id > 0) {
- if (record.weight_after > 0) {
- return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1)
- } else {
- return ''
- }
- }
- },
- setLastRecord: function(schedual, lastAssessmentAfterDislysis, lastPredialysisEvaluation, lastDialysisPrescribe, lastDryWeightDislysis, system_prescribe) {
-
- this.treatment_mode = this.$store.getters.treatment_mode
- // console.log("99999",this.treatment_mode)
- this.perfusion_apparatus = getDataConfig(
- 'hemodialysis',
- 'perfusion_apparatus'
- )
- this.replacement_ways = getDataConfig('hemodialysis', 'replacement_ways')
- this.dialysate_formulation_options = getDataConfig(
- 'hemodialysis',
- 'dialysate_formulation'
- )
- // this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
-
- this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
- console.log("抗凝剂",this.anticoagulantsConfit)
-
- // for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
- // console.log('anticoagulantsConfitOne', anticoagulantsConfitOne[i].name)
- // }
- // var anticoagulantsConfit = getDataConfig('hemodialysis', 'anticoagulant')
- // const arr = []
- // anticoagulantsConfit.map((item, index) => {
- // const objChild = { ...item }
- // arr.push(objChild)
- // })
- // var arrthree = {}
- // arrthree = { ...arr }
- // console.log('arrthree', arrthree)
- // const arrFour = []
- // Object.keys(anticoagulantsConfitOne).map((item, index) => {
- // arrFour.push(anticoagulantsConfitOne[item])
- // // if (index != 2) {
- // // arrFour.push(anticoagulantsConfitOne[item])
- // // }
- // })
- // console.log("arrFour0-0000000000000wo",arrFour)
- // this.anticoagulantsConfit = arrFour
- this.dialysisList = this.devices
-
- this.body_fluid_option = this.$store.getters.body_fluid
- this.special_medicine_option = this.$store.getters.special_medicine
- this.displace_liqui_part_option = this.$store.getters.displace_liqui
-
- this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
- this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
- this.epoOptions = getDataConfig('hemodialysis', 'epo')
-
- // this.blood_access_option = this.$store.getters.blood_access_internal_fistula;
- this.blood_access_option = getDataConfig(
- 'hemodialysis',
- 'vascular_access_desc'
- )
-
- // console.log('血管通路', this.blood_access_option)
- this.dialyzerPerfusionApparatus = getDataConfig(
- 'hemodialysis',
- 'dialyzer_perfusion_apparatus'
- )
- // console.log('3333333', this.dialyzerPerfusionApparatus)
- this.bloods = getDataConfig(
- 'hemodialysis',
- 'blood'
- )
-
- // dialyzerPerfusionApparatus.map(item => {
- // item.name = item.name.toUpperCase()
- // })
- // //去重
- // var arr = this.unique(dialyzerPerfusionApparatus)
- // this.dialyzerPerfusionApparatus = arr
- // console.log('灌流器', arr)
-
- if (this.$route.query && this.$route.query.date) {
- var date = this.$route.query && this.$route.query.date
- this.record_date = uParseTime(date, '{y}-{m}-{d}')
- } else {
- var date = schedual.schedule_date
- this.record_date = uParseTime(date, '{y}-{m}-{d}')
- }
-
- if (this.prescription != null && typeof this.prescription.id !== 'undefined' && this.prescription.id > 0) {
- for (const key in this.prescription) {
- this.dialysisPrescription[key] = this.prescription[key]
- }
- } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id > 0) {
- for (const key in this.solution) {
- if (key != 'target_ultrafiltration') {
- this.dialysisPrescription[key] = this.solution[key]
- }
- }
- } else if (lastDialysisPrescribe != null && typeof lastDialysisPrescribe.id !== 'undefined' && lastDialysisPrescribe.id > 0) {
- for (const key in lastDialysisPrescribe) {
- if (key != 'target_ultrafiltration') {
- this.dialysisPrescription[key] = lastDialysisPrescribe[key]
- }
- }
- } else if (system_prescribe != null && typeof system_prescribe.id !== 'undefined' && system_prescribe.id > 0) {
- for (const key in system_prescribe) {
- if (key != 'target_ultrafiltration') {
- this.dialysisPrescription[key] = system_prescribe[key]
- }
- }
- } else {
- if (schedual.mode_id == 2 || schedual.mode_id == 5 || schedual.mode_id == 12) {
- this.zhiShow = true
- this.huShow = true
- this.totalShow = true
- } else {
- this.zhiShow = false
- this.huShow = false
- this.totalShow = false
- }
- // this.dialysisPrescription.mode_id = schedual.mode_id
-
- }
- var thismode = parseInt(this.dialysisPrescription.anticoagulant)
- if (isNaN(thismode) || thismode <= 0) {
- return false
- }
- if (
- typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
- this.anticoagulantsConfit[thismode] == null
- ) {
- return false
- }
- this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
-
- },
- menuMsgTip: function() {
- this.msgtip_visibility = false
- this.isVisibility = true
- },
- handleAdviceCommit() {
-
- let results = []
- for (let i = 0; i < this.targetAdvices.length; i++) {
- for (let a = 0; a < this.checkedCities.length; a++) {
- if (this.targetAdvices[i].id == this.checkedCities[a]) {
- results.push(this.targetAdvices[i])
- }
- }
- }
- var obj5 = {}
- results = results.reduce((cur, next) => {
- obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
- return cur
- }, [])
-
- var date = new Date()
- var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
-
- if (results.length > 0) {
- if(!this.isLoading){
- if (this.is_pre == 1) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
-
- const ParamsQuery = arr
-
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['patient_id'] = this.$route.query.patient_id
- if(this.$route.query.patient_id ==undefined){
- ParamsQuery['patient_id'] = this.patient.id
- }
- if (this.prescription.creater <= 0) {
- ParamsQuery['mode'] = '1'
- } else {
- ParamsQuery['mode'] = '2'
- if (
- this.$store.getters.xt_user.user.id !=
- this.dialysisPrescription.creater
- ) {
- ParamsQuery['mode'] = '3'
- }
- }
- this.isLoading = true
- console.log("ParamsQuery233232322323322332232323",ParamsQuery)
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- this.isLoading = false
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- var date = new Date()
-
- const params = {
- advices: results,
- advice_date: this.start_time.split(' ')[0],
- advice_doctor: results[0].advice_doctor,
- advice_type: results[0].advice_type,
- parent_id: this.patient_id,
- start_time: this.start_time,
- remark: ''
- }
- var patient_id = 0
- if(this.$route.query.patient_id == undefined){
- patient_id = this.patient.id
- }else{
- patient_id = this.$route.query.patient_id
- }
-
- CreateGroupAdvice(patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- this.isLoading = false
- } else {
- this.isLoading = false
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else if (this.is_pre == 2) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = 1
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- this.isLoading = false
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- // console.log(hour + ':' + minute)
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- const params = {
- advices: results,
- advice_date: this.start_time.split(' ')[0],
- advice_doctor: results[0].advice_doctor,
- advice_type: results[0].advice_type,
- parent_id: this.patient_id,
- start_time: this.start_time,
- remark: ''
- }
- var patient_id = 0
- if(this.$route.query.patient_id == undefined){
- patient_id = this.patient.id
- }else{
- patient_id = this.$route.query.patient_id
- }
- CreateGroupAdvice(patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- this.isLoading = false
- } else {
- this.isLoading = false
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.is_pre == 1) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('医嘱推送4', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- // console.log(this.prescription)
- let mode = ''
- if (this.prescription.creater <= 0) {
- mode = 1
- } else {
- mode = 2
- }
- ParamsQuery['mode'] = mode
- console.log("paramsquery",ParamsQuery)
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else if (this.is_pre == 2) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = 1
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
-
- this.isShowRemindAdvice = false
- this.isVisibility = true
-
- },
- handleAdviceCancle() {
- this.isShowRemindAdvice = false
- this.isVisibility = true
- },
- getTime(val) {
- return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
- },
- showOne(prescription,admins){
- console.log("prescription",prescription)
- if(prescription!=null && prescription.id == 0){
- console.log("开始啊",admins)
- this.dialysisPrescription.admin_user_id = this.$store.getters.xt_user.user.id
- }else{
- this.dialysisPrescription.admin_user_id = prescription.admin_user_id
- }
-
- this.adminRoles = []
- if(admins.length > 0 ){
- for(let i=0;i<admins.length;i++){
- this.adminRoles.push(admins[i])
- }
- }
- console.log("admin_user_+id2332323223332", this.$store.getters.xt_user.user.id)
- },
- show(pre, schedual, last, his_is_open,is_advice_open,admins) {
- console.log("pres",pre)
- console.log("schedual",schedual)
- if (pre != undefined) {
- this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
- if (pre.oxygen_uptake == 1) {
- this.oxygenShow = true
- }
- if (pre.oxygen_uptake == 2) {
- this.oxygenShow = false
- this.prescription.oxygen_flow = ''
- this.prescription.oxygen_time = ''
- }
- }
- if (his_is_open == 1) {
- this.is_open = 0
- }
- if(is_advice_open == 1){
- this.is_open = 1
- }
-
- if(this.$store.getters.xt_user.org.id == 10101){
- if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
- var date = new Date(this.predialysis.created_time * 1000)
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- } else {
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }
- }else{
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
-
-
- 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) {
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- }else if(this.$store.getters.xt_user.org.id == 9990 || this.$store.getters.xt_user.org.id==10432){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '06:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 9671 ||this.$store.getters.xt_user.org.id == 10340){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10447){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10579){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10440){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 9829){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:30'
- }
- }else if(this.$store.getters.xt_user.org.id == 10469){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10471){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10580){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '10:30'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10517){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if(this.$store.getters.xt_user.org.id == 10234){
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '7:30'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
- }
- }else if (this.$store.getters.xt_user.org.id == 10551){
- var date = new Date()
- var year = date.getFullYear()
- var month = date.getMonth() + 1
- var day = date.getDate()
-
- var hours = date.getHours()
- var minites = date.getMinutes()
-
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minites < 10) {
- minites = '0' + minites
- }
- this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
- } else {
- if (schedual.schedule_type == 1) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
- } else if (schedual.schedule_type == 2) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '12:00'
- } else if (schedual.schedule_type == 3) {
- this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
- }
- }
- }
-
-
- if (pre.anticoagulant == 3) {
- this.dialysisPrescription.anticoagulant = '低分子肝素'
- }
-
- // 入口
- var pre = pre
- this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
- if (pre.id > 0) {
- this.dialysisPrescription.mode_id = pre.mode_id
- this.dialysisPrescription.water_machine = pre.water_machine
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- }
- // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
- // console.log('this.schedual', schedual.mode_id)
- 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) {
- this.zhiShow = true
- this.huShow = true
- this.totalShow = true
- } else if (
- pre.mode_id == 1 ||
- pre.mode_id == 3 ||
- pre.mode_id == 4 ||
- pre.mode_id == 6 ||
- pre.mode_id == 7 ||
- pre.mode_id == 8 ||
- pre.mode_id == 9 ||
- pre.mode_id == 10 ||
- pre.mode_id == 11 ||
- pre.mode_id == 13 ||
- pre.mode_id == 14 ||
- pre.mode_id == 19
- ) {
- this.zhiShow = false
- this.huShow = false
- this.totalShow = false
-
- }
- this.pre = pre
- // console.log("pre1", pre);
- this.getPermission()
-
- let last_weight_after = 0
- let weight_before = 0
-
- if (this.last_record == null) {
- last_weight_after = 0
- } else {
- last_weight_after = this.last_record.weight_after
- }
- console.log("last2323232323232332wode",this.predialysis)
- console.log("lastwoowowow",last)
- if(this.predialysis!=null && this.predialysis.id == 0){
- 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 ){
- this.dialysisPrescription.sodium = 138
- this.dialysisPrescription.bicarbonate = 31.1
- this.dialysisPrescription.dialysate_flow = 500
- this.dialysisPrescription.dialysate_temperature = 36.5
- this.dialysisPrescription.prescribing_number = 1
- }
- if(this.$store.getters.xt_user.org.id == 10447){
- this.dialysisPrescription.dialysate_flow = 500
- }
- }
- if (this.predialysis == null || this.predialysis.id == 0) {
-
- if (last != null) {
-
- this.dialysisPrescription.niprocart = last.niprocart
- this.dialysisPrescription.jms = last.jms
- this.dialysisPrescription.fistula_needle_set = last.fistula_needle_set
- this.dialysisPrescription.fistula_needle_set_16 = last.fistula_needle_set_16
- this.dialysisPrescription.hemoperfusion = last.hemoperfusion
- this.dialysisPrescription.dialyser_sterilised = last.dialyser_sterilised
- this.dialysisPrescription.filtryzer = last.filtryzer
- this.dialysisPrescription.target_ktv = last.target_ktv
- this.dialysisPrescription.dialyzers = last.dialyzers
- this.dialysisPrescription.injector = last.injector
- this.dialysisPrescription.bloodlines = last.bloodlines
- this.dialysisPrescription.tubing_hemodialysis = last.tubing_hemodialysis
- this.dialysisPrescription.package = last.package
- this.dialysisPrescription.a_liquid = last.a_liquid
- this.zongliang = last.anticoagulant_zongliang
- this.dialysisPrescription.chaptalization = last.chaptalization
- this.dialysisPrescription.blood_access_part_id = last.blood_access_part_id
- if(this.$store.getters.xt_user.template_info.org_id!=10013 && this.$store.getters.xt_user.template_info.org_id!=10014){
- this.remark = last.remark
- }
-
- weight_before = 0
-
- }
-
- } else {
- weight_before = this.predialysis.weight_before
-
- }
-
-
- if (weight_before > 0 && last_weight_after > 0) {
- this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(
- 2
- )
- // console.log('体重增加', this.add_weight)
- }
-
- this.isVisibility = true
- this.checkedCities = []
- var total_day = ""
- if(moment().weekday() == 1){
- total_day ="周一"
- }
- if(moment().weekday() == 2){
- total_day ="周二"
- }
- if(moment().weekday() == 3){
- total_day ="周三"
- }
- if(moment().weekday() == 4){
- total_day ="周四"
- }
- if(moment().weekday() == 5){
- total_day ="周五"
- }
- if(moment().weekday() == 6){
- total_day ="周六"
- }
- if(moment().weekday() == 0){
- total_day ="周日"
- }
-
- if(this.targetAdvices!=null && this.targetAdvices.length >0){
- for (let i = 0; i < this.targetAdvices.length; i++) {
- if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
- this.targetAdvices[i].isCheck = 1
- }
- if(this.targetAdvices[i].frequency_type == 1){
- this.targetAdvices[i].isCheck = 1
- }
- }
- }
- for (let i = 0; i < this.targetAdvices.length; i++) {
-
- if (this.targetAdvices[i].isCheck == 1) {
- this.checkedCities.push(this.targetAdvices[i].id)
- }
- }
-
-
- if(admins.length > 0 ){
- for(let i=0;i<admins.length;i++){
- this.adminRoles.push(admins[i])
- }
- }
- console.log("---------",this.targetAdvices)
- console.log("admin_user_+id2332323223332", this.adminRoles)
- },
- hide() {
- this.isVisibility = false
- },
- changeThisAnticoagulant: function(val) {
- console.log("val",val)
- var thismode = val
- if (isNaN(thismode) || thismode <= 0) {
- return false
- }
- // if (val != 12 && val!=1) {
- // this.anticoagulant = this.anticoagulantsConfit[thismode - 1]
- // }
- // if (val == 12 || val == 1) {
- // this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
- // console.log("抗凝剂",this.anticoagulant)
- // }
- if (
- typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
- this.anticoagulantsConfit[thismode] == null
- ) {
- return false
- }
- this.anticoagulant = this.anticoagulantsConfit[thismode]
- 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) {
- if(val == 2){
- this.anticoagulant.shouji_unit = 'mg'
- }else{
- this.anticoagulant.shouji_unit = 'iu'
- }
-
- this.anticoagulant.weichi_unit = 'mg/h'
- this.anticoagulant.zongliang_unit = 'mg'
- }
-
- if (this.$store.getters.xt_user.template_info.template_id == 27 && val == 4) {
- this.anticoagulant.shouji_unit = 'ml'
- this.anticoagulant.weichi_unit = 'ml'
- this.anticoagulant.zongliang_unit = 'ml'
- }
- 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){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
-
- },
-
- handleCommit (formName) {
- this.$refs[formName].validate((valid)=>{
- if(valid){
- if(!this.isLoading){
- if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
- this.dialysisPrescription.anticoagulant = 3
- }
- if (this.dialysisPrescription.anticoagulant == 1) {
- this.dialysisPrescription.anticoagulant_weichi = '0'
- this.dialysisPrescription.anticoagulant_shouji = '0'
- this.dialysisPrescription.anticoagulant_zongliang = '0'
- }
- // if (this.$store.getters.xt_user.template_info.template_id == 6) {
- // if (this.dialysisPrescription.mode_id == 2) {
- // if (
- // this.dialysisPrescription.displace_liqui_part == 0 ||
- // this.dialysisPrescription.displace_liqui_part == -2 ||
- // this.dialysisPrescription.displace_liqui_value == 0 ||
- // this.dialysisPrescription.displace_liqui_value == ''
- // || this.dialysisPrescription.replacement_total == 0 ||
- // this.dialysisPrescription.replacement_total == '' ||
- // this.dialysisPrescription.displace_speed == 0 ||
- // this.dialysisPrescription.displace_speed == ''
- // ) {
- // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
- // return
- // }
- // }
-
- // }
- if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
- this.dialysisPrescription.displace_liqui_part = 0
- this.dialysisPrescription.displace_liqui_value = 0
- this.dialysisPrescription.replacement_total = 0
- this.dialysisPrescription.displace_speed = 0
- console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
- console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
-
- }
-
- this.is_pre = 1
-
- if (this.prescription.id == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('night', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
-
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第一', ParamsQuery)
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
-
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提醒
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('ParamsQuerytwo', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第二')
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- console.log('paramsquerythree', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第三')
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const params = {
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- this.advice_start_time,
-
- remark: ''
- }
- console.log('params--------', params)
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
-
- const ParamsQuery = arr
- // console.log('paramsqueryfour', ParamsQuery)
- // console.log('创建者', this.prescription.creater)
- // if (this.prescription.creater <= 0) {
- // mode = 1;
- // } else {
- // mode = 2;
- // }
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- // console.log(this.prescription);
- console.log('第四')
- ParamsQuery['patient_id'] = this.patient.id
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- // console.log("aaaaaaa", prescription_resp);
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.prescription.creater == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('paramsqueryfive', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第五')
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提醒
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('ParamsQuerysix', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- console.log('第6')
- ParamsQuery['patient_id'] = this.patient.id
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('parasmqueryseven', parasmqueryseven)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- console.log('第七')
- ParamsQuery['patient_id'] = this.patient.id
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const params = {
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
-
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- hour +
- ':' +
- minute,
-
- remark: ''
- }
- CreateGroupAdvice(
- this.$route.query.patient_id,
- 0,
- params
- ).then(rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('eight', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- ParamsQuery['patient_id'] = this.patient.id
- console.log('第八')
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('night', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '2'
- ParamsQuery['patient_id'] = this.patient.id
-
- if (
- this.$store.getters.xt_user.user.id !=
- this.dialysisPrescription.creater
- ) {
- ParamsQuery['mode'] = '3'
- }
- console.log('第九',ParamsQuery)
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- }
- }
- }
- }else {
- console.log("error submit!!");
- return false;
- }
- })
-
- },
- handleCancle: function() {
- this.hide()
- },
- handleSolution: function(formName) {
- if(this.dialysisPrescription.anticoagulant == "" || this.dialysisPrescription.anticoagulant == 0){
- this.dialysisPrescription.anticoagulant = 3
- }
- this.$refs[formName].validate((valid)=>{
- if(valid){
- if(!this.isLoading){
- if (this.dialysisPrescription.anticoagulant == 1) {
- this.dialysisPrescription.anticoagulant_weichi = '0'
- this.dialysisPrescription.anticoagulant_shouji = '0'
- this.dialysisPrescription.anticoagulant_zongliang = '0'
- }
- // if (this.$store.getters.xt_user.template_info.template_id == 6) {
- // if (this.dialysisPrescription.mode_id == 2) {
- // if (
- // this.dialysisPrescription.displace_liqui_part == 0 ||
- // this.dialysisPrescription.displace_liqui_part == -2 ||
- // this.dialysisPrescription.displace_liqui_value == 0 ||
- // this.dialysisPrescription.displace_liqui_value == ''
- // || this.dialysisPrescription.replacement_total == 0 ||
- // this.dialysisPrescription.replacement_total == ''||
- // this.dialysisPrescription.displace_speed == 0 ||
- // this.dialysisPrescription.displace_speed == ''
- // ) {
- // this.$message.error('HDF模式下置换液和置换液总量不能为空!')
- // return
- // }
- // }
- // if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
- // this.dialysisPrescription.displace_liqui_part == 0
- // this.dialysisPrescription.displace_liqui_value == 0
- // this.dialysisPrescription.replacement_total == 0
- // this.dialysisPrescription.displace_speed == 0
- // console.log('this.dialysisPrescription.displace_liqui_part',this.dialysisPrescription.displace_liqui_part);
- // console.log('this.dialysisPrescription.replacement_total',this.dialysisPrescription.replacement_total);
- // // this.dialysisPrescription.displace_liqui_part = 0
- // // this.dialysisPrescription.displace_liqui_value = 0
- // // this.dialysisPrescription.replacement_total = 0
- // // this.dialysisPrescription.displace_speed = 0
- // }
- // }
-
- this.is_pre = 2
-
- if (this.prescription.id == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了2",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- const ParamsQuery = arr
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了3",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr3', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方2', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- // if (this.patient.id <= 0) {
- // this.$message.error('没有选择患者')
- // this.loading = false
- // return
- // }
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- const ParamsQuery = arr
- // console.log('长期处方3', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- // console.log(this.prescription)
-
- ParamsQuery['mode'] = '1'
-
- postPrescription(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const params = {
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
- // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
- start_time:
- uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- ' ' +
- hour +
- ':' +
- minute,
-
- remark: ''
- }
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
- rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- }
- )
-
- const prescription_resp = response.data.data.prescription
- var prescription = this.prescription
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了5",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr5', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方5', ParamsQuery)
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.prescription.creater == 0) {
- if (this.is_open == 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方6', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- } else if (this.is_open == 1) {
- if (this.targetAdvices.length > 0) {
- // 弹框推送提醒
- this.isShowRemindAdvice = true
- this.isVisibility = false
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了7",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- // console.log('arr', arr)
-
- const ParamsQuery = arr
- console.log('长期处方7', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- } else if (this.is_open == 2) {
- var date = new Date()
-
- var hour =
- date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
- var minute =
- date.getMinutes() < 10
- ? '0' + date.getMinutes()
- : date.getMinutes()
-
- if (this.waitUploadAdvices.length > 0) {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- const ParamsQuery = arr
- // console.log('长期处方8', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const params = {
-
- advices: this.waitUploadAdvices,
- advice_date: uParseTime(
- this.$route.query.date,
- '{y}-{m}-{d}'
- ),
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
- advice_type: this.waitUploadAdvices[0].advice_type,
- parent_id: this.patient_id,
- start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
- // start_time:
- // uParseTime(this.$route.query.date, '{y}-{m}-{d}') +
- // ' ' +
- // hour +
- // ':' +
- // minute,
-
- remark: ''
- }
- CreateGroupAdvice(
- this.$route.query.patient_id,
- 0,
- params
- ).then(rs => {
- var resp = rs.data
- if (resp.state == 1) {
- // this.doctorAdvices = resp.data.advices
- this.$emit('advice')
- } else {
- if(resp.code == 600000008){
- this.infoDialogVisible = true
- }
- }
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
-
- console.log("预充了99999",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr', arr)
-
- const ParamsQuery = arr
- // console.log('长期处方9', ParamsQuery)
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
-
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- } else {
- if (this.patient.id <= 0) {
- this.$message.error('没有选择患者')
- this.loading = false
- return
- }
- console.log("预充了1",this.dialysisPrescription.pre_impulse)
- this.dialysisPrescription.impulse = this.dialysisPrescription.pre_impulse
- var arr = this.dialysisPrescription
- console.log('arr12333223', arr)
-
- const ParamsQuery = arr
-
-
- ParamsQuery['patient'] = this.patient.id
- ParamsQuery['record_date'] = this.record_date
- ParamsQuery['mode'] = '1'
- console.log('长期处方10', ParamsQuery)
- postSoulution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- return false
- } else {
- this.$notify({
- title: '成功',
- message: '提交成功',
- type: 'success',
- duration: 2000
- })
- const prescription_resp = response.data.data.prescription
- const solution_resp = response.data.data.solution
- var prescription = this.prescription
- var solution = this.solution
- for (var index in prescription_resp) {
- // prescription[index] = prescription_resp[index];
- this.$set(prescription, index, prescription_resp[index])
- }
- for (var index in solution_resp) {
- // solution[index] = solution_resp[index];
- this.$set(solution, index, solution_resp[index])
- }
-
- this.hide()
- }
- })
- }
- }
- }
- }
- })
- },
- isName(name) {
- let filedList = store.getters.xt_user.fileds;
- for (let i = 0; i < filedList.length; i++) {
- if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
- return filedList[i].filed_name;
- }
- }
- },
- isShows(name) {
- var filedList = store.getters.xt_user.fileds
- for (let i = 0; i < filedList.length; i++) {
- if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
- return true
- }
- }
- return false
- },
-
- isCheckmust(name) {
- let filedList = store.getters.xt_user.fileds;
-
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 1 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_write == 1&&
- filedList[i].is_show == 1
- ) {
- // console.log(filedList[i],'false')
- if (name == "透析模式" || name == "透析时长") {
- return [
- { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
- // {
- // required: true,
- // pattern: /^[1-9]\d*$/,
- // message: `请输入${name}`,
- // trigger: ['blur','change']
- // },
- ];
- }
- return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
-
- }
- }
- },
- isNas(name){
- let filedList = store.getters.xt_user.fileds;
-
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 1 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_write == 1&&
- filedList[i].is_show == 1
- ) {
- return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
-
- }
- }
- },
- isSubstitution(name){
- if(this.dialysisPrescription.mode_id == 2 ||this.dialysisPrescription.mode_id == 5 || this.dialysisPrescription.mode_id == 12){
- let filedList = store.getters.xt_user.fileds;
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 1 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_write == 1&&
- filedList[i].is_show == 1
- ) {
- if(name == '置换速度'){
- return [
- { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
- // {
- // required: true,
- // pattern: /^[1-9]\d*$/,
- // message: `请输入${name}`,
- // trigger: ['blur','change']
- // },
- ];
- }
- return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
-
- }
- }
- }else{
- return [{required: false}]
- }
-
- },
-
- getDoctorName(doctor_id) {
- for (let i = 0; i < this.admin_users.length; i++) {
- if (this.admin_users[i].id == doctor_id) {
- return this.admin_users[i].name
- }
- }
- },
- getContent(val) {
- let prescribing_number = ''
- let single_dose = ''
- let advice_desc = ''
-
- if (val.prescribing_number > 0) {
- prescribing_number =
- val.prescribing_number + val.prescribing_number_unit
- }
- if (val.single_dose > 0) {
- single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
- }
-
- if (val.advice_desc > 0 || val.advice_desc.length > 0) {
- advice_desc = val.advice_desc + val.drug_spec_unit
- }
-
- let name = ''
- if (val.child.length > 0) {
- for (let i = 0; i < val.child.length; i++) {
- if (val.child[i].prescribing_number > 0) {
- val.child[i]['presc'] =
- val.child[i].prescribing_number +
- val.child[i].prescribing_number_unit
- } else {
- val.child[i]['presc'] = ''
- }
-
- if (val.child[i].single_dose > 0) {
- val.child[i]['single'] =
- ' ' +
- ' 单次用量 ' +
- ' ' +
- val.child[i].single_dose +
- val.child[i].single_dose_unit
- } else {
- val.child[i]['single'] = ''
- }
- name =
- name +
- '▲' +
- val.child[i].advice_name +
- '' +
- val.child[i].advice_desc +
- val.child[i].drug_spec_unit +
- val.child[i].presc +
- val.child[i].single
- }
- return (
- val.advice_name +
- ' ' +
- advice_desc +
- ' ' +
- val.drug_spec_unit +
- prescribing_number +
- ' ' +
- single_dose +
- ' ' +
- ' ' +
- val.delivery_way +
- ' ' +
- val.execution_frequency +
- val.remark +
- name
- )
- } else {
- return (
- val.advice_name +
- ' ' +
- advice_desc +
- prescribing_number +
- ' ' +
- single_dose +
- ' ' +
- ' ' +
- val.delivery_way +
- ' ' +
- val.execution_frequency +
- val.remark
- )
- }
- },
- changePrescription(id) {
- console.log("id233223232323232323",id)
- if(id != 2 && id!=5 && id!= 12&&id!=34 &&id!=35&&id!=35&&id!=36&&id!=37){
- this.dialysisPrescription.displace_liqui_value = ""
- this.dialysisPrescription.displace_liqui_part = ""
- this.dialysisPrescription.replacement_total = ""
- this.dialysisPrescription.displace_speed = ""
- }
-
- const ParamsQuery = {}
- ParamsQuery['patient_id'] = this.$route.query.patient_id
- ParamsQuery['mode_id'] = id
- GetSolution(ParamsQuery).then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- console.log('切换数据', response.data.data.solution)
- this.$message.success('切换成功')
- console.log("dialysisPrescription",response.data.data.dialysisPrescription)
-
- if (response.data.data.solution != null) {
- for (const key in response.data.data.solution) {
- // 长期处方不为空
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid'&& key != 'remark') {
- this.dialysisPrescription[key] =
- response.data.data.solution[key]
- }
- }
- 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) {
- console.log('抠门;哦啊', response.data.data.dialysisPrescription.remark)
- this.dialysisPrescription.sodium = 138
- this.dialysisPrescription.bicarbonate = 31.1
- this.dialysisPrescription.dialysate_flow = 500
- if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
- this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
- }
- }
- if(this.$store.getters.xt_user.template_info.org_id== 10013 || this.$store.getters.xt_user.template_info.org_id== 10014){
- if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
- this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
- }
- }
- } else {
- if (response.data.data.prescription != null) {
- // 临时处方不为空
- for (const key in response.data.data.prescription) {
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
- this.dialysisPrescription[key] =
- response.data.data.prescription[key]
- }
- }
- } else if (response.data.data.system_prescription != null) {
- // 系统处方不为空
- for (const key in response.data.data.system_prescription) {
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
- this.dialysisPrescription[key] =
- response.data.data.system_prescription[key]
- }
- }
-
- } else {
- for (const key in this.dialysisPrescription) {
- // 临时处方为空
- if (key != 'target_ultrafiltration' && key != 'niprocart' && key != 'target_ultrafiltration' && key != 'jms' && key != 'fistula_needle_set' && key != 'fistula_needle_set_16'
- && key != 'hemoperfusion' && key != 'dialyser_sterilised' && key != 'filtryzer' && key != 'target_ktv' && key != 'dialyzers'
- && key != 'injector' && key != 'bloodlines' && key != 'tubing_hemodialysis' && key != 'package' && key != 'a_liquid' && key != 'remark') {
- this.dialysisPrescription[key] = ''
- }
- }
- this.dialysisPrescription.mode_id = id
- }
- 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) {
- this.dialysisPrescription.sodium = 138
- this.dialysisPrescription.bicarbonate = 31.1
- this.dialysisPrescription.dialysate_flow = 500
- if (this.last_prescription != null && response.data.data.system_prescription != null && response.data.data.system_prescription.remark == '') {
- this.dialysisPrescription.remark = response.data.data.system_prescription.remark
- }
- }
- }
-
- if(response.data.data.dialysisPrescription!=null){
- this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
- }
- }
- if (response.data.data.solution == null) {
- 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) {
- this.dialysisPrescription.sodium = 138
- this.dialysisPrescription.bicarbonate = 31.1
- this.dialysisPrescription.dialysate_flow = 500
- if (this.last_prescription != null) {
- this.dialysisPrescription.remark = this.last_prescription.remark
- }
- }
- if(this.$store.getters.xt_user.template_info.org_id== 10013 || this.$store.getters.xt_user.template_info.org_id== 10014){
- if (this.last_prescription != null) {
- this.dialysisPrescription.remark = this.last_prescription.remark
- }
- }
-
- }
- if (
- this.dialysisPrescription.dialysis_duration_hour === '' ||
- this.dialysisPrescription.dialysis_duration_minute === ''
- ) {
- this.timeValue = ''
- this.time = '03:00'
- } else {
- this.timeValue =
- this.dialysisPrescription.dialysis_duration_hour +
- '小时' +
- this.dialysisPrescription.dialysis_duration_minute +
- '分钟'
- this.time =
- (this.dialysisPrescription.dialysis_duration_hour > 10
- ? this.dialysisPrescription.dialysis_duration_hour
- : '0' + this.dialysisPrescription.dialysis_duration_hour) +
- ':' +
- (this.dialysisPrescription.dialysis_duration_minute > 10
- ? this.dialysisPrescription.dialysis_duration_minute
- : '0' + this.dialysisPrescription.dialysis_duration_minute)
- }
- })
-
- if (
- id === 1 ||
- id === 3 ||
- id === 4 ||
- id === 6 ||
- id === 7 ||
- id === 8 ||
- id === 9 ||
- id === 10 ||
- id === 11 ||
- id === 13 ||
- id === 14 ||
- id === 15 ||
- id === 16 ||
- id === 19
- ) {
- this.zhiShow = false
- this.huShow = false
- this.totalShow = false
- } else {
- this.zhiShow = true
- this.huShow = true
- this.totalShow = true
-
- //针对新化博翔
- if(this.$store.getters.xt_user.template_info.org_id ==10447){
- this.dialysisPrescription.displace_liqui_part = 1
- this.dialysisPrescription.displace_liqui_value = 35
- }
- }
-
- },
- handlePatientInfo() {
- this.isVisibility = false
- this.msgtip_visibility = true
- },
- handlePatientInfoOne(){
- this.isVisibility = false
- this.startVisibility = true
- },
- cancleMsg() {
- this.isVisibility = true
- this.msgtip_visibility = false
- },
- cancleMsgOne(){
- this.isVisibility = true
- this.startVisibility = false
- },
- getPermission() {
- request
- .get('/api/func_per/get', {
- params: {
- create_url: '/api/dialysis/prescription?mode=1',
- modify_url: '/api/dialysis/prescription?mode=2',
- modify_other_url: '/api/dialysis/prescription?mode=3',
- module: 1
- }
- })
- .then(res => {
- // console.log(res)
- // console.log('predialysis.creater', this.pre.creater)
- // console.log('admin.id', this.$store.getters.xt_user.user.id)
- if (res.data.state == 0) {
- this.hasPermission = false
- } else if (res.data.state == 1) {
- if (this.pre.id != '' && this.pre.creater != 0) {
- // 有数据
- if (this.pre.creater == this.$store.getters.xt_user.user.id) {
- // 创建人是自己
- if (res.data.data.is_has_modify == false) {
- this.hasPermission = false
- this.showTxt = '你没有修改透析处方权限'
- }
- } else {
- // 创建人不是自己
- if (res.data.data.is_has_modify_other == false) {
- this.hasPermission = false
- this.showTxt = '你没有修改他人透析处方权限'
- }
- }
- } else if (this.pre.id == '' || this.pre.creater == 0) {
- if (res.data.data.is_has_create == false) {
- this.hasPermission = false
- this.showTxt = '你没有新增透析处方权限'
- }
- }
- }
- })
- },
- unique(arr) {
- const res = new Map()
- return arr.filter((arr) => !res.has(arr.name) && res.set(arr.name, 1))
- },
-
- dialysisAfterTeachSelectChange: function(values) {
- console.log("values232323232wo",values)
- if (this.dialysisPrescription.dialysis_remark == '' || this.dialysisPrescription.dialysis_remark==undefined) {
- this.dialysisPrescription.dialysis_remark = values
- } else {
- console.log("this.dialysisPrescription.dialysis_remark",this.dialysisPrescription.dialysis_remark)
- if (this.dialysisPrescription.dialysis_remark!=undefined&&this.dialysisPrescription.dialysis_remark.indexOf(values) == -1) {
- if (this.dialysisPrescription.dialysis_remark.charAt(this.dialysisPrescription.dialysis_remark.length - 1).indexOf('。') == -1) {
- this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + ',' + values
- } else {
- this.dialysisPrescription.dialysis_remark = this.dialysisPrescription.dialysis_remark + values
- }
- }
- }
- },
-
- saveInformation(){
- var params = {
- selected_date:this.selected_date,
- patient_id:this.$route.query.patient_id,
- record_date:this.$route.query.date,
- module:1,
- remark:this.remark,
- }
- saveInformation(params).then(response=>{
- if(response.data.state == 1){
- var information = response.data.data.information
- this.$message.success("提交成功!")
- this.infoDialogVisible = false
- }
- })
- }
- },
-
- watch: {
- // 'dialysisPrescription.blood_flow_volume': function () {
- // this.dialysisPrescription.blood_flow_volume = replacementFlow(this.dialysisPrescription.blood_flow_volume)
- // },
- // 'dialysisPrescription.replacement_flow': function () {
- // console.log("血流量",this.dialysisPrescription.replacement_flow)
- // this.dialysisPrescription.replacement_flow = this.dialysisPrescription.replacement_flow
- // },
- 'dialysisPrescription.dialysis_duration_hour': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
-
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
-
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- },
- 'dialysisPrescription.dialysis_duration_minute': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
-
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
- }
-
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration,
- this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount
- )
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- },
- 'dialysisPrescription.anticoagulant_shouji': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
- 1,
- this.dialysisPrescription.anticoagulant_shouji,
- duration,
- this.dialysisPrescription.anticoagulant_weichi,
- this.dialysisPrescription.add_amount,
- this.dialysisPrescription.reduce_amount
- )
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
- },
- 'dialysisPrescription.anticoagulant_weichi': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
-
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
-
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration = parseFloat(dialysis_duration_hour) + parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(1, this.dialysisPrescription.anticoagulant_shouji, duration, this.dialysisPrescription.anticoagulant_weichi,this.dialysisPrescription.add_amount,this.dialysisPrescription.reduce_amount)
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
-
- },
-
-
- 'prescription.id': {
- immediate: true,
- deep: true,
- handler(oldVal, newVal) {
- if (oldVal == newVal) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- }
- if (this.prescription.id > 0) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- } else if (this.prescription.id == 0) {
- for (var index in this.dialysisPrescription) {
- this.dialysisPrescription[index] = this.prescription[index]
- }
-
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- }
- }
- },
- 'solution.id': function() {
- if (this.solution.id > 0) {
- if (
- this.prescription != null &&
- typeof this.prescription.id !== 'undefined' &&
- this.prescription.id > 0
- ) {
- for (const key in this.prescription) {
- this.dialysisPrescription[key] = this.prescription[key]
- }
- if (this.prescription['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
- if (this.prescription['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.prescription['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.prescription['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.prescription['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.prescription['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.prescription['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.prescription['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.prescription['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.prescription['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.prescription['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.prescription['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.prescription['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.prescription['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.prescription['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.prescription['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.prescription['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.prescription['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.prescription['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.prescription['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
- } else if (
- this.solution != null &&
- typeof this.solution.id !== 'undefined' &&
- this.solution.id
- ) {
- for (const key in this.solution) {
- this.dialysisPrescription[key] = this.solution[key]
- }
-
- if (this.solution['dialysate_formulation'] == 0) {
- this.dialysisPrescription['dialysate_formulation'] = ''
- }
-
- if (this.solution['anticoagulant'] == 0) {
- this.dialysisPrescription['anticoagulant'] = ''
- }
-
- if (this.solution['dialysis_duration_hour'] == 0) {
- this.dialysisPrescription['dialysis_duration_hour'] = ''
- }
- if (this.solution['dialysis_duration_minute'] == 0) {
- this.dialysisPrescription['dialysis_duration_minute'] = ''
- }
- if (this.solution['blood_flow_volume'] == 0) {
- this.dialysisPrescription['blood_flow_volume'] = ''
- }
- if (this.solution['target_ultrafiltration'] == 0) {
- this.dialysisPrescription['target_ultrafiltration'] = ''
- }
- if (this.solution['dialysate_temperature'] == 0) {
- this.dialysisPrescription['dialysate_temperature'] = ''
- }
- if (this.solution['anticoagulant_shouji'] == 0) {
- this.dialysisPrescription['anticoagulant_shouji'] = 0
- }
- if (this.solution['anticoagulant_weichi'] == 0) {
- this.dialysisPrescription['anticoagulant_weichi'] = 0
- }
- if (this.solution['anticoagulant_zongliang'] == 0) {
- this.dialysisPrescription['anticoagulant_zongliang'] = 0
- }
- if (this.solution['anticoagulant_gaijiliang'] == 0) {
- this.dialysisPrescription['anticoagulant_gaijiliang'] = ''
- }
- if (this.solution['kalium'] == 0) {
- this.dialysisPrescription['kalium'] = ''
- }
- if (this.solution['sodium'] == 0) {
- this.dialysisPrescription['sodium'] = ''
- }
- if (this.solution['calcium'] == 0) {
- this.dialysisPrescription['calcium'] = ''
- }
- if (this.solution['bicarbonate'] == 0) {
- this.dialysisPrescription['bicarbonate'] = ''
- }
- if (this.solution['glucose'] == 0) {
- this.dialysisPrescription['glucose'] = ''
- }
- if (this.solution['dialysate_flow'] == 0) {
- this.dialysisPrescription['dialysate_flow'] = ''
- }
- if (this.solution['conductivity'] == 0) {
- this.dialysisPrescription['conductivity'] = ''
- }
- if (this.solution['replacement_total'] == 0) {
- this.dialysisPrescription['replacement_total'] = ''
- }
- if (this.solution['target_ktv'] == 0) {
- this.dialysisPrescription['target_ktv'] = ''
- }
-
- }
- }
- },
- 'dialysisPrescription.add_amount': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
- 1,
- this.dialysisPrescription.anticoagulant_shouji,
- duration,
- this.dialysisPrescription.anticoagulant_weichi,
- this.dialysisPrescription.add_amount,
- this.dialysisPrescription.reduce_amount
- )
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
- },
- 'dialysisPrescription.reduce_amount': function() {
- let dialysis_duration_minute = 0
- let dialysis_duration_hour = 0
- let duration = 0
- if (this.dialysisPrescription.dialysis_duration_minute == '') {
- dialysis_duration_minute = 0
- } else {
- dialysis_duration_minute = this.dialysisPrescription
- .dialysis_duration_minute
- }
- if (this.dialysisPrescription.dialysis_duration_hour == '') {
- dialysis_duration_hour = 0
- } else {
- dialysis_duration_hour = this.dialysisPrescription
- .dialysis_duration_hour
- }
- duration =
- parseFloat(dialysis_duration_hour) +
- parseFloat(dialysis_duration_minute) / 60
-
- this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
- 1,
- this.dialysisPrescription.anticoagulant_shouji,
- duration,
- this.dialysisPrescription.anticoagulant_weichi,
- this.dialysisPrescription.add_amount,
- this.dialysisPrescription.reduce_amount
- )
- this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
- if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
- this.dialysisPrescription.anticoagulant_zongliang = ''
- }
-
- if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
- this.dialysisPrescription.anticoagulant_zongliang = ""
- this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
- }
-
- },
- stockType: function() {
- console.log('stockType', this.stockType)
- var arr = []
- var arrTwo = []
- var arrThree = []
- for (let i = 0; i < this.stockType.length; i++) {
- if (this.stockType[i].stock_attribute == 2) {
- arr.push(this.stockType[i])
- }
- if (this.stockType[i].stock_attribute == 3) {
- arrTwo.push(this.stockType[i])
- }
- if(this.stockType[i].stock_attribute == 4){
- arrThree.push(this.stockType[i])
- }
- }
- var dialyzator = []
- var irrigation = []
- var dialysis_strainer = []
- for (let i = 0; i < arr.length; i++) {
- for (let j = 0; j < arr[i].GoodInfo.length; j++) {
- dialyzator.push(arr[i].GoodInfo[j])
- }
- }
- this.dialyzers = dialyzator
-
- for (let i = 0; i < arrTwo.length; i++) {
- for (let j = 0; j < arrTwo[i].GoodInfo.length; j++) {
- irrigation.push(arrTwo[i].GoodInfo[j])
- }
- }
- this.irrigations = irrigation
-
- for(let i=0;i<arrThree.length;i++){
- for (let j = 0; j < arrThree[i].GoodInfo.length; j++) {
- dialysis_strainer.push(arrThree[i].GoodInfo[j])
- }
- }
-
- this.dialysisStrainerList = dialysis_strainer
- },
-
- admin_user_id:function(){
- console.log("处方医生",this.admins)
- if(this.admins.length > 0 ){
- for(let i=0;i<this.admins.length;i++){
- this.adminRoles.push(this.admins[i])
- }
- }
- console.log(" 人员",this.adminRoles)
- }
- },
- created() {
-
- this.illnessList = getDataConfig('hemodialysis', 'illness')
-
- this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
- this.plasmaSeparatorList = getDataConfig('hemodialysis', 'plasma_separator')
-
- this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis', 'bilirubin_adsorption_column')
-
-
- this.educationList = getDataConfig('dialysis_remark', 'dialysis_remark')
-
-
-
- }
- }
- </script>
-
- <style rel="stylesheet/scss" lang="scss" scoped>
- .el-checkbox,
- .el-checkbox__input {
- vertical-align: middle;
- }
-
- .newLine {
- display: flex;
- justify-content: space-between;
- height: 40px;
- line-height: 40px;
- border-bottom: 1px solid #ccc;
- color: #303133;
- }
-
- .warnTxt {
- text-align: center;
- margin: 0 auto;
- background: #faa331;
- max-width: 240px;
- padding: 10px 20px;
- border-radius: 4px;
- margin-bottom: 10px;
- color: #fff;
- }
- </style>
- <style lang="scss">
- .newDialog {
-
- .el-dialog__body {
- padding: 10px 20px 30px;
- }
-
- }
- </style>
|