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

home.vue 259KB

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