123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547 |
- <template>
- <div id="user-form">
- <el-row class="c">
- <el-col :span="12">
- <span class="machineClass">日期查询:</span>
- <el-date-picker
- v-model="form.start_time"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:130px"
- ></el-date-picker
- >-
- <el-date-picker
- v-model="form.end_time"
- prefix-icon="none"
- type="date"
- placeholder="请选择"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- style="width:130px"
- ></el-date-picker>
- </el-col>
- <el-col :span="5">
- <span class="machineClass">分区:</span>
- <el-select style="width:110px" v-model="form.zone" @change="changeBed">
- <el-option
- v-for="item in this.zones"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-col>
- <el-col :span="5">
- <span class="machineClass">机位号:</span>
- <el-select style="width:110px" v-model="form.bed">
- <el-option
- v-for="item in this.bedNumberTwo"
- :key="item.id"
- :label="item.number"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-col>
- <el-col :span="2">
- <el-button type="primary" @click="queryInfo()">查询</el-button>
- </el-col>
- </el-row>
- <el-row :span="24" style="display: flex;align-items: center;">
- <el-col :span="2">
- <el-checkbox
- :indeterminate="isIndeterminate"
- v-model="checkAllStatus"
- @change="changeCheck"
- >全选</el-checkbox
- >
- </el-col>
- <el-col :span="3">
- <el-button size="small" @click="BatchDelete">批量删除</el-button>
- </el-col>
- <el-col :span="6">
- <el-button type="primary" @click="printCard">打印</el-button>
- </el-col>
- </el-row>
- <el-row>
- <el-table
- ref="multipleTable"
- @selection-change="handleSelectionChange"
- :row-style="{ color: '#303133' }"
- :header-cell-style="{
- backgroundColor: 'rgb(245, 247, 250)',
- color: '#606266'
- }"
- :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" width="50">
- <template slot-scope="scope">{{ scope.row.bed }}</template>
- </el-table-column>
- <el-table-column label="日期" align="center" width="100">
- <template slot-scope="scope">{{ getTime(scope.row.date) }}</template>
- </el-table-column>
- <el-table-column label="班次" align="center" min-width="110px">
- <template slot-scope="scope">{{ scope.row.class }}</template>
- </el-table-column>
- <el-table-column label="患者" align="center" min-width="110px">
- <template slot-scope="scope">{{ scope.row.name }}</template>
- </el-table-column>
- <el-table-column label="透析方式" align="center" min-width="90px">
- <template slot-scope="scope">{{ scope.row.dialysis_mode }}</template>
- </el-table-column>
- <!-- <el-table-column label="使用次数" align="center" min-width="110px">
- <template slot-scope="scope">{{ scope.row.user_total }}</template>
- </el-table-column>-->
- <el-table-column label="运行" align="center" min-width="110px">
- <template slot-scope="scope">{{ scope.row.move }}</template>
- </el-table-column>
- <el-table-column label="机表消毒" align="center" min-width="110px">
- <el-table-column label="消毒方式" align="center" min-width="110px">
- <template slot-scope="scope">{{
- scope.row.disinfect_type
- }}</template>
- </el-table-column>
- <el-table-column label="消毒液" align="center" min-width="110px">
- <template slot-scope="scope">{{
- scope.row.disinfectant_type
- }}</template>
- </el-table-column>
- <el-table-column label="消毒状态" align="center" min-width="110px">
- <template slot-scope="scope">{{ scope.row.disinfection }}</template>
- </el-table-column>
- <el-table-column label="消毒液浓度" align="center" min-width="110px">
- <template slot-scope="scope">{{
- scope.row.dialysis_concentration
- }}</template>
- </el-table-column>
- </el-table-column>
- <el-table-column label="液路消毒" align="center" min-width="110px">
- <el-table-column label="消毒方式" align="center" min-width="110px">
- <template slot-scope="scope">{{ scope.row.fluid_path }}</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">
- {{ getTimesTwo(scope.row.disinfec_startime) }}
- </template>
- </el-table-column>
- <el-table-column
- label="结束消毒时间"
- align="center"
- min-width="110px"
- >
- <template slot-scope="scope">{{
- getTimesTwo(scope.row.disinfec_endtime)
- }}</template>
- </el-table-column>
- <el-table-column
- label="消毒时长/min"
- align="center"
- min-width="110px"
- >
- <template slot-scope="scope">{{ scope.row.long_time }}</template>
- </el-table-column>
- <el-table-column label="消毒状态" align="center" min-width="110px">
- <template slot-scope="scope">{{
- scope.row.disinfection_status
- }}</template>
- </el-table-column>
- <el-table-column label="消毒液残留" align="center" min-width="110px">
- <template slot-scope="scope">{{
- scope.row.disinfection_residue
- }}</template>
- </el-table-column>
- </el-table-column>
- <el-table-column
- label="透析机消毒液(更换)"
- align="center"
- min-width="110px"
- >
- <template slot-scope="scope">{{
- scope.row.dialysis_checked
- }}</template>
- </el-table-column>
- <el-table-column
- label="细菌过滤器(更换)"
- align="center"
- min-width="110px"
- >
- <template slot-scope="scope">{{ scope.row.germ_checked }}</template>
- </el-table-column>
- <el-table-column label="空气滤网" align="center" min-width="110px">
- <template slot-scope="scope">{{ scope.row.clean }}</template>
- </el-table-column>
- <el-table-column label="签名" align="center" min-width="110px">
- <template slot-scope="scope">{{ scope.row.user_name }}</template>
- </el-table-column>
- <el-table-column label="操作" align="center" fixed="right" min-width="150px">
- <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="
- EditUser(scope.row.id, scope.row.patient_id, scope.$index)
- "
- ></el-button>
- </el-tooltip>
-
- <el-tooltip
- class="item"
- effect="dark"
- content="删除"
- placement="top"
- >
- <el-button
- size="mini"
- type="danger"
- icon="el-icon-delete"
- @click="DeleteUserLogin(scope.row.id, scope.$index)"
- ></el-button>
- </el-tooltip>
- </template>
- </el-table-column>
- </el-table>
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :page-sizes="[10, 20, 30,50,100,200,500,1000,2000,5000,10000]"
- :page-size="10"
- background
- style="margin-top:20px;float: right"
- layout="total, sizes, prev, pager, next, jumper"
- :total="total"
- ></el-pagination>
- </el-row>
-
- <el-dialog
- title="使用登记"
- :visible.sync="dialogVisible"
- width="75%"
- center
- >
- <el-form :model="userform" ref="userform">
- <el-row>
- <el-col :span="8">
- <el-form-item label="日期:">
- <el-date-picker
- v-model="userform.spling_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
- v-model="userform.classtype"
- placeholder="请选择"
- class="a"
- style="width:150px"
- >
- <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="分区:">
- <el-select
- v-model="userform.zone"
- placeholder="请选择"
- class="a"
- style="width:150px"
- >
- <el-option
- v-for="item in zones"
- :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="8">
- <el-form-item label="床位号:">
- <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="患者:">
- <el-autocomplete
- popper-class="my-autocomplete"
- v-model="userform.patient_name"
- :fetch-suggestions="querySearchAsync"
- placeholder="请输入内容"
- @select="handleSelect"
- style="width:150px"
- >
- <i class="el-icon-search el-input__icon" slot="suffix"></i>
- <template slot-scope="{ item }">
- <span class="addr">{{ item.name }}</span>
- </template>
- </el-autocomplete>
- </el-form-item>
-
- </el-col>
- <el-col :span="8">
- <el-form-item label="传染病:">
- <el-input
- v-model="userform.contagion"
- :disabled="true"
- style="width:150px"
- ></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"
- style="width:150px"
- >
- <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:185px"
- ></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:185px"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item label="透析时长:">
- <el-input
- style="width:150px"
- v-model="userform.dialysis_time"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="实际超滤量:">
- <el-input
- style="width:150px"
- v-model="userform.hyperfiltratio"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="体重减少:">
- <el-input
- style="width:150px"
- 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:150px"
- v-model="userform.warning_value"
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="使用次数:">
- <el-input
- style="width:150px"
- 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" @change="changeRun">
- <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" :disabled="four">
- <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:600px"
- 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:600px"
- 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="消毒方式:" style="width:200px">
- <el-select
- v-model="userform.disinfect_type"
- placeholder="请选择"
- style="width:230px"
- >
- <el-option
- v-for="item in disinfectType"
- :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-select
- v-model="userform.disinfectant_type"
- placeholder="请选择"
- style="width:230px"
- >
- <el-option
- v-for="item in 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="2" style="visibility: hidden;">
- <el-form-item label="②液路"></el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="消毒状态:">
- <el-select
- v-model="userform.disinfection"
- placeholder="请选择"
- style="width:230px"
- >
- <el-option
- v-for="item in disinfection"
- :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-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="消毒方式:">
- <el-select
- v-model="userform.fluid_path"
- placeholder="请选择"
- style="width:230px"
- >
- <el-option
- v-for="item in sterilizeType"
- :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-select
- v-model="userform.disinfectant"
- placeholder="请选择"
- style="width:230px"
- >
- <el-option
- v-for="item in fluidPathType"
- :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="2" style="visibility: hidden;">
- <el-form-item label="②液路"></el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="消毒状态:">
- <el-select
- v-model="userform.disinfection_status"
- placeholder="请选择"
- style="width:230px"
- >
- <el-option
- v-for="item in disinfection"
- :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-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:140px"
- 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:185px"
- ></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:185px"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item
- label="透析机消毒液:"
- style="display:flex;align-items:center"
- >
- <el-checkbox v-model="userform.dialysis_checked"
- >更换</el-checkbox
- >
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="名称:">
- <el-select
- v-model="userform.dialysis_name"
- placeholder="请选择"
- style="width:150px"
- >
- <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="8">
- <el-form-item label="规格:">
- <el-input style="width:150px" v-model="userform.norms"></el-input
- >桶
- </el-form-item>
- <span style="color:red" v-show="showone"
- >您已一个月未更换,请注意检测</span
- >
- </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>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item
- label="细菌过滤器:"
- style="display:flex;align-items:center"
- >
- <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
- <span style="color:red" v-show="showone"
- >您已一个月未更换,请注意检测</span
- >
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="名称:">
- <el-select
- v-model="userform.germ_name"
- placeholder="请选择"
- style="width:150px"
- >
- <el-option
- v-for="item in germs"
- :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="数量:">
- <el-input
- style="width:150px"
- v-model="userform.germ_number"
- ></el-input
- >支
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="8">
- <el-form-item
- label="空气滤网清洁:"
- style="display:flex;align-items:center"
- >
- <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
- <span style="color:red" v-show="showone"
- >您已一个月未清洁,请检查</span
- >
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="签名:">
- <el-select
- v-model="userform.sign_name"
- placeholder="请选择"
- style="width:185px"
- >
- <el-option
- v-for="item in autograph"
- :key="item.admin_user_id"
- :label="item.user_name"
- :value="item.admin_user_id"
- style="width:185px"
- ></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="UpdateForm('userform')"
- >保存</el-button
- >
- </span>
- </el-dialog>
-
- <div hidden="hidden">
- <div id="print-card-info" v-show="hiddenShow">
- <div>
- <div class="print_main_content">
- <div class="order_title">设备使用记录清单</div>
- </div>
- <div>
- <div class="printClass">打印日期:{{ nowTime }}</div>
- <table
- border="1"
- style="width:100%"
- cellspacing="0"
- cellpadding="0"
- class="tableClass"
- >
- <tr>
- <td
- :rowspan="2"
- style="text-align:center;width:60px;font-size:15px;"
- >
- 机号
- </td>
- <td
- :rowspan="2"
- style="text-align:center;width:100px;font-size:15px"
- >
- 日期
- </td>
- <td
- :rowspan="2"
- style="text-align:center;width:50px;font-size:15px"
- >
- 班次
- </td>
- <td
- :rowspan="2"
- style="text-align:center;width:70px;font-size:15px"
- >
- 患者
- </td>
- <td
- :rowspan="2"
- style="text-align:center;width:60px;font-size:15px"
- >
- 透析方式
- </td>
- <td
- :rowspan="2"
- style="text-align:center;width:60px;font-size:15px"
- >
- 运行
- </td>
- <td
- :colspan="4"
- style="text-align:center;width:60px;font-size:15px"
- >
- 机表消毒
- </td>
- <td
- :colspan="5"
- style="text-align:center;width:80px;font-size:15px"
- >
- 液路消毒
- </td>
- <td
- :rowspan="2"
- style="text-align:center;width:80px;font-size:15px"
- >
- 签名
- </td>
- </tr>
- <tr>
- <td style="text-align:center;width:70px;font-size:15px">
- 消毒方式
- </td>
- <td style="text-align:center;width:50px;font-size:15px">
- 消毒液
- </td>
- <td style="text-align:center;width:70px;font-size:15px">
- 消毒状态
- </td>
- <td style="text-align:center;width:95px;font-size:15px">
- 消毒液浓度
- </td>
- <td style="text-align:center;width:70px;font-size:15px">
- 消毒方式
- </td>
- <td style="text-align:center;width:50px;font-size:15px">
- 消毒液
- </td>
- <td style="text-align:center;width:70px;font-size:15px">
- 消毒时长/min
- </td>
- <td style="text-align:center;width:70px;font-size:15px">
- 消毒状态
- </td>
- <td style="text-align:center;width:70px;font-size:15px">
- 消毒液残留
- </td>
- </tr>
- <tr v-for="item in this.tableData" :key="item.id">
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.bed }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ getTimeTwo(item.date) }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.class }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.name }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.dialysis_mode }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.move }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.disinfect_type }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.disinfectant_type }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.disinfection }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.dialysis_concentration }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.fluid_path }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.disinfectant }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.long_time }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.disinfection_status }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.disinfection_residue }}
- </td>
- <td style="text-align:center;font-size:15px;height:30px">
- {{ item.user_name }}
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
-
- <script>
- import {
- getAllSubregion,
- getInformationData,
- getAllOrganization,
- EditUser,
- DeleteUserform,
- UpdateForm,
- queryInfo,
- getUserForm,
- getBedForm,
- getPatientDetail,
- DeleteUserLogin
- } from "@/api/manage";
- import { uParseTime } from "@/utils/tools";
- import { PostSearch } from "@/api/patient";
- import { changeBed } from "@/api/manage";
- // eslint-disable-next-line no-unused-vars
- import print from "print-js";
- const moment = require("moment");
- export default {
- name: "UserForm",
- props: {
- userdata: Number
- },
- data() {
- return {
- nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
- tableData: [],
- value: "",
- zones: [],
- bedNumber: [],
- patientName: [],
- isIndeterminate: false,
- dialogVisible: false,
- checkAllStatus: false,
- form: {
- zone: "",
- bed: "",
- start_time: "",
- end_time: ""
- },
- checkAll: false,
- limit: 10,
- page: 1,
- total: 0,
- value: "",
- classType: [
- { id: 1, name: "上午" },
- { id: 2, name: "下午" },
- { id: 3, 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后置换" },
- { id:19, name:"IUF+HD"},
- { id:20, name:"UF"},
- { id:21, name:"HD+"},
- { id:22, name:"血浆胆红素吸附+HDF"},
- { id:23, name:"血浆胆红素吸附"},
- { id:24, name:"I-HDF"},
- { id:25, name:"HD高通"},
- { id:26, name:"CVVH"},
- { id:27, name:"CVVHD"},
- { id:28, name:"CVVHDF"},
- { id:29, name:"PE"},
- ],
- // 基表消毒方式
- 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含氯消毒剂" },
- { id: 5, name: "消毒湿巾" }
- ],
- // 夜路消毒方式
- 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%次氯酸钠" }
- ],
- 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: "未达标" }],
- disinfection: [
- { 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: [],
- selectCulture: [],
- userform: {
- id: "",
- spling_date: "", // 日期
- 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: "", // 签名
- patient_id: "",
- equiment_id: ""
- },
- hiddenShow: false,
- searchArray: [],
- bed: "",
- bedNumberTwo: [],
- four: true,
- showone: false
- };
- },
- methods: {
- handleSelectionChange(val) {
- this.selectCulture = val;
- },
- changeCheck() {
- this.$refs.multipleTable.clearSelection();
- if (this.checkAllStatus) {
- this.$refs.multipleTable.toggleAllSelection();
- }
- },
- getAllSubregion() {
- getAllSubregion().then(response => {
- if (response.data.state === 1) {
- var zones = response.data.data.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 });
- }
- this.zones = zone;
-
- var numbers = response.data.data.numbers;
- var number = [{ id: 0, number: "全部" }];
- for (let index = 0; index < numbers.length; index++) {
- const item = numbers[index];
- number.push({ id: item.id, number: item.number });
- }
- this.bedNumber = number;
- }
- });
- },
- getInformationData() {
- getInformationData(this.limit, this.page).then(response => {
- if (response.data.state === 1) {
- var information = response.data.data.information;
- // console.log('information是什么', information)
- for (let index = 0; index < information.length; index++) {
- if (information[index].class === 1) {
- information[index].class = "上午";
- }
- if (information[index].class === 2) {
- information[index].class = "下午";
- }
- if (information[index].class === 3) {
- information[index].class = "晚上";
- }
- if (information[index].dialysis_mode === 1) {
- information[index].dialysis_mode = "HD";
- }
- if (information[index].dialysis_mode === 2) {
- information[index].dialysis_mode = "HDF";
- }
- if (information[index].dialysis_mode === 3) {
- information[index].dialysis_mode = "HD + HP";
- }
- if (information[index].dialysis_mode === 4) {
- information[index].dialysis_mode = "HP";
- }
- if (information[index].dialysis_mode === 5) {
- information[index].dialysis_mode = "HF";
- }
- if (information[index].dialysis_mode === 6) {
- information[index].dialysis_mode = "SCUF";
- }
- if (information[index].dialysis_mode === 7) {
- information[index].dialysis_mode = "IUF";
- }
- if (information[index].dialysis_mode === 8) {
- information[index].dialysis_mode = "HFHD";
- }
- if (information[index].dialysis_mode === 9) {
- information[index].dialysis_mode = "HFHD+HP";
- }
- if (information[index].dialysis_mode === 10) {
- information[index].dialysis_mode = "PHF";
- }
- if (information[index].dialysis_mode === 11) {
- information[index].dialysis_mode = "HFR";
- }
- if (information[index].dialysis_mode === 12) {
- information[index].dialysis_mode = "HDF+HP";
- }
- if (information[index].dialysis_mode === 13) {
- information[index].dialysis_mode = "CRRT";
- }
- if (information[index].dialysis_mode === 14) {
- information[index].dialysis_mode = "腹水回输";
- }
- if (information[index].dialysis_mode === 15) {
- information[index].dialysis_mode = "HD前置换";
- }
- if (information[index].dialysis_mode === 16) {
- information[index].dialysis_mode = "HD后置换";
- }
- if (information[index].dialysis_mode === 17) {
- information[index].dialysis_mode = "HDF前置换";
- }
- if (information[index].dialysis_mode === 18) {
- information[index].dialysis_mode = "HDF后置换";
- }
- if (information[index].dialysis_mode === 19) {
- information[index].dialysis_mode = "IUF+HD";
- }
-
- if (information[index].dialysis_mode === 20) {
- information[index].dialysis_mode = "UF";
- }
- if (information[index].dialysis_mode === 21) {
- information[index].dialysis_mode = "HD+";
- }
-
- if (information[index].dialysis_mode === 22) {
- information[index].dialysis_mode = "血浆胆红素吸附+HDF";
- }
-
- if (information[index].dialysis_mode === 23) {
- information[index].dialysis_mode = "血浆胆红素吸附";
- }
-
- if (information[index].dialysis_mode === 24) {
- information[index].dialysis_mode = "I-HDF";
- }
-
- if (information[index].dialysis_mode === 25) {
- information[index].dialysis_mode = "HD高通";
- }
-
- if (information[index].dialysis_mode === 26) {
- information[index].dialysis_mode = "CVVH";
- }
- if (information[index].dialysis_mode === 27) {
- information[index].dialysis_mode = "CVVHD";
- }
-
- if (information[index].dialysis_mode === 28) {
- information[index].dialysis_mode = "CVVHDF";
- }
- if (information[index].dialysis_mode === 29) {
- information[index].dialysis_mode = "PE";
- }
-
- if (information[index].move === 0) {
- information[index].move = "";
- }
-
- if (information[index].move === 1) {
- information[index].move = "正常";
- }
- if (information[index].move === 2) {
- information[index].move = "故障";
- }
-
- if (information[index].disinfect_type === 0) {
- information[index].disinfect_type = "/";
- }
-
- if (information[index].disinfect_type === 1) {
- information[index].disinfect_type = "擦拭";
- }
- if (information[index].disinfect_type === 2) {
- information[index].disinfect_type = "化学消毒";
- }
-
- if (information[index].disinfectant_type === 0) {
- information[index].disinfectant_type = "/";
- }
-
- if (information[index].disinfectant_type === 1) {
- information[index].disinfectant_type = "0.22%季铵盐";
- }
- if (information[index].disinfectant_type === 2) {
- information[index].disinfectant_type = "500mg/l含氯消毒剂";
- }
- if (information[index].disinfectant_type === 3) {
- information[index].disinfectant_type = "1000mg/l含氯消毒剂";
- }
- if (information[index].disinfectant_type === 4) {
- information[index].disinfectant_type = "1500mg/l含氯消毒剂";
- }
- if (information[index].disinfectant_type === 5) {
- information[index].disinfectant_type = "消毒湿巾";
- }
-
- if (information[index].disinfection === 1) {
- information[index].disinfection = "已消毒";
- }
- if (information[index].disinfection === 2) {
- information[index].disinfection = "未消毒";
- }
- if (information[index].disinfection === 3) {
- information[index].disinfection = "消毒未完成";
- }
-
- // eslint-disable-next-line eqeqeq
- if (information[index].dialysis_concentration == 0) {
- information[index].dialysis_concentration = "";
- }
-
- if (information[index].dialysis_concentration === 1) {
- information[index].dialysis_concentration = "达标";
- }
- if (information[index].dialysis_concentration === 2) {
- information[index].dialysis_concentration = "未达标";
- }
-
- if (information[index].fluid_path === 0) {
- information[index].fluid_path = "/";
- }
- if (information[index].fluid_path === 1) {
- information[index].fluid_path = "热化学消毒";
- }
- if (information[index].fluid_path === 2) {
- information[index].fluid_path = "化学消毒 + 除钙";
- }
- if (information[index].fluid_path === 3) {
- information[index].fluid_path = "热化学消毒 + 除钙";
- }
- if (information[index].fluid_path === 4) {
- information[index].fluid_path = "热消毒";
- }
- if (information[index].fluid_path === 5) {
- information[index].fluid_path = "化学消毒";
- }
- if (information[index].fluid_path === 6) {
- information[index].fluid_path = "除钙";
- }
- if (information[index].fluid_path === 7) {
- information[index].fluid_path = "清洗";
- }
-
- if (information[index].disinfectant === 0) {
- information[index].disinfectant = "/";
- }
-
- if (information[index].disinfectant === 1) {
- information[index].disinfectant = "20%柠檬酸";
- }
- if (information[index].disinfectant === 2) {
- information[index].disinfectant = "25%柠檬酸";
- }
- if (information[index].disinfectant === 3) {
- information[index].disinfectant = "50%柠檬酸";
- }
- if (information[index].disinfectant === 4) {
- information[index].disinfectant = "50%柠檬酸 + 5%次氯酸钠";
- }
- if (information[index].disinfectant === 5) {
- information[index].disinfectant = "20%柠檬酸 + 10%冰醋酸";
- }
- if (information[index].disinfectant === 6) {
- information[index].disinfectant = "0.2%过氧化乙酸";
- }
- if (information[index].disinfectant === 7) {
- information[index].disinfectant = "10%冰醋酸";
- }
- if (information[index].disinfectant === 8) {
- information[index].disinfectant = "50%冰醋酸";
- }
- if (information[index].disinfectant === 9) {
- information[index].disinfectant = "5%次氯酸钠";
- }
- if (information[index].disinfection_status === 0) {
- information[index].disinfection_status = "";
- }
- if (information[index].disinfection_status === 1) {
- information[index].disinfection_status = "已消毒";
- }
- if (information[index].disinfection_status === 2) {
- information[index].disinfection_status = "未消毒";
- }
- if (information[index].disinfection_status === 3) {
- information[index].disinfection_status = "消毒未完成";
- }
- if (information[index].disinfection_residue === 1) {
- information[index].disinfection_residue = "有残留";
- }
- if (information[index].disinfection_residue === 2) {
- information[index].disinfection_residue = "无残留";
- }
- if (information[index].dialysis_checked === 1) {
- information[index].dialysis_checked = "√";
- }
- if (information[index].dialysis_checked === 0) {
- information[index].dialysis_checked = "";
- }
- if (information[index].dialysis_checked === 2) {
- information[index].dialysis_checked = "";
- }
- if (information[index].germ_checked === 1) {
- information[index].germ_checked = "√";
- }
-
- if (information[index].germ_checked === 2) {
- information[index].germ_checked = "";
- }
-
- if (information[index].germ_checked === 0) {
- information[index].germ_checked = "";
- }
- if (information[index].clean === 1) {
- information[index].clean = "√";
- }
- if (information[index].clean === 0) {
- information[index].clean = "";
- }
- if (information[index].clean === 2) {
- information[index].clean = "";
- }
- }
- // var total = response.data.data.total
- // console.log('total', total)
- // this.tableData = information
- // this.total = total
- }
- });
- },
- handleSizeChange(limit) {
- this.limit = limit;
- //this.queryInfo();
- this.getUserForm(this.value);
- },
- handleCurrentChange(page) {
- this.page = page;
- // this.queryInfo();
- this.getUserForm(this.value);
- },
- getTime(time) {
- return uParseTime(time, "{y}-{m}-{d}");
- },
- getTimeTwo(time) {
- return uParseTime(time, "{m}-{d}");
- },
- getTimes(time) {
- if (time < 0) {
- return "";
- }
- if (time === 0) {
- return "";
- } else {
- return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
- }
- },
- getTimesTwo(time) {
- if (time < 0) {
- return "";
- }
- if (time === 0) {
- return "";
- } else {
- return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
- }
- },
- // 获取签名
- getAllOrganization() {
- getAllOrganization().then(response => {
- if (response.data.state === 1) {
- var approle = response.data.data.approle;
- this.autograph = approle;
- }
- });
- },
- EditUser(id, patientid) {
- console.log("hh2h333232332233232323322323",id)
- console.log("patient_id2323223323223322332323322323",patientid)
- EditUser(id, patientid).then(response => {
- if (response.data.state === 1) {
- this.dialogVisible = true;
- var device = response.data.data.device;
- console.log("使用登记详情22222222222",device)
- var patients = response.data.data.patients;
- var count = response.data.data.count
- var macher = response.data.data.macher
- if(macher.user_total == ''){
- macher.user_total = 0
- }
- var totals = count[0].Total + parseInt(macher.user_total)
- this.userform.id = device.id;
- this.userform.spling_date = uParseTime(
- device.date,
- "{y}-{m}-{d}"
- );
- this.userform.patient_id = device.patient_id;
- this.userform.classtype = device.class;
- this.userform.zone = device.zone;
- this.userform.bed_number = device.bed_number;
- this.userform.contagion = device.contagion;
- this.userform.patient_name = patients.name;
- this.userform.dialysis_mode = device.dialysis_mode;
-
- this.userform.start_time = this.updateTimes(device.start_time);
- this.userform.end_time = this.updateTimes(device.end_time);
-
- this.userform.dialysis_hour = device.dialysis_hour;
- this.userform.hyperfiltratio = device.hyperfiltratio;
- this.userform.weight_loss = device.weight_loss;
- this.userform.warning_value = device.warning_value;
-
- this.userform.run = device.move;
-
- this.userform.failure_stage = device.failure_stage;
- this.userform.fault_description = device.fault_description;
- this.userform.code_information = device.code_information;
- this.userform.disinfect_type = device.disinfect_type;
- this.userform.disinfectant_type = device.disinfectant_type;
- this.userform.disinfection = device.disinfection;
- this.userform.machine_run = device.machine_run;
- this.userform.fluid_path = device.fluid_path;
- this.userform.disinfectant = device.disinfectant;
- this.userform.disinfection_status = device.disinfection_status;
- this.userform.disinfection_residue = device.disinfection_residue;
- this.userform.longtime = device.long_time;
- this.userform.dialysis_time = device.dialysis_hour;
-
- this.userform.starttime = this.updateTimes(device.disinfec_startime);
- this.userform.endtime = this.updateTimes(device.disinfec_endtime);
- this.userform.equiment_id = device.equiment_id;
- if (device.dialysis_checked === 1) {
- this.userform.dialysis_checked = true;
- }
- if (device.dialysis_checked === 0) {
- this.userform.dialysis_checked = false;
- }
- if (device.dialysis_checked === 2) {
- this.userform.dialysis_checked = false;
- }
- this.userform.dialysis_name = device.dialysis_name;
- this.userform.norms = device.norms;
- this.userform.dialysis_concentration = device.dialysis_concentration;
- if (device.germ_checked === 1) {
- this.userform.germ_checked = true;
- }
- if (device.germ_checked === 0) {
- this.userform.germ_checked = false;
- }
- if (device.germ_checked === 2) {
- this.userform.germ_checked = false;
- }
-
- this.userform.germ_name = device.germ_name;
- this.userform.germ_number = device.germ_number;
- if (device.clean === 1) {
- this.userform.clean = true;
- }
- if (device.clean === 0) {
- this.userform.clean = false;
- }
- if (device.clean === 2) {
- this.userform.clean = false;
- }
- this.userform.sign_name = device.sign_name;
- if (device.disinfection === 0) {
- this.userform.disinfection = "";
- }
- this.userform.user_total = totals.toString()
- }
- });
- },
- getTimestamp(time) {
- // 把时间日期转成时间戳
- return new Date(time).getTime() / 1000;
- },
- BatchDelete() {
- if (this.selectCulture.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.selectCulture) {
- ids.push(this.selectCulture[index].id);
- idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
- }
- DeleteUserform({ ids: ids }).then(response => {
- if (response.data.state === 1) {
- var msg = response.data.data.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);
- }
- }
- this.$message.success("删除成功");
- }
- });
- });
- },
- updateTimes(time) {
- if (time < 0) {
- return "";
- } else {
- return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
- }
- },
- UpdateForm(formName) {
- if (this.userform.dialysis_checked === "") {
- this.userform.dialysis_checked = 0;
- }
- // eslint-disable-next-line no-empty
- if (this.userform.dialysis_checked === true) {
- this.userform.dialysis_checked = 1;
- }
- if (this.userform.dialysis_checked === false) {
- this.userform.dialysis_checked = 2;
- }
-
- 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 = 2;
- }
-
- 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 = 2;
- }
-
- if (this.userform.start_time == "") {
- this.userform.start_time = "0";
- }
- // eslint-disable-next-line eqeqeq
- if (this.userform.end_time == "") {
- this.userform.end_time = "0";
- }
-
- // eslint-disable-next-line eqeqeq
- if (this.userform.starttime == "") {
- this.userform.starttime = "0";
- }
- // eslint-disable-next-line eqeqeq
- if (this.userform.endtime == "") {
- this.userform.endtime = "0";
- }
- if (this.userform.disinfection === "") {
- this.userform.disinfection = 0;
- }
- var status = this.userform.disinfection;
- var statu = parseInt(status);
- this.userform.disinfection = statu;
-
- var hyperfiltratio = this.userform.hyperfiltratio;
- var hyperfiltratios = parseFloat(hyperfiltratio);
- this.userform.hyperfiltratio = hyperfiltratios;
-
- var weightloss = this.userform.weight_loss;
- var weidht = parseFloat(weightloss);
- this.userform.weight_loss = weidht;
-
- this.$refs[formName].validate(valid => {
- if (valid) {
- console.log("hhhh23233323",this.userform)
-
- UpdateForm(this.userform).then(response => {
- if (response.data.state === 1) {
- var information = response.data.data.information;
- this.dialogVisible = false;
- this.$message.success("修改成功");
- // this.getInformationData();
- this.$forceUpdate();
- }
- });
- }
- });
- },
- queryInfo() {
- queryInfo(
- this.form.zone,
- this.form.bed,
- this.form.start_time,
- this.form.end_time,
- this.limit,
- this.page
- ).then(response => {
- if (response.data.state === 1) {
- var information = response.data.data.infor;
- // console.log("information", information);
- for (let index = 0; index < information.length; index++) {
- if (information[index].class === 0) {
- information[index].class = "";
- }
- if (information[index].class === 1) {
- information[index].class = "上午";
- }
- if (information[index].class === 2) {
- information[index].class = "下午";
- }
- if (information[index].class === 3) {
- information[index].class = "晚上";
- }
-
- if (information[index].dialysis_mode === 0) {
- information[index].dialysis_mode = "";
- }
-
- if (information[index].dialysis_mode === 1) {
- information[index].dialysis_mode = "HD";
- }
- if (information[index].dialysis_mode === 2) {
- information[index].dialysis_mode = "HDF";
- }
- if (information[index].dialysis_mode === 3) {
- information[index].dialysis_mode = "HD + HP";
- }
- if (information[index].dialysis_mode === 4) {
- information[index].dialysis_mode = "HP";
- }
- if (information[index].dialysis_mode === 5) {
- information[index].dialysis_mode = "HF";
- }
- if (information[index].dialysis_mode === 6) {
- information[index].dialysis_mode = "SCUF";
- }
- if (information[index].dialysis_mode === 7) {
- information[index].dialysis_mode = "IUF";
- }
- if (information[index].dialysis_mode === 8) {
- information[index].dialysis_mode = "HFHD";
- }
- if (information[index].dialysis_mode === 9) {
- information[index].dialysis_mode = "HFHD+HP";
- }
- if (information[index].dialysis_mode === 10) {
- information[index].dialysis_mode = "PHF";
- }
- if (information[index].dialysis_mode === 11) {
- information[index].dialysis_mode = "HFR";
- }
- if (information[index].dialysis_mode === 12) {
- information[index].dialysis_mode = "HDF+HP";
- }
- if (information[index].dialysis_mode === 13) {
- information[index].dialysis_mode = "CRRT";
- }
- if (information[index].dialysis_mode === 14) {
- information[index].dialysis_mode = "腹水回输";
- }
- if (information[index].dialysis_mode === 15) {
- information[index].dialysis_mode = "HD前置换";
- }
- if (information[index].dialysis_mode === 16) {
- information[index].dialysis_mode = "HD后置换";
- }
- if (information[index].dialysis_mode === 17) {
- information[index].dialysis_mode = "HDF前置换";
- }
- if (information[index].dialysis_mode === 18) {
- information[index].dialysis_mode = "HDF后置换";
- }
-
- if (information[index].dialysis_mode === 19) {
- information[index].dialysis_mode = "IUF+HD";
- }
-
- if (information[index].dialysis_mode === 20) {
- information[index].dialysis_mode = "UF";
- }
-
- if (information[index].dialysis_mode === 21) {
- information[index].dialysis_mode = "HD+";
- }
-
- if (information[index].dialysis_mode === 22) {
- information[index].dialysis_mode = "血浆胆红素吸附+HDF";
- }
-
- if (information[index].dialysis_mode === 23) {
- information[index].dialysis_mode = "血浆胆红素吸附";
- }
-
- if (information[index].dialysis_mode === 24) {
- information[index].dialysis_mode = "I-HDF";
- }
-
- if (information[index].dialysis_mode === 25) {
- information[index].dialysis_mode = "HD高通";
- }
-
- if (information[index].dialysis_mode === 26) {
- information[index].dialysis_mode = "CVVH";
- }
-
- if (information[index].dialysis_mode === 27) {
- information[index].dialysis_mode = "CVVHD";
- }
-
- if (information[index].dialysis_mode === 28) {
- information[index].dialysis_mode = "CVVHDF";
- }
-
- if (information[index].dialysis_mode === 29) {
- information[index].dialysis_mode = "PE";
- }
-
-
-
- if (information[index].move === 0) {
- information[index].move = "";
- }
-
- if (information[index].move === 1) {
- information[index].move = "正常";
- }
- if (information[index].move === 2) {
- information[index].move = "故障";
- }
-
- if (information[index].disinfect_type === 0) {
- information[index].disinfect_type = "/";
- }
-
- if (information[index].disinfect_type === 1) {
- information[index].disinfect_type = "擦拭";
- }
- if (information[index].disinfect_type === 2) {
- information[index].disinfect_type = "化学消毒";
- }
-
- if (information[index].disinfectant_type === 0) {
- information[index].disinfectant_type = "/";
- }
- if (information[index].disinfectant_type === 1) {
- information[index].disinfectant_type = "0.22%季铵盐";
- }
- if (information[index].disinfectant_type === 2) {
- information[index].disinfectant_type = "500mg/l含氯消毒剂";
- }
- if (information[index].disinfectant_type === 3) {
- information[index].disinfectant_type = "1000mg/l含氯消毒剂";
- }
- if (information[index].disinfectant_type === 4) {
- information[index].disinfectant_type = "1500mg/l含氯消毒剂";
- }
- if (information[index].disinfectant_type === 5) {
- information[index].disinfectant_type = "消毒湿巾";
- }
-
- if (information[index].disinfection === 0) {
- information[index].disinfection = "";
- }
- if (information[index].disinfection === 1) {
- information[index].disinfection = "已消毒";
- }
- if (information[index].disinfection === 2) {
- information[index].disinfection = "未消毒";
- }
- if (information[index].disinfection === 3) {
- information[index].disinfection = "消毒未完成";
- }
-
- if (information[index].dialysis_concentration === 0) {
- information[index].dialysis_concentration = "";
- }
-
- if (information[index].dialysis_concentration === 1) {
- information[index].dialysis_concentration = "达标";
- }
- if (information[index].dialysis_concentration === 2) {
- information[index].dialysis_concentration = "未达标";
- }
-
- if (information[index].fluid_path === 0) {
- information[index].fluid_path = "/";
- }
- if (information[index].fluid_path === 1) {
- information[index].fluid_path = "热化学消毒";
- }
- if (information[index].fluid_path === 2) {
- information[index].fluid_path = "化学消毒 + 除钙";
- }
- if (information[index].fluid_path === 3) {
- information[index].fluid_path = "热化学消毒 + 除钙";
- }
- if (information[index].fluid_path === 4) {
- information[index].fluid_path = "热消毒";
- }
- if (information[index].fluid_path === 5) {
- information[index].fluid_path = "化学消毒";
- }
- if (information[index].fluid_path === 6) {
- information[index].fluid_path = "除钙";
- }
- if (information[index].fluid_path === 7) {
- information[index].fluid_path = "清洗";
- }
-
- if (information[index].disinfectant === 0) {
- information[index].disinfectant = "/";
- }
-
- if (information[index].disinfectant === 1) {
- information[index].disinfectant = "20%柠檬酸";
- }
- if (information[index].disinfectant === 2) {
- information[index].disinfectant = "25%柠檬酸";
- }
- if (information[index].disinfectant === 3) {
- information[index].disinfectant = "50%柠檬酸";
- }
- if (information[index].disinfectant === 4) {
- information[index].disinfectant = "50%柠檬酸 + 5%次氯酸钠";
- }
- if (information[index].disinfectant === 5) {
- information[index].disinfectant = "20%柠檬酸 + 10%冰醋酸";
- }
- if (information[index].disinfectant === 6) {
- information[index].disinfectant = "0.2%过氧化乙酸";
- }
- if (information[index].disinfectant === 7) {
- information[index].disinfectant = "10%冰醋酸";
- }
- if (information[index].disinfectant === 8) {
- information[index].disinfectant = "50%冰醋酸";
- }
- if (information[index].disinfectant === 9) {
- information[index].disinfectant = "5%次氯酸钠";
- }
- if (information[index].disinfection_status === 1) {
- information[index].disinfection_status = "已消毒";
- }
- if (information[index].disinfection_status === 2) {
- information[index].disinfection_status = "未消毒";
- }
- if (information[index].disinfection_status === 3) {
- information[index].disinfection_status = "消毒未完成";
- }
-
- if (information[index].disinfection_residue === 0) {
- information[index].disinfection_residue = "";
- }
-
- if (information[index].disinfection_residue === 1) {
- information[index].disinfection_residue = "有残留";
- }
- if (information[index].disinfection_residue === 2) {
- information[index].disinfection_residue = "无残留";
- }
- if (information[index].dialysis_checked === 1) {
- information[index].dialysis_checked = "√";
- }
- if (information[index].dialysis_checked === 0) {
- information[index].dialysis_checked = "";
- }
-
- if (information[index].dialysis_checked === 2) {
- information[index].dialysis_checked = "";
- }
- if (information[index].germ_checked === 1) {
- information[index].germ_checked = "√";
- }
-
- if (information[index].germ_checked === 0) {
- information[index].germ_checked = "";
- }
- if (information[index].germ_checked === 2) {
- information[index].germ_checked = "";
- }
- if (information[index].clean === 1) {
- information[index].clean = "√";
- }
- if (information[index].clean === 0) {
- information[index].clean = "";
- }
- if (information[index].clean === 2) {
- information[index].clean = "";
- }
- }
-
- this.tableData = information;
- var total = response.data.data.total;
- // console.log('total是什么', total)
- this.total = total;
- }
- });
- },
- printCard() {
- this.hiddenShow = true;
- var ptime = Math.round(new Date().getTime() / 1000);
- this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
-
- const style =
- "@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;font-size:15px } .print_main_content .order_title { text-align: center; font-size: 15px; line-height: 50px;} .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px;font-size:15px } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px;font-size:15px } .td_proj_title { font-size: 15px; line-height: 25px;} .td_proj_content { font-size: 15px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 15px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj}";
-
- setTimeout(() => {
- printJS({
- printable: "print-card-info",
- type: "html",
- style: style,
- scanStyles: false
- });
- }, 1);
- },
-
- querySearchAsync(keyword, cb) {
- let key = "";
- if (keyword != undefined) {
- key = keyword;
- }
- let searchArray = [];
- PostSearch(key).then(response => {
- if (response.data.state == 1) {
- searchArray = response.data.data.patient;
- cb(searchArray);
- } else {
- this.$message.error(response.data.msg);
- cb([]);
- }
- });
- },
- getUserForm(id) {
- getUserForm(id, this.limit, this.page).then(response => {
- if (response.data.state === 1) {
- var information = response.data.data.information;
- console.log("information",information)
- var addmacher = response.data.data.addmacher;
- console.log("addmacher",addmacher)
- for (let index = 0; index < information.length; index++) {
- if(information[index].class === 0){
- information[index].class = "";
- }
- if (information[index].class === 1) {
- information[index].class = "上午";
- }
- if (information[index].class === 2) {
- information[index].class = "下午";
- }
- if (information[index].class === 3) {
- information[index].class = "晚上";
- }
- if (information[index].dialysis_mode === 0) {
- information[index].dialysis_mode = "";
- }
-
- if (information[index].dialysis_mode === 1) {
- information[index].dialysis_mode = "HD";
- }
- if (information[index].dialysis_mode === 2) {
- information[index].dialysis_mode = "HDF";
- }
- if (information[index].dialysis_mode === 3) {
- information[index].dialysis_mode = "HD + HP";
- }
- if (information[index].dialysis_mode === 4) {
- information[index].dialysis_mode = "HP";
- }
- if (information[index].dialysis_mode === 5) {
- information[index].dialysis_mode = "HF";
- }
- if (information[index].dialysis_mode === 6) {
- information[index].dialysis_mode = "SCUF";
- }
- if (information[index].dialysis_mode === 7) {
- information[index].dialysis_mode = "IUF";
- }
- if (information[index].dialysis_mode === 8) {
- information[index].dialysis_mode = "HFHD";
- }
- if (information[index].dialysis_mode === 9) {
- information[index].dialysis_mode = "HFHD+HP";
- }
- if (information[index].dialysis_mode === 10) {
- information[index].dialysis_mode = "PHF";
- }
- if (information[index].dialysis_mode === 11) {
- information[index].dialysis_mode = "HFR";
- }
- if (information[index].dialysis_mode === 12) {
- information[index].dialysis_mode = "HDF+HP";
- }
- if (information[index].dialysis_mode === 13) {
- information[index].dialysis_mode = "CRRT";
- }
- if (information[index].dialysis_mode === 14) {
- information[index].dialysis_mode = "腹水回输";
- }
- if (information[index].dialysis_mode === 15) {
- information[index].dialysis_mode = "HD前置换";
- }
- if (information[index].dialysis_mode === 16) {
- information[index].dialysis_mode = "HD后置换";
- }
- if (information[index].dialysis_mode === 17) {
- information[index].dialysis_mode = "HDF前置换";
- }
- if (information[index].dialysis_mode === 18) {
- information[index].dialysis_mode = "HDF后置换";
- }
-
- if (information[index].dialysis_mode === 19) {
- information[index].dialysis_mode = "IUF+HD";
- }
-
- if (information[index].dialysis_mode === 20) {
- information[index].dialysis_mode = "UF";
- }
-
- if (information[index].dialysis_mode === 21) {
- information[index].dialysis_mode = "HD+";
- }
-
- if (information[index].dialysis_mode === 22) {
- information[index].dialysis_mode = "血浆胆红素吸附+HDF";
- }
-
- if (information[index].dialysis_mode === 23) {
- information[index].dialysis_mode = "血浆胆红素吸附";
- }
-
- if (information[index].dialysis_mode === 24) {
- information[index].dialysis_mode = "I-HDF";
- }
-
- if (information[index].dialysis_mode === 25) {
- information[index].dialysis_mode = "HD高通";
- }
-
- if (information[index].dialysis_mode === 26) {
- information[index].dialysis_mode = "CVVH";
- }
-
- if (information[index].dialysis_mode === 27) {
- information[index].dialysis_mode = "CVVHD";
- }
-
- if (information[index].dialysis_mode === 28) {
- information[index].dialysis_mode = "CVVHDF";
- }
- if (information[index].dialysis_mode === 29) {
- information[index].dialysis_mode = "PE";
- }
-
- if (information[index].move === 0) {
- information[index].move = "";
- }
- if (information[index].move === 1) {
- information[index].move = "正常";
- }
- if (information[index].move === 2) {
- information[index].move = "故障";
- }
-
- if (information[index].disinfect_type === 0) {
- information[index].disinfect_type = "/";
- }
-
- if (information[index].disinfect_type === 1) {
- information[index].disinfect_type = "擦拭";
- }
- if (information[index].disinfect_type === 2) {
- information[index].disinfect_type = "化学消毒";
- }
-
- if (information[index].disinfectant_type === 0) {
- information[index].disinfectant_type = "/";
- }
-
- if (information[index].disinfectant_type === 1) {
- information[index].disinfectant_type = "0.22%季铵盐";
- }
- if (information[index].disinfectant_type === 2) {
- information[index].disinfectant_type = "500mg/l含氯消毒剂";
- }
- if (information[index].disinfectant_type === 3) {
- information[index].disinfectant_type = "1000mg/l含氯消毒剂";
- }
- if (information[index].disinfectant_type === 4) {
- information[index].disinfectant_type = "1500mg/l含氯消毒剂";
- }
- if (information[index].disinfectant_type === 5) {
- information[index].disinfectant_type = "消毒湿巾";
- }
-
- if (information[index].disinfection === 0) {
- information[index].disinfection = "";
- }
- if (information[index].disinfection === 1) {
- information[index].disinfection = "已消毒";
- }
- if (information[index].disinfection === 2) {
- information[index].disinfection = "未消毒";
- }
- if (information[index].disinfection === 3) {
- information[index].disinfection = "消毒未完成";
- }
-
- if (information[index].dialysis_concentration === 0) {
- information[index].dialysis_concentration = "";
- }
- if (information[index].dialysis_concentration === 1) {
- information[index].dialysis_concentration = "达标";
- }
- if (information[index].dialysis_concentration === 2) {
- information[index].dialysis_concentration = "未达标";
- }
-
- if (information[index].fluid_path === 0) {
- information[index].fluid_path = "/";
- }
- if (information[index].fluid_path === 1) {
- information[index].fluid_path = "热化学消毒";
- }
- if (information[index].fluid_path === 2) {
- information[index].fluid_path = "化学消毒 + 除钙";
- }
- if (information[index].fluid_path === 3) {
- information[index].fluid_path = "热化学消毒 + 除钙";
- }
- if (information[index].fluid_path === 4) {
- information[index].fluid_path = "热消毒";
- }
- if (information[index].fluid_path === 5) {
- information[index].fluid_path = "化学消毒";
- }
- if (information[index].fluid_path === 6) {
- information[index].fluid_path = "除钙";
- }
- if (information[index].fluid_path === 7) {
- information[index].fluid_path = "清洗";
- }
-
- if (information[index].disinfectant === 0) {
- information[index].disinfectant = "/";
- }
-
- if (information[index].disinfectant === 1) {
- information[index].disinfectant = "20%柠檬酸";
- }
- if (information[index].disinfectant === 2) {
- information[index].disinfectant = "25%柠檬酸";
- }
- if (information[index].disinfectant === 3) {
- information[index].disinfectant = "50%柠檬酸";
- }
- if (information[index].disinfectant === 4) {
- information[index].disinfectant = "50%柠檬酸 + 5%次氯酸钠";
- }
- if (information[index].disinfectant === 5) {
- information[index].disinfectant = "20%柠檬酸 + 10%冰醋酸";
- }
- if (information[index].disinfectant === 6) {
- information[index].disinfectant = "0.2%过氧化乙酸";
- }
- if (information[index].disinfectant === 7) {
- information[index].disinfectant = "10%冰醋酸";
- }
- if (information[index].disinfectant === 8) {
- information[index].disinfectant = "50%冰醋酸";
- }
- if (information[index].disinfectant === 9) {
- information[index].disinfectant = "5%次氯酸钠";
- }
- if (information[index].disinfection_status === 0) {
- information[index].disinfection_status = "";
- }
- if (information[index].disinfection_status === 1) {
- information[index].disinfection_status = "已消毒";
- }
- if (information[index].disinfection_status === 2) {
- information[index].disinfection_status = "未消毒";
- }
- if (information[index].disinfection_status === 3) {
- information[index].disinfection_status = "消毒未完成";
- }
-
- if (information[index].disinfection_residue === 0) {
- information[index].disinfection_residue = "";
- }
- if (information[index].disinfection_residue === 1) {
- information[index].disinfection_residue = "有残留";
- }
- if (information[index].disinfection_residue === 2) {
- information[index].disinfection_residue = "无残留";
- }
- if (information[index].dialysis_checked === 1) {
- information[index].dialysis_checked = "√";
- }
- if (information[index].dialysis_checked === 0) {
- information[index].dialysis_checked = "";
- }
- if (information[index].dialysis_checked === 2) {
- information[index].dialysis_checked = "";
- }
- if (information[index].germ_checked === 1) {
- information[index].germ_checked = "√";
- }
- if (information[index].germ_checked === 0) {
- information[index].germ_checked = "";
- }
- if (information[index].germ_checked === 2) {
- information[index].germ_checked = "";
- }
- if (information[index].clean === 1) {
- information[index].clean = "√";
- }
- if (information[index].clean === 0) {
- information[index].clean = "";
- }
- if (information[index].clean === 2) {
- information[index].clean = "";
- }
- }
- var total = response.data.data.total;
- console.log("total", total);
- this.tableData = information;
- this.total = total;
- }
- });
- },
- getBedForm(id) {
- getBedForm(id).then(response => {
- if (response.data.state === 1) {
- var addmacher = response.data.data.addmacher;
- var number = response.data.data.number;
- console.log("number", number);
- //改动
- this.form.zone = number[0].zone_id;
- this.form.bed = addmacher.bed_id;
-
- var bed = [{ id: 0, number: "全部" }];
- for (let i = 0; i < number.length; i++) {
- const item = number[i];
- bed.push({ id: item.id, number: item.number });
- }
- this.bedNumberTwo = bed;
- }
- });
- },
- // eslint-disable-next-line no-dupe-keys
- querySearchAsync(keyword, cb) {
- let key = "";
- if (keyword != undefined) {
- key = keyword;
- }
- let searchArray = [];
- PostSearch(key).then(response => {
- if (response.data.state == 1) {
- searchArray = response.data.data.patient;
- cb(searchArray);
- }
- });
-
- return searchArray;
- },
- createFilter(queryString) {
- return searchArray => {
- return (
- searchArray.id.toLowerCase().indexOf(queryString.toLowerCase()) === 0
- );
- };
- },
- handleSelect(item) {
- this.userform.patient_id = item.id;
- this.userform.patient_name = item.name;
- // eslint-disable-next-line no-undef
- this.userform.contagion = "";
- getPatientDetail(item.id).then(response => {
- // eslint-disable-next-line eqeqeq
- if (response.data.state == 1) {
- var patient = response.data.data.patient;
- // console.log('patient', patient)
- // eslint-disable-next-line no-undef
- if (patient.is_infectious === 0) {
- this.userform.contagion = "";
- }
- // eslint-disable-next-line no-undef
- if (patient.is_infectious === 1) {
- this.userform.contagion = "无";
- }
- // eslint-disable-next-line no-undef
- if (patient.is_infectious === 2) {
- this.userform.contagion = "有";
- }
- }
- });
- },
- changeBed(id) {
- // eslint-disable-next-line no-undef
- changeBed(id).then(response => {
- if (response.data.state === 1) {
- var bed = response.data.data.bed;
-
- if (bed.length !== 0) {
- this.form.bed = "";
- this.bedNumberTwo = bed;
- }
- }
- });
- },
- changeRun(val) {
- // eslint-disable-next-line eqeqeq
- if (val == 1) {
- this.four = true;
- this.userform.failure_stage = "";
- }
- // eslint-disable-next-line eqeqeq
- if (val == 2) {
- this.four = false;
- }
- },
- DeleteUserLogin(id, index) {
- this.$confirm(
- "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
- "删除提示",
- {
- dangerouslyUseHTMLString: true,
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }
- ).then(() => {
- // eslint-disable-next-line no-undef
- DeleteUserLogin(id, index).then(response => {
- if (response.data.state === 1) {
- var msg = response.data.data.msg;
- this.tableData.splice(index, 1);
- }
- });
- });
- }
- },
- created() {
- this.getAllSubregion();
- // this.getInformationData();
- this.getAllOrganization();
- },
- watch: {
- userdata(newvalue, oldvalue) {
- this.getUserForm(newvalue);
- this.getBedForm(newvalue);
- this.value = newvalue;
- }
- }
- };
- </script>
- <style scoped>
- .a {
- /* .el-col-2 {
- width: 8.33333%;
- margin-bottom: 20px;
- } */
- }
- .print_main_content {
- background-color: white;
- width: 960px;
- margin: 0 auto;
- padding: 0 0 20px 0;
- }
- .tableClass {
- font-size: 10px;
- font-weight: none;
- }
- .printClass {
- width: 100%;
- text-align: right;
- }
- </style>
- <style lang="scss">
- .machineClass {
- font-size: 14px;
- color: #606266;
- }
- .c {
- margin-bottom: 10px;
- .el-input--prefix .el-input__inner {
- margin-left: 15px;
- }
- }
- #user-form {
- .el-dialog__footer {
- text-align: right;
- }
- .el-input--prefix .el-input__inner {
- padding-left: 15px;
- }
- .el-input--prefix .el-input__inner {
- padding-right: 15px;
- }
- }
- </style>
|