1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434 |
- <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>
-
-
-
- <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>
- </div>
-
-
-
-
-
-
-
- <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("Val222222222",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>
|