血透系统PC前端

home.vue 192KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177
  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:24%">
  9. <el-row>
  10. <el-col :span="24">
  11. <span class="zone">分&nbsp;&nbsp;&nbsp;&nbsp;区:</span>
  12. <el-select v-model="forms.zone_id" placeholder="请选择" class="a" @change="changeBedNumber" style="width:125px">
  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">班&nbsp;&nbsp;&nbsp;&nbsp;次:</span>
  26. <el-select v-model="forms.class_id" placeholder="请选择" class="a" @change="changeClassId" style="width:125px">
  27. <el-option
  28. v-for="item in Classes"
  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-col>
  38. <span>设备类型:</span>
  39. <el-select v-model="forms.device_type" placeholder="请选择" class="a" @change="changeDeviceId" style="width:110px">
  40. <el-option
  41. v-for="item in DeviceTypeType"
  42. :key="item.id"
  43. :label="item.name"
  44. :value="item.id">
  45. </el-option>
  46. </el-select>
  47. </el-col>
  48. </el-row>
  49. <el-row>
  50. <el-table
  51. ref="singleTable"
  52. :data="tableDatatwo"
  53. highlight-current-row
  54. border
  55. @current-change="handleCurrentChange"
  56. height="1050"
  57. >
  58. <el-table-column
  59. prop="date"
  60. label="设备名称"
  61. width="90"
  62. align="center">
  63. <template slot-scope="scope">
  64. {{scope.row.device_name}}
  65. </template>
  66. </el-table-column>
  67. <el-table-column
  68. prop="name"
  69. label="设备型号"
  70. width="90"
  71. align="center">
  72. <template slot-scope="scope">
  73. {{scope.row.unit_type}}
  74. </template>
  75. </el-table-column>
  76. <el-table-column
  77. prop="address"
  78. label="机位号"
  79. align="center"
  80. widwid="90">
  81. <template slot-scope="scope">
  82. {{scope.row.bed_number}}
  83. </template>
  84. </el-table-column>
  85. </el-table>
  86. </el-row>
  87. </div>
  88. <el-main>
  89. <div class="main">
  90. <div class="newButtonOne">
  91. <el-button
  92. size="small"
  93. @click="clickQuery()"
  94. >
  95. 综合查询
  96. </el-button>
  97. </div>
  98. <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
  99. <!-- 透析机基本信息 -->
  100. <el-tab-pane label="基本信息" name="first" >
  101. <!-- 透析机基本信息 -->
  102. <div class="disinfectOne" v-show="tShow">
  103. <el-row>
  104. <div class="b">
  105. <el-button size="small" @click="UpdateMachine()">修改</el-button>
  106. </div>
  107. </el-row>
  108. <el-row>
  109. <el-form :model="form" ref="form" :rules="rules">
  110. <el-row>
  111. <el-col :span="7">
  112. <el-form-item label="序列号:" required prop="serial_number">
  113. <el-input style="width:150px" v-model="form.serial_number" :disabled="disableThree"></el-input>
  114. </el-form-item>
  115. </el-col>
  116. <el-col :span="7">
  117. <el-form-item label="设备类型:" required prop="devicetype">
  118. <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
  119. <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
  120. </el-select>
  121. </el-form-item>
  122. </el-col>
  123. <el-col :span="7">
  124. <el-form-item label="机位号:">
  125. <el-select style="width:150px" v-model="form.bed_number" :disabled="disableThree">
  126. <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
  127. </el-select>
  128. </el-form-item>
  129. </el-col>
  130. </el-row>
  131. <el-row>
  132. <el-col :span="7">
  133. <el-form-item label="设备名称:" required prop="device_name">
  134. <el-input style="width:150px" v-model="form.device_name" :disabled="disableThree"></el-input>
  135. </el-form-item>
  136. </el-col>
  137. <el-col :span="7">
  138. <el-form-item label="生产厂家:">
  139. <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableThree"></el-input>
  140. </el-form-item>
  141. </el-col>
  142. <el-col :span="7">
  143. <el-form-item label="维修厂家:">
  144. <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableThree"></el-input>
  145. </el-form-item>
  146. </el-col>
  147. </el-row>
  148. <el-row>
  149. <el-col :span="7">
  150. <el-form-item label="设备型号:" required prop="unit_type">
  151. <el-input style="width:150px" v-model="form.unit_type" :disabled="disableThree"></el-input>
  152. </el-form-item>
  153. </el-col>
  154. <el-col :span="7">
  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="7">
  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="7">
  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="7">
  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="7">
  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="7">
  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="7">
  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="7">
  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="7">
  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="7">
  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="7">
  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="7">
  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:135px"
  254. :disabled="disableThree">
  255. </el-date-picker>
  256. </el-form-item>
  257. </el-col>
  258. <el-col :span="7">
  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="7">
  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="7">
  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.bed_number" :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-input style="width:150px" v-model="form.unit_type" :disabled="disableFour"></el-input>
  352. </el-form-item>
  353. </el-col>
  354. <el-col :span="7">
  355. <el-form-item label="使用科室:">
  356. <el-input style="width:150px" v-model="form.use_section" :disabled="disableFour"></el-input>
  357. </el-form-item>
  358. </el-col>
  359. <el-col :span="7">
  360. <el-form-item label="科室编号:">
  361. <el-input style="width:150px" v-model="form.section_number" :disabled="disableFour"></el-input>
  362. </el-form-item>
  363. </el-col>
  364. </el-row>
  365. <el-row>
  366. <el-col :span="7">
  367. <el-form-item label="购买日期:">
  368. <el-date-picker
  369. v-model="form.buy_date"
  370. prefix-icon="none"
  371. type="date"
  372. placeholder="请选择"
  373. format="yyyy-MM-dd"
  374. value-format="yyyy-MM-dd"
  375. style="width:150px"
  376. :disabled="disableFour">
  377. </el-date-picker>
  378. </el-form-item>
  379. </el-col>
  380. <el-col :span="7">
  381. <el-form-item label="安装日期:">
  382. <el-date-picker
  383. v-model="form.install_date"
  384. prefix-icon="none"
  385. type="date"
  386. placeholder="请选择"
  387. format="yyyy-MM-dd"
  388. value-format="yyyy-MM-dd"
  389. style="width:150px"
  390. :disabled="disableFour">
  391. </el-date-picker>
  392. </el-form-item>
  393. </el-col>
  394. <el-col :span="7">
  395. <el-form-item label="启用日期:">
  396. <el-date-picker
  397. v-model="form.start_date"
  398. prefix-icon="none"
  399. type="date"
  400. placeholder="请选择"
  401. format="yyyy-MM-dd"
  402. value-format="yyyy-MM-dd"
  403. style="width:150px"
  404. :disabled="disableFour">
  405. </el-date-picker>
  406. </el-form-item>
  407. </el-col>
  408. <el-col :span="7">
  409. <el-form-item label="维修工程师:">
  410. <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableFour"></el-input>
  411. </el-form-item>
  412. </el-col>
  413. <el-col :span="7">
  414. <el-form-item label="联系电话:">
  415. <el-input style="width:150px" v-model="form.telephone" :disabled="disableFour"></el-input>
  416. </el-form-item>
  417. </el-col>
  418. <el-col :span="7">
  419. <el-form-item label="保修期限:">
  420. <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableFour"></el-input>
  421. </el-form-item>
  422. </el-col>
  423. </el-row>
  424. <el-row>
  425. <el-col :span="7">
  426. <el-form-item label="机器状态:">
  427. <el-select style="width:150px" v-model="form.machine_status" :disabled="disableFour">
  428. <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" ></el-option>
  429. </el-select>
  430. </el-form-item>
  431. </el-col>
  432. <el-col :span="7">
  433. <el-form-item label="备注:">
  434. <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
  435. </el-form-item>
  436. </el-col>
  437. <el-col :span="7">
  438. <el-form-item label="报废日期:">
  439. <el-date-picker
  440. v-model="form.rubbish_date"
  441. prefix-icon="none"
  442. type="date"
  443. placeholder="请选择"
  444. format="yyyy-MM-dd"
  445. value-format="yyyy-MM-dd"
  446. style="width:135px"
  447. :disabled="disableFour">
  448. </el-date-picker>
  449. </el-form-item>
  450. </el-col>
  451. </el-row>
  452. <el-row>
  453. <el-col :span="7">
  454. <el-form-item label="报废原因:">
  455. <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
  456. <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
  457. </el-select>
  458. </el-form-item>
  459. </el-col>
  460. <el-col :span="7">
  461. <el-form-item label="使用年限(年):">
  462. <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
  463. </el-form-item>
  464. </el-col>
  465. <el-col :span="7">
  466. <el-form-item label="工作时长(h):">
  467. <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
  468. </el-form-item>
  469. </el-col>
  470. </el-row>
  471. <el-row>
  472. <el-col :span="8">
  473. <el-form-item label="消毒方式:">
  474. <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFour">
  475. <el-option
  476. v-for="item in this.DisinfectionMode"
  477. :key="item.id"
  478. :label="item.name"
  479. :value="item.id"
  480. ></el-option>
  481. </el-select>
  482. </el-form-item>
  483. </el-col>
  484. <el-col :span="8">
  485. <el-form-item label="反渗模式:">
  486. <el-select style="width:135px" v-model="form.revers_mode" :disabled="disableFour">
  487. <el-option
  488. v-for="item in this.reverseMode"
  489. :key="item.id"
  490. :label="item.name"
  491. :value="item.id"
  492. ></el-option>
  493. </el-select>
  494. </el-form-item>
  495. </el-col>
  496. </el-row>
  497. <el-row>
  498. <div class="but">
  499. <el-col :span="12">
  500. <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
  501. </el-col>
  502. <el-col :span="8">
  503. <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMachineInfoTwo('form')">保存</el-button>
  504. </el-col>
  505. </div>
  506. </el-row>
  507. </el-form>
  508. </el-row>
  509. </div>
  510. <!-- 其他信息 -->
  511. <div v-show="qShow" class="disinfectOne">
  512. <el-row>
  513. <div class="b">
  514. <el-button size="small" @click="UpdateMachine()">修改</el-button>
  515. </div>
  516. </el-row>
  517. <el-form :model="form" ref="form" :rules="rules">
  518. <el-row>
  519. <el-col :span="7">
  520. <el-form-item label="序列号:" required prop="serial_number">
  521. <el-input style="width:150px" v-model="form.serial_number" :disabled="disableFive"></el-input>
  522. </el-form-item>
  523. </el-col>
  524. <el-col :span="7">
  525. <el-form-item label="设备类型:" required prop="devicetype">
  526. <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
  527. <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
  528. </el-select>
  529. </el-form-item>
  530. </el-col>
  531. <el-col :span="7">
  532. <el-form-item label="机位号:">
  533. <!-- <el-select style="width:150px" v-model="form.bed_number" :disabled="true">
  534. <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
  535. </el-select> -->
  536. <el-input v-model="form.bed_number" style="width:150px" :disabled="disableFive"></el-input>
  537. </el-form-item>
  538. </el-col>
  539. </el-row>
  540. <el-row>
  541. <el-col :span="7">
  542. <el-form-item label="设备名称:" required prop="device_name">
  543. <el-input style="width:150px" v-model="form.device_name" :disabled="disableFive"></el-input>
  544. </el-form-item>
  545. </el-col>
  546. <el-col :span="7">
  547. <el-form-item label="生产厂家:">
  548. <el-input style="width:150px" v-model="form.manufacture_factory" :disabled="disableFive"></el-input>
  549. </el-form-item>
  550. </el-col>
  551. <el-col :span="7">
  552. <el-form-item label="维修厂家:">
  553. <el-input style="width:150px" v-model="form.service_manufacturer" :disabled="disableFive"></el-input>
  554. </el-form-item>
  555. </el-col>
  556. </el-row>
  557. <el-row>
  558. <el-col :span="7">
  559. <el-form-item label="设备型号:" required prop="unit_type">
  560. <el-input style="width:150px" v-model="form.unit_type" :disabled="disableFive"></el-input>
  561. </el-form-item>
  562. </el-col>
  563. <el-col :span="7">
  564. <el-form-item label="使用科室:">
  565. <el-input style="width:150px" v-model="form.use_section" :disabled="disableFive"></el-input>
  566. </el-form-item>
  567. </el-col>
  568. <el-col :span="7">
  569. <el-form-item label="科室编号:">
  570. <el-input style="width:150px" v-model="form.section_number" :disabled="disableFive"></el-input>
  571. </el-form-item>
  572. </el-col>
  573. </el-row>
  574. <el-row>
  575. <el-col :span="7">
  576. <el-form-item label="购买日期:">
  577. <el-date-picker
  578. v-model="form.buy_date"
  579. prefix-icon="none"
  580. type="date"
  581. placeholder="请选择"
  582. format="yyyy-MM-dd"
  583. value-format="yyyy-MM-dd"
  584. style="width:150px"
  585. :disabled="disableFive">
  586. </el-date-picker>
  587. </el-form-item>
  588. </el-col>
  589. <el-col :span="7">
  590. <el-form-item label="安装日期:">
  591. <el-date-picker
  592. v-model="form.install_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="7">
  604. <el-form-item label="启用日期:">
  605. <el-date-picker
  606. v-model="form.start_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="7">
  618. <el-form-item label="维修工程师:">
  619. <el-input style="width:150px" v-model="form.maintenance_engineer" :disabled="disableFive"></el-input>
  620. </el-form-item>
  621. </el-col>
  622. <el-col :span="7">
  623. <el-form-item label="联系电话:">
  624. <el-input style="width:150px" v-model="form.telephone" :disabled="disableFive"></el-input>
  625. </el-form-item>
  626. </el-col>
  627. <el-col :span="7">
  628. <el-form-item label="保修期限:">
  629. <el-input style="width:150px" v-model="form.guarantee_date" :disabled="disableFive"></el-input>
  630. </el-form-item>
  631. </el-col>
  632. </el-row>
  633. <el-row>
  634. <el-col :span="7">
  635. <el-form-item label="机器状态:">
  636. <el-select style="width:150px" v-model="form.machine_status" @change="changeMachineStatus">
  637. <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFive"></el-option>
  638. </el-select>
  639. </el-form-item>
  640. </el-col>
  641. <el-col :span="8">
  642. <el-form-item label="消毒方式:">
  643. <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFive">
  644. <el-option
  645. v-for="item in this.DisinfectionMode"
  646. :key="item.id"
  647. :label="item.name"
  648. :value="item.id"
  649. ></el-option>
  650. </el-select>
  651. </el-form-item>
  652. </el-col>
  653. <el-col :span="8">
  654. <el-form-item label="备注:">
  655. <el-input style="width:150px" v-model="form.remarks" :disabled="disableFive"></el-input>
  656. </el-form-item>
  657. </el-col>
  658. </el-row>
  659. <el-row>
  660. <el-col :span="7">
  661. <el-form-item label="报废日期:">
  662. <el-date-picker
  663. v-model="form.rubbish_date"
  664. prefix-icon="none"
  665. type="date"
  666. placeholder="请选择"
  667. format="yyyy-MM-dd"
  668. value-format="yyyy-MM-dd"
  669. style="width:135px"
  670. :disabled="disableFive">
  671. </el-date-picker>
  672. </el-form-item>
  673. </el-col>
  674. <el-col :span="7">
  675. <el-form-item label="报废原因:">
  676. <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="readisable">
  677. <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" :disabled="disableFive"></el-option>
  678. </el-select>
  679. </el-form-item>
  680. </el-col>
  681. <el-col :span="7">
  682. <el-form-item label="使用年限(年):">
  683. <el-input style="width:150px" v-model="form.user_year" :disabled="disableFive"></el-input>
  684. </el-form-item>
  685. </el-col>
  686. </el-row>
  687. <el-row>
  688. <el-col :span="7">
  689. <el-form-item label="工作时长:">
  690. <el-input style="width:150px" v-model="form.work_time" :disabled="disableFive"></el-input>
  691. </el-form-item>
  692. </el-col>
  693. </el-row>
  694. <el-row>
  695. <div class="but">
  696. <el-col :span="12">
  697. <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
  698. </el-col>
  699. <el-col :span="8">
  700. <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMacheineTwo('form')">保存</el-button>
  701. </el-col>
  702. </div>
  703. </el-row>
  704. </el-form>
  705. </div>
  706. </el-tab-pane>
  707. <el-tab-pane label="消毒计划" name="second">
  708. <div class="disinfect" v-show="DisShow">
  709. <div class="newButton">
  710. <el-button
  711. size="small"
  712. @click="addPlan"
  713. >
  714. 新增计划
  715. </el-button>
  716. </div>
  717. <el-tabs v-model="activeNameTwo" @tab-click="handleClick">
  718. <el-tab-pane label="当前设备计划列表" name="first">
  719. <el-row>
  720. <el-col :span="2">
  721. <el-checkbox style="width: 30px" @change="changeCheckOne" v-model="checkAllStatus">全选</el-checkbox>
  722. </el-col>
  723. <el-col :span="2">
  724. <el-button size="small" @click="openDeleteMahcine">批量删除</el-button>
  725. </el-col>
  726. </el-row>
  727. <el-row>
  728. <el-table
  729. ref="multipleTable"
  730. @selection-change="handleSelectionChangeOne"
  731. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
  732. :data="planData"
  733. border
  734. fit
  735. highlight-current-row
  736. style="width: 100%;margin-top: 10px;"
  737. >
  738. <el-table-column align="center" type="selection" width="55"></el-table-column>
  739. <el-table-column label="时间" align="center" >
  740. <template slot-scope="scope">
  741. {{scope.row.time}}
  742. </template>
  743. </el-table-column>
  744. <el-table-column label="班次" align="center" >
  745. <template slot-scope="scope">
  746. {{scope.row.classtime}}
  747. </template>
  748. </el-table-column>
  749. <el-table-column label="机表消毒方式" align="center" min-width="110px" >
  750. <template slot-scope="scope">
  751. {{scope.row.way}}
  752. </template>
  753. </el-table-column>
  754. <el-table-column label="机表消毒液" align="center" min-width="110px" >
  755. <template slot-scope="scope">
  756. {{scope.row.machine_disinfectant}}
  757. </template>
  758. </el-table-column>
  759. <el-table-column label="液路消毒方式" align="center" min-width="110px" >
  760. <template slot-scope="scope">
  761. {{scope.row.disinfectan_way}}
  762. </template>
  763. </el-table-column>
  764. <el-table-column label="液路消毒液" align="center" min-width="110px" >
  765. <template slot-scope="scope">
  766. {{scope.row.disinfectant}}
  767. </template>
  768. </el-table-column>
  769. <el-table-column label="消毒时长/min" align="center" min-width="110px" >
  770. <template slot-scope="scope">
  771. {{scope.row.disinfec_time}}
  772. </template>
  773. </el-table-column>
  774. <el-table-column label="操作" align="center" min-width="120px">
  775. <template slot-scope="scope">
  776. <el-tooltip class="item" effect="dark" content="编辑" placement="top">
  777. <el-button
  778. size="mini"
  779. type="primary"
  780. icon="el-icon-edit-outline"
  781. @click="EditMachine(scope.row.id, scope.$index)"
  782. ></el-button>
  783. </el-tooltip>
  784. <el-tooltip class="item" effect="dark" content="删除" placement="top">
  785. <el-button
  786. size="mini"
  787. type="primary"
  788. icon="el-icon-delete"
  789. @click="openDeleteMahcine(scope.row, scope.$index)"
  790. ></el-button>
  791. </el-tooltip>
  792. </template>
  793. </el-table-column>
  794. </el-table>
  795. </el-row>
  796. </el-tab-pane>
  797. <el-tab-pane label="按机型列表" name="second">
  798. <el-row>
  799. <el-col :span="2">
  800. <el-checkbox style="width: 30px" @change="changeCheck" v-model="checkAllStatusOne">全选</el-checkbox>
  801. </el-col>
  802. <el-col :span="2">
  803. <el-button size="small" @click="openDeleteMahcineOne">批量删除</el-button>
  804. </el-col>
  805. </el-row>
  806. <el-row>
  807. <el-table
  808. ref="multipleTableOne"
  809. @selection-change="handleSelectionChange"
  810. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
  811. :data="tableData"
  812. border
  813. fit
  814. highlight-current-row
  815. style="width: 100%;margin-top: 10px;"
  816. >
  817. <el-table-column align="center" type="selection" width="55"></el-table-column>
  818. <el-table-column label="型号" align="center" min-width="70px">
  819. <template slot-scope="scope">
  820. {{scope.row.equitment_name}}
  821. </template>
  822. </el-table-column>
  823. <el-table-column label="时间" align="center" min-width="70px" >
  824. <template slot-scope="scope">
  825. {{scope.row.time}}
  826. </template>
  827. </el-table-column>
  828. <el-table-column label="班次" align="center" min-width="70px" >
  829. <template slot-scope="scope">
  830. {{scope.row.classtime}}
  831. </template>
  832. </el-table-column>
  833. <el-table-column label="基表消毒方式" align="center" min-width="110px" >
  834. <template slot-scope="scope">
  835. {{scope.row.way}}
  836. </template>
  837. </el-table-column>
  838. <el-table-column label="基表消毒液" align="center" min-width="110px" >
  839. <template slot-scope="scope">
  840. {{scope.row.machine_disinfectant}}
  841. </template>
  842. </el-table-column>
  843. <el-table-column label="液路消毒方式" align="center" min-width="110px" >
  844. <template slot-scope="scope">
  845. {{scope.row.disinfectant}}
  846. </template>
  847. </el-table-column>
  848. <el-table-column label="液路消毒液" align="center" min-width="110px" >
  849. <template slot-scope="scope">
  850. {{scope.row.disinfectan_way}}
  851. </template>
  852. </el-table-column>
  853. <el-table-column label="消毒时长/min" align="center" min-width="120px" >
  854. <template slot-scope="scope">
  855. {{scope.row.disinfec_time}}
  856. </template>
  857. </el-table-column>
  858. <el-table-column label="操作" align="center" min-width="130px">
  859. <template slot-scope="scope">
  860. <el-tooltip class="item" effect="dark" content="编辑" placement="top">
  861. <el-button
  862. size="mini"
  863. type="primary"
  864. icon="el-icon-edit-outline"
  865. @click="EditMachine(scope.row.id, scope.$index)"
  866. ></el-button>
  867. </el-tooltip>
  868. <el-tooltip class="item" effect="dark" content="删除" placement="top">
  869. <el-button
  870. size="mini"
  871. type="primary"
  872. icon="el-icon-delete"
  873. @click="openDeleteMahcineOne(scope.row, scope.$index)"
  874. ></el-button>
  875. </el-tooltip>
  876. </template>
  877. </el-table-column>
  878. </el-table>
  879. </el-row>
  880. </el-tab-pane>
  881. </el-tabs>
  882. </div>
  883. <div class="zClass" v-show="DioShow">
  884. 暂无数据
  885. </div>
  886. </el-tab-pane>
  887. <el-tab-pane label="使用登记" name="third">
  888. <div v-show="UserShow">
  889. <el-tabs v-model="activeNameThree" @tab-click="handleClick">
  890. <el-tab-pane label="新增使用登记" name="first">
  891. <el-form :model="userform" ref="userform" :rules="userRules">
  892. <el-row>
  893. <el-col :span="8">
  894. <el-form-item label="日期:" required prop="date">
  895. <el-date-picker
  896. v-model="userform.date"
  897. prefix-icon="none"
  898. type="date"
  899. placeholder="请选择"
  900. format="yyyy-MM-dd"
  901. value-format="yyyy-MM-dd"
  902. style="width:150px">
  903. </el-date-picker>
  904. </el-form-item>
  905. </el-col>
  906. <el-col :span="8">
  907. <el-form-item label="班次:" required prop="classtype">
  908. <el-select v-model="userform.classtype" placeholder="请选择" class="a" @change="ChangeClass">
  909. <el-option
  910. v-for="item in classType"
  911. :key="item.id"
  912. :label="item.name"
  913. :value="item.id"
  914. style="width:80px">
  915. </el-option>
  916. </el-select>
  917. </el-form-item>
  918. </el-col>
  919. <el-col :span="8">
  920. <el-form-item label="分区:" required prop="zone">
  921. <el-select v-model="userform.zone" placeholder="请选择" class="a">
  922. <el-option
  923. v-for="item in bedZoneThree"
  924. :key="item.id"
  925. :label="item.name"
  926. :value="item.id">
  927. </el-option>
  928. </el-select>
  929. </el-form-item>
  930. </el-col>
  931. </el-row>
  932. <el-row>
  933. <el-col :span="8">
  934. <el-form-item label="机位号:" required prop="bed_number">
  935. <el-select style="width:150px" v-model="userform.bed_number">
  936. <el-option v-for="item in this.bedNumberTwo" :key="item.id" :label="item.number" :value="item.id"></el-option>
  937. </el-select>
  938. </el-form-item>
  939. </el-col>
  940. <el-col :span="8">
  941. <el-form-item label="患者:" required prop ="patient_name">
  942. <el-autocomplete
  943. popper-class="my-autocomplete"
  944. v-model="userform.patient_name"
  945. :fetch-suggestions="querySearchAsync"
  946. placeholder="请输入内容"
  947. @select="handleSelect">
  948. <i
  949. class="el-icon-search el-input__icon"
  950. slot="suffix"
  951. >
  952. </i>
  953. <template slot-scope="{ item }">
  954. <span class="addr">{{ item.name }}</span>
  955. </template>
  956. </el-autocomplete>
  957. </el-form-item>
  958. </el-col>
  959. <el-col :span="8">
  960. <el-form-item label="传染病:">
  961. <el-input style="width:180px" v-model="userform.contagion" :disabled="true"></el-input>
  962. </el-form-item>
  963. </el-col>
  964. </el-row>
  965. <el-row>
  966. <el-col :span="8">
  967. <el-form-item label="透析方式:">
  968. <el-select v-model="userform.dialysis_mode" placeholder="请选择" class="a">
  969. <el-option
  970. v-for="item in treatmode"
  971. :key="item.id"
  972. :label="item.name"
  973. :value="item.id">
  974. </el-option>
  975. </el-select>
  976. </el-form-item>
  977. </el-col>
  978. <el-col :span="8">
  979. <el-form-item label="上机时间:">
  980. <el-date-picker
  981. type="datetime"
  982. format="yyyy-MM-dd HH:mm"
  983. value-format="yyyy-MM-dd HH:mm"
  984. placeholder="选择时间"
  985. v-model="userform.start_time"
  986. style="width:200px;"
  987. ></el-date-picker>
  988. </el-form-item>
  989. </el-col>
  990. <el-col :span="8">
  991. <el-form-item label="下机时间:">
  992. <el-date-picker
  993. type="datetime"
  994. format="yyyy-MM-dd HH:mm"
  995. value-format="yyyy-MM-dd HH:mm"
  996. placeholder="选择时间"
  997. v-model="userform.end_time"
  998. style="width:200px;"
  999. ></el-date-picker>
  1000. </el-form-item>
  1001. </el-col>
  1002. </el-row>
  1003. <el-row>
  1004. <el-col :span="8">
  1005. <el-form-item label="透析时长:">
  1006. <el-input style="width:180px" v-model="userform.dialysis_time"></el-input>
  1007. </el-form-item>
  1008. </el-col>
  1009. <el-col :span="8">
  1010. <el-form-item label="实际超滤量(L)">
  1011. <el-input style="width:180px" v-model="userform.hyperfiltratio"></el-input>
  1012. </el-form-item>
  1013. </el-col>
  1014. <el-col :span="8">
  1015. <el-form-item label="体重减少(kg):">
  1016. <el-input style="width:180px" v-model="userform.weight_loss"></el-input>
  1017. </el-form-item>
  1018. </el-col>
  1019. </el-row>
  1020. <el-row>
  1021. <el-col :span="8">
  1022. <el-form-item label="预警值:">
  1023. <el-input style="width:180px" v-model="userform.warning_value"></el-input>
  1024. </el-form-item>
  1025. </el-col>
  1026. <el-col :span="8">
  1027. <el-form-item label="使用次数:">
  1028. <el-input style="width:180px" v-model="userform.user_total" :disabled="true"></el-input>
  1029. </el-form-item>
  1030. </el-col>
  1031. <el-col :span="8">
  1032. <el-form-item label="运行:">
  1033. <el-radio-group v-model="userform.run" @change="changeRun">
  1034. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOption" :key="gender.id">{{gender.name}}</el-radio>
  1035. </el-radio-group>
  1036. </el-form-item>
  1037. </el-col>
  1038. </el-row>
  1039. <el-row>
  1040. <el-col>
  1041. <el-form-item label="故障发生阶段:">
  1042. <el-radio-group v-model="userform.failure_stage" :disabled ="runDisable">
  1043. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
  1044. </el-radio-group>
  1045. </el-form-item>
  1046. </el-col>
  1047. </el-row>
  1048. <el-row>
  1049. <el-col :span="24">
  1050. <el-form-item label="故障描述:">
  1051. <el-input style="width:800px" v-model="userform.fault_description"></el-input>
  1052. </el-form-item>
  1053. </el-col>
  1054. </el-row>
  1055. <el-row>
  1056. <el-col :span="24">
  1057. <el-form-item class="stoppage" label="故障提示信息及代码:">
  1058. <el-input style="width:700px" v-model="userform.code_information"></el-input>
  1059. </el-form-item>
  1060. </el-col>
  1061. </el-row>
  1062. <el-row>
  1063. <el-form-item label="机器消毒:"></el-form-item>
  1064. </el-row>
  1065. <el-row>
  1066. <el-col :span="2">
  1067. <el-form-item label="①机表"></el-form-item>
  1068. </el-col>
  1069. <el-col :span="8">
  1070. <el-form-item label="消毒方式:" required prop="disinfect_type">
  1071. <el-select v-model="userform.disinfect_type" placeholder="请选择" >
  1072. <el-option
  1073. v-for="item in disinfectType"
  1074. :key="item.id"
  1075. :label="item.name"
  1076. :value="item.id"
  1077. style="width:150px">
  1078. </el-option>
  1079. </el-select>
  1080. </el-form-item>
  1081. </el-col>
  1082. <el-col :span="8">
  1083. <el-form-item label="消毒液:" required prop="disinfectant_type">
  1084. <el-select v-model="userform.disinfectant_type" placeholder="请选择" >
  1085. <el-option
  1086. v-for="item in disinfectantType"
  1087. :key="item.id"
  1088. :label="item.name"
  1089. :value="item.id"
  1090. style="width:150px">
  1091. </el-option>
  1092. </el-select>
  1093. </el-form-item>
  1094. </el-col>
  1095. </el-row>
  1096. <el-row>
  1097. <el-col :span="8">
  1098. <el-form-item label="消毒状态:" required prop="disinfection">
  1099. <el-select v-model="userform.disinfection" placeholder="请选择" >
  1100. <el-option
  1101. v-for="item in disinfection"
  1102. :key="item.id"
  1103. :label="item.name"
  1104. :value="item.id"
  1105. style="width:100px">
  1106. </el-option>
  1107. </el-select>
  1108. </el-form-item>
  1109. </el-col>
  1110. <el-col :span="8">
  1111. <el-form-item label="运行:">
  1112. <el-radio-group v-model="userform.machine_run">
  1113. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOptions" :key="index">{{gender.name}}</el-radio>
  1114. </el-radio-group>
  1115. </el-form-item>
  1116. </el-col>
  1117. </el-row>
  1118. <el-row>
  1119. <el-col :span="2">
  1120. <el-form-item label="②液路"></el-form-item>
  1121. </el-col>
  1122. <el-col :span="8">
  1123. <el-form-item label="消毒方式:" required prop="fluid_path">
  1124. <el-select v-model="userform.fluid_path" placeholder="请选择" >
  1125. <el-option
  1126. v-for="item in sterilizeType"
  1127. :key="item.id"
  1128. :label="item.name"
  1129. :value="item.id"
  1130. style="width:135px">
  1131. </el-option>
  1132. </el-select>
  1133. </el-form-item>
  1134. </el-col>
  1135. <el-col :span="8">
  1136. <el-form-item label="消毒液:" required prop="disinfectant">
  1137. <el-select v-model="userform.disinfectant" placeholder="请选择" >
  1138. <el-option
  1139. v-for="item in fluidPathType"
  1140. :key="item.id"
  1141. :label="item.name"
  1142. :value="item.id"
  1143. style="width:100px">
  1144. </el-option>
  1145. </el-select>
  1146. </el-form-item>
  1147. </el-col>
  1148. </el-row>
  1149. <el-row>
  1150. <el-col :span="8">
  1151. <el-form-item label="消毒状态:" required prop="disinfection_status">
  1152. <el-select v-model="userform.disinfection_status" placeholder="请选择" >
  1153. <el-option
  1154. v-for="item in disinfection"
  1155. :key="item.id"
  1156. :label="item.name"
  1157. :value="item.id"
  1158. style="width:100px">
  1159. </el-option>
  1160. </el-select>
  1161. </el-form-item>
  1162. </el-col>
  1163. <el-col :span="8">
  1164. <el-form-item label="消毒液残留:">
  1165. <el-radio-group v-model="userform.disinfection_residue">
  1166. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in Disinfectant" :key="index">{{gender.name}}</el-radio>
  1167. </el-radio-group>
  1168. </el-form-item>
  1169. </el-col>
  1170. </el-row>
  1171. <el-row>
  1172. <el-col :span="8">
  1173. <el-form-item label="消毒时长:">
  1174. <el-input style="width:135px" v-model="userform.longtime"></el-input>分钟
  1175. </el-form-item>
  1176. </el-col>
  1177. <el-col :span="8">
  1178. <el-form-item label="开始消毒时间:">
  1179. <el-date-picker
  1180. type="datetime"
  1181. format="yyyy-MM-dd HH:mm"
  1182. value-format="yyyy-MM-dd HH:mm"
  1183. placeholder="选择时间"
  1184. v-model="userform.starttime"
  1185. style="width:200px;"
  1186. ></el-date-picker>
  1187. </el-form-item>
  1188. </el-col>
  1189. <el-col :span="8">
  1190. <el-form-item label="结束消毒时间:">
  1191. <el-date-picker
  1192. type="datetime"
  1193. format="yyyy-MM-dd HH:mm"
  1194. value-format="yyyy-MM-dd HH:mm"
  1195. placeholder="选择时间"
  1196. v-model="userform.endtime"
  1197. style="width:200px;"
  1198. ></el-date-picker>
  1199. </el-form-item>
  1200. </el-col>
  1201. </el-row>
  1202. <el-row>
  1203. <el-col :span="3">
  1204. <el-form-item label="透析机消毒液:"></el-form-item>
  1205. </el-col>
  1206. <el-col :span="2">
  1207. <el-checkbox v-model="userform.dialysis_checked">更换</el-checkbox>
  1208. </el-col>
  1209. <el-col :span="8">
  1210. <el-form-item label="名称:">
  1211. <el-select v-model="userform.dialysis_name" placeholder="请选择" >
  1212. <el-option
  1213. v-for="item in names"
  1214. :key="item.id"
  1215. :label="item.name"
  1216. :value="item.id"
  1217. style="width:200px">
  1218. </el-option>
  1219. </el-select>
  1220. </el-form-item>
  1221. </el-col>
  1222. <el-col :span="6">
  1223. <el-form-item label="规格:">
  1224. <el-input style="width:100px" v-model="userform.norms"></el-input>桶
  1225. </el-form-item>
  1226. </el-col>
  1227. </el-row>
  1228. <el-row>
  1229. <el-col>
  1230. <el-form-item label="浓度:">
  1231. <el-radio-group v-model="userform.dialysis_concentration">
  1232. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in potency" :key="index">{{gender.name}}</el-radio>
  1233. </el-radio-group>
  1234. <span class="warn" v-show="warnShow">您已一个月未更换,请注意检测</span>
  1235. </el-form-item>
  1236. </el-col>
  1237. </el-row>
  1238. <el-row>
  1239. <el-col :span="3">
  1240. <el-form-item label="细菌过滤器:"></el-form-item>
  1241. </el-col>
  1242. <el-col :span="7">
  1243. <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
  1244. <span class="warn" v-show="warnShowTwo">您已一个月未更换,请注意检测</span>
  1245. </el-col>
  1246. <el-col :span="8">
  1247. <el-form-item label="名称:">
  1248. <el-select v-model="userform.germ_name" placeholder="请选择" >
  1249. <el-option
  1250. v-for="item in germs"
  1251. :key="item.id"
  1252. :label="item.name"
  1253. :value="item.id"
  1254. style="width:200px">
  1255. </el-option>
  1256. </el-select>
  1257. </el-form-item>
  1258. </el-col>
  1259. <el-col :span="6">
  1260. <el-form-item label="数量:">
  1261. <el-input style="width:100px" v-model="userform.germ_number"></el-input>支
  1262. </el-form-item>
  1263. </el-col>
  1264. </el-row>
  1265. <el-row>
  1266. <el-col :span="3">
  1267. <el-form-item label="空气滤网清洁:"></el-form-item>
  1268. </el-col>
  1269. <el-col :span="10">
  1270. <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
  1271. <span class="warn" v-show="warnShowThree">您已一个月未清洁,请检查</span>
  1272. </el-col>
  1273. <el-col :span="10">
  1274. <el-form-item label="签名:" required prop="sign_name">
  1275. <el-select v-model="userform.sign_name" placeholder="请选择" >
  1276. <el-option
  1277. v-for="item in autograph"
  1278. :key="item.admin_user_id"
  1279. :label="item.user_name"
  1280. :value="item.admin_user_id"
  1281. style="width:100px">
  1282. </el-option>
  1283. </el-select>
  1284. </el-form-item>
  1285. </el-col>
  1286. </el-row>
  1287. <el-row>
  1288. <div class="elbutton">
  1289. <el-col :span="6">
  1290. <el-button>取消</el-button>
  1291. </el-col>
  1292. <el-col :span="2">
  1293. <el-button @click="SaveInformation('userform')">保存</el-button>
  1294. </el-col>
  1295. </div>
  1296. </el-row>
  1297. </el-form>
  1298. </el-tab-pane>
  1299. <el-tab-pane label="使用登记列表" name="second">
  1300. <user-form ref="userForm" :userdata="userdata"></user-form>
  1301. </el-tab-pane>
  1302. </el-tabs>
  1303. </div>
  1304. <div v-show="Ushow" class="zClass">
  1305. 暂无数据
  1306. </div>
  1307. </el-tab-pane>
  1308. <el-tab-pane label="质量控制" name="fourth">
  1309. <div v-show="zhiShow">
  1310. <el-tabs v-model="activeNameSix" @tab-click="handleClick">
  1311. <el-tab-pane label="新增质量控制" name="first">
  1312. <span>细菌培养</span>
  1313. <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
  1314. <el-row>
  1315. <el-col :span="8">
  1316. <el-form-item label="取样日期:">
  1317. <el-date-picker
  1318. v-model="qualityForm.date"
  1319. prefix-icon="none"
  1320. type="date"
  1321. placeholder="请选择"
  1322. format="yyyy-MM-dd"
  1323. value-format="yyyy-MM-dd"
  1324. style="width:150px">
  1325. </el-date-picker>
  1326. </el-form-item>
  1327. </el-col>
  1328. <el-col :span="8">
  1329. <el-form-item label="取样标本:">
  1330. <el-select style="width:130px" v-model="qualityForm.specimen" @change="changeSpecimen">
  1331. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1332. </el-select>
  1333. </el-form-item>
  1334. </el-col>
  1335. <el-col :span="8">
  1336. <el-form-item label="A浓缩液批号:">
  1337. <el-input style="width:130px" v-model="qualityForm.concentrate_noa" :disabled="disable"></el-input>
  1338. </el-form-item>
  1339. </el-col>
  1340. </el-row>
  1341. <el-row>
  1342. <el-col :span="8">
  1343. <el-form-item label="B浓缩液批号">
  1344. <el-input style="width:130px" v-model="qualityForm.concentrate_nob" :disabled="diableTwo"></el-input>
  1345. </el-form-item>
  1346. </el-col>
  1347. <el-col :span="8">
  1348. <el-form-item label="采样部位:">
  1349. <el-select style="width:130px" v-model="qualityForm.sampling_locationa">
  1350. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1351. </el-select>
  1352. </el-form-item>
  1353. </el-col>
  1354. <el-col :span="8">
  1355. <el-form-item label="检测单位:" required prop="detection_unit">
  1356. <el-input style="width:180px" v-model="qualityForm.detection_unit"></el-input>
  1357. </el-form-item>
  1358. </el-col>
  1359. </el-row>
  1360. <el-row>
  1361. <el-col :span="8">
  1362. <el-form-item label="取样者:" required prop="sampler">
  1363. <el-select style="width:130px" v-model="qualityForm.sampler">
  1364. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1365. </el-select>
  1366. </el-form-item>
  1367. </el-col>
  1368. <el-col :span="8">
  1369. <el-form-item label="出报告日期:">
  1370. <el-date-picker
  1371. v-model="qualityForm.reporting_date"
  1372. prefix-icon="none"
  1373. type="date"
  1374. placeholder="请选择"
  1375. format="yyyy-MM-dd"
  1376. value-format="yyyy-MM-dd"
  1377. style="width:150px">
  1378. </el-date-picker>
  1379. </el-form-item>
  1380. </el-col>
  1381. </el-row>
  1382. <el-row>
  1383. <el-col :span="24">
  1384. <el-form-item label="检测结果:(cfu/ml)">
  1385. <el-input
  1386. type="textarea"
  1387. :rows="2"
  1388. placeholder="请输入内容"
  1389. style="width:800px"
  1390. v-model="qualityForm.detection_result"
  1391. >
  1392. </el-input>
  1393. </el-form-item>
  1394. </el-col>
  1395. </el-row>
  1396. <el-row>
  1397. <el-col :span="24">
  1398. <span style="color:#FF9900">注:细菌检测应每个月一次,要求细菌数<100cfu/ml</span>
  1399. </el-col>
  1400. </el-row>
  1401. <el-row>
  1402. <div class="clearn">
  1403. <el-col :span="4">
  1404. <el-button @click="cleanSaveBacteria">取消</el-button>
  1405. </el-col>
  1406. <el-col :span="4">
  1407. <el-button @click="SaveBacteria('qualityForm')">保存</el-button>
  1408. </el-col>
  1409. </div>
  1410. </el-row>
  1411. </el-form>
  1412. <el-divider></el-divider>
  1413. <span>内毒素检测</span>
  1414. <el-form ref="qualityFormTwo" :model="qualityFormTwo" :rules="diaRules">
  1415. <el-row>
  1416. <el-col :span="8">
  1417. <el-form-item label="取样日期:">
  1418. <el-date-picker
  1419. v-model="qualityFormTwo.sampling_date"
  1420. prefix-icon="none"
  1421. type="date"
  1422. placeholder="请选择"
  1423. format="yyyy-MM-dd"
  1424. value-format="yyyy-MM-dd"
  1425. style="width:150px">
  1426. </el-date-picker>
  1427. </el-form-item>
  1428. </el-col>
  1429. <el-col :span="8">
  1430. <el-form-item label="取样标本:">
  1431. <el-select style="width:130px" v-model="qualityFormTwo.specimenb" @change="changeSpecimen">
  1432. <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1433. </el-select>
  1434. </el-form-item>
  1435. </el-col>
  1436. <el-col :span="8">
  1437. <el-form-item label="A浓缩液批号:">
  1438. <el-input style="width:130px" v-model="qualityFormTwo.concentrate_noc" :disabled="disable"></el-input>
  1439. </el-form-item>
  1440. </el-col>
  1441. </el-row>
  1442. <el-row>
  1443. <el-col :span="8">
  1444. <el-form-item label="B浓缩液批号:">
  1445. <el-input style="width:130px" v-model ="qualityFormTwo.concentrateb_nod" :disabled="diableTwo"></el-input>
  1446. </el-form-item>
  1447. </el-col>
  1448. <el-col :span="8">
  1449. <el-form-item label="采样部位:">
  1450. <el-select style="width:130px" v-model="qualityFormTwo.sampling_locationb">
  1451. <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
  1452. </el-select>
  1453. </el-form-item>
  1454. </el-col>
  1455. <el-col :span="8">
  1456. <el-form-item label="检测单位:" required prop="detection_unit">
  1457. <el-input style="width:180px" v-model ="qualityFormTwo.detection_unit"></el-input>
  1458. </el-form-item>
  1459. </el-col>
  1460. </el-row>
  1461. <el-row>
  1462. <el-col :span="8">
  1463. <el-form-item label="取样者:" required prop="samplerb">
  1464. <el-select style="width:130px" v-model="qualityFormTwo.samplerb">
  1465. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1466. </el-select>
  1467. </el-form-item>
  1468. </el-col>
  1469. <el-col :span="8">
  1470. <el-form-item label="出报告日期:">
  1471. <el-date-picker
  1472. v-model="qualityFormTwo.reporting_dateb"
  1473. prefix-icon="none"
  1474. type="date"
  1475. placeholder="请选择"
  1476. format="yyyy-MM-dd"
  1477. value-format="yyyy-MM-dd"
  1478. style="width:150px">
  1479. </el-date-picker>
  1480. </el-form-item>
  1481. </el-col>
  1482. </el-row>
  1483. <el-row>
  1484. <el-col :span="24">
  1485. <el-form-item label="检测结果:(EU/ml)">
  1486. <el-input
  1487. type="textarea"
  1488. :rows="2"
  1489. placeholder="请输入内容"
  1490. style="width:800px"
  1491. v-model="qualityFormTwo.detection_resultb"
  1492. >
  1493. </el-input>
  1494. </el-form-item>
  1495. </el-col>
  1496. </el-row>
  1497. <el-row>
  1498. <el-col :span="24">
  1499. <span style="color:#FF9900">注:内毒素检测应至少每3个月1次,要求内毒素<0.25EU/ml,每台透析机每年至少检测一次</span>
  1500. </el-col>
  1501. </el-row>
  1502. <el-row>
  1503. <div class="clearn">
  1504. <el-col :span="4">
  1505. <el-button @click="cleanLincomycin">取消</el-button>
  1506. </el-col>
  1507. <el-col :span="4">
  1508. <el-button @click="SaveLincomycin('qualityFormTwo')">保存</el-button>
  1509. </el-col>
  1510. </div>
  1511. </el-row>
  1512. </el-form>
  1513. <el-divider></el-divider>
  1514. <span>透析液离子浓度检测</span>
  1515. <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
  1516. <el-row>
  1517. <el-col :span="8">
  1518. <el-form-item label="取样日期:">
  1519. <el-date-picker
  1520. v-model="qualityFormThree.dateb"
  1521. prefix-icon="none"
  1522. type="date"
  1523. placeholder="请选择"
  1524. format="yyyy-MM-dd"
  1525. value-format="yyyy-MM-dd"
  1526. style="width:150px">
  1527. </el-date-picker>
  1528. </el-form-item>
  1529. </el-col>
  1530. <el-col :span="8">
  1531. <el-form-item label="取样者:" required prop="samplerc">
  1532. <el-select style="width:130px" v-model="qualityFormThree.samplerc">
  1533. <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
  1534. </el-select>
  1535. </el-form-item>
  1536. </el-col>
  1537. <el-col :span="8">
  1538. <el-form-item label="检测单位:" required prop="detection_unit">
  1539. <el-input style="width:180px" v-model ="qualityFormThree.detection_unit"></el-input>
  1540. </el-form-item>
  1541. </el-col>
  1542. </el-row>
  1543. <el-row>
  1544. <el-col :span="8">
  1545. <el-form-item label="A浓缩液批号:">
  1546. <el-input style="width:130px" v-model="qualityFormThree.concentrate_nof"></el-input>
  1547. </el-form-item>
  1548. </el-col>
  1549. <el-col :span="8">
  1550. <el-form-item label="B浓缩液批号:">
  1551. <el-input style="width:130px" v-model="qualityFormThree.concentrate_nog"></el-input>
  1552. </el-form-item>
  1553. </el-col>
  1554. <el-col :span="8">
  1555. <el-form-item label="出报告日期:">
  1556. <el-date-picker
  1557. v-model="qualityFormThree.date_reportc"
  1558. prefix-icon="none"
  1559. type="date"
  1560. placeholder="请选择"
  1561. format="yyyy-MM-dd"
  1562. value-format="yyyy-MM-dd"
  1563. style="width:150px">
  1564. </el-date-picker>
  1565. </el-form-item>
  1566. </el-col>
  1567. </el-row>
  1568. <el-row>
  1569. <el-col :span="8">
  1570. <!-- <span>Na<sup>+</sup></span> -->
  1571. <el-form-item label="实际Na﹢(mmol/L):">
  1572. <el-input style="width:100px" v-model="qualityFormThree.actual_na"></el-input>
  1573. </el-form-item>
  1574. </el-col>
  1575. <el-col :span="8">
  1576. <el-form-item label="配方Na﹢(mmol/L):">
  1577. <el-input style="width:100px" v-model="qualityFormThree.actual_pna"></el-input>
  1578. </el-form-item>
  1579. </el-col>
  1580. <el-col :span="8">
  1581. <el-form-item label="K﹢(mmol/L):">
  1582. <el-input style="width:100px" v-model="qualityFormThree.actual_k"></el-input>
  1583. </el-form-item>
  1584. </el-col>
  1585. </el-row>
  1586. <el-row>
  1587. <el-col :span="8">
  1588. <el-form-item label="Ca2﹢(mmol/L):">
  1589. <el-input style="width:100px" v-model="qualityFormThree.actual_ca"></el-input>
  1590. </el-form-item>
  1591. </el-col>
  1592. <el-col :span="8">
  1593. <el-form-item label="CI¯(mmol/L):">
  1594. <el-input style="width:100px" v-model="qualityFormThree.actual_ci"></el-input>
  1595. </el-form-item>
  1596. </el-col>
  1597. <el-col :span="8">
  1598. <el-form-item label="HCO3¯(mmol/L):">
  1599. <el-input style="width:100px" v-model="qualityFormThree.actual_hco"></el-input>
  1600. </el-form-item>
  1601. </el-col>
  1602. </el-row>
  1603. <el-row>
  1604. <el-col :span="8">
  1605. <el-form-item label="Mg2﹢(mmol/L):">
  1606. <el-input style="width:100px" v-model="qualityFormThree.actual_mg"></el-input>
  1607. </el-form-item>
  1608. </el-col>
  1609. <el-col :span="8">
  1610. <el-form-item label="PH:">
  1611. <el-input style="width:100px" v-model="qualityFormThree.actual_ph"></el-input>
  1612. </el-form-item>
  1613. </el-col>
  1614. </el-row>
  1615. <el-row>
  1616. <div></div>
  1617. </el-row>
  1618. <el-row>
  1619. <el-col :span="24">
  1620. <el-form-item label="备注:">
  1621. <el-input
  1622. type="textarea"
  1623. :rows="2"
  1624. placeholder="请输入内容"
  1625. style="width:500px"
  1626. v-model="qualityFormThree.remakes"
  1627. >
  1628. </el-input>
  1629. </el-form-item>
  1630. </el-col>
  1631. </el-row>
  1632. <el-row>
  1633. <div class="clearn">
  1634. <el-col :span="4">
  1635. <el-button @click="cleanQuality">取消</el-button>
  1636. </el-col>
  1637. <el-col :span="4">
  1638. <el-button @click="SaveQualityControl('qualityFormThree')">保存</el-button>
  1639. </el-col>
  1640. </div>
  1641. </el-row>
  1642. </el-form>
  1643. </el-tab-pane>
  1644. <el-tab-pane label="质量控制列表" name="second">
  1645. <quality-form ref="child"></quality-form>
  1646. </el-tab-pane>
  1647. </el-tabs>
  1648. </div>
  1649. <div v-show="zhShow" class="zClass">
  1650. 暂无数据
  1651. </div>
  1652. </el-tab-pane>
  1653. <el-tab-pane label="维修维护" name="five">
  1654. <el-tabs v-model="activeNameFive" @tab-click="handleClick">
  1655. <el-tab-pane label="新增维修维护" name="first">
  1656. <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
  1657. <el-row>
  1658. <el-col :span="8">
  1659. <el-form-item label="保修日期:" required prop="guarantee_date">
  1660. <el-date-picker
  1661. v-model="guaForm.guarantee_date"
  1662. prefix-icon="none"
  1663. type="date"
  1664. placeholder="请选择"
  1665. format="yyyy-MM-dd"
  1666. value-format="yyyy-MM-dd"
  1667. style="width:150px">
  1668. </el-date-picker>
  1669. </el-form-item>
  1670. </el-col>
  1671. <el-col :span="8">
  1672. <el-form-item label="出发时间:">
  1673. <el-date-picker
  1674. type="datetime"
  1675. format="yyyy-MM-dd HH:mm"
  1676. value-format="yyyy-MM-dd HH:mm"
  1677. placeholder="选择时间"
  1678. v-model="guaForm.start_time"
  1679. style="width:200px;">
  1680. </el-date-picker>
  1681. </el-form-item>
  1682. </el-col>
  1683. </el-row>
  1684. <el-row>
  1685. <el-col :span="8">
  1686. <el-form-item label="到达时间:">
  1687. <!-- <el-date-picker
  1688. v-model="guaForm.arrive_time"
  1689. prefix-icon="none"
  1690. type="date"
  1691. placeholder="请选择"
  1692. format="yyyy-MM-dd"
  1693. value-format="yyyy-MM-dd"
  1694. style="width:150px">
  1695. </el-date-picker> -->
  1696. <el-date-picker
  1697. type="datetime"
  1698. format="yyyy-MM-dd HH:mm"
  1699. value-format="yyyy-MM-dd HH:mm"
  1700. placeholder="选择时间"
  1701. v-model="guaForm.arrive_time"
  1702. style="width:200px;">
  1703. </el-date-picker>
  1704. </el-form-item>
  1705. </el-col>
  1706. <el-col :span="8">
  1707. <el-form-item label="完成时间:">
  1708. <el-date-picker
  1709. type="datetime"
  1710. format="yyyy-MM-dd HH:mm"
  1711. value-format="yyyy-MM-dd HH:mm"
  1712. placeholder="选择时间"
  1713. v-model="guaForm.finish_time"
  1714. style="width:200px;">
  1715. </el-date-picker>
  1716. </el-form-item>
  1717. </el-col>
  1718. <el-col :span="8">
  1719. <el-form-item label="总路程:(公里)">
  1720. <el-input style="width:200px" v-model = "guaForm.total_distance"></el-input>
  1721. </el-form-item>
  1722. </el-col>
  1723. </el-row>
  1724. <el-row>
  1725. <el-col :span="24">
  1726. <el-form-item label="故障发生阶段">
  1727. <el-radio-group v-model="guaForm.failure_stage">
  1728. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
  1729. </el-radio-group>
  1730. </el-form-item>
  1731. </el-col>
  1732. </el-row>
  1733. <el-row>
  1734. <el-col :span="24">
  1735. <el-form-item label="故障提示信息及代码">
  1736. <el-input
  1737. type="textarea"
  1738. :rows="2"
  1739. placeholder="请输入内容"
  1740. v-model="guaForm.code_information"
  1741. style="width:500px">
  1742. </el-input>
  1743. </el-form-item>
  1744. </el-col>
  1745. </el-row>
  1746. <el-row>
  1747. <el-col :span="8">
  1748. <el-form-item label="故障描述:" required prop="fault_description">
  1749. <el-input
  1750. type="textarea"
  1751. :rows="2"
  1752. placeholder="请输入内容"
  1753. v-model="guaForm.fault_description"
  1754. style="width:300px">
  1755. </el-input>
  1756. </el-form-item>
  1757. </el-col>
  1758. <el-col :span="8">
  1759. <el-form-item label="原因分析:">
  1760. <el-input
  1761. type="textarea"
  1762. :rows="2"
  1763. placeholder="请输入内容"
  1764. v-model="guaForm.cause_analysis"
  1765. style="width:300px">
  1766. </el-input>
  1767. </el-form-item>
  1768. </el-col>
  1769. <el-col :span="8">
  1770. <el-form-item label="处理过程:">
  1771. <el-input
  1772. type="textarea"
  1773. :rows="2"
  1774. placeholder="请输入内容"
  1775. v-model="guaForm.treatment_process"
  1776. style="width:300px">
  1777. </el-input>
  1778. </el-form-item>
  1779. </el-col>
  1780. </el-row>
  1781. <el-row>
  1782. <el-col :span="24">
  1783. <el-form-item label="上传图片:">
  1784. <el-upload
  1785. :data="uploadFileData"
  1786. class="upload-demo"
  1787. action="https://upload.qiniup.com"
  1788. :on-success="handleSuccess"
  1789. :before-upload="beforeUploadFile"
  1790. multiple
  1791. :on-preview="handlePreview"
  1792. :limit="1"
  1793. :on-exceed="handleExceed"
  1794. :on-remove="handleRemove"
  1795. :before-remove="beforeRemove"
  1796. :file-list="fileList">
  1797. <el-button size="small" type="primary">上传图片</el-button>
  1798. </el-upload>
  1799. <img v-if="guaForm.images" :src="guaForm.images" class="avatar">
  1800. </el-form-item>
  1801. </el-col>
  1802. </el-row>
  1803. <el-row>
  1804. <el-col :span="20">
  1805. <el-form-item label="故障是否排除:">
  1806. <el-radio-group v-model="guaForm.exclude">
  1807. <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in breakDown" :key="index">{{gender.name}}</el-radio>
  1808. </el-radio-group>
  1809. </el-form-item>
  1810. </el-col>
  1811. </el-row>
  1812. <el-row>
  1813. <el-col :span="20">
  1814. <el-form-item label="原因:">
  1815. <el-input
  1816. type="textarea"
  1817. :rows="2"
  1818. placeholder="请输入内容"
  1819. v-model="guaForm.reason"
  1820. style="width:300px">
  1821. </el-input>
  1822. </el-form-item>
  1823. </el-col>
  1824. </el-row>
  1825. <el-row>
  1826. <div class="clearn">
  1827. <el-col :span="4">
  1828. <el-button>取消</el-button>
  1829. </el-col>
  1830. <el-col :span="4">
  1831. <el-button @click="SaveRepair('guaForm')">保存</el-button>
  1832. </el-col>
  1833. </div>
  1834. </el-row>
  1835. </el-form>
  1836. </el-tab-pane>
  1837. <el-tab-pane label="维修维护列表" name="second">
  1838. <repair-form ref="child"></repair-form>
  1839. </el-tab-pane>
  1840. </el-tabs>
  1841. </el-tab-pane>
  1842. </el-tabs>
  1843. </div>
  1844. <!-- <el-autocomplete
  1845. popper-class="my-autocomplete"
  1846. v-model="state"
  1847. :fetch-suggestions="querySearch"
  1848. placeholder="请输入内容"
  1849. @select="handleSelect"
  1850. >
  1851. <i
  1852. class="el-icon-edit el-input__icon"
  1853. slot="suffix"
  1854. @click="handleIconClick">
  1855. </i>
  1856. <template slot-scope="{ item }">
  1857. <div class="name">{{ item.value }}</div>
  1858. <span class="addr">{{ item.address }}</span>
  1859. </template>
  1860. </el-autocomplete> -->
  1861. </el-main>
  1862. </el-container>
  1863. </el-container>
  1864. </el-container>
  1865. <!-- 新增计划 -->
  1866. <plan-form ref="planForm" :equimentid="equimentid" v-on:getAllPlan="getAllPlan" v-on:getAllPlanDetail="getAllPlanDetail" @func="getPlanData"></plan-form>
  1867. <!-- <edit-machine-form ref="editmachineform" :planid="planid" ></edit-machine-form> -->
  1868. <!-- 综合查询 -->
  1869. <multiple-form ref="multipleform" :equimentid="equimentid"></multiple-form>
  1870. <!-- 编辑消毒计划 -->
  1871. <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="50%" center>
  1872. <el-form :model="machineform" ref="machineform">
  1873. <el-row>
  1874. <el-col :span="10">
  1875. <el-form-item label="设备型号:">
  1876. <el-select style="width:135px" v-model="machineform.device_type">
  1877. <el-option
  1878. v-for="item in this.DeviceType"
  1879. :key="item.id"
  1880. :label="item.equitment_name"
  1881. :value="item.id"
  1882. ></el-option>
  1883. </el-select>
  1884. </el-form-item>
  1885. </el-col>
  1886. <el-col :span="10">
  1887. <el-form-item label="消毒时长:">
  1888. <el-input style="width:135px" v-model="machineform.disinfec_time"></el-input>
  1889. <span>分钟</span>
  1890. </el-form-item>
  1891. </el-col>
  1892. </el-row>
  1893. <el-row>
  1894. <el-col :span="10">
  1895. <el-form-item label="时间:">
  1896. <el-select
  1897. v-model="machineform.time"
  1898. placeholder="请选择时间"
  1899. style="width: 140px;"
  1900. >
  1901. <el-option
  1902. v-for="item in this.timeType"
  1903. :key="item.id"
  1904. :label="item.name"
  1905. :value="item.id"
  1906. ></el-option>
  1907. </el-select>
  1908. </el-form-item>
  1909. </el-col>
  1910. <el-col :span="10">
  1911. <el-form-item label="班次:">
  1912. <el-select
  1913. v-model="machineform.class_time"
  1914. placeholder="请选择时间"
  1915. style="width: 140px;"
  1916. >
  1917. <el-option
  1918. v-for="item in this.classType"
  1919. :key="item.id"
  1920. :label="item.name"
  1921. :value="item.id"
  1922. ></el-option>
  1923. </el-select>
  1924. </el-form-item>
  1925. </el-col>
  1926. </el-row>
  1927. <el-row>
  1928. <el-col :span="10">
  1929. <el-form-item label="机表消毒方式:">
  1930. <el-select style="width:135px" v-model="machineform.way">
  1931. <el-option
  1932. v-for="item in this.disinfectType"
  1933. :key="item.id"
  1934. :label="item.name"
  1935. :value="item.id"
  1936. ></el-option>
  1937. </el-select>
  1938. </el-form-item>
  1939. </el-col>
  1940. <el-col :span="10">
  1941. <el-form-item label="机表消毒液:">
  1942. <el-select
  1943. style="width:135px"
  1944. v-model="machineform.machine_disinfectant"
  1945. >
  1946. <el-option
  1947. v-for="item in this.disinfectantType"
  1948. :key="item.id"
  1949. :label="item.name"
  1950. :value="item.id"
  1951. ></el-option>
  1952. </el-select>
  1953. </el-form-item>
  1954. </el-col>
  1955. </el-row>
  1956. <el-row>
  1957. <el-col :span="10">
  1958. <el-form-item label="液路消毒方式:">
  1959. <el-select style="width:135px" v-model="machineform.disinfectant_way">
  1960. <el-option
  1961. v-for="item in this.sterilizeType"
  1962. :key="item.id"
  1963. :label="item.name"
  1964. :value="item.id"
  1965. ></el-option>
  1966. </el-select>
  1967. </el-form-item>
  1968. </el-col>
  1969. <el-col :span="10">
  1970. <el-form-item label="液路消毒液:">
  1971. <el-select style="width:135px" v-model="machineform.disinfectant">
  1972. <el-option
  1973. v-for="item in this.fluidPathType"
  1974. :key="item.id"
  1975. :label="item.name"
  1976. :value="item.id"
  1977. ></el-option>
  1978. </el-select>
  1979. </el-form-item>
  1980. </el-col>
  1981. </el-row>
  1982. </el-form>
  1983. <span slot="footer" class="dialog-footer">
  1984. <el-button @click="dialogVisible = false">取 消</el-button>
  1985. <el-button type="primary" @click="UpdatePlanInfo('machineform')">保存</el-button>
  1986. </span>
  1987. </el-dialog>
  1988. </div>
  1989. </div>
  1990. </template>
  1991. <script>
  1992. import BreadCrumb from '../components/bread-crumb'
  1993. import { getAllSubregion, getAllMachine, getMachineDetailById,
  1994. UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
  1995. getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
  1996. ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getAllpatient, UpdateMachineInfoTwo } from '@/api/manage'
  1997. import { uParseTime } from '@/utils/tools'
  1998. import { getToken } from '@/api/qiniu'
  1999. import PlanForm from './components/PlanForm'
  2000. import EditMachineForm from './components/EditMachineForm'
  2001. import MultipleForm from './components/MultipleForm'
  2002. import UserForm from './components/UserForm'
  2003. import QualityForm from './components/QualityForm'
  2004. import RepairForm from './components/RepairForm'
  2005. import { parseTime } from '@/utils'
  2006. import { getFileExtension } from '@/utils/tools'
  2007. import { PostSearch } from '@/api/patient'
  2008. const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD', 'HFHD+HP', 'PHF', 'HFR', 'HDF+HP', 'CRRT', '腹水回输']
  2009. const moment = require('moment')
  2010. export default {
  2011. name: 'home',
  2012. components: {
  2013. BreadCrumb,
  2014. PlanForm,
  2015. EditMachineForm,
  2016. MultipleForm,
  2017. UserForm,
  2018. QualityForm,
  2019. RepairForm
  2020. },
  2021. data() {
  2022. return {
  2023. crumbs: [
  2024. { path: false, name: '设备管理详情页' }
  2025. ],
  2026. tableData: [],
  2027. tableDatatwo: [],
  2028. planData: [],
  2029. DeviceTypeType: [
  2030. { id: 0, name: '全部' },
  2031. { id: 1, name: '透析机' },
  2032. { id: 2, name: '水处理机' },
  2033. { id: 3, name: '其他' }
  2034. ],
  2035. bedNumber: [],
  2036. zoneNumber: [],
  2037. Number: [],
  2038. form: {
  2039. id: '',
  2040. serial_number: '',
  2041. devicetype: '',
  2042. bed_number: '',
  2043. device_name: '',
  2044. manufacture_factory: '',
  2045. service_manufacturer: '',
  2046. unit_type: '',
  2047. use_section: '',
  2048. section_number: '',
  2049. buy_date: '',
  2050. install_date: '',
  2051. start_date: '',
  2052. maintenance_engineer: '',
  2053. telephone: '',
  2054. guarantee_date: '',
  2055. machine_status: '',
  2056. user_total: '',
  2057. remarks: '',
  2058. rubbish_date: '',
  2059. rubbish_reason: '',
  2060. user_year: '',
  2061. work_time: '',
  2062. treat_mode: [],
  2063. treat_type: [],
  2064. bed: '', // 治疗模式
  2065. Disinfection_mode: '',
  2066. revers_mode: ''
  2067. },
  2068. activeName: 'first',
  2069. activeNameTwo: 'first',
  2070. activeNameThree: 'first',
  2071. activeNameSix: 'first',
  2072. activeNameFive: 'first',
  2073. machineStatus: [
  2074. { id: 1, name: '使用机' },
  2075. { id: 2, name: '备用机' },
  2076. { id: 3, name: '急诊机' },
  2077. { id: 4, name: '报废机' }
  2078. ],
  2079. DisCardResion: [
  2080. { id: 0, name: '请选择' },
  2081. { id: 1, name: '超期限报废' },
  2082. { id: 2, name: '故障报废' },
  2083. { id: 3, name: '核定报废' }
  2084. ],
  2085. DeviceTypes: [
  2086. { id: 1, name: '透析机' },
  2087. { id: 2, name: '水处理机' },
  2088. { id: 3, name: '其他' }
  2089. ],
  2090. Classes: [
  2091. { id: 0, name: '全部' },
  2092. { id: 1, name: '上午' },
  2093. { id: 2, name: '下午' },
  2094. { id: 3, name: '晚上' }
  2095. ],
  2096. names: [
  2097. { id: 0, name: '请选择' },
  2098. { id: 1, name: '20%柠檬酸' },
  2099. { id: 2, name: '50%柠檬酸' },
  2100. { id: 3, name: '次氯酸钠' }
  2101. ],
  2102. germs: [
  2103. { id: 0, name: '请选择' },
  2104. { id: 1, name: '费森细菌过滤器' },
  2105. { id: 2, name: '日机装细菌过滤器' },
  2106. { id: 3, name: '贝朗机细菌过滤器' },
  2107. { id: 4, name: '东丽机细菌过滤器' }
  2108. ],
  2109. DisinfectionMode: [
  2110. { id: 0, name: '请选择' },
  2111. { id: 1, name: '化学消毒' },
  2112. { id: 2, name: '热消毒' },
  2113. { id: 3, name: '化学消毒+热消毒' }
  2114. ],
  2115. autograph: [],
  2116. bedZone: [],
  2117. bedZoneTwo: [],
  2118. forms: {
  2119. zone_id: '', // 分区号
  2120. class_id: '', // 班次
  2121. device_type: '', // 设备类型
  2122. date: ''
  2123. },
  2124. currentRow: null,
  2125. cancelShow: false,
  2126. confirmShow: false,
  2127. isIndeterminate: true,
  2128. checkAll: false,
  2129. cities: cityOptions,
  2130. rules: {
  2131. serial_number: [{ required: true, message: '请填写序列号' }],
  2132. device_name: [{ required: true, message: '请填写序列号' }],
  2133. devicetype: [{ required: true, message: '请填写设备类型' }],
  2134. unit_type: [{ required: true, message: '请填写设备型号' }]
  2135. },
  2136. qualitRules: {
  2137. detection_unit: [{ required: true, message: '请填写检测单位' }],
  2138. sampler: [{ required: true, message: '请填写取样者' }]
  2139. },
  2140. diaRules: {
  2141. detection_unit: [{ required: true, message: '请填写检测单位' }],
  2142. samplerb: [{ required: true, message: '请填写取样者' }]
  2143. },
  2144. repirRules: {
  2145. guarantee_date: [{ required: true, message: '请填写保修日期' }],
  2146. fault_description: [{ required: true, message: '请填写故障描述' }]
  2147. },
  2148. ruleThree: {
  2149. detection_unit: [{ required: true, message: '请填写检测单位' }],
  2150. samplerc: [{ required: true, message: '请填写取样者' }]
  2151. },
  2152. userRules: {
  2153. date: [{ required: true, message: '请填写日期' }],
  2154. zone: [{ required: true, message: '请填写分区' }],
  2155. bed_number: [{ required: true, message: '请填写机位号' }],
  2156. patient_name: [{ required: true, message: '请填写患者' }],
  2157. disinfect_type: [{ required: true, message: '请填写消毒方式' }],
  2158. disinfectant_type: [{ required: true, message: '请填写消毒液' }],
  2159. disinfection: [{ required: true, message: '请填写消毒状态' }],
  2160. fluid_path: [{ required: true, message: '请填写消毒方式' }],
  2161. disinfectant: [{ required: true, message: '请填写消毒液' }],
  2162. disinfection_status: [{ required: true, message: '消毒状态' }],
  2163. sign_name: [{ required: true, message: '请填写签名' }]
  2164. },
  2165. runOption: [
  2166. { id: 1, name: '正常' },
  2167. { id: 2, name: '故障' }
  2168. ],
  2169. runOptions: [
  2170. { id: 1, name: '达标' },
  2171. { id: 2, name: '未达标' }
  2172. ],
  2173. faultPhase: [
  2174. { id: 1, name: '开机启动' },
  2175. { id: 2, name: '自检' },
  2176. { id: 3, name: '准备' },
  2177. { id: 4, name: '治疗' },
  2178. { id: 5, name: '消毒' }
  2179. ],
  2180. Disinfectant: [
  2181. { id: 1, name: '有' },
  2182. { id: 2, name: '无' }
  2183. ],
  2184. potency: [
  2185. { id: 1, name: '达标' },
  2186. { id: 2, name: '未达标' }
  2187. ],
  2188. sampling: [],
  2189. DeviceType: [],
  2190. equimentid: 0,
  2191. checkAllStatus: false,
  2192. checkAllStatusOne: false,
  2193. selectMachines: [],
  2194. selectMachinesOne: [],
  2195. machineIndex: -1,
  2196. planid: 0,
  2197. machineform: {
  2198. id: '',
  2199. device_type: '',
  2200. disinfec_time: '',
  2201. time: '',
  2202. class_time: '',
  2203. way: '',
  2204. machine_disinfectant: '',
  2205. disinfectant_way: '',
  2206. disinfectant: ''
  2207. },
  2208. dialogVisible: false,
  2209. timeType: [
  2210. { id: 1, name: '周一' },
  2211. { id: 2, name: '周二' },
  2212. { id: 3, name: '周三' },
  2213. { id: 4, name: '周四' },
  2214. { id: 5, name: '周五' },
  2215. { id: 6, name: '周六' },
  2216. { id: 7, name: '周日' }
  2217. ],
  2218. classType: [
  2219. { id: 0, name: '请选择' },
  2220. { id: 1, name: '上午' },
  2221. { id: 2, name: '下午' },
  2222. { id: 3, name: '晚上' }
  2223. ],
  2224. // 基表消毒方式
  2225. disinfectType:
  2226. [
  2227. { id: 0, name: '/' },
  2228. { id: 1, name: '擦拭' },
  2229. { id: 2, name: '化学消毒' }
  2230. ],
  2231. // 基表消毒液
  2232. disinfectantType: [
  2233. { id: 0, name: '/' },
  2234. { id: 1, name: '0.22%季铵盐' },
  2235. { id: 2, name: '500mg/l含氯消毒剂' },
  2236. { id: 3, name: '1000mg/l含氯消毒剂' },
  2237. { id: 4, name: '1500mg/l含氯消毒剂' }
  2238. ],
  2239. // 夜路消毒方式
  2240. sterilizeType: [
  2241. { id: 0, name: '/' },
  2242. { id: 1, name: '热化学消毒' },
  2243. { id: 2, name: '化学消毒 + 除钙' },
  2244. { id: 3, name: '热化学消毒 + 除钙' },
  2245. { id: 4, name: '热消毒' },
  2246. { id: 5, name: '化学消毒' },
  2247. { id: 6, name: '除钙' },
  2248. { id: 7, name: '清洗' }
  2249. ],
  2250. // 夜路消毒液
  2251. fluidPathType: [
  2252. { id: 0, name: '/' },
  2253. { id: 1, name: '20%柠檬酸' },
  2254. { id: 2, name: '25%柠檬酸' },
  2255. { id: 3, name: '50%柠檬酸' },
  2256. { id: 4, name: '50%柠檬酸 + 5%次氯酸钠' },
  2257. { id: 5, name: '20%柠檬酸 + 10%冰醋酸' },
  2258. { id: 6, name: '0.2%过氧化乙酸' },
  2259. { id: 7, name: '10%冰醋酸' },
  2260. { id: 8, name: '50%冰醋酸' },
  2261. { id: 9, name: '5%次氯酸钠' }
  2262. ],
  2263. userform: {
  2264. id: 0,
  2265. date: moment(new Date()).format('YYYY-MM-DD'), // 日期
  2266. classtype: '', // 班次
  2267. zone: '', // 分区
  2268. bed_number: '', // 床位号
  2269. patient_name: '', // 患者
  2270. contagion: '', // 传染病
  2271. dialysis_mode: '', // 透析方式
  2272. start_time: '', // 上机时间
  2273. end_time: '', // 下机时间
  2274. dialysis_time: '', // 透析时长
  2275. hyperfiltratio: '', // 实际超滤量
  2276. weight_loss: '', // 体重减少
  2277. warning_value: '', // 预警值
  2278. user_total: '', // 使用次数
  2279. run: 1, // 运行
  2280. failure_stage: '', // 故事发生阶段
  2281. fault_description: '', // 故障描述
  2282. code_information: '', // 故障提示及代码
  2283. // 机器消毒
  2284. disinfect_type: 1, // 消毒方式
  2285. disinfectant_type: 2, // 消毒液
  2286. disinfection: 1, // 消毒状态
  2287. machine_run: 1, // 运行
  2288. // 液路
  2289. fluid_path: 3, // 消毒方式
  2290. disinfectant: 3, // 消毒液
  2291. disinfection_status: 1, // 消毒状态
  2292. disinfection_residue: 1, // 消毒液残留
  2293. longtime: '', // 消毒时长
  2294. starttime: '', // 开始消毒时间
  2295. endtime: '', // 结束消毒时间
  2296. dialysis_checked: '', // 更换
  2297. dialysis_name: '', // 名称
  2298. norms: '', // 规格
  2299. dialysis_concentration: 1, // 浓度
  2300. germ_checked: '', // 更换
  2301. germ_name: '', // 名称
  2302. germ_number: '', // 数量
  2303. clean: '', // 清洁
  2304. sign_name: '', // 签名
  2305. patient_id: ''
  2306. },
  2307. treatmentmodes: [
  2308. { id: 1, name: 'HD' },
  2309. { id: 2, name: 'HDF' },
  2310. { id: 3, name: 'HD+HP' },
  2311. { id: 4, name: 'HP' },
  2312. { id: 5, name: 'HF' },
  2313. { id: 6, name: 'SCUF' },
  2314. { id: 7, name: 'IUF' },
  2315. { id: 8, name: 'HFHD+HP' },
  2316. { id: 9, name: 'HFR' },
  2317. { id: 10, name: 'HDF+HP' },
  2318. { id: 11, name: 'GRRT' },
  2319. { id: 12, name: '腹水回输' }
  2320. ],
  2321. treatmode: [
  2322. { id: 0, name: '请选择' },
  2323. { id: 1, name: 'HD' },
  2324. { id: 2, name: 'HDF' },
  2325. { id: 3, name: 'HD + HP' },
  2326. { id: 4, name: 'HP' },
  2327. { id: 5, name: 'HF' },
  2328. { id: 6, name: 'SCUF' },
  2329. { id: 7, name: 'IUF' },
  2330. { id: 8, name: 'HFHD' },
  2331. { id: 9, name: 'HFHD+HP' },
  2332. { id: 10, name: 'PHF' },
  2333. { id: 11, name: 'HFR' },
  2334. { id: 12, name: 'HDF+HP' },
  2335. { id: 13, name: 'CRRT' },
  2336. { id: 14, name: '腹水回输' },
  2337. { id: 15, name: 'HD前置换' },
  2338. { id: 16, name: 'HD后置换' },
  2339. { id: 17, name: 'HDF前置换' },
  2340. { id: 18, name: 'HDF后置换' }
  2341. ],
  2342. disinfection: [
  2343. { id: 1, name: '已消毒' },
  2344. { id: 2, name: '未消毒' },
  2345. { id: 3, name: '消毒未完成' }
  2346. ],
  2347. patientName: [],
  2348. start: '',
  2349. end: '',
  2350. // 细菌培养
  2351. qualityForm: {
  2352. date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  2353. specimen: '', // 取样标本
  2354. concentrate_noa: '', // 浓A
  2355. concentrate_nob: '', // 浓B,
  2356. sampling_locationa: '', // 采样部位
  2357. detection_unit: '', // 检测单位
  2358. sampler: '', // 取样者
  2359. reporting_date: '', // 报告日期
  2360. detection_result: '' // 检测结果
  2361. },
  2362. qualityFormTwo: {
  2363. // 内毒素检测
  2364. detection_unit: '', // 检测单位
  2365. sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  2366. specimenb: '', // 取样标本
  2367. concentrate_noc: '', // A浓缩液批号
  2368. concentrateb_nod: '', // B浓
  2369. sampling_locationb: '', // 采样部位
  2370. samplerb: '', // 取样者
  2371. reporting_dateb: '', // 出报告日期
  2372. detection_resultb: '' // 检测结果
  2373. },
  2374. qualityFormThree: {
  2375. detection_unit: '', // 检测单位
  2376. // 透析液离子浓度检测
  2377. dateb: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
  2378. samplerc: '', // 取样者
  2379. concentrate_nof: '', // A浓
  2380. concentrate_nog: '', // B浓
  2381. date_reportc: '', // 出报告日期
  2382. actual_na: '',
  2383. actual_pna: '',
  2384. actual_k: '',
  2385. actual_ca: '',
  2386. actual_ci: '',
  2387. actual_hco: '',
  2388. actual_mg: '',
  2389. actual_ph: '',
  2390. remakes: ''
  2391. },
  2392. disable: false,
  2393. diableTwo: false,
  2394. samplingSpecimen: [
  2395. { id: 0, name: '请选择' },
  2396. { id: 1, name: '透析液' },
  2397. { id: 2, name: 'A浓缩液' },
  2398. { id: 3, name: 'B浓缩液' },
  2399. { id: 4, name: '置换液' },
  2400. { id: 5, name: '透析用水' }
  2401. ],
  2402. samplingLocation: [
  2403. { id: 0, name: '请选择' },
  2404. { id: 1, name: '透析液入口' },
  2405. { id: 2, name: '透析液取样口' },
  2406. { id: 3, name: '置换液出口' },
  2407. { id: 4, name: '透析机反渗水入口' }
  2408. ],
  2409. breakDown: [
  2410. { id: 1, name: '是' },
  2411. { id: 2, name: '待观察' },
  2412. { id: 3, name: '未解决' }
  2413. ],
  2414. guaForm: {
  2415. guarantee_date: moment(new Date()).format('YYYY-MM-DD'),
  2416. start_time: '',
  2417. arrive_time: '',
  2418. finish_time: '',
  2419. total_distance: '',
  2420. failure_stage: '',
  2421. fault_description: '',
  2422. cause_analysis: '',
  2423. treatment_process: '',
  2424. images: '',
  2425. exclude: '',
  2426. reason: '',
  2427. code_information: ''
  2428. },
  2429. qiniuDomain: 'https://images.shengws.com/',
  2430. uploadFileData: { token: '', key: '' },
  2431. tShow: false,
  2432. sShow: false,
  2433. qShow: false,
  2434. readisable: true,
  2435. fileList: [],
  2436. DisShow: true,
  2437. DioShow: false,
  2438. zhiShow: true,
  2439. zhShow: false,
  2440. UserShow: true,
  2441. Ushow: false,
  2442. restaurants: [],
  2443. state: '',
  2444. userdata: 0,
  2445. disableThree: true,
  2446. disableFour: true,
  2447. disableFive: true,
  2448. runDisable: true,
  2449. warnShow: false,
  2450. warnShowTwo: false,
  2451. warnShowThree: false,
  2452. bedZoneThree: [],
  2453. bedNumberTwo: [],
  2454. reverseMode: [
  2455. { id: 0, name: '请选择' },
  2456. { id: 1, name: '单级反渗' },
  2457. { id: 2, name: '双级反渗' }
  2458. ]
  2459. }
  2460. },
  2461. methods: {
  2462. changeRun(val) {
  2463. if (val === 1) {
  2464. this.runDisable = true
  2465. this.userform.failure_stage = ''
  2466. }
  2467. if (val === 2) {
  2468. this.runDisable = false
  2469. }
  2470. },
  2471. handleClick(tab, event) {
  2472. console.log(tab, event)
  2473. },
  2474. handleExceed(file) {
  2475. console.log(file)
  2476. },
  2477. handleRemove(file, fileList) {
  2478. },
  2479. beforeRemove(file, fileList) {
  2480. console.log(file, fileList)
  2481. },
  2482. handlePreview(file) {
  2483. console.log(file)
  2484. },
  2485. changetreatmentmode(val) {
  2486. const checkedCount = val.length
  2487. this.checkAll = checkedCount === this.treatmentmode.length
  2488. this.isIndeterminate = checkedCount > 0 && checkedCount < this.treatmentmode.length
  2489. },
  2490. handleCheckAllChange(val) {
  2491. this.form.treat_mode = val ? cityOptions : []
  2492. this.isIndeterminate = false
  2493. },
  2494. handleCheckedCitiesChange(value) {
  2495. const checkedCount = value.length
  2496. this.checkAll = checkedCount === this.cities.length
  2497. this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length
  2498. },
  2499. // 获取所有分区
  2500. getAllSubregion() {
  2501. getAllSubregion().then(response => {
  2502. var zones = response.data.data.zones
  2503. this.deviceType = zones
  2504. var numbers = response.data.data.numbers
  2505. var zone = [{ id: 0, name: '全部' }]
  2506. for (let i = 0; i < zones.length; i++) {
  2507. const item = zones[i]
  2508. zone.push({ id: item.id, name: item.name })
  2509. }
  2510. var devicenumber = response.data.data.devicenumber
  2511. this.bedZone = zone
  2512. var zoness = [{ id: 0, name: '请选择' }]
  2513. for (let i = 0; i < zones.length; i++) {
  2514. const item = zones[i]
  2515. zoness.push({ id: item.id, name: item.name })
  2516. }
  2517. var bed = [{ id: 0, number: '请选择' }]
  2518. for (let i = 0; i < numbers.length; i++) {
  2519. const item = numbers[i]
  2520. console.log(item)
  2521. bed.push({ id: item.id, number: item.number })
  2522. }
  2523. this.bedNumberTwo = bed
  2524. this.bedZoneTwo = zones
  2525. this.bedZoneThree = zoness
  2526. this.bedNumber = numbers
  2527. this.Number = devicenumber
  2528. })
  2529. },
  2530. changeBedNumber(val) {
  2531. this.forms.zone_id = val
  2532. this.getAllMachine()
  2533. },
  2534. changeClassId(val) {
  2535. this.forms.class_id = val
  2536. this.getAllMachine()
  2537. },
  2538. changeDeviceId(val) {
  2539. this.forms.device_type = val
  2540. this.getAllMachine()
  2541. },
  2542. getAllMachine() {
  2543. getAllMachine(this.forms.zone_id, this.forms.class_id, this.forms.device_type).then(response => {
  2544. if (response.data.state === 1) {
  2545. var addmahcer = response.data.data.addmahcer
  2546. this.tableDatatwo = addmahcer
  2547. var index = this.$route.query.index
  2548. this.$refs.singleTable.setCurrentRow(this.tableDatatwo[index])
  2549. }
  2550. })
  2551. },
  2552. handleCurrentChange(val) {
  2553. console.log('val是什么', val)
  2554. this.currentRow = val
  2555. this.$forceUpdate()
  2556. this.getMachineDetailById(val.id)
  2557. this.equimentid = val.id
  2558. this.userdata = val.id
  2559. this.getAllPlanDetail(val.unit_type)
  2560. this.getPatientInfo(val.id)
  2561. // 获取基本信息
  2562. this.getUserRegister(val.id)
  2563. // 病人下机后插入数据
  2564. this.getAutoData(val.id)
  2565. this.getTotalNumber(val.id)
  2566. this.getTimeWarning(val.id)
  2567. },
  2568. getAutoData(id) {
  2569. getAutoData(id).then(response => {
  2570. if (response.data.state === 1) {
  2571. var dialysis = response.data.data.dialysis
  2572. }
  2573. })
  2574. },
  2575. getMachineDetailById(id) {
  2576. getMachineDetailById(id).then(response => {
  2577. if (response.data.state === 1) {
  2578. var addmacher = response.data.data.addmacher
  2579. // console.log('addmacher======', addmacher)
  2580. if (addmacher.device_type === 1) {
  2581. this.sShow = false
  2582. this.qShow = false
  2583. this.tShow = true
  2584. this.DisShow = true
  2585. this.DioShow = false
  2586. this.zhiShow = true
  2587. this.zhShow = false
  2588. this.UserShow = true
  2589. this.Ushow = false
  2590. }
  2591. if (addmacher.device_type === 2) {
  2592. this.tShow = false
  2593. this.qShow = false
  2594. this.sShow = true
  2595. this.DisShow = false
  2596. this.DioShow = true
  2597. this.zhiShow = true
  2598. this.zhShow = false
  2599. this.UserShow = true
  2600. this.Ushow = false
  2601. }
  2602. if (addmacher.device_type === 3) {
  2603. this.tShow = false
  2604. this.sShow = false
  2605. this.qShow = true
  2606. this.DisShow = false
  2607. this.DioShow = true
  2608. this.zhiShow = false
  2609. this.zhShow = true
  2610. this.UserShow = false
  2611. this.Ushow = true
  2612. }
  2613. var mode = response.data.data.mode
  2614. var zone = response.data.data.zone
  2615. const arr1 = []
  2616. // const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD+HP', 'HFR', 'HDF+HP', 'GRRT', '腹水回收']
  2617. for (let index = 0; index < mode.length; index++) {
  2618. if (mode[index].treate_mode === 1) {
  2619. mode[index] = 'HD'
  2620. }
  2621. if (mode[index].treate_mode === 2) {
  2622. mode[index] = 'HDF'
  2623. }
  2624. if (mode[index].treate_mode === 3) {
  2625. mode[index] = 'HD+HP'
  2626. }
  2627. if (mode[index].treate_mode === 4) {
  2628. mode[index] = 'HP'
  2629. }
  2630. if (mode[index].treate_mode === 5) {
  2631. mode[index] = 'HF'
  2632. }
  2633. if (mode[index].treate_mode === 6) {
  2634. mode[index] = 'SCUF'
  2635. }
  2636. if (mode[index].treate_mode === 7) {
  2637. mode[index] = 'IUF'
  2638. }
  2639. if (mode[index].treate_mode === 8) {
  2640. mode[index] = 'HFHD'
  2641. }
  2642. if (mode[index].treate_mode === 9) {
  2643. mode[index] = 'HFHD+HP'
  2644. }
  2645. if (mode[index].treate_mode === 10) {
  2646. mode[index] = 'PHF'
  2647. }
  2648. if (mode[index].treate_mode === 11) {
  2649. mode[index] = 'HFR'
  2650. }
  2651. if (mode[index].treate_mode === 12) {
  2652. mode[index] = 'HDF+HP'
  2653. }
  2654. if (mode[index].treate_mode === 13) {
  2655. mode[index] = 'CRRT'
  2656. }
  2657. if (mode[index].treate_mode === 14) {
  2658. mode[index] = '腹水回输'
  2659. }
  2660. arr1.push(mode[index])
  2661. }
  2662. this.form.treat_mode = arr1
  2663. this.form.id = addmacher.id
  2664. this.form.serial_number = addmacher.serial_number
  2665. this.form.devicetype = addmacher.device_type
  2666. this.form.bed_number = addmacher.bed_number
  2667. this.form.device_name = addmacher.device_name
  2668. this.form.manufacture_factory = addmacher.manufacture_factory
  2669. this.form.service_manufacturer = addmacher.service_manufacturer
  2670. this.form.unit_type = addmacher.unit_type
  2671. this.form.use_section = addmacher.use_section
  2672. this.form.section_number = addmacher.section_number
  2673. if (addmacher.buy_date !== 0) {
  2674. this.form.buy_date = uParseTime(addmacher.buy_date, '{y}-{m}-{d}')
  2675. }
  2676. if (addmacher.install_date !== 0) {
  2677. this.form.install_date = uParseTime(addmacher.install_date, '{y}-{m}-{d}')
  2678. }
  2679. if (addmacher.start_date !== 0) {
  2680. this.form.start_date = uParseTime(addmacher.start_date, '{y}-{m}-{d}')
  2681. }
  2682. this.form.maintenance_engineer = addmacher.maintenace_engineer
  2683. this.form.telephone = addmacher.telephone
  2684. this.form.guarantee_date = addmacher.guarantee_date
  2685. this.form.machine_status = addmacher.machine_status
  2686. this.form.user_total = addmacher.user_total
  2687. this.form.remarks = addmacher.remarks
  2688. if (addmacher.rubbish_date !== 0) {
  2689. this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
  2690. }
  2691. this.form.rubbish_reason = addmacher.rubbish_reason
  2692. this.form.user_year = addmacher.user_year
  2693. this.form.work_time = addmacher.work_time
  2694. // eslint-disable-next-line eqeqeq
  2695. if (addmacher.disinfection_mode == 0) {
  2696. this.form.Disinfection_mode = 0
  2697. } else {
  2698. this.form.Disinfection_mode = addmacher.disinfection_mode
  2699. }
  2700. // eslint-disable-next-line eqeqeq
  2701. if (addmacher.revers_mode == 0) {
  2702. this.form.revers_mode = 0
  2703. } else {
  2704. this.form.revers_mode = addmacher.revers_mode
  2705. }
  2706. this.getAllSubregion()
  2707. }
  2708. })
  2709. },
  2710. UpdateMachine() {
  2711. this.cancelShow = true
  2712. this.confirmShow = true
  2713. this.disableThree = false
  2714. this.disableFour = false
  2715. this.disableFive = false
  2716. },
  2717. UpdateMachineInfo(formName) {
  2718. const arr2 = []
  2719. this.form.treat_mode.map((item, index) => {
  2720. const obj = {}
  2721. if (item === 'HD') {
  2722. obj.id = 1
  2723. }
  2724. if (item === 'HDF') {
  2725. obj.id = 2
  2726. }
  2727. if (item === 'HD+HP') {
  2728. obj.id = 3
  2729. }
  2730. if (item === 'HP') {
  2731. obj.id = 4
  2732. }
  2733. if (item === 'HF') {
  2734. obj.id = 5
  2735. }
  2736. if (item === 'SCUF') {
  2737. obj.id = 6
  2738. }
  2739. if (item === 'IUF') {
  2740. obj.id = 7
  2741. }
  2742. if (item === 'HFHD') {
  2743. obj.id = 8
  2744. }
  2745. if (item === 'HFHD+HP') {
  2746. obj.id = 9
  2747. }
  2748. if (item === 'PHF') {
  2749. obj.id = 10
  2750. }
  2751. if (item === 'HFR') {
  2752. obj.id = 11
  2753. }
  2754. if (item === 'HDF+HP') {
  2755. obj.id = 12
  2756. }
  2757. if (item === 'CRRT') {
  2758. obj.id = 13
  2759. }
  2760. if (item === '腹水回输') {
  2761. obj.id = 14
  2762. }
  2763. arr2.push(obj.id)
  2764. })
  2765. this.form.treat_type = arr2
  2766. var device_type = this.form.devicetype
  2767. var device_types = parseInt(device_type)
  2768. this.form.devicetype = device_types
  2769. if (this.form.rubbish_reason === '') {
  2770. this.form.rubbish_reason = 0
  2771. }
  2772. var rubbish_reason = this.form.rubbish_reason
  2773. var rubbish_reasons = parseInt(rubbish_reason)
  2774. this.form.rubbish_reason = rubbish_reasons
  2775. var machine_status = this.form.machine_status
  2776. var machine_statuss = parseInt(machine_status)
  2777. this.form.machine_status = machine_statuss
  2778. if (this.form.bed_number === '') {
  2779. this.form.bed_number = 0
  2780. }
  2781. var bed_numbers = this.form.bed_number
  2782. var bed_numberss = parseInt(bed_numbers)
  2783. this.form.bed_number = bed_numberss
  2784. this.$refs[formName].validate(valid => {
  2785. UpdateMachineInfo(this.form).then(response => {
  2786. if (response.data.state === 1) {
  2787. var addmacher = response.data.data.addmacher
  2788. this.$message.success('修改成功')
  2789. this.getAllSubregion()
  2790. this.getAllMachine()
  2791. this.$refs.singleTable.setCurrentRow(addmacher)
  2792. this.$forceUpdate()
  2793. }
  2794. })
  2795. })
  2796. },
  2797. // eslint-disable-next-line no-irregular-whitespace
  2798. // 更新水处理机
  2799. UpdateMachineInfoTwo(formName) {
  2800. var device_type = this.form.devicetype
  2801. var device_types = parseInt(device_type)
  2802. this.form.devicetype = device_types
  2803. if (this.form.rubbish_reason === '') {
  2804. this.form.rubbish_reason = 0
  2805. }
  2806. var rubbish_reason = this.form.rubbish_reason
  2807. var rubbish_reasons = parseInt(rubbish_reason)
  2808. this.form.rubbish_reason = rubbish_reasons
  2809. var machine_status = this.form.machine_status
  2810. var machine_statuss = parseInt(machine_status)
  2811. this.form.machine_status = machine_statuss
  2812. var revers_mode = this.form.revers_mode
  2813. var revers_modes = parseInt(revers_mode)
  2814. this.form.revers_mode = revers_modes
  2815. var disinfecction_modes = this.form.Disinfection_mode
  2816. var disinfecction_modess = parseInt(disinfecction_modes)
  2817. this.form.Disinfection_mode = disinfecction_modess
  2818. this.$refs[formName].validate(valid => {
  2819. if (valid) {
  2820. UpdateMachineInfoTwo(this.form).then(response => {
  2821. if (response.data.state === 1) {
  2822. // eslint-disable-next-line no-unused-vars
  2823. var addmacher = response.data.data.addmacher
  2824. this.$message.success('修改成功')
  2825. this.getAllMachine()
  2826. this.getAllSubregion()
  2827. }
  2828. })
  2829. }
  2830. })
  2831. },
  2832. UpdateMacheineTwo(formName) {
  2833. var device_type = this.form.devicetype
  2834. var device_types = parseInt(device_type)
  2835. this.form.devicetype = device_types
  2836. if (this.form.rubbish_reason === '') {
  2837. this.form.rubbish_reason = 0
  2838. }
  2839. var rubbish_reason = this.form.rubbish_reason
  2840. var rubbish_reasons = parseInt(rubbish_reason)
  2841. this.form.rubbish_reason = rubbish_reasons
  2842. var machine_status = this.form.machine_status
  2843. var machine_statuss = parseInt(machine_status)
  2844. this.form.machine_status = machine_statuss
  2845. this.$refs[formName].validate(valid => {
  2846. UpdateMacheineTwo(this.form).then(response => {
  2847. if (response.data.state === 1) {
  2848. var add = response.data.data.addmacher
  2849. this.$message.success('修改成功')
  2850. this.getAllMachine()
  2851. this.getAllSubregion()
  2852. }
  2853. })
  2854. })
  2855. },
  2856. cleanMainchine() {
  2857. this.confirmShow = false
  2858. this.cancelShow = false
  2859. // this.form.manufacture_factory = ""
  2860. // this.form.service_manufacturer= ""
  2861. // this.form.use_section= ""
  2862. // this.form.buy_date= ""
  2863. // this.form.install_date= ""
  2864. // this.form.start_date= ""
  2865. // this.form.maintenance_engineer= ""
  2866. // this.form.telephone= ""
  2867. // this.form.guarantee_date= ""
  2868. // this.form.user_total= ""
  2869. // this.form.rubbish_date= ""
  2870. // this.form.user_year = ""
  2871. // this.form.work_time = ""
  2872. // this.form.treat_mode = ""
  2873. },
  2874. addPlan() {
  2875. this.$refs.planForm.open()
  2876. },
  2877. changeCheck() {
  2878. this.$refs.multipleTableOne.clearSelection()
  2879. if (this.checkAllStatusOne) {
  2880. this.$refs.multipleTableOne.toggleAllSelection()
  2881. }
  2882. },
  2883. handleSelectionChange(val) {
  2884. this.selectMachinesOne = val
  2885. },
  2886. changeCheckOne() {
  2887. this.$refs.multipleTable.clearSelection()
  2888. if (this.checkAllStatus) {
  2889. this.$refs.multipleTable.toggleAllSelection()
  2890. }
  2891. },
  2892. handleSelectionChangeOne(val) {
  2893. this.selectMachines = val
  2894. },
  2895. changeMachineStatus(val) {
  2896. if (val === 4) {
  2897. this.readisable = false
  2898. } else {
  2899. this.readisable = true
  2900. this.form.rubbish_date = ''
  2901. this.form.rubbish_reason = ''
  2902. }
  2903. },
  2904. getAllPlan() {
  2905. getAllPlan().then(response => {
  2906. if (response.data.state === 1) {
  2907. var plan = response.data.data.plan
  2908. for (let index = 0; index < plan.length; index++) {
  2909. if (plan[index].time === 1) {
  2910. plan[index].time = '周一'
  2911. }
  2912. if (plan[index].time === 2) {
  2913. plan[index].time = '周二'
  2914. }
  2915. if (plan[index].time === 3) {
  2916. plan[index].time = '周三'
  2917. }
  2918. if (plan[index].time === 4) {
  2919. plan[index].time = '周四'
  2920. }
  2921. if (plan[index].time === 5) {
  2922. plan[index].time = '周五'
  2923. }
  2924. if (plan[index].time === 6) {
  2925. plan[index].time = '周六'
  2926. }
  2927. if (plan[index].time === 7) {
  2928. plan[index].time = '周日'
  2929. }
  2930. if (plan[index].classtime === 1) {
  2931. plan[index].classtime = '上午'
  2932. }
  2933. if (plan[index].classtime === 2) {
  2934. plan[index].classtime = '下午'
  2935. }
  2936. if (plan[index].classtime === 3) {
  2937. plan[index].classtime = '晚上'
  2938. }
  2939. if (plan[index].way === 0) {
  2940. plan[index].way = '/'
  2941. }
  2942. if (plan[index].way === 1) {
  2943. plan[index].way = '擦拭'
  2944. }
  2945. if (plan[index].way === 2) {
  2946. plan[index].way = '化学消毒'
  2947. }
  2948. if (plan[index].machine_disinfectant === 0) {
  2949. plan[index].machine_disinfectant = '/'
  2950. }
  2951. if (plan[index].machine_disinfectant === 1) {
  2952. plan[index].machine_disinfectant = '0.22%季铵盐'
  2953. }
  2954. if (plan[index].machine_disinfectant === 2) {
  2955. plan[index].machine_disinfectant = '500mg/l含氯消毒剂'
  2956. }
  2957. if (plan[index].machine_disinfectantant === 3) {
  2958. plan[index].machine_disinfectant = '1000mg/l含氯消毒剂'
  2959. }
  2960. if (plan[index].machine_disinfectant === 4) {
  2961. plan[index].machine_disinfectant = '1500mg/l含氯消毒剂'
  2962. }
  2963. if (plan[index].disinfectan_way === 0) {
  2964. plan[index].disinfectan_way = '/'
  2965. }
  2966. if (plan[index].disinfectan_way === 1) {
  2967. plan[index].disinfectan_way = '热化学消毒'
  2968. }
  2969. if (plan[index].disinfectan_way === 2) {
  2970. plan[index].disinfectan_way = '化学消毒 + 除钙'
  2971. }
  2972. if (plan[index].disinfectan_way === 3) {
  2973. plan[index].disinfectan_way = '热化学消毒 + 除钙'
  2974. }
  2975. if (plan[index].disinfectan_way === 4) {
  2976. plan[index].disinfectan_way = '热消毒'
  2977. }
  2978. if (plan[index].disinfectan_way === 5) {
  2979. plan[index].disinfectan_way = '化学消毒'
  2980. }
  2981. if (plan[index].disinfectan_way === 6) {
  2982. plan[index].disinfectan_way = '除钙'
  2983. }
  2984. if (plan[index].disinfectan_way === 7) {
  2985. plan[index].disinfectan_way = '清洗'
  2986. }
  2987. if (plan[index].disinfectant === 0) {
  2988. plan[index].disinfectant = '/'
  2989. }
  2990. if (plan[index].disinfectant === 1) {
  2991. plan[index].disinfectant = '20%柠檬酸'
  2992. }
  2993. if (plan[index].disinfectant === 2) {
  2994. plan[index].disinfectant = '25%柠檬酸'
  2995. }
  2996. if (plan[index].disinfectant === 3) {
  2997. plan[index].disinfectant = '50%柠檬酸'
  2998. }
  2999. if (plan[index].disinfectant === 4) {
  3000. plan[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
  3001. }
  3002. if (plan[index].disinfectant === 5) {
  3003. plan[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
  3004. }
  3005. if (plan[index].disinfectant === 6) {
  3006. plan[index].disinfectant = '0.2%过氧化乙酸'
  3007. }
  3008. if (plan[index].disinfectant === 7) {
  3009. plan[index].disinfectant = '10%冰醋酸'
  3010. }
  3011. if (plan[index].disinfectant === 8) {
  3012. plan[index].disinfectant = '50%冰醋酸'
  3013. }
  3014. if (plan[index].disinfectant === 9) {
  3015. plan[index].disinfectant = '5%次氯酸钠'
  3016. }
  3017. }
  3018. this.tableData = plan
  3019. }
  3020. })
  3021. },
  3022. getAllPlanDetail(unit_type) {
  3023. getAllPlanDetail(unit_type).then(response => {
  3024. if (response.data.state === 1) {
  3025. var plandetail = response.data.data.plandetail
  3026. console.log('plandetail=====================', plandetail)
  3027. for (let index = 0; index < plandetail.length; index++) {
  3028. if (plandetail[index].time === 1) {
  3029. plandetail[index].time = '周一'
  3030. }
  3031. if (plandetail[index].time === 2) {
  3032. plandetail[index].time = '周二'
  3033. }
  3034. if (plandetail[index].time === 3) {
  3035. plandetail[index].time = '周三'
  3036. }
  3037. if (plandetail[index].time === 4) {
  3038. plandetail[index].time = '周四'
  3039. }
  3040. if (plandetail[index].time === 5) {
  3041. plandetail[index].time = '周五'
  3042. }
  3043. if (plandetail[index].time === 6) {
  3044. plandetail[index].time = '周六'
  3045. }
  3046. if (plandetail[index].time === 7) {
  3047. plandetail[index].time = '周日'
  3048. }
  3049. if (plandetail[index].classtime === 1) {
  3050. plandetail[index].classtime = '上午'
  3051. }
  3052. if (plandetail[index].classtime === 2) {
  3053. plandetail[index].classtime = '下午'
  3054. }
  3055. if (plandetail[index].classtime === 3) {
  3056. plandetail[index].classtime = '晚上'
  3057. }
  3058. if (plandetail[index].way === 0) {
  3059. plandetail[index].way = '/'
  3060. }
  3061. if (plandetail[index].way === 1) {
  3062. plandetail[index].way = '擦拭'
  3063. }
  3064. if (plandetail[index].way === 2) {
  3065. plandetail[index].way = '化学消毒'
  3066. }
  3067. if (plandetail[index].machine_disinfectant === 0) {
  3068. plandetail[index].machine_disinfectant = '/'
  3069. }
  3070. if (plandetail[index].machine_disinfectant === 1) {
  3071. plandetail[index].machine_disinfectant = '0.22%季铵盐'
  3072. }
  3073. if (plandetail[index].machine_disinfectant === 2) {
  3074. plandetail[index].machine_disinfectant = '500mg/l含氯消毒剂'
  3075. }
  3076. if (plandetail[index].machine_disinfectantant === 3) {
  3077. plandetail[index].machine_disinfectant = '1000mg/l含氯消毒剂'
  3078. }
  3079. if (plandetail[index].machine_disinfectant === 4) {
  3080. plandetail[index].machine_disinfectant = '1500mg/l含氯消毒剂'
  3081. }
  3082. if (plandetail[index].disinfectan_way === 0) {
  3083. plandetail[index].disinfectan_way = '/'
  3084. }
  3085. if (plandetail[index].disinfectan_way === 1) {
  3086. plandetail[index].disinfectan_way = '热化学消毒'
  3087. }
  3088. if (plandetail[index].disinfectan_way === 2) {
  3089. plandetail[index].disinfectan_way = '化学消毒 + 除钙'
  3090. }
  3091. if (plandetail[index].disinfectan_way === 3) {
  3092. plandetail[index].disinfectan_way = '热化学消毒 + 除钙'
  3093. }
  3094. if (plandetail[index].disinfectan_way === 4) {
  3095. plandetail[index].disinfectan_way = '热消毒'
  3096. }
  3097. if (plandetail[index].disinfectan_way === 5) {
  3098. plandetail[index].disinfectan_way = '化学消毒'
  3099. }
  3100. if (plandetail[index].disinfectan_way === 6) {
  3101. plandetail[index].disinfectan_way = '除钙'
  3102. }
  3103. if (plandetail[index].disinfectan_way === 7) {
  3104. plandetail[index].disinfectan_way = '清洗'
  3105. }
  3106. if (plandetail[index].disinfectant === 0) {
  3107. plandetail[index].disinfectant = '/'
  3108. }
  3109. if (plandetail[index].disinfectant === 1) {
  3110. plandetail[index].disinfectant = '20%柠檬酸'
  3111. }
  3112. if (plandetail[index].disinfectant === 2) {
  3113. plandetail[index].disinfectant = '25%柠檬酸'
  3114. }
  3115. if (plandetail[index].disinfectant === 3) {
  3116. plandetail[index].disinfectant = '50%柠檬酸'
  3117. }
  3118. if (plandetail[index].disinfectant === 4) {
  3119. plandetail[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
  3120. }
  3121. if (plandetail[index].disinfectant === 5) {
  3122. plandetail[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
  3123. }
  3124. if (plandetail[index].disinfectant === 6) {
  3125. plandetail[index].disinfectant = '0.2%过氧化乙酸'
  3126. }
  3127. if (plandetail[index].disinfectant === 7) {
  3128. plandetail[index].disinfectant = '10%冰醋酸'
  3129. }
  3130. if (plandetail[index].disinfectant === 8) {
  3131. plandetail[index].disinfectant = '50%冰醋酸'
  3132. }
  3133. if (plandetail[index].disinfectant === 9) {
  3134. plandetail[index].disinfectant = '5%次氯酸钠'
  3135. }
  3136. }
  3137. this.planData = plandetail
  3138. }
  3139. })
  3140. },
  3141. EditMachine(id, index) {
  3142. this.dialogVisible = true
  3143. EditPlanDetail(id).then(response => {
  3144. if (response.data.state === 1) {
  3145. var plan = response.data.data.plan
  3146. this.machineform.id = plan.id
  3147. this.machineform.device_type = plan.device_type
  3148. this.machineform.disinfec_time = plan.disinfec_time
  3149. this.machineform.time = plan.time
  3150. this.machineform.class_time = plan.classtime
  3151. this.machineform.way = plan.way
  3152. this.machineform.machine_disinfectant = plan.machine_disinfectant
  3153. this.machineform.disinfectant_way = plan.disinfectan_way
  3154. this.machineform.disinfectant = plan.disinfectant
  3155. }
  3156. })
  3157. },
  3158. UpdatePlanInfo(formName) {
  3159. var devicetype = this.machineform.device_type
  3160. var devicetypes = parseInt(devicetype)
  3161. this.machineform.device_type = devicetypes
  3162. var disinfectimes = this.machineform.disinfec_time
  3163. var disinfectime = parseInt(disinfectimes)
  3164. this.machineform.disinfec_time = disinfectime
  3165. var times = this.machineform.time
  3166. var time = parseInt(times)
  3167. this.machineform.time = time
  3168. var classtimes = this.machineform.class_time
  3169. var classtime = parseInt(classtimes)
  3170. this.machineform.class_time = classtime
  3171. var ways = this.machineform.way
  3172. var way = parseInt(ways)
  3173. this.machineform.way = way
  3174. var machinedisinfectant = this.machineform.machine_disinfectant
  3175. var machinedisinfectants = parseInt(machinedisinfectant)
  3176. this.machineform.machine_disinfectant = machinedisinfectants
  3177. var disinfectantways = this.machineform.disinfectant_way
  3178. var disinfectantway = parseInt(disinfectantways)
  3179. this.machineform.disinfectant_way = disinfectantway
  3180. var disinfectants = this.machineform.disinfectant
  3181. var disinfectant = parseInt(disinfectants)
  3182. this.machineform.disinfectant = disinfectant
  3183. UpdatePlanInfo(this.machineform).then(response => {
  3184. if (response.data.state == 1) {
  3185. var plan = response.data.data.plan
  3186. this.dialogVisible = false
  3187. this.$message.success('修改成功')
  3188. this.getAllPlanDetail(this.equimentid)
  3189. this.getAllPlan()
  3190. }
  3191. })
  3192. },
  3193. openDeleteMahcine() {
  3194. if (this.selectMachines.length == 0) {
  3195. this.$message.error('请选择要删除的信息')
  3196. return false
  3197. }
  3198. this.$confirm(
  3199. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  3200. '删除提示',
  3201. {
  3202. dangerouslyUseHTMLString: true,
  3203. confirmButtonText: '确定',
  3204. cancelButtonText: '取消',
  3205. type: 'warning'
  3206. }
  3207. )
  3208. .then(() => {
  3209. var ids = []
  3210. var idMap = {}
  3211. for (const index in this.selectMachines) {
  3212. ids.push(this.selectMachines[index].id)
  3213. idMap[this.selectMachines[index].id] = this.selectMachines[
  3214. index
  3215. ].id
  3216. }
  3217. DeletePlans({ ids: ids })
  3218. .then(response => {
  3219. // eslint-disable-next-line eqeqeq
  3220. if (response.data.state == 1) {
  3221. // eslint-disable-next-line no-unused-vars
  3222. var msg = response.data.data.msg
  3223. var planDataLength = this.planData.length
  3224. for (let index = planDataLength - 1; index >= 0; index--) {
  3225. if (this.planData[index].id in idMap) {
  3226. this.planData.splice(index, 1)
  3227. }
  3228. }
  3229. var planDataLengths = this.tableData.length
  3230. for (let index = planDataLengths - 1; index >= 0; index--) {
  3231. if (this.tableData[index].id in idMap) {
  3232. this.tableData.splice(index, 1)
  3233. }
  3234. }
  3235. this.$message.success('删除消毒计划成功')
  3236. } else {
  3237. this.$message.error('删除消毒计划失败')
  3238. }
  3239. })
  3240. .catch(e => {})
  3241. })
  3242. .catch(() => {
  3243. return false
  3244. })
  3245. },
  3246. openDeleteMahcineOne() {
  3247. if (this.selectMachinesOne.length == 0) {
  3248. this.$message.error('请选择要删除的信息')
  3249. return false
  3250. }
  3251. this.$confirm(
  3252. '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
  3253. '删除提示',
  3254. {
  3255. dangerouslyUseHTMLString: true,
  3256. confirmButtonText: '确定',
  3257. cancelButtonText: '取消',
  3258. type: 'warning'
  3259. }
  3260. )
  3261. .then(() => {
  3262. var ids = []
  3263. var idMap = {}
  3264. for (const index in this.selectMachinesOne) {
  3265. ids.push(this.selectMachinesOne[index].id)
  3266. idMap[this.selectMachinesOne[index].id] = this.selectMachinesOne[
  3267. index
  3268. ].id
  3269. }
  3270. DeletePlans({ ids: ids })
  3271. .then(response => {
  3272. if (response.data.state == 1) {
  3273. var msg = response.data.data.msg
  3274. var planDataLength = this.tableData.length
  3275. for (let index = planDataLength - 1; index >= 0; index--) {
  3276. if (this.tableData[index].id in idMap) {
  3277. this.tableData.splice(index, 1)
  3278. }
  3279. }
  3280. var planDataLengths = this.planData.length
  3281. for (let index = planDataLengths - 1; index >= 0; index--) {
  3282. if (this.planData[index].id in idMap) {
  3283. this.planData.splice(index, 1)
  3284. }
  3285. }
  3286. this.$message.success('删除消毒计划成功')
  3287. } else {
  3288. this.$message.error('删除消毒计划失败')
  3289. }
  3290. })
  3291. .catch(e => {})
  3292. })
  3293. .catch(() => {
  3294. return false
  3295. })
  3296. },
  3297. getAllEquimentName() {
  3298. getAllEquimentName().then(response => {
  3299. if (response.data.state === 1) {
  3300. var equit = response.data.data.equit
  3301. // this.DeviceType = equit
  3302. }
  3303. })
  3304. },
  3305. clickQuery() {
  3306. this.$refs.multipleform.open()
  3307. },
  3308. getPatientInfo(bedid) {
  3309. getPatientInfo(bedid).then(response => {
  3310. if (response.data.state === 1) {
  3311. var schedules = response.data.data.schedules
  3312. // this.patientName = schedules
  3313. }
  3314. })
  3315. },
  3316. ChangeClass(id) {
  3317. ChangeClass(this.equimentid, id).then(response => {
  3318. if (response.data.state === 1) {
  3319. var patients = response.data.data.patients
  3320. if (patients.is_infectious === 0) {
  3321. this.userform.contagion = ''
  3322. }
  3323. if (patients.is_infectious === 1) {
  3324. this.userform.contagion = '无'
  3325. }
  3326. if (patients.is_infectious === 2) {
  3327. this.userform.contagion = '有'
  3328. }
  3329. this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
  3330. this.userform.patient_name = patients.name
  3331. this.userform.patient_id = patients.patient_id
  3332. // this.userform.patient_name = patients.name
  3333. var zone = response.data.data.zone
  3334. // console.log('zone==========', zone)
  3335. this.userform.zone = zone.id
  3336. var number = response.data.data.number
  3337. // console.log('nubmer', number)
  3338. this.userform.bed_number = number.id
  3339. // this.userform.bed_number = number.number
  3340. var order = response.data.data.order
  3341. this.userform.start_time = uParseTime(order.start_time, '{y}-{m}-{d} {h}:{i}')
  3342. this.userform.end_time = uParseTime(order.end_time, '{y}-{m}-{d} {h}:{i}')
  3343. var prescription = response.data.data.prescription
  3344. this.userform.dialysis_mode = prescription.mode_id
  3345. var dislysis = response.data.data.dislysis
  3346. this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
  3347. this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
  3348. this.userform.weight_loss = dislysis.weight_loss
  3349. }
  3350. })
  3351. },
  3352. getTimes(time) {
  3353. return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
  3354. },
  3355. getTime(time) {
  3356. return uParseTime(time, '{y}-{m}-{d}')
  3357. },
  3358. SaveInformation(formName) {
  3359. if (this.userform.classtype === '') {
  3360. this.userform.classtype = 0
  3361. }
  3362. var classtypes = this.userform.classtype
  3363. var classtype = parseInt(classtypes)
  3364. this.userform.classtype = classtype
  3365. var zone = this.userform.zone
  3366. var zones = parseInt(zone)
  3367. this.userform.zone = zones
  3368. var bednumber = this.userform.bed_number
  3369. var bednumbers = parseInt(bednumber)
  3370. this.userform.bed_number = bednumbers
  3371. // var patientName = this.userform.patient_name
  3372. // var patient_name = parseInt(patientName)
  3373. // this.userform.patient_name = patient_name
  3374. var dialysismode = this.userform.dialysis_mode
  3375. var dialysis_mode = parseInt(dialysismode)
  3376. this.userform.dialysis_mode = dialysis_mode
  3377. if (this.userform.failure_stage === '') {
  3378. this.userform.failure_stage = 0
  3379. }
  3380. if (this.userform.dialysis_checked === '') {
  3381. this.userform.dialysis_checked = 0
  3382. }
  3383. if (this.userform.dialysis_checked === true) {
  3384. this.userform.dialysis_checked = 1
  3385. }
  3386. if (this.userform.dialysis_checked === false) {
  3387. this.userform.dialysis_checked = 0
  3388. }
  3389. if (this.userform.germ_checked === '') {
  3390. this.userform.germ_checked = 0
  3391. }
  3392. if (this.userform.germ_checked === true) {
  3393. this.userform.germ_checked = 1
  3394. }
  3395. if (this.userform.germ_checked === false) {
  3396. this.userform.germ_checked = 0
  3397. }
  3398. if (this.userform.dialysis_name === '') {
  3399. this.userform.dialysis_name = 0
  3400. }
  3401. var dialysis_name = this.userform.dialysis_name
  3402. var dialysis = parseInt(dialysis_name)
  3403. this.userform.dialysis_name = dialysis
  3404. if (this.userform.germ_name === '') {
  3405. this.userform.germ_name = 0
  3406. }
  3407. var germname = this.userform.germ_name
  3408. var germames = parseInt(germname)
  3409. this.userform.germ_name = germames
  3410. if (this.userform.clean === '') {
  3411. this.userform.clean = 0
  3412. }
  3413. if (this.userform.clean === true) {
  3414. this.userform.clean = 1
  3415. }
  3416. if (this.userform.clean === false) {
  3417. this.userform.clean = 0
  3418. }
  3419. if (this.userform.starttime === '') {
  3420. this.userform.starttime = 0
  3421. }
  3422. if (this.userform.endtime === '') {
  3423. this.userform.endtime = 0
  3424. }
  3425. if (this.userform.hyperfiltratio === '') {
  3426. this.userform.hyperfiltratio = 0
  3427. }
  3428. var hyperfiltratio = this.userform.hyperfiltratio
  3429. var hyperfiltratios = parseInt(hyperfiltratio)
  3430. this.userform.hyperfiltratio = hyperfiltratios
  3431. // this.userform.starttime = this.getTimes(this.userform.starttime)
  3432. // this.userform.endtime = this.getTimes(this.userform.endtime)
  3433. if (this.userform.weight_loss === '') {
  3434. this.userform.weight_loss = 0
  3435. }
  3436. var weightloss = this.userform.weight_loss
  3437. var weidht = parseInt(weightloss)
  3438. this.userform.weight_loss = weidht
  3439. if (this.userform.start_time === '') {
  3440. this.userform.start_time = '0'
  3441. }
  3442. if (this.userform.end_time === '') {
  3443. this.userform.end_time = '0'
  3444. }
  3445. if (this.userform.user_total === '0') {
  3446. this.userform.user_total = 0
  3447. }
  3448. this.$refs[formName].validate((valid) => {
  3449. if (valid) {
  3450. SaveInformation(this.equimentid, this.userform).then(response => {
  3451. if (response.data.state === 1) {
  3452. // eslint-disable-next-line no-unused-vars
  3453. var information = response.data.data.information
  3454. var infor = response.data.data.infor
  3455. this.$message.success('添加成功')
  3456. // this.$refs.child.getInformationData()
  3457. }
  3458. })
  3459. }
  3460. })
  3461. },
  3462. // changStartTime(val) {
  3463. // this.userform.starttime = val
  3464. // },
  3465. // changeEndTime(val) {
  3466. // this.userform.endtime = val
  3467. // console.log('val', val)
  3468. // console.log('开始时间', this.userform.starttime)
  3469. // console.log('呵呵', this.formatDuring(val))
  3470. // },
  3471. // formatDuring(mss) {
  3472. // const days = parseInt(mss / (1000 * 60 * 60 * 24)) // 得到天数
  3473. // const hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)) // 得到小时
  3474. // const minutes = parseInt((mss % (1000 * 60 * 60)) / (1000 * 60)) // 得到分钟数
  3475. // const seconds = (mss % (1000 * 60)) / 1000 // 得到秒数
  3476. // const str1 = hours < 10 ? ('0' + hours) : hours
  3477. // console.log('str1', str1)
  3478. // const str2 = minutes < 10 ? ('0' + minutes) : minutes
  3479. // return str1 + ':' + str2
  3480. // },
  3481. // 获取签名
  3482. getAllOrganization() {
  3483. getAllOrganization().then(response => {
  3484. if (response.data.state === 1) {
  3485. var approle = response.data.data.approle
  3486. // console.log('approle签名',approle)
  3487. this.autograph = approle
  3488. this.sampling = approle
  3489. }
  3490. })
  3491. },
  3492. getUserRegister(id) {
  3493. getUserRegister(id).then(response => {
  3494. if (response.data.state === 1) {
  3495. var information = response.data.data.information
  3496. // eslint-disable-next-line no-unused-vars
  3497. var role = response.data.data.role
  3498. // console.log('role', role)
  3499. // eslint-disable-next-line eqeqeq
  3500. var dislysis = response.data.data.dislysis
  3501. this.userform.id = information.id
  3502. if (information.date == 0) {
  3503. this.userform.date = moment(new Date()).format('YYYY-MM-DD')
  3504. } else {
  3505. this.userform.date = uParseTime(information.date, '{y}-{m}-{d}')
  3506. }
  3507. this.userform.classtype = information.class
  3508. this.userform.zone = information.zone
  3509. this.userform.bed_number = information.bed_number
  3510. this.userform.patient_name = information.name
  3511. this.userform.patient_id = information.patient_id
  3512. this.userform.contagion = information.contagion
  3513. this.userform.dialysis_mode = information.dialysis_mode
  3514. this.userform.start_time = uParseTime(information.start_time, '{y}-{m}-{d} {h}:{i}')
  3515. this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
  3516. // this.userform.dialysis_time = information.dialysis_hour
  3517. // this.userform.hyperfiltratio = information.hyperfiltratio
  3518. // this.userform.weight_loss = information.weight_loss
  3519. this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
  3520. this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
  3521. this.userform.weight_loss = dislysis.weight_loss
  3522. this.userform.warning_value = information.warning_value
  3523. this.userform.user_total = information.user_total
  3524. if (information.move == 0) {
  3525. this.userform.run = 1
  3526. } else {
  3527. this.userform.run = information.move
  3528. }
  3529. this.userform.failure_stage = information.failure_stage
  3530. this.userform.fault_description = information.fault_description
  3531. this.userform.code_information = information.code_information
  3532. this.userform.disinfect_type = information.disinfect_type
  3533. this.userform.disinfection = information.disinfection
  3534. this.userform.machine_run = information.machine_run
  3535. this.userform.fluid_path = information.fluid_path
  3536. this.userform.disinfectant = information.disinfectant
  3537. this.userform.disinfectant = information.disinfection_status
  3538. this.userform.disinfection_residue = information.disinfection_residue
  3539. this.userform.longtime = information.long_time
  3540. this.userform.starttime = uParseTime(information.disinfec_startime, '{y}-{m}-{d} {h}:{i}')
  3541. this.userform.endtime = uParseTime(information.disinfec_endtime, '{y}-{m}-{d} {h}:{i}')
  3542. if (information.dialysis_checked === 1) {
  3543. this.userform.dialysis_checked = true
  3544. }
  3545. if (information.dialysis_checked === 2) {
  3546. this.userform.dialysis_checked = false
  3547. }
  3548. this.userform.dialysis_name = information.dialysis_name
  3549. this.userform.norms = information.norms
  3550. this.userform.dialysis_concentration = information.dialysis_concentration
  3551. if (information.germ_checked === 1) {
  3552. this.userform.germ_checked = true
  3553. }
  3554. if (information.germs_checked === 0) {
  3555. this.userform.germ_checked = false
  3556. }
  3557. this.userform.germ_name = information.germ_name
  3558. this.userform.germ_number = information.germ_number
  3559. if (information.clean === 1) {
  3560. this.userform.clean = true
  3561. }
  3562. if (information.clean === 0) {
  3563. this.userform.clean = false
  3564. }
  3565. // eslint-disable-next-line eqeqeq
  3566. if (information.admin_user_id == 0) {
  3567. this.userform.sign_name = ''
  3568. } else {
  3569. this.userform.sign_name = information.admin_user_id
  3570. }
  3571. this.$forceUpdate()
  3572. }
  3573. })
  3574. },
  3575. getOrgName() {
  3576. getOrgName().then(response => {
  3577. if (response.data.state === 1) {
  3578. var org = response.data.data.org
  3579. this.qualityForm.detection_unit = org.org_name
  3580. this.qualityFormTwo.detection_unit = org.org_name
  3581. this.qualityFormThree.detection_unit = org.org_name
  3582. }
  3583. })
  3584. },
  3585. SaveBacteria(formName) {
  3586. if (this.qualityForm.specimen === '') {
  3587. this.qualityForm.specimen = 0
  3588. }
  3589. var specimen = this.qualityForm.specimen
  3590. var specimens = parseInt(specimen)
  3591. this.qualityForm.specimen = specimens
  3592. if (this.qualityForm.sampling_locationa === '') {
  3593. this.qualityForm.sampling_locationa = 0
  3594. }
  3595. var samplinglocationa = this.qualityForm.sampling_locationa
  3596. var samplinglocationas = parseInt(samplinglocationa)
  3597. this.qualityForm.sampling_locationa = samplinglocationas
  3598. this.$refs[formName].validate(response => {
  3599. SaveBacteria(this.equimentid, this.qualityForm).then(response => {
  3600. if (response.data.state === 1) {
  3601. var culture = response.data.data.culture
  3602. this.$message.success('保存成功')
  3603. this.qualityForm.specimen = '',
  3604. this.qualityForm.concentrate_noa = '',
  3605. this.qualityForm.concentrate_nob = '',
  3606. this.qualityForm.sampling_locationa = '',
  3607. this.qualityForm.sampler = ''
  3608. this.qualityForm.reporting_date = ''
  3609. this.qualityForm.detection_result = ''
  3610. this.$refs.child.getAllQulityInfo()
  3611. }
  3612. })
  3613. })
  3614. },
  3615. cleanSaveBacteria() {
  3616. this.qualityForm.specimen = '',
  3617. this.qualityForm.concentrate_noa = '',
  3618. this.qualityForm.concentrate_nob = '',
  3619. this.qualityForm.sampling_locationa = '',
  3620. this.qualityForm.sampler = ''
  3621. this.qualityForm.reporting_date = ''
  3622. this.qualityForm.detection_result = ''
  3623. },
  3624. SaveLincomycin(formName) {
  3625. this.$refs[formName].validate((valid) => {
  3626. if (this.qualityFormTwo.specimenb === '') {
  3627. this.qualityFormTwo.specimenb = 0
  3628. }
  3629. var specimen = this.qualityFormTwo.specimenb
  3630. var specimenb = parseInt(specimen)
  3631. this.qualityFormTwo.specimenb = specimenb
  3632. if (this.qualityFormTwo.sampling_locationb === '') {
  3633. this.qualityFormTwo.sampling_locationb = 0
  3634. }
  3635. var sampling = this.qualityFormTwo.sampling_locationb
  3636. var samplings = parseInt(sampling)
  3637. this.qualityFormTwo.sampling_locationb = samplings
  3638. if (valid) {
  3639. SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
  3640. if (response.data.state === 1) {
  3641. var dialysate = response.data.data.dialysate
  3642. this.$message.success('保存成功')
  3643. this.qualityFormTwo.specimenb = ''
  3644. this.qualityFormTwo.concentrate_noc = ''
  3645. this.qualityFormTwo.concentrateb_nod = ''
  3646. this.qualityFormTwo.sampling_locationb = ''
  3647. this.qualityFormTwo.samplerb = ''
  3648. this.qualityFormTwo.reporting_dateb = ''
  3649. this.qualityFormTwo.detection_resultb = ''
  3650. this.$refs.child.getAllQulityInfo()
  3651. }
  3652. })
  3653. }
  3654. })
  3655. },
  3656. cleanLincomycin() {
  3657. this.qualityFormTwo.specimenb = ''
  3658. this.qualityFormTwo.concentrate_noc = ''
  3659. this.qualityFormTwo.concentrateb_nod = ''
  3660. this.qualityFormTwo.sampling_locationb = ''
  3661. this.qualityFormTwo.samplerb = ''
  3662. this.qualityFormTwo.reporting_dateb = ''
  3663. this.qualityFormTwo.detection_resultb = ''
  3664. },
  3665. SaveQualityControl(formName) {
  3666. this.$refs[formName].validate((valid) => {
  3667. if (valid) {
  3668. SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
  3669. if (response.data.state === 1) {
  3670. var ion = response.data.data.ion
  3671. // console.log('ion', ion)
  3672. this.$message.success('保存成功')
  3673. this.$refs.child.getAllQulityInfo()
  3674. this.qualityFormThree.samplerc = ''
  3675. this.qualityFormThree.concentrate_nof = ''
  3676. this.qualityFormThree.concentrate_nog = ''
  3677. this.qualityFormThree.date_reportc = ''
  3678. this.qualityFormThree.actual_na = ''
  3679. this.qualityFormThree.actual_pna = ''
  3680. this.qualityFormThree.actual_k = ''
  3681. this.qualityFormThree.actual_ca = ''
  3682. this.qualityFormThree.actual_ci = ''
  3683. this.qualityFormThree.actual_hco = ''
  3684. this.qualityFormThree.actual_mg = ''
  3685. this.qualityFormThree.actual_ph = ''
  3686. this.qualityFormThree.remakes = ''
  3687. }
  3688. })
  3689. }
  3690. })
  3691. },
  3692. cleanQuality() {
  3693. this.qualityFormThree.samplerc = ''
  3694. this.qualityFormThree.concentrate_nof = ''
  3695. this.qualityFormThree.concentrate_nog = ''
  3696. this.qualityFormThree.date_reportc = ''
  3697. this.qualityFormThree.actual_na = ''
  3698. this.qualityFormThree.actual_pna = ''
  3699. this.qualityFormThree.actual_k = ''
  3700. this.qualityFormThree.actual_ca = ''
  3701. this.qualityFormThree.actual_ci = ''
  3702. this.qualityFormThree.actual_hco = ''
  3703. this.qualityFormThree.actual_mg = ''
  3704. this.qualityFormThree.actual_ph = ''
  3705. this.qualityFormThree.remakes = ''
  3706. },
  3707. changeSpecimen(val) {
  3708. if (val === 0) {
  3709. this.disable = false
  3710. this.diableTwo = false
  3711. }
  3712. if (val === 1) {
  3713. this.disable = false
  3714. this.diableTwo = false
  3715. }
  3716. if (val === 2) {
  3717. this.qualityForm.concentrate_nob = ''
  3718. this.qualityFormTwo.concentrateb_nod = ''
  3719. this.diableTwo = true
  3720. this.disable = false
  3721. }
  3722. if (val === 3) {
  3723. this.qualityForm.concentrate_noa = ''
  3724. this.qualityFormTwo.concentrate_noc = ''
  3725. this.disable = true
  3726. this.diableTwo = false
  3727. }
  3728. if (val === 4) {
  3729. this.disable = false
  3730. this.diableTwo = false
  3731. }
  3732. if (val === 5) {
  3733. this.disable = false
  3734. this.diableTwo = false
  3735. }
  3736. },
  3737. handleSuccess(res, file, fileList) {
  3738. this.guaForm.images = this.qiniuDomain + res.url
  3739. console.log('图片上传成功', this.qiniuDomain + res.url)
  3740. },
  3741. beforeUploadFile(file) {
  3742. const isLt2M = file.size / 1024 / 1024 <= 2048
  3743. console.log('视频大小', file.size / 1024 / 1024)
  3744. console.log('isLt2M是什么', isLt2M)
  3745. if (!isLt2M) {
  3746. this.$message.error('上传视频大小不能超过 2G!')
  3747. return false
  3748. }
  3749. var date = new Date()
  3750. var ext = getFileExtension(file.name)
  3751. var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() + '_o_' + file.uid + '.' + ext
  3752. const _self = this
  3753. return new Promise((resolve, reject) => {
  3754. getToken().then(response => {
  3755. const token = response.data.data.uptoken
  3756. console.log('token', token)
  3757. _self._data.uploadFileData.token = token
  3758. _self._data.uploadFileData.key = key
  3759. resolve(true)
  3760. // eslint-disable-next-line handle-callback-err
  3761. }).catch(err => {
  3762. reject(false)
  3763. })
  3764. })
  3765. },
  3766. // eslint-disable-next-line no-dupe-keys
  3767. getTime(value, temp) {
  3768. // eslint-disable-next-line eqeqeq
  3769. if (value != undefined) {
  3770. return parseTime(value, temp)
  3771. }
  3772. return ''
  3773. },
  3774. SaveRepair(formName) {
  3775. if (this.guaForm.start_time === '') {
  3776. this.guaForm.start_time = '0'
  3777. }
  3778. if (this.guaForm.arrive_time === '') {
  3779. this.guaForm.arrive_time = '0'
  3780. }
  3781. if (this.guaForm.finish_time === '') {
  3782. this.guaForm.finish_time = '0'
  3783. }
  3784. if (this.guaForm.failure_stage === '') {
  3785. this.guaForm.failure_stage = '0'
  3786. }
  3787. var failurestages = this.guaForm.failure_stage
  3788. var falur = parseInt(failurestages)
  3789. this.guaForm.failure_stage = falur
  3790. if (this.guaForm.exclude === '') {
  3791. this.guaForm.exclude = 0
  3792. }
  3793. var excludes = this.guaForm.exclude
  3794. var exclude = parseInt(excludes)
  3795. this.guaForm.exclude = exclude
  3796. this.$refs[formName].validate((valid) => {
  3797. if (valid) {
  3798. SaveRepair(this.equimentid, this.guaForm).then(response => {
  3799. if (response.data.state === 1) {
  3800. var repair = response.data.data.repair
  3801. console.log('reqair', repair)
  3802. this.$message.success('保存成功')
  3803. this.$refs.child.getAllRepair()
  3804. this.guaForm.start_time = ''
  3805. this.guaForm.arrive_time = ''
  3806. this.guaForm.finish_time = ''
  3807. this.guaForm.total_distance = ''
  3808. this.guaForm.code_information = ''
  3809. this.guaForm.fault_description = ''
  3810. this.guaForm.cause_analysis = ''
  3811. this.guaForm.reason = ''
  3812. this.guaForm.failure_stage = 0
  3813. this.guaForm.exclude = 0
  3814. this.guaForm.images = ''
  3815. this.guaForm.treatment_process = ''
  3816. }
  3817. })
  3818. }
  3819. })
  3820. },
  3821. querySearchAsync(keyword, cb) {
  3822. let key = ''
  3823. if (keyword != undefined) {
  3824. key = keyword
  3825. }
  3826. let searchArray = []
  3827. PostSearch(key).then(response => {
  3828. if (response.data.state == 1) {
  3829. searchArray = response.data.data.patient
  3830. // console.log("ser=================",searchArray)
  3831. cb(searchArray)
  3832. }
  3833. })
  3834. return searchArray
  3835. },
  3836. createFilter(queryString) {
  3837. return (searchArray) => {
  3838. return (searchArray.id.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
  3839. }
  3840. },
  3841. handleSelect(item) {
  3842. this.userform.patient_id = item.id
  3843. this.userform.patient_name = item.name
  3844. },
  3845. getAllEquitType() {
  3846. getAllEquitType().then(response => {
  3847. if (response.data.state === 1) {
  3848. var equitname = response.data.data.equitname
  3849. console.log('区号================', equitname)
  3850. this.DeviceType = equitname
  3851. }
  3852. })
  3853. },
  3854. getTotalNumber() {
  3855. getTotalNumber(this.equimentid).then(response => {
  3856. if (response.data.state === 1) {
  3857. var total = response.data.data.total
  3858. if (total === '') {
  3859. this.userform.user_total = ''
  3860. }
  3861. this.userform.user_total = total
  3862. } else {
  3863. this.$message.error('数据返回失败')
  3864. }
  3865. })
  3866. },
  3867. getAllpatient() {
  3868. getAllpatient().then(response => {
  3869. if (response.data.state === 1) {
  3870. var allpatient = response.data.data.allpatient
  3871. this.patientName = allpatient
  3872. }
  3873. })
  3874. },
  3875. getTimeWarning(id) {
  3876. getTimeWarning(id).then(response => {
  3877. if (response.data.state === 1) {
  3878. var information = response.data.data.information
  3879. var time = this.userform.date - information.date
  3880. if (time >= 2678400) {
  3881. this.warnShow = true
  3882. }
  3883. var deviceInformation = response.data.data.deviceInformation
  3884. var timetwo = this.userform.date - deviceInformation.date
  3885. if (timetwo >= 2678400) {
  3886. this.warnShowTwo = true
  3887. }
  3888. var clean = response.data.data.clean
  3889. var timethree = this.userform.date - clean.date
  3890. if (timethree >= 2678400) {
  3891. this.warnShowThree = true
  3892. }
  3893. }
  3894. })
  3895. },
  3896. // 通过自组建传值改变表格数据
  3897. getPlanData(data) {
  3898. if (data === 1) {
  3899. this.getAllPlanDetail(this.equimentid)
  3900. }
  3901. }
  3902. },
  3903. created() {
  3904. this.getAllSubregion()
  3905. this.getAllMachine()
  3906. var index = this.$route.query.index
  3907. // var id = this.$route.query.id
  3908. // this.equimentid = id
  3909. this.getAllPlan()
  3910. this.getAllEquimentName()
  3911. this.getAllOrganization()
  3912. this.getOrgName()
  3913. this.getAllEquitType()
  3914. this.getAllpatient()
  3915. }
  3916. }
  3917. </script>
  3918. <style lang="scss" scoped>
  3919. .zone{
  3920. // margin-left: 30px;
  3921. text-align: left;
  3922. }
  3923. .disinfect{
  3924. position: relative;
  3925. .newButton{
  3926. position: absolute;
  3927. right: 0;
  3928. top:0;
  3929. z-index: 9;
  3930. }
  3931. }
  3932. .disinfectOne{
  3933. position: relative;
  3934. .newButtonOne{
  3935. position: absolute;
  3936. right: 0;
  3937. top: -10;
  3938. z-index: 18;
  3939. }
  3940. }
  3941. .but{
  3942. width: 200px;
  3943. height: 50px;
  3944. // border: solid 1px red;
  3945. margin-left: 700px;
  3946. }
  3947. .clearn{
  3948. width: 460px;
  3949. height: 50px;
  3950. // border:solid 1px red;
  3951. margin-left:780px;
  3952. }
  3953. .zClass{
  3954. width: 200px;
  3955. height: 200px;
  3956. // border:solid 1px red;
  3957. margin-left: 450px;
  3958. margin-top: 200px;
  3959. }
  3960. .warn{
  3961. color: red;
  3962. font-size: 14px;
  3963. }
  3964. </style>
  3965. <style lang="scss">
  3966. .a{
  3967. .el-input{
  3968. margin-bottom: 10px;
  3969. }
  3970. }
  3971. .b{
  3972. .el-button{
  3973. margin-left: 850px;
  3974. margin-bottom: 10px;
  3975. }
  3976. }
  3977. .stoppage{
  3978. .el-form-item__label{
  3979. width:190px;
  3980. }
  3981. }
  3982. .main{
  3983. position: relative;
  3984. .newButtonOne{
  3985. position:absolute;
  3986. right: 0;
  3987. z-index: 2;
  3988. }
  3989. }
  3990. .elbutton{
  3991. // border: solid 1px red;
  3992. height: 50px;
  3993. width: 400px;
  3994. margin-left: 750px;
  3995. }
  3996. // .el-form-item__label {
  3997. // width: 130px;
  3998. // font-size: 14px;
  3999. // }
  4000. .el-form-item__error {
  4001. margin-left: 130px;
  4002. }
  4003. </style>