12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573 |
- <template>
- <div class="main-contain">
- <div class="position">
- <bread-crumb :crumbs='crumbs'></bread-crumb>
- </div>
- <div class="app-container">
- <el-container>
- <div style="width:22%">
- <el-row>
- <el-col :span="24">
- <span class="zone">分 区:</span>
- <el-select v-model="forms.zone_id" placeholder="请选择" class="a" @change="changeBedNumber" style="width:70%" :disabled="zoneDisabled">
- <el-option
- v-for="item in bedZone"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </el-col>
- </el-row>
-
- <el-row>
- <el-col>
- <span class="zone">设备类型:</span>
- <el-select v-model="forms.device_type" placeholder="请选择" class="a" @change="changeDeviceId" style="width:70%">
- <el-option
- v-for="item in DeviceTypeType"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-col>
- </el-row>
- <el-row>
- <el-table
- ref="singleTable"
- :data="tableDatatwo"
- highlight-current-row
- border
- @current-change="handleCurrentChange"
- height="440"
- :row-style="{ color: '#303133' }"
- :header-cell-style="{
- backgroundColor: 'rgb(245, 247, 250)',
- color: '#606266'
- }"
- >
- <el-table-column
- prop="date"
- label="设备名称"
- width="90"
- align="center"
- >
- <template slot-scope="scope">
- <div @click="handleIndex(scope.$index)">{{scope.row.device_name}}</div>
- </template>
- </el-table-column>
- <el-table-column
- prop="name"
- label="设备型号"
- width="90"
- align="center">
- <template slot-scope="scope">
- <div @click="handleIndex(scope.$index)">{{scope.row.device_mode}}</div>
- </template>
- </el-table-column>
- <el-table-column
- prop="address"
- label="机位号"
- align="center"
- widwid="60">
- <template slot-scope="scope">
- <div @click="handleIndex(scope.$index)">{{scope.row.bed_number}}</div>
- </template>
- </el-table-column>
- </el-table>
- </el-row>
- </div>
-
- <el-main>
- <div class="main newMain">
- <div class="newButtonOne">
- <el-button
- type="success"
- @click="clickQuery()"
- >
- 综合查询
- </el-button>
- </div>
- <el-tabs v-model="activeName" @tab-click="handleClick">
-
- <!-- 透析机基本信息 -->
- <el-tab-pane label="基本信息" name="first" >
- <!-- 透析机基本信息 -->
- <div class="disinfectOne newDisinfectOne" v-show="tShow">
-
- <el-row>
- <div class="b">
- <el-button @click="UpdateMachine()">修改</el-button>
- </div>
- </el-row>
- <el-row>
- <el-form :model="form" ref="form" :rules="rules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="序列号:" required prop="serial_number">
- <el-input style="width:150px" v-model="form.serial_number" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="设备类型:" required prop="devicetype">
- <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
- <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="机位号:">
- <el-select style="width:150px" v-model="form.bed_number" :disabled="disableThree">
- <el-option v-for="item in this.Number" :key="item.bed_id" :label="item.bed_number" :value="item.bed_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="设备名称:" required prop="device_name">
- <el-input style="width:150px" v-model="form.device_name" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="生产厂家:">
- <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="维修厂家:">
- <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="设备型号:" required prop="unit_type">
- <el-select style="width:150px" v-model="form.unit_type" :disabled="disableThree">
- <el-option
- v-for="item in this.deviceMode"
- :key="item.id"
- :label="item.device_mode"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="使用科室:">
- <el-input style="width:150px" v-model="form.use_section" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="科室编号:">
- <el-input style="width:150px" v-model="form.section_number" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="购买日期:">
- <el-date-picker
- v-model="form.buy_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableThree">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="安装日期:">
- <el-date-picker
- v-model="form.install_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableThree">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="启用日期:">
- <el-date-picker
- v-model="form.start_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableThree">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="维修工程师:">
- <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="联系电话:">
- <el-input style="width:150px" v-model="form.telephone" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="保修期限:">
- <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="机器状态:">
- <el-select style="width:150px" v-model="form.machine_status" @change="changeMachineStatus">
- <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" :disabled="disableThree"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="初次使用次数:">
- <el-input v-model="form.user_total" style="width:150px" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="备注:">
- <el-input style="width:150px" v-model="form.remarks" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="报废日期:">
- <el-date-picker
- v-model="form.rubbish_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableThree">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="报废原因:">
- <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="readisable">
- <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" :disabled="disableThree"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="使用年限(年):">
- <el-input style="width:150px" v-model="form.user_year" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="工作时长(时):">
- <el-input style="width:150px" v-model="form.work_time" :disabled="disableThree"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-form-item label="治疗模式:">
- <el-checkbox-group v-model="form.treat_mode" @change="handleCheckedCitiesChange">
- <el-checkbox v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox>
- </el-checkbox-group>
- </el-form-item>
- </el-row>
- <el-row>
- <el-col>
- <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
- </el-col>
- </el-row>
- <el-row>
- <div class="but">
- <el-col :span="12">
- <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
- </el-col>
- <el-col :span="8">
- <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMachineInfo('form')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- </el-row>
- </div>
-
- <!-- 水处理机基本信息 -->
- <div v-show="sShow">
- <el-row>
- <div class="b">
- <el-button size="small" @click="UpdateMachine()">修改</el-button>
- </div>
- </el-row>
- <el-row>
- <el-form :model="form" ref="form" :rules="rules">
- <el-row>
- <el-col :span="7">
- <el-form-item label="序列号:" required prop="serial_number">
- <el-input style="width:150px" v-model="form.serial_number" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="设备类型:" required prop="devicetype">
- <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
- <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFour" ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="机位号">
- <el-input style="width:150px" v-model="form.beds" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="设备名称:" required prop="device_name">
- <el-input style="width:150px" v-model="form.device_name" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="生产厂家:">
- <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="维修厂家:">
- <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="设备型号:" required prop="unit_type">
- <el-select style="width:135px" v-model="form.unit_type" :disabled="disableFour">
- <el-option
- v-for="item in this.deviceMode"
- :key="item.id"
- :label="item.device_mode"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="使用科室:">
- <el-input style="width:150px" v-model="form.use_section" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="科室编号:">
- <el-input style="width:150px" v-model="form.section_number" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="购买日期:">
- <el-date-picker
- v-model="form.buy_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableFour">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="安装日期:">
- <el-date-picker
- v-model="form.install_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableFour">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="启用日期:">
- <el-date-picker
- v-model="form.start_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableFour">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="维修工程师:">
- <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="联系电话:">
- <el-input style="width:150px" v-model="form.telephone" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="保修期限:">
- <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="机器状态:">
- <el-select style="width:150px" v-model="form.machine_status" :disabled="disableFour">
- <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="消毒方式:">
- <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFour">
- <el-option
- v-for="item in this.DisinfectionMode"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="备注:">
- <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="报废日期:">
- <el-date-picker
- v-model="form.rubbish_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:135px"
- :disabled="disableFour">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="报废原因:">
- <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
- <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="使用年限(年):">
- <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="工作时长(h):">
- <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="反渗模式:">
- <el-select style="width:135px" v-model="form.revers_mode" :disabled="disableFour">
- <el-option
- v-for="item in this.reverseMode"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div class="but">
- <el-col :span="12">
- <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
- </el-col>
- <el-col :span="8">
- <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMachineInfoTwo('form')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- </el-row>
- </div>
-
- <!-- 其他信息 -->
- <div v-show="qShow" class="disinfectOne">
- <el-row>
- <div class="b">
- <el-button size="small" @click="UpdateMachine()">修改</el-button>
- </div>
- </el-row>
- <el-form :model="form" ref="form" :rules="rules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="序列号:" required prop="serial_number">
- <el-input style="width:150px" v-model="form.serial_number" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="设备类型:" required prop="devicetype">
- <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
- <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="机位号:">
- <!-- <el-select style="width:150px" v-model="form.bed_number" :disabled="true">
- <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
- </el-select> -->
- <el-input v-model="form.bed_numbers" style="width:150px" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="设备名称:" required prop="device_name">
- <el-input style="width:150px" v-model="form.device_name" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="生产厂家:">
- <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="维修厂家:">
- <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="设备型号:" required prop="unit_type">
- <el-select style="width:135px" v-model="form.unit_type" :disabled="disableFive">
- <el-option
- v-for="item in this.deviceMode"
- :key="item.id"
- :label="item.device_mode"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="使用科室:">
- <el-input style="width:150px" v-model="form.use_section" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="科室编号:">
- <el-input style="width:150px" v-model="form.section_number" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="购买日期:">
- <el-date-picker
- v-model="form.buy_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableFive">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="安装日期:">
- <el-date-picker
- v-model="form.install_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableFive">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="启用日期:">
- <el-date-picker
- v-model="form.start_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px"
- :disabled="disableFive">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="维修工程师:">
- <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="联系电话:">
- <el-input style="width:150px" v-model="form.telephone" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="保修期限:">
- <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="机器状态:">
- <el-select style="width:150px" v-model="form.machine_status" @change="changeMachineStatus">
- <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFive"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="消毒方式:">
- <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFive">
- <el-option
- v-for="item in this.DisinfectionMode"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="备注:">
- <el-input style="width:150px" v-model="form.remarks" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="报废日期:">
- <el-date-picker
- v-model="form.rubbish_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:135px"
- :disabled="disableFive">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="报废原因:">
- <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="readisable">
- <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFive"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="使用年限(年):">
- <el-input style="width:150px" v-model="form.user_year" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="工作时长:">
- <el-input style="width:150px" v-model="form.work_time" :disabled="disableFive"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div class="but">
- <el-col :span="12">
- <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
- </el-col>
- <el-col :span="8">
- <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMacheineTwo('form')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- </div>
- </el-tab-pane>
-
- <el-tab-pane label="消毒计划" name="second">
- <div class="disinfect" v-show="DisShow">
- <div class="newButton">
- <el-button
- type="primary"
- size="small"
- @click="addPlan"
- >
- 新增计划
- </el-button>
- </div>
- <el-tabs type="border-card" v-model="activeNameTwo" @tab-click="handleClick" >
- <el-tab-pane label="当前设备计划列表" name="first">
- <el-row style="display: flex;align-items: center;">
- <el-col :span="2">
- <el-checkbox style="width: 30px" @change="changeCheckOne" v-model="checkAllStatus">全选</el-checkbox>
- </el-col>
- <el-col :span="2">
- <el-button size="small" @click="openDeleteMahcine">批量删除</el-button>
- </el-col>
- </el-row>
- <el-row>
- <el-table
- ref="multipleTable"
- @selection-change="handleSelectionChangeOne"
- :data="planData"
- border
- fit
- highlight-current-row
- style="width: 100%;margin-top: 10px;"
- :row-style="{ color: '#303133' }"
- :header-cell-style="{
- backgroundColor: 'rgb(245, 247, 250)',
- color: '#606266'
- }"
- >
- <el-table-column align="center" type="selection" width="55"></el-table-column>
- <el-table-column label="时间" align="center" min-width="50px">
- <template slot-scope="scope">
- {{scope.row.time}}
- </template>
- </el-table-column>
- <el-table-column label="班次" align="center" min-width="50px">
- <template slot-scope="scope">
- {{scope.row.classtime}}
- </template>
- </el-table-column>
- <el-table-column label="机表(床单元、床旁桌)消毒方式" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.way}}
- </template>
- </el-table-column>
- <el-table-column label="机表(床单元、床旁桌)消毒液" align="center" min-width="100px" >
- <template slot-scope="scope">
- {{scope.row.machine_disinfectant}}
- </template>
- </el-table-column>
- <el-table-column label="液路消毒方式" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.disinfectan_way}}
- </template>
- </el-table-column>
- <el-table-column label="液路消毒液" align="center" min-width="100px" >
- <template slot-scope="scope">
- {{scope.row.disinfectant}}
- </template>
- </el-table-column>
- <el-table-column label="床单位更换" align="center" min-width="100px" >
- <template slot-scope="scope">
- <span v-if="scope.row.bed_way ==0">/</span>
- <span v-if="scope.row.bed_way ==1">床单</span>
- <span v-if="scope.row.bed_way ==2">被套</span>
- <span v-if="scope.row.bed_way ==3">枕套</span>
- </template>
- </el-table-column>
- <el-table-column label="消毒时长/min" align="center" min-width="60px" >
- <template slot-scope="scope">
- {{scope.row.disinfec_time}}
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center" min-width="130px">
- <template slot-scope="scope">
- <el-tooltip class="item" effect="dark" content="编辑" placement="top">
- <el-button
- size="mini"
- type="primary"
- icon="el-icon-edit-outline"
- @click="EditMachine(scope.row.id, scope.$index)"
- ></el-button>
- </el-tooltip>
-
- <el-tooltip class="item" effect="dark" content="删除" placement="top">
- <el-button
- size="mini"
- type="danger"
- icon="el-icon-delete"
- @click="openDelete(scope.row.id, scope.$index)"
- ></el-button>
- </el-tooltip>
- </template>
-
- </el-table-column>
- </el-table>
- </el-row>
- </el-tab-pane>
- <el-tab-pane label="按机型列表" name="second">
- <el-row style="display: flex;align-items: center;">
- <el-col :span="2">
- <el-checkbox style="width: 30px" @change="changeCheck" v-model="checkAllStatusOne">全选</el-checkbox>
- </el-col>
- <el-col :span="2">
- <el-button size="small" @click="openDeleteMahcineOne">批量删除</el-button>
- </el-col>
- </el-row>
- <el-row>
- <el-table
- ref="multipleTableOne"
- @selection-change="handleSelectionChange"
- :row-style="{ color: '#303133' }"
- :header-cell-style="{
- backgroundColor: 'rgb(245, 247, 250)',
- color: '#606266'
- }"
- :data="tableData"
- border
- fit
- highlight-current-row
- style="width: 100%;margin-top: 10px;"
- >
- <el-table-column align="center" type="selection" width="55"></el-table-column>
- <el-table-column label="型号" align="center" min-width="60px">
- <template slot-scope="scope">
- {{scope.row.device_mode}}
- </template>
- </el-table-column>
- <el-table-column label="时间" align="center" min-width="60px" >
- <template slot-scope="scope">
- {{scope.row.time}}
- </template>
- </el-table-column>
- <el-table-column label="班次" align="center" min-width="60px" >
- <template slot-scope="scope">
- {{scope.row.classtime}}
- </template>
- </el-table-column>
- <el-table-column label="机表(床单元、床旁桌)消毒方式" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.way}}
- </template>
- </el-table-column>
- <el-table-column label="机表(床单元、床旁桌)消毒液" align="center" min-width="100px" >
- <template slot-scope="scope">
- {{scope.row.machine_disinfectant}}
- </template>
- </el-table-column>
- <el-table-column label="液路消毒方式" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.disinfectant}}
- </template>
- </el-table-column>
- <el-table-column label="液路消毒液" align="center" min-width="100px" >
- <template slot-scope="scope">
- {{scope.row.disinfectan_way}}
- </template>
- </el-table-column>
- <el-table-column label="床单位更换" align="center" min-width="100px" >
- <template slot-scope="scope">
-
- <span v-if="scope.row.bed_way ==0">/</span>
- <span v-if="scope.row.bed_way ==1">床单</span>
- <span v-if="scope.row.bed_way ==2">被套</span>
- <span v-if="scope.row.bed_way ==3">枕套</span>
- </template>
- </el-table-column>
- <el-table-column label="消毒时长/min" align="center" min-width="60px" >
- <template slot-scope="scope">
- {{scope.row.disinfec_time}}
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center" width="130px">
- <template slot-scope="scope">
- <el-tooltip class="item" effect="dark" content="编辑" placement="top">
- <el-button
- size="mini"
- type="primary"
- icon="el-icon-edit-outline"
- @click="EditMachine(scope.row.id, scope.$index)"
- ></el-button>
- </el-tooltip>
-
- <el-tooltip class="item" effect="dark" content="删除" placement="top">
- <el-button
- size="mini"
- type="danger"
- icon="el-icon-delete"
- @click="openDelete(scope.row.id, scope.$index)"
- ></el-button>
- </el-tooltip>
- </template>
-
- </el-table-column>
- </el-table>
- </el-row>
- </el-tab-pane>
- </el-tabs>
- </div>
- <div class="zClass" v-show="DioShow">
- 暂无数据
- </div>
- </el-tab-pane>
-
- <el-tab-pane label="使用登记" name="third">
- <div class="userbutton">
- <el-button type="primary" @click="ToReminders">自动生成使用登记</el-button>
- </div>
- <div v-show="UserShow" class="new-registration">
- <el-tabs type="border-card" v-model="activeNameThree" @tab-click="handleClick">
- <el-tab-pane label="新增使用登记" name="first">
-
- <el-form :model="userform" ref="userform" :rules="userRules" v-if="device_type == 1">
- <el-row>
- <el-col :span="8">
- <el-form-item label="日期:" required prop="date" class="st">
- <el-date-picker
- v-model="userform.date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="班次:" required prop="classtype" class="st">
- <el-select v-model="userform.classtype" placeholder="请选择" style="width:150px">
- <el-option
- v-for="item in classType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:90px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="分区:" required prop="zone" >
- <el-select v-model="userform.zone" placeholder="请选择" style="width:150px" :disabled="true">
- <el-option
- v-for="item in bedZoneThree"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="机位号:" required prop="bed_number">
- <el-select style="width:150px" v-model="userform.bed_number" :disabled="true">
- <el-option v-for="item in this.bedNumberTwo" :key="item.id" :label="item.number" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="患者:">
- <el-autocomplete
- style="width:150px"
- popper-class="my-autocomplete"
- v-model="userform.patient_name"
- :fetch-suggestions="querySearchAsync"
- placeholder="请输入内容"
- @select="handleSelect">
- <i
- class="el-icon-search el-input__icon"
- slot="suffix"
- >
- </i>
- <template slot-scope="{ item }">
- <span class="addr">{{ item.name }}</span>
- </template>
- </el-autocomplete>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="传染病:">
- <el-input style="width:150px" v-model="userform.contagion" :disabled="true"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="透析方式:">
- <el-select v-model="userform.dialysis_mode" placeholder="请选择" style="width:150px">
- <el-option
- v-for="item in treatmode"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="上机时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="userform.start_time"
- style="width:185px"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="下机时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="userform.end_time"
- style="width:185px"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="透析时长:">
- <el-input style="width:150px" v-model="userform.dialysis_time"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="实际超滤量(L)">
- <el-input style="width:150px" v-model="userform.hyperfiltratio"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="体重减少(kg):">
- <el-input style="width:150px" v-model="userform.weight_loss"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="预警值:">
- <el-input style="width:150px" v-model="userform.warning_value"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="使用次数:">
- <el-input style="width:150px" v-model="userform.user_total" :disabled="true"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="运行:">
- <el-radio-group v-model="userform.run" @change="changeRun">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOption" :key="gender.id">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col>
- <el-form-item class="stoppage" label="故障发生阶段:">
- <el-radio-group v-model="userform.failure_stage" :disabled ="runDisable">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item class="stoppage" label="故障描述:">
- <el-input style="width:78%" v-model="userform.fault_description"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item class="stoppage" label="故障提示信息及代码:">
- <el-input style="width:78%" v-model="userform.code_information"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-form-item label="机器消毒:"></el-form-item>
- </el-row>
- <el-row>
- <el-col :span="3">
- <el-form-item label="①机表(床单元,床旁桌)"></el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="消毒方式:" required prop="disinfect_type">
- <el-select v-model="userform.disinfect_type" placeholder="请选择" >
- <el-option
- v-for="item in disinfectType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:150px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="消毒液:" required prop="disinfectant_type">
- <el-select v-model="userform.disinfectant_type" placeholder="请选择" >
- <el-option
- v-for="item in disinfectantType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:200px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="3">
- <el-form-item style="visibility: hidden;" label="①机表"></el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="消毒状态:">
- <el-select v-model="userform.disinfection" placeholder="请选择" >
- <el-option
- v-for="item in disinfection"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:200px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="运行:">
- <el-radio-group v-model="userform.machine_run">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOptions" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="3">
- <el-form-item label="②液路"></el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="消毒方式:" required prop="fluid_path">
- <el-select v-model="userform.fluid_path" placeholder="请选择" >
- <el-option
- v-for="item in sterilizeType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:200px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="消毒液:" required prop="disinfectant">
- <el-select v-model="userform.disinfectant" placeholder="请选择" >
- <el-option
- v-for="item in fluidPathType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:260px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="3">
- <el-form-item style="visibility: hidden;" label="①机表"></el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="消毒状态:">
- <el-select v-model="userform.disinfection_status" placeholder="请选择" >
- <el-option
- v-for="item in disinfection"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:200px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="消毒液残留:">
- <el-radio-group v-model="userform.disinfection_residue">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in Disinfectant" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="消毒时长:">
- <el-input style="width:135px" v-model="userform.longtime"></el-input><span style="color:#606266;">分钟</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="开始消毒时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="userform.starttime"
- style="width:185px;"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="结束消毒时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="userform.endtime"
- style="width:185px;"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="3" style="height: 36px;line-height: 36px;">
- <el-form-item label="透析机消毒液:"></el-form-item>
- </el-col>
- <el-col :span="5" style="display:flex;align-items: center">
- <el-form-item>
- <el-checkbox v-model="userform.dialysis_checked">更换</el-checkbox>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="名称:">
- <el-select v-model="userform.dialysis_name" placeholder="请选择" style="width:150px">
- <el-option
- v-for="item in names"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="规格:">
- <el-input style="width:100px" v-model="userform.norms"></el-input><span style="color:#606266;">桶</span>
- </el-form-item>
- <span class="warn" v-show="warnShow">您已一个月未更换,请注意检测</span>
- </el-col>
- </el-row>
- <el-row>
- <el-col>
- <el-form-item label="浓度:">
- <el-radio-group v-model="userform.dialysis_concentration">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in potency" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
-
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="细菌过滤器:">
- <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
- <span class="warn" v-show="warnShowTwo">您已三个月未更换,请注意检测</span>
- </el-form-item>
-
- </el-col>
- <el-col :span="8">
- <el-form-item class="newname" label="名称:">
- <el-select v-model="userform.germ_name" placeholder="请选择" style="width:150px">
- <el-option
- v-for="item in germs"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item class="newname" label="数量:">
- <el-input style="width:100px" v-model="userform.germ_number"></el-input><span style="color:#606266;">支</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="空气滤网清洁:">
- <el-checkbox v-model="userform.clean">清洁</el-checkbox>
- <span class="warn" v-show="warnShowThree">您已一个月未清洁,请检查</span>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item class="newname" label="签名:" required prop="sign_name">
- <el-select v-model="userform.sign_name" placeholder="请选择" >
- <el-option
- v-for="item in autograph"
- :key="item.admin_user_id"
- :label="item.user_name"
- :value="item.admin_user_id"
- style="width:185px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div class="elbutton">
- <el-col :span="6">
- <el-button>取消</el-button>
- </el-col>
- <el-col :span="2">
- <el-button type="primary" @click="SaveInformation('userform')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
-
- <water-form ref="waterForm" v-if="device_type == 2" :equimentid="equimentid"></water-form>
-
- </el-tab-pane>
-
- <el-tab-pane label="使用登记列表" name="second" >
- <user-form ref="childFive" :userdata="userdata" v-if="device_type == 1"></user-form>
- <water-form-list ref="childSix" v-if="device_type == 2" :equimentid="equimentid"></water-form-list>
- </el-tab-pane>
- </el-tabs>
- </div>
- <div v-show="Ushow" class="zClass">
- 暂无数据
- </div>
- </el-tab-pane>
-
- <el-tab-pane label="质量控制" name="fourth">
- <div v-show="zhiShow" class="new-registration">
- <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
- <el-tab-pane label="新增质量控制" name="first">
-
- <span style="margin-bottom: 20px;display: block;">细菌培养</span>
- <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityForm.date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样标本:">
- <el-select style="width:150px" v-model="qualityForm.specimen" @change="changeSpecimen">
- <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:150px" v-model="qualityForm.concentrate_noa" :disabled="disable"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号">
- <el-input style="width:150px" v-model="qualityForm.concentrate_nob" :disabled="diableTwo"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="采样部位:">
- <el-select style="width:150px" v-model="qualityForm.sampling_locationa">
- <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:150px" v-model="qualityForm.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="sampler">
- <el-select style="width:150px" v-model="qualityForm.sampler">
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:" required prop="reporting_date">
- <el-date-picker
- v-model="qualityForm.reporting_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="顺序号:" required prop="sort">
- <el-input v-model="qualityForm.sort" style="width:150px"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row>
- <el-col :span="8">
- <el-form-item label="检测合格:" required prop="pass_examination">
- <el-radio v-model="qualityForm.pass_examination" label="1">是</el-radio>
- <el-radio v-model="qualityForm.pass_examination" label="2">否</el-radio>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="修改标志:" required prop="modifications">
- <el-select style="width:150px" v-model="qualityForm.modifications">
- <el-option v-for="(item,index) in modifications" :key="index" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="检测结果:(cfu/ml)">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:84%"
- v-model="qualityForm.detection_result"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <!-- <el-col :span="24">
- <span style="color:#FF9900">注:细菌检测应每个月一次,要求细菌数<100cfu/ml</span>
- </el-col> -->
- </el-row>
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanSaveBacteria">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button type="primary" @click="SaveBacteria('qualityForm')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- <el-divider></el-divider>
-
-
- <span style="margin-bottom: 20px;display: block;">内毒素检测</span>
- <el-form ref="qualityFormTwo" :model="qualityFormTwo" :rules="diaRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityFormTwo.sampling_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样标本:">
- <el-select style="width:150px" v-model="qualityFormTwo.specimenb" @change="changeSpecimen">
- <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:150px" v-model="qualityFormTwo.concentrate_noc" :disabled="disable"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号:">
- <el-input style="width:150px" v-model ="qualityFormTwo.concentrateb_nod" :disabled="diableTwo"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="采样部位:">
- <el-select style="width:150px" v-model="qualityFormTwo.sampling_locationb">
- <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:150px" v-model ="qualityFormTwo.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="samplerb">
- <el-select style="width:150px" v-model="qualityFormTwo.samplerb">
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:" required prop="reporting_dateb">
- <el-date-picker
- v-model="qualityFormTwo.reporting_dateb"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="顺序号:" required prop="sort">
- <el-input style="width:150px" v-model="qualityFormTwo.sort" ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="检测合格:" required prop="pass_examination">
- <el-radio v-model="qualityFormTwo.pass_examination" label="1">是</el-radio>
- <el-radio v-model="qualityFormTwo.pass_examination" label="2">否</el-radio>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="修改标志:" required prop="modifications">
- <el-select style="width:150px" v-model="qualityFormTwo.modifications">
- <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="检测结果:(EU/ml)" label-width="100px">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:600px"
- v-model="qualityFormTwo.detection_resultb"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <!-- <el-col :span="24">
- <span style="color:#FF9900">注:内毒素检测应至少每3个月1次,要求内毒素<0.25EU/ml,每台透析机每年至少检测一次</span>
- </el-col> -->
- </el-row>
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanLincomycin">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button type="primary" @click="SaveLincomycin('qualityFormTwo')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- <el-divider></el-divider>
-
-
-
- <div v-if="device_type == 1">
- <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
- <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityFormThree.dateb"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="samplerc">
- <el-select style="width:150px" v-model="qualityFormThree.samplerc">
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:150px" v-model ="qualityFormThree.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:150px" v-model="qualityFormThree.concentrate_nof"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号:">
- <el-input style="width:150px" v-model="qualityFormThree.concentrate_nog"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:" required prop="date_reportc">
- <el-date-picker
- v-model="qualityFormThree.date_reportc"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
-
- </el-row>
-
- <el-row>
- <el-col :span="8">
- <!-- <span>Na<sup>+</sup></span> -->
- <el-form-item class="newItem" label="实际Na⁺(mmol/L):" label-width="100">
- <el-input style="width:123px" v-model="qualityFormThree.actual_na"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item class="newItem" label="配方Na⁺(mmol/L):" label-width="100">
- <el-input style="width:123px" v-model="qualityFormThree.actual_pna"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="K⁺(mmol/L):">
- <el-input style="width:150px" v-model="qualityFormThree.actual_k"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="Ca2⁺(mmol/L):">
- <el-input style="width:150px" v-model="qualityFormThree.actual_ca"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="CI¯(mmol/L):">
- <el-input style="width:150px" v-model="qualityFormThree.actual_ci"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="HCO3¯(mmol/L):">
- <el-input style="width:150px" v-model="qualityFormThree.actual_hco"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="Mg2⁺(mmol/L):">
- <el-input style="width:150px" v-model="qualityFormThree.actual_mg"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="PH:">
- <el-input style="width:150px" v-model="qualityFormThree.actual_ph"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="顺序号:" required prop="sort">
- <el-input v-model="qualityFormThree.sort" style="width:150px"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div></div>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="检测合格:" required prop="pass_examination">
- <el-radio v-model="qualityFormThree.pass_examination" label="1">是</el-radio>
- <el-radio v-model="qualityFormThree.pass_examination" label="2">否</el-radio>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="修改标志:" required prop="modifications">
- <el-select style="width:150px" v-model="qualityFormThree.modifications">
- <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="备注:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:500px"
- v-model="qualityFormThree.remakes"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanQuality">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button type="primary" @click="SaveQualityControl('qualityFormThree')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
-
-
-
-
- <el-divider></el-divider>
- </div>
-
-
- <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
- <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityFormFour.sampling_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样标本:">
- <el-select style="width:150px" v-model="qualityFormFour.specimenb" @change="changeSpecimen">
- <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:150px" v-model="qualityFormFour.concentrate_noc" :disabled="disable"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号:">
- <el-input style="width:150px" v-model ="qualityFormFour.concentrateb_nod" :disabled="diableTwo"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="采样部位:">
- <el-select style="width:150px" v-model="qualityFormFour.sampling_locationb">
- <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:150px" v-model ="qualityFormFour.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="samplerb">
- <el-select style="width:150px" v-model="qualityFormFour.samplerb">
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:" required prop="reporting_dateb">
- <el-date-picker
- v-model="qualityFormFour.reporting_dateb"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="顺序号:" required prop="sort">
- <el-input style="width:150px" v-model="qualityFormFour.sort" ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="检测合格:" required prop="pass_examination">
- <el-radio v-model="qualityFormFour.pass_examination" label="1">是</el-radio>
- <el-radio v-model="qualityFormFour.pass_examination" label="2">否</el-radio>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="修改标志:" required prop="modifications">
- <el-select style="width:150px" v-model="qualityFormFour.modifications">
- <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="检测结果:(EU/ml)" label-width="100px">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:600px"
- v-model="qualityFormFour.detection_resultb"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <!-- <el-col :span="24">
- <span style="color:#FF9900">注:有毒化合物检测应至少每3个月1次,每台透析机每年至少检测一次</span>
- </el-col> -->
- </el-row>
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanLincomycin">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button type="primary" @click="saveOxygenates('qualityFormFour')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- <el-divider></el-divider>
-
-
-
-
- <span style="margin-bottom: 20px;display: block;">水硬度检测</span>
- <el-form ref="qualityFormFive" :model="qualityFormFive" :rules="diaRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityFormFive.sampling_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样标本:">
- <el-select style="width:150px" v-model="qualityFormFive.specimenb" @change="changeSpecimen">
- <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:150px" v-model="qualityFormFive.concentrate_noc" :disabled="disable"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号:">
- <el-input style="width:150px" v-model ="qualityFormFive.concentrateb_nod" :disabled="diableTwo"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="采样部位:">
- <el-select style="width:150px" v-model="qualityFormFive.sampling_locationb">
- <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:150px" v-model ="qualityFormFive.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="samplerb">
- <el-select style="width:150px" v-model="qualityFormFive.samplerb">
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:" required prop="reporting_dateb">
- <el-date-picker
- v-model="qualityFormFive.reporting_dateb"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="顺序号:" required prop="sort">
- <el-input style="width:150px" v-model="qualityFormFive.sort" ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="检测合格:" required prop="pass_examination">
- <el-radio v-model="qualityFormFive.pass_examination" label="1">是</el-radio>
- <el-radio v-model="qualityFormFive.pass_examination" label="2">否</el-radio>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="修改标志:" required prop="modifications">
- <el-select style="width:150px" v-model="qualityFormFive.modifications">
- <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="检测结果:(ppm)" label-width="100px">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:600px"
- v-model="qualityFormFive.detection_resultb"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <!-- <el-row>
- <el-col :span="24">
- <span style="color:#FF9900">注:水硬度检测应至少每3个月1次,每台透析机每年至少检测一次</span>
- </el-col>
- </el-row> -->
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanLincomycin">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button type="primary" @click="saveHardWater('qualityFormFive')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- <el-divider></el-divider>
-
-
-
-
- <span style="margin-bottom: 20px;display: block;">水游离氯检测</span>
- <el-form ref="qualityFormSix" :model="qualityFormSix" :rules="diaRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityFormSix.sampling_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样标本:">
- <el-select style="width:150px" v-model="qualityFormSix.specimenb" @change="changeSpecimen">
- <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:150px" v-model="qualityFormSix.concentrate_noc" :disabled="disable"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号:">
- <el-input style="width:150px" v-model ="qualityFormSix.concentrateb_nod" :disabled="diableTwo"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="采样部位:">
- <el-select style="width:150px" v-model="qualityFormSix.sampling_locationb">
- <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:150px" v-model ="qualityFormSix.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="samplerb">
- <el-select style="width:150px" v-model="qualityFormSix.samplerb" filterable >
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:" required prop="reporting_dateb">
- <el-date-picker
- v-model="qualityFormSix.reporting_dateb"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="顺序号:" required prop="sort">
- <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="检测合格:" required prop="pass_examination">
- <el-radio v-model="qualityFormSix.pass_examination" label="1">是</el-radio>
- <el-radio v-model="qualityFormSix.pass_examination" label="2">否</el-radio>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="修改标志:" required prop="modifications">
- <el-select style="width:150px" v-model="qualityFormSix.modifications">
- <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="检测结果:(Mg/L)" label-width="100px">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:600px"
- v-model="qualityFormSix.detection_resultb"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <!-- <el-row>
- <el-col :span="24">
- <span style="color:#FF9900">注:水游离氯检测应至少每3个月1次,每台透析机每年至少检测一次</span>
- </el-col>
- </el-row> -->
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanLincomycin">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button type="primary" @click="saveWater('qualityFormSix')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- <el-divider></el-divider>
-
-
-
- <span style="margin-bottom: 20px;display: block;">PH值检测</span>
- <el-form ref="qualityFormSeven" :model="qualityFormSeven" :rules="diaRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityFormSeven.sampling_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样标本:">
- <el-select style="width:150px" v-model="qualityFormSeven.specimenb" @change="changeSpecimen">
- <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:150px" v-model="qualityFormSeven.concentrate_noc" :disabled="disable"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号:">
- <el-input style="width:150px" v-model ="qualityFormSeven.concentrateb_nod" :disabled="diableTwo"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="采样部位:">
- <el-select style="width:150px" v-model="qualityFormSeven.sampling_locationb">
- <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:150px" v-model ="qualityFormSeven.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="samplerb">
- <el-select style="width:150px" v-model="qualityFormSeven.samplerb" filterable >
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:" required prop="reporting_dateb">
- <el-date-picker
- v-model="qualityFormSeven.reporting_dateb"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="顺序号:" required prop="sort">
- <el-input style="width:150px" v-model="qualityFormSeven.sort" ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="检测合格:" required prop="pass_examination">
- <el-radio v-model="qualityFormSeven.pass_examination" label="1">是</el-radio>
- <el-radio v-model="qualityFormSeven.pass_examination" label="2">否</el-radio>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="修改标志:" required prop="modifications">
- <el-select style="width:150px" v-model="qualityFormSeven.modifications">
- <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="检测结果:" label-width="100px">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:600px"
- v-model="qualityFormSeven.detection_resultb"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <!-- <el-row>
- <el-col :span="24">
- <span style="color:#FF9900">注:PH值检测检测应至少每3个月1次,每台透析机每年至少检测一次</span>
- </el-col>
- </el-row> -->
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanLincomycin">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button type="primary" @click="saveDevicePH('qualityFormSeven')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- <el-divider></el-divider>
-
-
-
-
-
- </el-tab-pane>
-
-
- <el-tab-pane label="质量控制列表" name="second">
- <quality-form ref="mychild"></quality-form>
- </el-tab-pane>
- </el-tabs>
- </div>
- <div v-show="zhShow" class="zClass">
- 暂无数据
- </div>
- </el-tab-pane>
-
- <el-tab-pane label="维修维护" name="five">
- <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
- <el-tab-pane label="新增维修维护" name="first">
- <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="保修日期:" required prop="guarantee_date">
- <el-date-picker
- v-model="guaForm.guarantee_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出发时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="guaForm.start_time"
- style="width:185px;">
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="到达时间:">
-
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="guaForm.arrive_time"
- style="width:185px;">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="完成时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="guaForm.finish_time"
- style="width:185px;">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="总路程:(公里)">
- <el-input style="width:150px" v-model = "guaForm.total_distance"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item class="formItem" label="功能及附件检查:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.function_accessories_inspection"
- style="width:85%">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item class="formItem" label="其他:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.other_information"
- style="width:85%">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="故障发生阶段">
- <el-radio-group v-model="guaForm.failure_stage">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item class="formItem" label="故障提示信息及代码">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.code_information"
- style="width:85%">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="故障现象:" required prop="fault_description">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.fault_description"
- style="width:86%;margin-left: 10%;">
- </el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="维修内容:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.cause_analysis"
- style="width:86%;margin-left: 10%;">
- </el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="维修结果:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.treatment_process"
- style="width:86%;margin-left: 10%;">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="上传图片:">
- <el-upload
- :data="uploadFileData"
- action="https://upload.qiniup.com"
- :on-success="handleSuccess"
- :before-upload="beforeUploadFile"
- :limit="1"
- ref='upload'
- accept=".jpg,.png,.gif"
- >
- <el-button size="small" type="primary">上传图片</el-button>
- </el-upload>
- <a class="el-upload-list__item-name" v-show="classShow">
- <i style="color:#0000EE"><a :href="guaForm.images" target="_blank">{{filename}}</a><span @click="hiddenShow"><li class="el-icon-circle-close"></li></span></i>
- </a>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="20">
- <el-form-item label="故障是否排除:">
- <el-radio-group v-model="guaForm.exclude">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in breakDown" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="20">
- <el-form-item label="备注:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.reason"
- style="width:300px">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="20">
- <el-form-item label="维修者:">
- <el-select v-model="guaForm.admin_user_id" placeholder="请选择" >
- <el-option
- v-for="item in autograph"
- :key="item.admin_user_id"
- :label="item.user_name"
- :value="item.admin_user_id"
- style="width:185px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button>取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button type="primary" @click="SaveRepair('guaForm')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- </el-tab-pane>
- <el-tab-pane label="维修维护列表" name="second">
- <repair-form ref="child"></repair-form>
- </el-tab-pane>
- </el-tabs>
- </el-tab-pane>
- </el-tabs>
- </div>
-
- <!-- <el-autocomplete
- popper-class="my-autocomplete"
- v-model="state"
- :fetch-suggestions="querySearch"
- placeholder="请输入内容"
- @select="handleSelect"
- >
- <i
- class="el-icon-edit el-input__icon"
- slot="suffix"
- @click="handleIconClick">
- </i>
- <template slot-scope="{ item }">
- <div class="name">{{ item.value }}</div>
- <span class="addr">{{ item.address }}</span>
- </template>
- </el-autocomplete> -->
-
- </el-main>
- </el-container>
- <!-- </el-container>
- </el-container> -->
-
- <!-- 新增计划 -->
- <plan-form ref="planForm" :equimentid="equimentid" v-on:getAllPlan="getAllPlan" v-on:getAllPlanDetail="getAllPlanDetail" @func="getPlanData"></plan-form>
- <!-- <edit-machine-form ref="editmachineform" :planid="planid" ></edit-machine-form> -->
- <!-- 综合查询 -->
- <multiple-form ref="multipleform" :equimentid="equimentid"></multiple-form>
- <!-- 使用登记提醒配置 -->
- <remander-form ref="remanderform"> </remander-form>
- <!-- 编辑消毒计划 -->
- <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="50%" center>
- <el-form :model="machineform" ref="machineform" :rules="planRules">
- <el-row>
- <el-col :span="10">
- <el-form-item label="设备型号:" required prop = "device_type">
- <el-select style="width:135px" v-model="machineform.device_type">
- <el-option
- v-for="item in this.DeviceType"
- :key="item.id"
- :label="item.device_mode"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="消毒时长:" required prop="disinfec_time">
- <el-input style="width:135px" v-model="machineform.disinfec_time"></el-input>
- <span>分钟</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="10">
- <el-form-item label="时间:" required prop="time">
- <el-select
- v-model="machineform.time"
- placeholder="请选择时间"
- style="width: 140px;"
- >
- <el-option
- v-for="item in this.timeType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="班次:" required prop="class_time">
- <el-select
- v-model="machineform.class_time"
- placeholder="请选择时间"
- style="width: 140px;"
- >
- <el-option
- v-for="item in this.classType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="10">
- <el-form-item label="机表消毒方式:">
- <el-select style="width:135px" v-model="machineform.way">
- <el-option
- v-for="item in this.disinfectType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="机表消毒液:">
- <el-select
- style="width:135px"
- v-model="machineform.machine_disinfectant"
- >
- <el-option
- v-for="item in this.disinfectantType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="10">
- <el-form-item label="液路消毒方式:">
- <el-select style="width:135px" v-model="machineform.disinfectant_way">
- <el-option
- v-for="item in this.sterilizeType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="液路消毒液:">
- <el-select style="width:135px" v-model="machineform.disinfectant">
- <el-option
- v-for="item in this.fluidPathType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="UpdatePlanInfo('machineform')">保存</el-button>
- </span>
- </el-dialog>
-
- </div>
- </div>
-
- </template>
-
- <script>
- import BreadCrumb from '../components/bread-crumb'
- import { getAllSubregion, getAllMachine, getMachineDetailById,
- UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
- getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
- ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getTimeBeteen, getAllpatient, UpdateMachineInfoTwo, getPatientDetail,
- openDelete, getAllMode, selectChange, selectBed,GetUserTotalCount } from '@/api/manage'
- import { uParseTime } from '@/utils/tools'
- import { getToken } from '@/api/qiniu'
- import PlanForm from './components/PlanForm'
- import EditMachineForm from './components/EditMachineForm'
- import MultipleForm from './components/MultipleForm'
- import UserForm from './components/UserForm'
- import QualityForm from './components/QualityForm'
- import RepairForm from './components/RepairForm'
- import RemanderForm from './components/RemanderForm'
- import WaterForm from './components/WaterForm'
- import WaterFormList from './components/WaterFormList.vue'
- import { parseTime } from '@/utils'
- import { getFileExtension } from '@/utils/tools'
- import { PostSearch } from '@/api/patient'
- import {saveOxygenates,saveHardWater,saveWater,saveDevicePH} from '@/api/device'
- const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD', 'HFHD+HP', 'PHF', 'HFR', 'HDF+HP', 'CRRT', '腹水回输']
- const moment = require('moment')
- export default {
- name: 'home',
- components: {
- BreadCrumb,
- PlanForm,
- EditMachineForm,
- MultipleForm,
- UserForm,
- QualityForm,
- RepairForm,
- RemanderForm,
- WaterForm,
- WaterFormList
- },
- data() {
- return {
- crumbs: [
- { path: false, name: '设备管理详情页' }
- ],
- tableData: [],
- tableDatatwo: [],
- planData: [],
- DeviceTypeType: [
- { id: 0, name: '全部' },
- { id: 1, name: '透析机' },
- { id: 2, name: '水处理机' },
- { id: 3, name: '其他' }
- ],
- bedNumber: [],
- zoneNumber: [],
- Number: [],
- form: {
- id: '',
- serial_number: '',
- devicetype: '',
- bed_number: '',
- device_name: '',
- manufacture_factory: '',
- service_manufacturer: '',
- unit_type: '',
- use_section: '',
- section_number: '',
- buy_date: '',
- install_date: '',
- start_date: '',
- maintenance_engineer: '',
- telephone: '',
- guarantee_date: '',
- machine_status: '',
- user_total: '',
- remarks: '',
- rubbish_date: '',
- rubbish_reason: '',
- user_year: '',
- work_time: '',
- treat_mode: [],
- treat_type: [],
- bed: '', // 治疗模式
- Disinfection_mode: '',
- revers_mode: '',
- beds: '',
- bed_numbers: ''
- },
- activeName: 'first',
- activeNameTwo: 'first',
- activeNameThree: 'first',
- activeNameSix: 'first',
- activeNameFive: 'first',
- machineStatus: [
- { id: 1, name: '使用机' },
- { id: 2, name: '备用机' },
- { id: 3, name: '急诊机' },
- { id: 4, name: '报废机' }
- ],
- DisCardResion: [
- { id: 0, name: '请选择' },
- { id: 1, name: '超期限报废' },
- { id: 2, name: '故障报废' },
- { id: 3, name: '核定报废' }
- ],
- DeviceTypes: [
- { id: 1, name: '透析机' },
- { id: 2, name: '水处理机' },
- { id: 3, name: '其他' }
- ],
- Classes: [
- { id: 0, name: '全部' },
- { id: 1, name: '上午' },
- { id: 2, name: '下午' },
- { id: 3, name: '晚上' }
- ],
- names: [
- { id: 0, name: '请选择' },
- { id: 1, name: '20%柠檬酸' },
- { id: 2, name: '50%柠檬酸' },
- { id: 3, name: '次氯酸钠' }
- ],
- germs: [
- { id: 0, name: '请选择' },
- { id: 1, name: '费森细菌过滤器' },
- { id: 2, name: '日机装细菌过滤器' },
- { id: 3, name: '贝朗机细菌过滤器' },
- { id: 4, name: '东丽机细菌过滤器' }
- ],
- DisinfectionMode: [
- { id: 0, name: '请选择' },
- { id: 1, name: '化学消毒' },
- { id: 2, name: '热消毒' },
- { id: 3, name: '化学消毒+热消毒' }
- ],
- autograph: [],
- bedZone: [],
- bedZoneTwo: [],
- forms: {
- zone_id: 0, // 分区号
- class_id: '', // 班次
- device_type: 0, // 设备类型
- date: ''
- },
- currentRow: null,
- cancelShow: false,
- confirmShow: false,
- isIndeterminate: true,
- checkAll: false,
- cities: cityOptions,
- rules: {
- serial_number: [{ required: true, message: '请填写序列号' }],
- device_name: [{ required: true, message: '请填写序列号' }],
- devicetype: [{ required: true, message: '请填写设备类型' }],
- unit_type: [{ required: true, message: '请填写设备型号' }],
-
- },
- qualitRules: {
- detection_unit: [{ required: true, message: '请填写检测单位' }],
- sampler: [{ required: true, message: '请填写取样者' }],
- sort: [{required:true,message:"请填写顺序号"}],
- pass_examination:[{required:true,message:"请选择检测合格"}],
- modifications:[{required:true,message:"请选择修改标志"}],
- reporting_date:[{required:true,message:"请填写出报告日期"}]
- },
- diaRules: {
- detection_unit: [{ required: true, message: '请填写检测单位' }],
- samplerb: [{ required: true, message: '请填写取样者' }],
- sort: [{required:true,message:"请填写顺序号"}],
- pass_examination:[{required:true,message:"请选择检测合格"}],
- modifications:[{required:true,message:"请选择修改标志"}],
- reporting_dateb:[{required:true,message:"请填写出报告日期"}],
- },
- repirRules: {
- guarantee_date: [{ required: true, message: '请填写保修日期' }],
- fault_description: [{ required: true, message: '请填写故障描述', trigger: ['blur', 'change']}]
- },
- ruleThree: {
- detection_unit: [{ required: true, message: '请填写检测单位' }],
- samplerc: [{ required: true, message: '请填写取样者' }],
- sort: [{required:true,message:"请填写顺序号"}],
- pass_examination:[{required:true,message:"请选择检测合格"}],
- modifications:[{required:true,message:"请选择修改标志"}],
- date_reportc:[{required:true,message:"请填写出报告日期"}]
- },
- userRules: {
- date: [{ required: true, message: '请填写日期' }],
- zone: [{ required: true, message: '请填写分区' }],
- bed_number: [{ required: true, message: '请填写机位号' }],
- patient_name: [{ required: true, message: '请填写患者', trigger: ['blur', 'change'] }],
- disinfect_type: [{ required: true, message: '请填写消毒方式' }],
- disinfectant_type: [{ required: true, message: '请填写消毒液' }],
- disinfection: [{ required: true, message: '请填写消毒状态', trigger: ['blur','change'] }],
- fluid_path: [{ required: true, message: '请填写消毒方式' }],
- disinfectant: [{ required: true, message: '请填写消毒液' }],
- disinfection_status: [{ required: true, message: '请填写消毒状态', trigger: ['blur','change'] }],
- sign_name: [{ required: true, message: '请填写签名', trigger: ['blur','change'] }],
- classtype: [{ required: true, message: '请填写班次', trigger: ['blur','change'] }],
- reporting_date:[{required:true,message:"请填写出报告日期"}]
- },
- planRules: {
- device_type: [{ required: true, message: '请输入设备型号' }],
- disinfec_time: [{ required: true, message: '请输入消毒时长' }],
- time: [{ required: true, message: '请输入时间' }],
- class_time: [{ required: true, message: '请输入班次' }]
- },
- runOption: [
- { id: 1, name: '正常' },
- { id: 2, name: '故障' }
- ],
- runOptions: [
- { id: 1, name: '达标' },
- { id: 2, name: '未达标' }
- ],
- faultPhase: [
- { id: 1, name: '开机启动' },
- { id: 2, name: '自检' },
- { id: 3, name: '准备' },
- { id: 4, name: '治疗' },
- { id: 5, name: '消毒' }
- ],
- Disinfectant: [
- { id: 1, name: '有' },
- { id: 2, name: '无' }
- ],
- potency: [
- { id: 1, name: '达标' },
- { id: 2, name: '未达标' }
- ],
- sampling: [],
- DeviceType: [],
- equimentid: 0,
- checkAllStatus: false,
- checkAllStatusOne: false,
- selectMachines: [],
- selectMachinesOne: [],
- machineIndex: -1,
- planid: 0,
- machineform: {
- id: '',
- device_type: '',
- disinfec_time: '',
- time: '',
- class_time: '',
- way: '',
- machine_disinfectant: '',
- disinfectant_way: '',
- disinfectant: ''
- },
- dialogVisible: false,
- timeType: [
- { id: 1, name: '周一' },
- { id: 2, name: '周二' },
- { id: 3, name: '周三' },
- { id: 4, name: '周四' },
- { id: 5, name: '周五' },
- { id: 6, name: '周六' },
- { id: 7, name: '周日' }
- ],
- classType: [
- // { id: 0, name: '请选择' },
- { id: 1, name: '上午' },
- { id: 2, name: '下午' },
- { id: 3, name: '晚上' }
- ],
- // 基表消毒方式
- disinfectType:
- [
- { id: 0, name: '/' },
- { id: 1, name: '擦拭' },
- { id: 2, name: '化学消毒' }
- ],
- // 基表消毒液
- disinfectantType: [
- { id: 0, name: '/' },
- { id: 1, name: '0.22%季铵盐' },
- { id: 2, name: '500mg/l含氯消毒剂' },
- { id: 3, name: '1000mg/l含氯消毒剂' },
- { id: 4, name: '1500mg/l含氯消毒剂' },
- { id: 5, name: "消毒湿巾"}
- ],
- // 夜路消毒方式
- sterilizeType: [
- { id: 0, name: '/' },
- { id: 1, name: '热化学消毒' },
- { id: 2, name: '化学消毒 + 除钙' },
- { id: 3, name: '热化学消毒 + 除钙' },
- { id: 4, name: '热消毒' },
- { id: 5, name: '化学消毒' },
- { id: 6, name: '除钙' },
- { id: 7, name: '清洗' }
- ],
- // 夜路消毒液
- fluidPathType: [
- { id: 0, name: '/' },
- { id: 1, name: '20%柠檬酸' },
- { id: 2, name: '25%柠檬酸' },
- { id: 3, name: '50%柠檬酸' },
- { id: 4, name: '50%柠檬酸 + 5%次氯酸钠' },
- { id: 5, name: '20%柠檬酸 + 10%冰醋酸' },
- { id: 6, name: '0.2%过氧化乙酸' },
- { id: 7, name: '10%冰醋酸' },
- { id: 8, name: '50%冰醋酸' },
- { id: 9, name: '5%次氯酸钠' },
- { id: 10,name:"25%的柠檬酸+5%次氯酸钠"},
- ],
-
- userform: {
- id: 0,
- date: moment(new Date()).format('YYYY-MM-DD'), // 日期
- classtype: '', // 班次
- zone: '', // 分区
- bed_number: '', // 床位号
- patient_name: '', // 患者
- contagion: '', // 传染病
- dialysis_mode: '', // 透析方式
- start_time: '', // 上机时间
- end_time: '', // 下机时间
- dialysis_time: '', // 透析时长
- hyperfiltratio: '', // 实际超滤量
- weight_loss: '', // 体重减少
- warning_value: '', // 预警值
- user_total: '', // 使用次数
- run: 1, // 运行
- failure_stage: '', // 故事发生阶段
- fault_description: '', // 故障描述
- code_information: '', // 故障提示及代码
-
- // 机器消毒
- disinfect_type: 1, // 消毒方式
- disinfectant_type: 2, // 消毒液
- disinfection: 1, // 消毒状态
- machine_run: 1, // 运行
-
- // 液路
- fluid_path: 3, // 消毒方式
- disinfectant: 3, // 消毒液
- disinfection_status: 1, // 消毒状态
- disinfection_residue: 1, // 消毒液残留
- longtime: '', // 消毒时长
- starttime: '', // 开始消毒时间
- endtime: '', // 结束消毒时间
- dialysis_checked: '', // 更换
- dialysis_name: '', // 名称
- norms: '', // 规格
- dialysis_concentration: 1, // 浓度
- germ_checked: '', // 更换
- germ_name: '', // 名称
- germ_number: '', // 数量
- clean: '', // 清洁
- sign_name: '', // 签名
- patient_id: ''
- },
- treatmentmodes: [
- { id: 1, name: 'HD' },
- { id: 2, name: 'HDF' },
- { id: 3, name: 'HD+HP' },
- { id: 4, name: 'HP' },
- { id: 5, name: 'HF' },
- { id: 6, name: 'SCUF' },
- { id: 7, name: 'IUF' },
- { id: 8, name: 'HFHD+HP' },
- { id: 9, name: 'HFR' },
- { id: 10, name: 'HDF+HP' },
- { id: 11, name: 'GRRT' },
- { id: 12, name: '腹水回输' }
- ],
- treatmode: [
- { id: 0, name: '请选择' },
- { id: 1, name: 'HD' },
- { id: 2, name: 'HDF' },
- { id: 3, name: 'HD + HP' },
- { id: 4, name: 'HP' },
- { id: 5, name: 'HF' },
- { id: 6, name: 'SCUF' },
- { id: 7, name: 'IUF' },
- { id: 8, name: 'HFHD' },
- { id: 9, name: 'HFHD+HP' },
- { id: 10, name: 'PHF' },
- { id: 11, name: 'HFR' },
- { id: 12, name: 'HDF+HP' },
- { id: 13, name: 'CRRT' },
- { id: 14, name: '腹水回输' },
- { id: 15, name: 'HD前置换' },
- { id: 16, name: 'HD后置换' },
- { id: 17, name: 'HDF前置换' },
- { id: 18, name: 'HDF后置换' },
- { id:19, name:"IUF+HD"},
- { id:20, name:"UF"},
- { id:21, name:"HD+"},
- { id:22, name:"血浆胆红素吸附+HDF"},
- { id:23, name:"血浆胆红素吸附"},
- { id:24, name:"I-HDF"},
- { id:25, name:"HD高通"},
- { id:26, name:"CVVH"},
- { id:27, name:"CVVHD"},
- { id:28, name:"CVVHDF"},
- { id:29, name:"PE"},
- ],
- disinfection: [
- // { id: 0, name: '请选择' },
- { id: 1, name: '已消毒' },
- { id: 2, name: '未消毒' },
- { id: 3, name: '消毒未完成' }
- ],
- patientName: [],
- start: '',
- end: '',
- // 细菌培养
- qualityForm: {
- date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- specimen: '', // 取样标本
- concentrate_noa: '', // 浓A
- concentrate_nob: '', // 浓B,
- sampling_locationa: '', // 采样部位
- detection_unit: '', // 检测单位
- sampler: '', // 取样者
- reporting_date: '', // 报告日期
- detection_result: '', // 检测结果
- sort:'1', //顺序号
- pass_examination:'1',//检验合格
- modifications:'',//修改标志
- },
- qualityFormTwo: {
- // 内毒素检测
- detection_unit: '', // 检测单位
- sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- specimenb: '', // 取样标本
- concentrate_noc: '', // A浓缩液批号
- concentrateb_nod: '', // B浓
- sampling_locationb: '', // 采样部位
- samplerb: '', // 取样者
- reporting_dateb: '', // 出报告日期
- detection_resultb: '', // 检测结果
- sort:'1', //顺序号
- pass_examination:'1',//检验合格
- modifications:'',//修改标志
- },
- qualityFormThree: {
- detection_unit: '', // 检测单位
- // 透析液离子浓度检测
- dateb: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- samplerc: '', // 取样者
- concentrate_nof: '', // A浓
- concentrate_nog: '', // B浓
- date_reportc: '', // 出报告日期
- actual_na: '',
- actual_pna: '',
- actual_k: '',
- actual_ca: '',
- actual_ci: '',
- actual_hco: '',
- actual_mg: '',
- actual_ph: '',
- remakes: '',
- sort:'1', //顺序号
- pass_examination:'1',//检验合格
- modifications:'',//修改标志
- },
- qualityFormFour: {
- // 内毒素检测
- detection_unit: '', // 检测单位
- sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- specimenb: '', // 取样标本
- concentrate_noc: '', // A浓缩液批号
- concentrateb_nod: '', // B浓
- sampling_locationb: '', // 采样部位
- samplerb: '', // 取样者
- reporting_dateb: '', // 出报告日期
- detection_resultb: '', // 检测结果
- sort:'1', //顺序号
- pass_examination:'1',//检验合格
- modifications:'',//修改标志
- },
- qualityFormFive: {
- // 内毒素检测
- detection_unit: '', // 检测单位
- sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- specimenb: '', // 取样标本
- concentrate_noc: '', // A浓缩液批号
- concentrateb_nod: '', // B浓
- sampling_locationb: '', // 采样部位
- samplerb: '', // 取样者
- reporting_dateb: '', // 出报告日期
- detection_resultb: '', // 检测结果
- sort:'1', //顺序号
- pass_examination:'1',//检验合格
- modifications:'',//修改标志
- },
- qualityFormSix: {
- // 内毒素检测
- detection_unit: '', // 检测单位
- sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- specimenb: '', // 取样标本
- concentrate_noc: '', // A浓缩液批号
- concentrateb_nod: '', // B浓
- sampling_locationb: '', // 采样部位
- samplerb: '', // 取样者
- reporting_dateb: '', // 出报告日期
- detection_resultb: '', // 检测结果
- sort:'1', //顺序号
- pass_examination:'1',//检验合格
- modifications:'',//修改标志
- },
- qualityFormSeven: {
- // 内毒素检测
- detection_unit: '', // 检测单位
- sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- specimenb: '', // 取样标本
- concentrate_noc: '', // A浓缩液批号
- concentrateb_nod: '', // B浓
- sampling_locationb: '', // 采样部位
- samplerb: '', // 取样者
- reporting_dateb: '', // 出报告日期
- detection_resultb: '', // 检测结果
- sort:'1', //顺序号
- pass_examination:'1',//检验合格
- modifications:'',//修改标志
- },
- disable: false,
- diableTwo: false,
- samplingSpecimen: [
- { id: 0, name: '请选择' },
- { id: 1, name: '透析液' },
- { id: 2, name: 'A浓缩液' },
- { id: 3, name: 'B浓缩液' },
- { id: 4, name: '置换液' },
- { id: 5, name: '透析用水' }
- ],
- samplingLocation: [
- { id: 0, name: '请选择' },
- { id: 1, name: '透析液入口' },
- { id: 2, name: '透析液取样口' },
- { id: 3, name: '置换液出口' },
- { id: 4, name: '透析机反渗水出口' },
- { id: 5, name:'反渗水末端取样口'}
- ],
- breakDown: [
- { id: 1, name: '是' },
- { id: 2, name: '待观察' },
- { id: 3, name: '未解决' }
- ],
- guaForm: {
- guarantee_date: moment(new Date()).format('YYYY-MM-DD'),
- start_time: '',
- arrive_time: '',
- finish_time: '',
- total_distance: '',
- failure_stage: '',
- fault_description: '',
- cause_analysis: '',
- treatment_process: '',
- images: '',
- exclude: '',
- reason: '',
- code_information: '',
- imageName: '',
- function_accessories_inspection:"",
- other_information:'',
- admin_user_id:this.$store.getters.xt_user.user.id,
- },
-
- filename: '',
- qiniuDomain: 'https://images.shengws.com/',
- uploadFileData: { token: '', key: '' },
- tShow: false,
- sShow: false,
- qShow: false,
- readisable: true,
- fileList: [],
- DisShow: true,
- DioShow: false,
- zhiShow: true,
- zhShow: false,
- UserShow: true,
- Ushow: false,
- restaurants: [],
- state: '',
- userdata: 0,
- disableThree: true,
- disableFour: true,
- disableFive: true,
- runDisable: true,
- warnShow: false,
- warnShowTwo: false,
- warnShowThree: false,
- bedZoneThree: [],
- bedNumberTwo: [],
- reverseMode: [
- { id: 0, name: '请选择' },
- { id: 1, name: '单级反渗' },
- { id: 2, name: '双级反渗' }
- ],
- tabIndex: '',
- deviceMode: [],
- zoneDisabled: false,
- bedid: '',
- unitType: '',
- classShow: false,
- modifications:[
- {id:1,name:"正常"},
- {id:2,name:"撤销"}
- ],
- device_type:""
- }
- },
- methods: {
- changeRun(val) {
- if (val === 1) {
- this.runDisable = true
- this.userform.failure_stage = ''
- }
- if (val === 2) {
- this.runDisable = false
- }
- },
-
- handleClick(tab, event) {
- // console.log(tab, event)
- },
- handleExceed(file) {
- // console.log(file)
- },
- handleRemove(file, fileList) {
-
- },
- beforeRemove(file, fileList) {
- // console.log(file, fileList)
- },
- handlePreview(file) {
- // console.log(file)
- },
- changetreatmentmode(val) {
- const checkedCount = val.length
- this.checkAll = checkedCount === this.treatmentmode.length
- this.isIndeterminate = checkedCount > 0 && checkedCount < this.treatmentmode.length
- },
- handleCheckAllChange(val) {
- this.form.treat_mode = val ? cityOptions : []
- this.isIndeterminate = false
- },
- handleCheckedCitiesChange(value) {
- const checkedCount = value.length
- this.checkAll = checkedCount === this.cities.length
- this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length
- },
-
- // 获取所有分区
- getAllSubregion() {
- getAllSubregion().then(response => {
- var zones = response.data.data.zones
- this.deviceType = zones
- var numbers = response.data.data.numbers
-
- var zone = [{ id: 0, name: '全部' }]
- for (let i = 0; i < zones.length; i++) {
- const item = zones[i]
- zone.push({ id: item.id, name: item.name })
- }
- var devicenumber = response.data.data.devicenumber
- this.bedZone = zone
-
- var zoness = [{ id: 0, name: '请选择' }]
- for (let i = 0; i < zones.length; i++) {
- const item = zones[i]
- zoness.push({ id: item.id, name: item.name })
- }
-
- var bed = [{ id: 0, number: '请选择' }]
- for (let i = 0; i < numbers.length; i++) {
- const item = numbers[i]
- bed.push({ id: item.id, number: item.number })
- }
- this.bedNumberTwo = bed
- this.bedZoneTwo = zones
- this.bedZoneThree = zoness
- this.bedNumber = numbers
-
- })
- },
-
- changeBedNumber(val) {
- this.forms.zone_id = val
- this.getAllMachine()
- },
- changeClassId(val) {
- this.forms.class_id = val
- this.getAllMachine()
- },
- changeDeviceId(val) {
-
- if (val === 1) {
- this.zoneDisabled = false
- } else {
- this.zoneDisabled = true
- }
- if(val == 0){
- this.zoneDisabled = false
- }
- this.forms.device_type = val
- this.getAllMachine()
- },
- getAllMachine() {
- getAllMachine(this.forms.zone_id, this.forms.device_type).then(response => {
- if (response.data.state === 1) {
- var addmahcer = response.data.data.addmahcer
- for(let j=0;j<addmahcer.length;j++){
- if(addmahcer[j].device_type == 1){
- addmahcer[j].bed_number = addmahcer[j].number
- }
- if(addmahcer[j].device_type == 2){
- addmahcer[j].bed_number = addmahcer[j].bed_number
- }
- if(addmahcer[j].device_type == 3){
- addmahcer[j].bed_number = addmahcer[j].bed_number
- }
- }
- this.tableDatatwo = addmahcer
- this.tabIndex = this.$route.query.index
- var id = this.$route.query.id
- for (let i = 0; i < this.tableDatatwo.length; i++) {
- if (this.tableDatatwo[i].id == id) {
- this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
- break
- }
-
- }
-
- }
- })
- },
- handleIndex(index) {
- this.tabIndex = index
- },
- handleCurrentChange(val) {
- console.log("val3223323223",val)
- // 通过设备型号区分质量控制
- this.device_type = val.device_type
- this.unitType = val.unit_type
- this.currentRow = val
- this.$forceUpdate()
- this.getMachineDetailById(val.id)
- this.equimentid = val.id
- this.userdata = val.id
- this.getAllPlanDetail(val.unit_type)
- this.getPatientInfo(val.id)
- // 获取基本信息
- this.getUserRegister(val.id)
- // 病人下机后插入数据
- this.getAutoData(val.id)
- this.GetUserTotalCount(val.bed_id)
- this.getTimeBeteen(val.id)
- this.getData(val.bed_id)
- if(val.device_type == 2){
- this.$refs.childSix.getlist()
- }
-
- },
- toParent(){
- console.log("处方23322332")
- this.$refs.childSix.getlist()
- },
- getAutoData(id) {
- getAutoData(id).then(response => {
- if (response.data.state === 1) {
- var dialysis = response.data.data.dialysis
- }
- })
- },
- getMachineDetailById(id) {
- getMachineDetailById(id).then(response => {
- if (response.data.state === 1) {
- var addmacher = response.data.data.addmacher
- var warning = response.data.data.warning
-
- var time = this.getTimestamp(this.userform.date) - warning.stime
- var germ = response.data.data.germ
-
- var timetwo = this.getTimestamp(this.userform.date) - germ.stime
-
- var clean = response.data.data.clean
- var timethree = this.getTimestamp(this.userform.date) - clean.stime
- var number = response.data.data.number
-
- this.Number = number
- if (addmacher.device_type === 1) {
- this.sShow = false
- this.qShow = false
- this.tShow = true
- this.DisShow = true
- this.DioShow = false
- this.zhiShow = true
- this.zhShow = false
- this.UserShow = true
- this.Ushow = false
- }
- if (addmacher.device_type === 2) {
- this.tShow = false
- this.qShow = false
- this.sShow = true
- this.DisShow = false
- this.DioShow = true
- this.zhiShow = true
- this.zhShow = false
- this.UserShow = true
- this.Ushow = false
- }
-
- if (addmacher.device_type === 3) {
- this.tShow = false
- this.sShow = false
- this.qShow = true
- this.DisShow = false
- this.DioShow = true
- this.zhiShow = false
- this.zhShow = true
- this.UserShow = false
- this.Ushow = true
- }
- var mode = response.data.data.mode
-
- var zone = response.data.data.zone
-
- const arr1 = []
-
- for (let index = 0; index < mode.length; index++) {
- if (mode[index].treate_mode === 1) {
- mode[index] = 'HD'
- }
-
- if (mode[index].treate_mode === 2) {
- mode[index] = 'HDF'
- }
-
- if (mode[index].treate_mode === 3) {
- mode[index] = 'HD+HP'
- }
-
- if (mode[index].treate_mode === 4) {
- mode[index] = 'HP'
- }
-
- if (mode[index].treate_mode === 5) {
- mode[index] = 'HF'
- }
-
- if (mode[index].treate_mode === 6) {
- mode[index] = 'SCUF'
- }
-
- if (mode[index].treate_mode === 7) {
- mode[index] = 'IUF'
- }
-
- if (mode[index].treate_mode === 8) {
- mode[index] = 'HFHD'
- }
-
- if (mode[index].treate_mode === 9) {
- mode[index] = 'HFHD+HP'
- }
- if (mode[index].treate_mode === 10) {
- mode[index] = 'PHF'
- }
-
- if (mode[index].treate_mode === 11) {
- mode[index] = 'HFR'
- }
- if (mode[index].treate_mode === 12) {
- mode[index] = 'HDF+HP'
- }
-
- if (mode[index].treate_mode === 13) {
- mode[index] = 'CRRT'
- }
-
- if (mode[index].treate_mode === 14) {
- mode[index] = '腹水回输'
- }
- arr1.push(mode[index])
- }
- this.form.treat_mode = arr1
- this.form.id = addmacher.id
- this.form.serial_number = addmacher.serial_number
- this.form.devicetype = addmacher.device_type
- this.form.bed_number = addmacher.bed_id
- this.form.bed_numbers = addmacher.bed_number
- this.form.beds = addmacher.bed_number
- this.form.device_name = addmacher.device_name
- this.form.manufacture_factory = addmacher.manufacture_factory
- this.form.service_manufacturer = addmacher.service_manufacturer
-
- // this.form.unit_type = addmacher.unit_type
-
- this.form.unit_type = parseInt(addmacher.device_mode)
- this.form.use_section = addmacher.use_section
- this.form.section_number = addmacher.section_number
- if (addmacher.buy_date !== 0) {
- this.form.buy_date = uParseTime(addmacher.buy_date, '{y}-{m}-{d}')
- }
- if (addmacher.install_date !== 0) {
- this.form.install_date = uParseTime(addmacher.install_date, '{y}-{m}-{d}')
- }
-
- if (addmacher.start_date !== 0) {
- this.form.start_date = uParseTime(addmacher.start_date, '{y}-{m}-{d}')
- }
- this.form.maintenance_engineer = addmacher.maintenace_engineer
- this.form.telephone = addmacher.telephone
- this.form.guarantee_date = addmacher.guarantee_date
- this.form.machine_status = addmacher.machine_status
- this.form.user_total = addmacher.user_total
- this.form.remarks = addmacher.remarks
-
- if (addmacher.rubbish_date !== 0) {
- this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
- }
-
- this.form.rubbish_reason = addmacher.rubbish_reason
- this.form.user_year = addmacher.user_year
- this.form.work_time = addmacher.work_time
-
- // eslint-disable-next-line eqeqeq
- if (addmacher.disinfection_mode == 0) {
- this.form.Disinfection_mode = 0
- } else {
- this.form.Disinfection_mode = addmacher.disinfection_mode
- }
-
- // eslint-disable-next-line eqeqeq
- if (addmacher.revers_mode == 0) {
- this.form.revers_mode = 0
- } else {
- this.form.revers_mode = addmacher.revers_mode
- }
- this.getAllSubregion()
- }
- })
- },
- UpdateMachine() {
- this.cancelShow = true
- this.confirmShow = true
- this.disableThree = false
- this.disableFour = false
- this.disableFive = false
- },
- UpdateMachineInfo(formName) {
- const arr2 = []
- this.form.treat_mode.map((item, index) => {
- const obj = {}
- if (item === 'HD') {
- obj.id = 1
- }
- if (item === 'HDF') {
- obj.id = 2
- }
- if (item === 'HD+HP') {
- obj.id = 3
- }
- if (item === 'HP') {
- obj.id = 4
- }
- if (item === 'HF') {
- obj.id = 5
- }
- if (item === 'SCUF') {
- obj.id = 6
- }
- if (item === 'IUF') {
- obj.id = 7
- }
- if (item === 'HFHD') {
- obj.id = 8
- }
- if (item === 'HFHD+HP') {
- obj.id = 9
- }
- if (item === 'PHF') {
- obj.id = 10
- }
- if (item === 'HFR') {
- obj.id = 11
- }
- if (item === 'HDF+HP') {
- obj.id = 12
- }
- if (item === 'CRRT') {
- obj.id = 13
- }
- if (item === '腹水回输') {
- obj.id = 14
- }
- arr2.push(obj.id)
- })
-
- this.form.treat_type = arr2
-
- var device_type = this.form.devicetype
- var device_types = parseInt(device_type)
- this.form.devicetype = device_types
-
- if (this.form.rubbish_reason === '') {
- this.form.rubbish_reason = 0
- }
- var rubbish_reason = this.form.rubbish_reason
- var rubbish_reasons = parseInt(rubbish_reason)
- this.form.rubbish_reason = rubbish_reasons
-
- var machine_status = this.form.machine_status
- var machine_statuss = parseInt(machine_status)
- this.form.machine_status = machine_statuss
-
- // if (this.form.bed_number === '') {
- // this.form.bed_number = 0
- // }
-
- var bed_numbers = this.form.bed_number
- var bed_numberss = parseInt(bed_numbers)
- this.form.bed_number = bed_numberss
- this.$refs[formName].validate(valid => {
- UpdateMachineInfo(this.form).then(response => {
- if (response.data.state === 1) {
- var addmacher = response.data.data.addmacher
- this.$message.success('修改成功')
- for (let i = 0; i < this.tableDatatwo.length; i++) {
- if (this.tableDatatwo[i].id == addmacher.id) {
- for (let j = 0; j < this.deviceMode.length; j++) {
- if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
- addmacher.device_mode = this.deviceMode[j].device_mode
-
- }
- }
-
- this.tableDatatwo[i] = addmacher
- // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
- }
- }
- // this.getAllMachine()
- // this.getAllSubregion()
- this.$refs.singleTable.setCurrentRow(addmacher)
- this.$forceUpdate()
- }else{
- this.$message.error("修改失败");
- }
- })
- })
- },
-
- // eslint-disable-next-line no-irregular-whitespace
- // 更新水处理机
- UpdateMachineInfoTwo(formName) {
- var device_type = this.form.devicetype
- var device_types = parseInt(device_type)
- this.form.devicetype = device_types
-
- if (this.form.rubbish_reason === '') {
- this.form.rubbish_reason = 0
- }
- var rubbish_reason = this.form.rubbish_reason
- var rubbish_reasons = parseInt(rubbish_reason)
- this.form.rubbish_reason = rubbish_reasons
-
- var machine_status = this.form.machine_status
- var machine_statuss = parseInt(machine_status)
- this.form.machine_status = machine_statuss
-
- var revers_mode = this.form.revers_mode
- var revers_modes = parseInt(revers_mode)
- this.form.revers_mode = revers_modes
-
- var disinfecction_modes = this.form.Disinfection_mode
- var disinfecction_modess = parseInt(disinfecction_modes)
- this.form.Disinfection_mode = disinfecction_modess
-
- this.$refs[formName].validate(valid => {
- if (valid) {
- UpdateMachineInfoTwo(this.form).then(response => {
- if (response.data.state === 1) {
- // eslint-disable-next-line no-unused-vars
- var addmacher = response.data.data.addmacher
- this.$message.success('修改成功')
- for (let i = 0; i < this.tableDatatwo.length; i++) {
- if (this.tableDatatwo[i].id == addmacher.id) {
- for (let j = 0; j < this.deviceMode.length; j++) {
- if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
- addmacher.device_mode = this.deviceMode[j].device_mode
- // this.$forceUpdate()
- }
- }
-
- this.tableDatatwo[i] = addmacher
- // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
- }
- }
- // this.getAllMachine()
- this.getAllSubregion()
- this.$refs.singleTable.setCurrentRow(addmacher)
- this.$forceUpdate()
- }
- })
- }
- })
- },
-
- UpdateMacheineTwo(formName) {
- var device_type = this.form.devicetype
- var device_types = parseInt(device_type)
- this.form.devicetype = device_types
-
- if (this.form.rubbish_reason === '') {
- this.form.rubbish_reason = 0
- }
- var rubbish_reason = this.form.rubbish_reason
- var rubbish_reasons = parseInt(rubbish_reason)
- this.form.rubbish_reason = rubbish_reasons
-
- var machine_status = this.form.machine_status
- var machine_statuss = parseInt(machine_status)
- this.form.machine_status = machine_statuss
-
- this.$refs[formName].validate(valid => {
- UpdateMacheineTwo(this.form).then(response => {
- if (response.data.state === 1) {
- var addmacher = response.data.data.addmacher
- this.$message.success('修改成功')
- for (let i = 0; i < this.tableDatatwo.length; i++) {
- if (this.tableDatatwo[i].id == addmacher.id) {
- for (let j = 0; j < this.deviceMode.length; j++) {
- if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
- addmacher.device_mode = this.deviceMode[j].device_mode
- // this.$forceUpdate()
- }
- }
-
- this.tableDatatwo[i] = addmacher
- // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
- }
- }
- // this.getAllMachine()
- this.getAllSubregion()
- this.$refs.singleTable.setCurrentRow(addmacher)
- this.$forceUpdate()
- }
- })
- })
- },
- cleanMainchine() {
- this.confirmShow = false
- this.cancelShow = false
- },
- addPlan() {
- this.$refs.planForm.open()
- },
- ToReminders() {
- this.$refs.remanderform.open()
- },
- changeCheck() {
- this.$refs.multipleTableOne.clearSelection()
- if (this.checkAllStatusOne) {
- this.$refs.multipleTableOne.toggleAllSelection()
- }
- },
- handleSelectionChange(val) {
- this.selectMachinesOne = val
- },
- changeCheckOne() {
- this.$refs.multipleTable.clearSelection()
- if (this.checkAllStatus) {
- this.$refs.multipleTable.toggleAllSelection()
- }
- },
- handleSelectionChangeOne(val) {
- this.selectMachines = val
- },
- changeMachineStatus(val) {
- if (val === 4) {
- this.readisable = false
- } else {
- this.readisable = true
- this.form.rubbish_date = ''
- this.form.rubbish_reason = ''
- }
- },
- getAllPlan() {
- getAllPlan().then(response => {
- if (response.data.state === 1) {
- var plan = response.data.data.plan
- console.log("plan=====",plan )
- for (let index = 0; index < plan.length; index++) {
- if (plan[index].time === 1) {
- plan[index].time = '周一'
- }
-
- if (plan[index].time === 2) {
- plan[index].time = '周二'
- }
-
- if (plan[index].time === 3) {
- plan[index].time = '周三'
- }
-
- if (plan[index].time === 4) {
- plan[index].time = '周四'
- }
- if (plan[index].time === 5) {
- plan[index].time = '周五'
- }
- if (plan[index].time === 6) {
- plan[index].time = '周六'
- }
- if (plan[index].time === 7) {
- plan[index].time = '周日'
- }
-
- if (plan[index].classtime === 1) {
- plan[index].classtime = '上午'
- }
- if (plan[index].classtime === 2) {
- plan[index].classtime = '下午'
- }
- if (plan[index].classtime === 3) {
- plan[index].classtime = '晚上'
- }
-
- if (plan[index].way === 0) {
- plan[index].way = '/'
- }
-
- if (plan[index].way === 1) {
- plan[index].way = '擦拭'
- }
- if (plan[index].way === 2) {
- plan[index].way = '化学消毒'
- }
-
- if (plan[index].machine_disinfectant === 0) {
- plan[index].machine_disinfectant = '/'
- }
-
- if (plan[index].machine_disinfectant === 1) {
- plan[index].machine_disinfectant = '0.22%季铵盐'
- }
-
- if (plan[index].machine_disinfectant === 2) {
- plan[index].machine_disinfectant = '500mg/l含氯消毒剂'
- }
- if (plan[index].machine_disinfectant === 3) {
- plan[index].machine_disinfectant = '1000mg/l含氯消毒剂'
- }
- if (plan[index].machine_disinfectant === 4) {
- plan[index].machine_disinfectant = '1500mg/l含氯消毒剂'
- }
- if(plan[index].machine_disinfectant === 5){
- plan[index].machine_disinfectant = "消毒湿巾"
- }
-
- if (plan[index].disinfectan_way === 0) {
- plan[index].disinfectan_way = '/'
- }
-
- if (plan[index].disinfectan_way === 1) {
- plan[index].disinfectan_way = '热化学消毒'
- }
-
- if (plan[index].disinfectan_way === 2) {
- plan[index].disinfectan_way = '化学消毒 + 除钙'
- }
- if (plan[index].disinfectan_way === 3) {
- plan[index].disinfectan_way = '热化学消毒 + 除钙'
- }
-
- if (plan[index].disinfectan_way === 4) {
- plan[index].disinfectan_way = '热消毒'
- }
- if (plan[index].disinfectan_way === 5) {
- plan[index].disinfectan_way = '化学消毒'
- }
- if (plan[index].disinfectan_way === 6) {
- plan[index].disinfectan_way = '除钙'
- }
- if (plan[index].disinfectan_way === 7) {
- plan[index].disinfectan_way = '清洗'
- }
-
- if (plan[index].disinfectant === 0) {
- plan[index].disinfectant = '/'
- }
-
- if (plan[index].disinfectant === 1) {
- plan[index].disinfectant = '20%柠檬酸'
- }
- if (plan[index].disinfectant === 2) {
- plan[index].disinfectant = '25%柠檬酸'
- }
- if (plan[index].disinfectant === 3) {
- plan[index].disinfectant = '50%柠檬酸'
- }
- if (plan[index].disinfectant === 4) {
- plan[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
- }
- if (plan[index].disinfectant === 5) {
- plan[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
- }
- if (plan[index].disinfectant === 6) {
- plan[index].disinfectant = '0.2%过氧化乙酸'
- }
- if (plan[index].disinfectant === 7) {
- plan[index].disinfectant = '10%冰醋酸'
- }
- if (plan[index].disinfectant === 8) {
- plan[index].disinfectant = '50%冰醋酸'
- }
- if (plan[index].disinfectant === 9) {
- plan[index].disinfectant = '5%次氯酸钠'
- }
- if (plan[index].disinfectant === 10) {
- plan[index].disinfectant = '25%的柠檬酸+5%次氯酸钠'
- }
- }
- this.tableData = plan
- }
- })
- },
- getAllPlanDetail(unit_type) {
- getAllPlanDetail(unit_type).then(response => {
- if (response.data.state === 1) {
- var plandetail = response.data.data.plandetail
- console.log("plandetail",plandetail)
- for (let index = 0; index < plandetail.length; index++) {
- if (plandetail[index].time === 1) {
- plandetail[index].time = '周一'
- }
-
- if (plandetail[index].time === 2) {
- plandetail[index].time = '周二'
- }
-
- if (plandetail[index].time === 3) {
- plandetail[index].time = '周三'
- }
-
- if (plandetail[index].time === 4) {
- plandetail[index].time = '周四'
- }
- if (plandetail[index].time === 5) {
- plandetail[index].time = '周五'
- }
- if (plandetail[index].time === 6) {
- plandetail[index].time = '周六'
- }
- if (plandetail[index].time === 7) {
- plandetail[index].time = '周日'
- }
-
- if (plandetail[index].classtime === 1) {
- plandetail[index].classtime = '上午'
- }
- if (plandetail[index].classtime === 2) {
- plandetail[index].classtime = '下午'
- }
- if (plandetail[index].classtime === 3) {
- plandetail[index].classtime = '晚上'
- }
-
- if (plandetail[index].way === 0) {
- plandetail[index].way = '/'
- }
-
- if (plandetail[index].way === 1) {
- plandetail[index].way = '擦拭'
- }
- if (plandetail[index].way === 2) {
- plandetail[index].way = '化学消毒'
- }
-
- if (plandetail[index].machine_disinfectant === 0) {
- plandetail[index].machine_disinfectant = '/'
- }
-
- if (plandetail[index].machine_disinfectant === 1) {
- plandetail[index].machine_disinfectant = '0.22%季铵盐'
- }
-
- if (plandetail[index].machine_disinfectant === 2) {
- plandetail[index].machine_disinfectant = '500mg/l含氯消毒剂'
- }
- if (plandetail[index].machine_disinfectant === 3) {
- plandetail[index].machine_disinfectant = '1000mg/l含氯消毒剂'
- }
- if (plandetail[index].machine_disinfectant === 4) {
- plandetail[index].machine_disinfectant = '1500mg/l含氯消毒剂'
- }
- if(plandetail[index].machine_disinfectant === 5){
- plandetail[index].machine_disinfectant = "消毒湿巾"
- }
-
- if (plandetail[index].disinfectan_way === 0) {
- plandetail[index].disinfectan_way = '/'
- }
-
- if (plandetail[index].disinfectan_way === 1) {
- plandetail[index].disinfectan_way = '热化学消毒'
- }
-
- if (plandetail[index].disinfectan_way === 2) {
- plandetail[index].disinfectan_way = '化学消毒 + 除钙'
- }
- if (plandetail[index].disinfectan_way === 3) {
- plandetail[index].disinfectan_way = '热化学消毒 + 除钙'
- }
-
- if (plandetail[index].disinfectan_way === 4) {
- plandetail[index].disinfectan_way = '热消毒'
- }
- if (plandetail[index].disinfectan_way === 5) {
- plandetail[index].disinfectan_way = '化学消毒'
- }
- if (plandetail[index].disinfectan_way === 6) {
- plandetail[index].disinfectan_way = '除钙'
- }
- if (plandetail[index].disinfectan_way === 7) {
- plandetail[index].disinfectan_way = '清洗'
- }
-
- if (plandetail[index].disinfectant === 0) {
- plandetail[index].disinfectant = '/'
- }
-
- if (plandetail[index].disinfectant === 1) {
- plandetail[index].disinfectant = '20%柠檬酸'
- }
- if (plandetail[index].disinfectant === 2) {
- plandetail[index].disinfectant = '25%柠檬酸'
- }
- if (plandetail[index].disinfectant === 3) {
- plandetail[index].disinfectant = '50%柠檬酸'
- }
- if (plandetail[index].disinfectant === 4) {
- plandetail[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
- }
- if (plandetail[index].disinfectant === 5) {
- plandetail[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
- }
- if (plandetail[index].disinfectant === 6) {
- plandetail[index].disinfectant = '0.2%过氧化乙酸'
- }
- if (plandetail[index].disinfectant === 7) {
- plandetail[index].disinfectant = '10%冰醋酸'
- }
- if (plandetail[index].disinfectant === 8) {
- plandetail[index].disinfectant = '50%冰醋酸'
- }
- if (plandetail[index].disinfectant === 9) {
- plandetail[index].disinfectant = '5%次氯酸钠'
- }
- if (plandetail[index].disinfectant === 10) {
- plandetail[index].disinfectant = '25%的柠檬酸+5%次氯酸钠'
- }
- }
- this.planData = plandetail
- }
- })
- },
- EditMachine(id, index) {
- this.dialogVisible = true
- EditPlanDetail(id).then(response => {
- if (response.data.state === 1) {
- var plan = response.data.data.plan
- this.machineform.id = plan.id
- this.machineform.device_type = plan.device_type
- this.machineform.disinfec_time = plan.disinfec_time
- this.machineform.time = plan.time
- this.machineform.class_time = plan.classtime
- this.machineform.way = plan.way
- this.machineform.machine_disinfectant = plan.machine_disinfectant
- this.machineform.disinfectant_way = plan.disinfectan_way
- this.machineform.disinfectant = plan.disinfectant
- // this.getPatientDetail(this.unitType, this.$route.query.bedid)
- }
- })
- },
- UpdatePlanInfo(formName) {
- var devicetype = this.machineform.device_type
- var devicetypes = parseInt(devicetype)
- this.machineform.device_type = devicetypes
-
- if (this.machineform.disinfec_time === '') {
- this.machineform.disinfec_time = ''
- }
- if (this.machineform.disinfec_time !== '') {
- var disinfectimes = this.machineform.disinfec_time
- var disinfectime = parseInt(disinfectimes)
- this.machineform.disinfec_time = disinfectime
- }
-
- var times = this.machineform.time
- var time = parseInt(times)
- this.machineform.time = time
-
- var classtimes = this.machineform.class_time
- var classtime = parseInt(classtimes)
- this.machineform.class_time = classtime
-
- var ways = this.machineform.way
- var way = parseInt(ways)
- this.machineform.way = way
-
- var machinedisinfectant = this.machineform.machine_disinfectant
- var machinedisinfectants = parseInt(machinedisinfectant)
- this.machineform.machine_disinfectant = machinedisinfectants
-
- var disinfectantways = this.machineform.disinfectant_way
- var disinfectantway = parseInt(disinfectantways)
- this.machineform.disinfectant_way = disinfectantway
-
- var disinfectants = this.machineform.disinfectant
- var disinfectant = parseInt(disinfectants)
- this.machineform.disinfectant = disinfectant
- UpdatePlanInfo(this.machineform).then(response => {
- if (response.data.state === 1) {
- var plan = response.data.data.plan
- this.dialogVisible = false
- this.$message.success('修改成功')
- this.getAllPlanDetail(this.unitType)
- this.getAllPlan()
- }
- })
- },
- openDeleteMahcine() {
- if (this.selectMachines.length == 0) {
- this.$message.error('请选择要删除的信息')
- return false
- }
- this.$confirm(
- '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
- '删除提示',
- {
- dangerouslyUseHTMLString: true,
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- )
- .then(() => {
- var ids = []
- var idMap = {}
- for (const index in this.selectMachines) {
- ids.push(this.selectMachines[index].id)
- idMap[this.selectMachines[index].id] = this.selectMachines[
- index
- ].id
- }
-
- DeletePlans({ ids: ids }).then(response => {
- // eslint-disable-next-line eqeqeq
- if (response.data.state == 1) {
- // eslint-disable-next-line no-unused-vars
- var msg = response.data.data.msg
- var planDataLength = this.planData.length
- for (let index = planDataLength - 1; index >= 0; index--) {
- if (this.planData[index].id in idMap) {
- this.planData.splice(index, 1)
- }
- }
- var planDataLengths = this.tableData.length
- for (let index = planDataLengths - 1; index >= 0; index--) {
- if (this.tableData[index].id in idMap) {
- this.tableData.splice(index, 1)
- }
- }
- this.$message.success('删除消毒计划成功')
- } else {
- this.$message.error('删除消毒计划失败')
- }
- })
- .catch(e => {})
- })
- .catch(() => {
- return false
- })
- },
- openDelete(id, index) {
- // eslint-disable-next-line no-undef
- this.$confirm(
- '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
- '删除提示',
- {
- dangerouslyUseHTMLString: true,
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- ).then(() => {
- openDelete(id, index).then(response => {
- if (response.data.state === 1) {
- var msg = response.data.data.msg
- this.tableData.splice(index, 1)
- this.planData.splice(index, 1)
- }
- })
- })
- },
- openDeleteMahcineOne() {
- if (this.selectMachinesOne.length == 0) {
- this.$message.error('请选择要删除的信息')
- return false
- }
- this.$confirm(
- '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
- '删除提示',
- {
- dangerouslyUseHTMLString: true,
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- )
- .then(() => {
- var ids = []
- var idMap = {}
- for (const index in this.selectMachinesOne) {
- ids.push(this.selectMachinesOne[index].id)
- idMap[this.selectMachinesOne[index].id] = this.selectMachinesOne[
- index
- ].id
- }
-
- DeletePlans({ ids: ids })
- .then(response => {
- if (response.data.state == 1) {
- var msg = response.data.data.msg
-
- var planDataLength = this.tableData.length
- for (let index = planDataLength - 1; index >= 0; index--) {
- if (this.tableData[index].id in idMap) {
- this.tableData.splice(index, 1)
- }
- }
- var planDataLengths = this.planData.length
- for (let index = planDataLengths - 1; index >= 0; index--) {
- if (this.planData[index].id in idMap) {
- this.planData.splice(index, 1)
- }
- }
- this.$message.success('删除消毒计划成功')
- } else {
- this.$message.error('删除消毒计划失败')
- }
- })
- .catch(e => {})
- })
- .catch(() => {
- return false
- })
- },
- getAllEquimentName() {
- getAllEquimentName().then(response => {
- if (response.data.state === 1) {
- var equit = response.data.data.equit
- // this.DeviceType = equit
- }
- })
- },
- clickQuery() {
- this.$refs.multipleform.open()
- },
- getPatientInfo(bedid) {
- getPatientInfo(bedid).then(response => {
- if (response.data.state === 1) {
- var schedules = response.data.data.schedules
- // this.patientName = schedules
- }
- })
- },
- ChangeClass(id) {
- ChangeClass(this.equimentid, id).then(response => {
- if (response.data.state === 1) {
- var patients = response.data.data.patients
-
- if (patients.is_infectious === 0) {
- this.userform.contagion = ''
- }
- if (patients.is_infectious === 1) {
- this.userform.contagion = '无'
- }
- if (patients.is_infectious === 2) {
- this.userform.contagion = '有'
- }
- this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
- this.userform.patient_name = patients.name
- this.userform.patient_id = patients.patient_id
- var zone = response.data.data.zone
- this.userform.zone = zone.id
- var number = response.data.data.number
- this.userform.bed_number = number.id
- var order = response.data.data.order
- this.userform.start_time = uParseTime(order.start_time, '{y}-{m}-{d} {h}:{i}')
- this.userform.end_time = uParseTime(order.end_time, '{y}-{m}-{d} {h}:{i}')
- var prescription = response.data.data.prescription
- this.userform.dialysis_mode = prescription.mode_id
- var dislysis = response.data.data.dislysis
- this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
- this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
- this.userform.weight_loss = dislysis.weight_loss
- }
- })
- },
- updateTimes(time) {
- if (time < 0) {
- return ''
- } else {
- return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
- }
- },
- getTimes(time) {
- return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
- },
- getTime(time) {
- return uParseTime(time, '{y}-{m}-{d}')
- },
-
- SaveInformation(formName) {
- // if (this.userform.classtype === '') {
- // this.userform.classtype = 0
- // }
- console.log("form233232322323",this.userform.classtype)
- if(this.userform.classtype!=""){
- var classtypes = this.userform.classtype
- var classtype = parseInt(classtypes)
- this.userform.classtype = classtype
- }
-
-
- var zone = this.userform.zone
- var zones = parseInt(zone)
- this.userform.zone = zones
-
- var bednumber = this.userform.bed_number
- var bednumbers = parseInt(bednumber)
- this.userform.bed_number = bednumbers
-
- var dialysismode = this.userform.dialysis_mode
- var dialysis_mode = parseInt(dialysismode)
- this.userform.dialysis_mode = dialysis_mode
-
- if (this.userform.failure_stage === '') {
- this.userform.failure_stage = 0
- }
-
- if (this.userform.dialysis_checked === '') {
- this.userform.dialysis_checked = 0
- }
-
- if (this.userform.dialysis_checked === true) {
- this.userform.dialysis_checked = 1
- }
-
- if (this.userform.dialysis_checked === false) {
- this.userform.dialysis_checked = 2
- }
-
- if (this.userform.germ_checked === '') {
- this.userform.germ_checked = 0
- }
-
- if (this.userform.germ_checked === true) {
- this.userform.germ_checked = 1
- }
- if (this.userform.germ_checked === false) {
- this.userform.germ_checked = 2
- }
-
- if (this.userform.dialysis_name === '') {
- this.userform.dialysis_name = 0
- }
- var dialysis_name = this.userform.dialysis_name
- var dialysis = parseInt(dialysis_name)
- this.userform.dialysis_name = dialysis
-
- if (this.userform.germ_name === '') {
- this.userform.germ_name = 0
- }
- var germname = this.userform.germ_name
- var germames = parseInt(germname)
- this.userform.germ_name = germames
-
- if (this.userform.clean === '') {
- this.userform.clean = 0
- }
-
- if (this.userform.clean === true) {
- this.userform.clean = 1
- }
-
- if (this.userform.clean === false) {
- this.userform.clean = 2
- }
-
- // eslint-disable-next-line eqeqeq
- // if (this.userform.start_time == '') {
- // this.userform.start_time = '0'
- // }
- // // eslint-disable-next-line eqeqeq
- // if (this.userform.end_time == '') {
- // this.userform.end_time = '0'
- // }
-
- // // eslint-disable-next-line eqeqeq
- // if (this.userform.starttime == '') {
- // this.userform.starttime = '0'
- // }
- // // eslint-disable-next-line eqeqeq
- // if (this.userform.endtime == '') {
- // this.userform.endtime = '0'
- // }
-
- if (this.userform.hyperfiltratio === '') {
- this.userform.hyperfiltratio = 0
- }
- var hyperfiltratio = this.userform.hyperfiltratio
- var hyperfiltratios = parseFloat(hyperfiltratio)
- this.userform.hyperfiltratio = hyperfiltratios
-
- if (this.userform.weight_loss === '') {
- this.userform.weight_loss = 0
- }
- var weightloss = this.userform.weight_loss
- var weidht = parseFloat(weightloss)
- this.userform.weight_loss = weidht
-
- if (this.userform.user_total === '0') {
- this.userform.user_total = 0
- }
- if (this.userform.user_total == ""){
- this.userform.user_total = 0
- }
-
- if(this.userform.disinfection == ""){
- this.userform.disinfection = 0
- }
- if(this.userform.disinfection_status == ""){
- this.userform.disinfection_status = 0
- }
- this.userform.user_total = parseInt(this.userform.user_total)
-
- console.log("user_form",this.userform)
-
- this.$refs[formName].validate((valid) => {
- if (valid) {
- SaveInformation(this.equimentid, this.userform).then(response => {
- if (response.data.state === 1) {
- // eslint-disable-next-line no-unused-vars
- var information = response.data.data.information
- var infor = response.data.data.infor
- this.userform.start_time = ''
- this.userform.end_time = ''
- this.userform.starttime = ''
- this.userform.endtime = ''
- this.userform.date = ''
- // this.userform.classtype = ''
- this.userform.zone = ''
- this.userform.patient_name = ''
- this.userform.sign_name = ''
- this.userform.bed_number = ''
- this.userform.hyperfiltratio = ''
- this.userform.weight_loss = ''
- this.userform.dialysis_time = ''
- this.$message.success('添加成功')
- // this.$refs.child.getInformationData()
- }
- })
- }
- })
- },
- toLink() {
- window.location.href = this.guaForm.images
- },
- // 获取签名
- getAllOrganization() {
- getAllOrganization().then(response => {
- if (response.data.state === 1) {
- var approle = response.data.data.approle
- this.autograph = approle
- this.sampling = approle
- }
- })
- },
- getUserRegister(id) {
- getUserRegister(id).then(response => {
- if (response.data.state === 1) {
- var information = response.data.data.information
- var role = response.data.data.role
- var dislysis = response.data.data.dislysis
-
- this.userform.id = information.id
- if (information.date === 0) {
- this.userform.date = moment(new Date()).format('YYYY-MM-DD')
- } else {
- this.userform.date = uParseTime(information.date, '{y}-{m}-{d}')
- }
-
- this.userform.classtype = information.class?information.class:""
- this.userform.zone = information.zone
- this.userform.bed_number = information.bed_number
- this.userform.patient_name = information.name
- this.userform.patient_id = information.patient_id
- this.userform.contagion = information.contagion
- this.userform.dialysis_mode = information.dialysis_mode
- if(information.start_time > 0){
- this.userform.start_time = this.updateTimes(information.start_time)
- }else{
- this.userform.start_time = ""
- }
- if(information.end_time >0){
- this.userform.end_time = this.updateTimes(information.end_time)
- }else{
- this.userform.end_time = ""
- }
-
-
- // this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
- if (information.hyperfiltratio === '') {
- this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
- } else {
- this.userform.hyperfiltratio = information.hyperfiltratio
- }
- if (information.dialysis_hour === '') {
- this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
- } else {
- this.userform.dialysis_time = information.dialysis_hour
- }
- if (information.weight_loss === '') {
- this.userform.weight_loss = dislysis.weight_loss
- } else {
- this.userform.weight_loss = information.weight_loss
- }
-
- this.userform.warning_value = information.warning_value
- this.userform.user_total = information.user_total
- if (information.move === 0) {
- this.userform.run = 1
- } else {
- this.userform.run = information.move
- }
- this.userform.failure_stage = information.failure_stage
- this.userform.fault_description = information.fault_description
- this.userform.code_information = information.code_information
- this.userform.disinfect_type = information.disinfect_type
- if(information.disinfection == 0){
- this.userform.disinfection = ""
- }else{
- this.userform.disinfection = information.disinfection
- }
-
- this.userform.machine_run = information.machine_run
- this.userform.fluid_path = information.fluid_path
- this.userform.disinfectant = information.disinfectant
- if(information.disinfection_status == 0){
- this.userform.disinfection_status = ""
- }else{
- this.userform.disinfection_status = information.disinfection_status
- }
-
- this.userform.disinfection_residue = information.disinfection_residue
- this.userform.longtime = information.long_time
- if(information.disinfec_startime >0){
- this.userform.starttime = this.updateTimes(information.disinfec_startime)
- }else{
- this.userform.starttime= ""
- }
-
- if(information.disinfec_endtime >0){
- this.userform.endtime = this.updateTimes(information.disinfec_endtime)
- }else{
- this.userform.endtime = ""
- }
-
-
-
- if (information.dialysis_checked === 1) {
- this.userform.dialysis_checked = true
- }
-
- if (information.dialysis_checked === 0) {
- this.userform.dialysis_checked = false
- }
-
- if (information.dialysis_checked === 2) {
- this.userform.dialysis_checked = false
- }
-
- this.userform.dialysis_name = information.dialysis_name
- this.userform.norms = information.norms
- this.userform.dialysis_concentration = information.dialysis_concentration
-
- if (information.germ_checked === 0) {
- this.userform.germ_checked = false
- }
-
- if (information.germ_checked === 2) {
- this.userform.germ_checked = false
- }
-
- if (information.germ_checked === 1) {
- this.userform.germ_checked = true
- }
-
- this.userform.germ_name = information.germ_name
- this.userform.germ_number = information.germ_number
- if (information.clean === 1) {
- this.userform.clean = true
- }
- if (information.clean === 0) {
- this.userform.clean = false
- }
-
- if (information.clean === 2) {
- this.userform.clean = false
- }
- // eslint-disable-next-line eqeqeq
- if (information.admin_user_id == 0) {
- this.userform.sign_name = ''
- } else {
- this.userform.sign_name = information.admin_user_id
- }
- this.$forceUpdate()
- }
- })
- },
- getOrgName() {
- getOrgName().then(response => {
- if (response.data.state === 1) {
- var org = response.data.data.org
- this.qualityForm.detection_unit = org.org_name
- this.qualityFormTwo.detection_unit = org.org_name
- this.qualityFormThree.detection_unit = org.org_name
- this.qualityFormFour.detection_unit =org.org_name
- this.qualityFormFive.detection_unit = org.org_name
- this.qualityFormSix.detection_unit = org.org_name
- this.qualityFormSeven.detection_unit = org.org_name
- }
- })
- },
- SaveBacteria(formName) {
- if (this.qualityForm.specimen === '') {
- this.qualityForm.specimen = 0
- }
- var specimen = this.qualityForm.specimen
- var specimens = parseInt(specimen)
- this.qualityForm.specimen = specimens
-
- if (this.qualityForm.sampling_locationa === '') {
- this.qualityForm.sampling_locationa = 0
- }
- var samplinglocationa = this.qualityForm.sampling_locationa
- var samplinglocationas = parseInt(samplinglocationa)
- this.qualityForm.sampling_locationa = samplinglocationas
-
- // if(this.qualityForm.pass_examination!=''){
- // this.qualityForm.pass_examination = parseInt(this.qualityForm.pass_examination)
- // }
- if(this.qualityForm.modifications!=''){
- this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
- }
-
- console.log("3333333",this.qualityForm)
-
- this.$refs[formName].validate(response => {
- SaveBacteria(this.equimentid, this.qualityForm).then(response => {
- if (response.data.state === 1) {
- var culture = response.data.data.culture
- this.$message.success('保存成功')
- this.qualityForm.specimen = '',
- this.qualityForm.concentrate_noa = '',
- this.qualityForm.concentrate_nob = '',
- this.qualityForm.sampling_locationa = '',
- this.qualityForm.detection_result = ''
- this.$refs.mychild.getAllQulityInfo()
- }else{
- this.$message.error("创建失败")
- }
- })
- })
- },
- cleanSaveBacteria() {
- this.qualityForm.specimen = '',
- this.qualityForm.concentrate_noa = '',
- this.qualityForm.concentrate_nob = '',
- this.qualityForm.sampling_locationa = '',
- this.qualityForm.sampler = ''
- this.qualityForm.reporting_date = ''
- this.qualityForm.detection_result = ''
- },
- SaveLincomycin(formName) {
-
- this.$refs[formName].validate((valid) => {
- if (this.qualityFormTwo.specimenb === '') {
- this.qualityFormTwo.specimenb = 0
- }
-
- var specimen = this.qualityFormTwo.specimenb
- var specimenb = parseInt(specimen)
- this.qualityFormTwo.specimenb = specimenb
-
- if (this.qualityFormTwo.sampling_locationb === '') {
- this.qualityFormTwo.sampling_locationb = 0
- }
- var sampling = this.qualityFormTwo.sampling_locationb
- var samplings = parseInt(sampling)
- this.qualityFormTwo.sampling_locationb = samplings
-
-
- if(this.qualityFormTwo.modifications!=''){
- this.qualityFormTwo.modifications = parseInt(this.qualityFormTwo.modifications)
- }
-
-
- if (valid) {
- SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
- if (response.data.state === 1) {
- var dialysate = response.data.data.dialysate
-
- this.$message.success('保存成功')
- this.qualityFormTwo.specimenb = ''
- this.qualityFormTwo.concentrate_noc = ''
- this.qualityFormTwo.concentrateb_nod = ''
- this.qualityFormTwo.sampling_locationb = ''
- this.qualityFormTwo.detection_resultb = ''
-
-
- this.$refs.mychild.getAllQulityInfo()
- }
- })
- }
- })
- },
- cleanLincomycin() {
- this.qualityFormTwo.specimenb = ''
- this.qualityFormTwo.concentrate_noc = ''
- this.qualityFormTwo.concentrateb_nod = ''
- this.qualityFormTwo.sampling_locationb = ''
- this.qualityFormTwo.samplerb = ''
- this.qualityFormTwo.reporting_dateb = ''
- this.qualityFormTwo.detection_resultb = ''
- },
- SaveQualityControl(formName) {
- this.$refs[formName].validate((valid) => {
- if (valid) {
-
- if(this.qualityFormThree.modifications!=''){
- this.qualityFormThree.modifications = parseInt(this.qualityFormThree.modifications)
- }
-
- SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
- if (response.data.state === 1) {
- var ion = response.data.data.ion
- this.$message.success('保存成功')
- this.$refs.mychild.getAllQulityInfo()
- this.qualityFormThree.concentrate_nof = ''
- this.qualityFormThree.concentrate_nog = ''
- this.qualityFormThree.actual_na = ''
- this.qualityFormThree.actual_pna = ''
- this.qualityFormThree.actual_k = ''
- this.qualityFormThree.actual_ca = ''
- this.qualityFormThree.actual_ci = ''
- this.qualityFormThree.actual_hco = ''
- this.qualityFormThree.actual_mg = ''
- this.qualityFormThree.actual_ph = ''
- this.qualityFormThree.remakes = ''
- }
- })
- }
- })
- },
- cleanQuality() {
- this.qualityFormThree.samplerc = ''
- this.qualityFormThree.concentrate_nof = ''
- this.qualityFormThree.concentrate_nog = ''
- this.qualityFormThree.date_reportc = ''
- this.qualityFormThree.actual_na = ''
- this.qualityFormThree.actual_pna = ''
- this.qualityFormThree.actual_k = ''
- this.qualityFormThree.actual_ca = ''
- this.qualityFormThree.actual_ci = ''
- this.qualityFormThree.actual_hco = ''
- this.qualityFormThree.actual_mg = ''
- this.qualityFormThree.actual_ph = ''
- this.qualityFormThree.remakes = ''
- },
-
- changeSpecimen(val) {
- if (val === 0) {
- this.disable = false
- this.diableTwo = false
- }
- if (val === 1) {
- this.disable = false
- this.diableTwo = false
- }
- if (val === 2) {
- this.qualityForm.concentrate_nob = ''
- this.qualityFormTwo.concentrateb_nod = ''
- this.diableTwo = true
- this.disable = false
- }
- if (val === 3) {
- this.qualityForm.concentrate_noa = ''
- this.qualityFormTwo.concentrate_noc = ''
- this.disable = true
- this.diableTwo = false
- }
- if (val === 4) {
- this.disable = false
- this.diableTwo = false
- }
- if (val === 5) {
- this.disable = false
- this.diableTwo = false
- }
- },
- beforeUploadFile(file) {
- var testmsg = file.name.substring(file.name.lastIndexOf('.') + 1)
- const extension = testmsg === 'jpg' || testmsg === 'JPG' || testmsg === 'png' || testmsg === 'PNG' || testmsg === 'gif' || testmsg === 'GIF'
- if (!extension) {
- // eslint-disable-next-line no-mixed-spaces-and-tabs
- this.$message({
- // eslint-disable-next-line no-mixed-spaces-and-tabs
- message: '上传文件只能是jpg或者png或者gif格式!',
- type: 'error'
- })
- return false// 必须加上return false; 才能阻止
- }
- this.filename = file.name
- this.classShow = true
- this.guaForm.imageName = file.name
- const isLt2M = file.size / 1024 / 1024 <= 2048
- var date = new Date()
- var ext = getFileExtension(file.name)
- var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() + '_o_' + file.uid + '.' + ext
- const _self = this
- return new Promise((resolve, reject) => {
- getToken().then(response => {
- const token = response.data.data.uptoken
- _self._data.uploadFileData.token = token
- _self._data.uploadFileData.key = key
- resolve(true)
- }).catch(err => {
- reject(false)
- })
- })
- },
- handleSuccess(res, file, fileList) {
- this.guaForm.images = this.qiniuDomain + res.url
- this.$refs.upload.clearFiles()
- this.filename = file.name
- this.guaForm.imageName = file.name
- },
- // eslint-disable-next-line no-dupe-keys
- getTime(value, temp) {
- // eslint-disable-next-line eqeqeq
- if (value != undefined) {
- return parseTime(value, temp)
- }
- return ''
- },
- SaveRepair(formName) {
- if (this.guaForm.start_time === '') {
- this.guaForm.start_time = '0'
- }
-
- if (this.guaForm.arrive_time === '') {
- this.guaForm.arrive_time = '0'
- }
-
- if (this.guaForm.finish_time === '') {
- this.guaForm.finish_time = '0'
- }
-
- if (this.guaForm.failure_stage === '') {
- this.guaForm.failure_stage = '0'
- }
-
- var failurestages = this.guaForm.failure_stage
- var falur = parseInt(failurestages)
- this.guaForm.failure_stage = falur
-
- if (this.guaForm.exclude === '') {
- this.guaForm.exclude = 0
- }
- var excludes = this.guaForm.exclude
- var exclude = parseInt(excludes)
- this.guaForm.exclude = exclude
- this.$refs[formName].validate((valid) => {
- if (valid) {
- SaveRepair(this.equimentid, this.guaForm).then(response => {
- if (response.data.state === 1) {
- var repair = response.data.data.repair
- this.$message.success('保存成功')
- this.$refs.child.getAllRepair()
- this.guaForm.start_time = ''
- this.guaForm.arrive_time = ''
- this.guaForm.finish_time = ''
- this.guaForm.total_distance = ''
- this.guaForm.code_information = ''
- this.guaForm.fault_description = ''
- this.guaForm.cause_analysis = ''
- this.guaForm.reason = ''
- this.guaForm.failure_stage = 0
- this.guaForm.exclude = 0
- this.guaForm.images = ''
- this.guaForm.treatment_process = ''
- this.guaForm.function_accessories_inspection= ""
- this.guaForm.other_information= ""
- this.classShow = false
- this.guaForm.imageName = ''
- }
- })
- }
- })
- },
-
- querySearchAsync(keyword, cb) {
- let key = ''
- if (keyword != undefined) {
- key = keyword
- }
- let searchArray = []
- PostSearch(key).then(response => {
- if (response.data.state == 1) {
- searchArray = response.data.data.patient
- cb(searchArray)
- }
- })
-
- return searchArray
- },
- createFilter(queryString) {
- return (searchArray) => {
- return (searchArray.id.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
- }
- },
- handleSelect(item) {
- this.userform.patient_id = item.id
- this.userform.patient_name = item.name
- // eslint-disable-next-line no-undef
- getPatientDetail(item.id).then(response => {
- // eslint-disable-next-line eqeqeq
- if (response.data.state == 1) {
- var patient = response.data.data.patient
- // eslint-disable-next-line no-undef
- if (patient.is_infectious === 0) {
- this.userform.contagion = ''
- }
- // eslint-disable-next-line no-undef
- if (patient.is_infectious === 1) {
- this.userform.contagion = '无'
- }
- // eslint-disable-next-line no-undef
- if (patient.is_infectious === 2) {
- this.userform.contagion = '有'
- }
- }
- })
- },
- getAllEquitType() {
- getAllEquitType().then(response => {
- if (response.data.state === 1) {
- var equitname = response.data.data.mode
- this.DeviceType = equitname
- }
- })
- },
- getTotalNumber() {
- getTotalNumber(this.equimentid).then(response => {
- if (response.data.state === 1) {
- var total = response.data.data.total
- if (total === '') {
- this.userform.user_total = ''
- }
- // this.userform.user_total = total
- } else {
- this.$message.error('数据返回失败')
- }
- })
- },
- getAllpatient() {
- getAllpatient().then(response => {
- if (response.data.state === 1) {
- var allpatient = response.data.data.allpatient
-
- this.patientName = allpatient
- }
- })
- },
- getTimeWarning(id) {
- getTimeWarning(id).then(response => {
- if (response.data.state === 1) {
- var information = response.data.data.information
- var time = this.getTimestamp(this.userform.date) - information.stime
- var deviceInformation = response.data.data.deviceInformation
- var timetwo = this.getTimestamp(this.userform.date) - deviceInformation.stime
- var clean = response.data.data.clean
-
- }
- })
- },
- getTimeBeteen(id) {
- var todayTime = moment(new Date()).format('YYYY-MM-DD')
- getTimeBeteen(id, todayTime).then(response => {
- if (response.data.state === 1) {
- var timedata = response.data.data.timeData
- // console.log("timedata----------------------",timedata)
- if (timedata.length === 0) {
- this.warnShow = false
- }
- if (timedata.length !== 0) {
- this.warnShow = false
- }
- var todayTimeTwo = response.data.data.timeDataTwo
- if (todayTimeTwo.length === 0) {
- this.warnShowTwo = true
- }
- if (todayTimeTwo.length !== 0) {
- this.warnShowTwo = false
- }
-
- var timeDataThree = response.data.data.timeDataThree
- if (timeDataThree.length === 0) {
- this.warnShowThree = true
- }
- if (timeDataThree.length !== 0) {
- this.warnShowThree = false
- }
- }
- })
- },
- getTimestamp(time) { // 把时间日期转成时间戳
- return (new Date(time)).getTime() / 1000
- },
-
- // eslint-disable-next-line no-irregular-whitespace
- // 通过自组建传值改变表格数据
- getPlanData(data) {
- if (data === 1) {
- this.getAllPlanDetail(this.unitType)
- }
- },
- getAllMode() {
- getAllMode().then(response => {
- var mode = response.data.data.mode
-
- this.deviceMode = mode
- })
- },
- selectChange(id) {
- selectChange(id).then(response => {
- if (response.data.state === 1) {
- this.userform.bed_number = ''
- var change = response.data.data.change
- this.bedNumberTwo = change
- // console.log('change', change)
- }
- })
- },
- selectBed(id) {
- selectBed(id).then(response => {
- if (response.data.state === 1) {
- var zone = response.data.data.zone
- }
- })
- },
- getData(id) {
- selectBed(id).then(response => {
- if (response.data.state === 1) {
- var zone = response.data.data.zone
- this.$forceUpdate()
- this.userform.bed_number = zone.id
- this.userform.zone = zone.zone_id
- }
- })
- },
- hiddenShow() {
- this.$confirm(
- '确认要删除所选图片吗? <br>删除后,信息将无法恢复',
- '删除提示',
- {
- dangerouslyUseHTMLString: true,
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- ).then(() => {
- this.filename = ''
- this.guaForm.imageName = ''
- this.guaForm.images = ''
- this.classShow = false
- })
- },
-
- //获取机器的使用次数
- GetUserTotalCount(bedid){
- this.userform.user_total = ""
- GetUserTotalCount(bedid).then(response=>{
- if(response.data.state == 1){
- var count = response.data.data.count
- var addmacher = response.data.data.addmacher
- if(addmacher.user_total == ''){
- addmacher.user_total = 0
- }
- // this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
- }
- })
- },
-
-
- saveOxygenates(formName) {
- this.$refs[formName].validate((valid) => {
- if (this.qualityFormFour.specimenb === '') {
- this.qualityFormFour.specimenb = 0
- }
-
- var specimen = this.qualityFormFour.specimenb
- var specimenb = parseInt(specimen)
- this.qualityFormFour.specimenb = specimenb
-
- if (this.qualityFormFour.sampling_locationb === '') {
- this.qualityFormFour.sampling_locationb = 0
- }
- var sampling = this.qualityFormFour.sampling_locationb
- var samplings = parseInt(sampling)
- this.qualityFormFour.sampling_locationb = samplings
-
-
- if(this.qualityFormFour.modifications!=''){
- this.qualityFormFour.modifications = parseInt(this.qualityFormFour.modifications)
- }
-
- if (valid) {
- saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
- if (response.data.state === 1) {
- var oxygenates = response.data.data.oxygenates
- console.log("oxygenates",oxygenates)
- this.$message.success('保存成功')
- this.qualityFormFour.specimenb = ''
- this.qualityFormFour.concentrate_noc = ''
- this.qualityFormFour.concentrateb_nod = ''
- this.qualityFormFour.sampling_locationb = ''
-
- this.qualityFormFour.detection_resultb = ''
-
-
- this.$refs.mychild.getAllQulityInfo()
- }
- })
- }
- })
- },
-
-
- saveHardWater(formName) {
- this.$refs[formName].validate((valid) => {
- if (this.qualityFormFive.specimenb === '') {
- this.qualityFormFive.specimenb = 0
- }
-
- var specimen = this.qualityFormFive.specimenb
- var specimenb = parseInt(specimen)
- this.qualityFormFive.specimenb = specimenb
-
- if (this.qualityFormFive.sampling_locationb === '') {
- this.qualityFormFive.sampling_locationb = 0
- }
- var sampling = this.qualityFormFive.sampling_locationb
- var samplings = parseInt(sampling)
- this.qualityFormFive.sampling_locationb = samplings
-
-
- if(this.qualityFormFive.modifications!=''){
- this.qualityFormFive.modifications = parseInt(this.qualityFormFive.modifications)
- }
-
- if (valid) {
- saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
- if (response.data.state === 1) {
- var hadwater = response.data.data.hadwater
- console.log("hadwater",hadwater)
- this.$message.success('保存成功')
- this.qualityFormFive.specimenb = ''
- this.qualityFormFive.concentrate_noc = ''
- this.qualityFormFive.concentrateb_nod = ''
- this.qualityFormFive.sampling_locationb = ''
- this.qualityFormFive.detection_resultb = ''
-
-
- this.$refs.mychild.getAllQulityInfo()
- }
- })
- }
- })
- },
-
-
- saveWater(formName) {
- this.$refs[formName].validate((valid) => {
- if (this.qualityFormSix.specimenb === '') {
- this.qualityFormSix.specimenb = 0
- }
-
- var specimen = this.qualityFormSix.specimenb
- var specimenb = parseInt(specimen)
- this.qualityFormSix.specimenb = specimenb
-
- if (this.qualityFormSix.sampling_locationb === '') {
- this.qualityFormSix.sampling_locationb = 0
- }
- var sampling = this.qualityFormSix.sampling_locationb
- var samplings = parseInt(sampling)
- this.qualityFormSix.sampling_locationb = samplings
-
-
- if(this.qualityFormSix.modifications!=''){
- this.qualityFormSix.modifications = parseInt(this.qualityFormSix.modifications)
- }
-
- if (valid) {
- saveWater(this.equimentid, this.qualityFormSix).then(response => {
- if (response.data.state === 1) {
- var deviceWater = response.data.data.deviceWater
- console.log("deviceWater",deviceWater)
- this.$message.success('保存成功')
- this.qualityFormSix.specimenb = ''
- this.qualityFormSix.concentrate_noc = ''
- this.qualityFormSix.concentrateb_nod = ''
- this.qualityFormSix.sampling_locationb = ''
- this.qualityFormSix.detection_resultb = ''
-
-
- this.$refs.child.getAllQulityInfo()
- }else{
- this.qualityFormSix.pass_examination = "1"
- }
- })
- }
- })
- },
-
-
- saveDevicePH(formName) {
- this.$refs[formName].validate((valid) => {
- if (this.qualityFormSeven.specimenb === '') {
- this.qualityFormSeven.specimenb = 0
- }
-
- var specimen = this.qualityFormSeven.specimenb
- var specimenb = parseInt(specimen)
- this.qualityFormSeven.specimenb = specimenb
-
- if (this.qualityFormSeven.sampling_locationb === '') {
- this.qualityFormSeven.sampling_locationb = 0
- }
- var sampling = this.qualityFormSeven.sampling_locationb
- var samplings = parseInt(sampling)
- this.qualityFormSeven.sampling_locationb = samplings
-
-
- if(this.qualityFormSeven.modifications!=''){
- this.qualityFormSeven.modifications = parseInt(this.qualityFormSeven.modifications)
- }
-
- if (valid) {
- saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
- if (response.data.state === 1) {
- var devicePh = response.data.data.devicePh
- console.log("devicePh",devicePh)
- this.$message.success('保存成功')
- this.qualityFormSeven.specimenb = ''
- this.qualityFormSeven.concentrate_noc = ''
- this.qualityFormSeven.concentrateb_nod = ''
- this.qualityFormSeven.sampling_locationb = ''
- this.qualityFormSeven.detection_resultb = ''
-
-
- this.$refs.mychild.getAllQulityInfo()
- }
- })
- }
- })
- },
-
- },
- created() {
- this.getAllSubregion()
- this.getAllMachine()
- var bedid = this.$route.query.bedid
- this.bedid = bedid
- this.getAllPlan()
- this.getAllEquimentName()
- this.getAllOrganization()
- this.getOrgName()
- this.getAllEquitType()
- this.getAllpatient()
- this.getAllMode()
- this.GetUserTotalCount(bedid)
-
-
- }
- }
- </script>
- <style lang="scss" scoped>
- .zone{
- // margin-left: 30px;
- // text-align: left;
- width: 70px;
- display: inline-block;
- color:#606266;
- }
- .disinfect{
- position: relative;
- .newButton{
- // position: absolute;
- // right: 2%;
- // top:4px;
- // z-index: 9;
- margin-bottom: 10px;
- margin-left: 90%;
- }
- }
- .disinfectOne{
- position: relative;
- .newButtonOne{
- position: absolute;
- right: 0;
- top: -10;
- z-index: 18;
- }
- }
- .but{
- width: 200px;
- height: 50px;
- // border: solid 1px red;
- margin-left: 77%;
- }
- .clearn{
- width: 460px;
- height: 50px;
- // border:solid 1px red;
- margin-left:650px;
- }
-
- .zClass{
- width: 200px;
- height: 200px;
- // border:solid 1px red;
- margin-left: 450px;
- margin-top: 200px;
- }
- .warn{
- color: red;
- font-size: 14px;
- width: 100%;
- display: inline-block;
- margin-left: 96px;
- }
-
- .userbutton{
- margin-bottom: 10px;
- margin-left: 82%
- }
- .el-form-item__error {
- margin-left: 130px;
- }
-
- </style>
- <style lang="scss">
- .new-registration{
- .el-form-item__error {
- left:103px ;
- }
- }
- .el-tab-pane{
- .el-form-item__error{
- left:103px;
- }
- }
-
- .a{
- margin-bottom: 10px;
- margin-top: 6px;
-
- }
-
- .b{
- .el-button{
- margin-left: 90%;
- margin-bottom: 10px;
- }
- }
-
- .stoppage{
- .el-form-item__label{
- width:190px;
- }
- }
- .st{
- .el-form-item__label{
- width:-10px;
- }
- }
- .main{
- position: relative;
- .newButtonOne{
- position:absolute;
- right: 0;
- z-index: 2;
- }
- }
-
- .elbutton{
- // border: solid 1px red;
- height: 50px;
- width: 400px;
- margin-left: 650px;
- }
- // .el-form-item__label {
- // width: 130px;
- // font-size: 14px;
- // }
-
-
- .el-upload-list__item-name {
- color: #606266;
- display: block;
- margin-right: 40px;
- overflow: hidden;
- padding-left: 4px;
- text-overflow: ellipsis;
- transition: color .3s;
- white-space: nowrap;
- }
- .el-main{
- padding-top: 0px;
- }
- .newMain{
- .el-form-item__label{
- width: 104px;
- }
- }
- .newDisinfectOne{
- .el-input--prefix .el-input__inner{
- padding-left: 15px
- }
- }
- .stoppage{
- .el-form-item__label{
- width: 18%;
- }
- }
- .newItem{
- .el-form-item__label{
- width: 130px;
- }
- }
- .formItem{
- .el-form-item__label{
- width: 104px;
- line-height: 30px;
- }
- }
- .newname{
- .el-form-item__label{
- width: 60px;
- }
- }
- ::-webkit-scrollbar{
- height: 20px;
- }
- </style>
|