12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377 |
- <template>
- <div class="main-contain">
- <div class="position">
- <bread-crumb :crumbs='crumbs'></bread-crumb>
- </div>
- <div class="app-container">
- <el-container>
- <div style="width:24%">
- <el-row>
- <el-col :span="24">
- <span class="zone">分 区:</span>
- <el-select v-model="forms.zone_id" placeholder="请选择" class="a" @change="changeBedNumber" style="width:125px">
- <el-option
- v-for="item in bedZone"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- >
- </el-option>
- </el-select>
- </el-col>
- </el-row>
- <el-row>
- <el-col>
- <span class="zone">班 次:</span>
- <el-select v-model="forms.class_id" placeholder="请选择" class="a" @change="changeClassId" style="width:125px">
- <el-option
- v-for="item in Classes"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-col>
- </el-row>
- <el-row>
- <el-col>
- <span>设备类型:</span>
- <el-select v-model="forms.device_type" placeholder="请选择" class="a" @change="changeDeviceId" style="width:110px">
- <el-option
- v-for="item in DeviceTypeType"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-col>
- </el-row>
- <el-row>
- <el-table
- ref="singleTable"
- :data="tableDatatwo"
- highlight-current-row
- border
- @current-change="handleCurrentChange"
- height="1050"
- >
- <el-table-column
- prop="date"
- label="设备名称"
- width="90"
- align="center">
- <template slot-scope="scope">
- {{scope.row.device_name}}
- </template>
- </el-table-column>
- <el-table-column
- prop="name"
- label="设备型号"
- width="90"
- align="center">
- <template slot-scope="scope">
- {{scope.row.unit_type}}
- </template>
- </el-table-column>
- <el-table-column
- prop="address"
- label="床位号"
- align="center"
- widwid="90">
- <template slot-scope="scope">
- {{scope.row.bed_number}}
- </template>
- </el-table-column>
- </el-table>
- </el-row>
- </div>
-
- <el-main>
- <div class="main">
- <div class="newButtonOne">
- <el-button
- size="small"
- @click="clickQuery()"
- >
- 综合查询
- </el-button>
- </div>
- <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
-
- <el-tab-pane label="基本信息" name="first">
- <div class="disinfectOne">
-
- <el-row>
- <div class="b">
- <el-button size="small" @click="UpdateMachine()">修改</el-button>
- </div>
- </el-row>
- <el-row>
- <el-form :model="form" ref="form" :rules="rules">
- <el-row>
- <el-col :span="7">
- <el-form-item label="序列号:" required prop="serial_number">
- <el-input style="width:150px" v-model="form.serial_number"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="设备类型:" required prop="devicetype">
- <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
- <el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="机位号:">
- <el-select style="width:150px" v-model="form.bed_number" :disabled="true">
- <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="设备名称:" required prop="device_name">
- <el-input style="width:150px" v-model="form.device_name"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="生产厂家:">
- <el-input style="width:150px" v-model="form.manufacture_factory"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="维修厂家:">
- <el-input style="width:150px" v-model="form.service_manufacturer"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="设备型号:" required prop="unit_type">
- <el-input style="width:150px" v-model="form.unit_type"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="使用科室:">
- <el-input style="width:150px" v-model="form.use_section"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="科室编号:">
- <el-input style="width:150px" v-model="form.section_number"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="购买日期:">
- <el-date-picker
- v-model="form.buy_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="安装日期:">
- <el-date-picker
- v-model="form.install_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="启用日期:">
- <el-date-picker
- v-model="form.start_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="维修工程师:">
- <el-input style="width:150px" v-model="form.maintenance_engineer"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="联系电话:">
- <el-input style="width:150px" v-model="form.telephone"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="保修期限:">
- <el-input style="width:150px" v-model="form.guarantee_date"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="机器状态:">
- <el-select style="width:150px" v-model="form.machine_status">
- <el-option v-for="item in machineStatus" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="初次使用次数:">
- <el-input v-model="form.user_total" style="width:150px"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="备注:">
- <el-input style="width:150px" v-model="form.remarks"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="报废日期:">
- <el-date-picker
- v-model="form.rubbish_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:135px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="报废原因:">
- <el-select style="width:150px" v-model="form.rubbish_reason">
- <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="7">
- <el-form-item label="使用年限(年):">
- <el-input style="width:150px" v-model="form.user_year"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="7">
- <el-form-item label="工作时长:">
- <el-input style="width:150px" v-model="form.work_time"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-form-item label="治疗模式:">
- <el-checkbox-group v-model="form.treat_mode" @change="handleCheckedCitiesChange">
- <el-checkbox v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox>
- </el-checkbox-group>
- </el-form-item>
- </el-row>
- <el-row>
- <el-col>
- <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
- </el-col>
- </el-row>
- <el-row>
- <div class="but">
- <el-col :span="12">
- <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
- </el-col>
- <el-col :span="8">
- <el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMachineInfo('form')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- </el-row>
- </div>
- </el-tab-pane>
-
- <el-tab-pane label="消毒计划" name="second">
- <div class="disinfect">
- <div class="newButton">
- <el-button
- size="small"
- @click="addPlan"
- >
- 新增计划
- </el-button>
- </div>
- <el-tabs v-model="activeNameTwo" @tab-click="handleClick">
- <el-tab-pane label="当前设备计划列表" name="first">
- <el-row>
- <el-col :span="2">
- <el-checkbox style="width: 30px" @change="changeCheckOne" v-model="checkAllStatus">全选</el-checkbox>
- </el-col>
- <el-col :span="2">
- <el-button size="small" @click="openDeleteMahcine">批量删除</el-button>
- </el-col>
- </el-row>
- <el-row>
- <el-table
- ref="multipleTable"
- @selection-change="handleSelectionChangeOne"
- :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
- :data="planData"
- border
- fit
- highlight-current-row
- style="width: 100%;margin-top: 10px;"
- >
- <el-table-column align="center" type="selection" width="55"></el-table-column>
- <el-table-column label="时间" align="center" >
- <template slot-scope="scope">
- {{scope.row.time}}
- </template>
- </el-table-column>
- <el-table-column label="班次" align="center" >
- <template slot-scope="scope">
- {{scope.row.classtime}}
- </template>
- </el-table-column>
- <el-table-column label="机表消毒方式" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.way}}
- </template>
- </el-table-column>
- <el-table-column label="机表消毒液" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.machine_disinfectant}}
- </template>
- </el-table-column>
- <el-table-column label="液路消毒方式" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.disinfectan_way}}
- </template>
- </el-table-column>
- <el-table-column label="液路消毒液" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.disinfectant}}
- </template>
- </el-table-column>
- <el-table-column label="消毒时长/min" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.disinfec_time}}
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center" min-width="120px">
- <template slot-scope="scope">
- <el-tooltip class="item" effect="dark" content="编辑" placement="top">
- <el-button
- size="mini"
- type="primary"
- icon="el-icon-edit-outline"
- @click="EditMachine(scope.row.id, scope.$index)"
- ></el-button>
- </el-tooltip>
-
- <el-tooltip class="item" effect="dark" content="删除" placement="top">
- <el-button
- size="mini"
- type="primary"
- icon="el-icon-delete"
- @click="openDeleteMahcine(scope.row, scope.$index)"
- ></el-button>
- </el-tooltip>
- </template>
-
- </el-table-column>
- </el-table>
- </el-row>
- </el-tab-pane>
- <el-tab-pane label="按机型列表" name="second">
- <el-row>
- <el-col :span="2">
- <el-checkbox style="width: 30px" @change="changeCheck" v-model="checkAllStatusOne">全选</el-checkbox>
- </el-col>
- <el-col :span="2">
- <el-button size="small" @click="openDeleteMahcineOne">批量删除</el-button>
- </el-col>
- </el-row>
- <el-row>
- <el-table
- ref="multipleTableOne"
- @selection-change="handleSelectionChange"
- :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
- :data="tableData"
- border
- fit
- highlight-current-row
- style="width: 100%;margin-top: 10px;"
- >
- <el-table-column align="center" type="selection" width="55"></el-table-column>
- <el-table-column label="型号" align="center" min-width="70px">
- <template slot-scope="scope">
- {{scope.row.equitment_name}}
- </template>
- </el-table-column>
- <el-table-column label="时间" align="center" min-width="70px" >
- <template slot-scope="scope">
- {{scope.row.time}}
- </template>
- </el-table-column>
- <el-table-column label="班次" align="center" min-width="70px" >
- <template slot-scope="scope">
- {{scope.row.classtime}}
- </template>
- </el-table-column>
- <el-table-column label="基表消毒方式" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.way}}
- </template>
- </el-table-column>
- <el-table-column label="基表消毒液" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.machine_disinfectant}}
- </template>
- </el-table-column>
- <el-table-column label="液路消毒方式" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.disinfectant}}
- </template>
- </el-table-column>
- <el-table-column label="液路消毒液" align="center" min-width="110px" >
- <template slot-scope="scope">
- {{scope.row.disinfectan_way}}
- </template>
- </el-table-column>
- <el-table-column label="消毒时长/min" align="center" min-width="120px" >
- <template slot-scope="scope">
- {{scope.row.disinfec_time}}
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center" min-width="130px">
- <template slot-scope="scope">
- <el-tooltip class="item" effect="dark" content="编辑" placement="top">
- <el-button
- size="mini"
- type="primary"
- icon="el-icon-edit-outline"
- @click="EditMachine(scope.row.id, scope.$index)"
- ></el-button>
- </el-tooltip>
-
- <el-tooltip class="item" effect="dark" content="删除" placement="top">
- <el-button
- size="mini"
- type="primary"
- icon="el-icon-delete"
- @click="openDeleteMahcineOne(scope.row, scope.$index)"
- ></el-button>
- </el-tooltip>
- </template>
-
- </el-table-column>
- </el-table>
- </el-row>
- </el-tab-pane>
- </el-tabs>
- </div>
- </el-tab-pane>
-
-
-
- <el-tab-pane label="使用登记" name="third">
- <el-tabs v-model="activeNameThree" @tab-click="handleClick">
- <el-tab-pane label="新增使用登记" name="first">
- <el-form :model="userform" ref="userform" :rules="userRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="日期:">
- <el-date-picker
- v-model="userform.date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="班次:" required prop="classtype">
- <el-select v-model="userform.classtype" placeholder="请选择" class="a" @change="ChangeClass">
- <el-option
- v-for="item in classType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:100px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="分区:" required prop="zone">
- <el-select v-model="userform.zone" placeholder="请选择" class="a">
- <el-option
- v-for="item in bedNumber"
- :key="item.id"
- :label="item.zone_name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="床位号:" required prop="bed_number">
- <el-select style="width:150px" v-model="userform.bed_number">
- <el-option v-for="item in this.bedNumber" :key="item.id" :label="item.number" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="患者:" required prop ="patient_name">
- <el-select style="width:150px" v-model="userform.patient_name" >
- <el-option v-for="item in this.patientName" :key="item.patient_id" :label="item.name" :value="item.patient_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="传染病:">
- <el-input style="width:180px" v-model="userform.contagion"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="透析方式:">
- <el-select v-model="userform.dialysis_mode" placeholder="请选择" class="a">
- <el-option
- v-for="item in treatmode"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="上机时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="userform.start_time"
- style="width:200px;"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="下机时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="userform.end_time"
- style="width:200px;"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="透析时长:">
- <el-input style="width:180px" v-model="userform.dialysis_time"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="实际超滤量:">
- <el-input style="width:180px" v-model="userform.hyperfiltratio"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="体重减少:">
- <el-input style="width:180px" v-model="userform.weight_loss"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="预警值:">
- <el-input style="width:180px" v-model="userform.warning_value"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="使用次数:">
- <el-input style="width:180px" v-model="userform.user_total"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="运行:">
- <el-radio-group v-model="userform.run">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOption" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col>
- <el-form-item label="故障发生阶段:">
- <!-- <el-radio-group v-model="userform.failure_stage">
- <el-radio v-for="item in faultPhase" :label="item.label" :value="item.value" :key="item.value">{{item.label}}</el-radio>
- </el-radio-group> -->
- <el-radio-group v-model="userform.failure_stage">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="故障描述:">
- <el-input style="width:800px" v-model="userform.fault_description"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item class="stoppage" label="故障提示信息及代码:">
- <el-input style="width:700px" v-model="userform.code_information"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-form-item label="机器消毒:"></el-form-item>
- </el-row>
- <el-row>
- <el-col :span="2">
- <el-form-item label="①机表"></el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="消毒方式:" required prop="disinfect_type">
- <el-select v-model="userform.disinfect_type" placeholder="请选择" >
- <el-option
- v-for="item in disinfectType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:150px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="消毒液:" required prop="disinfectant_type">
- <el-select v-model="userform.disinfectant_type" placeholder="请选择" >
- <el-option
- v-for="item in disinfectantType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:150px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="消毒状态:" required prop="disinfection">
- <el-select v-model="userform.disinfection" placeholder="请选择" >
- <el-option
- v-for="item in disinfection"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:100px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="运行:">
- <el-radio-group v-model="userform.machine_run">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in runOptions" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="2">
- <el-form-item label="②液路"></el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="消毒方式:" required prop="fluid_path">
- <el-select v-model="userform.fluid_path" placeholder="请选择" >
- <el-option
- v-for="item in sterilizeType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:135px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="消毒液:" required prop="disinfectant">
- <el-select v-model="userform.disinfectant" placeholder="请选择" >
- <el-option
- v-for="item in fluidPathType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:100px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="消毒状态:" required prop="disinfection_status">
- <el-select v-model="userform.disinfection_status" placeholder="请选择" >
- <el-option
- v-for="item in disinfection"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:100px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="消毒液残留:">
- <el-radio-group v-model="userform.disinfection_residue">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in Disinfectant" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="消毒时长:">
- <el-input style="width:135px" v-model="userform.longtime"></el-input>分钟
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="开始消毒时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="userform.starttime"
- style="width:200px;"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="结束消毒时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="userform.endtime"
- style="width:200px;"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="3">
- <el-form-item label="透析机消毒液:"></el-form-item>
- </el-col>
- <el-col :span="2">
- <el-checkbox v-model="userform.dialysis_checked">更换</el-checkbox>
- </el-col>
- <el-col :span="8">
- <el-form-item label="名称:">
- <el-select v-model="userform.dialysis_name" placeholder="请选择" >
- <el-option
- v-for="item in names"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:200px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="规格:">
- <el-input style="width:100px" v-model="userform.norms"></el-input>桶
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col>
- <el-form-item label="浓度:">
- <el-radio-group v-model="userform.dialysis_concentration">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in potency" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- <!-- <span style="color:red">您已一个月未更换,请注意检测</span> -->
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="3">
- <el-form-item label="细菌过滤器:"></el-form-item>
- </el-col>
- <el-col :span="2">
- <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
- </el-col>
- <el-col :span="8">
- <el-form-item label="名称:">
- <el-select v-model="userform.germ_name" placeholder="请选择" >
- <el-option
- v-for="item in germs"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- style="width:200px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="数量:">
- <el-input style="width:100px" v-model="userform.germ_number"></el-input>支
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="3">
- <el-form-item label="空气滤网清洁:"></el-form-item>
- </el-col>
- <el-col :span="10">
- <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
- <!-- <span style="color:red">您已一个月未清洁,请检查</span> -->
- </el-col>
- <el-col :span="10">
- <el-form-item label="签名:" required prop="sign_name">
- <el-select v-model="userform.sign_name" placeholder="请选择" >
- <el-option
- v-for="item in autograph"
- :key="item.id"
- :label="item.user_name"
- :value="item.id"
- style="width:100px">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div class="elbutton">
- <el-col :span="6">
- <el-button>取消</el-button>
- </el-col>
- <el-col :span="2">
- <el-button @click="SaveInformation('userform')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- </el-tab-pane>
- <el-tab-pane label="使用登记列表" name="second">
- <user-form></user-form>
- </el-tab-pane>
- </el-tabs>
- </el-tab-pane>
- <el-tab-pane label="质量控制" name="fourth">
- <el-tabs v-model="activeNameSix" @tab-click="handleClick">
- <el-tab-pane label="新增质量控制" name="first">
- <span>细菌培养</span>
- <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityForm.date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样标本:">
- <el-select style="width:130px" v-model="qualityForm.specimen" @change="changeSpecimen">
- <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:130px" v-model="qualityForm.concentrate_noa" :disabled="disable"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号">
- <el-input style="width:130px" v-model="qualityForm.concentrate_nob" :disabled="diableTwo"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="采样部位:">
- <el-select style="width:130px" v-model="qualityForm.sampling_locationa">
- <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:180px" v-model="qualityForm.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="sampler">
- <el-select style="width:130px" v-model="qualityForm.sampler">
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:">
- <el-date-picker
- v-model="qualityForm.reporting_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="检测结果:(cfu/ml)">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:800px"
- v-model="qualityForm.detection_result"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <span style="color:#FF9900">注:细菌检测应每个月一次,要求细菌数<100cfu/ml</span>
- </el-col>
- </el-row>
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanSaveBacteria">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button @click="SaveBacteria('qualityForm')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- <el-divider></el-divider>
-
-
- <span>内毒素检测</span>
- <el-form ref="qualityFormTwo" :model="qualityFormTwo" :rules="diaRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityFormTwo.sampling_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样标本:">
- <el-select style="width:130px" v-model="qualityFormTwo.specimenb" @change="changeSpecimen">
- <el-option v-for="item in samplingSpecimen" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:130px" v-model="qualityFormTwo.concentrate_noc" :disabled="disable"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号:">
- <el-input style="width:130px" v-model ="qualityFormTwo.concentrateb_nod" :disabled="diableTwo"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="采样部位:">
- <el-select style="width:130px" v-model="qualityFormTwo.sampling_locationb">
- <el-option v-for="item in samplingLocation" :key="item.id" :label="item.name" :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:180px" v-model ="qualityFormTwo.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="samplerb">
- <el-select style="width:130px" v-model="qualityFormTwo.samplerb">
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:">
- <el-date-picker
- v-model="qualityFormTwo.reporting_dateb"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="检测结果:(EU/ml)">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:800px"
- v-model="qualityFormTwo.detection_resultb"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <span style="color:#FF9900">注:内毒素检测应至少每3个月1次,要求内毒素<0.25EU/ml,每台透析机每年至少检测一次</span>
- </el-col>
- </el-row>
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanLincomycin">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button @click="SaveLincomycin('qualityFormTwo')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- <el-divider></el-divider>
-
-
- <span>透析液离子浓度检测</span>
-
- <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
- <el-row>
- <el-col :span="8">
- <el-form-item label="取样日期:">
- <el-date-picker
- v-model="qualityFormThree.dateb"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="取样者:" required prop="samplerc">
- <el-select style="width:130px" v-model="qualityFormThree.samplerc">
- <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="检测单位:" required prop="detection_unit">
- <el-input style="width:180px" v-model ="qualityFormThree.detection_unit"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="A浓缩液批号:">
- <el-input style="width:130px" v-model="qualityFormThree.concentrate_nof"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="B浓缩液批号:">
- <el-input style="width:130px" v-model="qualityFormThree.concentrate_nog"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出报告日期:">
- <el-date-picker
- v-model="qualityFormThree.date_reportc"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="实际Na+(mmol/L):">
- <el-input style="width:100px" v-model="qualityFormThree.actual_na"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="配方Na+(mmol/L):">
- <el-input style="width:100px" v-model="qualityFormThree.actual_pna"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="K+ (mmol/L):">
- <el-input style="width:100px" v-model="qualityFormThree.actual_k"></el-input>
- </el-form-item>
- </el-col>
-
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="Ca2+(mmol/L):">
- <el-input style="width:100px" v-model="qualityFormThree.actual_ca"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="CI-(mmol/L):">
- <el-input style="width:100px" v-model="qualityFormThree.actual_ci"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="HCO3-(mmol/L):">
- <el-input style="width:100px" v-model="qualityFormThree.actual_hco"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="Mg2+(mmol/L):">
- <el-input style="width:100px" v-model="qualityFormThree.actual_mg"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="PH:">
- <el-input style="width:100px" v-model="qualityFormThree.actual_ph"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div></div>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="备注:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- style="width:500px"
- v-model="qualityFormThree.remakes"
- >
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button @click="cleanQuality">取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button @click="SaveQualityControl('qualityFormThree')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
-
- </el-tab-pane>
- <el-tab-pane label="质量控制列表" name="second">
- <quality-form ref="child"></quality-form>
- </el-tab-pane>
- </el-tabs>
- </el-tab-pane>
- <el-tab-pane label="维修维护" name="five">
- <el-tabs v-model="activeNameFive" @tab-click="handleClick">
- <el-tab-pane label="新增维修维护" name="first">
- <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
- <el-row>
- <el-col :span="8">
- <el-form-item label="保修日期:" required prop="guarantee_date">
- <el-date-picker
- v-model="guaForm.guarantee_date"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="出发时间:">
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="guaForm.start_time"
- style="width:200px;">
- </el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="到达时间:">
- <!-- <el-date-picker
- v-model="guaForm.arrive_time"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker> -->
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="guaForm.arrive_time"
- style="width:200px;">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="完成时间:">
- <!-- <el-date-picker
- v-model="guaForm.finish_time"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:150px">
- </el-date-picker> -->
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="guaForm.finish_time"
- style="width:200px;">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="总路程:(公里)">
- <el-input style="width:200px" v-model = "guaForm.total_distance"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="故障发生阶段">
- <el-radio-group v-model="guaForm.failure_stage">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in faultPhase" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="故障提示信息及代码">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.code_information"
- style="width:500px">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="故障描述:" required prop="fault_description">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.fault_description"
- style="width:300px">
- </el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="原因分析:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.cause_analysis"
- style="width:300px">
- </el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="处理过程:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.treatment_process"
- style="width:300px">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="24">
- <el-form-item label="上传图片:">
- <el-upload
- :data="uploadFileData"
- class="upload-demo"
- action="https://upload.qiniup.com"
- :on-success="handleSuccess"
- :before-upload="beforeUploadFile"
- multiple
- :on-preview="handlePreview"
- :limit="1"
- :on-exceed="handleExceed">
- <el-button size="small" type="primary">上传图片</el-button>
- </el-upload>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="20">
- <el-form-item label="故障是否排除:">
- <el-radio-group v-model="guaForm.exclude">
- <el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in breakDown" :key="index">{{gender.name}}</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="20">
- <el-form-item label="原因:">
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入内容"
- v-model="guaForm.reason"
- style="width:300px">
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <div class="clearn">
- <el-col :span="4">
- <el-button>取消</el-button>
- </el-col>
- <el-col :span="4">
- <el-button @click="SaveRepair('guaForm')">保存</el-button>
- </el-col>
- </div>
- </el-row>
- </el-form>
- </el-tab-pane>
- <el-tab-pane label="维修维护列表" name="second">
- <repair-form ref="child"></repair-form>
- </el-tab-pane>
- </el-tabs>
- </el-tab-pane>
- </el-tabs>
- </div>
- </el-main>
- </el-container>
- </el-container>
- </el-container>
-
- <!-- 新增计划 -->
- <plan-form ref="planForm" :equimentid="equimentid" v-on:getAllPlan="getAllPlan" v-on:getAllPlanDetail="getAllPlanDetail"></plan-form>
- <!-- <edit-machine-form ref="editmachineform" :planid="planid" ></edit-machine-form> -->
- <!-- 综合查询 -->
- <multiple-form ref="multipleform"></multiple-form>
- <!-- 编辑消毒计划 -->
- <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="50%" center>
- <el-form :model="machineform" ref="machineform">
- <el-row>
- <el-col :span="10">
- <el-form-item label="设备型号:">
- <el-select style="width:135px" v-model="machineform.device_type">
- <el-option
- v-for="item in this.DeviceType"
- :key="item.id"
- :label="item.equitment_name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="消毒时长:">
- <el-input style="width:135px" v-model="machineform.disinfec_time"></el-input>
- <span>分钟</span>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="10">
- <el-form-item label="时间:">
- <el-select
- v-model="machineform.time"
- placeholder="请选择时间"
- style="width: 140px;"
- >
- <el-option
- v-for="item in this.timeType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="班次:">
- <el-select
- v-model="machineform.class_time"
- placeholder="请选择时间"
- style="width: 140px;"
- >
- <el-option
- v-for="item in this.classType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="10">
- <el-form-item label="机表消毒方式:">
- <el-select style="width:135px" v-model="machineform.way">
- <el-option
- v-for="item in this.disinfectType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="机表消毒液:">
- <el-select
- style="width:135px"
- v-model="machineform.machine_disinfectant"
- >
- <el-option
- v-for="item in this.disinfectantType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="10">
- <el-form-item label="液路消毒方式:">
- <el-select style="width:135px" v-model="machineform.disinfectant_way">
- <el-option
- v-for="item in this.sterilizeType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="10">
- <el-form-item label="液路消毒液:">
- <el-select style="width:135px" v-model="machineform.disinfectant">
- <el-option
- v-for="item in this.fluidPathType"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="UpdatePlanInfo('machineform')">保存</el-button>
- </span>
- </el-dialog>
-
- </div>
- </div>
-
- </template>
-
- <script>
- import BreadCrumb from '../components/bread-crumb'
- import { getAllSubregion, getAllMachine, getMachineDetailById,
- UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
- getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
- ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin,getAutoData } from '@/api/manage'
- import { uParseTime } from '@/utils/tools'
- import { getToken } from '@/api/qiniu'
- import PlanForm from './components/PlanForm'
- import EditMachineForm from './components/EditMachineForm'
- import MultipleForm from './components/MultipleForm'
- import UserForm from './components/UserForm'
- import QualityForm from './components/QualityForm'
- import RepairForm from './components/RepairForm'
- import { parseTime } from '@/utils'
- import { getFileExtension } from '@/utils/tools'
- const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF','HFHD', 'HFHD+HP', 'PHF', 'HFR', 'HDF+HP', 'CRRT', '腹水回收']
- const moment = require('moment')
- export default {
- name: 'home',
- components: {
- BreadCrumb,
- PlanForm,
- EditMachineForm,
- MultipleForm,
- UserForm,
- QualityForm,
- RepairForm
- },
- data() {
- return {
- crumbs: [
- { path: false, name: '设备管理详情页' }
- ],
- tableData: [],
- tableDatatwo: [],
- planData: [],
- DeviceTypeType: [
- { id: 0, name: '全部' },
- { id: 1, name: '透析机' },
- { id: 2, name: '水处理机' },
- { id: 3, name: '其他' }
- ],
- bedNumber: [],
- Number: [],
- form: {
- id: '',
- serial_number: '',
- devicetype: '',
- bed_number: '',
- device_name: '',
- manufacture_factory: '',
- service_manufacturer: '',
- unit_type: '',
- use_section: '',
- section_number: '',
- buy_date: '',
- install_date: '',
- start_date: '',
- maintenance_engineer: '',
- telephone: '',
- guarantee_date: '',
- machine_status: '',
- user_total: '',
- remarks: '',
- rubbish_date: '',
- rubbish_reason: '',
- user_year: '',
- work_time: '',
- treat_mode: [],
- treat_type: [] // 治疗模式
- },
- activeName: 'first',
- activeNameTwo: 'first',
- activeNameThree: 'first',
- activeNameSix: 'first',
- activeNameFive: 'first',
- machineStatus: [
- { id: 1, name: '使用机' },
- { id: 2, name: '备用机' },
- { id: 3, name: '急诊机' },
- { id: 4, name: '报废机' }
- ],
- DisCardResion: [
- { id: 0, name: "请选择" },
- { id: 1, name: '超期限报废' },
- { id: 2, name: '故障报废' },
- { id: 3, name: '核定报废' }
- ],
- DeviceTypes: [
- { id: 1, name: '透析机' },
- { id: 2, name: '水处理机' },
- { id: 3, name: '其他' }
- ],
- Classes: [
- { id: 0, name: '全部' },
- { id: 1, name: '上午' },
- { id: 2, name: '下午' },
- { id: 3, name: '晚上' }
- ],
- names: [
- { id: 0, name: '请选择' },
- { id: 1, name: '20%柠檬酸' },
- { id: 2, name: '50%柠檬酸' },
- { id: 3, name: '次氯酸钠' }
- ],
- germs: [
- { id: 0, name:"请选择" },
- { id: 1, name: '费森细菌过滤器' },
- { id: 2, name: '日机装细菌过滤器' },
- { id: 3, name: '贝朗机细菌过滤器' },
- { id: 4, name: '东丽机细菌过滤器' }
- ],
- autograph: [],
- bedZone: [],
- forms: {
- zone_id: '', // 分区号
- class_id: '', // 班次
- device_type: '', // 设备类型
- date: ''
- },
- currentRow: null,
- cancelShow: false,
- confirmShow: false,
- isIndeterminate: true,
- checkAll: false,
- cities: cityOptions,
- rules: {
- serial_number: [{ required: true, message: '请填写序列号' }],
- device_name: [{ required: true, message: '请填写序列号' }],
- devicetype: [{ required: true, message: '请填写设备类型' }],
- unit_type: [{ required: true, message: '请填写设备型号' }]
- },
- qualitRules: {
- detection_unit: [{ required: true, message: '请填写检测单位' }],
- sampler: [{ required: true, message: '请填写取样者' }],
-
- },
- diaRules:{
- detection_unit: [{ required: true, message: '请填写检测单位' }],
- samplerb: [{ required: true, message: '请填写取样者' }],
- },
- repirRules: {
- guarantee_date: [{ required: true, message: '请填写保修日期' }],
- fault_description: [{ required: true, message: '请填写故障描述' }]
- },
- ruleThree:{
- detection_unit: [{ required: true, message: '请填写检测单位' }],
- samplerc: [{ required: true, message: '请填写取样者' }]
- },
- userRules:{
- zone: [{required:true,message:"请填写分区"}],
- bed_number: [{required:true,message:"请填写床位号"}],
- patient_name: [{required:true,message:"请填写患者"}],
- disinfect_type: [{required:true,message:"请填写消毒方式"}],
- disinfectant_type: [{required:true,message:"请填写消毒液"}],
- disinfection:[{required:true,message:"请填写消毒状态"}],
- fluid_path:[{required:true,message:"请填写消毒方式"}],
- disinfectant:[{required:true,message:"请填写消毒液"}],
- disinfection_status:[{required:true,message:"消毒状态"}],
- sign_name:[{required:true,message:"请填写签名"}]
- },
- runOption: [
- { id: 1, name: '正常' },
- { id: 2, name: '故障' }
- ],
- runOptions: [
- { id: 1, name: '达标' },
- { id: 2, name: '未达标' }
- ],
- faultPhase: [
- { id: 1, name: '开机启动' },
- { id: 2, name: '自检' },
- { id: 3, name: '准备' },
- { id: 4, name: '治疗' },
- { id: 5, name: '消毒' }
- ],
- Disinfectant: [
- { id: 1, name: '有' },
- { id: 2, name: '无' }
- ],
- potency: [
- { id: 1, name: '达标' },
- { id: 2, name: '未达标' }
- ],
- sampling: [],
- DeviceType: [],
- equimentid: 0,
- checkAllStatus: false,
- checkAllStatusOne: false,
- selectMachines: [],
- selectMachinesOne: [],
- machineIndex: -1,
- planid: 0,
- machineform: {
- id: '',
- device_type: '',
- disinfec_time: '',
- time: '',
- class_time: '',
- way: '',
- machine_disinfectant: '',
- disinfectant_way: '',
- disinfectant: ''
- },
- dialogVisible: false,
- timeType: [
- { id: 1, name: '周一' },
- { id: 2, name: '周二' },
- { id: 3, name: '周三' },
- { id: 4, name: '周四' },
- { id: 5, name: '周五' },
- { id: 6, name: '周六' },
- { id: 7, name: '周日' }
- ],
- classType: [
- { id: 0, name: '请选择' },
- { id: 1, name: '上午' },
- { id: 2, name: '下午' },
- { id: 3, name: '晚上' }
- ],
- // 基表消毒方式
- disinfectType:
- [
- { id: 0, name: '/' },
- { id: 1, name: '擦拭' },
- { id: 2, name: '化学消毒' }
- ],
- // 基表消毒液
- disinfectantType: [
- { id: 0, name: '/' },
- { id: 1, name: '0.22%季铵盐' },
- { id: 2, name: '500mg/l含氯消毒剂' },
- { id: 3, name: '1000mg/l含氯消毒剂' },
- { id: 4, name: '1500mg/l含氯消毒剂' }
- ],
- // 夜路消毒方式
- sterilizeType: [
- { id: 0, name: '/' },
- { id: 1, name: '热化学消毒' },
- { id: 2, name: '化学消毒 + 除钙' },
- { id: 3, name: '热化学消毒 + 除钙' },
- { id: 4, name: '热消毒' },
- { id: 5, name: '化学消毒' },
- { id: 6, name: '除钙' },
- { id: 7, name: '清洗' }
- ],
- // 夜路消毒液
- fluidPathType: [
- { id: 0, name: '/' },
- { id: 1, name: '20%柠檬酸' },
- { id: 2, name: '25%柠檬酸' },
- { id: 3, name: '50%柠檬酸' },
- { id: 4, name: '50%柠檬酸 + 5%次氯酸钠' },
- { id: 5, name: '20%柠檬酸 + 10%冰醋酸' },
- { id: 6, name: '0.2%过氧化乙酸' },
- { id: 7, name: '10%冰醋酸' },
- { id: 8, name: '50%冰醋酸' },
- { id: 9, name: '5%次氯酸钠' }
- ],
-
- userform: {
- date: moment(new Date()).format('YYYY-MM-DD'), // 日期
- classtype: '', // 班次
- zone: '', // 分区
- bed_number: '', // 床位号
- patient_name: '', // 患者
- contagion: '', // 传染病
- dialysis_mode: '', // 透析方式
- start_time: '', // 上机时间
- end_time: '', // 下机时间
- dialysis_time: '', // 透析时长
- hyperfiltratio: '', // 实际超滤量
- weight_loss: '', // 体重减少
- warning_value: '', // 预警值
- user_total: '', // 使用次数
- run: 1, // 运行
- failure_stage: '', // 故事发生阶段
- fault_description: '', // 故障描述
- code_information: '', // 故障提示及代码
-
- // 机器消毒
- disinfect_type: 1, // 消毒方式
- disinfectant_type: 2, // 消毒液
- disinfection: 1, // 消毒状态
- machine_run: 1, // 运行
-
- // 液路
- fluid_path: 3, // 消毒方式
- disinfectant: 3, // 消毒液
- disinfection_status: 1, // 消毒状态
- disinfection_residue: 1, // 消毒液残留
- longtime: '', // 消毒时长
- starttime: '', // 开始消毒时间
- endtime: '', // 结束消毒时间
- dialysis_checked: '', // 更换
- dialysis_name: '', // 名称
- norms: '', // 规格
- dialysis_concentration: 1, // 浓度
- germ_checked: '', // 更换
- germ_name: '', // 名称
- germ_number: '', // 数量
- clean: '', // 清洁
- sign_name: ''// 签名
- },
- treatmentmodes: [
- { id: 1, name: 'HD' },
- { id: 2, name: 'HDF' },
- { id: 3, name: 'HD+HP' },
- { id: 4, name: 'HP' },
- { id: 5, name: 'HF' },
- { id: 6, name: 'SCUF' },
- { id: 7, name: 'IUF' },
- { id: 8, name: 'HFHD+HP' },
- { id: 9, name: 'HFR' },
- { id: 10, name: 'HDF+HP' },
- { id: 11, name: 'GRRT' },
- { id: 12, name: '腹水回收' }
- ],
- treatmode: [
- { id: 0, name: '请选择' },
- { id: 1, name: 'HD' },
- { id: 2, name: 'HDF' },
- { id: 3, name: 'HD + HP' },
- { id: 4, name: 'HP' },
- { id: 5, name: 'HF' },
- { id: 6, name: 'SCUF' },
- { id: 7, name: 'IUF' },
- { id: 8, name: 'HFHD' },
- { id: 9, name: 'HFHD+HP' },
- { id: 10, name: 'PHF' },
- { id: 11, name: 'HFR' },
- { id: 12, name: 'HDF+HP' },
- { id: 13, name: 'CRRT' },
- { id: 14, name: '腹水回输' },
- { id: 15, name: 'HD前置换' },
- { id: 16, name: 'HD后置换' },
- { id: 17, name: 'HDF前置换' },
- { id: 18, name: 'HDF后置换' }
- ],
- disinfection: [
- { id: 1, name: '已消毒' },
- { id: 2, name: '未消毒' },
- { id: 3, name: '消毒未完成' }
- ],
- patientName: [],
- start: '',
- end: '',
- // 细菌培养
- qualityForm: {
- date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- specimen: '', // 取样标本
- concentrate_noa: '', // 浓A
- concentrate_nob: '', // 浓B,
- sampling_locationa: '', // 采样部位
- detection_unit: '', // 检测单位
- sampler: '', // 取样者
- reporting_date: '', // 报告日期
- detection_result: '', // 检测结果
- },
- qualityFormTwo:{
- // 内毒素检测
- detection_unit: '', // 检测单位
- sampling_date: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- specimenb: '', // 取样标本
- concentrate_noc: '', // A浓缩液批号
- concentrateb_nod: '', // B浓
- sampling_locationb: '', // 采样部位
- samplerb: '', // 取样者
- reporting_dateb: '', // 出报告日期
- detection_resultb: '', // 检测结果
- },
- qualityFormThree:{
- detection_unit: '', // 检测单位
- // 透析液离子浓度检测
- dateb: moment(new Date()).format('YYYY-MM-DD'), // 取样日期
- samplerc: '', // 取样者
- concentrate_nof: '', // A浓
- concentrate_nog: '', // B浓
- date_reportc: '', // 出报告日期
- actual_na: '',
- actual_pna: '',
- actual_k: '',
- actual_ca: '',
- actual_ci: '',
- actual_hco: '',
- actual_mg: '',
- actual_ph: '',
- remakes: ''
- },
- disable: false,
- diableTwo: false,
- samplingSpecimen: [
- { id: 0, name: '请选择' },
- { id: 1, name: '透析液' },
- { id: 2, name: 'A浓缩液' },
- { id: 3, name: 'B浓缩液' },
- { id: 4, name: '置换液' },
- { id: 5, name: '透析用水' }
- ],
- samplingLocation: [
- { id: 0, name: '请选择' },
- { id: 1, name: '透析液入口' },
- { id: 2, name: '透析液取样口' },
- { id: 3, name: '置换液出口' },
- { id: 4, name: '透析机反渗水入口' }
- ],
- breakDown: [
- { id: 1, name: '是' },
- { id: 2, name: '待观察' },
- { id: 3, name: '未解决' }
- ],
- guaForm: {
- guarantee_date: moment(new Date()).format('YYYY-MM-DD'),
- start_time: '',
- arrive_time: '',
- finish_time: '',
- total_distance: '',
- failure_stage: '',
- fault_description: '',
- cause_analysis: '',
- treatment_process: '',
- images: '',
- exclude: '',
- reason: '',
- code_information: ''
- },
- qiniuDomain: 'https://images.shengws.com/',
- uploadFileData: { token: '', key: '' }
- }
- },
- methods: {
- handleClick(tab, event) {
- console.log(tab, event)
- },
- handleExceed(file) {
- console.log(file)
- },
- handlePreview(file) {
- console.log(file)
- },
- changetreatmentmode(val) {
- const checkedCount = val.length
- this.checkAll = checkedCount === this.treatmentmode.length
- this.isIndeterminate = checkedCount > 0 && checkedCount < this.treatmentmode.length
- },
- handleCheckAllChange(val) {
- this.form.treat_mode = val ? cityOptions : []
- this.isIndeterminate = false
- },
- handleCheckedCitiesChange(value) {
- const checkedCount = value.length
- this.checkAll = checkedCount === this.cities.length
- this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length
- },
-
- // 获取所有分区
- getAllSubregion() {
- getAllSubregion().then(response => {
- var zones = response.data.data.zones
- this.deviceType = zones
- var numbers = response.data.data.numbers
- console.log('分区号是设么', zones)
- var zone = [{ id: 0, name: "全部" }];
- for (let i = 0; i < zones.length; i++) {
- const item = zones[i];
- zone.push({ id: item.id, name: item.name });
- }
- var devicenumber = response.data.data.devicenumber;
- this.bedZone = zone
- this.bedNumber = numbers
- this.Number = devicenumber
- })
- },
-
- changeBedNumber(val) {
- this.forms.zone_id = val
- this.getAllMachine()
- },
- changeClassId(val) {
- this.forms.class_id = val
- this.getAllMachine()
- },
- changeDeviceId(val) {
- this.forms.device_type = val
- this.getAllMachine()
- },
- getAllMachine() {
- getAllMachine(this.forms.zone_id, this.forms.class_id, this.forms.device_type).then(response => {
- if (response.data.state === 1) {
- var addmahcer = response.data.data.addmahcer
- console.log('设备内容是什么', addmahcer)
- this.tableDatatwo = addmahcer
- var index = this.$route.query.index
- this.$refs.singleTable.setCurrentRow(this.tableDatatwo[index])
- }
- })
- },
- handleCurrentChange(val) {
-
- this.currentRow = val
- this.$forceUpdate()
- this.getMachineDetailById(val.id)
- this.equimentid = val.id
- this.getAllPlanDetail(val.id)
- this.getPatientInfo(val.id)
- // 获取基本信息
- this.getUserRegister(val.id)
- //病人下机后插入数据
- this.getAutoData(val.id)
- },
- getAutoData(id){
- getAutoData(id).then(response=>{
- if(response.data.state === 1){
- var dialysis = response.data.data.dialysis
- console.log("dialysis",dialysis)
- }
- })
- },
- getMachineDetailById(id) {
- getMachineDetailById(id).then(response => {
- if (response.data.state === 1) {
- var addmacher = response.data.data.addmacher
- console.log('addmacher是什么东西', addmacher)
- var mode = response.data.data.mode
- console.log('mode', mode)
- var zone = response.data.data.zone
- console.log('zone', zone)
- const arr1 = []
- // const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD+HP', 'HFR', 'HDF+HP', 'GRRT', '腹水回收']
- for (let index = 0; index < mode.length; index++) {
- if (mode[index].treate_mode === 1) {
- mode[index] = 'HD'
- }
-
- if (mode[index].treate_mode === 2) {
- mode[index] = 'HDF'
- }
-
- if (mode[index].treate_mode === 3) {
- mode[index] = 'HD+HP'
- }
-
- if (mode[index].treate_mode === 4) {
- mode[index] = 'HP'
- }
-
- if (mode[index].treate_mode === 5) {
- mode[index] = 'HF'
- }
-
- if (mode[index].treate_mode === 6) {
- mode[index] = 'SCUF'
- }
-
- if (mode[index].treate_mode === 7) {
- mode[index] = 'IUF'
- }
-
- if (mode[index].treate_mode === 8) {
- mode[index] = 'HFHD'
- }
-
- if (mode[index].treate_mode === 9) {
- mode[index] = 'HFHD+HP'
- }
- if (mode[index].treate_mode === 10) {
- mode[index] = 'PHF'
- }
-
- if (mode[index].treate_mode === 11) {
- mode[index] = 'HFR'
- }
- if (mode[index].treate_mode === 12) {
- mode[index] = 'HDF+HP'
- }
-
- if (mode[index].treate_mode === 13) {
- mode[index] = 'CRRT'
- }
-
- if (mode[index].treate_mode === 14) {
- mode[index] = '腹水回收'
- }
- arr1.push(mode[index])
- }
- this.form.treat_mode = arr1
- this.form.id = addmacher.id
- this.form.serial_number = addmacher.serial_number
- this.form.devicetype = addmacher.device_type
- this.form.bed_number = addmacher.bed_number
- this.form.device_name = addmacher.device_name
- this.form.manufacture_factory = addmacher.manufacture_factory
- this.form.service_manufacturer = addmacher.service_manufacturer
- this.form.unit_type = addmacher.unit_type
- this.form.use_section = addmacher.use_section
- this.form.section_number = addmacher.section_number
- if (addmacher.buy_date !== 0) {
- this.form.buy_date = uParseTime(addmacher.buy_date, '{y}-{m}-{d}')
- }
- if (addmacher.install_date !== 0) {
- this.form.install_date = uParseTime(addmacher.install_date, '{y}-{m}-{d}')
- }
-
- if (addmacher.start_date !== 0) {
- this.form.start_date = uParseTime(addmacher.start_date, '{y}-{m}-{d}')
- }
- this.form.maintenance_engineer = addmacher.maintenace_engineer
- this.form.telephone = addmacher.telephone
- this.form.guarantee_date = addmacher.guarantee_date
- this.form.machine_status = addmacher.machine_status
- this.form.user_total = addmacher.user_total
- this.form.remarks = addmacher.remarks
-
- if (addmacher.rubbish_date !== 0) {
- this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
- }
-
- this.form.rubbish_reason = addmacher.rubbish_reason
- this.form.user_year = addmacher.user_year
- this.form.work_time = addmacher.work_time
- }
- })
- },
- UpdateMachine() {
- this.cancelShow = true
- this.confirmShow = true
- },
- UpdateMachineInfo(formName) {
- const arr2 = []
- this.form.treat_mode.map((item, index) => {
- const obj = {}
- obj.id = index + 1
- arr2.push(obj.id)
- })
- console.log("arr2是什么",arr2)
- this.form.treat_type = arr2
-
- var device_type = this.form.devicetype
- var device_types = parseInt(device_type)
- this.form.devicetype = device_types
-
- console.log('机号是什么东西', this.form.bed_number)
-
- if (this.form.rubbish_reason === '') {
- this.form.rubbish_reason = 0
- }
- var rubbish_reason = this.form.rubbish_reason
- var rubbish_reasons = parseInt(rubbish_reason)
- this.form.rubbish_reason = rubbish_reasons
-
- var machine_status = this.form.machine_status
- var machine_statuss = parseInt(machine_status)
- this.form.machine_status = machine_statuss
-
- if (this.form.bed_number === '') {
- this.form.bed_number = 0
- }
- var bed_numbers = this.form.bed_number
- var bed_numberss = parseInt(bed_numbers)
- this.form.bed_number = bed_numberss
-
- console.log('购买日期', this.form.buy_date)
- this.$refs[formName].validate(valid => {
- UpdateMachineInfo(this.form).then(response => {
- if (response.data.state === 1) {
- var addmacher = response.data.data.addmacher
- console.log('addmacher', addmacher)
- this.$message.success('修改成功')
- }
- })
- })
- },
- cleanMainchine(){
- this.form.manufacture_factory = ""
- this.form.service_manufacturer= ""
- this.form.use_section= ""
- this.form.buy_date= ""
- this.form.install_date= ""
- this.form.start_date= ""
- this.form.maintenance_engineer= ""
- this.form.telephone= ""
- this.form.guarantee_date= ""
- this.form.user_total= ""
- this.form.rubbish_date= ""
- this.form.user_year = ""
- this.form.work_time = ""
- this.form.treat_mode = ""
- },
- addPlan() {
- this.$refs.planForm.open()
- },
- changeCheck() {
- this.$refs.multipleTableOne.clearSelection()
- if (this.checkAllStatusOne) {
- this.$refs.multipleTableOne.toggleAllSelection()
- }
- },
- handleSelectionChange(val) {
- this.selectMachinesOne = val
- },
- changeCheckOne() {
- this.$refs.multipleTable.clearSelection()
- if (this.checkAllStatus) {
- this.$refs.multipleTable.toggleAllSelection()
- }
- },
- handleSelectionChangeOne(val) {
- this.selectMachines = val
- },
- changeMachineStatus() {
-
- },
- getAllPlan() {
- getAllPlan().then(response => {
- if (response.data.state === 1) {
- var plan = response.data.data.plan
-
- for (let index = 0; index < plan.length; index++) {
- if (plan[index].time === 1) {
- plan[index].time = '周一'
- }
-
- if (plan[index].time === 2) {
- plan[index].time = '周二'
- }
-
- if (plan[index].time === 3) {
- plan[index].time = '周三'
- }
-
- if (plan[index].time === 4) {
- plan[index].time = '周四'
- }
- if (plan[index].time === 5) {
- plan[index].time = '周五'
- }
- if (plan[index].time === 6) {
- plan[index].time = '周六'
- }
- if (plan[index].time === 7) {
- plan[index].time = '周日'
- }
-
- if (plan[index].classtime === 1) {
- plan[index].classtime = '上午'
- }
- if (plan[index].classtime === 2) {
- plan[index].classtime = '下午'
- }
- if (plan[index].classtime === 3) {
- plan[index].classtime = '晚上'
- }
-
- if(plan[index].way === 0){
- plan[index].way = "/"
- }
-
- if (plan[index].way === 1) {
- plan[index].way = '擦拭'
- }
- if (plan[index].way === 2) {
- plan[index].way = '化学消毒'
- }
-
- if (plan[index].machine_disinfectant === 0) {
- plan[index].machine_disinfectant = '/'
- }
-
- if (plan[index].machine_disinfectant === 1) {
- plan[index].machine_disinfectant = '0.22%季铵盐'
- }
-
- if (plan[index].machine_disinfectant === 2) {
- plan[index].machine_disinfectant = '500mg/l含氯消毒剂'
- }
- if (plan[index].machine_disinfectantant === 3) {
- plan[index].machine_disinfectant = '1000mg/l含氯消毒剂'
- }
- if (plan[index].machine_disinfectant === 4) {
- plan[index].machine_disinfectant = '1500mg/l含氯消毒剂'
- }
-
- if (plan[index].disinfectan_way === 0) {
- plan[index].disinfectan_way = '/'
- }
-
- if (plan[index].disinfectan_way === 1) {
- plan[index].disinfectan_way = '热化学消毒'
- }
-
- if (plan[index].disinfectan_way === 2) {
- plan[index].disinfectan_way = '化学消毒 + 除钙'
- }
- if (plan[index].disinfectan_way === 3) {
- plan[index].disinfectan_way = '热化学消毒 + 除钙'
- }
-
- if (plan[index].disinfectan_way === 4) {
- plan[index].disinfectan_way = '热消毒'
- }
- if (plan[index].disinfectan_way === 5) {
- plan[index].disinfectan_way = '化学消毒'
- }
- if (plan[index].disinfectan_way === 6) {
- plan[index].disinfectan_way = '除钙'
- }
- if (plan[index].disinfectan_way === 7) {
- plan[index].disinfectan_way = '清洗'
- }
-
- if (plan[index].disinfectant === 0) {
- plan[index].disinfectant = '/'
- }
-
- if (plan[index].disinfectant === 1) {
- plan[index].disinfectant = '20%柠檬酸'
- }
- if (plan[index].disinfectant === 2) {
- plan[index].disinfectant = '25%柠檬酸'
- }
- if (plan[index].disinfectant === 3) {
- plan[index].disinfectant = '50%柠檬酸'
- }
- if (plan[index].disinfectant === 4) {
- plan[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
- }
- if (plan[index].disinfectant === 5) {
- plan[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
- }
- if (plan[index].disinfectant === 6) {
- plan[index].disinfectant = '0.2%过氧化乙酸'
- }
- if (plan[index].disinfectant === 7) {
- plan[index].disinfectant = '10%冰醋酸'
- }
- if (plan[index].disinfectant === 8) {
- plan[index].disinfectant = '50%冰醋酸'
- }
- if (plan[index].disinfectant === 9) {
- plan[index].disinfectant = '5%次氯酸钠'
- }
- }
- this.tableData = plan
- }
- })
- },
- getAllPlanDetail(id) {
- getAllPlanDetail(id).then(response => {
- if (response.data.state === 1) {
- var plandetail = response.data.data.plandetail
- console.log('plandertail', plandetail)
- for (let index = 0; index < plandetail.length; index++) {
- if (plandetail[index].time === 1) {
- plandetail[index].time = '周一'
- }
-
- if (plandetail[index].time === 2) {
- plandetail[index].time = '周二'
- }
-
- if (plandetail[index].time === 3) {
- plandetail[index].time = '周三'
- }
-
- if (plandetail[index].time === 4) {
- plandetail[index].time = '周四'
- }
- if (plandetail[index].time === 5) {
- plandetail[index].time = '周五'
- }
- if (plandetail[index].time === 6) {
- plandetail[index].time = '周六'
- }
- if (plandetail[index].time === 7) {
- plandetail[index].time = '周日'
- }
-
- if (plandetail[index].classtime === 1) {
- plandetail[index].classtime = '上午'
- }
- if (plandetail[index].classtime === 2) {
- plandetail[index].classtime = '下午'
- }
- if (plandetail[index].classtime === 3) {
- plandetail[index].classtime = '晚上'
- }
-
-
- if (plandetail[index].way === 0) {
- plandetail[index].way = '/'
- }
-
- if (plandetail[index].way === 1) {
- plandetail[index].way = '擦拭'
- }
- if (plandetail[index].way === 2) {
- plandetail[index].way = '化学消毒'
- }
-
- if (plandetail[index].machine_disinfectant === 0) {
- plandetail[index].machine_disinfectant = '/'
- }
-
- if (plandetail[index].machine_disinfectant === 1) {
- plandetail[index].machine_disinfectant = '0.22%季铵盐'
- }
-
- if (plandetail[index].machine_disinfectant === 2) {
- plandetail[index].machine_disinfectant = '500mg/l含氯消毒剂'
- }
- if (plandetail[index].machine_disinfectantant === 3) {
- plandetail[index].machine_disinfectant = '1000mg/l含氯消毒剂'
- }
- if (plandetail[index].machine_disinfectant === 4) {
- plandetail[index].machine_disinfectant = '1500mg/l含氯消毒剂'
- }
-
- if (plandetail[index].disinfectan_way === 0) {
- plandetail[index].disinfectan_way = '/'
- }
-
- if (plandetail[index].disinfectan_way === 1) {
- plandetail[index].disinfectan_way = '热化学消毒'
- }
-
- if (plandetail[index].disinfectan_way === 2) {
- plandetail[index].disinfectan_way = '化学消毒 + 除钙'
- }
- if (plandetail[index].disinfectan_way === 3) {
- plandetail[index].disinfectan_way = '热化学消毒 + 除钙'
- }
-
- if (plandetail[index].disinfectan_way === 4) {
- plandetail[index].disinfectan_way = '热消毒'
- }
- if (plandetail[index].disinfectan_way === 5) {
- plandetail[index].disinfectan_way = '化学消毒'
- }
- if (plandetail[index].disinfectan_way === 6) {
- plandetail[index].disinfectan_way = '除钙'
- }
- if (plandetail[index].disinfectan_way === 7) {
- plandetail[index].disinfectan_way = '清洗'
- }
-
- if (plandetail[index].disinfectant === 0) {
- plandetail[index].disinfectant = '/'
- }
-
- if (plandetail[index].disinfectant === 1) {
- plandetail[index].disinfectant = '20%柠檬酸'
- }
- if (plandetail[index].disinfectant === 2) {
- plandetail[index].disinfectant = '25%柠檬酸'
- }
- if (plandetail[index].disinfectant === 3) {
- plandetail[index].disinfectant = '50%柠檬酸'
- }
- if (plandetail[index].disinfectant === 4) {
- plandetail[index].disinfectant = '50%柠檬酸 + 5%次氯酸钠'
- }
- if (plandetail[index].disinfectant === 5) {
- plandetail[index].disinfectant = '20%柠檬酸 + 10%冰醋酸'
- }
- if (plandetail[index].disinfectant === 6) {
- plandetail[index].disinfectant = '0.2%过氧化乙酸'
- }
- if (plandetail[index].disinfectant === 7) {
- plandetail[index].disinfectant = '10%冰醋酸'
- }
- if (plandetail[index].disinfectant === 8) {
- plandetail[index].disinfectant = '50%冰醋酸'
- }
- if (plandetail[index].disinfectant === 9) {
- plandetail[index].disinfectant = '5%次氯酸钠'
- }
- }
- this.planData = plandetail
- }
- })
- },
- EditMachine(id, index) {
- this.dialogVisible = true
- EditPlanDetail(id).then(response => {
- if (response.data.state === 1) {
- var plan = response.data.data.plan
- console.log('plan是什么东西', plan)
- this.machineform.id = plan.id
- this.machineform.device_type = plan.device_type
- this.machineform.disinfec_time = plan.disinfec_time
- this.machineform.time = plan.time
- this.machineform.class_time = plan.classtime
- this.machineform.way = plan.way
- this.machineform.machine_disinfectant = plan.machine_disinfectant
- this.machineform.disinfectant_way = plan.disinfectan_way
- this.machineform.disinfectant = plan.disinfectant
- }
- })
- },
- UpdatePlanInfo(formName) {
- var devicetype = this.machineform.device_type
- var devicetypes = parseInt(devicetype)
- this.machineform.device_type = devicetypes
-
- var disinfectimes = this.machineform.disinfec_time
- var disinfectime = parseInt(disinfectimes)
- this.machineform.disinfec_time = disinfectime
-
- var times = this.machineform.time
- var time = parseInt(times)
- this.machineform.time = time
-
- var classtimes = this.machineform.class_time
- var classtime = parseInt(classtimes)
- this.machineform.class_time = classtime
-
- var ways = this.machineform.way
- var way = parseInt(ways)
- this.machineform.way = way
-
- var machinedisinfectant = this.machineform.machine_disinfectant
- var machinedisinfectants = parseInt(machinedisinfectant)
- this.machineform.machine_disinfectant = machinedisinfectants
-
- var disinfectantways = this.machineform.disinfectant_way
- var disinfectantway = parseInt(disinfectantways)
- this.machineform.disinfectant_way = disinfectantway
-
- var disinfectants = this.machineform.disinfectant
- var disinfectant = parseInt(disinfectants)
- this.machineform.disinfectant = disinfectant
- UpdatePlanInfo(this.machineform).then(response => {
- if (response.data.state == 1) {
- var plan = response.data.data.plan
- this.dialogVisible = false
- this.$message.success('修改成功')
- console.log('this', this.equimentid)
- this.getAllPlanDetail(this.equimentid)
- this.getAllPlan()
- }
- })
- },
- openDeleteMahcine() {
- if (this.selectMachines.length == 0) {
- this.$message.error('请选择要删除的信息')
- return false
- }
- this.$confirm(
- '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
- '删除提示',
- {
- dangerouslyUseHTMLString: true,
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- )
- .then(() => {
- var ids = []
- var idMap = {}
- for (const index in this.selectMachines) {
- ids.push(this.selectMachines[index].id)
- idMap[this.selectMachines[index].id] = this.selectMachines[
- index
- ].id
- }
-
- DeletePlans({ ids: ids })
- .then(response => {
- if (response.data.state == 1) {
- var msg = response.data.data.msg
- console.log('msg', msg)
- var planDataLength = this.planData.length
- for (let index = planDataLength - 1; index >= 0; index--) {
- if (this.planData[index].id in idMap) {
- this.planData.splice(index, 1)
- }
- }
- var planDataLengths = this.tableData.length
- for (let index = planDataLengths - 1; index >= 0; index--) {
- if (this.tableData[index].id in idMap) {
- this.tableData.splice(index, 1)
- }
- }
- this.$message.success('删除消毒计划成功')
- } else {
- this.$message.error('删除消毒计划失败')
- }
- })
- .catch(e => {})
- })
- .catch(() => {
- return false
- })
- },
- openDeleteMahcineOne() {
- if (this.selectMachinesOne.length == 0) {
- this.$message.error('请选择要删除的信息')
- return false
- }
- this.$confirm(
- '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
- '删除提示',
- {
- dangerouslyUseHTMLString: true,
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }
- )
- .then(() => {
- var ids = []
- var idMap = {}
- for (const index in this.selectMachinesOne) {
- ids.push(this.selectMachinesOne[index].id)
- idMap[this.selectMachinesOne[index].id] = this.selectMachinesOne[
- index
- ].id
- }
-
- DeletePlans({ ids: ids })
- .then(response => {
- if (response.data.state == 1) {
- var msg = response.data.data.msg
- console.log('msg', msg)
- var planDataLength = this.tableData.length
- for (let index = planDataLength - 1; index >= 0; index--) {
- if (this.tableData[index].id in idMap) {
- this.tableData.splice(index, 1)
- }
- }
- var planDataLengths = this.planData.length
- for (let index = planDataLengths - 1; index >= 0; index--) {
- if (this.planData[index].id in idMap) {
- this.planData.splice(index, 1)
- }
- }
- this.$message.success('删除消毒计划成功')
- } else {
- this.$message.error('删除消毒计划失败')
- }
- })
- .catch(e => {})
- })
- .catch(() => {
- return false
- })
- },
- getAllEquimentName() {
- getAllEquimentName().then(response => {
- if (response.data.state === 1) {
- var equit = response.data.data.equit
- console.log('equit', equit)
- this.DeviceType = equit
- }
- })
- },
- clickQuery() {
- this.$refs.multipleform.open()
- },
- getPatientInfo(bedid) {
- getPatientInfo(bedid).then(response => {
- if (response.data.state === 1) {
- var schedules = response.data.data.schedules
- console.log('schedules', schedules)
- this.patientName = schedules
- }
- })
- },
- ChangeClass(id) {
- ChangeClass(this.equimentid, id).then(response => {
- if (response.data.state === 1) {
- var patients = response.data.data.patients
- console.log('patients', patients)
- if (patients.is_infectious === 0) {
- this.userform.contagion = ''
- }
- if (patients.is_infectious === 1) {
- this.userform.contagion = '无'
- }
- if (patients.is_infectious === 2) {
- this.userform.contagion = '有'
- }
- this.userform.patient_name = patients.patient_id
- var zone = response.data.data.zone
- console.log('zone==========', zone)
- this.userform.zone = zone.id
- var number = response.data.data.number
- console.log('nubmer', number)
- this.userform.bed_number = number.number
- var order = response.data.data.order
- console.log('orgder', order)
- this.userform.start_time = uParseTime(order.start_time, '{y}-{m}-{d} {h}:{i}')
- this.userform.end_time = uParseTime(order.end_time, '{y}-{m}-{d} {h}:{i}')
- var prescription = response.data.data.prescription
- console.log('prescription', prescription)
- this.userform.dialysis_mode = prescription.mode_id
- var dislysis = response.data.data.dislysis
- console.log('dislysis', dislysis)
- this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
- this.userform.hyperfiltratio = dislysis.actual_ultrafiltration + 'L'
- this.userform.weight_loss = dislysis.weight_loss + 'kg'
- }
- })
- },
-
- getTimes(time) {
- return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
- },
-
- SaveInformation(formName) {
-
- var classtypes = this.userform.classtype
- var classtype = parseInt(classtypes)
- this.userform.classtype = classtype
-
- var zone = this.userform.zone
- var zones = parseInt(zone)
- this.userform.zone = zones
-
- var bednumber = this.userform.bed_number
- var bednumbers = parseInt(bednumber)
- this.userform.bed_number = bednumbers
-
- var patientName = this.userform.patient_name
- var patient_name = parseInt(patientName)
- this.userform.patient_name = patient_name
-
-
- var dialysismode = this.userform.dialysis_mode
- var dialysis_mode = parseInt(dialysismode)
- this.userform.dialysis_mode = dialysis_mode
-
-
- if (this.userform.failure_stage === '') {
- this.userform.failure_stage = 0
- }
-
- if(this.userform.dialysis_checked === ''){
- this.userform.dialysis_checked = 0
- }
-
- if (this.userform.dialysis_checked === true) {
- this.userform.dialysis_checked = 1
- }
-
- if (this.userform.dialysis_checked === false) {
- this.userform.dialysis_checked = 0
- }
-
- if(this.userform.germ_checked === ""){
- this.userform.germ_checked = 0
- }
-
- if (this.userform.germ_checked === true) {
- this.userform.germ_checked = 1
- }
- if (this.userform.germ_checked === false) {
- this.userform.germ_checked = 0
- }
-
- if (this.userform.dialysis_name === '') {
- this.userform.dialysis_name = 0
- }
- var dialysis_name = this.userform.dialysis_name
- var dialysis = parseInt(dialysis_name)
- this.userform.dialysis_name = dialysis
-
- if (this.userform.germ_name === ''){
- this.userform.germ_name = 0
- }
- var germname = this.userform.germ_name
- var germames = parseInt(germname)
- this.userform.germ_name = germames
-
- if(this.userform.clean === ""){
- this.userform.clean = 0
- }
-
- if (this.userform.clean === true) {
- this.userform.clean = 1
- }
-
- if (this.userform.clean === false) {
- this.userform.clean = 0
- }
-
- this.userform.starttime = this.getTimes(this.userform.starttime)
- this.userform.endtime = this.getTimes(this.userform.endtime)
-
-
- this.$refs[formName].validate((valid) => {
- if (valid) {
- SaveInformation(this.equimentid, this.userform).then(response => {
- if (response.data.state === 1) {
- var information = response.data.data.information
- console.log('information', information)
- this.$message.success('添加成功')
- // this.$refs.child.getInformationData()
- }
- })
- }
- })
- },
- // changStartTime(val) {
- // this.userform.starttime = val
- // },
- // changeEndTime(val) {
- // this.userform.endtime = val
- // console.log('val', val)
- // console.log('开始时间', this.userform.starttime)
- // console.log('呵呵', this.formatDuring(val))
- // },
- // formatDuring(mss) {
- // const days = parseInt(mss / (1000 * 60 * 60 * 24)) // 得到天数
- // const hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)) // 得到小时
- // const minutes = parseInt((mss % (1000 * 60 * 60)) / (1000 * 60)) // 得到分钟数
- // const seconds = (mss % (1000 * 60)) / 1000 // 得到秒数
- // const str1 = hours < 10 ? ('0' + hours) : hours
- // console.log('str1', str1)
- // const str2 = minutes < 10 ? ('0' + minutes) : minutes
- // return str1 + ':' + str2
- // },
- // 获取签名
- getAllOrganization() {
- getAllOrganization().then(response => {
- if (response.data.state === 1) {
- var approle = response.data.data.approle
- this.autograph = approle
- this.sampling = approle
- }
- })
- },
- getUserRegister(id) {
- getUserRegister(id).then(response => {
- if (response.data.state === 1) {
- var information = response.data.data.information
- console.log('information', information)
- var role = response.data.data.role
- console.log('role', role)
- this.userform.date = information.date
- if (information.class === 1) {
- this.userform.classtype = '上午'
- }
- if (information.class === 2) {
- this.userform.classtype = '下午'
- }
- if (information.class === 3) {
- this.userform.classtype = '晚上'
- }
- this.userform.zone = information.zone
- this.userform.bed_number = information.bed_number
- this.userform.patient_name = information.name
- this.userform.contagion = information.contagion
- this.userform.dialysis_mode = information.dialysis_mode
- this.userform.start_time = uParseTime(information.start_time, '{y}-{m}-{d} {h}:{i}')
- this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
- this.userform.dialysis_time = information.dialysis_hour
- this.userform.hyperfiltratio = information.hyperfiltratio
- this.userform.weight_loss = information.weight_loss
- this.userform.warning_value = information.warning_value
- this.userform.user_total = information.user_total
- this.userform.run = information.move
- this.userform.failure_stage = information.failure_stage
- this.userform.fault_description = information.fault_description
- this.userform.code_information = information.code_information
- if (information.disinfect_type === 1) {
- this.userform.disinfect_type = '擦拭'
- }
- if (information.disinfect_type === 2) {
- this.userform.disinfect_type = '化学消毒'
- }
- if (information.disinfectant_type === 1) {
- this.userform.disinfectant_type = '0.22%季铵盐'
- }
- if (information.disinfectant_type === 2) {
- this.userform.disinfectant_type = '500mg/l含氯消毒剂'
- }
- if (information.disinfectant_type === 3) {
- this.userform.disinfectant_type = '1000mg/l含氯消毒剂'
- }
- if (information.disinfectant_type === 4) {
- this.userform.disinfectant_type = '1500mg/l含氯消毒剂'
- }
-
- if (information.disinfection === 1) {
- this.userform.disinfection = '已消毒'
- }
- if (information.disinfection === 2) {
- this.userform.disinfection = '未消毒'
- }
- if (information.disinfection === 3) {
- this.userform.disinfection = '消毒未完成'
- }
- this.userform.machine_run = information.machine_run
-
- if (information.fluid_path === 1) {
- this.userform.fluid_path = '热化学消毒'
- }
- if (information.fluid_path === 2) {
- this.userform.fluid_path = '化学消毒 + 除钙'
- }
- if (information.fluid_path === 3) {
- this.userform.fluid_path = '热化学消毒 + 除钙'
- }
- if (information.fluid_path === 4) {
- this.userform.fluid_path = '热消毒'
- }
- if (information.fluid_path === 5) {
- this.userform.fluid_path = '化学消毒'
- }
- if (information.fluid_path === 6) {
- this.userform.fluid_path = '除钙'
- }
- if (information.fluid_path === 7) {
- this.userform.fluid_path = '清洗'
- }
-
- if (information.disinfectant === 1) {
- this.userform.disinfectant = '20%柠檬酸'
- }
- if (information.disinfectant === 2) {
- this.userform.disinfectant = '25%柠檬酸'
- }
- if (information.disinfectant === 3) {
- this.userform.disinfectant = '50%柠檬酸'
- }
- if (information.disinfectant === 4) {
- this.userform.disinfectant = '50%柠檬酸 + 5%次氯酸钠'
- }
- if (information.disinfectant === 5) {
- this.userform.disinfectant = '20%柠檬酸 + 10%冰醋酸'
- }
- if (information.disinfectant === 6) {
- this.userform.disinfectant = '0.2%过氧化乙酸'
- }
- if (information.disinfectant === 7) {
- this.userform.disinfectant = '10%冰醋酸'
- }
- if (information.disinfectant === 8) {
- this.userform.disinfectant = '50%冰醋酸'
- }
- if (information.disinfectant === 9) {
- this.userform.disinfectant = '5%次氯酸钠'
- }
- if (information.disinfection_status === 1) {
- this.userform.disinfectant = '已消毒'
- }
- if (information.disinfection_status === 2) {
- this.userform.disinfectant = '未消毒'
- }
- if (information.disinfection_status === 3) {
- this.userform.disinfectant = '消毒未完成'
- }
- this.userform.disinfection_residue = information.disinfection_residue
- this.userform.longtime = information.long_time
- this.userform.starttime = uParseTime(information.disinfec_startime, '{y}-{m}-{d} {h}:{i}')
- this.userform.endtime = uParseTime(information.disinfec_endtime, '{y}-{m}-{d} {h}:{i}')
-
- if (information.dialysis_checked === 1) {
- this.userform.dialysis_checked = true
- }
- if (information.dialysis_checked === 2) {
- this.userform.dialysis_checked = false
- }
- if (information.dialysis_name === 1) {
- this.userform.dialysis_name = '20%柠檬酸'
- }
- if (information.dialysis_name === 2) {
- this.userform.dialysis_name = '50%柠檬酸'
- }
- if (information.dialysis_name === 3) {
- this.userform.dialysis_name = '次氯酸钠'
- }
- this.userform.norms = information.norms
- this.userform.dialysis_concentration = information.dialysis_concentration
- if (information.germ_checked === 1) {
- this.userform.germ_checked = true
- }
- if (information.germs_checked === 0) {
- this.userform.germ_checked = false
- }
- if (information.germ_name === 1) {
- this.userform.germ_name = '费森细菌过滤器'
- }
- if (information.germ_name === 2) {
- this.userform.germ_name = '日机装细菌过滤器'
- }
- if (information.germ_name === 3) {
- this.userform.germ_name = '贝朗机细菌过滤器'
- }
- if (information.germ_name === 4) {
- this.userform.germ_name = '东丽机细菌过滤器'
- }
- this.userform.germ_number = information.germ_number
- if (information.clean === 1) {
- this.userform.clean = true
- }
- if (information.clean === 0) {
- this.userform.clean = false
- }
- this.userform.sign_name = role.user_name
- }
- })
- },
- getOrgName() {
- getOrgName().then(response => {
- if (response.data.state === 1) {
- var org = response.data.data.org
- console.log('org', org)
- this.qualityForm.detection_unit = org.org_name
- this.qualityFormTwo.detection_unit = org.org_name
- this.qualityFormThree.detection_unit = org.org_name
- }
- })
- },
- SaveBacteria(formName) {
- if (this.qualityForm.specimen === '') {
- this.qualityForm.specimen = 0
- }
- var specimen = this.qualityForm.specimen
- var specimens = parseInt(specimen)
- this.qualityForm.specimen = specimens
-
- if (this.qualityForm.sampling_locationa === '') {
- this.qualityForm.sampling_locationa = 0
- }
- var samplinglocationa = this.qualityForm.sampling_locationa
- var samplinglocationas = parseInt(samplinglocationa)
- this.qualityForm.sampling_locationa = samplinglocationas
- this.$refs[formName].validate(response => {
- SaveBacteria(this.equimentid, this.qualityForm).then(response => {
- if (response.data.state === 1) {
- var culture = response.data.data.culture
- this.$message.success('保存成功')
- this.qualityForm.specimen = '',
- this.qualityForm.concentrate_noa = '',
- this.qualityForm.concentrate_nob = '',
- this.qualityForm.sampling_locationa = '',
- this.qualityForm.sampler = ''
- this.qualityForm.reporting_date = ''
- this.qualityForm.detection_result = ''
- this.$refs.child.getAllQulityInfo()
- }
- })
- })
- },
- cleanSaveBacteria() {
- this.qualityForm.specimen = '',
- this.qualityForm.concentrate_noa = '',
- this.qualityForm.concentrate_nob = '',
- this.qualityForm.sampling_locationa = '',
- this.qualityForm.sampler = ''
- this.qualityForm.reporting_date = ''
- this.qualityForm.detection_result = ''
- },
- SaveLincomycin(formName) {
- this.$refs[formName].validate((valid) => {
- if (valid) {
- SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
- if (response.data.state === 1) {
- var dialysate = response.data.data.dialysate
- console.log('dialysate', dialysate)
- this.$message.success('保存成功')
- this.qualityFormTwo.specimenb = ""
- this.qualityFormTwo.concentrate_noc = ""
- this.qualityFormTwo.concentrateb_nod = ""
- this.qualityFormTwo.sampling_locationb = ""
- this.qualityFormTwo.samplerb = ""
- this.qualityFormTwo.reporting_dateb = ""
- this.qualityFormTwo.detection_resultb = ""
- this.$refs.child.getAllQulityInfo()
- }
- })
- }
- })
- },
- cleanLincomycin(){
- this.qualityFormTwo.specimenb = ""
- this.qualityFormTwo.concentrate_noc = ""
- this.qualityFormTwo.concentrateb_nod = ""
- this.qualityFormTwo.sampling_locationb = ""
- this.qualityFormTwo.samplerb = ""
- this.qualityFormTwo.reporting_dateb = ""
- this.qualityFormTwo.detection_resultb = ""
- },
- SaveQualityControl(formName) {
- this.$refs[formName].validate((valid) => {
- if (valid) {
- SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
- if (response.data.state === 1) {
- var ion = response.data.data.ion
- console.log('ion', ion)
- this.$message.success('保存成功')
- this.$refs.child.getAllQulityInfo()
- this.qualityFormThree.samplerc = ""
- this.qualityFormThree.concentrate_nof = ""
- this.qualityFormThree.concentrate_nog = ""
- this.qualityFormThree.date_reportc = ""
- this.qualityFormThree.actual_na = ""
- this.qualityFormThree.actual_pna = ""
- this.qualityFormThree.actual_k = ""
- this.qualityFormThree.actual_ca = ""
- this.qualityFormThree.actual_ci = ""
- this.qualityFormThree.actual_hco = ""
- this.qualityFormThree.actual_mg = ""
- this.qualityFormThree.actual_ph = ""
- this.qualityFormThree.remakes = ""
- }
- })
- }
- })
- },
- cleanQuality(){
- this.qualityFormThree.samplerc = ""
- this.qualityFormThree.concentrate_nof = ""
- this.qualityFormThree.concentrate_nog = ""
- this.qualityFormThree.date_reportc = ""
- this.qualityFormThree.actual_na = ""
- this.qualityFormThree.actual_pna = ""
- this.qualityFormThree.actual_k = ""
- this.qualityFormThree.actual_ca = ""
- this.qualityFormThree.actual_ci = ""
- this.qualityFormThree.actual_hco = ""
- this.qualityFormThree.actual_mg = ""
- this.qualityFormThree.actual_ph = ""
- this.qualityFormThree.remakes = ""
- },
-
- changeSpecimen(val) {
- if (val === 0) {
- this.disable = false
- this.diableTwo = false
- }
- if (val === 1) {
-
- this.disable = false
- this.diableTwo = false
- }
- if (val === 2) {
- this.qualityForm.concentrate_nob = ""
- this.qualityFormTwo.concentrateb_nod = ""
- this.diableTwo = true
- this.disable = false
-
-
- }
- if (val === 3) {
- this.qualityForm.concentrate_noa = ""
- this.qualityFormTwo.concentrate_noc = ""
- this.disable = true
- this.diableTwo = false
- }
- if (val === 4) {
- this.disable = false
- this.diableTwo = false
- }
- if (val === 5) {
- this.disable = false
- this.diableTwo = false
- }
- },
- handleSuccess(res, file, fileList) {
- this.guaForm.images = this.qiniuDomain + res.url
- console.log('图片上传', this.guaForm.images)
- },
- beforeUploadFile(file) {
- const isLt2M = file.size / 1024 / 1024 <= 2048
- console.log('视频大小', file.size / 1024 / 1024)
- console.log('isLt2M是什么', isLt2M)
- if (!isLt2M) {
- this.$message.error('上传视频大小不能超过 2G!')
- return false
- }
- var date = new Date()
- var ext = getFileExtension(file.name)
- var key = date.getFullYear() + (date.getMonth() + 1) + date.getDate() + date.getHours() + date.getMinutes() + date.getSeconds() + '_o_' + file.uid + '.' + ext
- const _self = this
- return new Promise((resolve, reject) => {
- getToken().then(response => {
- const token = response.data.data.uptoken
- console.log('token2是什么?', token)
- _self._data.uploadFileData.token = token
- _self._data.uploadFileData.key = key
- resolve(true)
- }).catch(err => {
- reject(false)
- })
- })
- },
- getTime(value, temp) {
- if (value != undefined) {
- return parseTime(value, temp)
- }
- return ''
- },
- SaveRepair(formName) {
- this.$refs[formName].validate((valid) => {
- if (valid) {
- SaveRepair(this.equimentid, this.guaForm).then(response => {
- if (response.data.state === 1) {
- var repair = response.data.data.repair
- console.log('reqair', repair)
- this.$message.success('保存成功')
- this.$refs.child.getAllRepair()
- }
- })
- }
- })
- }
-
- },
- created() {
- this.getAllSubregion()
- this.getAllMachine()
- var index = this.$route.query.index
- // var id = this.$route.query.id
- // console.log('id是什么', id)
- // this.equimentid = id
- this.getAllPlan()
- this.getAllEquimentName()
- this.getAllOrganization()
- this.getOrgName()
- }
- }
- </script>
- <style lang="scss" scoped>
- .zone{
- // margin-left: 30px;
- text-align: left;
- }
- .disinfect{
- position: relative;
- .newButton{
- position: absolute;
- right: 0;
- top:0;
- z-index: 9;
- }
- }
- .disinfectOne{
- position: relative;
- .newButtonOne{
- position: absolute;
- right: 0;
- top: -10;
- z-index: 18;
- }
- }
- .but{
- width: 200px;
- height: 50px;
- // border: solid 1px red;
- margin-left: 800px;
- }
- .clearn{
- width: 460px;
- height: 50px;
- // border:solid 1px red;
- margin-left:780px;
- }
-
- </style>
- <style lang="scss">
-
- .a{
- .el-input{
- margin-bottom: 10px;
- }
- }
-
- .b{
- .el-button{
- margin-left: 850px;
- margin-bottom: 10px;
- }
- }
-
- .stoppage{
- .el-form-item__label{
- width:190px;
- }
- }
- .main{
- position: relative;
- .newButtonOne{
- position:absolute;
- right: 0;
- z-index: 2;
- }
- }
-
- .elbutton{
- // border: solid 1px red;
- height: 50px;
- width: 400px;
- margin-left: 750px;
- }
- // .el-form-item__label {
- // width: 130px;
- // font-size: 14px;
- // }
- .el-form-item__error {
- margin-left: 130px;
- }
- </style>
|