123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436 |
- <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="消毒时长/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="消毒时长/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">
- <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">
- <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="消毒状态:" required prop="disinfection">
- <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="消毒状态:" required prop="disinfection_status">
- <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>
-
- </el-tab-pane>
- <el-tab-pane label="使用登记列表" name="second">
- <user-form ref="userForm" :userdata="userdata"></user-form>
- </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">
- <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="检测结果:(EU/ml)" 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">
- <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="检测结果:(EU/ml)" 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">
- <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="检测结果:(EU/ml)" 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 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>
- <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 { 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
- },
- 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: '请填写故障描述' }]
- },
- 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: '请填写消毒状态' }],
- fluid_path: [{ required: true, message: '请填写消毒方式' }],
- disinfectant: [{ required: true, message: '请填写消毒液' }],
- disinfection_status: [{ required: true, message: '消毒状态' }],
- sign_name: [{ required: true, message: '请填写签名', trigger: ['change'] }],
- classtype: [{ required: true, message: '请填写班次' }],
- 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: ''
- },
-
- 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
- }
- 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("val-------------------------",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)
- },
- 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
- }
- 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
- }
- 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
- 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
- this.userform.start_time = this.updateTimes(information.start_time)
- this.userform.end_time = this.updateTimes(information.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
- this.userform.disinfection = information.disinfection
- this.userform.machine_run = information.machine_run
- this.userform.fluid_path = information.fluid_path
- this.userform.disinfectant = information.disinfectant
- this.userform.disinfection_status = information.disinfection_status
- this.userform.disinfection_residue = information.disinfection_residue
- this.userform.longtime = information.long_time
- this.userform.starttime = this.updateTimes(information.disinfec_startime)
- this.userform.endtime = this.updateTimes(information.disinfec_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.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
- if (timedata.length === 0) {
- this.warnShow = true
- }
- 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%
- }
-
- </style>
- <style lang="scss">
- .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-form-item__error {
- margin-left: 130px;
- }
-
- .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>
|