home.vue 258KB

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