home.vue 255KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461
  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">
  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="消毒状态:" required prop="disinfection">
  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="消毒状态:" required prop="disinfection_status">
  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="userForm" :userdata="userdata" v-if="device_type == 1"></user-form>
  1352. <water-form-list ref="waterFormList" 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">
  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="检测结果:(EU/ml)" 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">
  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="检测结果:(EU/ml)" 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">
  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="检测结果:(EU/ml)" 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 label="故障发生阶段">
  2317. <el-radio-group v-model="guaForm.failure_stage">
  2318. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
  2319. </el-radio-group>
  2320. </el-form-item>
  2321. </el-col>
  2322. </el-row>
  2323. <el-row>
  2324. <el-col :span="24">
  2325. <el-form-item class="formItem" label="故障提示信息及代码">
  2326. <el-input
  2327. type="textarea"
  2328. :rows="2"
  2329. placeholder="请输入内容"
  2330. v-model="guaForm.code_information"
  2331. style="width:85%">
  2332. </el-input>
  2333. </el-form-item>
  2334. </el-col>
  2335. </el-row>
  2336. <el-row>
  2337. <el-col :span="8">
  2338. <el-form-item label="故障描述:" required prop="fault_description">
  2339. <el-input
  2340. type="textarea"
  2341. :rows="2"
  2342. placeholder="请输入内容"
  2343. v-model="guaForm.fault_description"
  2344. style="width:86%;margin-left: 10%;">
  2345. </el-input>
  2346. </el-form-item>
  2347. </el-col>
  2348. <el-col :span="8">
  2349. <el-form-item label="原因分析:">
  2350. <el-input
  2351. type="textarea"
  2352. :rows="2"
  2353. placeholder="请输入内容"
  2354. v-model="guaForm.cause_analysis"
  2355. style="width:86%;margin-left: 10%;">
  2356. </el-input>
  2357. </el-form-item>
  2358. </el-col>
  2359. <el-col :span="8">
  2360. <el-form-item label="处理过程:">
  2361. <el-input
  2362. type="textarea"
  2363. :rows="2"
  2364. placeholder="请输入内容"
  2365. v-model="guaForm.treatment_process"
  2366. style="width:86%;margin-left: 10%;">
  2367. </el-input>
  2368. </el-form-item>
  2369. </el-col>
  2370. </el-row>
  2371. <el-row>
  2372. <el-col :span="24">
  2373. <el-form-item label="上传图片:">
  2374. <el-upload
  2375. :data="uploadFileData"
  2376. action="https://upload.qiniup.com"
  2377. :on-success="handleSuccess"
  2378. :before-upload="beforeUploadFile"
  2379. :limit="1"
  2380. ref='upload'
  2381. accept=".jpg,.png,.gif"
  2382. >
  2383. <el-button size="small" type="primary">上传图片</el-button>
  2384. </el-upload>
  2385. <a class="el-upload-list__item-name" v-show="classShow">
  2386. <i style="color:#0000EE"><a :href="guaForm.images" target="_blank">{{filename}}</a><span @click="hiddenShow"><li class="el-icon-circle-close"></li></span></i>
  2387. </a>
  2388. </el-form-item>
  2389. </el-col>
  2390. </el-row>
  2391. <el-row>
  2392. <el-col :span="20">
  2393. <el-form-item label="故障是否排除:">
  2394. <el-radio-group v-model="guaForm.exclude">
  2395. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in breakDown" :key="index">{{gender.name}}</el-radio>
  2396. </el-radio-group>
  2397. </el-form-item>
  2398. </el-col>
  2399. </el-row>
  2400. <el-row>
  2401. <el-col :span="20">
  2402. <el-form-item label="原因:">
  2403. <el-input
  2404. type="textarea"
  2405. :rows="2"
  2406. placeholder="请输入内容"
  2407. v-model="guaForm.reason"
  2408. style="width:300px">
  2409. </el-input>
  2410. </el-form-item>
  2411. </el-col>
  2412. </el-row>
  2413. <el-row>
  2414. <div class="clearn">
  2415. <el-col :span="4">
  2416. <el-button>取消</el-button>
  2417. </el-col>
  2418. <el-col :span="4">
  2419. <el-button type="primary" @click="SaveRepair('guaForm')">保存</el-button>
  2420. </el-col>
  2421. </div>
  2422. </el-row>
  2423. </el-form>
  2424. </el-tab-pane>
  2425. <el-tab-pane label="维修维护列表" name="second">
  2426. <repair-form ref="child"></repair-form>
  2427. </el-tab-pane>
  2428. </el-tabs>
  2429. </el-tab-pane>
  2430. </el-tabs>
  2431. </div>
  2432. <!-- <el-autocomplete
  2433. popper-class="my-autocomplete"
  2434. v-model="state"
  2435. :fetch-suggestions="querySearch"
  2436. placeholder="请输入内容"
  2437. @select="handleSelect"
  2438. >
  2439. <i
  2440. class="el-icon-edit el-input__icon"
  2441. slot="suffix"
  2442. @click="handleIconClick">
  2443. </i>
  2444. <template slot-scope="{ item }">
  2445. <div class="name">{{ item.value }}</div>
  2446. <span class="addr">{{ item.address }}</span>
  2447. </template>
  2448. </el-autocomplete> -->
  2449. </el-main>
  2450. </el-container>
  2451. <!-- </el-container>
  2452. </el-container> -->
  2453. <!-- 新增计划 -->
  2454. <plan-form ref="planForm" :equimentid="equimentid" v-on:getAllPlan="getAllPlan" v-on:getAllPlanDetail="getAllPlanDetail" @func="getPlanData"></plan-form>
  2455. <!-- <edit-machine-form ref="editmachineform" :planid="planid" ></edit-machine-form> -->
  2456. <!-- 综合查询 -->
  2457. <multiple-form ref="multipleform" :equimentid="equimentid"></multiple-form>
  2458. <!-- 使用登记提醒配置 -->
  2459. <remander-form ref="remanderform"> </remander-form>
  2460. <!-- 编辑消毒计划 -->
  2461. <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="50%" center>
  2462. <el-form :model="machineform" ref="machineform" :rules="planRules">
  2463. <el-row>
  2464. <el-col :span="10">
  2465. <el-form-item label="设备型号:" required prop = "device_type">
  2466. <el-select style="width:135px" v-model="machineform.device_type">
  2467. <el-option
  2468. v-for="item in this.DeviceType"
  2469. :key="item.id"
  2470. :label="item.device_mode"
  2471. :value="item.id"
  2472. ></el-option>
  2473. </el-select>
  2474. </el-form-item>
  2475. </el-col>
  2476. <el-col :span="10">
  2477. <el-form-item label="消毒时长:" required prop="disinfec_time">
  2478. <el-input style="width:135px" v-model="machineform.disinfec_time"></el-input>
  2479. <span>分钟</span>
  2480. </el-form-item>
  2481. </el-col>
  2482. </el-row>
  2483. <el-row>
  2484. <el-col :span="10">
  2485. <el-form-item label="时间:" required prop="time">
  2486. <el-select
  2487. v-model="machineform.time"
  2488. placeholder="请选择时间"
  2489. style="width: 140px;"
  2490. >
  2491. <el-option
  2492. v-for="item in this.timeType"
  2493. :key="item.id"
  2494. :label="item.name"
  2495. :value="item.id"
  2496. ></el-option>
  2497. </el-select>
  2498. </el-form-item>
  2499. </el-col>
  2500. <el-col :span="10">
  2501. <el-form-item label="班次:" required prop="class_time">
  2502. <el-select
  2503. v-model="machineform.class_time"
  2504. placeholder="请选择时间"
  2505. style="width: 140px;"
  2506. >
  2507. <el-option
  2508. v-for="item in this.classType"
  2509. :key="item.id"
  2510. :label="item.name"
  2511. :value="item.id"
  2512. ></el-option>
  2513. </el-select>
  2514. </el-form-item>
  2515. </el-col>
  2516. </el-row>
  2517. <el-row>
  2518. <el-col :span="10">
  2519. <el-form-item label="机表消毒方式:">
  2520. <el-select style="width:135px" v-model="machineform.way">
  2521. <el-option
  2522. v-for="item in this.disinfectType"
  2523. :key="item.id"
  2524. :label="item.name"
  2525. :value="item.id"
  2526. ></el-option>
  2527. </el-select>
  2528. </el-form-item>
  2529. </el-col>
  2530. <el-col :span="10">
  2531. <el-form-item label="机表消毒液:">
  2532. <el-select
  2533. style="width:135px"
  2534. v-model="machineform.machine_disinfectant"
  2535. >
  2536. <el-option
  2537. v-for="item in this.disinfectantType"
  2538. :key="item.id"
  2539. :label="item.name"
  2540. :value="item.id"
  2541. ></el-option>
  2542. </el-select>
  2543. </el-form-item>
  2544. </el-col>
  2545. </el-row>
  2546. <el-row>
  2547. <el-col :span="10">
  2548. <el-form-item label="液路消毒方式:">
  2549. <el-select style="width:135px" v-model="machineform.disinfectant_way">
  2550. <el-option
  2551. v-for="item in this.sterilizeType"
  2552. :key="item.id"
  2553. :label="item.name"
  2554. :value="item.id"
  2555. ></el-option>
  2556. </el-select>
  2557. </el-form-item>
  2558. </el-col>
  2559. <el-col :span="10">
  2560. <el-form-item label="液路消毒液:">
  2561. <el-select style="width:135px" v-model="machineform.disinfectant">
  2562. <el-option
  2563. v-for="item in this.fluidPathType"
  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-row>
  2572. </el-form>
  2573. <span slot="footer" class="dialog-footer">
  2574. <el-button @click="dialogVisible = false">取 消</el-button>
  2575. <el-button type="primary" @click="UpdatePlanInfo('machineform')">保存</el-button>
  2576. </span>
  2577. </el-dialog>
  2578. </div>
  2579. </div>
  2580. </template>
  2581. <script>
  2582. import BreadCrumb from '../components/bread-crumb'
  2583. import { getAllSubregion, getAllMachine, getMachineDetailById,
  2584. UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
  2585. getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
  2586. ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getTimeBeteen, getAllpatient, UpdateMachineInfoTwo, getPatientDetail,
  2587. openDelete, getAllMode, selectChange, selectBed,GetUserTotalCount } from '@/api/manage'
  2588. import { uParseTime } from '@/utils/tools'
  2589. import { getToken } from '@/api/qiniu'
  2590. import PlanForm from './components/PlanForm'
  2591. import EditMachineForm from './components/EditMachineForm'
  2592. import MultipleForm from './components/MultipleForm'
  2593. import UserForm from './components/UserForm'
  2594. import QualityForm from './components/QualityForm'
  2595. import RepairForm from './components/RepairForm'
  2596. import RemanderForm from './components/RemanderForm'
  2597. import WaterForm from './components/WaterForm'
  2598. import WaterFormList from './components/WaterFormList.vue'
  2599. import { parseTime } from '@/utils'
  2600. import { getFileExtension } from '@/utils/tools'
  2601. import { PostSearch } from '@/api/patient'
  2602. import {saveOxygenates,saveHardWater,saveWater,saveDevicePH} from '@/api/device'
  2603. const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD', 'HFHD+HP', 'PHF', 'HFR', 'HDF+HP', 'CRRT', '腹水回输']
  2604. const moment = require('moment')
  2605. export default {
  2606. name: 'home',
  2607. components: {
  2608. BreadCrumb,
  2609. PlanForm,
  2610. EditMachineForm,
  2611. MultipleForm,
  2612. UserForm,
  2613. QualityForm,
  2614. RepairForm,
  2615. RemanderForm,
  2616. WaterForm,
  2617. WaterFormList
  2618. },
  2619. data() {
  2620. return {
  2621. crumbs: [
  2622. { path: false, name: '设备管理详情页' }
  2623. ],
  2624. tableData: [],
  2625. tableDatatwo: [],
  2626. planData: [],
  2627. DeviceTypeType: [
  2628. { id: 0, name: '全部' },
  2629. { id: 1, name: '透析机' },
  2630. { id: 2, name: '水处理机' },
  2631. { id: 3, name: '其他' }
  2632. ],
  2633. bedNumber: [],
  2634. zoneNumber: [],
  2635. Number: [],
  2636. form: {
  2637. id: '',
  2638. serial_number: '',
  2639. devicetype: '',
  2640. bed_number: '',
  2641. device_name: '',
  2642. manufacture_factory: '',
  2643. service_manufacturer: '',
  2644. unit_type: '',
  2645. use_section: '',
  2646. section_number: '',
  2647. buy_date: '',
  2648. install_date: '',
  2649. start_date: '',
  2650. maintenance_engineer: '',
  2651. telephone: '',
  2652. guarantee_date: '',
  2653. machine_status: '',
  2654. user_total: '',
  2655. remarks: '',
  2656. rubbish_date: '',
  2657. rubbish_reason: '',
  2658. user_year: '',
  2659. work_time: '',
  2660. treat_mode: [],
  2661. treat_type: [],
  2662. bed: '', // 治疗模式
  2663. Disinfection_mode: '',
  2664. revers_mode: '',
  2665. beds: '',
  2666. bed_numbers: ''
  2667. },
  2668. activeName: 'first',
  2669. activeNameTwo: 'first',
  2670. activeNameThree: 'first',
  2671. activeNameSix: 'first',
  2672. activeNameFive: 'first',
  2673. machineStatus: [
  2674. { id: 1, name: '使用机' },
  2675. { id: 2, name: '备用机' },
  2676. { id: 3, name: '急诊机' },
  2677. { id: 4, name: '报废机' }
  2678. ],
  2679. DisCardResion: [
  2680. { id: 0, name: '请选择' },
  2681. { id: 1, name: '超期限报废' },
  2682. { id: 2, name: '故障报废' },
  2683. { id: 3, name: '核定报废' }
  2684. ],
  2685. DeviceTypes: [
  2686. { id: 1, name: '透析机' },
  2687. { id: 2, name: '水处理机' },
  2688. { id: 3, name: '其他' }
  2689. ],
  2690. Classes: [
  2691. { id: 0, name: '全部' },
  2692. { id: 1, name: '上午' },
  2693. { id: 2, name: '下午' },
  2694. { id: 3, name: '晚上' }
  2695. ],
  2696. names: [
  2697. { id: 0, name: '请选择' },
  2698. { id: 1, name: '20%柠檬酸' },
  2699. { id: 2, name: '50%柠檬酸' },
  2700. { id: 3, name: '次氯酸钠' }
  2701. ],
  2702. germs: [
  2703. { id: 0, name: '请选择' },
  2704. { id: 1, name: '费森细菌过滤器' },
  2705. { id: 2, name: '日机装细菌过滤器' },
  2706. { id: 3, name: '贝朗机细菌过滤器' },
  2707. { id: 4, name: '东丽机细菌过滤器' }
  2708. ],
  2709. DisinfectionMode: [
  2710. { id: 0, name: '请选择' },
  2711. { id: 1, name: '化学消毒' },
  2712. { id: 2, name: '热消毒' },
  2713. { id: 3, name: '化学消毒+热消毒' }
  2714. ],
  2715. autograph: [],
  2716. bedZone: [],
  2717. bedZoneTwo: [],
  2718. forms: {
  2719. zone_id: 0, // 分区号
  2720. class_id: '', // 班次
  2721. device_type: 0, // 设备类型
  2722. date: ''
  2723. },
  2724. currentRow: null,
  2725. cancelShow: false,
  2726. confirmShow: false,
  2727. isIndeterminate: true,
  2728. checkAll: false,
  2729. cities: cityOptions,
  2730. rules: {
  2731. serial_number: [{ required: true, message: '请填写序列号' }],
  2732. device_name: [{ required: true, message: '请填写序列号' }],
  2733. devicetype: [{ required: true, message: '请填写设备类型' }],
  2734. unit_type: [{ required: true, message: '请填写设备型号' }],
  2735. },
  2736. qualitRules: {
  2737. detection_unit: [{ required: true, message: '请填写检测单位' }],
  2738. sampler: [{ required: true, message: '请填写取样者' }],
  2739. sort: [{required:true,message:"请填写顺序号"}],
  2740. pass_examination:[{required:true,message:"请选择检测合格"}],
  2741. modifications:[{required:true,message:"请选择修改标志"}],
  2742. reporting_date:[{required:true,message:"请填写出报告日期"}]
  2743. },
  2744. diaRules: {
  2745. detection_unit: [{ required: true, message: '请填写检测单位' }],
  2746. samplerb: [{ required: true, message: '请填写取样者' }],
  2747. sort: [{required:true,message:"请填写顺序号"}],
  2748. pass_examination:[{required:true,message:"请选择检测合格"}],
  2749. modifications:[{required:true,message:"请选择修改标志"}],
  2750. reporting_dateb:[{required:true,message:"请填写出报告日期"}],
  2751. },
  2752. repirRules: {
  2753. guarantee_date: [{ required: true, message: '请填写保修日期' }],
  2754. fault_description: [{ required: true, message: '请填写故障描述' }]
  2755. },
  2756. ruleThree: {
  2757. detection_unit: [{ required: true, message: '请填写检测单位' }],
  2758. samplerc: [{ required: true, message: '请填写取样者' }],
  2759. sort: [{required:true,message:"请填写顺序号"}],
  2760. pass_examination:[{required:true,message:"请选择检测合格"}],
  2761. modifications:[{required:true,message:"请选择修改标志"}],
  2762. date_reportc:[{required:true,message:"请填写出报告日期"}]
  2763. },
  2764. userRules: {
  2765. date: [{ required: true, message: '请填写日期' }],
  2766. zone: [{ required: true, message: '请填写分区' }],
  2767. bed_number: [{ required: true, message: '请填写机位号' }],
  2768. patient_name: [{ required: true, message: '请填写患者', trigger: ['blur', 'change'] }],
  2769. disinfect_type: [{ required: true, message: '请填写消毒方式' }],
  2770. disinfectant_type: [{ required: true, message: '请填写消毒液' }],
  2771. disinfection: [{ required: true, message: '请填写消毒状态' }],
  2772. fluid_path: [{ required: true, message: '请填写消毒方式' }],
  2773. disinfectant: [{ required: true, message: '请填写消毒液' }],
  2774. disinfection_status: [{ required: true, message: '消毒状态' }],
  2775. sign_name: [{ required: true, message: '请填写签名', trigger: ['change'] }],
  2776. classtype: [{ required: true, message: '请填写班次' }],
  2777. reporting_date:[{required:true,message:"请填写出报告日期"}]
  2778. },
  2779. planRules: {
  2780. device_type: [{ required: true, message: '请输入设备型号' }],
  2781. disinfec_time: [{ required: true, message: '请输入消毒时长' }],
  2782. time: [{ required: true, message: '请输入时间' }],
  2783. class_time: [{ required: true, message: '请输入班次' }]
  2784. },
  2785. runOption: [
  2786. { id: 1, name: '正常' },
  2787. { id: 2, name: '故障' }
  2788. ],
  2789. runOptions: [
  2790. { id: 1, name: '达标' },
  2791. { id: 2, name: '未达标' }
  2792. ],
  2793. faultPhase: [
  2794. { id: 1, name: '开机启动' },
  2795. { id: 2, name: '自检' },
  2796. { id: 3, name: '准备' },
  2797. { id: 4, name: '治疗' },
  2798. { id: 5, name: '消毒' }
  2799. ],
  2800. Disinfectant: [
  2801. { id: 1, name: '有' },
  2802. { id: 2, name: '无' }
  2803. ],
  2804. potency: [
  2805. { id: 1, name: '达标' },
  2806. { id: 2, name: '未达标' }
  2807. ],
  2808. sampling: [],
  2809. DeviceType: [],
  2810. equimentid: 0,
  2811. checkAllStatus: false,
  2812. checkAllStatusOne: false,
  2813. selectMachines: [],
  2814. selectMachinesOne: [],
  2815. machineIndex: -1,
  2816. planid: 0,
  2817. machineform: {
  2818. id: '',
  2819. device_type: '',
  2820. disinfec_time: '',
  2821. time: '',
  2822. class_time: '',
  2823. way: '',
  2824. machine_disinfectant: '',
  2825. disinfectant_way: '',
  2826. disinfectant: ''
  2827. },
  2828. dialogVisible: false,
  2829. timeType: [
  2830. { id: 1, name: '周一' },
  2831. { id: 2, name: '周二' },
  2832. { id: 3, name: '周三' },
  2833. { id: 4, name: '周四' },
  2834. { id: 5, name: '周五' },
  2835. { id: 6, name: '周六' },
  2836. { id: 7, name: '周日' }
  2837. ],
  2838. classType: [
  2839. { id: 0, name: '请选择' },
  2840. { id: 1, name: '上午' },
  2841. { id: 2, name: '下午' },
  2842. { id: 3, name: '晚上' }
  2843. ],
  2844. // 基表消毒方式
  2845. disinfectType:
  2846. [
  2847. { id: 0, name: '/' },
  2848. { id: 1, name: '擦拭' },
  2849. { id: 2, name: '化学消毒' }
  2850. ],
  2851. // 基表消毒液
  2852. disinfectantType: [
  2853. { id: 0, name: '/' },
  2854. { id: 1, name: '0.22%季铵盐' },
  2855. { id: 2, name: '500mg/l含氯消毒剂' },
  2856. { id: 3, name: '1000mg/l含氯消毒剂' },
  2857. { id: 4, name: '1500mg/l含氯消毒剂' },
  2858. { id: 5, name: "消毒湿巾"}
  2859. ],
  2860. // 夜路消毒方式
  2861. sterilizeType: [
  2862. { id: 0, name: '/' },
  2863. { id: 1, name: '热化学消毒' },
  2864. { id: 2, name: '化学消毒 + 除钙' },
  2865. { id: 3, name: '热化学消毒 + 除钙' },
  2866. { id: 4, name: '热消毒' },
  2867. { id: 5, name: '化学消毒' },
  2868. { id: 6, name: '除钙' },
  2869. { id: 7, name: '清洗' }
  2870. ],
  2871. // 夜路消毒液
  2872. fluidPathType: [
  2873. { id: 0, name: '/' },
  2874. { id: 1, name: '20%柠檬酸' },
  2875. { id: 2, name: '25%柠檬酸' },
  2876. { id: 3, name: '50%柠檬酸' },
  2877. { id: 4, name: '50%柠檬酸 + 5%次氯酸钠' },
  2878. { id: 5, name: '20%柠檬酸 + 10%冰醋酸' },
  2879. { id: 6, name: '0.2%过氧化乙酸' },
  2880. { id: 7, name: '10%冰醋酸' },
  2881. { id: 8, name: '50%冰醋酸' },
  2882. { id: 9, name: '5%次氯酸钠' },
  2883. { id: 10,name:"25%的柠檬酸+5%次氯酸钠"},
  2884. ],
  2885. userform: {
  2886. id: 0,
  2887. date: moment(new Date()).format('YYYY-MM-DD'), // 日期
  2888. classtype: '', // 班次
  2889. zone: '', // 分区
  2890. bed_number: '', // 床位号
  2891. patient_name: '', // 患者
  2892. contagion: '', // 传染病
  2893. dialysis_mode: '', // 透析方式
  2894. start_time: '', // 上机时间
  2895. end_time: '', // 下机时间
  2896. dialysis_time: '', // 透析时长
  2897. hyperfiltratio: '', // 实际超滤量
  2898. weight_loss: '', // 体重减少
  2899. warning_value: '', // 预警值
  2900. user_total: '', // 使用次数
  2901. run: 1, // 运行
  2902. failure_stage: '', // 故事发生阶段
  2903. fault_description: '', // 故障描述
  2904. code_information: '', // 故障提示及代码
  2905. // 机器消毒
  2906. disinfect_type: 1, // 消毒方式
  2907. disinfectant_type: 2, // 消毒液
  2908. disinfection: 1, // 消毒状态
  2909. machine_run: 1, // 运行
  2910. // 液路
  2911. fluid_path: 3, // 消毒方式
  2912. disinfectant: 3, // 消毒液
  2913. disinfection_status: 1, // 消毒状态
  2914. disinfection_residue: 1, // 消毒液残留
  2915. longtime: '', // 消毒时长
  2916. starttime: '', // 开始消毒时间
  2917. endtime: '', // 结束消毒时间
  2918. dialysis_checked: '', // 更换
  2919. dialysis_name: '', // 名称
  2920. norms: '', // 规格
  2921. dialysis_concentration: 1, // 浓度
  2922. germ_checked: '', // 更换
  2923. germ_name: '', // 名称
  2924. germ_number: '', // 数量
  2925. clean: '', // 清洁
  2926. sign_name: '', // 签名
  2927. patient_id: ''
  2928. },
  2929. treatmentmodes: [
  2930. { id: 1, name: 'HD' },
  2931. { id: 2, name: 'HDF' },
  2932. { id: 3, name: 'HD+HP' },
  2933. { id: 4, name: 'HP' },
  2934. { id: 5, name: 'HF' },
  2935. { id: 6, name: 'SCUF' },
  2936. { id: 7, name: 'IUF' },
  2937. { id: 8, name: 'HFHD+HP' },
  2938. { id: 9, name: 'HFR' },
  2939. { id: 10, name: 'HDF+HP' },
  2940. { id: 11, name: 'GRRT' },
  2941. { id: 12, name: '腹水回输' }
  2942. ],
  2943. treatmode: [
  2944. { id: 0, name: '请选择' },
  2945. { id: 1, name: 'HD' },
  2946. { id: 2, name: 'HDF' },
  2947. { id: 3, name: 'HD + HP' },
  2948. { id: 4, name: 'HP' },
  2949. { id: 5, name: 'HF' },
  2950. { id: 6, name: 'SCUF' },
  2951. { id: 7, name: 'IUF' },
  2952. { id: 8, name: 'HFHD' },
  2953. { id: 9, name: 'HFHD+HP' },
  2954. { id: 10, name: 'PHF' },
  2955. { id: 11, name: 'HFR' },
  2956. { id: 12, name: 'HDF+HP' },
  2957. { id: 13, name: 'CRRT' },
  2958. { id: 14, name: '腹水回输' },
  2959. { id: 15, name: 'HD前置换' },
  2960. { id: 16, name: 'HD后置换' },
  2961. { id: 17, name: 'HDF前置换' },
  2962. { id: 18, name: 'HDF后置换' },
  2963. { id:19, name:"IUF+HD"},
  2964. { id:20, name:"UF"},
  2965. { id:21, name:"HD+"},
  2966. { id:22, name:"血浆胆红素吸附+HDF"},
  2967. { id:23, name:"血浆胆红素吸附"},
  2968. { id:24, name:"I-HDF"},
  2969. { id:25, name:"HD高通"},
  2970. { id:26, name:"CVVH"},
  2971. { id:27, name:"CVVHD"},
  2972. { id:28, name:"CVVHDF"},
  2973. { id:29, name:"PE"},
  2974. ],
  2975. disinfection: [
  2976. { id: 0, name: '请选择' },
  2977. { id: 1, name: '已消毒' },
  2978. { id: 2, name: '未消毒' },
  2979. { id: 3, name: '消毒未完成' }
  2980. ],
  2981. patientName: [],
  2982. start: '',
  2983. end: '',
  2984. // 细菌培养
  2985. qualityForm: {
  2986. date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  2987. specimen: '', // 取样标本
  2988. concentrate_noa: '', // 浓A
  2989. concentrate_nob: '', // 浓B,
  2990. sampling_locationa: '', // 采样部位
  2991. detection_unit: '', // 检测单位
  2992. sampler: '', // 取样者
  2993. reporting_date: '', // 报告日期
  2994. detection_result: '', // 检测结果
  2995. sort:'1', //顺序号
  2996. pass_examination:'1',//检验合格
  2997. modifications:'',//修改标志
  2998. },
  2999. qualityFormTwo: {
  3000. // 内毒素检测
  3001. detection_unit: '', // 检测单位
  3002. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3003. specimenb: '', // 取样标本
  3004. concentrate_noc: '', // A浓缩液批号
  3005. concentrateb_nod: '', // B浓
  3006. sampling_locationb: '', // 采样部位
  3007. samplerb: '', // 取样者
  3008. reporting_dateb: '', // 出报告日期
  3009. detection_resultb: '', // 检测结果
  3010. sort:'1', //顺序号
  3011. pass_examination:'1',//检验合格
  3012. modifications:'',//修改标志
  3013. },
  3014. qualityFormThree: {
  3015. detection_unit: '', // 检测单位
  3016. // 透析液离子浓度检测
  3017. dateb: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3018. samplerc: '', // 取样者
  3019. concentrate_nof: '', // A浓
  3020. concentrate_nog: '', // B浓
  3021. date_reportc: '', // 出报告日期
  3022. actual_na: '',
  3023. actual_pna: '',
  3024. actual_k: '',
  3025. actual_ca: '',
  3026. actual_ci: '',
  3027. actual_hco: '',
  3028. actual_mg: '',
  3029. actual_ph: '',
  3030. remakes: '',
  3031. sort:'1', //顺序号
  3032. pass_examination:'1',//检验合格
  3033. modifications:'',//修改标志
  3034. },
  3035. qualityFormFour: {
  3036. // 内毒素检测
  3037. detection_unit: '', // 检测单位
  3038. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3039. specimenb: '', // 取样标本
  3040. concentrate_noc: '', // A浓缩液批号
  3041. concentrateb_nod: '', // B浓
  3042. sampling_locationb: '', // 采样部位
  3043. samplerb: '', // 取样者
  3044. reporting_dateb: '', // 出报告日期
  3045. detection_resultb: '', // 检测结果
  3046. sort:'1', //顺序号
  3047. pass_examination:'1',//检验合格
  3048. modifications:'',//修改标志
  3049. },
  3050. qualityFormFive: {
  3051. // 内毒素检测
  3052. detection_unit: '', // 检测单位
  3053. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3054. specimenb: '', // 取样标本
  3055. concentrate_noc: '', // A浓缩液批号
  3056. concentrateb_nod: '', // B浓
  3057. sampling_locationb: '', // 采样部位
  3058. samplerb: '', // 取样者
  3059. reporting_dateb: '', // 出报告日期
  3060. detection_resultb: '', // 检测结果
  3061. sort:'1', //顺序号
  3062. pass_examination:'1',//检验合格
  3063. modifications:'',//修改标志
  3064. },
  3065. qualityFormSix: {
  3066. // 内毒素检测
  3067. detection_unit: '', // 检测单位
  3068. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3069. specimenb: '', // 取样标本
  3070. concentrate_noc: '', // A浓缩液批号
  3071. concentrateb_nod: '', // B浓
  3072. sampling_locationb: '', // 采样部位
  3073. samplerb: '', // 取样者
  3074. reporting_dateb: '', // 出报告日期
  3075. detection_resultb: '', // 检测结果
  3076. sort:'1', //顺序号
  3077. pass_examination:'1',//检验合格
  3078. modifications:'',//修改标志
  3079. },
  3080. qualityFormSeven: {
  3081. // 内毒素检测
  3082. detection_unit: '', // 检测单位
  3083. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  3084. specimenb: '', // 取样标本
  3085. concentrate_noc: '', // A浓缩液批号
  3086. concentrateb_nod: '', // B浓
  3087. sampling_locationb: '', // 采样部位
  3088. samplerb: '', // 取样者
  3089. reporting_dateb: '', // 出报告日期
  3090. detection_resultb: '', // 检测结果
  3091. sort:'1', //顺序号
  3092. pass_examination:'1',//检验合格
  3093. modifications:'',//修改标志
  3094. },
  3095. disable: false,
  3096. diableTwo: false,
  3097. samplingSpecimen: [
  3098. { id: 0, name: '请选择' },
  3099. { id: 1, name: '透析液' },
  3100. { id: 2, name: 'A浓缩液' },
  3101. { id: 3, name: 'B浓缩液' },
  3102. { id: 4, name: '置换液' },
  3103. { id: 5, name: '透析用水' }
  3104. ],
  3105. samplingLocation: [
  3106. { id: 0, name: '请选择' },
  3107. { id: 1, name: '透析液入口' },
  3108. { id: 2, name: '透析液取样口' },
  3109. { id: 3, name: '置换液出口' },
  3110. { id: 4, name: '透析机反渗水入口' },
  3111. { id: 5, name:'反渗水末端取样口'}
  3112. ],
  3113. breakDown: [
  3114. { id: 1, name: '是' },
  3115. { id: 2, name: '待观察' },
  3116. { id: 3, name: '未解决' }
  3117. ],
  3118. guaForm: {
  3119. guarantee_date: moment(new Date()).format('YYYY-MM-DD'),
  3120. start_time: '',
  3121. arrive_time: '',
  3122. finish_time: '',
  3123. total_distance: '',
  3124. failure_stage: '',
  3125. fault_description: '',
  3126. cause_analysis: '',
  3127. treatment_process: '',
  3128. images: '',
  3129. exclude: '',
  3130. reason: '',
  3131. code_information: '',
  3132. imageName: ''
  3133. },
  3134. filename: '',
  3135. qiniuDomain: 'https://images.shengws.com/',
  3136. uploadFileData: { token: '', key: '' },
  3137. tShow: false,
  3138. sShow: false,
  3139. qShow: false,
  3140. readisable: true,
  3141. fileList: [],
  3142. DisShow: true,
  3143. DioShow: false,
  3144. zhiShow: true,
  3145. zhShow: false,
  3146. UserShow: true,
  3147. Ushow: false,
  3148. restaurants: [],
  3149. state: '',
  3150. userdata: 0,
  3151. disableThree: true,
  3152. disableFour: true,
  3153. disableFive: true,
  3154. runDisable: true,
  3155. warnShow: false,
  3156. warnShowTwo: false,
  3157. warnShowThree: false,
  3158. bedZoneThree: [],
  3159. bedNumberTwo: [],
  3160. reverseMode: [
  3161. { id: 0, name: '请选择' },
  3162. { id: 1, name: '单级反渗' },
  3163. { id: 2, name: '双级反渗' }
  3164. ],
  3165. tabIndex: '',
  3166. deviceMode: [],
  3167. zoneDisabled: false,
  3168. bedid: '',
  3169. unitType: '',
  3170. classShow: false,
  3171. modifications:[
  3172. {id:1,name:"正常"},
  3173. {id:2,name:"撤销"}
  3174. ],
  3175. device_type:""
  3176. }
  3177. },
  3178. methods: {
  3179. changeRun(val) {
  3180. if (val === 1) {
  3181. this.runDisable = true
  3182. this.userform.failure_stage = ''
  3183. }
  3184. if (val === 2) {
  3185. this.runDisable = false
  3186. }
  3187. },
  3188. handleClick(tab, event) {
  3189. // console.log(tab, event)
  3190. },
  3191. handleExceed(file) {
  3192. // console.log(file)
  3193. },
  3194. handleRemove(file, fileList) {
  3195. },
  3196. beforeRemove(file, fileList) {
  3197. // console.log(file, fileList)
  3198. },
  3199. handlePreview(file) {
  3200. // console.log(file)
  3201. },
  3202. changetreatmentmode(val) {
  3203. const checkedCount = val.length
  3204. this.checkAll = checkedCount === this.treatmentmode.length
  3205. this.isIndeterminate = checkedCount > 0 && checkedCount < this.treatmentmode.length
  3206. },
  3207. handleCheckAllChange(val) {
  3208. this.form.treat_mode = val ? cityOptions : []
  3209. this.isIndeterminate = false
  3210. },
  3211. handleCheckedCitiesChange(value) {
  3212. const checkedCount = value.length
  3213. this.checkAll = checkedCount === this.cities.length
  3214. this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length
  3215. },
  3216. // 获取所有分区
  3217. getAllSubregion() {
  3218. getAllSubregion().then(response => {
  3219. var zones = response.data.data.zones
  3220. this.deviceType = zones
  3221. var numbers = response.data.data.numbers
  3222. var zone = [{ id: 0, name: '全部' }]
  3223. for (let i = 0; i < zones.length; i++) {
  3224. const item = zones[i]
  3225. zone.push({ id: item.id, name: item.name })
  3226. }
  3227. var devicenumber = response.data.data.devicenumber
  3228. this.bedZone = zone
  3229. var zoness = [{ id: 0, name: '请选择' }]
  3230. for (let i = 0; i < zones.length; i++) {
  3231. const item = zones[i]
  3232. zoness.push({ id: item.id, name: item.name })
  3233. }
  3234. var bed = [{ id: 0, number: '请选择' }]
  3235. for (let i = 0; i < numbers.length; i++) {
  3236. const item = numbers[i]
  3237. bed.push({ id: item.id, number: item.number })
  3238. }
  3239. this.bedNumberTwo = bed
  3240. this.bedZoneTwo = zones
  3241. this.bedZoneThree = zoness
  3242. this.bedNumber = numbers
  3243. })
  3244. },
  3245. changeBedNumber(val) {
  3246. this.forms.zone_id = val
  3247. this.getAllMachine()
  3248. },
  3249. changeClassId(val) {
  3250. this.forms.class_id = val
  3251. this.getAllMachine()
  3252. },
  3253. changeDeviceId(val) {
  3254. if (val === 1) {
  3255. this.zoneDisabled = false
  3256. } else {
  3257. this.zoneDisabled = true
  3258. }
  3259. this.forms.device_type = val
  3260. this.getAllMachine()
  3261. },
  3262. getAllMachine() {
  3263. getAllMachine(this.forms.zone_id, this.forms.device_type).then(response => {
  3264. if (response.data.state === 1) {
  3265. var addmahcer = response.data.data.addmahcer
  3266. for(let j=0;j<addmahcer.length;j++){
  3267. if(addmahcer[j].device_type == 1){
  3268. addmahcer[j].bed_number = addmahcer[j].number
  3269. }
  3270. if(addmahcer[j].device_type == 2){
  3271. addmahcer[j].bed_number = addmahcer[j].bed_number
  3272. }
  3273. if(addmahcer[j].device_type == 3){
  3274. addmahcer[j].bed_number = addmahcer[j].bed_number
  3275. }
  3276. }
  3277. this.tableDatatwo = addmahcer
  3278. this.tabIndex = this.$route.query.index
  3279. var id = this.$route.query.id
  3280. for (let i = 0; i < this.tableDatatwo.length; i++) {
  3281. if (this.tableDatatwo[i].id == id) {
  3282. this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
  3283. break
  3284. }
  3285. }
  3286. }
  3287. })
  3288. },
  3289. handleIndex(index) {
  3290. this.tabIndex = index
  3291. },
  3292. handleCurrentChange(val) {
  3293. console.log("val232323232323------",val)
  3294. // 通过设备型号区分质量控制
  3295. this.device_type = val.device_type
  3296. this.unitType = val.unit_type
  3297. this.currentRow = val
  3298. this.$forceUpdate()
  3299. this.getMachineDetailById(val.id)
  3300. this.equimentid = val.id
  3301. this.userdata = val.id
  3302. this.getAllPlanDetail(val.unit_type)
  3303. this.getPatientInfo(val.id)
  3304. // 获取基本信息
  3305. this.getUserRegister(val.id)
  3306. // 病人下机后插入数据
  3307. this.getAutoData(val.id)
  3308. this.GetUserTotalCount(val.bed_id)
  3309. this.getTimeBeteen(val.id)
  3310. this.getData(val.bed_id)
  3311. },
  3312. getAutoData(id) {
  3313. getAutoData(id).then(response => {
  3314. if (response.data.state === 1) {
  3315. var dialysis = response.data.data.dialysis
  3316. }
  3317. })
  3318. },
  3319. getMachineDetailById(id) {
  3320. getMachineDetailById(id).then(response => {
  3321. if (response.data.state === 1) {
  3322. var addmacher = response.data.data.addmacher
  3323. var warning = response.data.data.warning
  3324. var time = this.getTimestamp(this.userform.date) - warning.stime
  3325. var germ = response.data.data.germ
  3326. var timetwo = this.getTimestamp(this.userform.date) - germ.stime
  3327. var clean = response.data.data.clean
  3328. var timethree = this.getTimestamp(this.userform.date) - clean.stime
  3329. var number = response.data.data.number
  3330. this.Number = number
  3331. if (addmacher.device_type === 1) {
  3332. this.sShow = false
  3333. this.qShow = false
  3334. this.tShow = true
  3335. this.DisShow = true
  3336. this.DioShow = false
  3337. this.zhiShow = true
  3338. this.zhShow = false
  3339. this.UserShow = true
  3340. this.Ushow = false
  3341. }
  3342. if (addmacher.device_type === 2) {
  3343. this.tShow = false
  3344. this.qShow = false
  3345. this.sShow = true
  3346. this.DisShow = false
  3347. this.DioShow = true
  3348. this.zhiShow = true
  3349. this.zhShow = false
  3350. this.UserShow = true
  3351. this.Ushow = false
  3352. }
  3353. if (addmacher.device_type === 3) {
  3354. this.tShow = false
  3355. this.sShow = false
  3356. this.qShow = true
  3357. this.DisShow = false
  3358. this.DioShow = true
  3359. this.zhiShow = false
  3360. this.zhShow = true
  3361. this.UserShow = false
  3362. this.Ushow = true
  3363. }
  3364. var mode = response.data.data.mode
  3365. var zone = response.data.data.zone
  3366. const arr1 = []
  3367. for (let index = 0; index < mode.length; index++) {
  3368. if (mode[index].treate_mode === 1) {
  3369. mode[index] = 'HD'
  3370. }
  3371. if (mode[index].treate_mode === 2) {
  3372. mode[index] = 'HDF'
  3373. }
  3374. if (mode[index].treate_mode === 3) {
  3375. mode[index] = 'HD+HP'
  3376. }
  3377. if (mode[index].treate_mode === 4) {
  3378. mode[index] = 'HP'
  3379. }
  3380. if (mode[index].treate_mode === 5) {
  3381. mode[index] = 'HF'
  3382. }
  3383. if (mode[index].treate_mode === 6) {
  3384. mode[index] = 'SCUF'
  3385. }
  3386. if (mode[index].treate_mode === 7) {
  3387. mode[index] = 'IUF'
  3388. }
  3389. if (mode[index].treate_mode === 8) {
  3390. mode[index] = 'HFHD'
  3391. }
  3392. if (mode[index].treate_mode === 9) {
  3393. mode[index] = 'HFHD+HP'
  3394. }
  3395. if (mode[index].treate_mode === 10) {
  3396. mode[index] = 'PHF'
  3397. }
  3398. if (mode[index].treate_mode === 11) {
  3399. mode[index] = 'HFR'
  3400. }
  3401. if (mode[index].treate_mode === 12) {
  3402. mode[index] = 'HDF+HP'
  3403. }
  3404. if (mode[index].treate_mode === 13) {
  3405. mode[index] = 'CRRT'
  3406. }
  3407. if (mode[index].treate_mode === 14) {
  3408. mode[index] = '腹水回输'
  3409. }
  3410. arr1.push(mode[index])
  3411. }
  3412. this.form.treat_mode = arr1
  3413. this.form.id = addmacher.id
  3414. this.form.serial_number = addmacher.serial_number
  3415. this.form.devicetype = addmacher.device_type
  3416. this.form.bed_number = addmacher.bed_id
  3417. this.form.bed_numbers = addmacher.bed_number
  3418. this.form.beds = addmacher.bed_number
  3419. this.form.device_name = addmacher.device_name
  3420. this.form.manufacture_factory = addmacher.manufacture_factory
  3421. this.form.service_manufacturer = addmacher.service_manufacturer
  3422. // this.form.unit_type = addmacher.unit_type
  3423. this.form.unit_type = parseInt(addmacher.device_mode)
  3424. this.form.use_section = addmacher.use_section
  3425. this.form.section_number = addmacher.section_number
  3426. if (addmacher.buy_date !== 0) {
  3427. this.form.buy_date = uParseTime(addmacher.buy_date, '{y}-{m}-{d}')
  3428. }
  3429. if (addmacher.install_date !== 0) {
  3430. this.form.install_date = uParseTime(addmacher.install_date, '{y}-{m}-{d}')
  3431. }
  3432. if (addmacher.start_date !== 0) {
  3433. this.form.start_date = uParseTime(addmacher.start_date, '{y}-{m}-{d}')
  3434. }
  3435. this.form.maintenance_engineer = addmacher.maintenace_engineer
  3436. this.form.telephone = addmacher.telephone
  3437. this.form.guarantee_date = addmacher.guarantee_date
  3438. this.form.machine_status = addmacher.machine_status
  3439. this.form.user_total = addmacher.user_total
  3440. this.form.remarks = addmacher.remarks
  3441. if (addmacher.rubbish_date !== 0) {
  3442. this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
  3443. }
  3444. this.form.rubbish_reason = addmacher.rubbish_reason
  3445. this.form.user_year = addmacher.user_year
  3446. this.form.work_time = addmacher.work_time
  3447. // eslint-disable-next-line eqeqeq
  3448. if (addmacher.disinfection_mode == 0) {
  3449. this.form.Disinfection_mode = 0
  3450. } else {
  3451. this.form.Disinfection_mode = addmacher.disinfection_mode
  3452. }
  3453. // eslint-disable-next-line eqeqeq
  3454. if (addmacher.revers_mode == 0) {
  3455. this.form.revers_mode = 0
  3456. } else {
  3457. this.form.revers_mode = addmacher.revers_mode
  3458. }
  3459. this.getAllSubregion()
  3460. }
  3461. })
  3462. },
  3463. UpdateMachine() {
  3464. this.cancelShow = true
  3465. this.confirmShow = true
  3466. this.disableThree = false
  3467. this.disableFour = false
  3468. this.disableFive = false
  3469. },
  3470. UpdateMachineInfo(formName) {
  3471. const arr2 = []
  3472. this.form.treat_mode.map((item, index) => {
  3473. const obj = {}
  3474. if (item === 'HD') {
  3475. obj.id = 1
  3476. }
  3477. if (item === 'HDF') {
  3478. obj.id = 2
  3479. }
  3480. if (item === 'HD+HP') {
  3481. obj.id = 3
  3482. }
  3483. if (item === 'HP') {
  3484. obj.id = 4
  3485. }
  3486. if (item === 'HF') {
  3487. obj.id = 5
  3488. }
  3489. if (item === 'SCUF') {
  3490. obj.id = 6
  3491. }
  3492. if (item === 'IUF') {
  3493. obj.id = 7
  3494. }
  3495. if (item === 'HFHD') {
  3496. obj.id = 8
  3497. }
  3498. if (item === 'HFHD+HP') {
  3499. obj.id = 9
  3500. }
  3501. if (item === 'PHF') {
  3502. obj.id = 10
  3503. }
  3504. if (item === 'HFR') {
  3505. obj.id = 11
  3506. }
  3507. if (item === 'HDF+HP') {
  3508. obj.id = 12
  3509. }
  3510. if (item === 'CRRT') {
  3511. obj.id = 13
  3512. }
  3513. if (item === '腹水回输') {
  3514. obj.id = 14
  3515. }
  3516. arr2.push(obj.id)
  3517. })
  3518. this.form.treat_type = arr2
  3519. var device_type = this.form.devicetype
  3520. var device_types = parseInt(device_type)
  3521. this.form.devicetype = device_types
  3522. if (this.form.rubbish_reason === '') {
  3523. this.form.rubbish_reason = 0
  3524. }
  3525. var rubbish_reason = this.form.rubbish_reason
  3526. var rubbish_reasons = parseInt(rubbish_reason)
  3527. this.form.rubbish_reason = rubbish_reasons
  3528. var machine_status = this.form.machine_status
  3529. var machine_statuss = parseInt(machine_status)
  3530. this.form.machine_status = machine_statuss
  3531. // if (this.form.bed_number === '') {
  3532. // this.form.bed_number = 0
  3533. // }
  3534. var bed_numbers = this.form.bed_number
  3535. var bed_numberss = parseInt(bed_numbers)
  3536. this.form.bed_number = bed_numberss
  3537. this.$refs[formName].validate(valid => {
  3538. UpdateMachineInfo(this.form).then(response => {
  3539. if (response.data.state === 1) {
  3540. var addmacher = response.data.data.addmacher
  3541. this.$message.success('修改成功')
  3542. for (let i = 0; i < this.tableDatatwo.length; i++) {
  3543. if (this.tableDatatwo[i].id == addmacher.id) {
  3544. for (let j = 0; j < this.deviceMode.length; j++) {
  3545. if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
  3546. addmacher.device_mode = this.deviceMode[j].device_mode
  3547. }
  3548. }
  3549. this.tableDatatwo[i] = addmacher
  3550. // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
  3551. }
  3552. }
  3553. // this.getAllMachine()
  3554. // this.getAllSubregion()
  3555. this.$refs.singleTable.setCurrentRow(addmacher)
  3556. this.$forceUpdate()
  3557. }else{
  3558. this.$message.error("修改失败");
  3559. }
  3560. })
  3561. })
  3562. },
  3563. // eslint-disable-next-line no-irregular-whitespace
  3564. // 更新水处理机
  3565. UpdateMachineInfoTwo(formName) {
  3566. var device_type = this.form.devicetype
  3567. var device_types = parseInt(device_type)
  3568. this.form.devicetype = device_types
  3569. if (this.form.rubbish_reason === '') {
  3570. this.form.rubbish_reason = 0
  3571. }
  3572. var rubbish_reason = this.form.rubbish_reason
  3573. var rubbish_reasons = parseInt(rubbish_reason)
  3574. this.form.rubbish_reason = rubbish_reasons
  3575. var machine_status = this.form.machine_status
  3576. var machine_statuss = parseInt(machine_status)
  3577. this.form.machine_status = machine_statuss
  3578. var revers_mode = this.form.revers_mode
  3579. var revers_modes = parseInt(revers_mode)
  3580. this.form.revers_mode = revers_modes
  3581. var disinfecction_modes = this.form.Disinfection_mode
  3582. var disinfecction_modess = parseInt(disinfecction_modes)
  3583. this.form.Disinfection_mode = disinfecction_modess
  3584. this.$refs[formName].validate(valid => {
  3585. if (valid) {
  3586. UpdateMachineInfoTwo(this.form).then(response => {
  3587. if (response.data.state === 1) {
  3588. // eslint-disable-next-line no-unused-vars
  3589. var addmacher = response.data.data.addmacher
  3590. this.$message.success('修改成功')
  3591. for (let i = 0; i < this.tableDatatwo.length; i++) {
  3592. if (this.tableDatatwo[i].id == addmacher.id) {
  3593. for (let j = 0; j < this.deviceMode.length; j++) {
  3594. if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
  3595. addmacher.device_mode = this.deviceMode[j].device_mode
  3596. // this.$forceUpdate()
  3597. }
  3598. }
  3599. this.tableDatatwo[i] = addmacher
  3600. // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
  3601. }
  3602. }
  3603. // this.getAllMachine()
  3604. this.getAllSubregion()
  3605. this.$refs.singleTable.setCurrentRow(addmacher)
  3606. this.$forceUpdate()
  3607. }
  3608. })
  3609. }
  3610. })
  3611. },
  3612. UpdateMacheineTwo(formName) {
  3613. var device_type = this.form.devicetype
  3614. var device_types = parseInt(device_type)
  3615. this.form.devicetype = device_types
  3616. if (this.form.rubbish_reason === '') {
  3617. this.form.rubbish_reason = 0
  3618. }
  3619. var rubbish_reason = this.form.rubbish_reason
  3620. var rubbish_reasons = parseInt(rubbish_reason)
  3621. this.form.rubbish_reason = rubbish_reasons
  3622. var machine_status = this.form.machine_status
  3623. var machine_statuss = parseInt(machine_status)
  3624. this.form.machine_status = machine_statuss
  3625. this.$refs[formName].validate(valid => {
  3626. UpdateMacheineTwo(this.form).then(response => {
  3627. if (response.data.state === 1) {
  3628. var addmacher = response.data.data.addmacher
  3629. this.$message.success('修改成功')
  3630. for (let i = 0; i < this.tableDatatwo.length; i++) {
  3631. if (this.tableDatatwo[i].id == addmacher.id) {
  3632. for (let j = 0; j < this.deviceMode.length; j++) {
  3633. if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
  3634. addmacher.device_mode = this.deviceMode[j].device_mode
  3635. // this.$forceUpdate()
  3636. }
  3637. }
  3638. this.tableDatatwo[i] = addmacher
  3639. // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
  3640. }
  3641. }
  3642. // this.getAllMachine()
  3643. this.getAllSubregion()
  3644. this.$refs.singleTable.setCurrentRow(addmacher)
  3645. this.$forceUpdate()
  3646. }
  3647. })
  3648. })
  3649. },
  3650. cleanMainchine() {
  3651. this.confirmShow = false
  3652. this.cancelShow = false
  3653. },
  3654. addPlan() {
  3655. this.$refs.planForm.open()
  3656. },
  3657. ToReminders() {
  3658. this.$refs.remanderform.open()
  3659. },
  3660. changeCheck() {
  3661. this.$refs.multipleTableOne.clearSelection()
  3662. if (this.checkAllStatusOne) {
  3663. this.$refs.multipleTableOne.toggleAllSelection()
  3664. }
  3665. },
  3666. handleSelectionChange(val) {
  3667. this.selectMachinesOne = val
  3668. },
  3669. changeCheckOne() {
  3670. this.$refs.multipleTable.clearSelection()
  3671. if (this.checkAllStatus) {
  3672. this.$refs.multipleTable.toggleAllSelection()
  3673. }
  3674. },
  3675. handleSelectionChangeOne(val) {
  3676. this.selectMachines = val
  3677. },
  3678. changeMachineStatus(val) {
  3679. if (val === 4) {
  3680. this.readisable = false
  3681. } else {
  3682. this.readisable = true
  3683. this.form.rubbish_date = ''
  3684. this.form.rubbish_reason = ''
  3685. }
  3686. },
  3687. getAllPlan() {
  3688. getAllPlan().then(response => {
  3689. if (response.data.state === 1) {
  3690. var plan = response.data.data.plan
  3691. console.log("plan=====",plan )
  3692. for (let index = 0; index < plan.length; index++) {
  3693. if (plan[index].time === 1) {
  3694. plan[index].time = '周一'
  3695. }
  3696. if (plan[index].time === 2) {
  3697. plan[index].time = '周二'
  3698. }
  3699. if (plan[index].time === 3) {
  3700. plan[index].time = '周三'
  3701. }
  3702. if (plan[index].time === 4) {
  3703. plan[index].time = '周四'
  3704. }
  3705. if (plan[index].time === 5) {
  3706. plan[index].time = '周五'
  3707. }
  3708. if (plan[index].time === 6) {
  3709. plan[index].time = '周六'
  3710. }
  3711. if (plan[index].time === 7) {
  3712. plan[index].time = '周日'
  3713. }
  3714. if (plan[index].classtime === 1) {
  3715. plan[index].classtime = '上午'
  3716. }
  3717. if (plan[index].classtime === 2) {
  3718. plan[index].classtime = '下午'
  3719. }
  3720. if (plan[index].classtime === 3) {
  3721. plan[index].classtime = '晚上'
  3722. }
  3723. if (plan[index].way === 0) {
  3724. plan[index].way = '/'
  3725. }
  3726. if (plan[index].way === 1) {
  3727. plan[index].way = '擦拭'
  3728. }
  3729. if (plan[index].way === 2) {
  3730. plan[index].way = '化学消毒'
  3731. }
  3732. if (plan[index].machine_disinfectant === 0) {
  3733. plan[index].machine_disinfectant = '/'
  3734. }
  3735. if (plan[index].machine_disinfectant === 1) {
  3736. plan[index].machine_disinfectant = '0.22%季铵盐'
  3737. }
  3738. if (plan[index].machine_disinfectant === 2) {
  3739. plan[index].machine_disinfectant = '500mg/l含氯消毒剂'
  3740. }
  3741. if (plan[index].machine_disinfectant === 3) {
  3742. plan[index].machine_disinfectant = '1000mg/l含氯消毒剂'
  3743. }
  3744. if (plan[index].machine_disinfectant === 4) {
  3745. plan[index].machine_disinfectant = '1500mg/l含氯消毒剂'
  3746. }
  3747. if(plan[index].machine_disinfectant === 5){
  3748. plan[index].machine_disinfectant = "消毒湿巾"
  3749. }
  3750. if (plan[index].disinfectan_way === 0) {
  3751. plan[index].disinfectan_way = '/'
  3752. }
  3753. if (plan[index].disinfectan_way === 1) {
  3754. plan[index].disinfectan_way = '热化学消毒'
  3755. }
  3756. if (plan[index].disinfectan_way === 2) {
  3757. plan[index].disinfectan_way = '化学消毒 + 除钙'
  3758. }
  3759. if (plan[index].disinfectan_way === 3) {
  3760. plan[index].disinfectan_way = '热化学消毒 + 除钙'
  3761. }
  3762. if (plan[index].disinfectan_way === 4) {
  3763. plan[index].disinfectan_way = '热消毒'
  3764. }
  3765. if (plan[index].disinfectan_way === 5) {
  3766. plan[index].disinfectan_way = '化学消毒'
  3767. }
  3768. if (plan[index].disinfectan_way === 6) {
  3769. plan[index].disinfectan_way = '除钙'
  3770. }
  3771. if (plan[index].disinfectan_way === 7) {
  3772. plan[index].disinfectan_way = '清洗'
  3773. }
  3774. if (plan[index].disinfectant === 0) {
  3775. plan[index].disinfectant = '/'
  3776. }
  3777. if (plan[index].disinfectant === 1) {
  3778. plan[index].disinfectant = '20%柠檬酸'
  3779. }
  3780. if (plan[index].disinfectant === 2) {
  3781. plan[index].disinfectant = '25%柠檬酸'
  3782. }
  3783. if (plan[index].disinfectant === 3) {
  3784. plan[index].disinfectant = '50%柠檬酸'
  3785. }
  3786. if (plan[index].disinfectant === 4) {
  3787. plan[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
  3788. }
  3789. if (plan[index].disinfectant === 5) {
  3790. plan[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
  3791. }
  3792. if (plan[index].disinfectant === 6) {
  3793. plan[index].disinfectant = '0.2%过氧化乙酸'
  3794. }
  3795. if (plan[index].disinfectant === 7) {
  3796. plan[index].disinfectant = '10%冰醋酸'
  3797. }
  3798. if (plan[index].disinfectant === 8) {
  3799. plan[index].disinfectant = '50%冰醋酸'
  3800. }
  3801. if (plan[index].disinfectant === 9) {
  3802. plan[index].disinfectant = '5%次氯酸钠'
  3803. }
  3804. if (plan[index].disinfectant === 10) {
  3805. plan[index].disinfectant = '25%的柠檬酸+5%次氯酸钠'
  3806. }
  3807. }
  3808. this.tableData = plan
  3809. }
  3810. })
  3811. },
  3812. getAllPlanDetail(unit_type) {
  3813. getAllPlanDetail(unit_type).then(response => {
  3814. if (response.data.state === 1) {
  3815. var plandetail = response.data.data.plandetail
  3816. console.log("plandetail",plandetail)
  3817. for (let index = 0; index < plandetail.length; index++) {
  3818. if (plandetail[index].time === 1) {
  3819. plandetail[index].time = '周一'
  3820. }
  3821. if (plandetail[index].time === 2) {
  3822. plandetail[index].time = '周二'
  3823. }
  3824. if (plandetail[index].time === 3) {
  3825. plandetail[index].time = '周三'
  3826. }
  3827. if (plandetail[index].time === 4) {
  3828. plandetail[index].time = '周四'
  3829. }
  3830. if (plandetail[index].time === 5) {
  3831. plandetail[index].time = '周五'
  3832. }
  3833. if (plandetail[index].time === 6) {
  3834. plandetail[index].time = '周六'
  3835. }
  3836. if (plandetail[index].time === 7) {
  3837. plandetail[index].time = '周日'
  3838. }
  3839. if (plandetail[index].classtime === 1) {
  3840. plandetail[index].classtime = '上午'
  3841. }
  3842. if (plandetail[index].classtime === 2) {
  3843. plandetail[index].classtime = '下午'
  3844. }
  3845. if (plandetail[index].classtime === 3) {
  3846. plandetail[index].classtime = '晚上'
  3847. }
  3848. if (plandetail[index].way === 0) {
  3849. plandetail[index].way = '/'
  3850. }
  3851. if (plandetail[index].way === 1) {
  3852. plandetail[index].way = '擦拭'
  3853. }
  3854. if (plandetail[index].way === 2) {
  3855. plandetail[index].way = '化学消毒'
  3856. }
  3857. if (plandetail[index].machine_disinfectant === 0) {
  3858. plandetail[index].machine_disinfectant = '/'
  3859. }
  3860. if (plandetail[index].machine_disinfectant === 1) {
  3861. plandetail[index].machine_disinfectant = '0.22%季铵盐'
  3862. }
  3863. if (plandetail[index].machine_disinfectant === 2) {
  3864. plandetail[index].machine_disinfectant = '500mg/l含氯消毒剂'
  3865. }
  3866. if (plandetail[index].machine_disinfectant === 3) {
  3867. plandetail[index].machine_disinfectant = '1000mg/l含氯消毒剂'
  3868. }
  3869. if (plandetail[index].machine_disinfectant === 4) {
  3870. plandetail[index].machine_disinfectant = '1500mg/l含氯消毒剂'
  3871. }
  3872. if(plandetail[index].machine_disinfectant === 5){
  3873. plandetail[index].machine_disinfectant = "消毒湿巾"
  3874. }
  3875. if (plandetail[index].disinfectan_way === 0) {
  3876. plandetail[index].disinfectan_way = '/'
  3877. }
  3878. if (plandetail[index].disinfectan_way === 1) {
  3879. plandetail[index].disinfectan_way = '热化学消毒'
  3880. }
  3881. if (plandetail[index].disinfectan_way === 2) {
  3882. plandetail[index].disinfectan_way = '化学消毒 + 除钙'
  3883. }
  3884. if (plandetail[index].disinfectan_way === 3) {
  3885. plandetail[index].disinfectan_way = '热化学消毒 + 除钙'
  3886. }
  3887. if (plandetail[index].disinfectan_way === 4) {
  3888. plandetail[index].disinfectan_way = '热消毒'
  3889. }
  3890. if (plandetail[index].disinfectan_way === 5) {
  3891. plandetail[index].disinfectan_way = '化学消毒'
  3892. }
  3893. if (plandetail[index].disinfectan_way === 6) {
  3894. plandetail[index].disinfectan_way = '除钙'
  3895. }
  3896. if (plandetail[index].disinfectan_way === 7) {
  3897. plandetail[index].disinfectan_way = '清洗'
  3898. }
  3899. if (plandetail[index].disinfectant === 0) {
  3900. plandetail[index].disinfectant = '/'
  3901. }
  3902. if (plandetail[index].disinfectant === 1) {
  3903. plandetail[index].disinfectant = '20%柠檬酸'
  3904. }
  3905. if (plandetail[index].disinfectant === 2) {
  3906. plandetail[index].disinfectant = '25%柠檬酸'
  3907. }
  3908. if (plandetail[index].disinfectant === 3) {
  3909. plandetail[index].disinfectant = '50%柠檬酸'
  3910. }
  3911. if (plandetail[index].disinfectant === 4) {
  3912. plandetail[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
  3913. }
  3914. if (plandetail[index].disinfectant === 5) {
  3915. plandetail[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
  3916. }
  3917. if (plandetail[index].disinfectant === 6) {
  3918. plandetail[index].disinfectant = '0.2%过氧化乙酸'
  3919. }
  3920. if (plandetail[index].disinfectant === 7) {
  3921. plandetail[index].disinfectant = '10%冰醋酸'
  3922. }
  3923. if (plandetail[index].disinfectant === 8) {
  3924. plandetail[index].disinfectant = '50%冰醋酸'
  3925. }
  3926. if (plandetail[index].disinfectant === 9) {
  3927. plandetail[index].disinfectant = '5%次氯酸钠'
  3928. }
  3929. if (plandetail[index].disinfectant === 10) {
  3930. plandetail[index].disinfectant = '25%的柠檬酸+5%次氯酸钠'
  3931. }
  3932. }
  3933. this.planData = plandetail
  3934. }
  3935. })
  3936. },
  3937. EditMachine(id, index) {
  3938. this.dialogVisible = true
  3939. EditPlanDetail(id).then(response => {
  3940. if (response.data.state === 1) {
  3941. var plan = response.data.data.plan
  3942. this.machineform.id = plan.id
  3943. this.machineform.device_type = plan.device_type
  3944. this.machineform.disinfec_time = plan.disinfec_time
  3945. this.machineform.time = plan.time
  3946. this.machineform.class_time = plan.classtime
  3947. this.machineform.way = plan.way
  3948. this.machineform.machine_disinfectant = plan.machine_disinfectant
  3949. this.machineform.disinfectant_way = plan.disinfectan_way
  3950. this.machineform.disinfectant = plan.disinfectant
  3951. // this.getPatientDetail(this.unitType, this.$route.query.bedid)
  3952. }
  3953. })
  3954. },
  3955. UpdatePlanInfo(formName) {
  3956. var devicetype = this.machineform.device_type
  3957. var devicetypes = parseInt(devicetype)
  3958. this.machineform.device_type = devicetypes
  3959. if (this.machineform.disinfec_time === '') {
  3960. this.machineform.disinfec_time = ''
  3961. }
  3962. if (this.machineform.disinfec_time !== '') {
  3963. var disinfectimes = this.machineform.disinfec_time
  3964. var disinfectime = parseInt(disinfectimes)
  3965. this.machineform.disinfec_time = disinfectime
  3966. }
  3967. var times = this.machineform.time
  3968. var time = parseInt(times)
  3969. this.machineform.time = time
  3970. var classtimes = this.machineform.class_time
  3971. var classtime = parseInt(classtimes)
  3972. this.machineform.class_time = classtime
  3973. var ways = this.machineform.way
  3974. var way = parseInt(ways)
  3975. this.machineform.way = way
  3976. var machinedisinfectant = this.machineform.machine_disinfectant
  3977. var machinedisinfectants = parseInt(machinedisinfectant)
  3978. this.machineform.machine_disinfectant = machinedisinfectants
  3979. var disinfectantways = this.machineform.disinfectant_way
  3980. var disinfectantway = parseInt(disinfectantways)
  3981. this.machineform.disinfectant_way = disinfectantway
  3982. var disinfectants = this.machineform.disinfectant
  3983. var disinfectant = parseInt(disinfectants)
  3984. this.machineform.disinfectant = disinfectant
  3985. UpdatePlanInfo(this.machineform).then(response => {
  3986. if (response.data.state === 1) {
  3987. var plan = response.data.data.plan
  3988. this.dialogVisible = false
  3989. this.$message.success('修改成功')
  3990. this.getAllPlanDetail(this.unitType)
  3991. this.getAllPlan()
  3992. }
  3993. })
  3994. },
  3995. openDeleteMahcine() {
  3996. if (this.selectMachines.length == 0) {
  3997. this.$message.error('请选择要删除的信息')
  3998. return false
  3999. }
  4000. this.$confirm(
  4001. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  4002. '删除提示',
  4003. {
  4004. dangerouslyUseHTMLString: true,
  4005. confirmButtonText: '确定',
  4006. cancelButtonText: '取消',
  4007. type: 'warning'
  4008. }
  4009. )
  4010. .then(() => {
  4011. var ids = []
  4012. var idMap = {}
  4013. for (const index in this.selectMachines) {
  4014. ids.push(this.selectMachines[index].id)
  4015. idMap[this.selectMachines[index].id] = this.selectMachines[
  4016. index
  4017. ].id
  4018. }
  4019. DeletePlans({ ids: ids }).then(response => {
  4020. // eslint-disable-next-line eqeqeq
  4021. if (response.data.state == 1) {
  4022. // eslint-disable-next-line no-unused-vars
  4023. var msg = response.data.data.msg
  4024. var planDataLength = this.planData.length
  4025. for (let index = planDataLength - 1; index >= 0; index--) {
  4026. if (this.planData[index].id in idMap) {
  4027. this.planData.splice(index, 1)
  4028. }
  4029. }
  4030. var planDataLengths = this.tableData.length
  4031. for (let index = planDataLengths - 1; index >= 0; index--) {
  4032. if (this.tableData[index].id in idMap) {
  4033. this.tableData.splice(index, 1)
  4034. }
  4035. }
  4036. this.$message.success('删除消毒计划成功')
  4037. } else {
  4038. this.$message.error('删除消毒计划失败')
  4039. }
  4040. })
  4041. .catch(e => {})
  4042. })
  4043. .catch(() => {
  4044. return false
  4045. })
  4046. },
  4047. openDelete(id, index) {
  4048. // eslint-disable-next-line no-undef
  4049. this.$confirm(
  4050. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  4051. '删除提示',
  4052. {
  4053. dangerouslyUseHTMLString: true,
  4054. confirmButtonText: '确定',
  4055. cancelButtonText: '取消',
  4056. type: 'warning'
  4057. }
  4058. ).then(() => {
  4059. openDelete(id, index).then(response => {
  4060. if (response.data.state === 1) {
  4061. var msg = response.data.data.msg
  4062. this.tableData.splice(index, 1)
  4063. this.planData.splice(index, 1)
  4064. }
  4065. })
  4066. })
  4067. },
  4068. openDeleteMahcineOne() {
  4069. if (this.selectMachinesOne.length == 0) {
  4070. this.$message.error('请选择要删除的信息')
  4071. return false
  4072. }
  4073. this.$confirm(
  4074. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  4075. '删除提示',
  4076. {
  4077. dangerouslyUseHTMLString: true,
  4078. confirmButtonText: '确定',
  4079. cancelButtonText: '取消',
  4080. type: 'warning'
  4081. }
  4082. )
  4083. .then(() => {
  4084. var ids = []
  4085. var idMap = {}
  4086. for (const index in this.selectMachinesOne) {
  4087. ids.push(this.selectMachinesOne[index].id)
  4088. idMap[this.selectMachinesOne[index].id] = this.selectMachinesOne[
  4089. index
  4090. ].id
  4091. }
  4092. DeletePlans({ ids: ids })
  4093. .then(response => {
  4094. if (response.data.state == 1) {
  4095. var msg = response.data.data.msg
  4096. var planDataLength = this.tableData.length
  4097. for (let index = planDataLength - 1; index >= 0; index--) {
  4098. if (this.tableData[index].id in idMap) {
  4099. this.tableData.splice(index, 1)
  4100. }
  4101. }
  4102. var planDataLengths = this.planData.length
  4103. for (let index = planDataLengths - 1; index >= 0; index--) {
  4104. if (this.planData[index].id in idMap) {
  4105. this.planData.splice(index, 1)
  4106. }
  4107. }
  4108. this.$message.success('删除消毒计划成功')
  4109. } else {
  4110. this.$message.error('删除消毒计划失败')
  4111. }
  4112. })
  4113. .catch(e => {})
  4114. })
  4115. .catch(() => {
  4116. return false
  4117. })
  4118. },
  4119. getAllEquimentName() {
  4120. getAllEquimentName().then(response => {
  4121. if (response.data.state === 1) {
  4122. var equit = response.data.data.equit
  4123. // this.DeviceType = equit
  4124. }
  4125. })
  4126. },
  4127. clickQuery() {
  4128. this.$refs.multipleform.open()
  4129. },
  4130. getPatientInfo(bedid) {
  4131. getPatientInfo(bedid).then(response => {
  4132. if (response.data.state === 1) {
  4133. var schedules = response.data.data.schedules
  4134. // this.patientName = schedules
  4135. }
  4136. })
  4137. },
  4138. ChangeClass(id) {
  4139. ChangeClass(this.equimentid, id).then(response => {
  4140. if (response.data.state === 1) {
  4141. var patients = response.data.data.patients
  4142. if (patients.is_infectious === 0) {
  4143. this.userform.contagion = ''
  4144. }
  4145. if (patients.is_infectious === 1) {
  4146. this.userform.contagion = '无'
  4147. }
  4148. if (patients.is_infectious === 2) {
  4149. this.userform.contagion = '有'
  4150. }
  4151. this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
  4152. this.userform.patient_name = patients.name
  4153. this.userform.patient_id = patients.patient_id
  4154. var zone = response.data.data.zone
  4155. this.userform.zone = zone.id
  4156. var number = response.data.data.number
  4157. this.userform.bed_number = number.id
  4158. var order = response.data.data.order
  4159. this.userform.start_time = uParseTime(order.start_time, '{y}-{m}-{d} {h}:{i}')
  4160. this.userform.end_time = uParseTime(order.end_time, '{y}-{m}-{d} {h}:{i}')
  4161. var prescription = response.data.data.prescription
  4162. this.userform.dialysis_mode = prescription.mode_id
  4163. var dislysis = response.data.data.dislysis
  4164. this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
  4165. this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
  4166. this.userform.weight_loss = dislysis.weight_loss
  4167. }
  4168. })
  4169. },
  4170. updateTimes(time) {
  4171. if (time < 0) {
  4172. return ''
  4173. } else {
  4174. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  4175. }
  4176. },
  4177. getTimes(time) {
  4178. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  4179. },
  4180. getTime(time) {
  4181. return uParseTime(time, '{y}-{m}-{d}')
  4182. },
  4183. SaveInformation(formName) {
  4184. if (this.userform.classtype === '') {
  4185. this.userform.classtype = 0
  4186. }
  4187. var classtypes = this.userform.classtype
  4188. var classtype = parseInt(classtypes)
  4189. this.userform.classtype = classtype
  4190. var zone = this.userform.zone
  4191. var zones = parseInt(zone)
  4192. this.userform.zone = zones
  4193. var bednumber = this.userform.bed_number
  4194. var bednumbers = parseInt(bednumber)
  4195. this.userform.bed_number = bednumbers
  4196. var dialysismode = this.userform.dialysis_mode
  4197. var dialysis_mode = parseInt(dialysismode)
  4198. this.userform.dialysis_mode = dialysis_mode
  4199. if (this.userform.failure_stage === '') {
  4200. this.userform.failure_stage = 0
  4201. }
  4202. if (this.userform.dialysis_checked === '') {
  4203. this.userform.dialysis_checked = 0
  4204. }
  4205. if (this.userform.dialysis_checked === true) {
  4206. this.userform.dialysis_checked = 1
  4207. }
  4208. if (this.userform.dialysis_checked === false) {
  4209. this.userform.dialysis_checked = 2
  4210. }
  4211. if (this.userform.germ_checked === '') {
  4212. this.userform.germ_checked = 0
  4213. }
  4214. if (this.userform.germ_checked === true) {
  4215. this.userform.germ_checked = 1
  4216. }
  4217. if (this.userform.germ_checked === false) {
  4218. this.userform.germ_checked = 2
  4219. }
  4220. if (this.userform.dialysis_name === '') {
  4221. this.userform.dialysis_name = 0
  4222. }
  4223. var dialysis_name = this.userform.dialysis_name
  4224. var dialysis = parseInt(dialysis_name)
  4225. this.userform.dialysis_name = dialysis
  4226. if (this.userform.germ_name === '') {
  4227. this.userform.germ_name = 0
  4228. }
  4229. var germname = this.userform.germ_name
  4230. var germames = parseInt(germname)
  4231. this.userform.germ_name = germames
  4232. if (this.userform.clean === '') {
  4233. this.userform.clean = 0
  4234. }
  4235. if (this.userform.clean === true) {
  4236. this.userform.clean = 1
  4237. }
  4238. if (this.userform.clean === false) {
  4239. this.userform.clean = 2
  4240. }
  4241. // eslint-disable-next-line eqeqeq
  4242. if (this.userform.start_time == '') {
  4243. this.userform.start_time = '0'
  4244. }
  4245. // eslint-disable-next-line eqeqeq
  4246. if (this.userform.end_time == '') {
  4247. this.userform.end_time = '0'
  4248. }
  4249. // eslint-disable-next-line eqeqeq
  4250. if (this.userform.starttime == '') {
  4251. this.userform.starttime = '0'
  4252. }
  4253. // eslint-disable-next-line eqeqeq
  4254. if (this.userform.endtime == '') {
  4255. this.userform.endtime = '0'
  4256. }
  4257. if (this.userform.hyperfiltratio === '') {
  4258. this.userform.hyperfiltratio = 0
  4259. }
  4260. var hyperfiltratio = this.userform.hyperfiltratio
  4261. var hyperfiltratios = parseFloat(hyperfiltratio)
  4262. this.userform.hyperfiltratio = hyperfiltratios
  4263. if (this.userform.weight_loss === '') {
  4264. this.userform.weight_loss = 0
  4265. }
  4266. var weightloss = this.userform.weight_loss
  4267. var weidht = parseFloat(weightloss)
  4268. this.userform.weight_loss = weidht
  4269. if (this.userform.user_total === '0') {
  4270. this.userform.user_total = 0
  4271. }
  4272. if (this.userform.user_total == ""){
  4273. this.userform.user_total = 0
  4274. }
  4275. this.userform.user_total = parseInt(this.userform.user_total)
  4276. console.log("user_form",this.userform)
  4277. this.$refs[formName].validate((valid) => {
  4278. if (valid) {
  4279. SaveInformation(this.equimentid, this.userform).then(response => {
  4280. if (response.data.state === 1) {
  4281. // eslint-disable-next-line no-unused-vars
  4282. var information = response.data.data.information
  4283. var infor = response.data.data.infor
  4284. this.userform.start_time = ''
  4285. this.userform.end_time = ''
  4286. this.userform.starttime = ''
  4287. this.userform.endtime = ''
  4288. this.userform.date = ''
  4289. this.userform.classtype = ''
  4290. this.userform.zone = ''
  4291. this.userform.patient_name = ''
  4292. this.userform.sign_name = ''
  4293. this.userform.bed_number = ''
  4294. this.userform.hyperfiltratio = ''
  4295. this.userform.weight_loss = ''
  4296. this.userform.dialysis_time = ''
  4297. this.$message.success('添加成功')
  4298. // this.$refs.child.getInformationData()
  4299. }
  4300. })
  4301. }
  4302. })
  4303. },
  4304. toLink() {
  4305. window.location.href = this.guaForm.images
  4306. },
  4307. // 获取签名
  4308. getAllOrganization() {
  4309. getAllOrganization().then(response => {
  4310. if (response.data.state === 1) {
  4311. var approle = response.data.data.approle
  4312. this.autograph = approle
  4313. this.sampling = approle
  4314. }
  4315. })
  4316. },
  4317. getUserRegister(id) {
  4318. getUserRegister(id).then(response => {
  4319. if (response.data.state === 1) {
  4320. var information = response.data.data.information
  4321. var role = response.data.data.role
  4322. var dislysis = response.data.data.dislysis
  4323. this.userform.id = information.id
  4324. if (information.date === 0) {
  4325. this.userform.date = moment(new Date()).format('YYYY-MM-DD')
  4326. } else {
  4327. this.userform.date = uParseTime(information.date, '{y}-{m}-{d}')
  4328. }
  4329. this.userform.classtype = information.class
  4330. this.userform.zone = information.zone
  4331. this.userform.bed_number = information.bed_number
  4332. this.userform.patient_name = information.name
  4333. this.userform.patient_id = information.patient_id
  4334. this.userform.contagion = information.contagion
  4335. this.userform.dialysis_mode = information.dialysis_mode
  4336. this.userform.start_time = this.updateTimes(information.start_time)
  4337. this.userform.end_time = this.updateTimes(information.end_time)
  4338. // this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
  4339. if (information.hyperfiltratio === '') {
  4340. this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
  4341. } else {
  4342. this.userform.hyperfiltratio = information.hyperfiltratio
  4343. }
  4344. if (information.dialysis_hour === '') {
  4345. this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
  4346. } else {
  4347. this.userform.dialysis_time = information.dialysis_hour
  4348. }
  4349. if (information.weight_loss === '') {
  4350. this.userform.weight_loss = dislysis.weight_loss
  4351. } else {
  4352. this.userform.weight_loss = information.weight_loss
  4353. }
  4354. this.userform.warning_value = information.warning_value
  4355. this.userform.user_total = information.user_total
  4356. if (information.move === 0) {
  4357. this.userform.run = 1
  4358. } else {
  4359. this.userform.run = information.move
  4360. }
  4361. this.userform.failure_stage = information.failure_stage
  4362. this.userform.fault_description = information.fault_description
  4363. this.userform.code_information = information.code_information
  4364. this.userform.disinfect_type = information.disinfect_type
  4365. this.userform.disinfection = information.disinfection
  4366. this.userform.machine_run = information.machine_run
  4367. this.userform.fluid_path = information.fluid_path
  4368. this.userform.disinfectant = information.disinfectant
  4369. this.userform.disinfection_status = information.disinfection_status
  4370. this.userform.disinfection_residue = information.disinfection_residue
  4371. this.userform.longtime = information.long_time
  4372. this.userform.starttime = this.updateTimes(information.disinfec_startime)
  4373. this.userform.endtime = this.updateTimes(information.disinfec_endtime)
  4374. if (information.dialysis_checked === 1) {
  4375. this.userform.dialysis_checked = true
  4376. }
  4377. if (information.dialysis_checked === 0) {
  4378. this.userform.dialysis_checked = false
  4379. }
  4380. if (information.dialysis_checked === 2) {
  4381. this.userform.dialysis_checked = false
  4382. }
  4383. this.userform.dialysis_name = information.dialysis_name
  4384. this.userform.norms = information.norms
  4385. this.userform.dialysis_concentration = information.dialysis_concentration
  4386. if (information.germ_checked === 0) {
  4387. this.userform.germ_checked = false
  4388. }
  4389. if (information.germ_checked === 2) {
  4390. this.userform.germ_checked = false
  4391. }
  4392. if (information.germ_checked === 1) {
  4393. this.userform.germ_checked = true
  4394. }
  4395. this.userform.germ_name = information.germ_name
  4396. this.userform.germ_number = information.germ_number
  4397. if (information.clean === 1) {
  4398. this.userform.clean = true
  4399. }
  4400. if (information.clean === 0) {
  4401. this.userform.clean = false
  4402. }
  4403. if (information.clean === 2) {
  4404. this.userform.clean = false
  4405. }
  4406. // eslint-disable-next-line eqeqeq
  4407. if (information.admin_user_id == 0) {
  4408. this.userform.sign_name = ''
  4409. } else {
  4410. this.userform.sign_name = information.admin_user_id
  4411. }
  4412. this.$forceUpdate()
  4413. }
  4414. })
  4415. },
  4416. getOrgName() {
  4417. getOrgName().then(response => {
  4418. if (response.data.state === 1) {
  4419. var org = response.data.data.org
  4420. this.qualityForm.detection_unit = org.org_name
  4421. this.qualityFormTwo.detection_unit = org.org_name
  4422. this.qualityFormThree.detection_unit = org.org_name
  4423. this.qualityFormFour.detection_unit =org.org_name
  4424. this.qualityFormFive.detection_unit = org.org_name
  4425. this.qualityFormSix.detection_unit = org.org_name
  4426. this.qualityFormSeven.detection_unit = org.org_name
  4427. }
  4428. })
  4429. },
  4430. SaveBacteria(formName) {
  4431. if (this.qualityForm.specimen === '') {
  4432. this.qualityForm.specimen = 0
  4433. }
  4434. var specimen = this.qualityForm.specimen
  4435. var specimens = parseInt(specimen)
  4436. this.qualityForm.specimen = specimens
  4437. if (this.qualityForm.sampling_locationa === '') {
  4438. this.qualityForm.sampling_locationa = 0
  4439. }
  4440. var samplinglocationa = this.qualityForm.sampling_locationa
  4441. var samplinglocationas = parseInt(samplinglocationa)
  4442. this.qualityForm.sampling_locationa = samplinglocationas
  4443. // if(this.qualityForm.pass_examination!=''){
  4444. // this.qualityForm.pass_examination = parseInt(this.qualityForm.pass_examination)
  4445. // }
  4446. if(this.qualityForm.modifications!=''){
  4447. this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
  4448. }
  4449. console.log("3333333",this.qualityForm)
  4450. this.$refs[formName].validate(response => {
  4451. SaveBacteria(this.equimentid, this.qualityForm).then(response => {
  4452. if (response.data.state === 1) {
  4453. var culture = response.data.data.culture
  4454. this.$message.success('保存成功')
  4455. this.qualityForm.specimen = '',
  4456. this.qualityForm.concentrate_noa = '',
  4457. this.qualityForm.concentrate_nob = '',
  4458. this.qualityForm.sampling_locationa = '',
  4459. this.qualityForm.detection_result = ''
  4460. this.$refs.mychild.getAllQulityInfo()
  4461. }else{
  4462. this.$message.error("创建失败")
  4463. }
  4464. })
  4465. })
  4466. },
  4467. cleanSaveBacteria() {
  4468. this.qualityForm.specimen = '',
  4469. this.qualityForm.concentrate_noa = '',
  4470. this.qualityForm.concentrate_nob = '',
  4471. this.qualityForm.sampling_locationa = '',
  4472. this.qualityForm.sampler = ''
  4473. this.qualityForm.reporting_date = ''
  4474. this.qualityForm.detection_result = ''
  4475. },
  4476. SaveLincomycin(formName) {
  4477. this.$refs[formName].validate((valid) => {
  4478. if (this.qualityFormTwo.specimenb === '') {
  4479. this.qualityFormTwo.specimenb = 0
  4480. }
  4481. var specimen = this.qualityFormTwo.specimenb
  4482. var specimenb = parseInt(specimen)
  4483. this.qualityFormTwo.specimenb = specimenb
  4484. if (this.qualityFormTwo.sampling_locationb === '') {
  4485. this.qualityFormTwo.sampling_locationb = 0
  4486. }
  4487. var sampling = this.qualityFormTwo.sampling_locationb
  4488. var samplings = parseInt(sampling)
  4489. this.qualityFormTwo.sampling_locationb = samplings
  4490. if(this.qualityFormTwo.modifications!=''){
  4491. this.qualityFormTwo.modifications = parseInt(this.qualityFormTwo.modifications)
  4492. }
  4493. if (valid) {
  4494. SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
  4495. if (response.data.state === 1) {
  4496. var dialysate = response.data.data.dialysate
  4497. this.$message.success('保存成功')
  4498. this.qualityFormTwo.specimenb = ''
  4499. this.qualityFormTwo.concentrate_noc = ''
  4500. this.qualityFormTwo.concentrateb_nod = ''
  4501. this.qualityFormTwo.sampling_locationb = ''
  4502. this.qualityFormTwo.detection_resultb = ''
  4503. this.$refs.mychild.getAllQulityInfo()
  4504. }
  4505. })
  4506. }
  4507. })
  4508. },
  4509. cleanLincomycin() {
  4510. this.qualityFormTwo.specimenb = ''
  4511. this.qualityFormTwo.concentrate_noc = ''
  4512. this.qualityFormTwo.concentrateb_nod = ''
  4513. this.qualityFormTwo.sampling_locationb = ''
  4514. this.qualityFormTwo.samplerb = ''
  4515. this.qualityFormTwo.reporting_dateb = ''
  4516. this.qualityFormTwo.detection_resultb = ''
  4517. },
  4518. SaveQualityControl(formName) {
  4519. this.$refs[formName].validate((valid) => {
  4520. if (valid) {
  4521. if(this.qualityFormThree.modifications!=''){
  4522. this.qualityFormThree.modifications = parseInt(this.qualityFormThree.modifications)
  4523. }
  4524. SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
  4525. if (response.data.state === 1) {
  4526. var ion = response.data.data.ion
  4527. this.$message.success('保存成功')
  4528. this.$refs.mychild.getAllQulityInfo()
  4529. this.qualityFormThree.concentrate_nof = ''
  4530. this.qualityFormThree.concentrate_nog = ''
  4531. this.qualityFormThree.actual_na = ''
  4532. this.qualityFormThree.actual_pna = ''
  4533. this.qualityFormThree.actual_k = ''
  4534. this.qualityFormThree.actual_ca = ''
  4535. this.qualityFormThree.actual_ci = ''
  4536. this.qualityFormThree.actual_hco = ''
  4537. this.qualityFormThree.actual_mg = ''
  4538. this.qualityFormThree.actual_ph = ''
  4539. this.qualityFormThree.remakes = ''
  4540. }
  4541. })
  4542. }
  4543. })
  4544. },
  4545. cleanQuality() {
  4546. this.qualityFormThree.samplerc = ''
  4547. this.qualityFormThree.concentrate_nof = ''
  4548. this.qualityFormThree.concentrate_nog = ''
  4549. this.qualityFormThree.date_reportc = ''
  4550. this.qualityFormThree.actual_na = ''
  4551. this.qualityFormThree.actual_pna = ''
  4552. this.qualityFormThree.actual_k = ''
  4553. this.qualityFormThree.actual_ca = ''
  4554. this.qualityFormThree.actual_ci = ''
  4555. this.qualityFormThree.actual_hco = ''
  4556. this.qualityFormThree.actual_mg = ''
  4557. this.qualityFormThree.actual_ph = ''
  4558. this.qualityFormThree.remakes = ''
  4559. },
  4560. changeSpecimen(val) {
  4561. if (val === 0) {
  4562. this.disable = false
  4563. this.diableTwo = false
  4564. }
  4565. if (val === 1) {
  4566. this.disable = false
  4567. this.diableTwo = false
  4568. }
  4569. if (val === 2) {
  4570. this.qualityForm.concentrate_nob = ''
  4571. this.qualityFormTwo.concentrateb_nod = ''
  4572. this.diableTwo = true
  4573. this.disable = false
  4574. }
  4575. if (val === 3) {
  4576. this.qualityForm.concentrate_noa = ''
  4577. this.qualityFormTwo.concentrate_noc = ''
  4578. this.disable = true
  4579. this.diableTwo = false
  4580. }
  4581. if (val === 4) {
  4582. this.disable = false
  4583. this.diableTwo = false
  4584. }
  4585. if (val === 5) {
  4586. this.disable = false
  4587. this.diableTwo = false
  4588. }
  4589. },
  4590. beforeUploadFile(file) {
  4591. var testmsg = file.name.substring(file.name.lastIndexOf('.') + 1)
  4592. const extension = testmsg === 'jpg' || testmsg === 'JPG' || testmsg === 'png' || testmsg === 'PNG' || testmsg === 'gif' || testmsg === 'GIF'
  4593. if (!extension) {
  4594. // eslint-disable-next-line no-mixed-spaces-and-tabs
  4595. this.$message({
  4596. // eslint-disable-next-line no-mixed-spaces-and-tabs
  4597. message: '上传文件只能是jpg或者png或者gif格式!',
  4598. type: 'error'
  4599. })
  4600. return false// 必须加上return false; 才能阻止
  4601. }
  4602. this.filename = file.name
  4603. this.classShow = true
  4604. this.guaForm.imageName = file.name
  4605. const isLt2M = file.size / 1024 / 1024 <= 2048
  4606. var date = new Date()
  4607. var ext = getFileExtension(file.name)
  4608. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() + '_o_' + file.uid + '.' + ext
  4609. const _self = this
  4610. return new Promise((resolve, reject) => {
  4611. getToken().then(response => {
  4612. const token = response.data.data.uptoken
  4613. _self._data.uploadFileData.token = token
  4614. _self._data.uploadFileData.key = key
  4615. resolve(true)
  4616. }).catch(err => {
  4617. reject(false)
  4618. })
  4619. })
  4620. },
  4621. handleSuccess(res, file, fileList) {
  4622. this.guaForm.images = this.qiniuDomain + res.url
  4623. this.$refs.upload.clearFiles()
  4624. this.filename = file.name
  4625. this.guaForm.imageName = file.name
  4626. },
  4627. // eslint-disable-next-line no-dupe-keys
  4628. getTime(value, temp) {
  4629. // eslint-disable-next-line eqeqeq
  4630. if (value != undefined) {
  4631. return parseTime(value, temp)
  4632. }
  4633. return ''
  4634. },
  4635. SaveRepair(formName) {
  4636. if (this.guaForm.start_time === '') {
  4637. this.guaForm.start_time = '0'
  4638. }
  4639. if (this.guaForm.arrive_time === '') {
  4640. this.guaForm.arrive_time = '0'
  4641. }
  4642. if (this.guaForm.finish_time === '') {
  4643. this.guaForm.finish_time = '0'
  4644. }
  4645. if (this.guaForm.failure_stage === '') {
  4646. this.guaForm.failure_stage = '0'
  4647. }
  4648. var failurestages = this.guaForm.failure_stage
  4649. var falur = parseInt(failurestages)
  4650. this.guaForm.failure_stage = falur
  4651. if (this.guaForm.exclude === '') {
  4652. this.guaForm.exclude = 0
  4653. }
  4654. var excludes = this.guaForm.exclude
  4655. var exclude = parseInt(excludes)
  4656. this.guaForm.exclude = exclude
  4657. this.$refs[formName].validate((valid) => {
  4658. if (valid) {
  4659. SaveRepair(this.equimentid, this.guaForm).then(response => {
  4660. if (response.data.state === 1) {
  4661. var repair = response.data.data.repair
  4662. this.$message.success('保存成功')
  4663. this.$refs.child.getAllRepair()
  4664. this.guaForm.start_time = ''
  4665. this.guaForm.arrive_time = ''
  4666. this.guaForm.finish_time = ''
  4667. this.guaForm.total_distance = ''
  4668. this.guaForm.code_information = ''
  4669. this.guaForm.fault_description = ''
  4670. this.guaForm.cause_analysis = ''
  4671. this.guaForm.reason = ''
  4672. this.guaForm.failure_stage = 0
  4673. this.guaForm.exclude = 0
  4674. this.guaForm.images = ''
  4675. this.guaForm.treatment_process = ''
  4676. this.classShow = false
  4677. this.guaForm.imageName = ''
  4678. }
  4679. })
  4680. }
  4681. })
  4682. },
  4683. querySearchAsync(keyword, cb) {
  4684. let key = ''
  4685. if (keyword != undefined) {
  4686. key = keyword
  4687. }
  4688. let searchArray = []
  4689. PostSearch(key).then(response => {
  4690. if (response.data.state == 1) {
  4691. searchArray = response.data.data.patient
  4692. cb(searchArray)
  4693. }
  4694. })
  4695. return searchArray
  4696. },
  4697. createFilter(queryString) {
  4698. return (searchArray) => {
  4699. return (searchArray.id.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
  4700. }
  4701. },
  4702. handleSelect(item) {
  4703. this.userform.patient_id = item.id
  4704. this.userform.patient_name = item.name
  4705. // eslint-disable-next-line no-undef
  4706. getPatientDetail(item.id).then(response => {
  4707. // eslint-disable-next-line eqeqeq
  4708. if (response.data.state == 1) {
  4709. var patient = response.data.data.patient
  4710. // eslint-disable-next-line no-undef
  4711. if (patient.is_infectious === 0) {
  4712. this.userform.contagion = ''
  4713. }
  4714. // eslint-disable-next-line no-undef
  4715. if (patient.is_infectious === 1) {
  4716. this.userform.contagion = '无'
  4717. }
  4718. // eslint-disable-next-line no-undef
  4719. if (patient.is_infectious === 2) {
  4720. this.userform.contagion = '有'
  4721. }
  4722. }
  4723. })
  4724. },
  4725. getAllEquitType() {
  4726. getAllEquitType().then(response => {
  4727. if (response.data.state === 1) {
  4728. var equitname = response.data.data.mode
  4729. this.DeviceType = equitname
  4730. }
  4731. })
  4732. },
  4733. getTotalNumber() {
  4734. getTotalNumber(this.equimentid).then(response => {
  4735. if (response.data.state === 1) {
  4736. var total = response.data.data.total
  4737. if (total === '') {
  4738. this.userform.user_total = ''
  4739. }
  4740. // this.userform.user_total = total
  4741. } else {
  4742. this.$message.error('数据返回失败')
  4743. }
  4744. })
  4745. },
  4746. getAllpatient() {
  4747. getAllpatient().then(response => {
  4748. if (response.data.state === 1) {
  4749. var allpatient = response.data.data.allpatient
  4750. this.patientName = allpatient
  4751. }
  4752. })
  4753. },
  4754. getTimeWarning(id) {
  4755. getTimeWarning(id).then(response => {
  4756. if (response.data.state === 1) {
  4757. var information = response.data.data.information
  4758. var time = this.getTimestamp(this.userform.date) - information.stime
  4759. var deviceInformation = response.data.data.deviceInformation
  4760. var timetwo = this.getTimestamp(this.userform.date) - deviceInformation.stime
  4761. var clean = response.data.data.clean
  4762. }
  4763. })
  4764. },
  4765. getTimeBeteen(id) {
  4766. var todayTime = moment(new Date()).format('YYYY-MM-DD')
  4767. getTimeBeteen(id, todayTime).then(response => {
  4768. if (response.data.state === 1) {
  4769. var timedata = response.data.data.timeData
  4770. // console.log("timedata----------------------",timedata)
  4771. if (timedata.length === 0) {
  4772. this.warnShow = false
  4773. }
  4774. if (timedata.length !== 0) {
  4775. this.warnShow = false
  4776. }
  4777. var todayTimeTwo = response.data.data.timeDataTwo
  4778. if (todayTimeTwo.length === 0) {
  4779. this.warnShowTwo = true
  4780. }
  4781. if (todayTimeTwo.length !== 0) {
  4782. this.warnShowTwo = false
  4783. }
  4784. var timeDataThree = response.data.data.timeDataThree
  4785. if (timeDataThree.length === 0) {
  4786. this.warnShowThree = true
  4787. }
  4788. if (timeDataThree.length !== 0) {
  4789. this.warnShowThree = false
  4790. }
  4791. }
  4792. })
  4793. },
  4794. getTimestamp(time) { // 把时间日期转成时间戳
  4795. return (new Date(time)).getTime() / 1000
  4796. },
  4797. // eslint-disable-next-line no-irregular-whitespace
  4798. // 通过自组建传值改变表格数据
  4799. getPlanData(data) {
  4800. if (data === 1) {
  4801. this.getAllPlanDetail(this.unitType)
  4802. }
  4803. },
  4804. getAllMode() {
  4805. getAllMode().then(response => {
  4806. var mode = response.data.data.mode
  4807. this.deviceMode = mode
  4808. })
  4809. },
  4810. selectChange(id) {
  4811. selectChange(id).then(response => {
  4812. if (response.data.state === 1) {
  4813. this.userform.bed_number = ''
  4814. var change = response.data.data.change
  4815. this.bedNumberTwo = change
  4816. // console.log('change', change)
  4817. }
  4818. })
  4819. },
  4820. selectBed(id) {
  4821. selectBed(id).then(response => {
  4822. if (response.data.state === 1) {
  4823. var zone = response.data.data.zone
  4824. }
  4825. })
  4826. },
  4827. getData(id) {
  4828. selectBed(id).then(response => {
  4829. if (response.data.state === 1) {
  4830. var zone = response.data.data.zone
  4831. this.$forceUpdate()
  4832. this.userform.bed_number = zone.id
  4833. this.userform.zone = zone.zone_id
  4834. }
  4835. })
  4836. },
  4837. hiddenShow() {
  4838. this.$confirm(
  4839. '确认要删除所选图片吗? <br>删除后,信息将无法恢复',
  4840. '删除提示',
  4841. {
  4842. dangerouslyUseHTMLString: true,
  4843. confirmButtonText: '确定',
  4844. cancelButtonText: '取消',
  4845. type: 'warning'
  4846. }
  4847. ).then(() => {
  4848. this.filename = ''
  4849. this.guaForm.imageName = ''
  4850. this.guaForm.images = ''
  4851. this.classShow = false
  4852. })
  4853. },
  4854. //获取机器的使用次数
  4855. GetUserTotalCount(bedid){
  4856. this.userform.user_total = ""
  4857. GetUserTotalCount(bedid).then(response=>{
  4858. if(response.data.state == 1){
  4859. var count = response.data.data.count
  4860. var addmacher = response.data.data.addmacher
  4861. if(addmacher.user_total == ''){
  4862. addmacher.user_total = 0
  4863. }
  4864. // this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
  4865. }
  4866. })
  4867. },
  4868. saveOxygenates(formName) {
  4869. this.$refs[formName].validate((valid) => {
  4870. if (this.qualityFormFour.specimenb === '') {
  4871. this.qualityFormFour.specimenb = 0
  4872. }
  4873. var specimen = this.qualityFormFour.specimenb
  4874. var specimenb = parseInt(specimen)
  4875. this.qualityFormFour.specimenb = specimenb
  4876. if (this.qualityFormFour.sampling_locationb === '') {
  4877. this.qualityFormFour.sampling_locationb = 0
  4878. }
  4879. var sampling = this.qualityFormFour.sampling_locationb
  4880. var samplings = parseInt(sampling)
  4881. this.qualityFormFour.sampling_locationb = samplings
  4882. if(this.qualityFormFour.modifications!=''){
  4883. this.qualityFormFour.modifications = parseInt(this.qualityFormFour.modifications)
  4884. }
  4885. if (valid) {
  4886. saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
  4887. if (response.data.state === 1) {
  4888. var oxygenates = response.data.data.oxygenates
  4889. console.log("oxygenates",oxygenates)
  4890. this.$message.success('保存成功')
  4891. this.qualityFormFour.specimenb = ''
  4892. this.qualityFormFour.concentrate_noc = ''
  4893. this.qualityFormFour.concentrateb_nod = ''
  4894. this.qualityFormFour.sampling_locationb = ''
  4895. this.qualityFormFour.detection_resultb = ''
  4896. this.$refs.mychild.getAllQulityInfo()
  4897. }
  4898. })
  4899. }
  4900. })
  4901. },
  4902. saveHardWater(formName) {
  4903. this.$refs[formName].validate((valid) => {
  4904. if (this.qualityFormFive.specimenb === '') {
  4905. this.qualityFormFive.specimenb = 0
  4906. }
  4907. var specimen = this.qualityFormFive.specimenb
  4908. var specimenb = parseInt(specimen)
  4909. this.qualityFormFive.specimenb = specimenb
  4910. if (this.qualityFormFive.sampling_locationb === '') {
  4911. this.qualityFormFive.sampling_locationb = 0
  4912. }
  4913. var sampling = this.qualityFormFive.sampling_locationb
  4914. var samplings = parseInt(sampling)
  4915. this.qualityFormFive.sampling_locationb = samplings
  4916. if(this.qualityFormFive.modifications!=''){
  4917. this.qualityFormFive.modifications = parseInt(this.qualityFormFive.modifications)
  4918. }
  4919. if (valid) {
  4920. saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
  4921. if (response.data.state === 1) {
  4922. var hadwater = response.data.data.hadwater
  4923. console.log("hadwater",hadwater)
  4924. this.$message.success('保存成功')
  4925. this.qualityFormFive.specimenb = ''
  4926. this.qualityFormFive.concentrate_noc = ''
  4927. this.qualityFormFive.concentrateb_nod = ''
  4928. this.qualityFormFive.sampling_locationb = ''
  4929. this.qualityFormFive.detection_resultb = ''
  4930. this.$refs.mychild.getAllQulityInfo()
  4931. }
  4932. })
  4933. }
  4934. })
  4935. },
  4936. saveWater(formName) {
  4937. this.$refs[formName].validate((valid) => {
  4938. if (this.qualityFormSix.specimenb === '') {
  4939. this.qualityFormSix.specimenb = 0
  4940. }
  4941. var specimen = this.qualityFormSix.specimenb
  4942. var specimenb = parseInt(specimen)
  4943. this.qualityFormSix.specimenb = specimenb
  4944. if (this.qualityFormSix.sampling_locationb === '') {
  4945. this.qualityFormSix.sampling_locationb = 0
  4946. }
  4947. var sampling = this.qualityFormSix.sampling_locationb
  4948. var samplings = parseInt(sampling)
  4949. this.qualityFormSix.sampling_locationb = samplings
  4950. if(this.qualityFormSix.modifications!=''){
  4951. this.qualityFormSix.modifications = parseInt(this.qualityFormSix.modifications)
  4952. }
  4953. if (valid) {
  4954. saveWater(this.equimentid, this.qualityFormSix).then(response => {
  4955. if (response.data.state === 1) {
  4956. var deviceWater = response.data.data.deviceWater
  4957. console.log("deviceWater",deviceWater)
  4958. this.$message.success('保存成功')
  4959. this.qualityFormSix.specimenb = ''
  4960. this.qualityFormSix.concentrate_noc = ''
  4961. this.qualityFormSix.concentrateb_nod = ''
  4962. this.qualityFormSix.sampling_locationb = ''
  4963. this.qualityFormSix.detection_resultb = ''
  4964. this.$refs.child.getAllQulityInfo()
  4965. }else{
  4966. this.qualityFormSix.pass_examination = "1"
  4967. }
  4968. })
  4969. }
  4970. })
  4971. },
  4972. saveDevicePH(formName) {
  4973. this.$refs[formName].validate((valid) => {
  4974. if (this.qualityFormSeven.specimenb === '') {
  4975. this.qualityFormSeven.specimenb = 0
  4976. }
  4977. var specimen = this.qualityFormSeven.specimenb
  4978. var specimenb = parseInt(specimen)
  4979. this.qualityFormSeven.specimenb = specimenb
  4980. if (this.qualityFormSeven.sampling_locationb === '') {
  4981. this.qualityFormSeven.sampling_locationb = 0
  4982. }
  4983. var sampling = this.qualityFormSeven.sampling_locationb
  4984. var samplings = parseInt(sampling)
  4985. this.qualityFormSeven.sampling_locationb = samplings
  4986. if(this.qualityFormSeven.modifications!=''){
  4987. this.qualityFormSeven.modifications = parseInt(this.qualityFormSeven.modifications)
  4988. }
  4989. if (valid) {
  4990. saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
  4991. if (response.data.state === 1) {
  4992. var devicePh = response.data.data.devicePh
  4993. console.log("devicePh",devicePh)
  4994. this.$message.success('保存成功')
  4995. this.qualityFormSeven.specimenb = ''
  4996. this.qualityFormSeven.concentrate_noc = ''
  4997. this.qualityFormSeven.concentrateb_nod = ''
  4998. this.qualityFormSeven.sampling_locationb = ''
  4999. this.qualityFormSeven.detection_resultb = ''
  5000. this.$refs.mychild.getAllQulityInfo()
  5001. }
  5002. })
  5003. }
  5004. })
  5005. },
  5006. },
  5007. created() {
  5008. this.getAllSubregion()
  5009. this.getAllMachine()
  5010. var bedid = this.$route.query.bedid
  5011. this.bedid = bedid
  5012. this.getAllPlan()
  5013. this.getAllEquimentName()
  5014. this.getAllOrganization()
  5015. this.getOrgName()
  5016. this.getAllEquitType()
  5017. this.getAllpatient()
  5018. this.getAllMode()
  5019. this.GetUserTotalCount(bedid)
  5020. }
  5021. }
  5022. </script>
  5023. <style lang="scss" scoped>
  5024. .zone{
  5025. // margin-left: 30px;
  5026. // text-align: left;
  5027. width: 70px;
  5028. display: inline-block;
  5029. color:#606266;
  5030. }
  5031. .disinfect{
  5032. position: relative;
  5033. .newButton{
  5034. // position: absolute;
  5035. // right: 2%;
  5036. // top:4px;
  5037. // z-index: 9;
  5038. margin-bottom: 10px;
  5039. margin-left: 90%;
  5040. }
  5041. }
  5042. .disinfectOne{
  5043. position: relative;
  5044. .newButtonOne{
  5045. position: absolute;
  5046. right: 0;
  5047. top: -10;
  5048. z-index: 18;
  5049. }
  5050. }
  5051. .but{
  5052. width: 200px;
  5053. height: 50px;
  5054. // border: solid 1px red;
  5055. margin-left: 77%;
  5056. }
  5057. .clearn{
  5058. width: 460px;
  5059. height: 50px;
  5060. // border:solid 1px red;
  5061. margin-left:650px;
  5062. }
  5063. .zClass{
  5064. width: 200px;
  5065. height: 200px;
  5066. // border:solid 1px red;
  5067. margin-left: 450px;
  5068. margin-top: 200px;
  5069. }
  5070. .warn{
  5071. color: red;
  5072. font-size: 14px;
  5073. width: 100%;
  5074. display: inline-block;
  5075. margin-left: 96px;
  5076. }
  5077. .userbutton{
  5078. margin-bottom: 10px;
  5079. margin-left: 82%
  5080. }
  5081. </style>
  5082. <style lang="scss">
  5083. .a{
  5084. margin-bottom: 10px;
  5085. margin-top: 6px;
  5086. }
  5087. .b{
  5088. .el-button{
  5089. margin-left: 90%;
  5090. margin-bottom: 10px;
  5091. }
  5092. }
  5093. .stoppage{
  5094. .el-form-item__label{
  5095. width:190px;
  5096. }
  5097. }
  5098. .st{
  5099. .el-form-item__label{
  5100. width:-10px;
  5101. }
  5102. }
  5103. .main{
  5104. position: relative;
  5105. .newButtonOne{
  5106. position:absolute;
  5107. right: 0;
  5108. z-index: 2;
  5109. }
  5110. }
  5111. .elbutton{
  5112. // border: solid 1px red;
  5113. height: 50px;
  5114. width: 400px;
  5115. margin-left: 650px;
  5116. }
  5117. // .el-form-item__label {
  5118. // width: 130px;
  5119. // font-size: 14px;
  5120. // }
  5121. .el-form-item__error {
  5122. margin-left: 130px;
  5123. }
  5124. .el-upload-list__item-name {
  5125. color: #606266;
  5126. display: block;
  5127. margin-right: 40px;
  5128. overflow: hidden;
  5129. padding-left: 4px;
  5130. text-overflow: ellipsis;
  5131. transition: color .3s;
  5132. white-space: nowrap;
  5133. }
  5134. .el-main{
  5135. padding-top: 0px;
  5136. }
  5137. .newMain{
  5138. .el-form-item__label{
  5139. width: 104px;
  5140. }
  5141. }
  5142. .newDisinfectOne{
  5143. .el-input--prefix .el-input__inner{
  5144. padding-left: 15px
  5145. }
  5146. }
  5147. .stoppage{
  5148. .el-form-item__label{
  5149. width: 18%;
  5150. }
  5151. }
  5152. .newItem{
  5153. .el-form-item__label{
  5154. width: 130px;
  5155. }
  5156. }
  5157. .formItem{
  5158. .el-form-item__label{
  5159. width: 104px;
  5160. line-height: 30px;
  5161. }
  5162. }
  5163. .newname{
  5164. .el-form-item__label{
  5165. width: 60px;
  5166. }
  5167. }
  5168. ::-webkit-scrollbar{
  5169. height: 20px;
  5170. }
  5171. </style>