Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

home.vue 253KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs='crumbs'></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <el-container>
  8. <div style="width:22%">
  9. <el-row>
  10. <el-col :span="24">
  11. <span class="zone">分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区:</span>
  12. <el-select v-model="forms.zone_id" placeholder="请选择" class="a" @change="changeBedNumber" style="width:70%" :disabled="zoneDisabled">
  13. <el-option
  14. v-for="item in bedZone"
  15. :key="item.id"
  16. :label="item.name"
  17. :value="item.id"
  18. >
  19. </el-option>
  20. </el-select>
  21. </el-col>
  22. </el-row>
  23. <el-row>
  24. <el-col>
  25. <span class="zone">设备类型:</span>
  26. <el-select v-model="forms.device_type" placeholder="请选择" class="a" @change="changeDeviceId" style="width:70%">
  27. <el-option
  28. v-for="item in DeviceTypeType"
  29. :key="item.id"
  30. :label="item.name"
  31. :value="item.id">
  32. </el-option>
  33. </el-select>
  34. </el-col>
  35. </el-row>
  36. <el-row>
  37. <el-table
  38. ref="singleTable"
  39. :data="tableDatatwo"
  40. highlight-current-row
  41. border
  42. @current-change="handleCurrentChange"
  43. height="440"
  44. :row-style="{ color: '#303133' }"
  45. :header-cell-style="{
  46. backgroundColor: 'rgb(245, 247, 250)',
  47. color: '#606266'
  48. }"
  49. >
  50. <el-table-column
  51. prop="date"
  52. label="设备名称"
  53. width="90"
  54. align="center"
  55. >
  56. <template slot-scope="scope">
  57. <div @click="handleIndex(scope.$index)">{{scope.row.device_name}}</div>
  58. </template>
  59. </el-table-column>
  60. <el-table-column
  61. prop="name"
  62. label="设备型号"
  63. width="90"
  64. align="center">
  65. <template slot-scope="scope">
  66. <div @click="handleIndex(scope.$index)">{{scope.row.device_mode}}</div>
  67. </template>
  68. </el-table-column>
  69. <el-table-column
  70. prop="address"
  71. label="机位号"
  72. align="center"
  73. widwid="60">
  74. <template slot-scope="scope">
  75. <div @click="handleIndex(scope.$index)">{{scope.row.bed_number}}</div>
  76. </template>
  77. </el-table-column>
  78. </el-table>
  79. </el-row>
  80. </div>
  81. <el-main>
  82. <div class="main newMain">
  83. <div class="newButtonOne">
  84. <el-button
  85. type="success"
  86. @click="clickQuery()"
  87. >
  88. 综合查询
  89. </el-button>
  90. </div>
  91. <el-tabs v-model="activeName" @tab-click="handleClick">
  92. <!-- 透析机基本信息 -->
  93. <el-tab-pane label="基本信息" name="first" >
  94. <!-- 透析机基本信息 -->
  95. <div class="disinfectOne newDisinfectOne" v-show="tShow">
  96. <el-row>
  97. <div class="b">
  98. <el-button @click="UpdateMachine()">修改</el-button>
  99. </div>
  100. </el-row>
  101. <el-row>
  102. <el-form :model="form" ref="form" :rules="rules">
  103. <el-row>
  104. <el-col :span="8">
  105. <el-form-item label="序列号:" required prop="serial_number">
  106. <el-input style="width:150px" v-model="form.serial_number" :disabled="disableThree"></el-input>
  107. </el-form-item>
  108. </el-col>
  109. <el-col :span="8">
  110. <el-form-item label="设备类型:" required prop="devicetype">
  111. <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
  112. <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
  113. </el-select>
  114. </el-form-item>
  115. </el-col>
  116. <el-col :span="8">
  117. <el-form-item label="机位号:">
  118. <el-select style="width:150px" v-model="form.bed_number" :disabled="disableThree">
  119. <el-option v-for="item in this.Number" :key="item.bed_id" :label="item.bed_number" :value="item.bed_id"></el-option>
  120. </el-select>
  121. </el-form-item>
  122. </el-col>
  123. </el-row>
  124. <el-row>
  125. <el-col :span="8">
  126. <el-form-item label="设备名称:" required prop="device_name">
  127. <el-input style="width:150px" v-model="form.device_name" :disabled="disableThree"></el-input>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="8">
  131. <el-form-item label="生产厂家:">
  132. <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableThree"></el-input>
  133. </el-form-item>
  134. </el-col>
  135. <el-col :span="8">
  136. <el-form-item label="维修厂家:">
  137. <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableThree"></el-input>
  138. </el-form-item>
  139. </el-col>
  140. </el-row>
  141. <el-row>
  142. <el-col :span="8">
  143. <el-form-item label="设备型号:" required prop="unit_type">
  144. <el-select style="width:150px" v-model="form.unit_type" :disabled="disableThree">
  145. <el-option
  146. v-for="item in this.deviceMode"
  147. :key="item.id"
  148. :label="item.device_mode"
  149. :value="item.id"
  150. ></el-option>
  151. </el-select>
  152. </el-form-item>
  153. </el-col>
  154. <el-col :span="8">
  155. <el-form-item label="使用科室:">
  156. <el-input style="width:150px" v-model="form.use_section" :disabled="disableThree"></el-input>
  157. </el-form-item>
  158. </el-col>
  159. <el-col :span="8">
  160. <el-form-item label="科室编号:">
  161. <el-input style="width:150px" v-model="form.section_number" :disabled="disableThree"></el-input>
  162. </el-form-item>
  163. </el-col>
  164. </el-row>
  165. <el-row>
  166. <el-col :span="8">
  167. <el-form-item label="购买日期:">
  168. <el-date-picker
  169. v-model="form.buy_date"
  170. prefix-icon="none"
  171. type="date"
  172. placeholder="请选择"
  173. format="yyyy-MM-dd"
  174. value-format="yyyy-MM-dd"
  175. style="width:150px"
  176. :disabled="disableThree">
  177. </el-date-picker>
  178. </el-form-item>
  179. </el-col>
  180. <el-col :span="8">
  181. <el-form-item label="安装日期:">
  182. <el-date-picker
  183. v-model="form.install_date"
  184. prefix-icon="none"
  185. type="date"
  186. placeholder="请选择"
  187. format="yyyy-MM-dd"
  188. value-format="yyyy-MM-dd"
  189. style="width:150px"
  190. :disabled="disableThree">
  191. </el-date-picker>
  192. </el-form-item>
  193. </el-col>
  194. <el-col :span="8">
  195. <el-form-item label="启用日期:">
  196. <el-date-picker
  197. v-model="form.start_date"
  198. prefix-icon="none"
  199. type="date"
  200. placeholder="请选择"
  201. format="yyyy-MM-dd"
  202. value-format="yyyy-MM-dd"
  203. style="width:150px"
  204. :disabled="disableThree">
  205. </el-date-picker>
  206. </el-form-item>
  207. </el-col>
  208. <el-col :span="8">
  209. <el-form-item label="维修工程师:">
  210. <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableThree"></el-input>
  211. </el-form-item>
  212. </el-col>
  213. <el-col :span="8">
  214. <el-form-item label="联系电话:">
  215. <el-input style="width:150px" v-model="form.telephone" :disabled="disableThree"></el-input>
  216. </el-form-item>
  217. </el-col>
  218. <el-col :span="8">
  219. <el-form-item label="保修期限:">
  220. <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableThree"></el-input>
  221. </el-form-item>
  222. </el-col>
  223. </el-row>
  224. <el-row>
  225. <el-col :span="8">
  226. <el-form-item label="机器状态:">
  227. <el-select style="width:150px" v-model="form.machine_status" @change="changeMachineStatus">
  228. <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" :disabled="disableThree"></el-option>
  229. </el-select>
  230. </el-form-item>
  231. </el-col>
  232. <el-col :span="8">
  233. <el-form-item label="初次使用次数:">
  234. <el-input v-model="form.user_total" style="width:150px" :disabled="disableThree"></el-input>
  235. </el-form-item>
  236. </el-col>
  237. <el-col :span="8">
  238. <el-form-item label="备注:">
  239. <el-input style="width:150px" v-model="form.remarks" :disabled="disableThree"></el-input>
  240. </el-form-item>
  241. </el-col>
  242. </el-row>
  243. <el-row>
  244. <el-col :span="8">
  245. <el-form-item label="报废日期:">
  246. <el-date-picker
  247. v-model="form.rubbish_date"
  248. prefix-icon="none"
  249. type="date"
  250. placeholder="请选择"
  251. format="yyyy-MM-dd"
  252. value-format="yyyy-MM-dd"
  253. style="width:150px"
  254. :disabled="disableThree">
  255. </el-date-picker>
  256. </el-form-item>
  257. </el-col>
  258. <el-col :span="8">
  259. <el-form-item label="报废原因:">
  260. <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="readisable">
  261. <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" :disabled="disableThree"></el-option>
  262. </el-select>
  263. </el-form-item>
  264. </el-col>
  265. <el-col :span="8">
  266. <el-form-item label="使用年限(年):">
  267. <el-input style="width:150px" v-model="form.user_year" :disabled="disableThree"></el-input>
  268. </el-form-item>
  269. </el-col>
  270. </el-row>
  271. <el-row>
  272. <el-col :span="8">
  273. <el-form-item label="工作时长(时):">
  274. <el-input style="width:150px" v-model="form.work_time" :disabled="disableThree"></el-input>
  275. </el-form-item>
  276. </el-col>
  277. </el-row>
  278. <el-row>
  279. <el-form-item label="治疗模式:">
  280. <el-checkbox-group v-model="form.treat_mode" @change="handleCheckedCitiesChange">
  281. <el-checkbox v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox>
  282. </el-checkbox-group>
  283. </el-form-item>
  284. </el-row>
  285. <el-row>
  286. <el-col>
  287. <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
  288. </el-col>
  289. </el-row>
  290. <el-row>
  291. <div class="but">
  292. <el-col :span="12">
  293. <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
  294. </el-col>
  295. <el-col :span="8">
  296. <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMachineInfo('form')">保存</el-button>
  297. </el-col>
  298. </div>
  299. </el-row>
  300. </el-form>
  301. </el-row>
  302. </div>
  303. <!-- 水处理机基本信息 -->
  304. <div v-show="sShow">
  305. <el-row>
  306. <div class="b">
  307. <el-button size="small" @click="UpdateMachine()">修改</el-button>
  308. </div>
  309. </el-row>
  310. <el-row>
  311. <el-form :model="form" ref="form" :rules="rules">
  312. <el-row>
  313. <el-col :span="7">
  314. <el-form-item label="序列号:" required prop="serial_number">
  315. <el-input style="width:150px" v-model="form.serial_number" :disabled="disableFour"></el-input>
  316. </el-form-item>
  317. </el-col>
  318. <el-col :span="7">
  319. <el-form-item label="设备类型:" required prop="devicetype">
  320. <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
  321. <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFour" ></el-option>
  322. </el-select>
  323. </el-form-item>
  324. </el-col>
  325. <el-col :span="7">
  326. <el-form-item label="机位号">
  327. <el-input style="width:150px" v-model="form.beds" :disabled="disableFour"></el-input>
  328. </el-form-item>
  329. </el-col>
  330. </el-row>
  331. <el-row>
  332. <el-col :span="7">
  333. <el-form-item label="设备名称:" required prop="device_name">
  334. <el-input style="width:150px" v-model="form.device_name" :disabled="disableFour"></el-input>
  335. </el-form-item>
  336. </el-col>
  337. <el-col :span="7">
  338. <el-form-item label="生产厂家:">
  339. <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableFour"></el-input>
  340. </el-form-item>
  341. </el-col>
  342. <el-col :span="7">
  343. <el-form-item label="维修厂家:">
  344. <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableFour"></el-input>
  345. </el-form-item>
  346. </el-col>
  347. </el-row>
  348. <el-row>
  349. <el-col :span="7">
  350. <el-form-item label="设备型号:" required prop="unit_type">
  351. <el-select style="width:135px" v-model="form.unit_type" :disabled="disableFour">
  352. <el-option
  353. v-for="item in this.deviceMode"
  354. :key="item.id"
  355. :label="item.device_mode"
  356. :value="item.id"
  357. ></el-option>
  358. </el-select>
  359. </el-form-item>
  360. </el-col>
  361. <el-col :span="7">
  362. <el-form-item label="使用科室:">
  363. <el-input style="width:150px" v-model="form.use_section" :disabled="disableFour"></el-input>
  364. </el-form-item>
  365. </el-col>
  366. <el-col :span="7">
  367. <el-form-item label="科室编号:">
  368. <el-input style="width:150px" v-model="form.section_number" :disabled="disableFour"></el-input>
  369. </el-form-item>
  370. </el-col>
  371. </el-row>
  372. <el-row>
  373. <el-col :span="7">
  374. <el-form-item label="购买日期:">
  375. <el-date-picker
  376. v-model="form.buy_date"
  377. prefix-icon="none"
  378. type="date"
  379. placeholder="请选择"
  380. format="yyyy-MM-dd"
  381. value-format="yyyy-MM-dd"
  382. style="width:150px"
  383. :disabled="disableFour">
  384. </el-date-picker>
  385. </el-form-item>
  386. </el-col>
  387. <el-col :span="7">
  388. <el-form-item label="安装日期:">
  389. <el-date-picker
  390. v-model="form.install_date"
  391. prefix-icon="none"
  392. type="date"
  393. placeholder="请选择"
  394. format="yyyy-MM-dd"
  395. value-format="yyyy-MM-dd"
  396. style="width:150px"
  397. :disabled="disableFour">
  398. </el-date-picker>
  399. </el-form-item>
  400. </el-col>
  401. <el-col :span="7">
  402. <el-form-item label="启用日期:">
  403. <el-date-picker
  404. v-model="form.start_date"
  405. prefix-icon="none"
  406. type="date"
  407. placeholder="请选择"
  408. format="yyyy-MM-dd"
  409. value-format="yyyy-MM-dd"
  410. style="width:150px"
  411. :disabled="disableFour">
  412. </el-date-picker>
  413. </el-form-item>
  414. </el-col>
  415. <el-col :span="7">
  416. <el-form-item label="维修工程师:">
  417. <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableFour"></el-input>
  418. </el-form-item>
  419. </el-col>
  420. <el-col :span="7">
  421. <el-form-item label="联系电话:">
  422. <el-input style="width:150px" v-model="form.telephone" :disabled="disableFour"></el-input>
  423. </el-form-item>
  424. </el-col>
  425. <el-col :span="7">
  426. <el-form-item label="保修期限:">
  427. <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableFour"></el-input>
  428. </el-form-item>
  429. </el-col>
  430. </el-row>
  431. <el-row>
  432. <el-col :span="7">
  433. <el-form-item label="机器状态:">
  434. <el-select style="width:150px" v-model="form.machine_status" :disabled="disableFour">
  435. <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" ></el-option>
  436. </el-select>
  437. </el-form-item>
  438. </el-col>
  439. <el-col :span="7">
  440. <el-form-item label="消毒方式:">
  441. <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFour">
  442. <el-option
  443. v-for="item in this.DisinfectionMode"
  444. :key="item.id"
  445. :label="item.name"
  446. :value="item.id"
  447. ></el-option>
  448. </el-select>
  449. </el-form-item>
  450. </el-col>
  451. <el-col :span="7">
  452. <el-form-item label="备注:">
  453. <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
  454. </el-form-item>
  455. </el-col>
  456. </el-row>
  457. <el-row>
  458. <el-col :span="7">
  459. <el-form-item label="报废日期:">
  460. <el-date-picker
  461. v-model="form.rubbish_date"
  462. prefix-icon="none"
  463. type="date"
  464. placeholder="请选择"
  465. format="yyyy-MM-dd"
  466. value-format="yyyy-MM-dd"
  467. style="width:135px"
  468. :disabled="disableFour">
  469. </el-date-picker>
  470. </el-form-item>
  471. </el-col>
  472. <el-col :span="7">
  473. <el-form-item label="报废原因:">
  474. <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
  475. <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
  476. </el-select>
  477. </el-form-item>
  478. </el-col>
  479. <el-col :span="7">
  480. <el-form-item label="使用年限(年):">
  481. <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
  482. </el-form-item>
  483. </el-col>
  484. </el-row>
  485. <el-row>
  486. <el-col :span="8">
  487. <el-form-item label="工作时长(h):">
  488. <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
  489. </el-form-item>
  490. </el-col>
  491. <el-col :span="8">
  492. <el-form-item label="反渗模式:">
  493. <el-select style="width:135px" v-model="form.revers_mode" :disabled="disableFour">
  494. <el-option
  495. v-for="item in this.reverseMode"
  496. :key="item.id"
  497. :label="item.name"
  498. :value="item.id"
  499. ></el-option>
  500. </el-select>
  501. </el-form-item>
  502. </el-col>
  503. </el-row>
  504. <el-row>
  505. <div class="but">
  506. <el-col :span="12">
  507. <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
  508. </el-col>
  509. <el-col :span="8">
  510. <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMachineInfoTwo('form')">保存</el-button>
  511. </el-col>
  512. </div>
  513. </el-row>
  514. </el-form>
  515. </el-row>
  516. </div>
  517. <!-- 其他信息 -->
  518. <div v-show="qShow" class="disinfectOne">
  519. <el-row>
  520. <div class="b">
  521. <el-button size="small" @click="UpdateMachine()">修改</el-button>
  522. </div>
  523. </el-row>
  524. <el-form :model="form" ref="form" :rules="rules">
  525. <el-row>
  526. <el-col :span="8">
  527. <el-form-item label="序列号:" required prop="serial_number">
  528. <el-input style="width:150px" v-model="form.serial_number" :disabled="disableFive"></el-input>
  529. </el-form-item>
  530. </el-col>
  531. <el-col :span="8">
  532. <el-form-item label="设备类型:" required prop="devicetype">
  533. <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
  534. <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
  535. </el-select>
  536. </el-form-item>
  537. </el-col>
  538. <el-col :span="8">
  539. <el-form-item label="机位号:">
  540. <!-- <el-select style="width:150px" v-model="form.bed_number" :disabled="true">
  541. <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
  542. </el-select> -->
  543. <el-input v-model="form.bed_numbers" style="width:150px" :disabled="disableFive"></el-input>
  544. </el-form-item>
  545. </el-col>
  546. </el-row>
  547. <el-row>
  548. <el-col :span="8">
  549. <el-form-item label="设备名称:" required prop="device_name">
  550. <el-input style="width:150px" v-model="form.device_name" :disabled="disableFive"></el-input>
  551. </el-form-item>
  552. </el-col>
  553. <el-col :span="8">
  554. <el-form-item label="生产厂家:">
  555. <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableFive"></el-input>
  556. </el-form-item>
  557. </el-col>
  558. <el-col :span="8">
  559. <el-form-item label="维修厂家:">
  560. <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableFive"></el-input>
  561. </el-form-item>
  562. </el-col>
  563. </el-row>
  564. <el-row>
  565. <el-col :span="8">
  566. <el-form-item label="设备型号:" required prop="unit_type">
  567. <el-select style="width:135px" v-model="form.unit_type" :disabled="disableFive">
  568. <el-option
  569. v-for="item in this.deviceMode"
  570. :key="item.id"
  571. :label="item.device_mode"
  572. :value="item.id"
  573. ></el-option>
  574. </el-select>
  575. </el-form-item>
  576. </el-col>
  577. <el-col :span="8">
  578. <el-form-item label="使用科室:">
  579. <el-input style="width:150px" v-model="form.use_section" :disabled="disableFive"></el-input>
  580. </el-form-item>
  581. </el-col>
  582. <el-col :span="8">
  583. <el-form-item label="科室编号:">
  584. <el-input style="width:150px" v-model="form.section_number" :disabled="disableFive"></el-input>
  585. </el-form-item>
  586. </el-col>
  587. </el-row>
  588. <el-row>
  589. <el-col :span="8">
  590. <el-form-item label="购买日期:">
  591. <el-date-picker
  592. v-model="form.buy_date"
  593. prefix-icon="none"
  594. type="date"
  595. placeholder="请选择"
  596. format="yyyy-MM-dd"
  597. value-format="yyyy-MM-dd"
  598. style="width:150px"
  599. :disabled="disableFive">
  600. </el-date-picker>
  601. </el-form-item>
  602. </el-col>
  603. <el-col :span="8">
  604. <el-form-item label="安装日期:">
  605. <el-date-picker
  606. v-model="form.install_date"
  607. prefix-icon="none"
  608. type="date"
  609. placeholder="请选择"
  610. format="yyyy-MM-dd"
  611. value-format="yyyy-MM-dd"
  612. style="width:150px"
  613. :disabled="disableFive">
  614. </el-date-picker>
  615. </el-form-item>
  616. </el-col>
  617. <el-col :span="8">
  618. <el-form-item label="启用日期:">
  619. <el-date-picker
  620. v-model="form.start_date"
  621. prefix-icon="none"
  622. type="date"
  623. placeholder="请选择"
  624. format="yyyy-MM-dd"
  625. value-format="yyyy-MM-dd"
  626. style="width:150px"
  627. :disabled="disableFive">
  628. </el-date-picker>
  629. </el-form-item>
  630. </el-col>
  631. <el-col :span="8">
  632. <el-form-item label="维修工程师:">
  633. <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableFive"></el-input>
  634. </el-form-item>
  635. </el-col>
  636. <el-col :span="8">
  637. <el-form-item label="联系电话:">
  638. <el-input style="width:150px" v-model="form.telephone" :disabled="disableFive"></el-input>
  639. </el-form-item>
  640. </el-col>
  641. <el-col :span="8">
  642. <el-form-item label="保修期限:">
  643. <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableFive"></el-input>
  644. </el-form-item>
  645. </el-col>
  646. </el-row>
  647. <el-row>
  648. <el-col :span="8">
  649. <el-form-item label="机器状态:">
  650. <el-select style="width:150px" v-model="form.machine_status" @change="changeMachineStatus">
  651. <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFive"></el-option>
  652. </el-select>
  653. </el-form-item>
  654. </el-col>
  655. <el-col :span="8">
  656. <el-form-item label="消毒方式:">
  657. <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFive">
  658. <el-option
  659. v-for="item in this.DisinfectionMode"
  660. :key="item.id"
  661. :label="item.name"
  662. :value="item.id"
  663. ></el-option>
  664. </el-select>
  665. </el-form-item>
  666. </el-col>
  667. <el-col :span="8">
  668. <el-form-item label="备注:">
  669. <el-input style="width:150px" v-model="form.remarks" :disabled="disableFive"></el-input>
  670. </el-form-item>
  671. </el-col>
  672. </el-row>
  673. <el-row>
  674. <el-col :span="8">
  675. <el-form-item label="报废日期:">
  676. <el-date-picker
  677. v-model="form.rubbish_date"
  678. prefix-icon="none"
  679. type="date"
  680. placeholder="请选择"
  681. format="yyyy-MM-dd"
  682. value-format="yyyy-MM-dd"
  683. style="width:135px"
  684. :disabled="disableFive">
  685. </el-date-picker>
  686. </el-form-item>
  687. </el-col>
  688. <el-col :span="8">
  689. <el-form-item label="报废原因:">
  690. <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="readisable">
  691. <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFive"></el-option>
  692. </el-select>
  693. </el-form-item>
  694. </el-col>
  695. <el-col :span="8">
  696. <el-form-item label="使用年限(年):">
  697. <el-input style="width:150px" v-model="form.user_year" :disabled="disableFive"></el-input>
  698. </el-form-item>
  699. </el-col>
  700. </el-row>
  701. <el-row>
  702. <el-col :span="8">
  703. <el-form-item label="工作时长:">
  704. <el-input style="width:150px" v-model="form.work_time" :disabled="disableFive"></el-input>
  705. </el-form-item>
  706. </el-col>
  707. </el-row>
  708. <el-row>
  709. <div class="but">
  710. <el-col :span="12">
  711. <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
  712. </el-col>
  713. <el-col :span="8">
  714. <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMacheineTwo('form')">保存</el-button>
  715. </el-col>
  716. </div>
  717. </el-row>
  718. </el-form>
  719. </div>
  720. </el-tab-pane>
  721. <el-tab-pane label="消毒计划" name="second">
  722. <div class="disinfect" v-show="DisShow">
  723. <div class="newButton">
  724. <el-button
  725. type="primary"
  726. size="small"
  727. @click="addPlan"
  728. >
  729. 新增计划
  730. </el-button>
  731. </div>
  732. <el-tabs type="border-card" v-model="activeNameTwo" @tab-click="handleClick" >
  733. <el-tab-pane label="当前设备计划列表" name="first">
  734. <el-row style="display: flex;align-items: center;">
  735. <el-col :span="2">
  736. <el-checkbox style="width: 30px" @change="changeCheckOne" v-model="checkAllStatus">全选</el-checkbox>
  737. </el-col>
  738. <el-col :span="2">
  739. <el-button size="small" @click="openDeleteMahcine">批量删除</el-button>
  740. </el-col>
  741. </el-row>
  742. <el-row>
  743. <el-table
  744. ref="multipleTable"
  745. @selection-change="handleSelectionChangeOne"
  746. :data="planData"
  747. border
  748. fit
  749. highlight-current-row
  750. style="width: 100%;margin-top: 10px;"
  751. :row-style="{ color: '#303133' }"
  752. :header-cell-style="{
  753. backgroundColor: 'rgb(245, 247, 250)',
  754. color: '#606266'
  755. }"
  756. >
  757. <el-table-column align="center" type="selection" width="55"></el-table-column>
  758. <el-table-column label="时间" align="center" min-width="50px">
  759. <template slot-scope="scope">
  760. {{scope.row.time}}
  761. </template>
  762. </el-table-column>
  763. <el-table-column label="班次" align="center" min-width="50px">
  764. <template slot-scope="scope">
  765. {{scope.row.classtime}}
  766. </template>
  767. </el-table-column>
  768. <el-table-column label="机表消毒方式" align="center" min-width="110px" >
  769. <template slot-scope="scope">
  770. {{scope.row.way}}
  771. </template>
  772. </el-table-column>
  773. <el-table-column label="机表消毒液" align="center" min-width="100px" >
  774. <template slot-scope="scope">
  775. {{scope.row.machine_disinfectant}}
  776. </template>
  777. </el-table-column>
  778. <el-table-column label="液路消毒方式" align="center" min-width="110px" >
  779. <template slot-scope="scope">
  780. {{scope.row.disinfectan_way}}
  781. </template>
  782. </el-table-column>
  783. <el-table-column label="液路消毒液" align="center" min-width="100px" >
  784. <template slot-scope="scope">
  785. {{scope.row.disinfectant}}
  786. </template>
  787. </el-table-column>
  788. <el-table-column label="消毒时长/min" align="center" min-width="60px" >
  789. <template slot-scope="scope">
  790. {{scope.row.disinfec_time}}
  791. </template>
  792. </el-table-column>
  793. <el-table-column label="操作" align="center" min-width="130px">
  794. <template slot-scope="scope">
  795. <el-tooltip class="item" effect="dark" content="编辑" placement="top">
  796. <el-button
  797. size="mini"
  798. type="primary"
  799. icon="el-icon-edit-outline"
  800. @click="EditMachine(scope.row.id, scope.$index)"
  801. ></el-button>
  802. </el-tooltip>
  803. <el-tooltip class="item" effect="dark" content="删除" placement="top">
  804. <el-button
  805. size="mini"
  806. type="danger"
  807. icon="el-icon-delete"
  808. @click="openDelete(scope.row.id, scope.$index)"
  809. ></el-button>
  810. </el-tooltip>
  811. </template>
  812. </el-table-column>
  813. </el-table>
  814. </el-row>
  815. </el-tab-pane>
  816. <el-tab-pane label="按机型列表" name="second">
  817. <el-row style="display: flex;align-items: center;">
  818. <el-col :span="2">
  819. <el-checkbox style="width: 30px" @change="changeCheck" v-model="checkAllStatusOne">全选</el-checkbox>
  820. </el-col>
  821. <el-col :span="2">
  822. <el-button size="small" @click="openDeleteMahcineOne">批量删除</el-button>
  823. </el-col>
  824. </el-row>
  825. <el-row>
  826. <el-table
  827. ref="multipleTableOne"
  828. @selection-change="handleSelectionChange"
  829. :row-style="{ color: '#303133' }"
  830. :header-cell-style="{
  831. backgroundColor: 'rgb(245, 247, 250)',
  832. color: '#606266'
  833. }"
  834. :data="tableData"
  835. border
  836. fit
  837. highlight-current-row
  838. style="width: 100%;margin-top: 10px;"
  839. >
  840. <el-table-column align="center" type="selection" width="55"></el-table-column>
  841. <el-table-column label="型号" align="center" min-width="60px">
  842. <template slot-scope="scope">
  843. {{scope.row.device_mode}}
  844. </template>
  845. </el-table-column>
  846. <el-table-column label="时间" align="center" min-width="60px" >
  847. <template slot-scope="scope">
  848. {{scope.row.time}}
  849. </template>
  850. </el-table-column>
  851. <el-table-column label="班次" align="center" min-width="60px" >
  852. <template slot-scope="scope">
  853. {{scope.row.classtime}}
  854. </template>
  855. </el-table-column>
  856. <el-table-column label="基表消毒方式" align="center" min-width="110px" >
  857. <template slot-scope="scope">
  858. {{scope.row.way}}
  859. </template>
  860. </el-table-column>
  861. <el-table-column label="基表消毒液" align="center" min-width="100px" >
  862. <template slot-scope="scope">
  863. {{scope.row.machine_disinfectant}}
  864. </template>
  865. </el-table-column>
  866. <el-table-column label="液路消毒方式" align="center" min-width="110px" >
  867. <template slot-scope="scope">
  868. {{scope.row.disinfectant}}
  869. </template>
  870. </el-table-column>
  871. <el-table-column label="液路消毒液" align="center" min-width="100px" >
  872. <template slot-scope="scope">
  873. {{scope.row.disinfectan_way}}
  874. </template>
  875. </el-table-column>
  876. <el-table-column label="消毒时长/min" align="center" min-width="60px" >
  877. <template slot-scope="scope">
  878. {{scope.row.disinfec_time}}
  879. </template>
  880. </el-table-column>
  881. <el-table-column label="操作" align="center" width="130px">
  882. <template slot-scope="scope">
  883. <el-tooltip class="item" effect="dark" content="编辑" placement="top">
  884. <el-button
  885. size="mini"
  886. type="primary"
  887. icon="el-icon-edit-outline"
  888. @click="EditMachine(scope.row.id, scope.$index)"
  889. ></el-button>
  890. </el-tooltip>
  891. <el-tooltip class="item" effect="dark" content="删除" placement="top">
  892. <el-button
  893. size="mini"
  894. type="danger"
  895. icon="el-icon-delete"
  896. @click="openDelete(scope.row.id, scope.$index)"
  897. ></el-button>
  898. </el-tooltip>
  899. </template>
  900. </el-table-column>
  901. </el-table>
  902. </el-row>
  903. </el-tab-pane>
  904. </el-tabs>
  905. </div>
  906. <div class="zClass" v-show="DioShow">
  907. 暂无数据
  908. </div>
  909. </el-tab-pane>
  910. <el-tab-pane label="使用登记" name="third">
  911. <div class="userbutton">
  912. <el-button type="primary" @click="ToReminders">自动生成使用登记</el-button>
  913. </div>
  914. <div v-show="UserShow">
  915. <el-tabs type="border-card" v-model="activeNameThree" @tab-click="handleClick">
  916. <el-tab-pane label="新增使用登记" name="first">
  917. <el-form :model="userform" ref="userform" :rules="userRules">
  918. <el-row>
  919. <el-col :span="8">
  920. <el-form-item label="日期:" required prop="date" class="st">
  921. <el-date-picker
  922. v-model="userform.date"
  923. prefix-icon="none"
  924. type="date"
  925. placeholder="请选择"
  926. format="yyyy-MM-dd"
  927. value-format="yyyy-MM-dd"
  928. style="width:150px">
  929. </el-date-picker>
  930. </el-form-item>
  931. </el-col>
  932. <el-col :span="8">
  933. <el-form-item label="班次:" required prop="classtype" class="st">
  934. <el-select v-model="userform.classtype" placeholder="请选择" style="width:150px">
  935. <el-option
  936. v-for="item in classType"
  937. :key="item.id"
  938. :label="item.name"
  939. :value="item.id"
  940. style="width:90px">
  941. </el-option>
  942. </el-select>
  943. </el-form-item>
  944. </el-col>
  945. <el-col :span="8">
  946. <el-form-item label="分区:" required prop="zone" >
  947. <el-select v-model="userform.zone" placeholder="请选择" style="width:150px" :disabled="true">
  948. <el-option
  949. v-for="item in bedZoneThree"
  950. :key="item.id"
  951. :label="item.name"
  952. :value="item.id"
  953. >
  954. </el-option>
  955. </el-select>
  956. </el-form-item>
  957. </el-col>
  958. </el-row>
  959. <el-row>
  960. <el-col :span="8">
  961. <el-form-item label="机位号:" required prop="bed_number">
  962. <el-select style="width:150px" v-model="userform.bed_number" :disabled="true">
  963. <el-option v-for="item in this.bedNumberTwo" :key="item.id" :label="item.number" :value="item.id"></el-option>
  964. </el-select>
  965. </el-form-item>
  966. </el-col>
  967. <el-col :span="8">
  968. <el-form-item label="患者:">
  969. <el-autocomplete
  970. style="width:150px"
  971. popper-class="my-autocomplete"
  972. v-model="userform.patient_name"
  973. :fetch-suggestions="querySearchAsync"
  974. placeholder="请输入内容"
  975. @select="handleSelect">
  976. <i
  977. class="el-icon-search el-input__icon"
  978. slot="suffix"
  979. >
  980. </i>
  981. <template slot-scope="{ item }">
  982. <span class="addr">{{ item.name }}</span>
  983. </template>
  984. </el-autocomplete>
  985. </el-form-item>
  986. </el-col>
  987. <el-col :span="8">
  988. <el-form-item label="传染病:">
  989. <el-input style="width:150px" v-model="userform.contagion" :disabled="true"></el-input>
  990. </el-form-item>
  991. </el-col>
  992. </el-row>
  993. <el-row>
  994. <el-col :span="8">
  995. <el-form-item label="透析方式:">
  996. <el-select v-model="userform.dialysis_mode" placeholder="请选择" style="width:150px">
  997. <el-option
  998. v-for="item in treatmode"
  999. :key="item.id"
  1000. :label="item.name"
  1001. :value="item.id">
  1002. </el-option>
  1003. </el-select>
  1004. </el-form-item>
  1005. </el-col>
  1006. <el-col :span="8">
  1007. <el-form-item label="上机时间:">
  1008. <el-date-picker
  1009. type="datetime"
  1010. format="yyyy-MM-dd HH:mm"
  1011. value-format="yyyy-MM-dd HH:mm"
  1012. placeholder="选择时间"
  1013. v-model="userform.start_time"
  1014. style="width:185px"
  1015. ></el-date-picker>
  1016. </el-form-item>
  1017. </el-col>
  1018. <el-col :span="8">
  1019. <el-form-item label="下机时间:">
  1020. <el-date-picker
  1021. type="datetime"
  1022. format="yyyy-MM-dd HH:mm"
  1023. value-format="yyyy-MM-dd HH:mm"
  1024. placeholder="选择时间"
  1025. v-model="userform.end_time"
  1026. style="width:185px"
  1027. ></el-date-picker>
  1028. </el-form-item>
  1029. </el-col>
  1030. </el-row>
  1031. <el-row>
  1032. <el-col :span="8">
  1033. <el-form-item label="透析时长:">
  1034. <el-input style="width:150px" v-model="userform.dialysis_time"></el-input>
  1035. </el-form-item>
  1036. </el-col>
  1037. <el-col :span="8">
  1038. <el-form-item label="实际超滤量(L)">
  1039. <el-input style="width:150px" v-model="userform.hyperfiltratio"></el-input>
  1040. </el-form-item>
  1041. </el-col>
  1042. <el-col :span="8">
  1043. <el-form-item label="体重减少(kg):">
  1044. <el-input style="width:150px" v-model="userform.weight_loss"></el-input>
  1045. </el-form-item>
  1046. </el-col>
  1047. </el-row>
  1048. <el-row>
  1049. <el-col :span="8">
  1050. <el-form-item label="预警值:">
  1051. <el-input style="width:150px" v-model="userform.warning_value"></el-input>
  1052. </el-form-item>
  1053. </el-col>
  1054. <el-col :span="8">
  1055. <el-form-item label="使用次数:">
  1056. <el-input style="width:150px" v-model="userform.user_total" :disabled="true"></el-input>
  1057. </el-form-item>
  1058. </el-col>
  1059. <el-col :span="8">
  1060. <el-form-item label="运行:">
  1061. <el-radio-group v-model="userform.run" @change="changeRun">
  1062. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOption" :key="gender.id">{{gender.name}}</el-radio>
  1063. </el-radio-group>
  1064. </el-form-item>
  1065. </el-col>
  1066. </el-row>
  1067. <el-row>
  1068. <el-col>
  1069. <el-form-item class="stoppage" label="故障发生阶段:">
  1070. <el-radio-group v-model="userform.failure_stage" :disabled ="runDisable">
  1071. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
  1072. </el-radio-group>
  1073. </el-form-item>
  1074. </el-col>
  1075. </el-row>
  1076. <el-row>
  1077. <el-col :span="24">
  1078. <el-form-item class="stoppage" label="故障描述:">
  1079. <el-input style="width:78%" v-model="userform.fault_description"></el-input>
  1080. </el-form-item>
  1081. </el-col>
  1082. </el-row>
  1083. <el-row>
  1084. <el-col :span="24">
  1085. <el-form-item class="stoppage" label="故障提示信息及代码:">
  1086. <el-input style="width:78%" v-model="userform.code_information"></el-input>
  1087. </el-form-item>
  1088. </el-col>
  1089. </el-row>
  1090. <el-row>
  1091. <el-form-item label="机器消毒:"></el-form-item>
  1092. </el-row>
  1093. <el-row>
  1094. <el-col :span="3">
  1095. <el-form-item label="①机表"></el-form-item>
  1096. </el-col>
  1097. <el-col :span="10">
  1098. <el-form-item label="消毒方式:" required prop="disinfect_type">
  1099. <el-select v-model="userform.disinfect_type" placeholder="请选择" >
  1100. <el-option
  1101. v-for="item in disinfectType"
  1102. :key="item.id"
  1103. :label="item.name"
  1104. :value="item.id"
  1105. style="width:150px">
  1106. </el-option>
  1107. </el-select>
  1108. </el-form-item>
  1109. </el-col>
  1110. <el-col :span="10">
  1111. <el-form-item label="消毒液:" required prop="disinfectant_type">
  1112. <el-select v-model="userform.disinfectant_type" placeholder="请选择" >
  1113. <el-option
  1114. v-for="item in disinfectantType"
  1115. :key="item.id"
  1116. :label="item.name"
  1117. :value="item.id"
  1118. style="width:200px">
  1119. </el-option>
  1120. </el-select>
  1121. </el-form-item>
  1122. </el-col>
  1123. </el-row>
  1124. <el-row>
  1125. <el-col :span="3">
  1126. <el-form-item style="visibility: hidden;" label="①机表"></el-form-item>
  1127. </el-col>
  1128. <el-col :span="10">
  1129. <el-form-item label="消毒状态:" required prop="disinfection">
  1130. <el-select v-model="userform.disinfection" placeholder="请选择" >
  1131. <el-option
  1132. v-for="item in disinfection"
  1133. :key="item.id"
  1134. :label="item.name"
  1135. :value="item.id"
  1136. style="width:200px">
  1137. </el-option>
  1138. </el-select>
  1139. </el-form-item>
  1140. </el-col>
  1141. <el-col :span="10">
  1142. <el-form-item label="运行:">
  1143. <el-radio-group v-model="userform.machine_run">
  1144. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOptions" :key="index">{{gender.name}}</el-radio>
  1145. </el-radio-group>
  1146. </el-form-item>
  1147. </el-col>
  1148. </el-row>
  1149. <el-row>
  1150. <el-col :span="3">
  1151. <el-form-item label="②液路"></el-form-item>
  1152. </el-col>
  1153. <el-col :span="10">
  1154. <el-form-item label="消毒方式:" required prop="fluid_path">
  1155. <el-select v-model="userform.fluid_path" placeholder="请选择" >
  1156. <el-option
  1157. v-for="item in sterilizeType"
  1158. :key="item.id"
  1159. :label="item.name"
  1160. :value="item.id"
  1161. style="width:200px">
  1162. </el-option>
  1163. </el-select>
  1164. </el-form-item>
  1165. </el-col>
  1166. <el-col :span="10">
  1167. <el-form-item label="消毒液:" required prop="disinfectant">
  1168. <el-select v-model="userform.disinfectant" placeholder="请选择" >
  1169. <el-option
  1170. v-for="item in fluidPathType"
  1171. :key="item.id"
  1172. :label="item.name"
  1173. :value="item.id"
  1174. style="width:260px">
  1175. </el-option>
  1176. </el-select>
  1177. </el-form-item>
  1178. </el-col>
  1179. </el-row>
  1180. <el-row>
  1181. <el-col :span="3">
  1182. <el-form-item style="visibility: hidden;" label="①机表"></el-form-item>
  1183. </el-col>
  1184. <el-col :span="10">
  1185. <el-form-item label="消毒状态:" required prop="disinfection_status">
  1186. <el-select v-model="userform.disinfection_status" placeholder="请选择" >
  1187. <el-option
  1188. v-for="item in disinfection"
  1189. :key="item.id"
  1190. :label="item.name"
  1191. :value="item.id"
  1192. style="width:200px">
  1193. </el-option>
  1194. </el-select>
  1195. </el-form-item>
  1196. </el-col>
  1197. <el-col :span="10">
  1198. <el-form-item label="消毒液残留:">
  1199. <el-radio-group v-model="userform.disinfection_residue">
  1200. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in Disinfectant" :key="index">{{gender.name}}</el-radio>
  1201. </el-radio-group>
  1202. </el-form-item>
  1203. </el-col>
  1204. </el-row>
  1205. <el-row>
  1206. <el-col :span="8">
  1207. <el-form-item label="消毒时长:">
  1208. <el-input style="width:135px" v-model="userform.longtime"></el-input><span style="color:#606266;">分钟</span>
  1209. </el-form-item>
  1210. </el-col>
  1211. <el-col :span="8">
  1212. <el-form-item label="开始消毒时间:">
  1213. <el-date-picker
  1214. type="datetime"
  1215. format="yyyy-MM-dd HH:mm"
  1216. value-format="yyyy-MM-dd HH:mm"
  1217. placeholder="选择时间"
  1218. v-model="userform.starttime"
  1219. style="width:185px;"
  1220. ></el-date-picker>
  1221. </el-form-item>
  1222. </el-col>
  1223. <el-col :span="8">
  1224. <el-form-item label="结束消毒时间:">
  1225. <el-date-picker
  1226. type="datetime"
  1227. format="yyyy-MM-dd HH:mm"
  1228. value-format="yyyy-MM-dd HH:mm"
  1229. placeholder="选择时间"
  1230. v-model="userform.endtime"
  1231. style="width:185px;"
  1232. ></el-date-picker>
  1233. </el-form-item>
  1234. </el-col>
  1235. </el-row>
  1236. <el-row>
  1237. <el-col :span="3" style="height: 36px;line-height: 36px;">
  1238. <el-form-item label="透析机消毒液:"></el-form-item>
  1239. </el-col>
  1240. <el-col :span="5" style="display:flex;align-items: center">
  1241. <el-form-item>
  1242. <el-checkbox v-model="userform.dialysis_checked">更换</el-checkbox>
  1243. </el-form-item>
  1244. </el-col>
  1245. <el-col :span="8">
  1246. <el-form-item label="名称:">
  1247. <el-select v-model="userform.dialysis_name" placeholder="请选择" style="width:150px">
  1248. <el-option
  1249. v-for="item in names"
  1250. :key="item.id"
  1251. :label="item.name"
  1252. :value="item.id"
  1253. >
  1254. </el-option>
  1255. </el-select>
  1256. </el-form-item>
  1257. </el-col>
  1258. <el-col :span="8">
  1259. <el-form-item label="规格:">
  1260. <el-input style="width:100px" v-model="userform.norms"></el-input><span style="color:#606266;">桶</span>
  1261. </el-form-item>
  1262. <span class="warn" v-show="warnShow">您已一个月未更换,请注意检测</span>
  1263. </el-col>
  1264. </el-row>
  1265. <el-row>
  1266. <el-col>
  1267. <el-form-item label="浓度:">
  1268. <el-radio-group v-model="userform.dialysis_concentration">
  1269. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in potency" :key="index">{{gender.name}}</el-radio>
  1270. </el-radio-group>
  1271. </el-form-item>
  1272. </el-col>
  1273. </el-row>
  1274. <el-row>
  1275. <el-col :span="8">
  1276. <el-form-item label="细菌过滤器:">
  1277. <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
  1278. <span class="warn" v-show="warnShowTwo">您已一个月未更换,请注意检测</span>
  1279. </el-form-item>
  1280. </el-col>
  1281. <el-col :span="8">
  1282. <el-form-item class="newname" label="名称:">
  1283. <el-select v-model="userform.germ_name" placeholder="请选择" style="width:150px">
  1284. <el-option
  1285. v-for="item in germs"
  1286. :key="item.id"
  1287. :label="item.name"
  1288. :value="item.id"
  1289. >
  1290. </el-option>
  1291. </el-select>
  1292. </el-form-item>
  1293. </el-col>
  1294. <el-col :span="8">
  1295. <el-form-item class="newname" label="数量:">
  1296. <el-input style="width:100px" v-model="userform.germ_number"></el-input><span style="color:#606266;">支</span>
  1297. </el-form-item>
  1298. </el-col>
  1299. </el-row>
  1300. <el-row>
  1301. <el-col :span="8">
  1302. <el-form-item label="空气滤网清洁:">
  1303. <el-checkbox v-model="userform.clean">清洁</el-checkbox>
  1304. <span class="warn" v-show="warnShowThree">您已一个月未清洁,请检查</span>
  1305. </el-form-item>
  1306. </el-col>
  1307. <el-col :span="8">
  1308. <el-form-item class="newname" label="签名:" required prop="sign_name">
  1309. <el-select v-model="userform.sign_name" placeholder="请选择" >
  1310. <el-option
  1311. v-for="item in autograph"
  1312. :key="item.admin_user_id"
  1313. :label="item.user_name"
  1314. :value="item.admin_user_id"
  1315. style="width:185px">
  1316. </el-option>
  1317. </el-select>
  1318. </el-form-item>
  1319. </el-col>
  1320. </el-row>
  1321. <el-row>
  1322. <div class="elbutton">
  1323. <el-col :span="6">
  1324. <el-button>取消</el-button>
  1325. </el-col>
  1326. <el-col :span="2">
  1327. <el-button type="primary" @click="SaveInformation('userform')">保存</el-button>
  1328. </el-col>
  1329. </div>
  1330. </el-row>
  1331. </el-form>
  1332. </el-tab-pane>
  1333. <el-tab-pane label="使用登记列表" name="second">
  1334. <user-form ref="userForm" :userdata="userdata"></user-form>
  1335. </el-tab-pane>
  1336. </el-tabs>
  1337. </div>
  1338. <div v-show="Ushow" class="zClass">
  1339. 暂无数据
  1340. </div>
  1341. </el-tab-pane>
  1342. <el-tab-pane label="质量控制" name="fourth">
  1343. <div v-show="zhiShow">
  1344. <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
  1345. <el-tab-pane label="新增质量控制" name="first">
  1346. <span style="margin-bottom: 20px;display: block;">细菌培养</span>
  1347. <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
  1348. <el-row>
  1349. <el-col :span="8">
  1350. <el-form-item label="取样日期:">
  1351. <el-date-picker
  1352. v-model="qualityForm.date"
  1353. prefix-icon="none"
  1354. type="date"
  1355. placeholder="请选择"
  1356. format="yyyy-MM-dd"
  1357. value-format="yyyy-MM-dd"
  1358. style="width:150px">
  1359. </el-date-picker>
  1360. </el-form-item>
  1361. </el-col>
  1362. <el-col :span="8">
  1363. <el-form-item label="取样标本:">
  1364. <el-select style="width:150px" v-model="qualityForm.specimen" @change="changeSpecimen">
  1365. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1366. </el-select>
  1367. </el-form-item>
  1368. </el-col>
  1369. <el-col :span="8">
  1370. <el-form-item label="A浓缩液批号:">
  1371. <el-input style="width:150px" v-model="qualityForm.concentrate_noa" :disabled="disable"></el-input>
  1372. </el-form-item>
  1373. </el-col>
  1374. </el-row>
  1375. <el-row>
  1376. <el-col :span="8">
  1377. <el-form-item label="B浓缩液批号">
  1378. <el-input style="width:150px" v-model="qualityForm.concentrate_nob" :disabled="diableTwo"></el-input>
  1379. </el-form-item>
  1380. </el-col>
  1381. <el-col :span="8">
  1382. <el-form-item label="采样部位:">
  1383. <el-select style="width:150px" v-model="qualityForm.sampling_locationa">
  1384. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1385. </el-select>
  1386. </el-form-item>
  1387. </el-col>
  1388. <el-col :span="8">
  1389. <el-form-item label="检测单位:" required prop="detection_unit">
  1390. <el-input style="width:150px" v-model="qualityForm.detection_unit"></el-input>
  1391. </el-form-item>
  1392. </el-col>
  1393. </el-row>
  1394. <el-row>
  1395. <el-col :span="8">
  1396. <el-form-item label="取样者:" required prop="sampler">
  1397. <el-select style="width:150px" v-model="qualityForm.sampler">
  1398. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1399. </el-select>
  1400. </el-form-item>
  1401. </el-col>
  1402. <el-col :span="8">
  1403. <el-form-item label="出报告日期:" required prop="reporting_date">
  1404. <el-date-picker
  1405. v-model="qualityForm.reporting_date"
  1406. prefix-icon="none"
  1407. type="date"
  1408. placeholder="请选择"
  1409. format="yyyy-MM-dd"
  1410. value-format="yyyy-MM-dd"
  1411. style="width:150px">
  1412. </el-date-picker>
  1413. </el-form-item>
  1414. </el-col>
  1415. <el-col :span="8">
  1416. <el-form-item label="顺序号:" required prop="sort">
  1417. <el-input v-model="qualityForm.sort" style="width:150px"></el-input>
  1418. </el-form-item>
  1419. </el-col>
  1420. </el-row>
  1421. <el-row>
  1422. <el-col :span="8">
  1423. <el-form-item label="检测合格:" required prop="pass_examination">
  1424. <el-radio v-model="qualityForm.pass_examination" label="1">是</el-radio>
  1425. <el-radio v-model="qualityForm.pass_examination" label="2">否</el-radio>
  1426. </el-form-item>
  1427. </el-col>
  1428. <el-col :span="8">
  1429. <el-form-item label="修改标志:" required prop="modifications">
  1430. <el-select style="width:150px" v-model="qualityForm.modifications">
  1431. <el-option v-for="(item,index) in modifications" :key="index" :label="item.name" :value="item.id"></el-option>
  1432. </el-select>
  1433. </el-form-item>
  1434. </el-col>
  1435. </el-row>
  1436. <el-row>
  1437. <el-col :span="24">
  1438. <el-form-item label="检测结果:(cfu/ml)">
  1439. <el-input
  1440. type="textarea"
  1441. :rows="2"
  1442. placeholder="请输入内容"
  1443. style="width:84%"
  1444. v-model="qualityForm.detection_result"
  1445. >
  1446. </el-input>
  1447. </el-form-item>
  1448. </el-col>
  1449. </el-row>
  1450. <el-row>
  1451. <!-- <el-col :span="24">
  1452. <span style="color:#FF9900">注:细菌检测应每个月一次,要求细菌数<100cfu/ml</span>
  1453. </el-col> -->
  1454. </el-row>
  1455. <el-row>
  1456. <div class="clearn">
  1457. <el-col :span="4">
  1458. <el-button @click="cleanSaveBacteria">取消</el-button>
  1459. </el-col>
  1460. <el-col :span="4">
  1461. <el-button type="primary" @click="SaveBacteria('qualityForm')">保存</el-button>
  1462. </el-col>
  1463. </div>
  1464. </el-row>
  1465. </el-form>
  1466. <el-divider></el-divider>
  1467. <span style="margin-bottom: 20px;display: block;">内毒素检测</span>
  1468. <el-form ref="qualityFormTwo" :model="qualityFormTwo" :rules="diaRules">
  1469. <el-row>
  1470. <el-col :span="8">
  1471. <el-form-item label="取样日期:">
  1472. <el-date-picker
  1473. v-model="qualityFormTwo.sampling_date"
  1474. prefix-icon="none"
  1475. type="date"
  1476. placeholder="请选择"
  1477. format="yyyy-MM-dd"
  1478. value-format="yyyy-MM-dd"
  1479. style="width:150px">
  1480. </el-date-picker>
  1481. </el-form-item>
  1482. </el-col>
  1483. <el-col :span="8">
  1484. <el-form-item label="取样标本:">
  1485. <el-select style="width:150px" v-model="qualityFormTwo.specimenb" @change="changeSpecimen">
  1486. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1487. </el-select>
  1488. </el-form-item>
  1489. </el-col>
  1490. <el-col :span="8">
  1491. <el-form-item label="A浓缩液批号:">
  1492. <el-input style="width:150px" v-model="qualityFormTwo.concentrate_noc" :disabled="disable"></el-input>
  1493. </el-form-item>
  1494. </el-col>
  1495. </el-row>
  1496. <el-row>
  1497. <el-col :span="8">
  1498. <el-form-item label="B浓缩液批号:">
  1499. <el-input style="width:150px" v-model ="qualityFormTwo.concentrateb_nod" :disabled="diableTwo"></el-input>
  1500. </el-form-item>
  1501. </el-col>
  1502. <el-col :span="8">
  1503. <el-form-item label="采样部位:">
  1504. <el-select style="width:150px" v-model="qualityFormTwo.sampling_locationb">
  1505. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1506. </el-select>
  1507. </el-form-item>
  1508. </el-col>
  1509. <el-col :span="8">
  1510. <el-form-item label="检测单位:" required prop="detection_unit">
  1511. <el-input style="width:150px" v-model ="qualityFormTwo.detection_unit"></el-input>
  1512. </el-form-item>
  1513. </el-col>
  1514. </el-row>
  1515. <el-row>
  1516. <el-col :span="8">
  1517. <el-form-item label="取样者:" required prop="samplerb">
  1518. <el-select style="width:150px" v-model="qualityFormTwo.samplerb">
  1519. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1520. </el-select>
  1521. </el-form-item>
  1522. </el-col>
  1523. <el-col :span="8">
  1524. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  1525. <el-date-picker
  1526. v-model="qualityFormTwo.reporting_dateb"
  1527. prefix-icon="none"
  1528. type="date"
  1529. placeholder="请选择"
  1530. format="yyyy-MM-dd"
  1531. value-format="yyyy-MM-dd"
  1532. style="width:150px">
  1533. </el-date-picker>
  1534. </el-form-item>
  1535. </el-col>
  1536. <el-col :span="8">
  1537. <el-form-item label="顺序号:" required prop="sort">
  1538. <el-input style="width:150px" v-model="qualityFormTwo.sort" ></el-input>
  1539. </el-form-item>
  1540. </el-col>
  1541. </el-row>
  1542. <el-row>
  1543. <el-col :span="8">
  1544. <el-form-item label="检测合格:" required prop="pass_examination">
  1545. <el-radio v-model="qualityFormTwo.pass_examination" label="1">是</el-radio>
  1546. <el-radio v-model="qualityFormTwo.pass_examination" label="2">否</el-radio>
  1547. </el-form-item>
  1548. </el-col>
  1549. <el-col :span="8">
  1550. <el-form-item label="修改标志:" required prop="modifications">
  1551. <el-select style="width:150px" v-model="qualityFormTwo.modifications">
  1552. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1553. </el-select>
  1554. </el-form-item>
  1555. </el-col>
  1556. </el-row>
  1557. <el-row>
  1558. <el-col :span="24">
  1559. <el-form-item label="检测结果:(EU/ml)" label-width="100px">
  1560. <el-input
  1561. type="textarea"
  1562. :rows="2"
  1563. placeholder="请输入内容"
  1564. style="width:600px"
  1565. v-model="qualityFormTwo.detection_resultb"
  1566. >
  1567. </el-input>
  1568. </el-form-item>
  1569. </el-col>
  1570. </el-row>
  1571. <el-row>
  1572. <!-- <el-col :span="24">
  1573. <span style="color:#FF9900">注:内毒素检测应至少每3个月1次,要求内毒素<0.25EU/ml,每台透析机每年至少检测一次</span>
  1574. </el-col> -->
  1575. </el-row>
  1576. <el-row>
  1577. <div class="clearn">
  1578. <el-col :span="4">
  1579. <el-button @click="cleanLincomycin">取消</el-button>
  1580. </el-col>
  1581. <el-col :span="4">
  1582. <el-button type="primary" @click="SaveLincomycin('qualityFormTwo')">保存</el-button>
  1583. </el-col>
  1584. </div>
  1585. </el-row>
  1586. </el-form>
  1587. <el-divider></el-divider>
  1588. <div v-if="device_type == 1">
  1589. <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
  1590. <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
  1591. <el-row>
  1592. <el-col :span="8">
  1593. <el-form-item label="取样日期:">
  1594. <el-date-picker
  1595. v-model="qualityFormThree.dateb"
  1596. prefix-icon="none"
  1597. type="date"
  1598. placeholder="请选择"
  1599. format="yyyy-MM-dd"
  1600. value-format="yyyy-MM-dd"
  1601. style="width:150px">
  1602. </el-date-picker>
  1603. </el-form-item>
  1604. </el-col>
  1605. <el-col :span="8">
  1606. <el-form-item label="取样者:" required prop="samplerc">
  1607. <el-select style="width:150px" v-model="qualityFormThree.samplerc">
  1608. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1609. </el-select>
  1610. </el-form-item>
  1611. </el-col>
  1612. <el-col :span="8">
  1613. <el-form-item label="检测单位:" required prop="detection_unit">
  1614. <el-input style="width:150px" v-model ="qualityFormThree.detection_unit"></el-input>
  1615. </el-form-item>
  1616. </el-col>
  1617. </el-row>
  1618. <el-row>
  1619. <el-col :span="8">
  1620. <el-form-item label="A浓缩液批号:">
  1621. <el-input style="width:150px" v-model="qualityFormThree.concentrate_nof"></el-input>
  1622. </el-form-item>
  1623. </el-col>
  1624. <el-col :span="8">
  1625. <el-form-item label="B浓缩液批号:">
  1626. <el-input style="width:150px" v-model="qualityFormThree.concentrate_nog"></el-input>
  1627. </el-form-item>
  1628. </el-col>
  1629. <el-col :span="8">
  1630. <el-form-item label="出报告日期:" required prop="date_reportc">
  1631. <el-date-picker
  1632. v-model="qualityFormThree.date_reportc"
  1633. prefix-icon="none"
  1634. type="date"
  1635. placeholder="请选择"
  1636. format="yyyy-MM-dd"
  1637. value-format="yyyy-MM-dd"
  1638. style="width:150px">
  1639. </el-date-picker>
  1640. </el-form-item>
  1641. </el-col>
  1642. </el-row>
  1643. <el-row>
  1644. <el-col :span="8">
  1645. <!-- <span>Na<sup>+</sup></span> -->
  1646. <el-form-item class="newItem" label="实际Na⁺(mmol/L):" label-width="100">
  1647. <el-input style="width:123px" v-model="qualityFormThree.actual_na"></el-input>
  1648. </el-form-item>
  1649. </el-col>
  1650. <el-col :span="8">
  1651. <el-form-item class="newItem" label="配方Na⁺(mmol/L):" label-width="100">
  1652. <el-input style="width:123px" v-model="qualityFormThree.actual_pna"></el-input>
  1653. </el-form-item>
  1654. </el-col>
  1655. <el-col :span="8">
  1656. <el-form-item label="K⁺(mmol/L):">
  1657. <el-input style="width:150px" v-model="qualityFormThree.actual_k"></el-input>
  1658. </el-form-item>
  1659. </el-col>
  1660. </el-row>
  1661. <el-row>
  1662. <el-col :span="8">
  1663. <el-form-item label="Ca2⁺(mmol/L):">
  1664. <el-input style="width:150px" v-model="qualityFormThree.actual_ca"></el-input>
  1665. </el-form-item>
  1666. </el-col>
  1667. <el-col :span="8">
  1668. <el-form-item label="CI¯(mmol/L):">
  1669. <el-input style="width:150px" v-model="qualityFormThree.actual_ci"></el-input>
  1670. </el-form-item>
  1671. </el-col>
  1672. <el-col :span="8">
  1673. <el-form-item label="HCO3¯(mmol/L):">
  1674. <el-input style="width:150px" v-model="qualityFormThree.actual_hco"></el-input>
  1675. </el-form-item>
  1676. </el-col>
  1677. </el-row>
  1678. <el-row>
  1679. <el-col :span="8">
  1680. <el-form-item label="Mg2⁺(mmol/L):">
  1681. <el-input style="width:150px" v-model="qualityFormThree.actual_mg"></el-input>
  1682. </el-form-item>
  1683. </el-col>
  1684. <el-col :span="8">
  1685. <el-form-item label="PH:">
  1686. <el-input style="width:150px" v-model="qualityFormThree.actual_ph"></el-input>
  1687. </el-form-item>
  1688. </el-col>
  1689. <el-col :span="8">
  1690. <el-form-item label="顺序号:" required prop="sort">
  1691. <el-input v-model="qualityFormThree.sort" style="width:150px"></el-input>
  1692. </el-form-item>
  1693. </el-col>
  1694. </el-row>
  1695. <el-row>
  1696. <div></div>
  1697. </el-row>
  1698. <el-row>
  1699. <el-col :span="8">
  1700. <el-form-item label="检测合格:" required prop="pass_examination">
  1701. <el-radio v-model="qualityFormThree.pass_examination" label="1">是</el-radio>
  1702. <el-radio v-model="qualityFormThree.pass_examination" label="2">否</el-radio>
  1703. </el-form-item>
  1704. </el-col>
  1705. <el-col :span="8">
  1706. <el-form-item label="修改标志:" required prop="modifications">
  1707. <el-select style="width:150px" v-model="qualityFormThree.modifications">
  1708. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1709. </el-select>
  1710. </el-form-item>
  1711. </el-col>
  1712. </el-row>
  1713. <el-row>
  1714. <el-col :span="24">
  1715. <el-form-item label="备注:">
  1716. <el-input
  1717. type="textarea"
  1718. :rows="2"
  1719. placeholder="请输入内容"
  1720. style="width:500px"
  1721. v-model="qualityFormThree.remakes"
  1722. >
  1723. </el-input>
  1724. </el-form-item>
  1725. </el-col>
  1726. </el-row>
  1727. <el-row>
  1728. <div class="clearn">
  1729. <el-col :span="4">
  1730. <el-button @click="cleanQuality">取消</el-button>
  1731. </el-col>
  1732. <el-col :span="4">
  1733. <el-button type="primary" @click="SaveQualityControl('qualityFormThree')">保存</el-button>
  1734. </el-col>
  1735. </div>
  1736. </el-row>
  1737. </el-form>
  1738. <el-divider></el-divider>
  1739. </div>
  1740. <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
  1741. <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
  1742. <el-row>
  1743. <el-col :span="8">
  1744. <el-form-item label="取样日期:">
  1745. <el-date-picker
  1746. v-model="qualityFormFour.sampling_date"
  1747. prefix-icon="none"
  1748. type="date"
  1749. placeholder="请选择"
  1750. format="yyyy-MM-dd"
  1751. value-format="yyyy-MM-dd"
  1752. style="width:150px">
  1753. </el-date-picker>
  1754. </el-form-item>
  1755. </el-col>
  1756. <el-col :span="8">
  1757. <el-form-item label="取样标本:">
  1758. <el-select style="width:150px" v-model="qualityFormFour.specimenb" @change="changeSpecimen">
  1759. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1760. </el-select>
  1761. </el-form-item>
  1762. </el-col>
  1763. <el-col :span="8">
  1764. <el-form-item label="A浓缩液批号:">
  1765. <el-input style="width:150px" v-model="qualityFormFour.concentrate_noc" :disabled="disable"></el-input>
  1766. </el-form-item>
  1767. </el-col>
  1768. </el-row>
  1769. <el-row>
  1770. <el-col :span="8">
  1771. <el-form-item label="B浓缩液批号:">
  1772. <el-input style="width:150px" v-model ="qualityFormFour.concentrateb_nod" :disabled="diableTwo"></el-input>
  1773. </el-form-item>
  1774. </el-col>
  1775. <el-col :span="8">
  1776. <el-form-item label="采样部位:">
  1777. <el-select style="width:150px" v-model="qualityFormFour.sampling_locationb">
  1778. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1779. </el-select>
  1780. </el-form-item>
  1781. </el-col>
  1782. <el-col :span="8">
  1783. <el-form-item label="检测单位:" required prop="detection_unit">
  1784. <el-input style="width:150px" v-model ="qualityFormFour.detection_unit"></el-input>
  1785. </el-form-item>
  1786. </el-col>
  1787. </el-row>
  1788. <el-row>
  1789. <el-col :span="8">
  1790. <el-form-item label="取样者:" required prop="samplerb">
  1791. <el-select style="width:150px" v-model="qualityFormFour.samplerb">
  1792. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1793. </el-select>
  1794. </el-form-item>
  1795. </el-col>
  1796. <el-col :span="8">
  1797. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  1798. <el-date-picker
  1799. v-model="qualityFormFour.reporting_dateb"
  1800. prefix-icon="none"
  1801. type="date"
  1802. placeholder="请选择"
  1803. format="yyyy-MM-dd"
  1804. value-format="yyyy-MM-dd"
  1805. style="width:150px">
  1806. </el-date-picker>
  1807. </el-form-item>
  1808. </el-col>
  1809. <el-col :span="8">
  1810. <el-form-item label="顺序号:" required prop="sort">
  1811. <el-input style="width:150px" v-model="qualityFormFour.sort" ></el-input>
  1812. </el-form-item>
  1813. </el-col>
  1814. </el-row>
  1815. <el-row>
  1816. <el-col :span="8">
  1817. <el-form-item label="检测合格:" required prop="pass_examination">
  1818. <el-radio v-model="qualityFormFour.pass_examination" label="1">是</el-radio>
  1819. <el-radio v-model="qualityFormFour.pass_examination" label="2">否</el-radio>
  1820. </el-form-item>
  1821. </el-col>
  1822. <el-col :span="8">
  1823. <el-form-item label="修改标志:" required prop="modifications">
  1824. <el-select style="width:150px" v-model="qualityFormFour.modifications">
  1825. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1826. </el-select>
  1827. </el-form-item>
  1828. </el-col>
  1829. </el-row>
  1830. <el-row>
  1831. <el-col :span="24">
  1832. <el-form-item label="检测结果:(EU/ml)" label-width="100px">
  1833. <el-input
  1834. type="textarea"
  1835. :rows="2"
  1836. placeholder="请输入内容"
  1837. style="width:600px"
  1838. v-model="qualityFormFour.detection_resultb"
  1839. >
  1840. </el-input>
  1841. </el-form-item>
  1842. </el-col>
  1843. </el-row>
  1844. <el-row>
  1845. <!-- <el-col :span="24">
  1846. <span style="color:#FF9900">注:有毒化合物检测应至少每3个月1次,每台透析机每年至少检测一次</span>
  1847. </el-col> -->
  1848. </el-row>
  1849. <el-row>
  1850. <div class="clearn">
  1851. <el-col :span="4">
  1852. <el-button @click="cleanLincomycin">取消</el-button>
  1853. </el-col>
  1854. <el-col :span="4">
  1855. <el-button type="primary" @click="saveOxygenates('qualityFormFour')">保存</el-button>
  1856. </el-col>
  1857. </div>
  1858. </el-row>
  1859. </el-form>
  1860. <el-divider></el-divider>
  1861. <span style="margin-bottom: 20px;display: block;">水硬度检测</span>
  1862. <el-form ref="qualityFormFive" :model="qualityFormFive" :rules="diaRules">
  1863. <el-row>
  1864. <el-col :span="8">
  1865. <el-form-item label="取样日期:">
  1866. <el-date-picker
  1867. v-model="qualityFormFive.sampling_date"
  1868. prefix-icon="none"
  1869. type="date"
  1870. placeholder="请选择"
  1871. format="yyyy-MM-dd"
  1872. value-format="yyyy-MM-dd"
  1873. style="width:150px">
  1874. </el-date-picker>
  1875. </el-form-item>
  1876. </el-col>
  1877. <el-col :span="8">
  1878. <el-form-item label="取样标本:">
  1879. <el-select style="width:150px" v-model="qualityFormFive.specimenb" @change="changeSpecimen">
  1880. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1881. </el-select>
  1882. </el-form-item>
  1883. </el-col>
  1884. <el-col :span="8">
  1885. <el-form-item label="A浓缩液批号:">
  1886. <el-input style="width:150px" v-model="qualityFormFive.concentrate_noc" :disabled="disable"></el-input>
  1887. </el-form-item>
  1888. </el-col>
  1889. </el-row>
  1890. <el-row>
  1891. <el-col :span="8">
  1892. <el-form-item label="B浓缩液批号:">
  1893. <el-input style="width:150px" v-model ="qualityFormFive.concentrateb_nod" :disabled="diableTwo"></el-input>
  1894. </el-form-item>
  1895. </el-col>
  1896. <el-col :span="8">
  1897. <el-form-item label="采样部位:">
  1898. <el-select style="width:150px" v-model="qualityFormFive.sampling_locationb">
  1899. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1900. </el-select>
  1901. </el-form-item>
  1902. </el-col>
  1903. <el-col :span="8">
  1904. <el-form-item label="检测单位:" required prop="detection_unit">
  1905. <el-input style="width:150px" v-model ="qualityFormFive.detection_unit"></el-input>
  1906. </el-form-item>
  1907. </el-col>
  1908. </el-row>
  1909. <el-row>
  1910. <el-col :span="8">
  1911. <el-form-item label="取样者:" required prop="samplerb">
  1912. <el-select style="width:150px" v-model="qualityFormFive.samplerb">
  1913. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1914. </el-select>
  1915. </el-form-item>
  1916. </el-col>
  1917. <el-col :span="8">
  1918. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  1919. <el-date-picker
  1920. v-model="qualityFormFive.reporting_dateb"
  1921. prefix-icon="none"
  1922. type="date"
  1923. placeholder="请选择"
  1924. format="yyyy-MM-dd"
  1925. value-format="yyyy-MM-dd"
  1926. style="width:150px">
  1927. </el-date-picker>
  1928. </el-form-item>
  1929. </el-col>
  1930. <el-col :span="8">
  1931. <el-form-item label="顺序号:" required prop="sort">
  1932. <el-input style="width:150px" v-model="qualityFormFive.sort" ></el-input>
  1933. </el-form-item>
  1934. </el-col>
  1935. </el-row>
  1936. <el-row>
  1937. <el-col :span="8">
  1938. <el-form-item label="检测合格:" required prop="pass_examination">
  1939. <el-radio v-model="qualityFormFive.pass_examination" label="1">是</el-radio>
  1940. <el-radio v-model="qualityFormFive.pass_examination" label="2">否</el-radio>
  1941. </el-form-item>
  1942. </el-col>
  1943. <el-col :span="8">
  1944. <el-form-item label="修改标志:" required prop="modifications">
  1945. <el-select style="width:150px" v-model="qualityFormFive.modifications">
  1946. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1947. </el-select>
  1948. </el-form-item>
  1949. </el-col>
  1950. </el-row>
  1951. <el-row>
  1952. <el-col :span="24">
  1953. <el-form-item label="检测结果:(EU/ml)" label-width="100px">
  1954. <el-input
  1955. type="textarea"
  1956. :rows="2"
  1957. placeholder="请输入内容"
  1958. style="width:600px"
  1959. v-model="qualityFormFive.detection_resultb"
  1960. >
  1961. </el-input>
  1962. </el-form-item>
  1963. </el-col>
  1964. </el-row>
  1965. <!-- <el-row>
  1966. <el-col :span="24">
  1967. <span style="color:#FF9900">注:水硬度检测应至少每3个月1次,每台透析机每年至少检测一次</span>
  1968. </el-col>
  1969. </el-row> -->
  1970. <el-row>
  1971. <div class="clearn">
  1972. <el-col :span="4">
  1973. <el-button @click="cleanLincomycin">取消</el-button>
  1974. </el-col>
  1975. <el-col :span="4">
  1976. <el-button type="primary" @click="saveHardWater('qualityFormFive')">保存</el-button>
  1977. </el-col>
  1978. </div>
  1979. </el-row>
  1980. </el-form>
  1981. <el-divider></el-divider>
  1982. <span style="margin-bottom: 20px;display: block;">水游离氯检测</span>
  1983. <el-form ref="qualityFormSix" :model="qualityFormSix" :rules="diaRules">
  1984. <el-row>
  1985. <el-col :span="8">
  1986. <el-form-item label="取样日期:">
  1987. <el-date-picker
  1988. v-model="qualityFormSix.sampling_date"
  1989. prefix-icon="none"
  1990. type="date"
  1991. placeholder="请选择"
  1992. format="yyyy-MM-dd"
  1993. value-format="yyyy-MM-dd"
  1994. style="width:150px">
  1995. </el-date-picker>
  1996. </el-form-item>
  1997. </el-col>
  1998. <el-col :span="8">
  1999. <el-form-item label="取样标本:">
  2000. <el-select style="width:150px" v-model="qualityFormSix.specimenb" @change="changeSpecimen">
  2001. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  2002. </el-select>
  2003. </el-form-item>
  2004. </el-col>
  2005. <el-col :span="8">
  2006. <el-form-item label="A浓缩液批号:">
  2007. <el-input style="width:150px" v-model="qualityFormSix.concentrate_noc" :disabled="disable"></el-input>
  2008. </el-form-item>
  2009. </el-col>
  2010. </el-row>
  2011. <el-row>
  2012. <el-col :span="8">
  2013. <el-form-item label="B浓缩液批号:">
  2014. <el-input style="width:150px" v-model ="qualityFormSix.concentrateb_nod" :disabled="diableTwo"></el-input>
  2015. </el-form-item>
  2016. </el-col>
  2017. <el-col :span="8">
  2018. <el-form-item label="采样部位:">
  2019. <el-select style="width:150px" v-model="qualityFormSix.sampling_locationb">
  2020. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  2021. </el-select>
  2022. </el-form-item>
  2023. </el-col>
  2024. <el-col :span="8">
  2025. <el-form-item label="检测单位:" required prop="detection_unit">
  2026. <el-input style="width:150px" v-model ="qualityFormSix.detection_unit"></el-input>
  2027. </el-form-item>
  2028. </el-col>
  2029. </el-row>
  2030. <el-row>
  2031. <el-col :span="8">
  2032. <el-form-item label="取样者:" required prop="samplerb">
  2033. <el-select style="width:150px" v-model="qualityFormSix.samplerb">
  2034. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  2035. </el-select>
  2036. </el-form-item>
  2037. </el-col>
  2038. <el-col :span="8">
  2039. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  2040. <el-date-picker
  2041. v-model="qualityFormSix.reporting_dateb"
  2042. prefix-icon="none"
  2043. type="date"
  2044. placeholder="请选择"
  2045. format="yyyy-MM-dd"
  2046. value-format="yyyy-MM-dd"
  2047. style="width:150px">
  2048. </el-date-picker>
  2049. </el-form-item>
  2050. </el-col>
  2051. <el-col :span="8">
  2052. <el-form-item label="顺序号:" required prop="sort">
  2053. <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
  2054. </el-form-item>
  2055. </el-col>
  2056. </el-row>
  2057. <el-row>
  2058. <el-col :span="8">
  2059. <el-form-item label="检测合格:" required prop="pass_examination">
  2060. <el-radio v-model="qualityFormSix.pass_examination" label="1">是</el-radio>
  2061. <el-radio v-model="qualityFormSix.pass_examination" label="2">否</el-radio>
  2062. </el-form-item>
  2063. </el-col>
  2064. <el-col :span="8">
  2065. <el-form-item label="修改标志:" required prop="modifications">
  2066. <el-select style="width:150px" v-model="qualityFormSix.modifications">
  2067. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  2068. </el-select>
  2069. </el-form-item>
  2070. </el-col>
  2071. </el-row>
  2072. <el-row>
  2073. <el-col :span="24">
  2074. <el-form-item label="检测结果:(EU/ml)" label-width="100px">
  2075. <el-input
  2076. type="textarea"
  2077. :rows="2"
  2078. placeholder="请输入内容"
  2079. style="width:600px"
  2080. v-model="qualityFormSix.detection_resultb"
  2081. >
  2082. </el-input>
  2083. </el-form-item>
  2084. </el-col>
  2085. </el-row>
  2086. <!-- <el-row>
  2087. <el-col :span="24">
  2088. <span style="color:#FF9900">注:水游离氯检测应至少每3个月1次,每台透析机每年至少检测一次</span>
  2089. </el-col>
  2090. </el-row> -->
  2091. <el-row>
  2092. <div class="clearn">
  2093. <el-col :span="4">
  2094. <el-button @click="cleanLincomycin">取消</el-button>
  2095. </el-col>
  2096. <el-col :span="4">
  2097. <el-button type="primary" @click="saveWater('qualityFormSix')">保存</el-button>
  2098. </el-col>
  2099. </div>
  2100. </el-row>
  2101. </el-form>
  2102. <el-divider></el-divider>
  2103. <span style="margin-bottom: 20px;display: block;">PH值检测</span>
  2104. <el-form ref="qualityFormSeven" :model="qualityFormSeven" :rules="diaRules">
  2105. <el-row>
  2106. <el-col :span="8">
  2107. <el-form-item label="取样日期:">
  2108. <el-date-picker
  2109. v-model="qualityFormSeven.sampling_date"
  2110. prefix-icon="none"
  2111. type="date"
  2112. placeholder="请选择"
  2113. format="yyyy-MM-dd"
  2114. value-format="yyyy-MM-dd"
  2115. style="width:150px">
  2116. </el-date-picker>
  2117. </el-form-item>
  2118. </el-col>
  2119. <el-col :span="8">
  2120. <el-form-item label="取样标本:">
  2121. <el-select style="width:150px" v-model="qualityFormSeven.specimenb" @change="changeSpecimen">
  2122. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  2123. </el-select>
  2124. </el-form-item>
  2125. </el-col>
  2126. <el-col :span="8">
  2127. <el-form-item label="A浓缩液批号:">
  2128. <el-input style="width:150px" v-model="qualityFormSeven.concentrate_noc" :disabled="disable"></el-input>
  2129. </el-form-item>
  2130. </el-col>
  2131. </el-row>
  2132. <el-row>
  2133. <el-col :span="8">
  2134. <el-form-item label="B浓缩液批号:">
  2135. <el-input style="width:150px" v-model ="qualityFormSeven.concentrateb_nod" :disabled="diableTwo"></el-input>
  2136. </el-form-item>
  2137. </el-col>
  2138. <el-col :span="8">
  2139. <el-form-item label="采样部位:">
  2140. <el-select style="width:150px" v-model="qualityFormSeven.sampling_locationb">
  2141. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  2142. </el-select>
  2143. </el-form-item>
  2144. </el-col>
  2145. <el-col :span="8">
  2146. <el-form-item label="检测单位:" required prop="detection_unit">
  2147. <el-input style="width:150px" v-model ="qualityFormSeven.detection_unit"></el-input>
  2148. </el-form-item>
  2149. </el-col>
  2150. </el-row>
  2151. <el-row>
  2152. <el-col :span="8">
  2153. <el-form-item label="取样者:" required prop="samplerb">
  2154. <el-select style="width:150px" v-model="qualityFormSeven.samplerb">
  2155. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  2156. </el-select>
  2157. </el-form-item>
  2158. </el-col>
  2159. <el-col :span="8">
  2160. <el-form-item label="出报告日期:" required prop="reporting_dateb">
  2161. <el-date-picker
  2162. v-model="qualityFormSeven.reporting_dateb"
  2163. prefix-icon="none"
  2164. type="date"
  2165. placeholder="请选择"
  2166. format="yyyy-MM-dd"
  2167. value-format="yyyy-MM-dd"
  2168. style="width:150px">
  2169. </el-date-picker>
  2170. </el-form-item>
  2171. </el-col>
  2172. <el-col :span="8">
  2173. <el-form-item label="顺序号:" required prop="sort">
  2174. <el-input style="width:150px" v-model="qualityFormSeven.sort" ></el-input>
  2175. </el-form-item>
  2176. </el-col>
  2177. </el-row>
  2178. <el-row>
  2179. <el-col :span="8">
  2180. <el-form-item label="检测合格:" required prop="pass_examination">
  2181. <el-radio v-model="qualityFormSeven.pass_examination" label="1">是</el-radio>
  2182. <el-radio v-model="qualityFormSeven.pass_examination" label="2">否</el-radio>
  2183. </el-form-item>
  2184. </el-col>
  2185. <el-col :span="8">
  2186. <el-form-item label="修改标志:" required prop="modifications">
  2187. <el-select style="width:150px" v-model="qualityFormSeven.modifications">
  2188. <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
  2189. </el-select>
  2190. </el-form-item>
  2191. </el-col>
  2192. </el-row>
  2193. <el-row>
  2194. <el-col :span="24">
  2195. <el-form-item label="检测结果:(EU/ml)" label-width="100px">
  2196. <el-input
  2197. type="textarea"
  2198. :rows="2"
  2199. placeholder="请输入内容"
  2200. style="width:600px"
  2201. v-model="qualityFormSeven.detection_resultb"
  2202. >
  2203. </el-input>
  2204. </el-form-item>
  2205. </el-col>
  2206. </el-row>
  2207. <!-- <el-row>
  2208. <el-col :span="24">
  2209. <span style="color:#FF9900">注:PH值检测检测应至少每3个月1次,每台透析机每年至少检测一次</span>
  2210. </el-col>
  2211. </el-row> -->
  2212. <el-row>
  2213. <div class="clearn">
  2214. <el-col :span="4">
  2215. <el-button @click="cleanLincomycin">取消</el-button>
  2216. </el-col>
  2217. <el-col :span="4">
  2218. <el-button type="primary" @click="saveDevicePH('qualityFormSeven')">保存</el-button>
  2219. </el-col>
  2220. </div>
  2221. </el-row>
  2222. </el-form>
  2223. <el-divider></el-divider>
  2224. </el-tab-pane>
  2225. <el-tab-pane label="质量控制列表" name="second">
  2226. <quality-form ref="mychild"></quality-form>
  2227. </el-tab-pane>
  2228. </el-tabs>
  2229. </div>
  2230. <div v-show="zhShow" class="zClass">
  2231. 暂无数据
  2232. </div>
  2233. </el-tab-pane>
  2234. <el-tab-pane label="维修维护" name="five">
  2235. <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
  2236. <el-tab-pane label="新增维修维护" name="first">
  2237. <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
  2238. <el-row>
  2239. <el-col :span="8">
  2240. <el-form-item label="保修日期:" required prop="guarantee_date">
  2241. <el-date-picker
  2242. v-model="guaForm.guarantee_date"
  2243. prefix-icon="none"
  2244. type="date"
  2245. placeholder="请选择"
  2246. format="yyyy-MM-dd"
  2247. value-format="yyyy-MM-dd"
  2248. style="width:150px">
  2249. </el-date-picker>
  2250. </el-form-item>
  2251. </el-col>
  2252. <el-col :span="8">
  2253. <el-form-item label="出发时间:">
  2254. <el-date-picker
  2255. type="datetime"
  2256. format="yyyy-MM-dd HH:mm"
  2257. value-format="yyyy-MM-dd HH:mm"
  2258. placeholder="选择时间"
  2259. v-model="guaForm.start_time"
  2260. style="width:185px;">
  2261. </el-date-picker>
  2262. </el-form-item>
  2263. </el-col>
  2264. </el-row>
  2265. <el-row>
  2266. <el-col :span="8">
  2267. <el-form-item label="到达时间:">
  2268. <el-date-picker
  2269. type="datetime"
  2270. format="yyyy-MM-dd HH:mm"
  2271. value-format="yyyy-MM-dd HH:mm"
  2272. placeholder="选择时间"
  2273. v-model="guaForm.arrive_time"
  2274. style="width:185px;">
  2275. </el-date-picker>
  2276. </el-form-item>
  2277. </el-col>
  2278. <el-col :span="8">
  2279. <el-form-item label="完成时间:">
  2280. <el-date-picker
  2281. type="datetime"
  2282. format="yyyy-MM-dd HH:mm"
  2283. value-format="yyyy-MM-dd HH:mm"
  2284. placeholder="选择时间"
  2285. v-model="guaForm.finish_time"
  2286. style="width:185px;">
  2287. </el-date-picker>
  2288. </el-form-item>
  2289. </el-col>
  2290. <el-col :span="8">
  2291. <el-form-item label="总路程:(公里)">
  2292. <el-input style="width:150px" v-model = "guaForm.total_distance"></el-input>
  2293. </el-form-item>
  2294. </el-col>
  2295. </el-row>
  2296. <el-row>
  2297. <el-col :span="24">
  2298. <el-form-item label="故障发生阶段">
  2299. <el-radio-group v-model="guaForm.failure_stage">
  2300. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
  2301. </el-radio-group>
  2302. </el-form-item>
  2303. </el-col>
  2304. </el-row>
  2305. <el-row>
  2306. <el-col :span="24">
  2307. <el-form-item class="formItem" label="故障提示信息及代码">
  2308. <el-input
  2309. type="textarea"
  2310. :rows="2"
  2311. placeholder="请输入内容"
  2312. v-model="guaForm.code_information"
  2313. style="width:85%">
  2314. </el-input>
  2315. </el-form-item>
  2316. </el-col>
  2317. </el-row>
  2318. <el-row>
  2319. <el-col :span="8">
  2320. <el-form-item label="故障描述:" required prop="fault_description">
  2321. <el-input
  2322. type="textarea"
  2323. :rows="2"
  2324. placeholder="请输入内容"
  2325. v-model="guaForm.fault_description"
  2326. style="width:86%;margin-left: 10%;">
  2327. </el-input>
  2328. </el-form-item>
  2329. </el-col>
  2330. <el-col :span="8">
  2331. <el-form-item label="原因分析:">
  2332. <el-input
  2333. type="textarea"
  2334. :rows="2"
  2335. placeholder="请输入内容"
  2336. v-model="guaForm.cause_analysis"
  2337. style="width:86%;margin-left: 10%;">
  2338. </el-input>
  2339. </el-form-item>
  2340. </el-col>
  2341. <el-col :span="8">
  2342. <el-form-item label="处理过程:">
  2343. <el-input
  2344. type="textarea"
  2345. :rows="2"
  2346. placeholder="请输入内容"
  2347. v-model="guaForm.treatment_process"
  2348. style="width:86%;margin-left: 10%;">
  2349. </el-input>
  2350. </el-form-item>
  2351. </el-col>
  2352. </el-row>
  2353. <el-row>
  2354. <el-col :span="24">
  2355. <el-form-item label="上传图片:">
  2356. <el-upload
  2357. :data="uploadFileData"
  2358. action="https://upload.qiniup.com"
  2359. :on-success="handleSuccess"
  2360. :before-upload="beforeUploadFile"
  2361. :limit="1"
  2362. ref='upload'
  2363. accept=".jpg,.png,.gif"
  2364. >
  2365. <el-button size="small" type="primary">上传图片</el-button>
  2366. </el-upload>
  2367. <a class="el-upload-list__item-name" v-show="classShow">
  2368. <i style="color:#0000EE"><a :href="guaForm.images" target="_blank">{{filename}}</a><span @click="hiddenShow"><li class="el-icon-circle-close"></li></span></i>
  2369. </a>
  2370. </el-form-item>
  2371. </el-col>
  2372. </el-row>
  2373. <el-row>
  2374. <el-col :span="20">
  2375. <el-form-item label="故障是否排除:">
  2376. <el-radio-group v-model="guaForm.exclude">
  2377. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in breakDown" :key="index">{{gender.name}}</el-radio>
  2378. </el-radio-group>
  2379. </el-form-item>
  2380. </el-col>
  2381. </el-row>
  2382. <el-row>
  2383. <el-col :span="20">
  2384. <el-form-item label="原因:">
  2385. <el-input
  2386. type="textarea"
  2387. :rows="2"
  2388. placeholder="请输入内容"
  2389. v-model="guaForm.reason"
  2390. style="width:300px">
  2391. </el-input>
  2392. </el-form-item>
  2393. </el-col>
  2394. </el-row>
  2395. <el-row>
  2396. <div class="clearn">
  2397. <el-col :span="4">
  2398. <el-button>取消</el-button>
  2399. </el-col>
  2400. <el-col :span="4">
  2401. <el-button type="primary" @click="SaveRepair('guaForm')">保存</el-button>
  2402. </el-col>
  2403. </div>
  2404. </el-row>
  2405. </el-form>
  2406. </el-tab-pane>
  2407. <el-tab-pane label="维修维护列表" name="second">
  2408. <repair-form ref="child"></repair-form>
  2409. </el-tab-pane>
  2410. </el-tabs>
  2411. </el-tab-pane>
  2412. </el-tabs>
  2413. </div>
  2414. <!-- <el-autocomplete
  2415. popper-class="my-autocomplete"
  2416. v-model="state"
  2417. :fetch-suggestions="querySearch"
  2418. placeholder="请输入内容"
  2419. @select="handleSelect"
  2420. >
  2421. <i
  2422. class="el-icon-edit el-input__icon"
  2423. slot="suffix"
  2424. @click="handleIconClick">
  2425. </i>
  2426. <template slot-scope="{ item }">
  2427. <div class="name">{{ item.value }}</div>
  2428. <span class="addr">{{ item.address }}</span>
  2429. </template>
  2430. </el-autocomplete> -->
  2431. </el-main>
  2432. </el-container>
  2433. </el-container>
  2434. </el-container>
  2435. <!-- 新增计划 -->
  2436. <plan-form ref="planForm" :equimentid="equimentid" v-on:getAllPlan="getAllPlan" v-on:getAllPlanDetail="getAllPlanDetail" @func="getPlanData"></plan-form>
  2437. <!-- <edit-machine-form ref="editmachineform" :planid="planid" ></edit-machine-form> -->
  2438. <!-- 综合查询 -->
  2439. <multiple-form ref="multipleform" :equimentid="equimentid"></multiple-form>
  2440. <!-- 使用登记提醒配置 -->
  2441. <remander-form ref="remanderform"> </remander-form>
  2442. <!-- 编辑消毒计划 -->
  2443. <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="50%" center>
  2444. <el-form :model="machineform" ref="machineform" :rules="planRules">
  2445. <el-row>
  2446. <el-col :span="10">
  2447. <el-form-item label="设备型号:" required prop = "device_type">
  2448. <el-select style="width:135px" v-model="machineform.device_type">
  2449. <el-option
  2450. v-for="item in this.DeviceType"
  2451. :key="item.id"
  2452. :label="item.device_mode"
  2453. :value="item.id"
  2454. ></el-option>
  2455. </el-select>
  2456. </el-form-item>
  2457. </el-col>
  2458. <el-col :span="10">
  2459. <el-form-item label="消毒时长:" required prop="disinfec_time">
  2460. <el-input style="width:135px" v-model="machineform.disinfec_time"></el-input>
  2461. <span>分钟</span>
  2462. </el-form-item>
  2463. </el-col>
  2464. </el-row>
  2465. <el-row>
  2466. <el-col :span="10">
  2467. <el-form-item label="时间:" required prop="time">
  2468. <el-select
  2469. v-model="machineform.time"
  2470. placeholder="请选择时间"
  2471. style="width: 140px;"
  2472. >
  2473. <el-option
  2474. v-for="item in this.timeType"
  2475. :key="item.id"
  2476. :label="item.name"
  2477. :value="item.id"
  2478. ></el-option>
  2479. </el-select>
  2480. </el-form-item>
  2481. </el-col>
  2482. <el-col :span="10">
  2483. <el-form-item label="班次:" required prop="class_time">
  2484. <el-select
  2485. v-model="machineform.class_time"
  2486. placeholder="请选择时间"
  2487. style="width: 140px;"
  2488. >
  2489. <el-option
  2490. v-for="item in this.classType"
  2491. :key="item.id"
  2492. :label="item.name"
  2493. :value="item.id"
  2494. ></el-option>
  2495. </el-select>
  2496. </el-form-item>
  2497. </el-col>
  2498. </el-row>
  2499. <el-row>
  2500. <el-col :span="10">
  2501. <el-form-item label="机表消毒方式:">
  2502. <el-select style="width:135px" v-model="machineform.way">
  2503. <el-option
  2504. v-for="item in this.disinfectType"
  2505. :key="item.id"
  2506. :label="item.name"
  2507. :value="item.id"
  2508. ></el-option>
  2509. </el-select>
  2510. </el-form-item>
  2511. </el-col>
  2512. <el-col :span="10">
  2513. <el-form-item label="机表消毒液:">
  2514. <el-select
  2515. style="width:135px"
  2516. v-model="machineform.machine_disinfectant"
  2517. >
  2518. <el-option
  2519. v-for="item in this.disinfectantType"
  2520. :key="item.id"
  2521. :label="item.name"
  2522. :value="item.id"
  2523. ></el-option>
  2524. </el-select>
  2525. </el-form-item>
  2526. </el-col>
  2527. </el-row>
  2528. <el-row>
  2529. <el-col :span="10">
  2530. <el-form-item label="液路消毒方式:">
  2531. <el-select style="width:135px" v-model="machineform.disinfectant_way">
  2532. <el-option
  2533. v-for="item in this.sterilizeType"
  2534. :key="item.id"
  2535. :label="item.name"
  2536. :value="item.id"
  2537. ></el-option>
  2538. </el-select>
  2539. </el-form-item>
  2540. </el-col>
  2541. <el-col :span="10">
  2542. <el-form-item label="液路消毒液:">
  2543. <el-select style="width:135px" v-model="machineform.disinfectant">
  2544. <el-option
  2545. v-for="item in this.fluidPathType"
  2546. :key="item.id"
  2547. :label="item.name"
  2548. :value="item.id"
  2549. ></el-option>
  2550. </el-select>
  2551. </el-form-item>
  2552. </el-col>
  2553. </el-row>
  2554. </el-form>
  2555. <span slot="footer" class="dialog-footer">
  2556. <el-button @click="dialogVisible = false">取 消</el-button>
  2557. <el-button type="primary" @click="UpdatePlanInfo('machineform')">保存</el-button>
  2558. </span>
  2559. </el-dialog>
  2560. </div>
  2561. </div>
  2562. </template>
  2563. <script>
  2564. import BreadCrumb from '../components/bread-crumb'
  2565. import { getAllSubregion, getAllMachine, getMachineDetailById,
  2566. UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
  2567. getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
  2568. ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getTimeBeteen, getAllpatient, UpdateMachineInfoTwo, getPatientDetail,
  2569. openDelete, getAllMode, selectChange, selectBed,GetUserTotalCount } from '@/api/manage'
  2570. import { uParseTime } from '@/utils/tools'
  2571. import { getToken } from '@/api/qiniu'
  2572. import PlanForm from './components/PlanForm'
  2573. import EditMachineForm from './components/EditMachineForm'
  2574. import MultipleForm from './components/MultipleForm'
  2575. import UserForm from './components/UserForm'
  2576. import QualityForm from './components/QualityForm'
  2577. import RepairForm from './components/RepairForm'
  2578. import RemanderForm from './components/RemanderForm'
  2579. import { parseTime } from '@/utils'
  2580. import { getFileExtension } from '@/utils/tools'
  2581. import { PostSearch } from '@/api/patient'
  2582. import {saveOxygenates,saveHardWater,saveWater,saveDevicePH} from '@/api/device'
  2583. const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD', 'HFHD+HP', 'PHF', 'HFR', 'HDF+HP', 'CRRT', '腹水回输']
  2584. const moment = require('moment')
  2585. export default {
  2586. name: 'home',
  2587. components: {
  2588. BreadCrumb,
  2589. PlanForm,
  2590. EditMachineForm,
  2591. MultipleForm,
  2592. UserForm,
  2593. QualityForm,
  2594. RepairForm,
  2595. RemanderForm
  2596. },
  2597. data() {
  2598. return {
  2599. crumbs: [
  2600. { path: false, name: '设备管理详情页' }
  2601. ],
  2602. tableData: [],
  2603. tableDatatwo: [],
  2604. planData: [],
  2605. DeviceTypeType: [
  2606. { id: 0, name: '全部' },
  2607. { id: 1, name: '透析机' },
  2608. { id: 2, name: '水处理机' },
  2609. { id: 3, name: '其他' }
  2610. ],
  2611. bedNumber: [],
  2612. zoneNumber: [],
  2613. Number: [],
  2614. form: {
  2615. id: '',
  2616. serial_number: '',
  2617. devicetype: '',
  2618. bed_number: '',
  2619. device_name: '',
  2620. manufacture_factory: '',
  2621. service_manufacturer: '',
  2622. unit_type: '',
  2623. use_section: '',
  2624. section_number: '',
  2625. buy_date: '',
  2626. install_date: '',
  2627. start_date: '',
  2628. maintenance_engineer: '',
  2629. telephone: '',
  2630. guarantee_date: '',
  2631. machine_status: '',
  2632. user_total: '',
  2633. remarks: '',
  2634. rubbish_date: '',
  2635. rubbish_reason: '',
  2636. user_year: '',
  2637. work_time: '',
  2638. treat_mode: [],
  2639. treat_type: [],
  2640. bed: '', // 治疗模式
  2641. Disinfection_mode: '',
  2642. revers_mode: '',
  2643. beds: '',
  2644. bed_numbers: ''
  2645. },
  2646. activeName: 'first',
  2647. activeNameTwo: 'first',
  2648. activeNameThree: 'first',
  2649. activeNameSix: 'first',
  2650. activeNameFive: 'first',
  2651. machineStatus: [
  2652. { id: 1, name: '使用机' },
  2653. { id: 2, name: '备用机' },
  2654. { id: 3, name: '急诊机' },
  2655. { id: 4, name: '报废机' }
  2656. ],
  2657. DisCardResion: [
  2658. { id: 0, name: '请选择' },
  2659. { id: 1, name: '超期限报废' },
  2660. { id: 2, name: '故障报废' },
  2661. { id: 3, name: '核定报废' }
  2662. ],
  2663. DeviceTypes: [
  2664. { id: 1, name: '透析机' },
  2665. { id: 2, name: '水处理机' },
  2666. { id: 3, name: '其他' }
  2667. ],
  2668. Classes: [
  2669. { id: 0, name: '全部' },
  2670. { id: 1, name: '上午' },
  2671. { id: 2, name: '下午' },
  2672. { id: 3, name: '晚上' }
  2673. ],
  2674. names: [
  2675. { id: 0, name: '请选择' },
  2676. { id: 1, name: '20%柠檬酸' },
  2677. { id: 2, name: '50%柠檬酸' },
  2678. { id: 3, name: '次氯酸钠' }
  2679. ],
  2680. germs: [
  2681. { id: 0, name: '请选择' },
  2682. { id: 1, name: '费森细菌过滤器' },
  2683. { id: 2, name: '日机装细菌过滤器' },
  2684. { id: 3, name: '贝朗机细菌过滤器' },
  2685. { id: 4, name: '东丽机细菌过滤器' }
  2686. ],
  2687. DisinfectionMode: [
  2688. { id: 0, name: '请选择' },
  2689. { id: 1, name: '化学消毒' },
  2690. { id: 2, name: '热消毒' },
  2691. { id: 3, name: '化学消毒+热消毒' }
  2692. ],
  2693. autograph: [],
  2694. bedZone: [],
  2695. bedZoneTwo: [],
  2696. forms: {
  2697. zone_id: 0, // 分区号
  2698. class_id: '', // 班次
  2699. device_type: 0, // 设备类型
  2700. date: ''
  2701. },
  2702. currentRow: null,
  2703. cancelShow: false,
  2704. confirmShow: false,
  2705. isIndeterminate: true,
  2706. checkAll: false,
  2707. cities: cityOptions,
  2708. rules: {
  2709. serial_number: [{ required: true, message: '请填写序列号' }],
  2710. device_name: [{ required: true, message: '请填写序列号' }],
  2711. devicetype: [{ required: true, message: '请填写设备类型' }],
  2712. unit_type: [{ required: true, message: '请填写设备型号' }],
  2713. },
  2714. qualitRules: {
  2715. detection_unit: [{ required: true, message: '请填写检测单位' }],
  2716. sampler: [{ required: true, message: '请填写取样者' }],
  2717. sort: [{required:true,message:"请填写顺序号"}],
  2718. pass_examination:[{required:true,message:"请选择检测合格"}],
  2719. modifications:[{required:true,message:"请选择修改标志"}],
  2720. reporting_date:[{required:true,message:"请填写出报告日期"}]
  2721. },
  2722. diaRules: {
  2723. detection_unit: [{ required: true, message: '请填写检测单位' }],
  2724. samplerb: [{ required: true, message: '请填写取样者' }],
  2725. sort: [{required:true,message:"请填写顺序号"}],
  2726. pass_examination:[{required:true,message:"请选择检测合格"}],
  2727. modifications:[{required:true,message:"请选择修改标志"}],
  2728. reporting_dateb:[{required:true,message:"请填写出报告日期"}],
  2729. },
  2730. repirRules: {
  2731. guarantee_date: [{ required: true, message: '请填写保修日期' }],
  2732. fault_description: [{ required: true, message: '请填写故障描述' }]
  2733. },
  2734. ruleThree: {
  2735. detection_unit: [{ required: true, message: '请填写检测单位' }],
  2736. samplerc: [{ required: true, message: '请填写取样者' }],
  2737. sort: [{required:true,message:"请填写顺序号"}],
  2738. pass_examination:[{required:true,message:"请选择检测合格"}],
  2739. modifications:[{required:true,message:"请选择修改标志"}],
  2740. date_reportc:[{required:true,message:"请填写出报告日期"}]
  2741. },
  2742. userRules: {
  2743. date: [{ required: true, message: '请填写日期' }],
  2744. zone: [{ required: true, message: '请填写分区' }],
  2745. bed_number: [{ required: true, message: '请填写机位号' }],
  2746. patient_name: [{ required: true, message: '请填写患者', trigger: ['blur', 'change'] }],
  2747. disinfect_type: [{ required: true, message: '请填写消毒方式' }],
  2748. disinfectant_type: [{ required: true, message: '请填写消毒液' }],
  2749. disinfection: [{ required: true, message: '请填写消毒状态' }],
  2750. fluid_path: [{ required: true, message: '请填写消毒方式' }],
  2751. disinfectant: [{ required: true, message: '请填写消毒液' }],
  2752. disinfection_status: [{ required: true, message: '消毒状态' }],
  2753. sign_name: [{ required: true, message: '请填写签名', trigger: ['change'] }],
  2754. classtype: [{ required: true, message: '请填写班次' }],
  2755. reporting_date:[{required:true,message:"请填写出报告日期"}]
  2756. },
  2757. planRules: {
  2758. device_type: [{ required: true, message: '请输入设备型号' }],
  2759. disinfec_time: [{ required: true, message: '请输入消毒时长' }],
  2760. time: [{ required: true, message: '请输入时间' }],
  2761. class_time: [{ required: true, message: '请输入班次' }]
  2762. },
  2763. runOption: [
  2764. { id: 1, name: '正常' },
  2765. { id: 2, name: '故障' }
  2766. ],
  2767. runOptions: [
  2768. { id: 1, name: '达标' },
  2769. { id: 2, name: '未达标' }
  2770. ],
  2771. faultPhase: [
  2772. { id: 1, name: '开机启动' },
  2773. { id: 2, name: '自检' },
  2774. { id: 3, name: '准备' },
  2775. { id: 4, name: '治疗' },
  2776. { id: 5, name: '消毒' }
  2777. ],
  2778. Disinfectant: [
  2779. { id: 1, name: '有' },
  2780. { id: 2, name: '无' }
  2781. ],
  2782. potency: [
  2783. { id: 1, name: '达标' },
  2784. { id: 2, name: '未达标' }
  2785. ],
  2786. sampling: [],
  2787. DeviceType: [],
  2788. equimentid: 0,
  2789. checkAllStatus: false,
  2790. checkAllStatusOne: false,
  2791. selectMachines: [],
  2792. selectMachinesOne: [],
  2793. machineIndex: -1,
  2794. planid: 0,
  2795. machineform: {
  2796. id: '',
  2797. device_type: '',
  2798. disinfec_time: '',
  2799. time: '',
  2800. class_time: '',
  2801. way: '',
  2802. machine_disinfectant: '',
  2803. disinfectant_way: '',
  2804. disinfectant: ''
  2805. },
  2806. dialogVisible: false,
  2807. timeType: [
  2808. { id: 1, name: '周一' },
  2809. { id: 2, name: '周二' },
  2810. { id: 3, name: '周三' },
  2811. { id: 4, name: '周四' },
  2812. { id: 5, name: '周五' },
  2813. { id: 6, name: '周六' },
  2814. { id: 7, name: '周日' }
  2815. ],
  2816. classType: [
  2817. { id: 0, name: '请选择' },
  2818. { id: 1, name: '上午' },
  2819. { id: 2, name: '下午' },
  2820. { id: 3, name: '晚上' }
  2821. ],
  2822. // 基表消毒方式
  2823. disinfectType:
  2824. [
  2825. { id: 0, name: '/' },
  2826. { id: 1, name: '擦拭' },
  2827. { id: 2, name: '化学消毒' }
  2828. ],
  2829. // 基表消毒液
  2830. disinfectantType: [
  2831. { id: 0, name: '/' },
  2832. { id: 1, name: '0.22%季铵盐' },
  2833. { id: 2, name: '500mg/l含氯消毒剂' },
  2834. { id: 3, name: '1000mg/l含氯消毒剂' },
  2835. { id: 4, name: '1500mg/l含氯消毒剂' },
  2836. { id: 5, name: "消毒湿巾"}
  2837. ],
  2838. // 夜路消毒方式
  2839. sterilizeType: [
  2840. { id: 0, name: '/' },
  2841. { id: 1, name: '热化学消毒' },
  2842. { id: 2, name: '化学消毒 + 除钙' },
  2843. { id: 3, name: '热化学消毒 + 除钙' },
  2844. { id: 4, name: '热消毒' },
  2845. { id: 5, name: '化学消毒' },
  2846. { id: 6, name: '除钙' },
  2847. { id: 7, name: '清洗' }
  2848. ],
  2849. // 夜路消毒液
  2850. fluidPathType: [
  2851. { id: 0, name: '/' },
  2852. { id: 1, name: '20%柠檬酸' },
  2853. { id: 2, name: '25%柠檬酸' },
  2854. { id: 3, name: '50%柠檬酸' },
  2855. { id: 4, name: '50%柠檬酸 + 5%次氯酸钠' },
  2856. { id: 5, name: '20%柠檬酸 + 10%冰醋酸' },
  2857. { id: 6, name: '0.2%过氧化乙酸' },
  2858. { id: 7, name: '10%冰醋酸' },
  2859. { id: 8, name: '50%冰醋酸' },
  2860. { id: 9, name: '5%次氯酸钠' },
  2861. { id: 10,name:"25%的柠檬酸+5%次氯酸钠"},
  2862. ],
  2863. userform: {
  2864. id: 0,
  2865. date: moment(new Date()).format('YYYY-MM-DD'), // 日期
  2866. classtype: '', // 班次
  2867. zone: '', // 分区
  2868. bed_number: '', // 床位号
  2869. patient_name: '', // 患者
  2870. contagion: '', // 传染病
  2871. dialysis_mode: '', // 透析方式
  2872. start_time: '', // 上机时间
  2873. end_time: '', // 下机时间
  2874. dialysis_time: '', // 透析时长
  2875. hyperfiltratio: '', // 实际超滤量
  2876. weight_loss: '', // 体重减少
  2877. warning_value: '', // 预警值
  2878. user_total: '', // 使用次数
  2879. run: 1, // 运行
  2880. failure_stage: '', // 故事发生阶段
  2881. fault_description: '', // 故障描述
  2882. code_information: '', // 故障提示及代码
  2883. // 机器消毒
  2884. disinfect_type: 1, // 消毒方式
  2885. disinfectant_type: 2, // 消毒液
  2886. disinfection: 1, // 消毒状态
  2887. machine_run: 1, // 运行
  2888. // 液路
  2889. fluid_path: 3, // 消毒方式
  2890. disinfectant: 3, // 消毒液
  2891. disinfection_status: 1, // 消毒状态
  2892. disinfection_residue: 1, // 消毒液残留
  2893. longtime: '', // 消毒时长
  2894. starttime: '', // 开始消毒时间
  2895. endtime: '', // 结束消毒时间
  2896. dialysis_checked: '', // 更换
  2897. dialysis_name: '', // 名称
  2898. norms: '', // 规格
  2899. dialysis_concentration: 1, // 浓度
  2900. germ_checked: '', // 更换
  2901. germ_name: '', // 名称
  2902. germ_number: '', // 数量
  2903. clean: '', // 清洁
  2904. sign_name: '', // 签名
  2905. patient_id: ''
  2906. },
  2907. treatmentmodes: [
  2908. { id: 1, name: 'HD' },
  2909. { id: 2, name: 'HDF' },
  2910. { id: 3, name: 'HD+HP' },
  2911. { id: 4, name: 'HP' },
  2912. { id: 5, name: 'HF' },
  2913. { id: 6, name: 'SCUF' },
  2914. { id: 7, name: 'IUF' },
  2915. { id: 8, name: 'HFHD+HP' },
  2916. { id: 9, name: 'HFR' },
  2917. { id: 10, name: 'HDF+HP' },
  2918. { id: 11, name: 'GRRT' },
  2919. { id: 12, name: '腹水回输' }
  2920. ],
  2921. treatmode: [
  2922. { id: 0, name: '请选择' },
  2923. { id: 1, name: 'HD' },
  2924. { id: 2, name: 'HDF' },
  2925. { id: 3, name: 'HD + HP' },
  2926. { id: 4, name: 'HP' },
  2927. { id: 5, name: 'HF' },
  2928. { id: 6, name: 'SCUF' },
  2929. { id: 7, name: 'IUF' },
  2930. { id: 8, name: 'HFHD' },
  2931. { id: 9, name: 'HFHD+HP' },
  2932. { id: 10, name: 'PHF' },
  2933. { id: 11, name: 'HFR' },
  2934. { id: 12, name: 'HDF+HP' },
  2935. { id: 13, name: 'CRRT' },
  2936. { id: 14, name: '腹水回输' },
  2937. { id: 15, name: 'HD前置换' },
  2938. { id: 16, name: 'HD后置换' },
  2939. { id: 17, name: 'HDF前置换' },
  2940. { id: 18, name: 'HDF后置换' },
  2941. { id:19, name:"IUF+HD"},
  2942. { id:20, name:"UF"},
  2943. { id:21, name:"HD+"},
  2944. { id:22, name:"血浆胆红素吸附+HDF"},
  2945. { id:23, name:"血浆胆红素吸附"},
  2946. { id:24, name:"I-HDF"},
  2947. { id:25, name:"HD高通"},
  2948. { id:26, name:"CVVH"},
  2949. { id:27, name:"CVVHD"},
  2950. { id:28, name:"CVVHDF"},
  2951. { id:29, name:"PE"},
  2952. ],
  2953. disinfection: [
  2954. { id: 0, name: '请选择' },
  2955. { id: 1, name: '已消毒' },
  2956. { id: 2, name: '未消毒' },
  2957. { id: 3, name: '消毒未完成' }
  2958. ],
  2959. patientName: [],
  2960. start: '',
  2961. end: '',
  2962. // 细菌培养
  2963. qualityForm: {
  2964. date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  2965. specimen: '', // 取样标本
  2966. concentrate_noa: '', // 浓A
  2967. concentrate_nob: '', // 浓B,
  2968. sampling_locationa: '', // 采样部位
  2969. detection_unit: '', // 检测单位
  2970. sampler: '', // 取样者
  2971. reporting_date: '', // 报告日期
  2972. detection_result: '', // 检测结果
  2973. sort:'1', //顺序号
  2974. pass_examination:'1',//检验合格
  2975. modifications:'',//修改标志
  2976. },
  2977. qualityFormTwo: {
  2978. // 内毒素检测
  2979. detection_unit: '', // 检测单位
  2980. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  2981. specimenb: '', // 取样标本
  2982. concentrate_noc: '', // A浓缩液批号
  2983. concentrateb_nod: '', // B浓
  2984. sampling_locationb: '', // 采样部位
  2985. samplerb: '', // 取样者
  2986. reporting_dateb: '', // 出报告日期
  2987. detection_resultb: '', // 检测结果
  2988. sort:'1', //顺序号
  2989. pass_examination:'1',//检验合格
  2990. modifications:'',//修改标志
  2991. },
  2992. qualityFormThree: {
  2993. detection_unit: '', // 检测单位
  2994. // 透析液离子浓度检测
  2995. dateb: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  2996. samplerc: '', // 取样者
  2997. concentrate_nof: '', // A浓
  2998. concentrate_nog: '', // B浓
  2999. date_reportc: '', // 出报告日期
  3000. actual_na: '',
  3001. actual_pna: '',
  3002. actual_k: '',
  3003. actual_ca: '',
  3004. actual_ci: '',
  3005. actual_hco: '',
  3006. actual_mg: '',
  3007. actual_ph: '',
  3008. remakes: '',
  3009. sort:'1', //顺序号
  3010. pass_examination:'1',//检验合格
  3011. modifications:'',//修改标志
  3012. },
  3013. qualityFormFour: {
  3014. // 内毒素检测
  3015. detection_unit: '', // 检测单位
  3016. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3017. specimenb: '', // 取样标本
  3018. concentrate_noc: '', // A浓缩液批号
  3019. concentrateb_nod: '', // B浓
  3020. sampling_locationb: '', // 采样部位
  3021. samplerb: '', // 取样者
  3022. reporting_dateb: '', // 出报告日期
  3023. detection_resultb: '', // 检测结果
  3024. sort:'1', //顺序号
  3025. pass_examination:'1',//检验合格
  3026. modifications:'',//修改标志
  3027. },
  3028. qualityFormFive: {
  3029. // 内毒素检测
  3030. detection_unit: '', // 检测单位
  3031. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3032. specimenb: '', // 取样标本
  3033. concentrate_noc: '', // A浓缩液批号
  3034. concentrateb_nod: '', // B浓
  3035. sampling_locationb: '', // 采样部位
  3036. samplerb: '', // 取样者
  3037. reporting_dateb: '', // 出报告日期
  3038. detection_resultb: '', // 检测结果
  3039. sort:'1', //顺序号
  3040. pass_examination:'1',//检验合格
  3041. modifications:'',//修改标志
  3042. },
  3043. qualityFormSix: {
  3044. // 内毒素检测
  3045. detection_unit: '', // 检测单位
  3046. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3047. specimenb: '', // 取样标本
  3048. concentrate_noc: '', // A浓缩液批号
  3049. concentrateb_nod: '', // B浓
  3050. sampling_locationb: '', // 采样部位
  3051. samplerb: '', // 取样者
  3052. reporting_dateb: '', // 出报告日期
  3053. detection_resultb: '', // 检测结果
  3054. sort:'1', //顺序号
  3055. pass_examination:'1',//检验合格
  3056. modifications:'',//修改标志
  3057. },
  3058. qualityFormSeven: {
  3059. // 内毒素检测
  3060. detection_unit: '', // 检测单位
  3061. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3062. specimenb: '', // 取样标本
  3063. concentrate_noc: '', // A浓缩液批号
  3064. concentrateb_nod: '', // B浓
  3065. sampling_locationb: '', // 采样部位
  3066. samplerb: '', // 取样者
  3067. reporting_dateb: '', // 出报告日期
  3068. detection_resultb: '', // 检测结果
  3069. sort:'1', //顺序号
  3070. pass_examination:'1',//检验合格
  3071. modifications:'',//修改标志
  3072. },
  3073. disable: false,
  3074. diableTwo: false,
  3075. samplingSpecimen: [
  3076. { id: 0, name: '请选择' },
  3077. { id: 1, name: '透析液' },
  3078. { id: 2, name: 'A浓缩液' },
  3079. { id: 3, name: 'B浓缩液' },
  3080. { id: 4, name: '置换液' },
  3081. { id: 5, name: '透析用水' }
  3082. ],
  3083. samplingLocation: [
  3084. { id: 0, name: '请选择' },
  3085. { id: 1, name: '透析液入口' },
  3086. { id: 2, name: '透析液取样口' },
  3087. { id: 3, name: '置换液出口' },
  3088. { id: 4, name: '透析机反渗水入口' },
  3089. { id: 5, name:'反渗水末端取样口'}
  3090. ],
  3091. breakDown: [
  3092. { id: 1, name: '是' },
  3093. { id: 2, name: '待观察' },
  3094. { id: 3, name: '未解决' }
  3095. ],
  3096. guaForm: {
  3097. guarantee_date: moment(new Date()).format('YYYY-MM-DD'),
  3098. start_time: '',
  3099. arrive_time: '',
  3100. finish_time: '',
  3101. total_distance: '',
  3102. failure_stage: '',
  3103. fault_description: '',
  3104. cause_analysis: '',
  3105. treatment_process: '',
  3106. images: '',
  3107. exclude: '',
  3108. reason: '',
  3109. code_information: '',
  3110. imageName: ''
  3111. },
  3112. filename: '',
  3113. qiniuDomain: 'https://images.shengws.com/',
  3114. uploadFileData: { token: '', key: '' },
  3115. tShow: false,
  3116. sShow: false,
  3117. qShow: false,
  3118. readisable: true,
  3119. fileList: [],
  3120. DisShow: true,
  3121. DioShow: false,
  3122. zhiShow: true,
  3123. zhShow: false,
  3124. UserShow: true,
  3125. Ushow: false,
  3126. restaurants: [],
  3127. state: '',
  3128. userdata: 0,
  3129. disableThree: true,
  3130. disableFour: true,
  3131. disableFive: true,
  3132. runDisable: true,
  3133. warnShow: false,
  3134. warnShowTwo: false,
  3135. warnShowThree: false,
  3136. bedZoneThree: [],
  3137. bedNumberTwo: [],
  3138. reverseMode: [
  3139. { id: 0, name: '请选择' },
  3140. { id: 1, name: '单级反渗' },
  3141. { id: 2, name: '双级反渗' }
  3142. ],
  3143. tabIndex: '',
  3144. deviceMode: [],
  3145. zoneDisabled: false,
  3146. bedid: '',
  3147. unitType: '',
  3148. classShow: false,
  3149. modifications:[
  3150. {id:1,name:"正常"},
  3151. {id:2,name:"撤销"}
  3152. ],
  3153. device_type:""
  3154. }
  3155. },
  3156. methods: {
  3157. changeRun(val) {
  3158. if (val === 1) {
  3159. this.runDisable = true
  3160. this.userform.failure_stage = ''
  3161. }
  3162. if (val === 2) {
  3163. this.runDisable = false
  3164. }
  3165. },
  3166. handleClick(tab, event) {
  3167. // console.log(tab, event)
  3168. },
  3169. handleExceed(file) {
  3170. // console.log(file)
  3171. },
  3172. handleRemove(file, fileList) {
  3173. },
  3174. beforeRemove(file, fileList) {
  3175. // console.log(file, fileList)
  3176. },
  3177. handlePreview(file) {
  3178. // console.log(file)
  3179. },
  3180. changetreatmentmode(val) {
  3181. const checkedCount = val.length
  3182. this.checkAll = checkedCount === this.treatmentmode.length
  3183. this.isIndeterminate = checkedCount > 0 && checkedCount < this.treatmentmode.length
  3184. },
  3185. handleCheckAllChange(val) {
  3186. this.form.treat_mode = val ? cityOptions : []
  3187. this.isIndeterminate = false
  3188. },
  3189. handleCheckedCitiesChange(value) {
  3190. const checkedCount = value.length
  3191. this.checkAll = checkedCount === this.cities.length
  3192. this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length
  3193. },
  3194. // 获取所有分区
  3195. getAllSubregion() {
  3196. getAllSubregion().then(response => {
  3197. var zones = response.data.data.zones
  3198. this.deviceType = zones
  3199. var numbers = response.data.data.numbers
  3200. var zone = [{ id: 0, name: '全部' }]
  3201. for (let i = 0; i < zones.length; i++) {
  3202. const item = zones[i]
  3203. zone.push({ id: item.id, name: item.name })
  3204. }
  3205. var devicenumber = response.data.data.devicenumber
  3206. this.bedZone = zone
  3207. var zoness = [{ id: 0, name: '请选择' }]
  3208. for (let i = 0; i < zones.length; i++) {
  3209. const item = zones[i]
  3210. zoness.push({ id: item.id, name: item.name })
  3211. }
  3212. var bed = [{ id: 0, number: '请选择' }]
  3213. for (let i = 0; i < numbers.length; i++) {
  3214. const item = numbers[i]
  3215. bed.push({ id: item.id, number: item.number })
  3216. }
  3217. this.bedNumberTwo = bed
  3218. this.bedZoneTwo = zones
  3219. this.bedZoneThree = zoness
  3220. this.bedNumber = numbers
  3221. })
  3222. },
  3223. changeBedNumber(val) {
  3224. this.forms.zone_id = val
  3225. this.getAllMachine()
  3226. },
  3227. changeClassId(val) {
  3228. this.forms.class_id = val
  3229. this.getAllMachine()
  3230. },
  3231. changeDeviceId(val) {
  3232. if (val === 1) {
  3233. this.zoneDisabled = false
  3234. } else {
  3235. this.zoneDisabled = true
  3236. }
  3237. this.forms.device_type = val
  3238. this.getAllMachine()
  3239. },
  3240. getAllMachine() {
  3241. getAllMachine(this.forms.zone_id, this.forms.device_type).then(response => {
  3242. if (response.data.state === 1) {
  3243. var addmahcer = response.data.data.addmahcer
  3244. for(let j=0;j<addmahcer.length;j++){
  3245. if(addmahcer[j].device_type == 1){
  3246. addmahcer[j].bed_number = addmahcer[j].number
  3247. }
  3248. if(addmahcer[j].device_type == 2){
  3249. addmahcer[j].bed_number = addmahcer[j].bed_number
  3250. }
  3251. if(addmahcer[j].device_type == 3){
  3252. addmahcer[j].bed_number = addmahcer[j].bed_number
  3253. }
  3254. }
  3255. this.tableDatatwo = addmahcer
  3256. this.tabIndex = this.$route.query.index
  3257. var id = this.$route.query.id
  3258. for (let i = 0; i < this.tableDatatwo.length; i++) {
  3259. if (this.tableDatatwo[i].id == id) {
  3260. this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
  3261. break
  3262. }
  3263. }
  3264. }
  3265. })
  3266. },
  3267. handleIndex(index) {
  3268. this.tabIndex = index
  3269. },
  3270. handleCurrentChange(val) {
  3271. console.log("val-------------------------",val)
  3272. // 通过设备型号区分质量控制
  3273. this.device_type = val.device_type
  3274. this.unitType = val.unit_type
  3275. this.currentRow = val
  3276. this.$forceUpdate()
  3277. this.getMachineDetailById(val.id)
  3278. this.equimentid = val.id
  3279. this.userdata = val.id
  3280. this.getAllPlanDetail(val.unit_type)
  3281. this.getPatientInfo(val.id)
  3282. // 获取基本信息
  3283. this.getUserRegister(val.id)
  3284. // 病人下机后插入数据
  3285. this.getAutoData(val.id)
  3286. this.GetUserTotalCount(val.bed_id)
  3287. this.getTimeBeteen(val.id)
  3288. this.getData(val.bed_id)
  3289. },
  3290. getAutoData(id) {
  3291. getAutoData(id).then(response => {
  3292. if (response.data.state === 1) {
  3293. var dialysis = response.data.data.dialysis
  3294. }
  3295. })
  3296. },
  3297. getMachineDetailById(id) {
  3298. getMachineDetailById(id).then(response => {
  3299. if (response.data.state === 1) {
  3300. var addmacher = response.data.data.addmacher
  3301. var warning = response.data.data.warning
  3302. var time = this.getTimestamp(this.userform.date) - warning.stime
  3303. var germ = response.data.data.germ
  3304. var timetwo = this.getTimestamp(this.userform.date) - germ.stime
  3305. var clean = response.data.data.clean
  3306. var timethree = this.getTimestamp(this.userform.date) - clean.stime
  3307. var number = response.data.data.number
  3308. this.Number = number
  3309. if (addmacher.device_type === 1) {
  3310. this.sShow = false
  3311. this.qShow = false
  3312. this.tShow = true
  3313. this.DisShow = true
  3314. this.DioShow = false
  3315. this.zhiShow = true
  3316. this.zhShow = false
  3317. this.UserShow = true
  3318. this.Ushow = false
  3319. }
  3320. if (addmacher.device_type === 2) {
  3321. this.tShow = false
  3322. this.qShow = false
  3323. this.sShow = true
  3324. this.DisShow = false
  3325. this.DioShow = true
  3326. this.zhiShow = true
  3327. this.zhShow = false
  3328. this.UserShow = true
  3329. this.Ushow = false
  3330. }
  3331. if (addmacher.device_type === 3) {
  3332. this.tShow = false
  3333. this.sShow = false
  3334. this.qShow = true
  3335. this.DisShow = false
  3336. this.DioShow = true
  3337. this.zhiShow = false
  3338. this.zhShow = true
  3339. this.UserShow = false
  3340. this.Ushow = true
  3341. }
  3342. var mode = response.data.data.mode
  3343. var zone = response.data.data.zone
  3344. const arr1 = []
  3345. for (let index = 0; index < mode.length; index++) {
  3346. if (mode[index].treate_mode === 1) {
  3347. mode[index] = 'HD'
  3348. }
  3349. if (mode[index].treate_mode === 2) {
  3350. mode[index] = 'HDF'
  3351. }
  3352. if (mode[index].treate_mode === 3) {
  3353. mode[index] = 'HD+HP'
  3354. }
  3355. if (mode[index].treate_mode === 4) {
  3356. mode[index] = 'HP'
  3357. }
  3358. if (mode[index].treate_mode === 5) {
  3359. mode[index] = 'HF'
  3360. }
  3361. if (mode[index].treate_mode === 6) {
  3362. mode[index] = 'SCUF'
  3363. }
  3364. if (mode[index].treate_mode === 7) {
  3365. mode[index] = 'IUF'
  3366. }
  3367. if (mode[index].treate_mode === 8) {
  3368. mode[index] = 'HFHD'
  3369. }
  3370. if (mode[index].treate_mode === 9) {
  3371. mode[index] = 'HFHD+HP'
  3372. }
  3373. if (mode[index].treate_mode === 10) {
  3374. mode[index] = 'PHF'
  3375. }
  3376. if (mode[index].treate_mode === 11) {
  3377. mode[index] = 'HFR'
  3378. }
  3379. if (mode[index].treate_mode === 12) {
  3380. mode[index] = 'HDF+HP'
  3381. }
  3382. if (mode[index].treate_mode === 13) {
  3383. mode[index] = 'CRRT'
  3384. }
  3385. if (mode[index].treate_mode === 14) {
  3386. mode[index] = '腹水回输'
  3387. }
  3388. arr1.push(mode[index])
  3389. }
  3390. this.form.treat_mode = arr1
  3391. this.form.id = addmacher.id
  3392. this.form.serial_number = addmacher.serial_number
  3393. this.form.devicetype = addmacher.device_type
  3394. this.form.bed_number = addmacher.bed_id
  3395. this.form.bed_numbers = addmacher.bed_number
  3396. this.form.beds = addmacher.bed_number
  3397. this.form.device_name = addmacher.device_name
  3398. this.form.manufacture_factory = addmacher.manufacture_factory
  3399. this.form.service_manufacturer = addmacher.service_manufacturer
  3400. // this.form.unit_type = addmacher.unit_type
  3401. this.form.unit_type = parseInt(addmacher.device_mode)
  3402. this.form.use_section = addmacher.use_section
  3403. this.form.section_number = addmacher.section_number
  3404. if (addmacher.buy_date !== 0) {
  3405. this.form.buy_date = uParseTime(addmacher.buy_date, '{y}-{m}-{d}')
  3406. }
  3407. if (addmacher.install_date !== 0) {
  3408. this.form.install_date = uParseTime(addmacher.install_date, '{y}-{m}-{d}')
  3409. }
  3410. if (addmacher.start_date !== 0) {
  3411. this.form.start_date = uParseTime(addmacher.start_date, '{y}-{m}-{d}')
  3412. }
  3413. this.form.maintenance_engineer = addmacher.maintenace_engineer
  3414. this.form.telephone = addmacher.telephone
  3415. this.form.guarantee_date = addmacher.guarantee_date
  3416. this.form.machine_status = addmacher.machine_status
  3417. this.form.user_total = addmacher.user_total
  3418. this.form.remarks = addmacher.remarks
  3419. if (addmacher.rubbish_date !== 0) {
  3420. this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
  3421. }
  3422. this.form.rubbish_reason = addmacher.rubbish_reason
  3423. this.form.user_year = addmacher.user_year
  3424. this.form.work_time = addmacher.work_time
  3425. // eslint-disable-next-line eqeqeq
  3426. if (addmacher.disinfection_mode == 0) {
  3427. this.form.Disinfection_mode = 0
  3428. } else {
  3429. this.form.Disinfection_mode = addmacher.disinfection_mode
  3430. }
  3431. // eslint-disable-next-line eqeqeq
  3432. if (addmacher.revers_mode == 0) {
  3433. this.form.revers_mode = 0
  3434. } else {
  3435. this.form.revers_mode = addmacher.revers_mode
  3436. }
  3437. this.getAllSubregion()
  3438. }
  3439. })
  3440. },
  3441. UpdateMachine() {
  3442. this.cancelShow = true
  3443. this.confirmShow = true
  3444. this.disableThree = false
  3445. this.disableFour = false
  3446. this.disableFive = false
  3447. },
  3448. UpdateMachineInfo(formName) {
  3449. const arr2 = []
  3450. this.form.treat_mode.map((item, index) => {
  3451. const obj = {}
  3452. if (item === 'HD') {
  3453. obj.id = 1
  3454. }
  3455. if (item === 'HDF') {
  3456. obj.id = 2
  3457. }
  3458. if (item === 'HD+HP') {
  3459. obj.id = 3
  3460. }
  3461. if (item === 'HP') {
  3462. obj.id = 4
  3463. }
  3464. if (item === 'HF') {
  3465. obj.id = 5
  3466. }
  3467. if (item === 'SCUF') {
  3468. obj.id = 6
  3469. }
  3470. if (item === 'IUF') {
  3471. obj.id = 7
  3472. }
  3473. if (item === 'HFHD') {
  3474. obj.id = 8
  3475. }
  3476. if (item === 'HFHD+HP') {
  3477. obj.id = 9
  3478. }
  3479. if (item === 'PHF') {
  3480. obj.id = 10
  3481. }
  3482. if (item === 'HFR') {
  3483. obj.id = 11
  3484. }
  3485. if (item === 'HDF+HP') {
  3486. obj.id = 12
  3487. }
  3488. if (item === 'CRRT') {
  3489. obj.id = 13
  3490. }
  3491. if (item === '腹水回输') {
  3492. obj.id = 14
  3493. }
  3494. arr2.push(obj.id)
  3495. })
  3496. this.form.treat_type = arr2
  3497. var device_type = this.form.devicetype
  3498. var device_types = parseInt(device_type)
  3499. this.form.devicetype = device_types
  3500. if (this.form.rubbish_reason === '') {
  3501. this.form.rubbish_reason = 0
  3502. }
  3503. var rubbish_reason = this.form.rubbish_reason
  3504. var rubbish_reasons = parseInt(rubbish_reason)
  3505. this.form.rubbish_reason = rubbish_reasons
  3506. var machine_status = this.form.machine_status
  3507. var machine_statuss = parseInt(machine_status)
  3508. this.form.machine_status = machine_statuss
  3509. // if (this.form.bed_number === '') {
  3510. // this.form.bed_number = 0
  3511. // }
  3512. var bed_numbers = this.form.bed_number
  3513. var bed_numberss = parseInt(bed_numbers)
  3514. this.form.bed_number = bed_numberss
  3515. this.$refs[formName].validate(valid => {
  3516. UpdateMachineInfo(this.form).then(response => {
  3517. if (response.data.state === 1) {
  3518. var addmacher = response.data.data.addmacher
  3519. this.$message.success('修改成功')
  3520. for (let i = 0; i < this.tableDatatwo.length; i++) {
  3521. if (this.tableDatatwo[i].id == addmacher.id) {
  3522. for (let j = 0; j < this.deviceMode.length; j++) {
  3523. if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
  3524. addmacher.device_mode = this.deviceMode[j].device_mode
  3525. }
  3526. }
  3527. this.tableDatatwo[i] = addmacher
  3528. // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
  3529. }
  3530. }
  3531. // this.getAllMachine()
  3532. // this.getAllSubregion()
  3533. this.$refs.singleTable.setCurrentRow(addmacher)
  3534. this.$forceUpdate()
  3535. }else{
  3536. this.$message.error("修改失败");
  3537. }
  3538. })
  3539. })
  3540. },
  3541. // eslint-disable-next-line no-irregular-whitespace
  3542. // 更新水处理机
  3543. UpdateMachineInfoTwo(formName) {
  3544. var device_type = this.form.devicetype
  3545. var device_types = parseInt(device_type)
  3546. this.form.devicetype = device_types
  3547. if (this.form.rubbish_reason === '') {
  3548. this.form.rubbish_reason = 0
  3549. }
  3550. var rubbish_reason = this.form.rubbish_reason
  3551. var rubbish_reasons = parseInt(rubbish_reason)
  3552. this.form.rubbish_reason = rubbish_reasons
  3553. var machine_status = this.form.machine_status
  3554. var machine_statuss = parseInt(machine_status)
  3555. this.form.machine_status = machine_statuss
  3556. var revers_mode = this.form.revers_mode
  3557. var revers_modes = parseInt(revers_mode)
  3558. this.form.revers_mode = revers_modes
  3559. var disinfecction_modes = this.form.Disinfection_mode
  3560. var disinfecction_modess = parseInt(disinfecction_modes)
  3561. this.form.Disinfection_mode = disinfecction_modess
  3562. this.$refs[formName].validate(valid => {
  3563. if (valid) {
  3564. UpdateMachineInfoTwo(this.form).then(response => {
  3565. if (response.data.state === 1) {
  3566. // eslint-disable-next-line no-unused-vars
  3567. var addmacher = response.data.data.addmacher
  3568. this.$message.success('修改成功')
  3569. for (let i = 0; i < this.tableDatatwo.length; i++) {
  3570. if (this.tableDatatwo[i].id == addmacher.id) {
  3571. for (let j = 0; j < this.deviceMode.length; j++) {
  3572. if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
  3573. addmacher.device_mode = this.deviceMode[j].device_mode
  3574. // this.$forceUpdate()
  3575. }
  3576. }
  3577. this.tableDatatwo[i] = addmacher
  3578. // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
  3579. }
  3580. }
  3581. // this.getAllMachine()
  3582. this.getAllSubregion()
  3583. this.$refs.singleTable.setCurrentRow(addmacher)
  3584. this.$forceUpdate()
  3585. }
  3586. })
  3587. }
  3588. })
  3589. },
  3590. UpdateMacheineTwo(formName) {
  3591. var device_type = this.form.devicetype
  3592. var device_types = parseInt(device_type)
  3593. this.form.devicetype = device_types
  3594. if (this.form.rubbish_reason === '') {
  3595. this.form.rubbish_reason = 0
  3596. }
  3597. var rubbish_reason = this.form.rubbish_reason
  3598. var rubbish_reasons = parseInt(rubbish_reason)
  3599. this.form.rubbish_reason = rubbish_reasons
  3600. var machine_status = this.form.machine_status
  3601. var machine_statuss = parseInt(machine_status)
  3602. this.form.machine_status = machine_statuss
  3603. this.$refs[formName].validate(valid => {
  3604. UpdateMacheineTwo(this.form).then(response => {
  3605. if (response.data.state === 1) {
  3606. var addmacher = response.data.data.addmacher
  3607. this.$message.success('修改成功')
  3608. for (let i = 0; i < this.tableDatatwo.length; i++) {
  3609. if (this.tableDatatwo[i].id == addmacher.id) {
  3610. for (let j = 0; j < this.deviceMode.length; j++) {
  3611. if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
  3612. addmacher.device_mode = this.deviceMode[j].device_mode
  3613. // this.$forceUpdate()
  3614. }
  3615. }
  3616. this.tableDatatwo[i] = addmacher
  3617. // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
  3618. }
  3619. }
  3620. // this.getAllMachine()
  3621. this.getAllSubregion()
  3622. this.$refs.singleTable.setCurrentRow(addmacher)
  3623. this.$forceUpdate()
  3624. }
  3625. })
  3626. })
  3627. },
  3628. cleanMainchine() {
  3629. this.confirmShow = false
  3630. this.cancelShow = false
  3631. },
  3632. addPlan() {
  3633. this.$refs.planForm.open()
  3634. },
  3635. ToReminders() {
  3636. this.$refs.remanderform.open()
  3637. },
  3638. changeCheck() {
  3639. this.$refs.multipleTableOne.clearSelection()
  3640. if (this.checkAllStatusOne) {
  3641. this.$refs.multipleTableOne.toggleAllSelection()
  3642. }
  3643. },
  3644. handleSelectionChange(val) {
  3645. this.selectMachinesOne = val
  3646. },
  3647. changeCheckOne() {
  3648. this.$refs.multipleTable.clearSelection()
  3649. if (this.checkAllStatus) {
  3650. this.$refs.multipleTable.toggleAllSelection()
  3651. }
  3652. },
  3653. handleSelectionChangeOne(val) {
  3654. this.selectMachines = val
  3655. },
  3656. changeMachineStatus(val) {
  3657. if (val === 4) {
  3658. this.readisable = false
  3659. } else {
  3660. this.readisable = true
  3661. this.form.rubbish_date = ''
  3662. this.form.rubbish_reason = ''
  3663. }
  3664. },
  3665. getAllPlan() {
  3666. getAllPlan().then(response => {
  3667. if (response.data.state === 1) {
  3668. var plan = response.data.data.plan
  3669. console.log("plan=====",plan )
  3670. for (let index = 0; index < plan.length; index++) {
  3671. if (plan[index].time === 1) {
  3672. plan[index].time = '周一'
  3673. }
  3674. if (plan[index].time === 2) {
  3675. plan[index].time = '周二'
  3676. }
  3677. if (plan[index].time === 3) {
  3678. plan[index].time = '周三'
  3679. }
  3680. if (plan[index].time === 4) {
  3681. plan[index].time = '周四'
  3682. }
  3683. if (plan[index].time === 5) {
  3684. plan[index].time = '周五'
  3685. }
  3686. if (plan[index].time === 6) {
  3687. plan[index].time = '周六'
  3688. }
  3689. if (plan[index].time === 7) {
  3690. plan[index].time = '周日'
  3691. }
  3692. if (plan[index].classtime === 1) {
  3693. plan[index].classtime = '上午'
  3694. }
  3695. if (plan[index].classtime === 2) {
  3696. plan[index].classtime = '下午'
  3697. }
  3698. if (plan[index].classtime === 3) {
  3699. plan[index].classtime = '晚上'
  3700. }
  3701. if (plan[index].way === 0) {
  3702. plan[index].way = '/'
  3703. }
  3704. if (plan[index].way === 1) {
  3705. plan[index].way = '擦拭'
  3706. }
  3707. if (plan[index].way === 2) {
  3708. plan[index].way = '化学消毒'
  3709. }
  3710. if (plan[index].machine_disinfectant === 0) {
  3711. plan[index].machine_disinfectant = '/'
  3712. }
  3713. if (plan[index].machine_disinfectant === 1) {
  3714. plan[index].machine_disinfectant = '0.22%季铵盐'
  3715. }
  3716. if (plan[index].machine_disinfectant === 2) {
  3717. plan[index].machine_disinfectant = '500mg/l含氯消毒剂'
  3718. }
  3719. if (plan[index].machine_disinfectant === 3) {
  3720. plan[index].machine_disinfectant = '1000mg/l含氯消毒剂'
  3721. }
  3722. if (plan[index].machine_disinfectant === 4) {
  3723. plan[index].machine_disinfectant = '1500mg/l含氯消毒剂'
  3724. }
  3725. if(plan[index].machine_disinfectant === 5){
  3726. plan[index].machine_disinfectant = "消毒湿巾"
  3727. }
  3728. if (plan[index].disinfectan_way === 0) {
  3729. plan[index].disinfectan_way = '/'
  3730. }
  3731. if (plan[index].disinfectan_way === 1) {
  3732. plan[index].disinfectan_way = '热化学消毒'
  3733. }
  3734. if (plan[index].disinfectan_way === 2) {
  3735. plan[index].disinfectan_way = '化学消毒 + 除钙'
  3736. }
  3737. if (plan[index].disinfectan_way === 3) {
  3738. plan[index].disinfectan_way = '热化学消毒 + 除钙'
  3739. }
  3740. if (plan[index].disinfectan_way === 4) {
  3741. plan[index].disinfectan_way = '热消毒'
  3742. }
  3743. if (plan[index].disinfectan_way === 5) {
  3744. plan[index].disinfectan_way = '化学消毒'
  3745. }
  3746. if (plan[index].disinfectan_way === 6) {
  3747. plan[index].disinfectan_way = '除钙'
  3748. }
  3749. if (plan[index].disinfectan_way === 7) {
  3750. plan[index].disinfectan_way = '清洗'
  3751. }
  3752. if (plan[index].disinfectant === 0) {
  3753. plan[index].disinfectant = '/'
  3754. }
  3755. if (plan[index].disinfectant === 1) {
  3756. plan[index].disinfectant = '20%柠檬酸'
  3757. }
  3758. if (plan[index].disinfectant === 2) {
  3759. plan[index].disinfectant = '25%柠檬酸'
  3760. }
  3761. if (plan[index].disinfectant === 3) {
  3762. plan[index].disinfectant = '50%柠檬酸'
  3763. }
  3764. if (plan[index].disinfectant === 4) {
  3765. plan[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
  3766. }
  3767. if (plan[index].disinfectant === 5) {
  3768. plan[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
  3769. }
  3770. if (plan[index].disinfectant === 6) {
  3771. plan[index].disinfectant = '0.2%过氧化乙酸'
  3772. }
  3773. if (plan[index].disinfectant === 7) {
  3774. plan[index].disinfectant = '10%冰醋酸'
  3775. }
  3776. if (plan[index].disinfectant === 8) {
  3777. plan[index].disinfectant = '50%冰醋酸'
  3778. }
  3779. if (plan[index].disinfectant === 9) {
  3780. plan[index].disinfectant = '5%次氯酸钠'
  3781. }
  3782. if (plan[index].disinfectant === 10) {
  3783. plan[index].disinfectant = '25%的柠檬酸+5%次氯酸钠'
  3784. }
  3785. }
  3786. this.tableData = plan
  3787. }
  3788. })
  3789. },
  3790. getAllPlanDetail(unit_type) {
  3791. getAllPlanDetail(unit_type).then(response => {
  3792. if (response.data.state === 1) {
  3793. var plandetail = response.data.data.plandetail
  3794. console.log("plandetail",plandetail)
  3795. for (let index = 0; index < plandetail.length; index++) {
  3796. if (plandetail[index].time === 1) {
  3797. plandetail[index].time = '周一'
  3798. }
  3799. if (plandetail[index].time === 2) {
  3800. plandetail[index].time = '周二'
  3801. }
  3802. if (plandetail[index].time === 3) {
  3803. plandetail[index].time = '周三'
  3804. }
  3805. if (plandetail[index].time === 4) {
  3806. plandetail[index].time = '周四'
  3807. }
  3808. if (plandetail[index].time === 5) {
  3809. plandetail[index].time = '周五'
  3810. }
  3811. if (plandetail[index].time === 6) {
  3812. plandetail[index].time = '周六'
  3813. }
  3814. if (plandetail[index].time === 7) {
  3815. plandetail[index].time = '周日'
  3816. }
  3817. if (plandetail[index].classtime === 1) {
  3818. plandetail[index].classtime = '上午'
  3819. }
  3820. if (plandetail[index].classtime === 2) {
  3821. plandetail[index].classtime = '下午'
  3822. }
  3823. if (plandetail[index].classtime === 3) {
  3824. plandetail[index].classtime = '晚上'
  3825. }
  3826. if (plandetail[index].way === 0) {
  3827. plandetail[index].way = '/'
  3828. }
  3829. if (plandetail[index].way === 1) {
  3830. plandetail[index].way = '擦拭'
  3831. }
  3832. if (plandetail[index].way === 2) {
  3833. plandetail[index].way = '化学消毒'
  3834. }
  3835. if (plandetail[index].machine_disinfectant === 0) {
  3836. plandetail[index].machine_disinfectant = '/'
  3837. }
  3838. if (plandetail[index].machine_disinfectant === 1) {
  3839. plandetail[index].machine_disinfectant = '0.22%季铵盐'
  3840. }
  3841. if (plandetail[index].machine_disinfectant === 2) {
  3842. plandetail[index].machine_disinfectant = '500mg/l含氯消毒剂'
  3843. }
  3844. if (plandetail[index].machine_disinfectant === 3) {
  3845. plandetail[index].machine_disinfectant = '1000mg/l含氯消毒剂'
  3846. }
  3847. if (plandetail[index].machine_disinfectant === 4) {
  3848. plandetail[index].machine_disinfectant = '1500mg/l含氯消毒剂'
  3849. }
  3850. if(plandetail[index].machine_disinfectant === 5){
  3851. plandetail[index].machine_disinfectant = "消毒湿巾"
  3852. }
  3853. if (plandetail[index].disinfectan_way === 0) {
  3854. plandetail[index].disinfectan_way = '/'
  3855. }
  3856. if (plandetail[index].disinfectan_way === 1) {
  3857. plandetail[index].disinfectan_way = '热化学消毒'
  3858. }
  3859. if (plandetail[index].disinfectan_way === 2) {
  3860. plandetail[index].disinfectan_way = '化学消毒 + 除钙'
  3861. }
  3862. if (plandetail[index].disinfectan_way === 3) {
  3863. plandetail[index].disinfectan_way = '热化学消毒 + 除钙'
  3864. }
  3865. if (plandetail[index].disinfectan_way === 4) {
  3866. plandetail[index].disinfectan_way = '热消毒'
  3867. }
  3868. if (plandetail[index].disinfectan_way === 5) {
  3869. plandetail[index].disinfectan_way = '化学消毒'
  3870. }
  3871. if (plandetail[index].disinfectan_way === 6) {
  3872. plandetail[index].disinfectan_way = '除钙'
  3873. }
  3874. if (plandetail[index].disinfectan_way === 7) {
  3875. plandetail[index].disinfectan_way = '清洗'
  3876. }
  3877. if (plandetail[index].disinfectant === 0) {
  3878. plandetail[index].disinfectant = '/'
  3879. }
  3880. if (plandetail[index].disinfectant === 1) {
  3881. plandetail[index].disinfectant = '20%柠檬酸'
  3882. }
  3883. if (plandetail[index].disinfectant === 2) {
  3884. plandetail[index].disinfectant = '25%柠檬酸'
  3885. }
  3886. if (plandetail[index].disinfectant === 3) {
  3887. plandetail[index].disinfectant = '50%柠檬酸'
  3888. }
  3889. if (plandetail[index].disinfectant === 4) {
  3890. plandetail[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
  3891. }
  3892. if (plandetail[index].disinfectant === 5) {
  3893. plandetail[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
  3894. }
  3895. if (plandetail[index].disinfectant === 6) {
  3896. plandetail[index].disinfectant = '0.2%过氧化乙酸'
  3897. }
  3898. if (plandetail[index].disinfectant === 7) {
  3899. plandetail[index].disinfectant = '10%冰醋酸'
  3900. }
  3901. if (plandetail[index].disinfectant === 8) {
  3902. plandetail[index].disinfectant = '50%冰醋酸'
  3903. }
  3904. if (plandetail[index].disinfectant === 9) {
  3905. plandetail[index].disinfectant = '5%次氯酸钠'
  3906. }
  3907. if (plandetail[index].disinfectant === 10) {
  3908. plandetail[index].disinfectant = '25%的柠檬酸+5%次氯酸钠'
  3909. }
  3910. }
  3911. this.planData = plandetail
  3912. }
  3913. })
  3914. },
  3915. EditMachine(id, index) {
  3916. this.dialogVisible = true
  3917. EditPlanDetail(id).then(response => {
  3918. if (response.data.state === 1) {
  3919. var plan = response.data.data.plan
  3920. this.machineform.id = plan.id
  3921. this.machineform.device_type = plan.device_type
  3922. this.machineform.disinfec_time = plan.disinfec_time
  3923. this.machineform.time = plan.time
  3924. this.machineform.class_time = plan.classtime
  3925. this.machineform.way = plan.way
  3926. this.machineform.machine_disinfectant = plan.machine_disinfectant
  3927. this.machineform.disinfectant_way = plan.disinfectan_way
  3928. this.machineform.disinfectant = plan.disinfectant
  3929. // this.getPatientDetail(this.unitType, this.$route.query.bedid)
  3930. }
  3931. })
  3932. },
  3933. UpdatePlanInfo(formName) {
  3934. var devicetype = this.machineform.device_type
  3935. var devicetypes = parseInt(devicetype)
  3936. this.machineform.device_type = devicetypes
  3937. if (this.machineform.disinfec_time === '') {
  3938. this.machineform.disinfec_time = ''
  3939. }
  3940. if (this.machineform.disinfec_time !== '') {
  3941. var disinfectimes = this.machineform.disinfec_time
  3942. var disinfectime = parseInt(disinfectimes)
  3943. this.machineform.disinfec_time = disinfectime
  3944. }
  3945. var times = this.machineform.time
  3946. var time = parseInt(times)
  3947. this.machineform.time = time
  3948. var classtimes = this.machineform.class_time
  3949. var classtime = parseInt(classtimes)
  3950. this.machineform.class_time = classtime
  3951. var ways = this.machineform.way
  3952. var way = parseInt(ways)
  3953. this.machineform.way = way
  3954. var machinedisinfectant = this.machineform.machine_disinfectant
  3955. var machinedisinfectants = parseInt(machinedisinfectant)
  3956. this.machineform.machine_disinfectant = machinedisinfectants
  3957. var disinfectantways = this.machineform.disinfectant_way
  3958. var disinfectantway = parseInt(disinfectantways)
  3959. this.machineform.disinfectant_way = disinfectantway
  3960. var disinfectants = this.machineform.disinfectant
  3961. var disinfectant = parseInt(disinfectants)
  3962. this.machineform.disinfectant = disinfectant
  3963. UpdatePlanInfo(this.machineform).then(response => {
  3964. if (response.data.state === 1) {
  3965. var plan = response.data.data.plan
  3966. this.dialogVisible = false
  3967. this.$message.success('修改成功')
  3968. this.getAllPlanDetail(this.unitType)
  3969. this.getAllPlan()
  3970. }
  3971. })
  3972. },
  3973. openDeleteMahcine() {
  3974. if (this.selectMachines.length == 0) {
  3975. this.$message.error('请选择要删除的信息')
  3976. return false
  3977. }
  3978. this.$confirm(
  3979. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  3980. '删除提示',
  3981. {
  3982. dangerouslyUseHTMLString: true,
  3983. confirmButtonText: '确定',
  3984. cancelButtonText: '取消',
  3985. type: 'warning'
  3986. }
  3987. )
  3988. .then(() => {
  3989. var ids = []
  3990. var idMap = {}
  3991. for (const index in this.selectMachines) {
  3992. ids.push(this.selectMachines[index].id)
  3993. idMap[this.selectMachines[index].id] = this.selectMachines[
  3994. index
  3995. ].id
  3996. }
  3997. DeletePlans({ ids: ids }).then(response => {
  3998. // eslint-disable-next-line eqeqeq
  3999. if (response.data.state == 1) {
  4000. // eslint-disable-next-line no-unused-vars
  4001. var msg = response.data.data.msg
  4002. var planDataLength = this.planData.length
  4003. for (let index = planDataLength - 1; index >= 0; index--) {
  4004. if (this.planData[index].id in idMap) {
  4005. this.planData.splice(index, 1)
  4006. }
  4007. }
  4008. var planDataLengths = this.tableData.length
  4009. for (let index = planDataLengths - 1; index >= 0; index--) {
  4010. if (this.tableData[index].id in idMap) {
  4011. this.tableData.splice(index, 1)
  4012. }
  4013. }
  4014. this.$message.success('删除消毒计划成功')
  4015. } else {
  4016. this.$message.error('删除消毒计划失败')
  4017. }
  4018. })
  4019. .catch(e => {})
  4020. })
  4021. .catch(() => {
  4022. return false
  4023. })
  4024. },
  4025. openDelete(id, index) {
  4026. // eslint-disable-next-line no-undef
  4027. this.$confirm(
  4028. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  4029. '删除提示',
  4030. {
  4031. dangerouslyUseHTMLString: true,
  4032. confirmButtonText: '确定',
  4033. cancelButtonText: '取消',
  4034. type: 'warning'
  4035. }
  4036. ).then(() => {
  4037. openDelete(id, index).then(response => {
  4038. if (response.data.state === 1) {
  4039. var msg = response.data.data.msg
  4040. this.tableData.splice(index, 1)
  4041. this.planData.splice(index, 1)
  4042. }
  4043. })
  4044. })
  4045. },
  4046. openDeleteMahcineOne() {
  4047. if (this.selectMachinesOne.length == 0) {
  4048. this.$message.error('请选择要删除的信息')
  4049. return false
  4050. }
  4051. this.$confirm(
  4052. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  4053. '删除提示',
  4054. {
  4055. dangerouslyUseHTMLString: true,
  4056. confirmButtonText: '确定',
  4057. cancelButtonText: '取消',
  4058. type: 'warning'
  4059. }
  4060. )
  4061. .then(() => {
  4062. var ids = []
  4063. var idMap = {}
  4064. for (const index in this.selectMachinesOne) {
  4065. ids.push(this.selectMachinesOne[index].id)
  4066. idMap[this.selectMachinesOne[index].id] = this.selectMachinesOne[
  4067. index
  4068. ].id
  4069. }
  4070. DeletePlans({ ids: ids })
  4071. .then(response => {
  4072. if (response.data.state == 1) {
  4073. var msg = response.data.data.msg
  4074. var planDataLength = this.tableData.length
  4075. for (let index = planDataLength - 1; index >= 0; index--) {
  4076. if (this.tableData[index].id in idMap) {
  4077. this.tableData.splice(index, 1)
  4078. }
  4079. }
  4080. var planDataLengths = this.planData.length
  4081. for (let index = planDataLengths - 1; index >= 0; index--) {
  4082. if (this.planData[index].id in idMap) {
  4083. this.planData.splice(index, 1)
  4084. }
  4085. }
  4086. this.$message.success('删除消毒计划成功')
  4087. } else {
  4088. this.$message.error('删除消毒计划失败')
  4089. }
  4090. })
  4091. .catch(e => {})
  4092. })
  4093. .catch(() => {
  4094. return false
  4095. })
  4096. },
  4097. getAllEquimentName() {
  4098. getAllEquimentName().then(response => {
  4099. if (response.data.state === 1) {
  4100. var equit = response.data.data.equit
  4101. // this.DeviceType = equit
  4102. }
  4103. })
  4104. },
  4105. clickQuery() {
  4106. this.$refs.multipleform.open()
  4107. },
  4108. getPatientInfo(bedid) {
  4109. getPatientInfo(bedid).then(response => {
  4110. if (response.data.state === 1) {
  4111. var schedules = response.data.data.schedules
  4112. // this.patientName = schedules
  4113. }
  4114. })
  4115. },
  4116. ChangeClass(id) {
  4117. ChangeClass(this.equimentid, id).then(response => {
  4118. if (response.data.state === 1) {
  4119. var patients = response.data.data.patients
  4120. if (patients.is_infectious === 0) {
  4121. this.userform.contagion = ''
  4122. }
  4123. if (patients.is_infectious === 1) {
  4124. this.userform.contagion = '无'
  4125. }
  4126. if (patients.is_infectious === 2) {
  4127. this.userform.contagion = '有'
  4128. }
  4129. this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
  4130. this.userform.patient_name = patients.name
  4131. this.userform.patient_id = patients.patient_id
  4132. var zone = response.data.data.zone
  4133. this.userform.zone = zone.id
  4134. var number = response.data.data.number
  4135. this.userform.bed_number = number.id
  4136. var order = response.data.data.order
  4137. this.userform.start_time = uParseTime(order.start_time, '{y}-{m}-{d} {h}:{i}')
  4138. this.userform.end_time = uParseTime(order.end_time, '{y}-{m}-{d} {h}:{i}')
  4139. var prescription = response.data.data.prescription
  4140. this.userform.dialysis_mode = prescription.mode_id
  4141. var dislysis = response.data.data.dislysis
  4142. this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
  4143. this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
  4144. this.userform.weight_loss = dislysis.weight_loss
  4145. }
  4146. })
  4147. },
  4148. updateTimes(time) {
  4149. if (time < 0) {
  4150. return ''
  4151. } else {
  4152. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  4153. }
  4154. },
  4155. getTimes(time) {
  4156. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  4157. },
  4158. getTime(time) {
  4159. return uParseTime(time, '{y}-{m}-{d}')
  4160. },
  4161. SaveInformation(formName) {
  4162. if (this.userform.classtype === '') {
  4163. this.userform.classtype = 0
  4164. }
  4165. var classtypes = this.userform.classtype
  4166. var classtype = parseInt(classtypes)
  4167. this.userform.classtype = classtype
  4168. var zone = this.userform.zone
  4169. var zones = parseInt(zone)
  4170. this.userform.zone = zones
  4171. var bednumber = this.userform.bed_number
  4172. var bednumbers = parseInt(bednumber)
  4173. this.userform.bed_number = bednumbers
  4174. var dialysismode = this.userform.dialysis_mode
  4175. var dialysis_mode = parseInt(dialysismode)
  4176. this.userform.dialysis_mode = dialysis_mode
  4177. if (this.userform.failure_stage === '') {
  4178. this.userform.failure_stage = 0
  4179. }
  4180. if (this.userform.dialysis_checked === '') {
  4181. this.userform.dialysis_checked = 0
  4182. }
  4183. if (this.userform.dialysis_checked === true) {
  4184. this.userform.dialysis_checked = 1
  4185. }
  4186. if (this.userform.dialysis_checked === false) {
  4187. this.userform.dialysis_checked = 2
  4188. }
  4189. if (this.userform.germ_checked === '') {
  4190. this.userform.germ_checked = 0
  4191. }
  4192. if (this.userform.germ_checked === true) {
  4193. this.userform.germ_checked = 1
  4194. }
  4195. if (this.userform.germ_checked === false) {
  4196. this.userform.germ_checked = 2
  4197. }
  4198. if (this.userform.dialysis_name === '') {
  4199. this.userform.dialysis_name = 0
  4200. }
  4201. var dialysis_name = this.userform.dialysis_name
  4202. var dialysis = parseInt(dialysis_name)
  4203. this.userform.dialysis_name = dialysis
  4204. if (this.userform.germ_name === '') {
  4205. this.userform.germ_name = 0
  4206. }
  4207. var germname = this.userform.germ_name
  4208. var germames = parseInt(germname)
  4209. this.userform.germ_name = germames
  4210. if (this.userform.clean === '') {
  4211. this.userform.clean = 0
  4212. }
  4213. if (this.userform.clean === true) {
  4214. this.userform.clean = 1
  4215. }
  4216. if (this.userform.clean === false) {
  4217. this.userform.clean = 2
  4218. }
  4219. // eslint-disable-next-line eqeqeq
  4220. if (this.userform.start_time == '') {
  4221. this.userform.start_time = '0'
  4222. }
  4223. // eslint-disable-next-line eqeqeq
  4224. if (this.userform.end_time == '') {
  4225. this.userform.end_time = '0'
  4226. }
  4227. // eslint-disable-next-line eqeqeq
  4228. if (this.userform.starttime == '') {
  4229. this.userform.starttime = '0'
  4230. }
  4231. // eslint-disable-next-line eqeqeq
  4232. if (this.userform.endtime == '') {
  4233. this.userform.endtime = '0'
  4234. }
  4235. if (this.userform.hyperfiltratio === '') {
  4236. this.userform.hyperfiltratio = 0
  4237. }
  4238. var hyperfiltratio = this.userform.hyperfiltratio
  4239. var hyperfiltratios = parseFloat(hyperfiltratio)
  4240. this.userform.hyperfiltratio = hyperfiltratios
  4241. if (this.userform.weight_loss === '') {
  4242. this.userform.weight_loss = 0
  4243. }
  4244. var weightloss = this.userform.weight_loss
  4245. var weidht = parseFloat(weightloss)
  4246. this.userform.weight_loss = weidht
  4247. if (this.userform.user_total === '0') {
  4248. this.userform.user_total = 0
  4249. }
  4250. if (this.userform.user_total == ""){
  4251. this.userform.user_total = 0
  4252. }
  4253. this.userform.user_total = parseInt(this.userform.user_total)
  4254. console.log("user_form",this.userform)
  4255. this.$refs[formName].validate((valid) => {
  4256. if (valid) {
  4257. SaveInformation(this.equimentid, this.userform).then(response => {
  4258. if (response.data.state === 1) {
  4259. // eslint-disable-next-line no-unused-vars
  4260. var information = response.data.data.information
  4261. var infor = response.data.data.infor
  4262. this.userform.start_time = ''
  4263. this.userform.end_time = ''
  4264. this.userform.starttime = ''
  4265. this.userform.endtime = ''
  4266. this.userform.date = ''
  4267. this.userform.classtype = ''
  4268. this.userform.zone = ''
  4269. this.userform.patient_name = ''
  4270. this.userform.sign_name = ''
  4271. this.userform.bed_number = ''
  4272. this.userform.hyperfiltratio = ''
  4273. this.userform.weight_loss = ''
  4274. this.userform.dialysis_time = ''
  4275. this.$message.success('添加成功')
  4276. // this.$refs.child.getInformationData()
  4277. }
  4278. })
  4279. }
  4280. })
  4281. },
  4282. toLink() {
  4283. window.location.href = this.guaForm.images
  4284. },
  4285. // 获取签名
  4286. getAllOrganization() {
  4287. getAllOrganization().then(response => {
  4288. if (response.data.state === 1) {
  4289. var approle = response.data.data.approle
  4290. this.autograph = approle
  4291. this.sampling = approle
  4292. }
  4293. })
  4294. },
  4295. getUserRegister(id) {
  4296. getUserRegister(id).then(response => {
  4297. if (response.data.state === 1) {
  4298. var information = response.data.data.information
  4299. var role = response.data.data.role
  4300. var dislysis = response.data.data.dislysis
  4301. this.userform.id = information.id
  4302. if (information.date === 0) {
  4303. this.userform.date = moment(new Date()).format('YYYY-MM-DD')
  4304. } else {
  4305. this.userform.date = uParseTime(information.date, '{y}-{m}-{d}')
  4306. }
  4307. this.userform.classtype = information.class
  4308. this.userform.zone = information.zone
  4309. this.userform.bed_number = information.bed_number
  4310. this.userform.patient_name = information.name
  4311. this.userform.patient_id = information.patient_id
  4312. this.userform.contagion = information.contagion
  4313. this.userform.dialysis_mode = information.dialysis_mode
  4314. this.userform.start_time = this.updateTimes(information.start_time)
  4315. this.userform.end_time = this.updateTimes(information.end_time)
  4316. // this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
  4317. if (information.hyperfiltratio === '') {
  4318. this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
  4319. } else {
  4320. this.userform.hyperfiltratio = information.hyperfiltratio
  4321. }
  4322. if (information.dialysis_hour === '') {
  4323. this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
  4324. } else {
  4325. this.userform.dialysis_time = information.dialysis_hour
  4326. }
  4327. if (information.weight_loss === '') {
  4328. this.userform.weight_loss = dislysis.weight_loss
  4329. } else {
  4330. this.userform.weight_loss = information.weight_loss
  4331. }
  4332. this.userform.warning_value = information.warning_value
  4333. this.userform.user_total = information.user_total
  4334. if (information.move === 0) {
  4335. this.userform.run = 1
  4336. } else {
  4337. this.userform.run = information.move
  4338. }
  4339. this.userform.failure_stage = information.failure_stage
  4340. this.userform.fault_description = information.fault_description
  4341. this.userform.code_information = information.code_information
  4342. this.userform.disinfect_type = information.disinfect_type
  4343. this.userform.disinfection = information.disinfection
  4344. this.userform.machine_run = information.machine_run
  4345. this.userform.fluid_path = information.fluid_path
  4346. this.userform.disinfectant = information.disinfectant
  4347. this.userform.disinfection_status = information.disinfection_status
  4348. this.userform.disinfection_residue = information.disinfection_residue
  4349. this.userform.longtime = information.long_time
  4350. this.userform.starttime = this.updateTimes(information.disinfec_startime)
  4351. this.userform.endtime = this.updateTimes(information.disinfec_endtime)
  4352. if (information.dialysis_checked === 1) {
  4353. this.userform.dialysis_checked = true
  4354. }
  4355. if (information.dialysis_checked === 0) {
  4356. this.userform.dialysis_checked = false
  4357. }
  4358. if (information.dialysis_checked === 2) {
  4359. this.userform.dialysis_checked = false
  4360. }
  4361. this.userform.dialysis_name = information.dialysis_name
  4362. this.userform.norms = information.norms
  4363. this.userform.dialysis_concentration = information.dialysis_concentration
  4364. if (information.germ_checked === 0) {
  4365. this.userform.germ_checked = false
  4366. }
  4367. if (information.germ_checked === 2) {
  4368. this.userform.germ_checked = false
  4369. }
  4370. if (information.germ_checked === 1) {
  4371. this.userform.germ_checked = true
  4372. }
  4373. this.userform.germ_name = information.germ_name
  4374. this.userform.germ_number = information.germ_number
  4375. if (information.clean === 1) {
  4376. this.userform.clean = true
  4377. }
  4378. if (information.clean === 0) {
  4379. this.userform.clean = false
  4380. }
  4381. if (information.clean === 2) {
  4382. this.userform.clean = false
  4383. }
  4384. // eslint-disable-next-line eqeqeq
  4385. if (information.admin_user_id == 0) {
  4386. this.userform.sign_name = ''
  4387. } else {
  4388. this.userform.sign_name = information.admin_user_id
  4389. }
  4390. this.$forceUpdate()
  4391. }
  4392. })
  4393. },
  4394. getOrgName() {
  4395. getOrgName().then(response => {
  4396. if (response.data.state === 1) {
  4397. var org = response.data.data.org
  4398. this.qualityForm.detection_unit = org.org_name
  4399. this.qualityFormTwo.detection_unit = org.org_name
  4400. this.qualityFormThree.detection_unit = org.org_name
  4401. this.qualityFormFour.detection_unit =org.org_name
  4402. this.qualityFormFive.detection_unit = org.org_name
  4403. this.qualityFormSix.detection_unit = org.org_name
  4404. this.qualityFormSeven.detection_unit = org.org_name
  4405. }
  4406. })
  4407. },
  4408. SaveBacteria(formName) {
  4409. if (this.qualityForm.specimen === '') {
  4410. this.qualityForm.specimen = 0
  4411. }
  4412. var specimen = this.qualityForm.specimen
  4413. var specimens = parseInt(specimen)
  4414. this.qualityForm.specimen = specimens
  4415. if (this.qualityForm.sampling_locationa === '') {
  4416. this.qualityForm.sampling_locationa = 0
  4417. }
  4418. var samplinglocationa = this.qualityForm.sampling_locationa
  4419. var samplinglocationas = parseInt(samplinglocationa)
  4420. this.qualityForm.sampling_locationa = samplinglocationas
  4421. // if(this.qualityForm.pass_examination!=''){
  4422. // this.qualityForm.pass_examination = parseInt(this.qualityForm.pass_examination)
  4423. // }
  4424. if(this.qualityForm.modifications!=''){
  4425. this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
  4426. }
  4427. console.log("3333333",this.qualityForm)
  4428. this.$refs[formName].validate(response => {
  4429. SaveBacteria(this.equimentid, this.qualityForm).then(response => {
  4430. if (response.data.state === 1) {
  4431. var culture = response.data.data.culture
  4432. this.$message.success('保存成功')
  4433. this.qualityForm.specimen = '',
  4434. this.qualityForm.concentrate_noa = '',
  4435. this.qualityForm.concentrate_nob = '',
  4436. this.qualityForm.sampling_locationa = '',
  4437. this.qualityForm.detection_result = ''
  4438. this.$refs.mychild.getAllQulityInfo()
  4439. }else{
  4440. this.$message.error("创建失败")
  4441. }
  4442. })
  4443. })
  4444. },
  4445. cleanSaveBacteria() {
  4446. this.qualityForm.specimen = '',
  4447. this.qualityForm.concentrate_noa = '',
  4448. this.qualityForm.concentrate_nob = '',
  4449. this.qualityForm.sampling_locationa = '',
  4450. this.qualityForm.sampler = ''
  4451. this.qualityForm.reporting_date = ''
  4452. this.qualityForm.detection_result = ''
  4453. },
  4454. SaveLincomycin(formName) {
  4455. this.$refs[formName].validate((valid) => {
  4456. if (this.qualityFormTwo.specimenb === '') {
  4457. this.qualityFormTwo.specimenb = 0
  4458. }
  4459. var specimen = this.qualityFormTwo.specimenb
  4460. var specimenb = parseInt(specimen)
  4461. this.qualityFormTwo.specimenb = specimenb
  4462. if (this.qualityFormTwo.sampling_locationb === '') {
  4463. this.qualityFormTwo.sampling_locationb = 0
  4464. }
  4465. var sampling = this.qualityFormTwo.sampling_locationb
  4466. var samplings = parseInt(sampling)
  4467. this.qualityFormTwo.sampling_locationb = samplings
  4468. if(this.qualityFormTwo.modifications!=''){
  4469. this.qualityFormTwo.modifications = parseInt(this.qualityFormTwo.modifications)
  4470. }
  4471. if (valid) {
  4472. SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
  4473. if (response.data.state === 1) {
  4474. var dialysate = response.data.data.dialysate
  4475. this.$message.success('保存成功')
  4476. this.qualityFormTwo.specimenb = ''
  4477. this.qualityFormTwo.concentrate_noc = ''
  4478. this.qualityFormTwo.concentrateb_nod = ''
  4479. this.qualityFormTwo.sampling_locationb = ''
  4480. this.qualityFormTwo.detection_resultb = ''
  4481. this.$refs.mychild.getAllQulityInfo()
  4482. }
  4483. })
  4484. }
  4485. })
  4486. },
  4487. cleanLincomycin() {
  4488. this.qualityFormTwo.specimenb = ''
  4489. this.qualityFormTwo.concentrate_noc = ''
  4490. this.qualityFormTwo.concentrateb_nod = ''
  4491. this.qualityFormTwo.sampling_locationb = ''
  4492. this.qualityFormTwo.samplerb = ''
  4493. this.qualityFormTwo.reporting_dateb = ''
  4494. this.qualityFormTwo.detection_resultb = ''
  4495. },
  4496. SaveQualityControl(formName) {
  4497. this.$refs[formName].validate((valid) => {
  4498. if (valid) {
  4499. if(this.qualityFormThree.modifications!=''){
  4500. this.qualityFormThree.modifications = parseInt(this.qualityFormThree.modifications)
  4501. }
  4502. SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
  4503. if (response.data.state === 1) {
  4504. var ion = response.data.data.ion
  4505. this.$message.success('保存成功')
  4506. this.$refs.mychild.getAllQulityInfo()
  4507. this.qualityFormThree.concentrate_nof = ''
  4508. this.qualityFormThree.concentrate_nog = ''
  4509. this.qualityFormThree.actual_na = ''
  4510. this.qualityFormThree.actual_pna = ''
  4511. this.qualityFormThree.actual_k = ''
  4512. this.qualityFormThree.actual_ca = ''
  4513. this.qualityFormThree.actual_ci = ''
  4514. this.qualityFormThree.actual_hco = ''
  4515. this.qualityFormThree.actual_mg = ''
  4516. this.qualityFormThree.actual_ph = ''
  4517. this.qualityFormThree.remakes = ''
  4518. }
  4519. })
  4520. }
  4521. })
  4522. },
  4523. cleanQuality() {
  4524. this.qualityFormThree.samplerc = ''
  4525. this.qualityFormThree.concentrate_nof = ''
  4526. this.qualityFormThree.concentrate_nog = ''
  4527. this.qualityFormThree.date_reportc = ''
  4528. this.qualityFormThree.actual_na = ''
  4529. this.qualityFormThree.actual_pna = ''
  4530. this.qualityFormThree.actual_k = ''
  4531. this.qualityFormThree.actual_ca = ''
  4532. this.qualityFormThree.actual_ci = ''
  4533. this.qualityFormThree.actual_hco = ''
  4534. this.qualityFormThree.actual_mg = ''
  4535. this.qualityFormThree.actual_ph = ''
  4536. this.qualityFormThree.remakes = ''
  4537. },
  4538. changeSpecimen(val) {
  4539. if (val === 0) {
  4540. this.disable = false
  4541. this.diableTwo = false
  4542. }
  4543. if (val === 1) {
  4544. this.disable = false
  4545. this.diableTwo = false
  4546. }
  4547. if (val === 2) {
  4548. this.qualityForm.concentrate_nob = ''
  4549. this.qualityFormTwo.concentrateb_nod = ''
  4550. this.diableTwo = true
  4551. this.disable = false
  4552. }
  4553. if (val === 3) {
  4554. this.qualityForm.concentrate_noa = ''
  4555. this.qualityFormTwo.concentrate_noc = ''
  4556. this.disable = true
  4557. this.diableTwo = false
  4558. }
  4559. if (val === 4) {
  4560. this.disable = false
  4561. this.diableTwo = false
  4562. }
  4563. if (val === 5) {
  4564. this.disable = false
  4565. this.diableTwo = false
  4566. }
  4567. },
  4568. beforeUploadFile(file) {
  4569. var testmsg = file.name.substring(file.name.lastIndexOf('.') + 1)
  4570. const extension = testmsg === 'jpg' || testmsg === 'JPG' || testmsg === 'png' || testmsg === 'PNG' || testmsg === 'gif' || testmsg === 'GIF'
  4571. if (!extension) {
  4572. // eslint-disable-next-line no-mixed-spaces-and-tabs
  4573. this.$message({
  4574. // eslint-disable-next-line no-mixed-spaces-and-tabs
  4575. message: '上传文件只能是jpg或者png或者gif格式!',
  4576. type: 'error'
  4577. })
  4578. return false// 必须加上return false; 才能阻止
  4579. }
  4580. this.filename = file.name
  4581. this.classShow = true
  4582. this.guaForm.imageName = file.name
  4583. const isLt2M = file.size / 1024 / 1024 <= 2048
  4584. var date = new Date()
  4585. var ext = getFileExtension(file.name)
  4586. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() + '_o_' + file.uid + '.' + ext
  4587. const _self = this
  4588. return new Promise((resolve, reject) => {
  4589. getToken().then(response => {
  4590. const token = response.data.data.uptoken
  4591. _self._data.uploadFileData.token = token
  4592. _self._data.uploadFileData.key = key
  4593. resolve(true)
  4594. }).catch(err => {
  4595. reject(false)
  4596. })
  4597. })
  4598. },
  4599. handleSuccess(res, file, fileList) {
  4600. this.guaForm.images = this.qiniuDomain + res.url
  4601. this.$refs.upload.clearFiles()
  4602. this.filename = file.name
  4603. this.guaForm.imageName = file.name
  4604. },
  4605. // eslint-disable-next-line no-dupe-keys
  4606. getTime(value, temp) {
  4607. // eslint-disable-next-line eqeqeq
  4608. if (value != undefined) {
  4609. return parseTime(value, temp)
  4610. }
  4611. return ''
  4612. },
  4613. SaveRepair(formName) {
  4614. if (this.guaForm.start_time === '') {
  4615. this.guaForm.start_time = '0'
  4616. }
  4617. if (this.guaForm.arrive_time === '') {
  4618. this.guaForm.arrive_time = '0'
  4619. }
  4620. if (this.guaForm.finish_time === '') {
  4621. this.guaForm.finish_time = '0'
  4622. }
  4623. if (this.guaForm.failure_stage === '') {
  4624. this.guaForm.failure_stage = '0'
  4625. }
  4626. var failurestages = this.guaForm.failure_stage
  4627. var falur = parseInt(failurestages)
  4628. this.guaForm.failure_stage = falur
  4629. if (this.guaForm.exclude === '') {
  4630. this.guaForm.exclude = 0
  4631. }
  4632. var excludes = this.guaForm.exclude
  4633. var exclude = parseInt(excludes)
  4634. this.guaForm.exclude = exclude
  4635. this.$refs[formName].validate((valid) => {
  4636. if (valid) {
  4637. SaveRepair(this.equimentid, this.guaForm).then(response => {
  4638. if (response.data.state === 1) {
  4639. var repair = response.data.data.repair
  4640. this.$message.success('保存成功')
  4641. this.$refs.child.getAllRepair()
  4642. this.guaForm.start_time = ''
  4643. this.guaForm.arrive_time = ''
  4644. this.guaForm.finish_time = ''
  4645. this.guaForm.total_distance = ''
  4646. this.guaForm.code_information = ''
  4647. this.guaForm.fault_description = ''
  4648. this.guaForm.cause_analysis = ''
  4649. this.guaForm.reason = ''
  4650. this.guaForm.failure_stage = 0
  4651. this.guaForm.exclude = 0
  4652. this.guaForm.images = ''
  4653. this.guaForm.treatment_process = ''
  4654. this.classShow = false
  4655. this.guaForm.imageName = ''
  4656. }
  4657. })
  4658. }
  4659. })
  4660. },
  4661. querySearchAsync(keyword, cb) {
  4662. let key = ''
  4663. if (keyword != undefined) {
  4664. key = keyword
  4665. }
  4666. let searchArray = []
  4667. PostSearch(key).then(response => {
  4668. if (response.data.state == 1) {
  4669. searchArray = response.data.data.patient
  4670. cb(searchArray)
  4671. }
  4672. })
  4673. return searchArray
  4674. },
  4675. createFilter(queryString) {
  4676. return (searchArray) => {
  4677. return (searchArray.id.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
  4678. }
  4679. },
  4680. handleSelect(item) {
  4681. this.userform.patient_id = item.id
  4682. this.userform.patient_name = item.name
  4683. // eslint-disable-next-line no-undef
  4684. getPatientDetail(item.id).then(response => {
  4685. // eslint-disable-next-line eqeqeq
  4686. if (response.data.state == 1) {
  4687. var patient = response.data.data.patient
  4688. // eslint-disable-next-line no-undef
  4689. if (patient.is_infectious === 0) {
  4690. this.userform.contagion = ''
  4691. }
  4692. // eslint-disable-next-line no-undef
  4693. if (patient.is_infectious === 1) {
  4694. this.userform.contagion = '无'
  4695. }
  4696. // eslint-disable-next-line no-undef
  4697. if (patient.is_infectious === 2) {
  4698. this.userform.contagion = '有'
  4699. }
  4700. }
  4701. })
  4702. },
  4703. getAllEquitType() {
  4704. getAllEquitType().then(response => {
  4705. if (response.data.state === 1) {
  4706. var equitname = response.data.data.mode
  4707. this.DeviceType = equitname
  4708. }
  4709. })
  4710. },
  4711. getTotalNumber() {
  4712. getTotalNumber(this.equimentid).then(response => {
  4713. if (response.data.state === 1) {
  4714. var total = response.data.data.total
  4715. if (total === '') {
  4716. this.userform.user_total = ''
  4717. }
  4718. this.userform.user_total = total
  4719. } else {
  4720. this.$message.error('数据返回失败')
  4721. }
  4722. })
  4723. },
  4724. getAllpatient() {
  4725. getAllpatient().then(response => {
  4726. if (response.data.state === 1) {
  4727. var allpatient = response.data.data.allpatient
  4728. this.patientName = allpatient
  4729. }
  4730. })
  4731. },
  4732. getTimeWarning(id) {
  4733. getTimeWarning(id).then(response => {
  4734. if (response.data.state === 1) {
  4735. var information = response.data.data.information
  4736. var time = this.getTimestamp(this.userform.date) - information.stime
  4737. var deviceInformation = response.data.data.deviceInformation
  4738. var timetwo = this.getTimestamp(this.userform.date) - deviceInformation.stime
  4739. var clean = response.data.data.clean
  4740. }
  4741. })
  4742. },
  4743. getTimeBeteen(id) {
  4744. var todayTime = moment(new Date()).format('YYYY-MM-DD')
  4745. getTimeBeteen(id, todayTime).then(response => {
  4746. if (response.data.state === 1) {
  4747. var timedata = response.data.data.timeData
  4748. if (timedata.length === 0) {
  4749. this.warnShow = true
  4750. }
  4751. if (timedata.length !== 0) {
  4752. this.warnShow = false
  4753. }
  4754. var todayTimeTwo = response.data.data.timeDataTwo
  4755. if (todayTimeTwo.length === 0) {
  4756. this.warnShowTwo = true
  4757. }
  4758. if (todayTimeTwo.length !== 0) {
  4759. this.warnShowTwo = false
  4760. }
  4761. var timeDataThree = response.data.data.timeDataThree
  4762. if (timeDataThree.length === 0) {
  4763. this.warnShowThree = true
  4764. }
  4765. if (timeDataThree.length !== 0) {
  4766. this.warnShowThree = false
  4767. }
  4768. }
  4769. })
  4770. },
  4771. getTimestamp(time) { // 把时间日期转成时间戳
  4772. return (new Date(time)).getTime() / 1000
  4773. },
  4774. // eslint-disable-next-line no-irregular-whitespace
  4775. // 通过自组建传值改变表格数据
  4776. getPlanData(data) {
  4777. if (data === 1) {
  4778. this.getAllPlanDetail(this.unitType)
  4779. }
  4780. },
  4781. getAllMode() {
  4782. getAllMode().then(response => {
  4783. var mode = response.data.data.mode
  4784. this.deviceMode = mode
  4785. })
  4786. },
  4787. selectChange(id) {
  4788. selectChange(id).then(response => {
  4789. if (response.data.state === 1) {
  4790. this.userform.bed_number = ''
  4791. var change = response.data.data.change
  4792. this.bedNumberTwo = change
  4793. // console.log('change', change)
  4794. }
  4795. })
  4796. },
  4797. selectBed(id) {
  4798. selectBed(id).then(response => {
  4799. if (response.data.state === 1) {
  4800. var zone = response.data.data.zone
  4801. }
  4802. })
  4803. },
  4804. getData(id) {
  4805. selectBed(id).then(response => {
  4806. if (response.data.state === 1) {
  4807. var zone = response.data.data.zone
  4808. this.$forceUpdate()
  4809. this.userform.bed_number = zone.id
  4810. this.userform.zone = zone.zone_id
  4811. }
  4812. })
  4813. },
  4814. hiddenShow() {
  4815. this.$confirm(
  4816. '确认要删除所选图片吗? <br>删除后,信息将无法恢复',
  4817. '删除提示',
  4818. {
  4819. dangerouslyUseHTMLString: true,
  4820. confirmButtonText: '确定',
  4821. cancelButtonText: '取消',
  4822. type: 'warning'
  4823. }
  4824. ).then(() => {
  4825. this.filename = ''
  4826. this.guaForm.imageName = ''
  4827. this.guaForm.images = ''
  4828. this.classShow = false
  4829. })
  4830. },
  4831. //获取机器的使用次数
  4832. GetUserTotalCount(bedid){
  4833. this.userform.user_total = ""
  4834. GetUserTotalCount(bedid).then(response=>{
  4835. if(response.data.state == 1){
  4836. var count = response.data.data.count
  4837. var addmacher = response.data.data.addmacher
  4838. if(addmacher.user_total == ''){
  4839. addmacher.user_total = 0
  4840. }
  4841. this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
  4842. }
  4843. })
  4844. },
  4845. saveOxygenates(formName) {
  4846. this.$refs[formName].validate((valid) => {
  4847. if (this.qualityFormFour.specimenb === '') {
  4848. this.qualityFormFour.specimenb = 0
  4849. }
  4850. var specimen = this.qualityFormFour.specimenb
  4851. var specimenb = parseInt(specimen)
  4852. this.qualityFormFour.specimenb = specimenb
  4853. if (this.qualityFormFour.sampling_locationb === '') {
  4854. this.qualityFormFour.sampling_locationb = 0
  4855. }
  4856. var sampling = this.qualityFormFour.sampling_locationb
  4857. var samplings = parseInt(sampling)
  4858. this.qualityFormFour.sampling_locationb = samplings
  4859. if(this.qualityFormFour.modifications!=''){
  4860. this.qualityFormFour.modifications = parseInt(this.qualityFormFour.modifications)
  4861. }
  4862. if (valid) {
  4863. saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
  4864. if (response.data.state === 1) {
  4865. var oxygenates = response.data.data.oxygenates
  4866. console.log("oxygenates",oxygenates)
  4867. this.$message.success('保存成功')
  4868. this.qualityFormFour.specimenb = ''
  4869. this.qualityFormFour.concentrate_noc = ''
  4870. this.qualityFormFour.concentrateb_nod = ''
  4871. this.qualityFormFour.sampling_locationb = ''
  4872. this.qualityFormFour.detection_resultb = ''
  4873. this.$refs.mychild.getAllQulityInfo()
  4874. }
  4875. })
  4876. }
  4877. })
  4878. },
  4879. saveHardWater(formName) {
  4880. this.$refs[formName].validate((valid) => {
  4881. if (this.qualityFormFive.specimenb === '') {
  4882. this.qualityFormFive.specimenb = 0
  4883. }
  4884. var specimen = this.qualityFormFive.specimenb
  4885. var specimenb = parseInt(specimen)
  4886. this.qualityFormFive.specimenb = specimenb
  4887. if (this.qualityFormFive.sampling_locationb === '') {
  4888. this.qualityFormFive.sampling_locationb = 0
  4889. }
  4890. var sampling = this.qualityFormFive.sampling_locationb
  4891. var samplings = parseInt(sampling)
  4892. this.qualityFormFive.sampling_locationb = samplings
  4893. if(this.qualityFormFive.modifications!=''){
  4894. this.qualityFormFive.modifications = parseInt(this.qualityFormFive.modifications)
  4895. }
  4896. if (valid) {
  4897. saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
  4898. if (response.data.state === 1) {
  4899. var hadwater = response.data.data.hadwater
  4900. console.log("hadwater",hadwater)
  4901. this.$message.success('保存成功')
  4902. this.qualityFormFive.specimenb = ''
  4903. this.qualityFormFive.concentrate_noc = ''
  4904. this.qualityFormFive.concentrateb_nod = ''
  4905. this.qualityFormFive.sampling_locationb = ''
  4906. this.qualityFormFive.detection_resultb = ''
  4907. this.$refs.mychild.getAllQulityInfo()
  4908. }
  4909. })
  4910. }
  4911. })
  4912. },
  4913. saveWater(formName) {
  4914. this.$refs[formName].validate((valid) => {
  4915. if (this.qualityFormSix.specimenb === '') {
  4916. this.qualityFormSix.specimenb = 0
  4917. }
  4918. var specimen = this.qualityFormSix.specimenb
  4919. var specimenb = parseInt(specimen)
  4920. this.qualityFormSix.specimenb = specimenb
  4921. if (this.qualityFormSix.sampling_locationb === '') {
  4922. this.qualityFormSix.sampling_locationb = 0
  4923. }
  4924. var sampling = this.qualityFormSix.sampling_locationb
  4925. var samplings = parseInt(sampling)
  4926. this.qualityFormSix.sampling_locationb = samplings
  4927. if(this.qualityFormSix.modifications!=''){
  4928. this.qualityFormSix.modifications = parseInt(this.qualityFormSix.modifications)
  4929. }
  4930. if (valid) {
  4931. saveWater(this.equimentid, this.qualityFormSix).then(response => {
  4932. if (response.data.state === 1) {
  4933. var deviceWater = response.data.data.deviceWater
  4934. console.log("deviceWater",deviceWater)
  4935. this.$message.success('保存成功')
  4936. this.qualityFormSix.specimenb = ''
  4937. this.qualityFormSix.concentrate_noc = ''
  4938. this.qualityFormSix.concentrateb_nod = ''
  4939. this.qualityFormSix.sampling_locationb = ''
  4940. this.qualityFormSix.detection_resultb = ''
  4941. this.$refs.child.getAllQulityInfo()
  4942. }else{
  4943. this.qualityFormSix.pass_examination = "1"
  4944. }
  4945. })
  4946. }
  4947. })
  4948. },
  4949. saveDevicePH(formName) {
  4950. this.$refs[formName].validate((valid) => {
  4951. if (this.qualityFormSeven.specimenb === '') {
  4952. this.qualityFormSeven.specimenb = 0
  4953. }
  4954. var specimen = this.qualityFormSeven.specimenb
  4955. var specimenb = parseInt(specimen)
  4956. this.qualityFormSeven.specimenb = specimenb
  4957. if (this.qualityFormSeven.sampling_locationb === '') {
  4958. this.qualityFormSeven.sampling_locationb = 0
  4959. }
  4960. var sampling = this.qualityFormSeven.sampling_locationb
  4961. var samplings = parseInt(sampling)
  4962. this.qualityFormSeven.sampling_locationb = samplings
  4963. if(this.qualityFormSeven.modifications!=''){
  4964. this.qualityFormSeven.modifications = parseInt(this.qualityFormSeven.modifications)
  4965. }
  4966. if (valid) {
  4967. saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
  4968. if (response.data.state === 1) {
  4969. var devicePh = response.data.data.devicePh
  4970. console.log("devicePh",devicePh)
  4971. this.$message.success('保存成功')
  4972. this.qualityFormSeven.specimenb = ''
  4973. this.qualityFormSeven.concentrate_noc = ''
  4974. this.qualityFormSeven.concentrateb_nod = ''
  4975. this.qualityFormSeven.sampling_locationb = ''
  4976. this.qualityFormSeven.detection_resultb = ''
  4977. this.$refs.mychild.getAllQulityInfo()
  4978. }
  4979. })
  4980. }
  4981. })
  4982. },
  4983. },
  4984. created() {
  4985. this.getAllSubregion()
  4986. this.getAllMachine()
  4987. var bedid = this.$route.query.bedid
  4988. this.bedid = bedid
  4989. this.getAllPlan()
  4990. this.getAllEquimentName()
  4991. this.getAllOrganization()
  4992. this.getOrgName()
  4993. this.getAllEquitType()
  4994. this.getAllpatient()
  4995. this.getAllMode()
  4996. this.GetUserTotalCount(bedid)
  4997. }
  4998. }
  4999. </script>
  5000. <style lang="scss" scoped>
  5001. .zone{
  5002. // margin-left: 30px;
  5003. // text-align: left;
  5004. width: 70px;
  5005. display: inline-block;
  5006. color:#606266;
  5007. }
  5008. .disinfect{
  5009. position: relative;
  5010. .newButton{
  5011. // position: absolute;
  5012. // right: 2%;
  5013. // top:4px;
  5014. // z-index: 9;
  5015. margin-bottom: 10px;
  5016. margin-left: 90%;
  5017. }
  5018. }
  5019. .disinfectOne{
  5020. position: relative;
  5021. .newButtonOne{
  5022. position: absolute;
  5023. right: 0;
  5024. top: -10;
  5025. z-index: 18;
  5026. }
  5027. }
  5028. .but{
  5029. width: 200px;
  5030. height: 50px;
  5031. // border: solid 1px red;
  5032. margin-left: 77%;
  5033. }
  5034. .clearn{
  5035. width: 460px;
  5036. height: 50px;
  5037. // border:solid 1px red;
  5038. margin-left:650px;
  5039. }
  5040. .zClass{
  5041. width: 200px;
  5042. height: 200px;
  5043. // border:solid 1px red;
  5044. margin-left: 450px;
  5045. margin-top: 200px;
  5046. }
  5047. .warn{
  5048. color: red;
  5049. font-size: 14px;
  5050. width: 100%;
  5051. display: inline-block;
  5052. margin-left: 96px;
  5053. }
  5054. .userbutton{
  5055. margin-bottom: 10px;
  5056. margin-left: 82%
  5057. }
  5058. </style>
  5059. <style lang="scss">
  5060. .a{
  5061. margin-bottom: 10px;
  5062. margin-top: 6px;
  5063. }
  5064. .b{
  5065. .el-button{
  5066. margin-left: 90%;
  5067. margin-bottom: 10px;
  5068. }
  5069. }
  5070. .stoppage{
  5071. .el-form-item__label{
  5072. width:190px;
  5073. }
  5074. }
  5075. .st{
  5076. .el-form-item__label{
  5077. width:-10px;
  5078. }
  5079. }
  5080. .main{
  5081. position: relative;
  5082. .newButtonOne{
  5083. position:absolute;
  5084. right: 0;
  5085. z-index: 2;
  5086. }
  5087. }
  5088. .elbutton{
  5089. // border: solid 1px red;
  5090. height: 50px;
  5091. width: 400px;
  5092. margin-left: 650px;
  5093. }
  5094. // .el-form-item__label {
  5095. // width: 130px;
  5096. // font-size: 14px;
  5097. // }
  5098. .el-form-item__error {
  5099. margin-left: 130px;
  5100. }
  5101. .el-upload-list__item-name {
  5102. color: #606266;
  5103. display: block;
  5104. margin-right: 40px;
  5105. overflow: hidden;
  5106. padding-left: 4px;
  5107. text-overflow: ellipsis;
  5108. transition: color .3s;
  5109. white-space: nowrap;
  5110. }
  5111. .el-main{
  5112. padding-top: 0px;
  5113. }
  5114. .newMain{
  5115. .el-form-item__label{
  5116. width: 104px;
  5117. }
  5118. }
  5119. .newDisinfectOne{
  5120. .el-input--prefix .el-input__inner{
  5121. padding-left: 15px
  5122. }
  5123. }
  5124. .stoppage{
  5125. .el-form-item__label{
  5126. width: 18%;
  5127. }
  5128. }
  5129. .newItem{
  5130. .el-form-item__label{
  5131. width: 130px;
  5132. }
  5133. }
  5134. .formItem{
  5135. .el-form-item__label{
  5136. width: 104px;
  5137. line-height: 30px;
  5138. }
  5139. }
  5140. .newname{
  5141. .el-form-item__label{
  5142. width: 60px;
  5143. }
  5144. }
  5145. ::-webkit-scrollbar{
  5146. height: 20px;
  5147. }
  5148. </style>