12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884 |
- <template>
- <div>
- <div
- class="patient"
- :class="borderColor(patient)"
- v-for="(patient, index) in patients"
- :key="index"
- @click="detailAction(patient)"
- >
- <div style="overflow: hidden; width: 100%" class="online">
- <p
- style="
- float: right;
- height: 0.5rem;
- line-height: 0.5rem;
- margin-right: 0.28rem;
- margin-top: 0.2rem;
- "
- :class="stateColor(patient)"
- >
- {{ stateText(patient) }}
- </p>
- </div>
- <!-- <router-link :to="{path:'/details', query: {patient_id: patient.patient_id, date: patient.schedule_date}}"> -->
- <div class="kehu">
- <div style="position: relative; flex: 2; margin-bottom: 8px" class="tx">
- <!-- <img
- :src="
- patient.patient.avatar.length > 0
- ? patient.patient.avatar
- : '../../assets/product/test.jpg'
- "
- alt
- /> -->
- <div style="display: flex; flex-direction: column">
- <img
- v-if="patient.patient.gender == 1"
- src="../../assets/images/man.png"
- alt=""
- />
-
- <img v-else src="../../assets/images/woman.png" alt="" />
- <span class="redpoint" v-if="getStatus(patient)">
- {{
- getUnReadNum(patient) > 99
- ? getUnReadNum(patient) + "+"
- : getUnReadNum(patient)
- }}
- </span>
-
- <div v-if="patient.prescription != null && patient.prescription.water_machine=='是'" class="water"><span>水</span></div>
- </div>
-
- <div class="right">
- <h3 class="name">
- <span v-if="patient.patient.is_infectious==2" style="color:red">{{ patient.patient.name }}</span>
- <span v-if="patient.patient.is_infectious!=2">{{ patient.patient.name }}</span>
- <span class="num"
- >{{ genderText(patient) }} | {{ age(patient)>200 ? patient.patient.age : age(patient) }}岁</span
- >
- </h3>
- <div class="difficult" v-if="patient.patient.troble_shoot == 1">
- 疑难内瘘
- </div>
- <!-- 性别、年龄 -->
- <div class="dislysisInfo" style="color: #1b2631">
- <p
- v-if="
- $store.getters.user.template_info.org_id != 9671 &&
- $store.getters.user.template_info.org_id != 9675 &&
- $store.getters.user.template_info.org_id != 10340
- "
- >
- 透析号:{{
- patient.patient.dialysis_no ? patient.patient.dialysis_no : ""
- }}
- </p>
- <!-- <p
- v-if="
- $store.getters.user.template_info.org_id == 9671 ||
- $store.getters.user.template_info.org_id == 9675 ||
- $store.getters.user.template_info.org_id == 10340
- "
- >
- 核酸检测日期:
- <span v-if="patient.dialysis_order != null">{{
- getTimeOne(patient.dialysis_order.nuclein_date)
- }}</span>
- </p> -->
- <p
- v-if="
- $store.getters.user.template_info.org_id == 9671 ||
- $store.getters.user.template_info.org_id == 9675 ||
- $store.getters.user.template_info.org_id == 10340
- "
- >
- 透析时长:
- <span
- v-if="
- patient.prescription != null &&
- patient.prescription.dialysis_duration_hour > 0
- "
- >{{ patient.prescription.dialysis_duration_hour }}时</span
- >
- <span
- v-if="
- patient.prescription != null &&
- patient.prescription.dialysis_duration_minute > 0
- "
- >{{ patient.prescription.dialysis_duration_minute }}分</span
- >
-
- <span
- v-if="
- patient.prescription == null &&
- patient.dialysis_solution != null
- "
- >{{
- patient.dialysis_solution.dialysis_duration_hour
- }}时</span
- >
- <span
- v-if="
- patient.prescription == null &&
- patient.dialysis_solution != null
- "
- >{{
- patient.dialysis_solution.dialysis_duration_minute
- }}分</span
- >
- </p>
- <p
- v-if="
- $store.getters.user.template_info.org_id != 9671 &&
- $store.getters.user.template_info.org_id != 9675 &&
- $store.getters.user.template_info.org_id != 10340
- "
- >
- 体重(前/后kg):{{
- patient.assessment_before_dislysis
- ? patient.assessment_before_dislysis.weight_before
- : ""
- }}
- <span
- v-if="
- patient.assessment_after_dislysis &&
- patient.assessment_after_dislysis.weight_after > 0
- "
- >/{{
- patient.assessment_after_dislysis
- ? patient.assessment_after_dislysis.weight_after
- : ""
- }}</span
- >
- </p>
-
- <p v-if="$store.getters.user.template_info.org_id == 10693">
- 干体重(kg):
- {{patient.assessment_before_dislysis? patient.assessment_before_dislysis.dry_weight: ""}}
-
- </p>
-
- <p
- v-if="
- $store.getters.user.template_info.org_id == 9671 ||
- $store.getters.user.template_info.org_id == 9675 ||
- $store.getters.user.template_info.org_id == 10340
- "
- >
- 抗凝剂:
- <span v-if="patient.prescription != null">
- <span v-if="patient.prescription.anticoagulant == 1"
- >无肝素</span
- >
- <span v-if="patient.prescription.anticoagulant == 2"
- >普通肝素</span
- >
- <span v-if="patient.prescription.anticoagulant == 3"
- >低分子肝素</span
- >
- <span v-if="patient.prescription.anticoagulant == 4"
- >阿加曲班</span
- >
- <span v-if="patient.prescription.anticoagulant == 5"
- >枸橼酸钠</span
- >
- <span v-if="patient.prescription.anticoagulant == 6"
- >低分子肝素钙</span
- >
- <span v-if="patient.prescription.anticoagulant == 7"
- >低分子肝素钠</span
- >
- <span v-if="patient.prescription.anticoagulant == 8"
- >依诺肝素</span
- >
- <span v-if="patient.prescription.anticoagulant == 9"
- >达肝素</span
- >
- <span v-if="patient.prescription.anticoagulant == 10"
- >体外抗凝</span
- >
- <span v-if="patient.prescription.anticoagulant == 11"
- >那屈肝素</span
- >
- <span v-if="patient.prescription.anticoagulant == 12"
- >无抗凝剂</span
- >
- <span v-if="patient.prescription.anticoagulant == 13"
- >那屈肝素钙</span
- >
- <span v-if="patient.prescription.anticoagulant == 14"
- >肝素钙注射液</span
- >
- <span v-if="patient.prescription.anticoagulant == 15"
- >甲磺酸萘莫司他</span
- >
- </span>
-
- <span
- v-if="
- patient.prescription == null &&
- patient.dialysis_solution != null
- "
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 1"
- >无肝素</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 2"
- >普通肝素</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 3"
- >低分子肝素</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 4"
- >阿加曲班</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 5"
- >枸橼酸钠</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 6"
- >低分子肝素钙</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 7"
- >低分子肝素钠</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 8"
- >依诺肝素</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 9"
- >达肝素</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 10"
- >体外抗凝</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 11"
- >那屈肝素</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 12"
- >无抗凝剂</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 13"
- >那屈肝素钙</span
- >
- </span>
- </p>
-
- <p
- v-if="
- $store.getters.user.template_info.org_id == 9671 ||
- $store.getters.user.template_info.org_id == 9675 ||
- $store.getters.user.template_info.org_id == 10340
- "
- >
- 总量:
- <span v-if="patient.prescription != null">
- <span v-if="patient.prescription.anticoagulant == 1"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 2"
- >{{ patient.prescription.anticoagulant_zongliang }}mg</span
- >
- <span v-if="patient.prescription.anticoagulant == 3"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 4"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 5"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 6"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 7"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 8"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 9"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 10"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 11"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 12"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- <span v-if="patient.prescription.anticoagulant == 13"
- >{{ patient.prescription.anticoagulant_zongliang }}iu</span
- >
- </span>
-
- <span
- v-if="
- patient.prescription == null &&
- patient.dialysis_solution != null
- "
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 1"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 2"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}mg</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 3"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 4"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 5"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 6"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 7"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 8"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 9"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 10"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 11"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 12"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- <span v-if="patient.dialysis_solution.anticoagulant == 13"
- >{{
- patient.dialysis_solution.anticoagulant_zongliang
- }}iu</span
- >
- </span>
- </p>
-
- <p>
- 目标超滤量:
- <span
- v-if="
- patient.prescription &&
- patient.prescription.target_ultrafiltration > 0
- "
- >
- <span v-if="$store.getters.user.template_info.org_id == 10340"
- >{{
- patient.prescription
- ? patient.prescription.target_ultrafiltration
- : ""
- }}ml</span
- >
-
- <span v-if="$store.getters.user.template_info.org_id == 10597"
- >{{
- patient.prescription
- ? patient.prescription.target_ultrafiltration
- : ""
- }}L</span
- >
-
- <span v-if="$store.getters.user.template_info.org_id == 10612"
- >{{
- patient.prescription
- ? patient.prescription.target_ultrafiltration
- : ""
- }}L</span
- >
- <span
- v-if="$store.getters.user.template_info.org_id != 10340 && $store.getters.user.template_info.org_id != 10597 && $store.getters.user.template_info.org_id != 10612"
- >{{
- patient.prescription
- ? patient.prescription.target_ultrafiltration
- : ""
- }}</span
- >
- </span>
-
- <span
- v-if="
- patient.prescription == null &&
- patient.dialysis_solution != null
- "
- >
- <span
- v-if="$store.getters.user.template_info.org_id == 10340"
- >
- <span
- >{{
- patient.dialysis_solution
- ? patient.dialysis_solution.target_ultrafiltration
- : ""
- }}ml</span
- >
- </span>
- <span
- v-if="$store.getters.user.template_info.org_id == 10597"
- >
- <span
- >{{
- patient.dialysis_solution
- ? patient.dialysis_solution.target_ultrafiltration
- : ""
- }}L</span
- >
- </span>
- <span
- v-if="$store.getters.user.template_info.org_id != 10340 && $store.getters.user.template_info.org_id != 10597"
- >{{
- patient.prescription
- ? patient.prescription.target_ultrafiltration
- : ""
- }}</span
- >
- </span>
- </p>
-
- <p v-if="$store.getters.user.template_info.org_id == 10597 || $store.getters.user.template_info.org_id == 10612 || $store.getters.user.template_info.org_id == 10598 || $store.getters.user.template_info.org_id == 10679 || $store.getters.user.template_info.org_id == 10677 || $store.getters.user.template_info.org_id == 10702 ">
- 处方脱水量:
- <span>{{patient.prescription? patient.prescription.prescription_water: ""}}L</span>
- </p>
-
- <p
- v-if="
- $store.getters.user.template_info.org_id != 9675 &&
- $store.getters.user.template_info.org_id != 10340
-
- "
- >
- 透析器/灌流器:{{patient.prescription ? patient.prescription.dialyzer_perfusion_apparatus: ""}}
- <span
- v-if="patient.prescription != null &&patient.prescription.dialysis_dialyszers != ''">
- {{patient.prescription? patient.prescription.dialysis_dialyszers: ""}}
- </span>
- <span v-if="patient.prescription == null && patient.dialysis_solution!=null">
- {{patient.dialysis_solution? patient.dialysis_solution.dialysis_dialyszers: ""}}
- </span>
- <span v-if="patient.prescription != null &&patient.prescription.dialysis_irrigation != ''">/</span>
- <span v-if="patient.prescription == null &&patient.dialysis_solution!=null">
- {{patient.dialysis_solution? patient.dialysis_solution.dialysis_irrigation: ""}}
- </span>
- <span v-if="patient.prescription != null &&patient.prescription.dialysis_irrigation != ''">
- {{patient.prescription? patient.prescription.dialysis_irrigation: ""}}
- </span>
-
- <span v-if="patient.prescription == null && patient.dialysis_solution!=null">
- {{patient.dialysis_solution? patient.dialysis_solution.dialysis_irrigation: ""}}
- </span>
- </p>
-
- <p
- v-if="
- $store.getters.user.template_info.org_id == 9675 ||
- $store.getters.user.template_info.org_id == 10340
- "
- >
- 透析器/灌流器:
- <span
- v-if="
- patient.dialysis_order != null &&
- patient.dialysis_order.dialysis_dialyszers != ''
- "
- >
- {{
- patient.prescription
- ? patient.dialysis_order.dialysis_dialyszers
- : ""
- }}
- </span>
-
- <span
- v-if="
- patient.dialysis_order == null && patient.last_order != null
- "
- >
- {{
- patient.last_order
- ? patient.last_order.dialysis_dialyszers
- : ""
- }}
- </span>
- <span
- v-if="
- patient.dialysis_order != null &&
- patient.dialysis_order.dialysis_irrigation != ''
- "
- >/{{
- patient.dialysis_order
- ? patient.dialysis_order.dialysis_irrigation
- : ""
- }}
- </span>
-
- <span
- v-if="
- patient.dialysis_order == null && patient.last_order != null
- "
- >
- <span v-if="patient.last_order.dialysis_irrigation != ''"
- >/{{
- patient.last_order
- ? patient.last_order.dialysis_irrigation
- : ""
- }}</span
- >
- </span>
- </p>
-
- <p
- v-if="
- $store.getters.user.template_info.org_id == 9671 ||
- $store.getters.user.template_info.org_id == 10445 ||
- $store.getters.user.template_info.org_id ==10597 ||
- $store.getters.user.template_info.org_id ==10599 ||
- $store.getters.user.template_info.org_id ==10702
- "
- >
- 滤过器:
- <span v-if="patient.prescription!=null && patient.prescription.dialysis_strainer!=''">{{patient.prescription? patient.prescription.dialysis_strainer: ""}}</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null">{{patient.dialysis_solution? patient.dialysis_solution.dialysis_strainer: ""}}</span>
- </p>
- <p
- v-if="
- $store.getters.user.template_info.org_id == 9675 ||
- $store.getters.user.template_info.org_id == 10340
- "
- >
- 排班备注:
- <span>{{patient.dialysis_order &&patient.dialysis_order.schedule_remark? patient.dialysis_order.schedule_remark:patient.patient.schedule_remark }}</span>
- </p>
- <p>抗凝剂:
- <span v-if="patient.prescription!=null&& patient.prescription&&patient.prescription.anticoagulant ==1">无肝素</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==1">无肝素</span>
-
- <span v-if="patient.prescription==null && patient.prescription&&patient.prescription.anticoagulant ==2">普通肝素</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==2">普通肝素</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==3">低分子肝素</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==3">低分子肝素</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==4">阿加曲班</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==4">阿加曲班</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==5">枸橼酸钠</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==5">枸橼酸钠</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==6">低分子肝素钙</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==6">低分子肝素钙</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==7">低分子肝素钠</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==7">低分子肝素钙</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==8">依诺肝素</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==8">依诺肝素</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==9">达肝素</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==9">达肝素</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==10">体外抗凝</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==10">体外抗凝</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==11">那屈肝素</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==11">那屈肝素</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==12">无抗凝剂</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==12">无抗凝剂</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==13">那曲肝素钙</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==13">那曲肝素钙</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==14">肝素钙注射液</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==14">肝素钙注射液</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==15">甲磺酸萘莫司他</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==15">甲磺酸萘莫司他</span>
-
- <span v-if=" patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==16">低分子量肝素钙</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==16">低分子肝素钙</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant ==17">肝素钠</span>
- <span v-if="patient.prescription==null && patient.dialysis_solution!=null && patient.dialysis_solution.anticoagulant==17">肝素钠</span>
-
- </p>
- <p>
- 首剂:
- {{patient.prescription!=null&& patient.prescription&&patient.prescription.anticoagulant_shouji?patient.prescription&&patient.prescription.anticoagulant_shouji:"" }}
- {{patient.prescription==null&& patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_shouji?patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_shouji:"" }}
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 4">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 4">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 3">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 3">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 2">mg</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 2">mg</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 5">ml</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 5">ml</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 6">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 6">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 7">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 7">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 8">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 8">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 9">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 9">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 10">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 10">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 11">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 11">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 13">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 13">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 16">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 16">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644"> U</span>
- </span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644"> U</span>
- </span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 14">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644"> iu</span>
- </span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 14">
- mg
- </span>
-
-
- 维持: {{patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant_weichi?patient.prescription&&patient.prescription.anticoagulant_weichi:"" }}
- {{patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_weichi?patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_weichi:"" }}
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 4">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 4">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 3">iu</span>
- <span v-if="patient.dialysis_solution==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 3">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 2">mg</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 2">mg</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 5">ml</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 5">ml</span>
-
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 6">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 6">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 7">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 7">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 8">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 8">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 9">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 9">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 10">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 10">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 11">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 11">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 13">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 13">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 16">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 16">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644"> U/h</span>
- </span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644"> U/h</span>
- </span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 14">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644"> iu/h</span>
- </span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 14">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg/h</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644"> iu/h</span>
- </span>
-
- 总量:
- {{ patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant_zongliang?patient.prescription&&patient.prescription.anticoagulant_zongliang:"" }}
- {{ patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_zongliang?patient.dialysis_solution&&patient.dialysis_solution.anticoagulant_zongliang:"" }}
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 4">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 4">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 3">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 3">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 2">mg</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 2">mg</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 5">ml</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 5">ml</span>
-
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 6">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 6">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 7">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 7">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 8">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 8">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 9">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 9">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 10">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 10">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 11">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 11">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 13">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 13">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 16">iu</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 16">iu</span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 17">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644">U</span>
- </span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 17">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644">U</span>
- </span>
-
- <span v-if="patient.prescription!=null&&patient.prescription&&patient.prescription.anticoagulant == 14">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644"> iu</span>
- </span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution&&patient.dialysis_solution.anticoagulant == 14">
- <span v-if="$store.getters.user.template_info.org_id !=10644"> mg</span>
- <span v-if="$store.getters.user.template_info.org_id ==10644"> iu</span>
- </span>
-
-
- </p>
- <p>
- 钙:<span v-if="patient.prescription!=null&&patient.prescription">{{patient.prescription.calcium }} (mmol/L)</span>
- <span v-if="patient.prescription==null&&patient.dialysis_solution!=null">{{patient.dialysis_solution.calcium }}(mmol/L)</span>
- </p>
-
- <p v-if="$store.getters.user.template_info.org_id==10644">
- 备注:<span style="color:red" v-if="patient.prescription!=null&&patient.prescription">{{patient.prescription.remark }} </span>
- </p>
- </div>
- </div>
- </div>
- <!-- <div class="online" style="flex:0.5;" v-show="computeState(patient) != 4">
- <p :class="stateColor(patient)">{{ stateText(patient) }}</p>
- </div> -->
- <div v-if="newIndex == 1" style="display: flex; flex-direction: column">
- <div
- v-if="
- (patient.prescription == null ||
- patient.prescription.creater == 0) &&
- newIndex == 1
- "
- class="prescription"
- @click.stop="open2(patient)"
- >
- 开处方
- </div>
- <div
- v-if="
- patient.dialywater_machineis_order == null &&
- newIndex == 1
- "
- class="prescription"
- @click.stop="open10(patient,index)"
- >
- 透析上机
- </div>
- <div
- v-if="((patient.dobule_check&&patient.dobule_check.creater == 0 || patient.dobule_check&&patient.dobule_check.modifier == 0) && newIndex == 1) "
- class="summary"
- @click.stop="open11(patient)"
- >
- 双人核对
- </div>
- </div>
-
- <div v-if="newIndex == 2" style="display: flex; flex-direction: column">
- <div
- v-if="patient.treatment_summary == null && newIndex == 2"
- class="summary"
- @click.stop="open1(patient)"
- >
- 开小结
- </div>
- <div
- v-if="patient.dobule_check==null && newIndex ==2"
- class="summary"
- @click.stop="open11(patient)"
- >
- 双人核对
- </div>
- <div
- v-if="patient.dialysis_order != null && patient.dialysis_order.stage ==1 && newIndex == 2"
- class="summary"
- @click.stop="open12(patient)"
- >
- 透析下机
- </div>
- </div>
-
- <div v-if="information.length == 0">
- <div
- class="disinfect"
- v-if="
- patient.dialysis_order != null &&
- patient.dialysis_order.stage == 2 &&
- is_run == 1
- "
- @click.stop="toDisInfect(patient)"
- >
- 消毒
- </div>
- </div>
- <div v-if="information.length > 0">
- <div
- class="disinfect"
- v-if="
- patient.dialysis_order != null &&
- patient.dialysis_order.stage == 2 &&
- is_run == 1 &&
- getInformation(
- patient.bed_id,
- patient.schedule_date,
- patient.schedule_type,
- patient.patient_id
- ) == 0
- "
- @click.stop="toDisInfect(patient)"
- >
- 消毒
- </div>
-
- <div
- class="disinfectOne"
- v-if="
- patient.dialysis_order != null &&
- patient.dialysis_order.stage == 2 &&
- is_run == 1 &&
- getInformation(
- patient.bed_id,
- patient.schedule_date,
- patient.schedule_type,
- patient.patient_id
- ) == 1
- "
- @click.stop="toDisInfect(patient)"
- >
- 消毒
- </div>
- </div>
- </div>
- <!-- </router-link> -->
- <div
- class="function"
- :class="functionColor(patient)"
- :id="modeColor(patient.mode_id)"
- >
- <ul>
- <li>
- <span class="iconfont"></span>
- 班次 : {{ timeTypeText(patient) }}
- </li>
- <li>
- <span class="iconfont"></span>
- 床位号 :
- <span v-if="$store.getters.user.template_info.org_id ==10340">
- <span style="color:blue" v-if="patient.dialysis_order && patient.dialysis_order.device_number!=undefined && (patient.dialysis_order.device_number.id == 4414 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4449 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4456 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4416 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4448 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4468 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4451 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4457 || patient.dialysis_order && patient.dialysis_order.device_number.id == 4495)">
-
- {{
- patient.dialysis_order &&
- patient.dialysis_order.device_number &&
- patient.dialysis_order.device_number.number.length > 0
- ? patient.dialysis_order.device_number.number
- : patient.device_number.number
- }}
- </span>
- <span v-else>
- {{
- patient.dialysis_order &&
- patient.dialysis_order.device_number &&
- patient.dialysis_order.device_number.number.length > 0
- ? patient.dialysis_order.device_number.number
- : patient.device_number.number
- }}
- </span>
- </span>
- <span v-if="$store.getters.user.template_info.org_id!=10340">
- {{
- patient.dialysis_order &&
- patient.dialysis_order.device_number &&
- patient.dialysis_order.device_number.number.length > 0
- ? patient.dialysis_order.device_number.number
- : patient.device_number.number
- }}
- </span>
- </li>
- <li>
- <span class="iconfont"></span>
- 透析模式 :
- <span v-if="patient.mode_id">{{
- $store.getters.treatment_mode[patient.mode_id].name
- }}</span>
- </li>
- </ul>
- </div>
- </div>
-
- <van-popup
- title="透析处方"
- v-model="showPopup2"
- class="appPopup"
- get-container="#app"
- :overlay="true"
- :close-on-click-overlay="false"
- >
- <prescription-dialog
- v-if="prescription_dialog_reset == true"
- :patient_prop="patient"
- :solution_prop="solution"
- :machines_prop="devices"
- :config="config"
- :prescription_prop="prescription"
- @finish="closePrescriptionDialog"
- :operators="operators"
- :types="goodTypes"
- :info="goodInfos"
- :status="status"
- :targetAdvices="longAdvices"
- :waitUploadAdvices="waitUploadAdvices"
- :is_open="is_open"
- @close="closePrescriptionDialog"
- @prescription="prescriptionFunc"
- :admin_users_prop="admin_users"
- :predialysis="predialysis_evaluation"
- :last_predialysis="last_predialysis_evaluation"
- :record="assessment_after_dislysis"
- :last_record="last_assessment_after_dislysis"
- :last_prescription="last_prescription"
- :dry_weight="dryWeight"
- :system_prescription="system_prescription"
- :schedual="schedual"
- :his_is_open="his_is_open"
- :prescription_open="prescription_open"
- :stockType="stockType"
- @longSolution="longSolutionFunc"
- :admin_map="admin_user_map"
- :admin_staff="admin_staff_map"
- :lastDialysisPrescription="lastDialysisPrescription"
- ref="prescription_dialog"
- ></prescription-dialog>
- </van-popup>
-
- <van-popup
- title="治疗小结"
- v-model="showPopup1"
- class="appPopup"
- get-container="#app"
- :overlay="true"
- :close-on-click-overlay="false"
- >
- <treatment-dialog
- :patient_prop="patient"
- :record="treatment_summary"
- @did_update="updateTreatmentOf"
- @close="closeTreatmentOf"
- ref="treatment_dialog"
- ></treatment-dialog>
- </van-popup>
-
- <van-popup
- title="透析上机"
- v-model="showPopup10"
- class="appPopup"
- get-container="#app"
- :overlay="true"
- :close-on-click-overlay="false"
- >
- <computer-dialog
- v-if="computer_dialog_reset == true"
- :schedule="schedual"
- :patient_prop="patient"
- :record="dialysis_order"
- :admins="admin_users"
- :device_numbers="device_numbers"
- :admin_map="admin_user_map"
- :admin_staff="admin_staff_map"
- :device_number_map="device_number_map"
- @did_add_monitor="didAddMonitor"
- @close="closeComputerOf"
- @open="closeOpen"
- :stockType="stockType"
- :last_order="lastOrder"
- :patient_index="patient_index"
- ref="computer_dialog"
- ></computer-dialog>
- </van-popup>
-
- <van-popup
- title="双人核对"
- v-model="showPopup11"
- class="appPopup"
- get-container="#app"
- :overlay="true"
- :close-on-click-overlay="false"
- >
- <dobule-dialog
- v-if="dobule_dialog_reset == true"
- :patient_prop="patient"
- :record="double_check"
- :admin_users_prop="admin_users"
- :admin_map="admin_user_map"
- @did_update="closeDoubleCheck"
- @close="closeDoubleCheck"
- :admins="admin_users"
- :predialysis="predialysis_evaluation"
- :prescription_prop="prescription"
- :dialysis_order="dialysis_order"
- ></dobule-dialog>
- </van-popup>
-
- <van-popup
- title="透析下机"
- v-model="showPopup12"
- :overlay="true"
- :close-on-click-overlay="false"
- v-if="dialysis_order_set == true"
- >
- <plane-dialog
- :patient_prop="patient"
- :record="dialysis_order"
- :last_monitor_record="last_monitor_record"
- :admins="admin_users"
- :admin_map="admin_user_map"
- :prescription_prop="prescription"
- @did_off="closeDialysisOffclose"
- @close="closeDialysisOffclose"
- :last_order="lastOrder"
- >
- </plane-dialog>
- </van-popup>
-
- <!-- 消毒弹窗 -->
- <van-popup
- v-if="$store.getters.user.template_info.org_id==9671"
- title="消毒时间"
- v-model="showPlan"
- class="appPopup"
- get-container="#app"
- :overlay="true"
- :close-on-click-overlay="false"
- >
- <div class="Dialog">
- <div class="DialogTit">
- <span @click="close()" class="iconfont"></span>
- <h1 class="name">消毒时间</h1>
- <span class="success" @click="commitInfo" v-show="showOne">保存</span>
- <span class="success" @click="updateInfo" v-show="showTwo">修改</span>
- </div>
- <div class="DialogContent">
- <div class="item">
- <h2 class="name">{{ bed_name }}</h2>
- <div class="content">
- <span class="text" style="width: 100px"></span>
- </div>
- </div>
-
- <div class="item">
- <h2 class="name">开始消毒时间</h2>
- <div class="content">
- <span
- class="text"
- style="width: 100px"
- @click="selectStartTimeAction"
- >{{ start_time_str }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
-
- <div class="item">
- <label class="name" for="dtl">消毒时长</label>
- <div class="content">
- <input
- type="number"
- @click="newClick($event)"
- @focus="inputFocus"
- id="dtl"
- v-model="disinfec_time"
- @change="inputBlur"
- />
- </div>
- </div>
-
-
- <div class="item">
- <h2 class="name">结束消毒时间</h2>
- <div class="content">
- <span
- class="text"
- style="width: 100px"
- @click="selectEndTimeAction"
- >{{ select_time_str }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
- </div>
-
- <mt-datetime-picker
- class="double_check_dialog"
- ref="start_time_picker"
- type="datetime"
- @confirm="didSelectStartTime"
- v-model="start_time"
- ></mt-datetime-picker>
-
- <mt-datetime-picker
- class="double_check_dialog"
- ref="select_time_picker"
- type="datetime"
- @confirm="didSelectEndTime"
- v-model="select_time"
- ></mt-datetime-picker>
-
- </div>
- </van-popup>
-
-
-
- <van-popup
- v-if="$store.getters.user.template_info.org_id!=9671"
- title="消毒时间"
- v-model="showPlan"
- class="appPopup"
- get-container="#app"
- :overlay="true"
- :close-on-click-overlay="false"
- >
- <div class="Dialog">
- <div class="DialogTit">
- <span @click="close()" class="iconfont"></span>
- <h1 class="name">消毒时间</h1>
- <span class="success" @click="commitInfoOne" v-show="showOne">保存</span>
- <span class="success" @click="updateInfoOne" v-show="showTwo">修改</span>
- </div>
- <div class="DialogContent">
- <div class="item">
- <h2 class="name">{{ bed_name }}</h2>
- <div class="content">
- <span class="text" style="width: 100px"></span>
- </div>
- </div>
-
- <div class="item">
- <h2 class="name">开始消毒时间</h2>
- <div class="content">
- <span
- class="text"
- style="width: 100px"
- @click="selectStartTimeAction"
- >{{ start_time_str }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
-
- <div class="item">
- <label class="name" for="dtl">消毒时长</label>
- <div class="content">
- <input
- type="number"
- @click="newClick($event)"
- @focus="inputFocus"
- id="dtl"
- v-model="disinfec_time"
- @change="inputBlur"
- />
- </div>
- </div>
-
-
- <div class="item">
- <h2 class="name">结束消毒时间</h2>
- <div class="content">
- <span
- class="text"
- style="width: 100px"
- @click="selectEndTimeAction"
- >{{ select_time_str }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
- <div class="item">
- <h2 class="name">机表(床单元、床旁桌)消毒方式:</h2>
- <div class="content" @click="showPicker = true">
- <span
- class="text"
- style="width: 100px"
- >{{ kuangvalue }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
- <div class="item">
- <h2 class="name">机表(床单元、床旁桌)消毒液:</h2>
- <div class="content" @click="showPicker2 = true">
- <span
- class="text"
- style="width: 100px"
- >{{ kuangvalue2 }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
- <div class="item">
- <h2 class="name">液路消毒方式:</h2>
- <div class="content" @click="showPicker3 = true">
- <span
- class="text"
- style="width: 100px"
- >{{ kuangvalue3 }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
- <div class="item">
- <h2 class="name">液路消毒液:</h2>
- <div class="content" @click="showPicker4 = true">
- <span
- class="text"
- style="width: 100px"
- >{{ kuangvalue4 }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
- <div class="item">
- <h2 class="name">床单位更换:</h2>
- <div class="content" @click="showPicker5 = true">
- <span
- class="text"
- style="width: 100px"
- >{{ kuangvalue5 }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
- <div class="item">
- <h2 class="name">透析机消毒液(更换):</h2>
- <div class="content" @click="showPicker6 = true">
- <span
- class="text"
- style="width: 100px"
- >{{ kuangvalue6 }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
-
- <div class="item">
- <h2 class="name">空气滤网清洁:</h2>
- <div class="content" @click="showPicker7 = true">
- <span
- class="text"
- style="width: 100px"
- >{{ kuangvalue7 }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
- <div class="item">
- <h2 class="name">细菌过滤器(更换):</h2>
- <div class="content" @click="showPicker8 = true">
- <span
- class="text"
- style="width: 100px"
- >{{ kuangvalue8 }}</span
- >
- <span class="iconfont"></span>
- </div>
- </div>
-
-
- </div>
-
- <mt-datetime-picker
- class="double_check_dialog"
- ref="start_time_picker"
- type="datetime"
- @confirm="didSelectStartTime"
- v-model="start_time"
- ></mt-datetime-picker>
-
- <mt-datetime-picker
- class="double_check_dialog"
- ref="select_time_picker"
- type="datetime"
- @confirm="didSelectEndTime"
- v-model="select_time"
- ></mt-datetime-picker>
-
- <!-- 选择框 -->
- <van-popup v-model:show="showPicker" round position="bottom">
- <van-picker
- show-toolbar
- :columns="disinfectType"
- placeholder="请选择"
- @cancel="showPicker=false"
- @confirm="onConfirm"
- />
- </van-popup>
- <van-popup v-model:show="showPicker2" round position="bottom">
- <van-picker
- show-toolbar
- :columns="disinfectantType"
- @cancel="showPicker2=false"
- @confirm="onConfirmOne"
- />
- </van-popup>
-
- <van-popup v-model:show="showPicker3" round position="bottom">
- <van-picker
- show-toolbar
- :columns="sterilizeType"
- @cancel="showPicker3=false"
- @confirm="onConfirmTwo"
- />
- </van-popup>
-
-
- <van-popup v-model:show="showPicker4" round position="bottom">
- <van-picker
- show-toolbar
- :columns="fluidPathType"
- @cancel="showPicker4=false"
- @confirm="onConfirmThree"
- />
- </van-popup>
-
- <van-popup v-model:show="showPicker5" round position="bottom">
- <van-picker
- show-toolbar
- :columns="bedType"
- @cancel="showPicker5=false"
- @confirm="onConfirmFour"
- />
- </van-popup>
-
- <van-popup v-model:show="showPicker6" round position="bottom">
- <van-picker
- show-toolbar
- :columns="listOne"
- @cancel="showPicker6=false"
- @confirm="onConfirmFive"
- />
- </van-popup>
-
- <van-popup v-model:show="showPicker7" round position="bottom">
- <van-picker
- show-toolbar
- :columns="listTwo"
- @cancel="showPicker7=false"
- @confirm="onConfirmSix"
- />
- </van-popup>
-
- <van-popup v-model:show="showPicker8" round position="bottom">
- <van-picker
- show-toolbar
- :columns="listThree"
- @cancel="showPicker8=false"
- @confirm="onConfirmSeven"
- />
- </van-popup>
- </div>
- </van-popup>
- </div>
- </template>
-
- <script>
- import { uParseTime, jsGetAge } from '@/utils/tools'
- import { parseTime } from '@/utils'
- import { showToast } from 'vant';
- import { setDialysisOrWaitSelectedConfig } from '@/utils/data_config'
- import TreatmentDialog from './dialog/TreatmentDialog'
- import PrescriptionDialog from './dialog/PrescriptionDialog'
- import ComputerDialog from './dialog/ComputerDialog.vue'
- import DobuleDialog from './dialog/DoubleDialog.vue'
- import PlaneDialog from './dialog/PlaneDialog.vue'
-
- import {
- CreateGroupAdvice,
- dialysisGlobalConfig,
- getDialysisRecord,
- getPatientId,
- getDialysisRecordOrde
- } from '@/api/dialysis'
- const moment = require('moment')
- import { getDisInfectionTime, SaveDisinfetionInfo,SaveDisinfetionInfoOne } from '@/api/manage'
- import { GetRemindLongAdviceOne } from '@/api/advice'
- import { Console, info } from 'console'
- export default {
- name: 'PatientBox',
- components: {
- TreatmentDialog,
- PrescriptionDialog,
- ComputerDialog,
- DobuleDialog,
- PlaneDialog
- },
- props: {
- patients: Array,
- newIndex: Number,
- is_run: Number,
- information: Array
- },
- data () {
- return {
- date: '',
- parent_id: '',
- showPopup1: false,
- showPopup2: false,
- showPopup3: false,
- showPopup10: false,
- showPopup11: false,
- showPopup12: false,
- config: {}, // 库存自动扣减
- operators: [], // 操作人
- patient: {}, // 患者信息
- schedual: {}, // 患者排班信息
- prescription: {}, // 透析处方
- solution: {}, // 透析方案
- last_prescription: {},
- system_prescription: {}, // 系统透析模版
- thoroug_dialog_reset: true,
- prescription_dialog_reset: true,
- computer_dialog_reset: true,
- dobule_dialog_reset: true,
- monit_dialog_reset: true,
- dialysis_order_set:true,
- showPicker:false,
- showPicker2:false,
- showPicker3:false,
- showPicker4:false,
- showPicker5:false,
- showPicker6:false,
- showPicker7:false,
- showPicker8:false,
- receiver_treatment_access: {}, // 接诊评估
- predialysis_evaluation: {}, // 透前评估
- last_predialysis_evaluation: {}, // 上次透前评估
- doctor_advices: [], // 临时医嘱
- advice_groups: [], // 对 doctor_advices 进行分组后的组列表,元素为 { group_no, start_time, advices:[advice object] }
- double_check: {}, // 双人核对
- assessment_after_dislysis: {}, // 透后评估
- last_assessment_after_dislysis: {}, // 上次透后评估
- lastDialysisPrescription:{},//上次透析处方,不按透析模式
- treatment_summary: {}, // 治疗小结
- monitor_records: [], // 透析监测
- special_premission: [],
- last_monitor_record: {
- id: 0,
- operate_time: new Date().getTime(),
- sodium_concentration: '',
- dialysate_temperature: ''
- }, // 上一次透析的监测记录
- dialysis_order: {}, // 透析记录
- admin_users: [], // 系统用户列表
- devices: [], // 设备
- device_numbers: [], // 床位号
- admin_user_map: {}, // {user_id: admin_user object}
- device_map: {}, // {device_id: device}
- device_number_map: {}, // {device_number_id: device_number}
- scrollTop: '',
- goTopShow: false,
- goodTypes: [],
- goodInfos: [],
- dryWeight: {},
-
- longAdvices: [],
- waitUploadAdvices: [],
- is_open: 0,
- prescription_open: 0,
- targetAdvices: [],
- status: '',
- patientid: 0,
- dialyzerPerfusionApparatus: [],
- // is_run: 0,
- showPlan: false,
- start_time_str: '',
- start_time: new Date(),
- select_time: new Date(),
- select_time_str: '',
- bed_name: '',
- bed_id: '',
- schedule_type: '',
- schedule_date: '',
- schedule_week: '',
- disinfec_time: '',
- end_time: '',
- zone_id: '',
- patient_id: '',
- mode_id: '',
- planStatus: 0,
- showOne: true,
- showTwo: false,
- end_time_one: '',
- his_is_open: 0,
- stockType: [],
- admin_staff_map: {},
- puncture_point_haematomas: [
- { id: 1, name: '有' },
- { id: 2, name: '无' }
- ],
- lastOrder: {},
- patient_index: 0,
- columns : [
- { text: '杭州', value: 'Hangzhou' },
- { text: '宁波', value: 'Ningbo' },
- { text: '温州', value: 'Wenzhou' },
- { text: '绍兴', value: 'Shaoxing' },
- { text: '湖州', value: 'Huzhou' },
- ],
- kuangvalue:'',
- kuangvalue2:'',
- kuangvalue3:"",
- kuangvalue4:"",
- kuangvalue5:"",
- kuangvalue6:"",
- kuangvalue7:"",
- kuangvalue8:"",
- // 机表消毒方式
- disinfectType: [
- { value: 0, text: "/" },
- { value: 1, text: "擦拭" },
- { value: 2, text: "化学消毒" }
- ],
- // 基表消毒液
- disinfectantType: [
- { value: 0, text: "/" },
- { value: 1, text: "0.22%季铵盐" },
- { value: 2, text: "500mg/l含氯消毒剂" },
- { value: 3, text: "1000mg/l含氯消毒剂" },
- { value: 4, text: "1500mg/l含氯消毒剂" },
- { value: 5, text:"消毒湿巾"},
- { value: 6, text:"1.85g/L季铵盐"},
- { value:7, text:"2000mg/l含氯消毒剂"}
- ],
- // 夜路消毒方式
- sterilizeType: [
- { value: 0, text: "/" },
- { value: 1, text: "热化学消毒" },
- { value: 2, text: "化学消毒 + 除钙" },
- { value: 3, text: "热化学消毒 + 除钙" },
- { value: 4, text: "热消毒" },
- { value: 5, text: "化学消毒" },
- { value: 6, text: "除钙" },
- { value: 7, text: "清洗" }
- ],
- // 夜路消毒液
- fluidPathType: [
- { value: 0, text: "/" },
- { value: 1, text: "20%柠檬酸" },
- { value: 2, text: "25%柠檬酸" },
- { value: 3, text: "50%柠檬酸" },
- { value: 4, text: "50%柠檬酸 + 5%次氯酸钠" },
- { value: 5, text: "20%柠檬酸 + 10%冰醋酸" },
- { value: 6, text: "0.2%过氧化乙酸" },
- { value: 7, text: "10%冰醋酸" },
- { value: 8, text: "50%冰醋酸" },
- { value: 9, text: "5%次氯酸钠" },
- { value: 10,text:"25%的柠檬酸+5%次氯酸钠"},
- { value: 11,text:"20%柠檬酸+5%次氯酸钠"}
- ],
- // 床单位更换
- bedType: [
- { value: 0, text: "/" },
- { value: 1, text: "床单" },
- { value: 2, text: "被套" },
- { value: 3, text: "枕套" },
-
- ],
-
- // 床单位更换
- listOne: [
- { value: 1, text: "更换" },
- { value:2,text:"未更换"},
- ],
- listTwo: [
- { value: 1, text: "清洁" },
- { value: 2, text:"未清洁"},
- ],
- listThree: [
- { value: 1, text: "更换" },
- { value: 2, text:"未更换"},
- ],
- timenow:0,
- last_befor:{},
- dryWeightList:[],
- first_monitor:{},
- last_monitor:{},
-
- }
- },
- methods: {
- getTimeOne (time) {
- return uParseTime(time, '{y}-{m}-{d}')
- },
- getTimeTwo (time) {
- return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
- },
- open1 (patient) {
- let date = patient.schedule_date
- let patient_id = patient.patient_id
- this.date = date
- this.patient_id = patient_id
- this.requestDialysisRecord(date, patient_id, 1)
- },
- open2 (patient) {
- let date = patient.schedule_date
- let patient_id = patient.patient_id
- this.date = date
- this.patient_id = patient_id
- this.requestDialysisRecord(date, patient_id, 2)
- this.requestLongAdvice()
- },
- open10 (patient, index) {
- console.log('patinet23323223', index)
- let date = patient.schedule_date
- let patient_id = patient.patient_id
- this.date = date
- this.patient_id = patient_id
- this.patient_index = index
- this.requestDialysisRecord(date, patient_id, 10)
- },
- open11 (patient) {
- let date = patient.schedule_date
- let patient_id = patient.patient_id
- this.date = date
- this.patient_id = patient_id
- this.requestDialysisRecord(date, patient_id, 11)
- },
- open12 (patient) {
- let date = patient.schedule_date
- let patient_id = patient.patient_id
- this.date = date
- this.patient_id = patient_id
- this.requestDialysisRecord(date, patient_id, 12)
- },
- requestDialysisRecord (date, patient_id, newType) {
- var dateStr = parseTime(date, '{y}-{m}-{d}')
- var params = {
- patient_id: patient_id,
- date: dateStr
- }
- this.advice_groups = []
- this.doctor_advices = []
-
- getDialysisRecord(params).then((rs) => {
- var resp = rs.data
-
- if (resp.state == 1) {
- var waitstoredata = this.$store.getters.waitscheduals
- this.stockType = resp.data.stockType
- var lastOrder = resp.data.lastOrder
- this.lastOrder = lastOrder
- var waitscheduals = waitstoredata.waitscheduals
-
- var storedata = this.$store.getters.scheduals
- var scheduals = storedata.scheduals
- var patient = resp.data.patient // 患者信息
-
- var schedual = resp.data.schedual // 患者排班信息
- var prescription = resp.data.prescription // 透析处方
-
- var solution = resp.data.solution // 透析方案
- var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
- var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
-
- var doctor_advices = resp.data.doctor_advices // 临时医嘱
- // console.log('临时医嘱33233333333333333333333', doctor_advices)
- var his_advices = resp.data.his_advices
-
- // console.log('his_doctor_advice32232332h2332232332323', his_advices)
- var last_prescription = resp.data.last_prescription
-
- var system_prescription = resp.data.system_prescription
-
- this.dryWeight = resp.data.dry_weight
-
- this.last_befor = resp.data.lastAssesmentBeforDialysis
-
- this.first_monitor = resp.data.firstMonitor
-
- this.last_monitor = resp.data.lastMonitor
-
- if (prescription == null || prescription.creater == 0) {
- this.isPullData = 1
- } else {
- this.isPullData = 2
- }
-
- this.goodInfos = resp.data.goodInfos
-
- if (doctor_advices != null) {
- for (let i = 0; i < doctor_advices.length; i++) {
- doctor_advices[i].origin = 1
- doctor_advices[i]['is_selected'] = 0
- }
- }
-
- var double_check = resp.data.double_check // 双人核对
- var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
- var treatment_summary = resp.data.treatment_summary // 治疗小结
- var monitor_records = resp.data.monitor_records // 透析监测
- var dialysis_order = resp.data.dialysis_order // 透析记录
- var operators = resp.data.operators // 操作人
-
- var config = resp.data.config // 库存自动扣减配置
- var types = resp.data.types // 所有系统库存商品类型
- var last_predialysis_evaluation = resp.data.last_predialysis_evaluation // 上一次透前评估
-
- var last_assessment_after_dislysis =
- resp.data.last_assessment_after_dislysis // 上一次透前评估
- var last_monitor_record = resp.data.last_monitor_record
- //上一次透析处方,不按透析模式
- var lastDialysisPrescription = resp.data.lastDialysisPrescription
- this.lastDialysisPrescription = lastDialysisPrescription
- if (Object.keys(waitstoredata).length > 0) {
- for (let index = 0; index < waitscheduals.length; index++) {
- if (waitscheduals[index].patient_id == patient.id) {
- waitscheduals[index].patient = patient
- waitscheduals[index].assessment_before_dislysis =
- predialysis_evaluation
- waitscheduals[index].prescription = prescription
- waitscheduals[index].doctor_advice = doctor_advices
- waitscheduals[index].dialysis_order = dialysis_order
- }
- }
- this.$store.dispatch('SetWaitScheduals', {
- waitscheduals: waitscheduals
- })
- }
-
- if (Object.keys(storedata).length > 0) {
- for (let index = 0; index < scheduals.length; index++) {
- if (scheduals[index].patient_id == patient.id) {
- scheduals[index].patient = patient
- scheduals[index].assessment_before_dislysis =
- predialysis_evaluation
- scheduals[index].prescription = prescription
- scheduals[index].doctor_advice = doctor_advices
- scheduals[index].dialysis_order = dialysis_order
- }
- }
- this.$store.dispatch('SetScheduals', { scheduals: scheduals })
- }
- this.system_prescription =
- system_prescription == null ? { id: '' } : system_prescription
-
- this.patient = patient
- this.schedual = schedual == null ? {} : schedual
- this.prescription = prescription == null ? { id: '' } : prescription
- this.solution = solution == null ? { id: '' } : solution
- this.last_prescription = last_prescription == null ? { id: '' } : last_prescription
- this.receiver_treatment_access =
- receiver_treatment_access == null
- ? { id: '' }
- : receiver_treatment_access
- this.predialysis_evaluation =
- predialysis_evaluation == null ? {} : predialysis_evaluation
- this.last_predialysis_evaluation =
- last_predialysis_evaluation == null
- ? {}
- : last_predialysis_evaluation
- this.doctor_advices = doctor_advices == null ? [] : doctor_advices
-
- this.config = config
- this.goodTypes = types
-
- if (this.doctor_advices.length > 0) {
- var group = this.newAdviceGroupObject()
- var initGroupBlock = function (group, advice) {
- group.group_no = advice.groupno
- }
- for (let index = 0; index < this.doctor_advices.length; index++) {
- const advice = this.doctor_advices[index]
- if (advice.groupno == 0) {
- // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
- if (advice.parent_id > 0) {
- if (this.advice_groups.length > 0) {
- var parent_group =
- this.advice_groups[this.advice_groups.length - 1]
- if (parent_group.advices.length > 0) {
- if (parent_group.advices[0].id == advice.parent_id) {
- parent_group.advices.push(advice)
- }
- }
- }
- continue
- } else {
- if (group.group_no > 0) {
- this.advice_groups.push(group)
- group = this.newAdviceGroupObject()
- }
-
- initGroupBlock(group, advice)
- group.advices.push(advice)
- this.advice_groups.push(group)
- group = this.newAdviceGroupObject()
- continue
- }
- }
-
- if (group.group_no > 0 && group.group_no != advice.groupno) {
- this.advice_groups.push(group)
- group = this.newAdviceGroupObject()
- }
- if (group.group_no == 0) {
- initGroupBlock(group, advice)
- }
- if (group.group_no == advice.groupno) {
- group.advices.push(advice)
- }
- }
- if (group.group_no > 0) {
- // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
- this.advice_groups.push(group)
- }
- }
-
- this.double_check = double_check == null ? { id: '' } : double_check
- this.assessment_after_dislysis =
- assessment_after_dislysis == null
- ? { id: '' }
- : assessment_after_dislysis
- this.last_assessment_after_dislysis =
- last_assessment_after_dislysis == null
- ? { id: '' }
- : last_assessment_after_dislysis
- this.treatment_summary =
- treatment_summary == null ? { id: '' } : treatment_summary
- this.monitor_records = monitor_records == null ? [] : monitor_records
- this.last_monitor_record =
- last_monitor_record == null
- ? this.last_monitor_record
- : last_monitor_record
- this.dialysis_order =
- dialysis_order == null ? { id: '' } : dialysis_order
- this.operators = operators
-
- // 强制刷新子组件
- this.thoroug_dialog_reset = false
- this.$nextTick(() => {
- this.thoroug_dialog_reset = true
- })
- this.prescription_dialog_reset = false
- this.$nextTick(() => {
- this.prescription_dialog_reset = true
- })
- this.monit_dialog_reset = false
- this.$nextTick(() => {
- this.monit_dialog_reset = true
- })
- this.computer_dialog_reset = false
- this.$nextTick(() => {
- this.computer_dialog_reset = true
- })
- this.dobule_dialog_reset = false
- this.$nextTick(() => {
- this.dobule_dialog_reset = true
- })
- this.dialysis_order_set = false
- this.$nextTick(() => {
- this.dialysis_order_set = true
- })
-
- this.title = patient.name
-
- dialysisGlobalConfig().then((rs) => {
- var res = rs.data
- if (res.state == 1) {
- this.admin_users = []
- this.admin_users = res.data.admin_users
-
- this.devices = res.data.devices
- this.device_numbers = res.data.device_numbers
-
- var device_map = {}
- for (let index = 0; index < this.devices.length; index++) {
- const device = this.devices[index]
- device_map[device.id] = device
- }
- this.device_map = device_map
-
- var admin_map = {}
- for (let index = 0; index < this.admin_users.length; index++) {
- const admin = this.admin_users[index]
- admin_map[admin.id] = admin
- }
- this.admin_user_map = admin_map
-
- var device_number_map = {}
- for (let index = 0; index < this.device_numbers.length; index++) {
- const device_number = this.device_numbers[index]
- device_number_map[device_number.id] = device_number
- }
- this.device_number_map = device_number_map
- }
-
- this.loading = false
- console.log('o2oo33o3o2o32', newType)
- if (newType == 1) {
- this.showPopup1 = true
- } else if (newType == 2) {
- this.showPopup2 = true
- } else if (newType == 10) {
- this.showPopup10 = true
- } else if (newType == 11) {
- this.showPopup11 = true
- } else if (newType == 12) {
- this.showPopup12 = true
- }
- })
- } else {
- this.$toast({
- message: resp.msg
- })
- this.loading = false
- }
- })
- },
- requestLongAdvice () {
- var dateStr = parseTime(this.date, '{y}-{m}-{d}')
- console.log('dateStr2323223322323', dateStr)
- var params = {
- id: this.patient_id,
- schedule_date: dateStr
- }
- GetRemindLongAdviceOne(params).then((rs) => {
- var resp = rs.data
- if (resp.state == 1) {
- var status = parseInt(resp.data.status)
- this.status = status
-
- switch (status) {
- case 2:
- var totalAdvice = resp.data.advices
-
-
- console.log("日期++++++++++++++",moment().weekday())
- console.log("totalADVICE---------------",totalAdvice)
-
- 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() == 7){
- total_day = "周日"
- }
- var longAdvicesTwo = resp.data.advices_two
-
- // console.log("longAdvicesTwo--------------------------",longAdvicesTwo)
-
- var waitUploadAdvices = []
- if (totalAdvice.length != 0) {
- for (let i = 0; i < totalAdvice.length; i++) {
- totalAdvice[i]['isCheck'] = 1
- }
-
- for (let i = 0; i < totalAdvice.length; i++) {
- for (let a = 0; a < longAdvicesTwo.length; a++) {
- if (totalAdvice[i].template_id ==longAdvicesTwo[a].template_id) {
- totalAdvice[i]['isCheck'] = 0
- }
-
- }
- }
-
-
- for (let i = 0; i < totalAdvice.length; i++) {
- if (totalAdvice[i].isCheck == 1) {
- waitUploadAdvices.push(totalAdvice[i])
- }
-
- }
-
-
- if(this.$store.getters.user.template_info.org_id == 10449 || this.$store.getters.user.template_info.org_id ==10013){
- for(let i = 0; i < totalAdvice.length; i++){
- if(totalAdvice[i].week_day.indexOf(total_day)!=-1){
- totalAdvice[i].isCheck = 1
- }
- }
- }
-
- }
-
- //医嘱提醒
- this.is_open = resp.data.is_open_remind
- // eslint-disable-next-line camelcase
- var his_is_open = resp.data.his_config_open
-
- // eslint-disable-next-line camelcase
- if (his_is_open === 1) {
- this.is_open = 0
- }
- // eslint-disable-next-line camelcase
- var is_advice_open = resp.data.is_advice_open
- // eslint-disable-next-line camelcase
- if (is_advice_open === 1) {
- this.is_open = 1
- }
-
- this.longAdvices = totalAdvice
- this.waitUploadAdvices = waitUploadAdvices
-
- // eslint-disable-next-line camelcase
- var prescription_open = resp.data.prescription_open
- // eslint-disable-next-line camelcase
- this.prescription_open = prescription_open
-
- break
- }
- } else {
- }
- })
- },
-
- updateTreatmentOf: function (val) {
- this.showPopup1 = false
- this.treatment_summary = val
- },
-
- closeTreatmentOf: function () {
- this.showPopup1 = false
- },
- closeComputerOf: function () {
- this.showPopup10 = false
- },
- newAdviceGroupObject: function () {
- return Object.assign(
- {},
- {
- group_no: 0,
- // advice_doctor: 0,
- // start_time: 0,
- advices: []
- // exec_staff: 0,
- // exec_time: 0,
- // checker: 0,
- }
- )
- },
- closePrescriptionDialog: function () {
- this.showPopup2 = false
- },
- prescriptionFunc: function (val, advices) {
- this.prescription = val
- this.newRequestDialysisRecord()
- },
- newRequestDialysisRecord () {
- console.log('处罚法2333232')
- var dateStr = parseTime(this.date, '{y}-{m}-{d}')
- var params = {
- patient_id: this.patient_id,
- date: dateStr
- }
- this.advice_groups = []
- this.doctor_advices = []
-
- getDialysisRecord(params).then((rs) => {
- var resp = rs.data
-
- if (resp.state == 1) {
- var waitstoredata = this.$store.getters.waitscheduals
-
- var waitscheduals = waitstoredata.waitscheduals
- var storedata = this.$store.getters.scheduals
- var scheduals = storedata.scheduals
-
- var patient = resp.data.patient // 患者信息
-
- var schedual = resp.data.schedual // 患者排班信息
- var lastOrder = resp.data.lastOrder
- // console.log('lastOrder2333232332wo', lastOrder)
- this.lastOrder = lastOrder
- var prescription = resp.data.prescription // 透析处方
-
- var solution = resp.data.solution // 透析方案
- var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
- var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
- console.log('我的中国', resp.data.predialysis_evaluation)
- var doctor_advices = resp.data.doctor_advices // 临时医嘱
- var last_prescription = resp.data.last_prescription
-
- var system_prescription = resp.data.system_prescription
-
- this.dryWeight = resp.data.dry_weight
-
- if (prescription == null || prescription.creater == 0) {
- this.isPullData = 1
- } else {
- this.isPullData = 2
- }
-
- this.goodInfos = resp.data.goodInfos
-
- if (doctor_advices != null) {
- for (let i = 0; i < doctor_advices.length; i++) {
- doctor_advices[i]['is_selected'] = 0
- }
- }
-
- var double_check = resp.data.double_check // 双人核对
- var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
- var treatment_summary = resp.data.treatment_summary // 治疗小结
- var monitor_records = resp.data.monitor_records // 透析监测
- var dialysis_order = resp.data.dialysis_order // 透析记录
- var operators = resp.data.operators // 操作人
-
- var special_premission = resp.data.special_premission // 特殊权限
-
- var config = resp.data.config // 库存自动扣减配置
-
- var types = resp.data.types // 所有系统库存商品类型
-
- var last_predialysis_evaluation =
- resp.data.last_predialysis_evaluation // 上一次透前评估
- var last_assessment_after_dislysis =
- resp.data.last_assessment_after_dislysis // 上一次透前评估
- var last_monitor_record = resp.data.last_monitor_record
-
- if (Object.keys(waitstoredata).length > 0) {
- for (let index = 0; index < waitscheduals.length; index++) {
- if (waitscheduals[index].patient_id == patient.id) {
- waitscheduals[index].patient = patient
- waitscheduals[index].assessment_before_dislysis =
- predialysis_evaluation
- waitscheduals[index].prescription = prescription
- waitscheduals[index].doctor_advice = doctor_advices
- waitscheduals[index].dialysis_order = dialysis_order
- }
- }
- this.$store.dispatch('SetWaitScheduals', {
- waitscheduals: waitscheduals
- })
- }
-
- if (Object.keys(storedata).length > 0) {
- for (let index = 0; index < scheduals.length; index++) {
- if (scheduals[index].patient_id == patient.id) {
- scheduals[index].patient = patient
- scheduals[index].assessment_before_dislysis =
- predialysis_evaluation
- scheduals[index].prescription = prescription
- scheduals[index].doctor_advice = doctor_advices
- scheduals[index].dialysis_order = dialysis_order
- }
- }
- this.$store.dispatch('SetScheduals', { scheduals: scheduals })
- }
-
- this.patient = patient
- this.schedual = schedual == null ? {} : schedual
- this.prescription =
- prescription == null ? { id: '' } : prescription
-
- this.solution = solution == null ? { id: '' } : solution
- this.last_prescription =
- last_prescription == null ? { id: '' } : last_prescription
-
- this.system_prescription =
- system_prescription == null ? { id: '' } : system_prescription
-
- this.receiver_treatment_access =
- receiver_treatment_access == null
- ? { id: '' }
- : receiver_treatment_access
- this.predialysis_evaluation =
- predialysis_evaluation == null ? {} : predialysis_evaluation
- this.last_predialysis_evaluation =
- last_predialysis_evaluation == null
- ? {}
- : last_predialysis_evaluation
-
- this.doctor_advices = doctor_advices == null ? [] : doctor_advices
- this.special_premission = special_premission
- this.config = config
- this.goodTypes = types
-
- if (this.doctor_advices.length > 0) {
- var group = this.newAdviceGroupObject()
- var initGroupBlock = function (group, advice) {
- group.group_no = advice.groupno
- }
- for (let index = 0; index < this.doctor_advices.length; index++) {
- const advice = this.doctor_advices[index]
- if (advice.groupno == 0) {
- // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
- if (advice.parent_id > 0) {
- if (this.advice_groups.length > 0) {
- var parent_group =
- this.advice_groups[this.advice_groups.length - 1]
- if (parent_group.advices.length > 0) {
- if (parent_group.advices[0].id == advice.parent_id) {
- parent_group.advices.push(advice)
- }
- }
- }
- continue
- } else {
- if (group.group_no > 0) {
- this.advice_groups.push(group)
- group = this.newAdviceGroupObject()
- }
-
- initGroupBlock(group, advice)
- group.advices.push(advice)
- this.advice_groups.push(group)
- group = this.newAdviceGroupObject()
- continue
- }
- }
-
- if (group.group_no > 0 && group.group_no != advice.groupno) {
- this.advice_groups.push(group)
- group = this.newAdviceGroupObject()
- }
- if (group.group_no == 0) {
- initGroupBlock(group, advice)
- }
- if (group.group_no == advice.groupno) {
- group.advices.push(advice)
- }
- }
- if (group.group_no > 0) {
- // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
- this.advice_groups.push(group)
- }
-
- // console.log(this.advice_groups)
- }
-
- this.double_check =
- double_check == null ? { id: '' } : double_check
- this.assessment_after_dislysis =
- assessment_after_dislysis == null
- ? { id: '' }
- : assessment_after_dislysis
- this.last_assessment_after_dislysis =
- last_assessment_after_dislysis == null
- ? { id: '' }
- : last_assessment_after_dislysis
- this.treatment_summary =
- treatment_summary == null ? { id: '' } : treatment_summary
- this.monitor_records =
- monitor_records == null ? [] : monitor_records
- this.last_monitor_record =
- last_monitor_record == null
- ? this.last_monitor_record
- : last_monitor_record
- this.dialysis_order =
- dialysis_order == null ? { id: '' } : dialysis_order
- this.operators = operators
-
- this.dryWeightList = resp.data.dryWeightList
- this.title = patient.name
- // 强制刷新子组件
-
- this.thoroug_dialog_reset = false
- this.$nextTick(() => {
- this.thoroug_dialog_reset = true
- })
- this.prescription_dialog_reset = false
- this.$nextTick(() => {
- this.prescription_dialog_reset = true
- })
- this.monit_dialog_reset = false
- this.$nextTick(() => {
- this.monit_dialog_reset = true
- })
- } else {
- this.$toast({
- message: resp.msg
- })
- this.loading = false
- }
- })
- .catch((error) => {
- this.loading = false
- console.log('error', error)
- this.$toast({
- message: '请求超时'
- })
- })
- },
- longSolutionFunc: function (val) {
- this.solution = val
- },
- //
- getUnReadNum: function (schedual) {
- // console.log('schedual23233232', schedual)
- if (schedual.doctor_advice != null) {
- // his
- if (schedual.doctor_advice.length == 0) {
- let doctorAdvice = []
- if (schedual.his_doctor_advice != null) {
- for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
- if (schedual.his_doctor_advice[i].execution_state == 2) {
- doctorAdvice.push(schedual.his_doctor_advice[i])
- }
- }
- }
-
- let project = []
- if (schedual.project && schedual.project.length > 0) {
- if (schedual.project != null) {
- for (let i = 0; i < schedual.project.length; i++) {
- if (schedual.project[i].execution_state == 2) {
- project.push(schedual.project[i])
- }
- }
- }
- }
-
- return doctorAdvice.length + project.length
- } else {
- // 血透
- if (schedual.doctor_advice != null) {
- if (
- schedual.doctor_advice[0] &&
- schedual.doctor_advice[0].origin &&
- schedual.doctor_advice[0].origin == 2
- ) {
- console.log('锦鲤2333233333')
- let doctorAdvice = []
- let adviceList = []
- if (
- schedual.his_doctor_advice &&
- schedual.his_doctor_advice != null
- ) {
- for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
- if (
- schedual.his_doctor_advice[i].execution_state == 2 &&
- schedual.his_doctor_advice[i] &&
- schedual.his_doctor_advice[i].parent_id == 0
- ) {
- adviceList.push(schedual.his_doctor_advice[i])
- }
- }
- }
-
- let project = []
- if (schedual.project && schedual.project.length > 0) {
- if (schedual.project != null) {
- for (let i = 0; i < schedual.project.length; i++) {
- if (schedual.project[i].execution_state == 2) {
- project.push(schedual.project[i])
- }
- }
- }
- }
- for (let i = 0; i < schedual.doctor_advice.length; i++) {
- if (
- schedual.doctor_advice[i].execution_state == 2 &&
- schedual.doctor_advice[i] &&
- schedual.doctor_advice[i].parent_id == 0
- ) {
- doctorAdvice.push(schedual.doctor_advice[i])
- }
- }
-
- return doctorAdvice.length + adviceList.length + project.length
- } else {
- let doctorAdvice = []
- let adviceList = []
- let project = []
- if (schedual.project && schedual.project.length > 0) {
- if (schedual.project != null) {
- for (let i = 0; i < schedual.project.length; i++) {
- if (schedual.project[i].execution_state == 2) {
- project.push(schedual.project[i])
- }
- }
- }
- }
-
- if (schedual && schedual.his_doctor_advice != null) {
- for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
- if (
- schedual.his_doctor_advice[i].execution_state == 2 &&
- schedual.his_doctor_advice[i]
- ) {
- adviceList.push(schedual.his_doctor_advice[i])
- }
- }
- }
-
- for (let i = 0; i < schedual.doctor_advice.length; i++) {
- if (
- schedual.doctor_advice[i].execution_state == 2 &&
- schedual.doctor_advice[i] &&
- schedual.doctor_advice[i].parent_id == 0
- ) {
- doctorAdvice.push(schedual.doctor_advice[i])
- }
- }
- // console.log('不锦鲤', doctorAdvice.length, '血透', adviceList.length)
- return doctorAdvice.length + adviceList.length + project.length
- }
- }
- }
- }
- },
- getStatus: function (schedual) {
- var isShowDot = false
-
- if(this.$store.getters.user.template_info.org_id!=10697){
- if (
- schedual.his_doctor_advice &&
- schedual.his_doctor_advice.length != 0
- ) {
- for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
- if (schedual.his_doctor_advice[i].execution_state == 2) {
- isShowDot = true
- }
- }
- return isShowDot
- }
- }
-
- if (schedual.doctor_advice && schedual.doctor_advice.length != 0) {
- if (schedual.doctor_advice && schedual.doctor_advice.length > 0) {
- if (schedual.doctor_advice != null) {
- for (let i = 0; i < schedual.doctor_advice.length; i++) {
- if (schedual.doctor_advice[i].execution_state == 2) {
- isShowDot = true
- }
- }
- return isShowDot
- }
- } else if (
- schedual.doctor_advice.length == 0 &&
- schedual.his_doctor_advice &&
- schedual.his_doctor_advice.length != 0
- ) {
- if (schedual.his_doctor_advice != null) {
- for (let i = 0; i < schedual.his_doctor_advice.length; i++) {
- if (schedual.his_doctor_advice[i].execution_state == 2) {
- isShowDot = true
- }
- }
- return isShowDot
- }
- } else {
- return false
- }
- }
- },
- stateColor: function (schedual) {
- var state = this.computeState(schedual)
- if (state == 1) {
- return 'blue'
- } else if (state == 2) {
- return 'gray'
- } else if (state == 3) {
- return 'red'
- } else if (state == 5) {
- return 'green1'
- } else if (state == 6) {
- return 'green2'
- } else {
- return 'blue'
- }
- },
- functionColor: function (schedual) {
- var state = this.computeState(schedual)
- if (state == 1 || state == 3) {
- return 'blue'
- } else if (state == 2) {
- return 'gray'
- } else {
- return 'blue'
- }
- },
- borderColor: function (schedual) {
- var yc = this.isAbnormal(schedual)
- if (yc == true) {
- return 'red'
- } else {
- return 'gray'
- }
- },
- stateText: function (schedual) {
- var state = this.computeState(schedual)
- if (state == 1) {
- return '已上机'
- } else if (state == 2) {
- return '已下机'
- } else if (state == 3) {
- return '监测中'
- } else if (state == 5) {
- return '待称重'
- } else if (state == 4) {
- // return schedual.patient.gender == 1 ? "男" : "女"
- return '未上机'
- }
- // else if (state == 6) {
- // return '待开处方'
- // }
- },
- computeState: function (schedual) {
- if (
- schedual.assessment_before_dislysis == null ||
- schedual.assessment_before_dislysis.weight_before == 0
- ) {
- // 未签到称重
- return 5
- }
- // if (schedual.prescription == null || schedual.prescription.creater == 0) {
- // // 未确认处方
- // return 6
- // }
-
- if (schedual.dialysis_order == null) {
- // 未上机
- return 4
- } else if (schedual.dialysis_order.stage == 2) {
- // 已下机
- return 2
- } else if (
- schedual.dialysis_order.stage == 1 &&
- schedual.monitoring_records != null &&
- schedual.monitoring_records.length > 1
- ) {
- // 监测中
- return 3
- } else {
- return 1
- }
- },
-
- orderState: function (schedual) {
- if (schedual.dialysis_order == null) {
- // 未上机
- return 4
- } else if (schedual.dialysis_order.stage == 2) {
- // 已下机
- return 2
- } else if (
- schedual.dialysis_order.stage == 1 &&
- schedual.monitoring_records != null &&
- schedual.monitoring_records.length > 1
- ) {
- // 监测中
- return 3
- } else {
- return 1
- }
- },
- isAbnormal: function (schedual) {
- return false // schedual.yc;
- },
- timeTypeText: function (schedual) {
- if (schedual.schedule_type == 1) {
- return '上午'
- } else if (schedual.schedule_type == 2) {
- return '下午'
- } else {
- return '晚上'
- }
- },
- genderText: function (schedual) {
- if (schedual.patient.gender == 0) {
- return '未知'
- } else if (schedual.patient.gender == 1) {
- return '男'
- } else {
- return '女'
- }
- },
-
- age (schedual) {
- var thisLen = schedual.patient.id_card_no.length
- var birth = ''
- if (thisLen == 15) {
- birth = '19' + schedual.patient.id_card_no.substr(6, 6)
- } else {
- birth = schedual.patient.id_card_no.substr(6, 8)
- }
- birth =
- birth.substr(0, 4) +
- '-' +
- birth.substr(4, 2) +
- '-' +
- birth.substr(6, 2)
- return jsGetAge(birth, '-')
- },
- groupBy (array, f) {
- const groups = {}
- array.forEach(function (o) {
- const group = JSON.stringify(f(o))
- groups[group] = groups[group] || []
- groups[group].push(o)
- })
- return Object.keys(groups).map(function (group) {
- return groups[group]
- })
- },
- detailAction: function (schedual) {
- if (schedual.dialysis_order != null) {
- setDialysisOrWaitSelectedConfig(1)
- } else {
- setDialysisOrWaitSelectedConfig(0)
- }
- var patient_id = schedual.patient_id
- var date = schedual.schedule_date
- this.$router.push({
- path: '/details',
- query: {
- patient_id: patient_id,
- date: date,
- patient_name: schedual.patient.name
- }
- })
- },
- toDisInfect (schedual) {
- this.bed_name =
- schedual.device_number.zone.name +
- '-' +
- schedual.device_number.number +
- '号机'
- this.bed_id = schedual.bed_id
- this.schedule_date = schedual.schedule_date
- this.schedule_type = schedual.schedule_type
- this.schedule_week = schedual.schedule_week
- this.zone_id = schedual.device_number.zone.id
- this.patient_id = schedual.patient_id
- this.mode_id = schedual.mode_id
- if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10318 || this.$store.getters.user.template_info.org_id == 10721) {
- console.log('下机时间', schedual.dialysis_order.end_time)
- if (schedual && schedual.dialysis_order != null) {
- this.start_time_str = this.getTimeTwo(schedual.dialysis_order.end_time)
- console.log('start_time_str', this.start_time_str)
- }
- }
-
- var params = {
- patient_id: schedual.patient_id,
- schedule_date: schedual.schedule_date
- }
- console.log('params23232323', params)
- if (this.$store.getters.user.template_info.org_id == 9671 || this.$store.getters.user.template_info.org_id == 9675 || this.$store.getters.user.template_info.org_id == 10340 || this.$store.getters.user.template_info.org_id == 9829 || this.$store.getters.user.template_info.org_id == 10490 || this.$store.getters.user.template_info.org_id == 10101 || this.$store.getters.user.template_info.org_id == 10318 || this.$store.getters.user.template_info.org_id == 10721) {
- getDialysisRecordOrde(params).then((response) => {
- if (response.data.state == 1) {
- var order = response.data.data.order
- console.log('order', order)
- if(this.$store.getters.user.template_info.org_id == 10101){
- var end_order_time = 0
- if(order.end_time >0){
-
- end_order_time = parseInt(order.end_time) + 300
- }
- console.log(order.end_time)
- console.log("end_order_time",end_order_time)
- this.start_time_str = this.getTimeTwo(end_order_time)
- console.log("开始时间",this.start_time_str)
- }else{
- this.start_time_str = this.getTimeTwo(order.end_time)
- }
-
- this.getDisInfectionTime()
- this.showPlan = true
- }
- })
- } else {
- this.getDisInfectionTime()
- this.showPlan = true
- }
- },
- close () {
- this.showPlan = false
- },
- commitInfo () {
-
-
- const params = {
- bed_id: this.bed_id,
- start_time: this.start_time_str,
- disinfec_time: this.disinfec_time,
- end_time: this.select_time_str,
- schedule_date: this.schedule_date,
- zone_id: this.zone_id,
- patient_id: this.patient_id,
- mode_id: this.mode_id,
- schedule_type: this.schedule_type,
-
- }
- console.log("newoowowo",params)
-
- if (this.disinfec_time == '') {
- this.$toast('消毒时长不能为空!')
- return false
- }
- if (this.planStatus == 1) {
- this.$toast('该设备无消毒计划,保存失败!')
- return false
- }
- console.log('params', params)
-
- SaveDisinfetionInfo(params).then((response) => {
- if (response.data.state == 1) {
- var information = response.data.data.information
-
- this.$toast('保存成功')
- this.showPlan = false
- var msstatus = response.data.data.msstatus
- // console.log('inforstate', msstatus)
- this.$parent.getDeviceInformation()
- if (msstatus == 2) {
- this.showPlan = false
- this.$toast('保存失败,该设备无消毒计划')
- }
- } else {
- this.showPlan = false
- this.$toast('保存失败')
- }
- })
- },
- commitInfoOne () {
-
- var way = 0
- for(let i=0;i<this.disinfectType.length;i++){
- if(this.kuangvalue == this.disinfectType[i].text){
- way = this.disinfectType[i].value
- }
- }
-
- var machine_disinfectant =0
- for(let i=0;i<this.disinfectantType.length;i++){
- if(this.kuangvalue2 == this.disinfectantType[i].text){
- machine_disinfectant = this.disinfectantType[i].value
- }
- }
-
- var disinfectant_way = 0
- for(let i=0;i<this.sterilizeType.length;i++){
- if(this.kuangvalue3 == this.sterilizeType[i].text){
- disinfectant_way = this.sterilizeType[i].value
- }
- }
-
- var disinfectant=0
- for(let i=0;i<this.fluidPathType.length;i++){
- if(this.kuangvalue4 == this.fluidPathType[i].text){
- disinfectant = this.fluidPathType[i].value
- }
- }
-
- console.log("bedType",this.bedType)
- var bed_way =0
- for(let i=0;i<this.bedType.length;i++){
- if(this.kuangvalue5 == this.bedType[i].text){
- bed_way = this.bedType[i].value
- }
- }
-
- var dialysis_checked =0
-
- if(this.kuangvalue6 == "更换"){
- dialysis_checked = 1
- }
- if(this.kuangvalue6 == "未更换"){
- dialysis_checked = 0
- }
-
- var clean =0
-
- if(this.kuangvalue7 == "清洁"){
- clean = 1
- }
- if(this.kuangvalue7 == "未清洁"){
- clean = 0
- }
-
- var germ_checked =0
- if(this.kuangvalue8 == "更换"){
- germ_checked =1
- }
- if(this.kuangvalue8 == "未更换"){
- germ_checked =0
- }
- console.log("kuangvalue",this.kuangvalue5)
-
- const params = {
- bed_id: this.bed_id,
- start_time: this.start_time_str,
- disinfec_time: this.disinfec_time,
- end_time: this.select_time_str,
- schedule_date: this.schedule_date,
- zone_id: this.zone_id,
- patient_id: this.patient_id,
- mode_id: this.mode_id,
- schedule_type: this.schedule_type,
- way:way,
- machine_disinfectant:machine_disinfectant,
- disinfectant_way:disinfectant_way,
- disinfectant:disinfectant,
- bed_way:bed_way,
- dialysis_checked:dialysis_checked,
- clean:clean,
- germ_checked:germ_checked,
- }
-
- if (this.disinfec_time == '') {
- this.$toast('消毒时长不能为空!')
- return false
- }
- if (this.planStatus == 1) {
- this.$toast('该设备无消毒计划,保存失败!')
- return false
- }
- console.log('params', params)
-
- SaveDisinfetionInfoOne(params).then((response) => {
- if (response.data.state == 1) {
- var information = response.data.data.information
-
- this.$toast('保存成功')
- this.showPlan = false
- var msstatus = response.data.data.msstatus
- // console.log('inforstate', msstatus)
- this.$parent.getDeviceInformation()
- if (msstatus == 2) {
- this.showPlan = false
- this.$toast('保存失败,该设备无消毒计划')
- }
- } else {
- this.showPlan = false
- this.$toast('保存失败')
- }
- })
- },
- updateInfo () {
- var u = navigator.userAgent
- var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 // android终端
- var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios终端
- const params = {
- bed_id: this.bed_id,
- start_time: this.start_time_str,
- disinfec_time: this.disinfec_time,
- end_time: this.select_time_str,
- schedule_date: this.schedule_date,
- zone_id: this.zone_id,
- patient_id: this.patient_id,
- mode_id: this.mode_id,
- schedule_type: this.schedule_type
- }
- if (this.disinfec_time == '') {
- this.$toast('消毒时长不能为空!')
- return false
- }
- // console.log("params",params)
- SaveDisinfetionInfo(params).then((response) => {
- if (response.data.state == 1) {
- var information = response.data.data.information
-
- this.$toast('修改成功')
- this.showPlan = false
- } else {
- this.showPlan = false
- this.$toast('修改失败')
- }
- })
- },
- updateInfoOne () {
- var u = navigator.userAgent
- var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 // android终端
- var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios终端
-
- var way = 0
- for(let i=0;i<this.disinfectType.length;i++){
- if(this.kuangvalue == this.disinfectType[i].text){
- way = this.disinfectType[i].value
- }
- }
-
- var machine_disinfectant =0
- for(let i=0;i<this.disinfectantType.length;i++){
- if(this.kuangvalue2 == this.disinfectantType[i].text){
- machine_disinfectant = this.disinfectantType[i].value
- }
- }
-
- var disinfectant_way = 0
- for(let i=0;i<this.sterilizeType.length;i++){
- if(this.kuangvalue3 == this.sterilizeType[i].text){
- disinfectant_way = this.sterilizeType[i].value
- }
- }
-
- var disinfectant=0
- for(let i=0;i<this.fluidPathType.length;i++){
- if(this.kuangvalue4 == this.fluidPathType[i].text){
- disinfectant = this.fluidPathType[i].value
- }
- }
-
- console.log("bedType",this.bedType)
- var bed_way =0
- for(let i=0;i<this.bedType.length;i++){
- if(this.kuangvalue5 == this.bedType[i].text){
- bed_way = this.bedType[i].value
- }
- }
-
- var dialysis_checked =0
-
- if(this.kuangvalue6 == "更换"){
- dialysis_checked = 1
- }
- if(this.kuangvalue6 == "未更换"){
- dialysis_checked = 0
- }
-
- var clean =0
-
- if(this.kuangvalue7 == "清洁"){
- clean = 1
- }
- if(this.kuangvalue7 == "未清洁"){
- clean = 0
- }
-
- var germ_checked =0
- if(this.kuangvalue8 == "更换"){
- germ_checked =1
- }
- if(this.kuangvalue8 == "未更换"){
- germ_checked =0
- }
- console.log("kuangvalue",this.kuangvalue5)
- const params = {
- bed_id: this.bed_id,
- start_time: this.start_time_str,
- disinfec_time: this.disinfec_time,
- end_time: this.select_time_str,
- schedule_date: this.schedule_date,
- zone_id: this.zone_id,
- patient_id: this.patient_id,
- mode_id: this.mode_id,
- schedule_type: this.schedule_type,
- way:way,
- machine_disinfectant:machine_disinfectant,
- disinfectant_way:disinfectant_way,
- disinfectant:disinfectant,
- bed_way:bed_way,
- dialysis_checked:dialysis_checked,
- clean:clean,
- germ_checked:germ_checked,
- }
- if (this.disinfec_time == '') {
- this.$toast('消毒时长不能为空!')
- return false
- }
- // console.log("params",params)
- SaveDisinfetionInfoOne(params).then((response) => {
- if (response.data.state == 1) {
- var information = response.data.data.information
-
- this.$toast('修改成功')
- this.showPlan = false
- } else {
- this.showPlan = false
- this.$toast('修改失败')
- }
- })
- },
- selectStartTimeAction: function () {
- this.$refs.start_time_picker.open()
- },
- selectEndTimeAction () {
- this.$refs.select_time_picker.open()
- },
- didSelectStartTime: function (time) {
- var u = navigator.userAgent
- var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1 // android终端
- var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios终端
-
- if (isAndroid == true) {
- this.start_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- let oldTime = this.start_time_str
- var time = new Date(oldTime.replace('-', '/'))
-
- var b = parseInt(this.disinfec_time) // 分钟数
- time.setMinutes(time.getMinutes() + b)
- this.end_time = ''
-
- this.end_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- this.end_time_one = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- }
- if (isiOS == true) {
- this.start_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
-
- let oldTime = this.start_time_str
- var time = new Date(oldTime.replace('-', '-'))
-
- var b = parseInt(this.disinfec_time) // 分钟数
- time.setMinutes(time.getMinutes() + b)
- this.end_time = ''
- this.end_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- this.end_time_one = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- }
- },
-
- didSelectEndTime (time) {
- this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- },
-
- getDisInfectionTime () {
- const params = {
- bed_id: this.bed_id,
- schedule_type: this.schedule_type,
- schedule_week: this.schedule_week,
- schedule_date: this.schedule_date
- }
- getDisInfectionTime(params).then((response) => {
- if (response.data.state == 1) {
- var plan = response.data.data.plan
-
- this.disinfec_time = plan
-
- var planObj = response.data.data.planObj
-
- console.log("plaobj",planObj)
- // 机表(床单元、床旁桌)消毒方式
- if(planObj!="" && planObj!=undefined){
- var way = ""
- for(let i=0;i<this.disinfectType.length;i++){
- if(planObj.way == this.disinfectType[i].value){
- way = this.disinfectType[i].text
- }
- }
- this.kuangvalue =way
-
-
- //机表(床单元、床旁桌)消毒液
- var machine_disinfectant = ""
- for(let i=0;i<this.disinfectantType.length;i++){
- if(planObj.machine_disinfectant == this.disinfectantType[i].value){
- machine_disinfectant = this.disinfectantType[i].text
- }
- }
- console.log("machine_disinfectant",machine_disinfectant)
- this.kuangvalue2 = machine_disinfectant
-
-
- // 夜路消毒方式
- var disinfectant_way = ""
- for(let i=0;i<this.sterilizeType.length;i++){
- if(planObj.disinfectan_way == this.sterilizeType[i].value){
- disinfectant_way = this.sterilizeType[i].text
- }
- }
- console.log("machine_disinfectant",disinfectant_way)
- this.kuangvalue3 = disinfectant_way
-
- //液路消毒液
- var disinfectant=""
- for(let i=0;i<this.fluidPathType.length;i++){
- if(planObj.disinfectant == this.fluidPathType[i].value){
- disinfectant = this.fluidPathType[i].text
- }
- }
- console.log("machine_disinfectant",disinfectant)
- this.kuangvalue4 = disinfectant
-
- // 床单位更换
- var bed_type = ""
- for(let i=0;i<this.bedType.length;i++){
- if(planObj.bed_way == this.bedType[i].value){
- bed_type = this.bedType[i].text
- }
- }
- console.log("machine_disinfectant",bed_type)
- this.kuangvalue5 =bed_type
-
- }
- var total = 60 * parseInt(this.disinfec_time) + new Date(this.start_time_str).valueOf() / 1000
- console.log('total', total)
- this.select_time_str = this.getTimeTwo(total)
- this.select_time = this.getTimeTwo(total)
-
- if (plan == '') {
- this.end_time = ''
- this.select_time = ''
- this.select_time_str = ''
- }
-
- var infomation = response.data.data.infomation
-
- if (infomation != undefined) {
- this.showOne = false
- this.showTwo = true
- if (
- infomation.disinfec_startime == 0 ||
- infomation.disinfec_startime == ''
- ) {
- infomation.disinfec_startime = ''
- }
- if (
- infomation.disinfec_endtime == 0 ||
- infomation.disinfec_endtime == ''
- ) {
- infomation.disinfec_endtime = ''
- }
- this.start_time_str = parseTime(
- infomation.disinfec_startime,
- '{y}-{m}-{d} {h}:{i}'
- )
- this.end_time = parseTime(
- infomation.disinfec_endtime,
- '{y}-{m}-{d} {h}:{i}'
- )
- this.select_time = parseTime(
- infomation.disinfec_endtime,
- '{y}-{m}-{d} {h}:{i}'
- )
- this.select_time_str = parseTime(
- infomation.disinfec_endtime,
- '{y}-{m}-{d} {h}:{i}'
- )
- this.disinfec_time = infomation.long_time
-
-
- if(infomation!="" && infomation!=undefined){
- var way = ""
- for(let i=0;i<this.disinfectType.length;i++){
- if(infomation.disinfect_type == this.disinfectType[i].value){
- way = this.disinfectType[i].text
- }
- }
- this.kuangvalue =way
-
-
- //机表(床单元、床旁桌)消毒液
- var machine_disinfectant = ""
- for(let i=0;i<this.disinfectantType.length;i++){
- if(infomation.disinfectant_type == this.disinfectantType[i].value){
- machine_disinfectant = this.disinfectantType[i].text
- }
- }
-
- this.kuangvalue2 = machine_disinfectant
-
-
- // 夜路消毒方式
- var disinfectant_way = ""
- for(let i=0;i<this.sterilizeType.length;i++){
- if(infomation.fluid_path == this.sterilizeType[i].value){
- disinfectant_way = this.sterilizeType[i].text
- }
- }
- console.log("machine_disinfectant",disinfectant_way)
- this.kuangvalue3 = disinfectant_way
-
- //液路消毒液
- var disinfectant=""
- for(let i=0;i<this.fluidPathType.length;i++){
- if(infomation.disinfectant == this.fluidPathType[i].value){
- disinfectant = this.fluidPathType[i].text
- }
- }
- console.log("machine_disinfectant",disinfectant)
- this.kuangvalue4 = disinfectant
-
- // 床单位更换
- var bed_type = ""
- for(let i=0;i<this.bedType.length;i++){
- if(infomation.bed_way == this.bedType[i].value){
- bed_type = this.bedType[i].text
- }
- }
- console.log("machine_disinfectant",bed_type)
- this.kuangvalue5 =bed_type
-
-
- if(infomation.dialysis_checked == 1){
- this.kuangvalue6 = "更换"
- }
-
- if(infomation.dialysis_checked == 2){
- this.kuangvalue6 = "未更换"
- }
-
- if(infomation.germ_checked == 1){
- this.kuangvalue8 = "更换"
- }
-
- if(infomation.germ_checked == 2){
- this.kuangvalue8 = "未更换"
- }
-
- if(infomation.clean == 1){
- this.kuangvalue7 = "清洁"
- }
-
- if(infomation.clean == 2){
- this.kuangvalue7 = "未清洁"
- }
-
- }
- }
- } else {
- this.planStatus = 1
- this.$toast('该设备没有消毒计划')
- }
- })
- },
-
- inputFocus: function (event) {
- var input = event.target
- setTimeout(function () {
- input.scrollIntoView()
- }, 0)
-
- if (input.setSelectionRange) {
- setTimeout(function () {
- input.setSelectionRange(0, input.value.length)
- }, 0)
- } else if (input.createTextRange) {
- var rng = input.createTextRange()
- rng.move('character', input.value.length)
- rng.select()
- }
- },
- newClick (event) {
- event.currentTarget.select()
- },
- inputBlur () {
- var total = 60 * parseInt(this.disinfec_time) + new Date(this.start_time_str).valueOf() / 1000
- console.log('total', total)
- this.select_time_str = this.getTimeTwo(total)
- this.select_time = this.getTimeTwo(total)
-
- // let oldTime = this.start_time_str
- // var time = new Date(oldTime.replace('-', '/'))
- // var b = parseInt(this.disinfec_time) // 分钟数
- // time.setMinutes(time.getMinutes() + b)
-
- // this.end_time = ''
- // this.end_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- // this.end_time_one = ''
- // this.end_time_one = parseTime(time, '{y}-{m}-{d} {h}:{i}')
-
- // this.select_time = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- // console.log('select_time23323233223', this.select_time)
- // this.select_time_str = parseTime(time, '{y}-{m}-{d} {h}:{i}')
- // console.log('select_time_str', this.select_time_str)
- },
- modeColor (id) {
- if (id == 1) {
- } else if (id == 2) {
- return 'modeRed'
- } else if (id == 3) {
- return 'modePurple'
- }
- },
-
- getInformation (bedId, date, classId, patientid) {
- var name = 0
- for (let i = 0; i < this.information.length; i++) {
- if (
- this.information[i].bed_number == bedId &&
- this.information[i].date == date &&
- this.information[i].class == classId
- ) {
- name = 1
- }
- }
- return name
- },
- didAddMonitor (monitor) {
- this.monitor_records.push(monitor)
- this.monitor_records.sort((a, b) => b.operate_time - a.operate_time)
- this.monitor_records.reverse()
-
- this.last_monitor_record = monitor
- },
- closeDoubleCheck: function (val) {
- this.showPopup11 = false
- },
- closeDialysisOffclose: function (val) {
- this.showPopup12 = false
- },
- closeOpen (index) {
- this.patients.splice(index, 1)
- },
- onConfirm(val){
- console.log("val2o2o2o2o",val)
- for(let i=0;i<this.disinfectType.length;i++){
- if(val.id==this.disinfectType[i].id){
- this.kuangvalue=val.text
- }
- }
- this.showPicker=false
- },
- onConfirmOne(val){
- for(let i=0;i<this.disinfectantType.length;i++){
- if(val.id==this.disinfectantType[i].id){
- this.kuangvalue2=val.text
- }
- }
- this.showPicker2=false
- },
- onConfirmTwo(val){
- for(let i=0;i<this.sterilizeType.length;i++){
- if(val.id==this.sterilizeType[i].id){
- this.kuangvalue3=val.text
- }
- }
- this.showPicker3=false
- },
- onConfirmThree(val){
- for(let i=0;i<this.fluidPathType.length;i++){
- if(val.id==this.fluidPathType[i].id){
- this.kuangvalue4=val.text
- }
- }
- this.showPicker4=false
- },
- onConfirmFour(val){
- for(let i=0;i<this.bedType.length;i++){
- if(val.id==this.bedType[i].id){
- this.kuangvalue5=val.text
- }
- }
- this.showPicker5=false
- },
- onConfirmFive(val){
- for(let i=0;i<this.listOne.length;i++){
- if(val.id==this.listOne[i].id){
- this.kuangvalue6=val.text
- }
- }
- this.showPicker6=false
- },
- onConfirmSix(val){
- for(let i=0;i<this.listTwo.length;i++){
- if(val.id==this.listTwo[i].id){
- this.kuangvalue7=val.text
- }
- }
- this.showPicker7=false
- },
- onConfirmSeven(val){
- for(let i=0;i<this.listThree.length;i++){
- if(val.id==this.listThree[i].id){
- this.kuangvalue8=val.text
- }
- }
- this.showPicker8=false
- }
-
-
-
-
- },
- created () {
-
- if (this.$store.getters.user.template_info.org_id != 10340 && this.$store.getters.user.template_info.org_id != 9829 && this.$store.getters.user.template_info.org_id != 10490) {
- this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}')
- this.select_time_str = parseTime(this.select_time, '{y}-{m}-{d} {h}:{i}')
- console.log('this.select_time_str3232323', this.select_time_str)
-
- }
-
- let dateone = moment().format('YYYY-MM-DD')//获取标准时间 //Tue Aug 16 2022 15:06:24 GMT+0800 (中国标准时间)
- //方式一
- let timeStampOne = Date.parse(dateone)
-
- var arrDateTwo = (timeStampOne/1000)-28800
-
- // console.log("时间搓2222",arrDateTwo)
-
- this.timenow = arrDateTwo
- },
- watch: {
- is_run: function () {
- console.log('is_run99999239292323', this.is_run)
- }
- }
- }
- </script>
-
- <style lang="scss" scoped>
- .difficult {
- width: 60px;
- height: 25px;
- border-radius: 30px;
- background: #78d660;
- text-align: center;
- line-height: 25px;
- position: relative;
- bottom: 25px;
- left: 135px;
- color: #fff;
- }
-
- .water {
- width: 30px;
- height: 30px;
- line-height: 30px;
- background: #4fc7cb;
- color: white;
- border-radius: 50%;
- font-size: 18px;
- font-weight: bold;
- margin-top: 10px;
- }
- ::v-deep .appPopup {
- .Dialog {
- .van-collapse {
- .van-collapse-item {
- .van-cell {
- padding: 0.25rem 0.5rem !important;
- font-size: 0.5rem !important;
- .van-cell__right-icon {
- font-size: 0.5rem;
- }
- }
- .van-collapse-item__wrapper {
- .van-collapse-item__content {
- padding: 0.25rem 0.5rem;
- font-size: 0.5rem;
- }
- }
- }
- }
- }
- }
-
- .patient {
- border: 1px #e5e5ee solid;
- // padding: 0.33rem 0;
- padding: 0 0 0.33rem 0;
- width: 47%;
- margin: 0 3% 0.5rem 0;
- float: left;
- border-radius: 5px;
- @media only screen and (max-width: 415px) {
- width: 96% !important;
- }
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- width: 48%;
- margin: 0 1% 0.5rem 0;
- }
- .function {
- padding: 0.3rem 0.32rem 0 0.32rem;
- color: #7b8a97;
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- margin: 0;
- padding: 0.3rem 0.1rem 0 0.1rem;
- }
- ul {
- @include display-flex;
- @include align-items-center;
- @include text-align;
- @include justify-content-between;
- li {
- font-size: 0.3rem;
- @include display-flex;
- @include align-items-center;
- @media only screen and (max-width: 415px) {
- font-size: 0.36rem;
- }
- .iconfont {
- margin: 0 0.1rem 0 0;
- font-size: 0.4rem;
- display: none;
- }
- }
- }
- }
- .blue {
- color: $main-color;
- .iconfont {
- color: $main-color;
- }
- }
- .kehu {
- @include display-flex;
- // @include align-items-center;
- @include text-align;
- @include justify-content-between;
- border-bottom: 1px #e5e5e5 solid;
- // padding: 0 0 0.3rem 0.32rem;
- padding: 0 0 0 0.32rem;
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- padding: 0 0 0.3rem 0.1rem;
- }
- .tx {
- @include display-flex;
- // @include align-items-center;
- margin-top: -0.3rem;
- img {
- width: 1rem;
- height: 1rem;
- border-radius: 50%;
- float: left;
- margin: 0 0.2rem 0 0;
- }
- .right {
- float: left;
- text-align: left;
- .name {
- font-size: 0.34rem;
- color: $title-color;
- font-weight: 600;
- margin-bottom: 0.1rem;
- @media only screen and (max-width: 415px) {
- font-size: 0.45rem;
- }
- @media only screen and (min-width: 416px) and (max-width: 767px) {
- font-size: 0.4rem;
- }
- .yc {
- background: #ff7979;
- color: #fff;
- height: 0.38rem;
- line-height: 0.38rem;
- font-size: 0.24rem;
- width: 0.74rem;
- border-radius: 4px;
- display: inline-block;
- text-align: center;
- margin-left: 0.13rem;
- }
- }
- .num {
- font-size: 0.3rem;
- @media only screen and (max-width: 415px) {
- font-size: 0.36rem;
- }
- }
- }
- }
- .disinfect {
- background: #258ffc;
- color: #fff;
- width: 1.45rem;
- height: 0.8rem;
- line-height: 0.8rem;
- border-radius: 4px;
- margin: 0 auto;
- font-size: 0.32rem;
- margin-right: 0.28rem;
- margin-top: 0.3rem;
- @media only screen and (max-width: 767px) {
- font-size: 0.36rem;
- width: 1.7rem;
- }
-
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- width: 1.3rem;
- font-size: 0.36rem;
- }
- }
-
- .disinfectOne {
- background: #a8b3ba;
- color: #fff;
- width: 1.45rem;
- height: 0.8rem;
- line-height: 0.8rem;
- border-radius: 4px;
- margin: 0 auto;
- font-size: 0.32rem;
- margin-right: 0.28rem;
- margin-top: 0.3rem;
- @media only screen and (max-width: 767px) {
- font-size: 0.36rem;
- width: 1.7rem;
- }
-
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- width: 1.3rem;
- font-size: 0.36rem;
- }
- }
- .summary {
- background: #7bce91;
- color: #fff;
- width: 1.45rem;
- height: 0.8rem;
- line-height: 0.8rem;
- border-radius: 4px;
- margin: 0 auto;
- font-size: 0.32rem;
- margin: 0 0.28rem;
- margin-top: 0.3rem;
- @media only screen and (max-width: 767px) {
- font-size: 0.36rem;
- width: 1.7rem;
- }
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- width: 1.3rem;
- font-size: 0.36rem;
- }
- }
- .prescription {
- background: #4fc7cb;
- color: #fff;
- width: 1.45rem;
- height: 0.8rem;
- line-height: 0.8rem;
- border-radius: 4px;
- margin: 0 auto;
- font-size: 0.32rem;
- margin: 0 0.28rem;
- margin-top: 0.3rem;
- @media only screen and (max-width: 767px) {
- font-size: 0.36rem;
- width: 1.7rem;
- }
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- width: 1.3rem;
- font-size: 0.36rem;
- }
- }
- }
- .online {
- text-align: center;
- width: 50%;
- // border-left: 1px #e5e5e5 solid;
- p {
- background: #c6cdd2;
- color: #fff;
- width: 1.45rem;
- height: 0.8rem;
- line-height: 0.8rem;
- border-radius: 4px;
- margin: 0 auto;
- font-size: 0.32rem;
- @media only screen and (max-width: 767px) {
- font-size: 0.36rem;
- width: 1.7rem;
- }
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- width: 1.3rem;
- font-size: 0.36rem;
- }
- }
- .blue {
- background: $main-color;
- }
- .red {
- background: #f18f68;
- }
- .green {
- background: #5bd18b;
- }
- .green1 {
- background: #258ffc;
- }
- .green2 {
- background: #e6a23c;
- }
- .gray {
- background: #a8b3ba;
- }
- .lightGray {
- background: #c6cdd2;
- }
- .time {
- font-size: 0.26rem;
- color: #34495e;
- }
- }
- }
- .red {
- border: 1px #ff7979 solid;
- }
- .redpoint {
- display: inline-block;
- height: 26px;
- width: 26px;
- line-height: 23px;
- text-align: center;
- font-size: 0.45rem;
- border-radius: 20px;
- color: #fff;
- background: #f56c6c;
- position: absolute;
- top: -6px;
- left: 0.6rem;
- border: 1px solid #fff;
- @media only screen and (max-width: 415px) {
- height: 16px;
- width: 16px;
- line-height: 15px;
- top: -6px;
- left: 0.6rem;
- }
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- height: 20px;
- width: 20px;
- line-height: 19px;
- top: -6px;
- left: 0.6rem;
- font-size: 0.36rem;
- }
- }
- .redPoint1 {
- display: inline-block;
- height: 26px;
- width: 26px;
- line-height: 23px;
- text-align: center;
- font-size: 0.45rem;
- border-radius: 20px;
- color: #fff;
- background: #f56c6c;
- position: absolute;
- top: 20px;
- left: 0.6rem;
- border: 1px solid #fff;
- @media only screen and (max-width: 415px) {
- height: 16px;
- width: 16px;
- line-height: 15px;
- top: 20px;
- left: 0.6rem;
- }
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- height: 20px;
- width: 20px;
- line-height: 19px;
- top: 20px;
- left: 0.6rem;
- font-size: 0.36rem;
- }
- }
- .yztx {
- margin: 0 5px;
- padding: 3px 10px;
- background-color: #f56c6c;
- color: #fff;
- border-radius: 3px;
- font-size: 0.32rem;
- @media only screen and (max-width: 415px) {
- font-size: 0.34rem !important;
- }
- @media only screen and (min-width: 415px) and (max-width: 767px) {
- margin: 0;
- padding: 3px 3px;
- }
- }
- #modeRed {
- color: #ed5555;
- }
- #modePurple {
- color: #53b86e;
- }
- </style>
-
- <style scoped>
- .double_check_dialog >>> .picker-item{font-size: .475rem ; }
- </style>
|