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

home.vue 259KB

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