1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708 |
- <template>
- <div class="page_consumables">
- <div class="cell clearfix">
- <label class="title"> <span class="name">排班班次</span> : </label>
- <div class="time">
- <ul class>
- <li
- :class="item.value == schedulType ? 'active' : ''"
- @click="selectSchedulType(item.value)"
- v-for="item in schedulArr"
- :key="item.value"
- >
- {{ item.label }}
- </li>
- </ul>
- </div>
-
- <label class="title"><span class="name">日期查询</span> : </label>
- <el-date-picker size="small" v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange"
- :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- placeholder="选择日期时间" align="right"
- :picker-options="pickerOptions"></el-date-picker>
- <el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input"
- class="filter-item" v-model="query.keywords"/>
- <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
- </div>
- <div class="cell clearfix" style="justify-content: space-between;">
- <div style="display:flex;">
- <label class="title"> <span class="name">分区</span> : </label>
- <div class="time">
- <ul class>
- <li
- :class="item.id == partitionType ? 'active' : ''"
- @click="selectPartitionType(item.id)"
- v-for="item in partitionArr"
- :key="item.id"
- >
- {{ item.name }}
- </li>
- </ul>
- </div>
- </div>
- <div>
- <el-button size="small" icon="el-icon-printer" @click="toDialog" type="primary">设置</el-button>
- <el-button size="small" icon="el-icon-printer" @click="toSign" type="primary">标签打印</el-button>
- <el-button size="small" icon="el-icon-printer" @click="printAction" type="primary">标签打印设置</el-button>
-
- <el-button size="small" @click="exportList" type="primary">导出</el-button>
- <el-button size="small" @click="toPrint" icon="el-icon-printer" type="primary">打印</el-button>
- <el-button size="small" type="primary" @click="statistics">统计表</el-button>
- </div>
- </div>
-
- <div>
- <el-table
- :data="list"
- border
- :row-style="{ color: '#303133' }"
- :header-cell-style="{
- backgroundColor: 'rgb(245, 247, 250)',
- color: '#606266'
- }"
- @selection-change="handleSelectionChange"
- >
- <el-table-column align="center" type="selection" width="55">
- </el-table-column>
- <el-table-column align="center" label="序号" width="55">
- <template slot-scope="scope">
- {{scope.$index + 1}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="透析机号" v-if="dialysisSett.device_number==1">
- <template slot-scope="scope">
- {{scope.row.device_number.zone.name}} {{scope.row.device_number.number}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="姓名" v-if="dialysisSett.name==1">
- <template slot-scope="scope">
- {{scope.row.patient.name}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
- <template slot-scope="scope">
- {{scope.row.patient.dialysis_no}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="住院(门诊)号" v-if="dialysisSett.admission_number==1">
- <template slot-scope="scope">
- {{scope.row.xt_receive_treatment_asses.admission_number}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="透前体重" v-if="dialysisSett.weight_befor==1">
- <template slot-scope="scope">
- {{scope.row.assessment_befor_dislysis.weight_before?scope.row.assessment_befor_dislysis.weight_before:""}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="干体重" v-if="dialysisSett.dry_weight==1">
- <template slot-scope="scope">
- {{scope.row.assessment_befor_dislysis.dry_weight?scope.row.assessment_befor_dislysis.dry_weight:""}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="透前血压" v-if="dialysisSett.blood_pressure==1">
- <template slot-scope="scope">
- <span v-if="scope.row.assessment_befor_dislysis.systolic_blood_pressure>0">{{scope.row.assessment_befor_dislysis.systolic_blood_pressure}}</span>
- <span v-if="scope.row.assessment_befor_dislysis.diastolic_blood_pressure>0">/{{scope.row.assessment_befor_dislysis.diastolic_blood_pressure}}</span>
- </template>
- </el-table-column>
- <el-table-column align="center" label="目标脱水量" v-if="dialysisSett.ultrafiltration_volume==1">
- <template slot-scope="scope">
- <span v-if="scope.row.dialysis_solution.target_ultrafiltration>0">{{scope.row.dialysis_solution.target_ultrafiltration}}</span>
- </template>
- </el-table-column>
- <el-table-column align="center" label="抗凝剂(首剂)(维持)(总量)" v-if="dialysisSett.anticoagulant==1">
- <template slot-scope="scope">
- <span>{{getAnticoagualnt(scope.row.dialysis_solution.anticoagulant)}}</span>
- <span v-if="scope.row.dialysis_solution.anticoagulant_shouji > 0">({{scope.row.dialysis_solution.anticoagulant_shouji}})</span>
- <span v-if="scope.row.dialysis_solution.anticoagulant_weichi > 0">({{scope.row.dialysis_solution.anticoagulant_weichi}})</span>
- <span v-if="scope.row.dialysis_solution.anticoagulant_zongliang > 0">({{scope.row.dialysis_solution.anticoagulant_zongliang}})</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="透析时长" v-if="dialysisSett.dialysis_time ==1">
- <template slot-scope="scope">
- <span v-if="scope.row.dialysis_solution.dialysis_duration_hour >0">{{scope.row.dialysis_solution.dialysis_duration_hour}}时</span>
- <span v-if="scope.row.dialysis_solution.dialysis_duration_minute >0">{{scope.row.dialysis_solution.dialysis_duration_minute}}分</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="设备型号" v-if="dialysisSett.device_type==1">
- <template slot-scope="scope">
- <span>{{scope.row.assessment_befor_dislysis.machine_type}}</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="透析器/灌流器" v-if="dialysisSett.dialyzer_perfusion_apparatus == 1">
- <template slot-scope="scope">
- <span>{{scope.row.dialysis_solution.dialyzer_perfusion_apparatus}}</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="透析器" v-if="dialysisSett.dialysis_dialyszers == 1">
- <template slot-scope="scope">
- <span>{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="灌流器" v-if="dialysisSett.dialysis_irrigation ==1">
- <template slot-scope="scope">
- <span>{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="置换液" v-if="dialysisSett.displace_liqui_part==1">
- <template slot-scope="scope">
- <span>{{getDisplaceLiquiPart(scope.row.dialysis_solution.displace_liqui_part)}}</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="置换液总量" v-if="dialysisSett.displace_liqui_value==1">
- <template slot-scope="scope">
- <span v-if="scope.row.dialysis_solution.displace_liqui_value>0">{{scope.row.dialysis_solution.displace_liqui_value}}</span>
- </template>
- </el-table-column>
-
-
- <el-table-column align="center" label="钾" v-if="dialysisSett.kalium==1">
- <template slot-scope="scope">
- <span v-if="scope.row.dialysis_solution.kalium>0">{{scope.row.dialysis_solution.kalium}}</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="钠" v-if="dialysisSett.sodium==1">
- <template slot-scope="scope">
- <span v-if="scope.row.dialysis_solution.sodium>0">{{scope.row.dialysis_solution.sodium}}</span>
- </template>
- </el-table-column>
-
-
-
- <el-table-column align="center" label="钙" v-if="dialysisSett.calcium==1">
- <template slot-scope="scope">
- <span v-if="scope.row.dialysis_solution.calcium>0">{{scope.row.dialysis_solution.calcium}}</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="碳酸氢盐" v-if="dialysisSett.bicarbonate == 1">
- <template slot-scope="scope">
- <span v-if="scope.row.dialysis_solution.bicarbonate>0">{{scope.row.dialysis_solution.bicarbonate}}</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="血管通路" v-if="dialysisSett.blood_access==1">
- <template slot-scope="scope">
- <span>{{getBloodAccessOption(scope.row.dialysis_solution.blood_access)}}</span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="封管液" v-if="dialysisSett.sealing_fluid_dispose == 1">
- <template slot-scope="scope">
- <span>{{scope.row.xt_assesment_after_dislysis.sealing_fluid_dispose}} </span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="葡萄糖" v-if="dialysisSett.glucose==1">
- <template slot-scope="scope">
- <span>{{scope.row.dialysis_solution.amylaceum?scope.row.dialysis_solution.amylaceum:""}} </span>
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="血流量" v-if="dialysisSett.blood_flow_volume==1">
- <template slot-scope="scope">
- <span>{{scope.row.dialysis_solution.blood_flow_volume?scope.row.dialysis_solution.blood_flow_volume:""}} </span>
- </template>
- </el-table-column>
- </el-table>
-
- <el-dialog
- title="统计类型设置"
- :visible.sync="dialogVisible"
- width="30%">
- <span>
- <el-checkbox v-model="device_number" label="透析机号"></el-checkbox>
- <el-checkbox v-model="device_type" label="设备型号"></el-checkbox>
- <el-checkbox v-model="name" label="姓名"></el-checkbox>
- <el-checkbox v-model="admission_number" label="住院(门诊)号"></el-checkbox>
- <el-checkbox v-model="dialysis_no" label="透析号"></el-checkbox>
- <el-checkbox v-model="weight_befor" label="透前体重"></el-checkbox>
- <el-checkbox v-model="dry_weight" label="干体重"></el-checkbox>
- <el-checkbox v-model="blood_pressure" label="透前血压"></el-checkbox>
- <el-checkbox v-model="ultrafiltration_volume" label="目标脱水量"></el-checkbox>
- <el-checkbox v-model="internal_fistula" label="血管通路"></el-checkbox>
- <el-checkbox v-model="blood_flow_volume" label="血流量"></el-checkbox>
- <el-checkbox v-model="anticoagulant" label="抗凝剂(首剂)(维持)(总量)"></el-checkbox>
- <el-checkbox v-model="sealing_fluid_dispose" label="封管液"></el-checkbox>
- <el-checkbox v-model="mode_id" label="透析模式"></el-checkbox>
- <el-checkbox v-model="dialysis_time" label="透析时长"></el-checkbox>
-
- <el-checkbox v-model="dialysis_dialyszers" label="透析器"></el-checkbox>
- <el-checkbox v-model="dialysis_irrigation" label="灌流器"></el-checkbox>
- <el-checkbox v-model="kalium" label="钾"></el-checkbox>
- <el-checkbox v-model="displace_liqui_value" label="置换液总量"></el-checkbox>
- <el-checkbox v-model="bicarbonate" label="碳酸氢根"></el-checkbox>
- <el-checkbox v-model="glucose" label="葡萄糖"></el-checkbox>
-
- <el-checkbox v-model="dialyzer_perfusion_apparatus" label="透析器/灌流器"></el-checkbox>
- <el-checkbox v-model="displace_liqui_part" label="置换液"></el-checkbox>
- <el-checkbox v-model="sodium" label="钠"></el-checkbox>
- <el-checkbox v-model="calcium" label="钙"></el-checkbox>
- <el-checkbox v-model="blood_access" label="血管通路"></el-checkbox>
- </span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="saveDialysisSetting">确 定</el-button>
- </span>
- </el-dialog>
-
-
- <el-dialog
- title="打印设置"
- :visible.sync="dialogVisibleOne"
- width="30%"
- >
- <span>
- <ul>
- <li>
- <el-checkbox v-model="prescription_status">透析处方状态</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="week">星期</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="name">姓名</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="zone_name">分区</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="classes">班次</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="number">机号</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="mode">透析模式</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="dialyzers">透析器</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="perfusion_apparatus">灌流器</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="anticoagulant">抗凝剂(商品名称)</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="anticoagulant_zongliang">总量</el-checkbox>
- </li>
- <li>
- <el-checkbox v-model="doctor_advice">长期医嘱</el-checkbox>
- </li>
- </ul>
-
- </span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisibleOne = false">取 消</el-button>
- <el-button type="primary" @click="saveRemindPrint">保 存</el-button>
- </span>
- </el-dialog>
-
- </div>
-
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :page-sizes="[10, 50, 100]"
- :page-size="10"
- background
- align="right"
- style="margin-top:20px;"
- layout="total, sizes, prev, pager, next, jumper"
- :total="total"
- >
- </el-pagination>
-
-
- <el-dialog
- title="透析参数统计表"
- :visible.sync="startdialogVisible"
- width="70%">
- <span>
- <div class="cell clearfix">
- <label class="title"> <span class="name">排班班次</span> : </label>
- <el-select v-model="schedule_type" placeholder="请选择" @change="changeScheduleType">
- <el-option
- v-for="item in schedulArr"
- :key="item.value"
- :label="item.label"
- :value="item.value">
- </el-option>
- </el-select>
- <label class="title"> <span class="name">病区选择</span> : </label>
- <el-select v-model="partion_type" placeholder="请选择" @change="changePartionType">
- <el-option
- v-for="item in partitionArr"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- <el-button size="small" @click="toPrintOne" icon="el-icon-printer" type="primary">打印</el-button>
- <el-button size="small" @click="exportListOne" type="primary">导出</el-button>
- </div>
- <el-table
- :data="tableList"
- border
- :row-style="{ color: '#303133' }"
- :header-cell-style="{
- backgroundColor: 'rgb(245, 247, 250)',
- color: '#606266'
- }"
- >
- <el-table-column align="center" label="序号">
- <template slot-scope="scope">
- {{scope.$index+1}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="名称">
- <template slot-scope="scope">
- {{scope.row.name}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="规格">
- <template slot-scope="scope">
- {{scope.row.specification_name}}
- </template>
- </el-table-column>
-
- <el-table-column align="center" label="数量">
- <template slot-scope="scope">
- {{scope.row.count}}
- </template>
- </el-table-column>
-
-
-
- </el-table>
- </span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="startdialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="startdialogVisible = false">确 定</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
-
-
- <script>
- import { GetAllZone,saveDialysisSetting,getDialysisSetting,getDialysisParameter,getDialysisParameterGoodList } from '@/api/dialysis'
- import { uParseTime } from "@/utils/tools";
- import {getRemindPrintList,saveRemindPrint} from '@/api/schedule'
- import { getDataConfig } from '@/utils/data'
- import store from "@/store";
- export default {
- components: {
-
- },
- data() {
- return {
- query:{
- total:"",
- schedule_date:"",
- schedule_type:0,
- partition_id:0,
- page:1,
- limit:10,
- keywords:"",
- good_type:0,
- ids:"",
- },
- schedulType: 0,
- schedulArr: [
- { value: 0, label: '全部' },
- { value: 1, label: '上午' },
- { value: 2, label: '下午' },
- { value: 3, label: '晚上' }
- ],
- selected_date: "",
- partitionArr: [],
- goodList:[
- { id: 0, name: '全部' },
- { id: 1, name: '已出库' },
- { id: 2, name: '未出库' },
- ],
- partitionType: 0,
- goodType:0,
- tableData: [{
- date: '2016-05-03',
- name: '王小虎',
- address: '上海市普陀区金沙江路 1518 弄'
- }
- ],
- search_input: '',
- searchAction: '',
- allGoodInfo:[],
- list:[],
- new_list:[],
-
- good_types: [],
- arrKey:[],
- arrList:[],
- total:0,
- dialogVisible:false,
- predialysisConditionOptions:[],
- predialysis_condition:false,
-
- device_number:false,
- device_type:false,
- name:false,
- admission_number:false,
- dialysis_no:false,
- weight_befor:false,
- dry_weight:false,
- blood_pressure:false,
- ultrafiltration_volume:false,
- internal_fistula:false,
- blood_flow_volume:false,
- anticoagulant:false,
- sealing_fluid_dispose:false,
- mode_id:false,
- dialysis_time:false,
- dialysis_dialyszers:false,
- dialysis_irrigation:false,
- gaijiliang:false,
- kalium:false,
- displace_liqui_value:false,
- bicarbonate:false,
- glucose:false,
- dialyzer_perfusion_apparatus:false,
- sodium:false,
- calcium:false,
- blood_access:false,
- displace_liqui_part:false,
- blood_access_option:[],
- startdialogVisible:false,
-
- schedule_type:0,
- partion_type:0,
- tableList:[],
- dialysisSett:{},
-
- dialogVisibleOne: false,
- prescription_status: false,
- week: false,
- name: false,
- zone_name: false,
- classes: false,
- number: false,
- mode: false,
- dialyzers: false,
- perfusion_apparatus: false,
- anticoagulant: false,
- anticoagulant_zongliang: false,
- doctor_advice: false,
- displace_liqui_part_option:[],
- ids:"",
- form: {
- id: 0,
- prescription_status: '',
- week: '',
- name: '',
- zone: '',
- classes: '',
- number: '',
- mode: '',
- dialyzers: '',
- perfusion_apparatus: '',
- anticoagulant: '',
- anticoagulant_zongliang: '',
- doctor_advice: ''
- },
- pickerOptions:{ //禁用当前日期之前的日期
- disabledDate(v) {
- //Date.now()是javascript中的内置函数,它返回自1970年1月1日00:00:00 UTC以来经过的毫秒数。
- return v.getTime() < new Date().getTime() - 86400000;
- },
- },
- }
- },
- open(){
-
- },
- created() {
- this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
- this.displace_liqui_part_option = this.$store.getters.displace_liqui
- console.log("志愿液",this.displace_liqui_part_option)
- var filedList = store.getters.xt_user.fileds
- var newArr = [
- {value:999999,filed_name_cn:"姓名"},
- {value:888888,filed_name_cn:"透析号"},
- {value:777777,filed_name_cn:"透析机号"}
- ]
- for (let i = 0; i < filedList.length; i++) {
- if (filedList[i].module == 1 && filedList[i].is_show == 1) {
- newArr.push(filedList[i])
- }
- if (filedList[i].module == 3 && filedList[i].is_show == 1 &&(filedList[i].filed_name_cn == "干体重" || filedList[i].filed_name_cn == "透前称重" || filedList[i].filed_name_cn == "收缩压" || filedList[i].filed_name_cn == "舒张压" )) {
- newArr.push(filedList[i])
- }
- this.predialysisConditionOptions = newArr
- }
-
- this.getAllZone()
- let date = uParseTime(new Date(), "{y}-{m}-{d}")
- var newDate = new Date();
- var y = newDate.getFullYear();
- var m = newDate.getMonth() + 1;
- var d = newDate.getDate();
- var schedule_date =
- y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
-
- this.selected_date = date
- this.query.schedule_date = schedule_date
- this.query.schedule_type = 0
- this.query.partition_id = 0
- this.query.page = 1
- this.getlist()
-
- },
- methods: {
- getlist(){
- getDialysisParameter(this.query).then(response=>{
- if(response.data.state == 1){
- var list = response.data.data.list
- this.list = list
- this.total = response.data.data.total
- this.dialysisSett = response.data.data.dialysisSett
- // console.log("设置",this.dialysisSett)
- }
- })
- },
- handleSizeChange(val) {
- this.query.limit = val;
- this.getlist();
- },
- handleCurrentChange(val) {
- this.query.page = val;
- this.getlist();
- },
-
- calCount(query_warehouseout_info) {
- let total = 0
- var array = []
- array = query_warehouseout_info
- for (let i = 0; i < array.length; i++) {
- total = total + array[i].count
- }
- return total
-
- },
- getGoodUserInfo(good_type_id,good_user,last_good_user) {
- var arrlist =[]
- if (good_user != null && good_user.length > 0) {
- let desc = ""
- for (let b = 0; b < good_user.length; b++){
- if(good_type_id == good_user[b].good_type_id)
- desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
- }
- arrlist.push(desc)
- return desc
- }
- return ""
-
- // else if (good_user != null && good_user.length <= 0) {
- // if (last_good_user != null && last_good_user.length > 0) {
- // let desc = ""
- // for (let b = 0; b < last_good_user.length; b++){
- // if(good_type_id == last_good_user[b].good_type_id)
- // desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
- // }
- // console.log(desc)
- //
- // return desc
- //
- // }
- // return ""
- // }
- },
-
- selectSchedulType(scheduleType) {
- this.schedulType = scheduleType
- this.query.schedule_type = scheduleType
- this.query.page = 1
- this.getlist()
-
- },
- selectPartitionType(partitionType) {
- this.partitionType = partitionType
- this.query.partition_id = partitionType
- this.query.page = 1
-
- this.getlist()
-
- },
- selectGoodType(goodType){
- this.goodType = goodType
- this.query.good_type = goodType
- this.getlist()
- },
- getAllZone: function() {
- GetAllZone().then(response => {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- this.partitionArr = response.data.data.zone
- this.partitionArr.unshift({ id: 0, name: '全部' })
- }
- })
- },
- statistics() {
- this.tableList = []
- var params = {
- schedule_type:this.schedule_type,
- partion_type:this.partion_type,
- selected_date:this.query.schedule_date,
- }
- getDialysisParameterGoodList(params).then(response=>{
- if(response.data.state == 1){
- this.startdialogVisible = true
- var list = response.data.data.list
- var anticoagulantList = []
- if(list!=null && list.length>0){
- for(let i=0;i<list.length;i++){
- list[i].dialysis_dialyszers_arr = []
- list[i].dialyzer_perfusion_apparatus_arr = []
- list[i].dialysis_irrigation_arr = []
- if(list[i].dialysis_solution.dialysis_dialyszers!=""){
- list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
- }
- if(list[i].dialysis_solution.dialyzer_perfusion_apparatus!=""){
- list[i].dialyzer_perfusion_apparatus_arr = list[i].dialysis_solution.dialyzer_perfusion_apparatus.split(",")
- }
- if(list[i].dialysis_solution.dialysis_irrigation!=""){
- list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
- }
-
-
- if(list[i].dialysis_solution.anticoagulant == 1){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 2){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 3){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 4){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 5){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 6){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 7){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 8){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 9){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 10){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 11){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 12){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- if(list[i].dialysis_solution.anticoagulant == 13){
- anticoagulantList.push(list[i].dialysis_solution)
- }
- }
- }
- console.log("anticoagulantList",anticoagulantList)
- this.tableList = []
- if(anticoagulantList!=null && anticoagulantList.length > 0){
- let dataInfoOne = {}
- anticoagulantList.forEach((item, index) => {
- let { anticoagulant } = item
- if (!dataInfoOne[anticoagulant]) {
- dataInfoOne[anticoagulant] = {
- anticoagulant:item.anticoagulant,
- name: "抗凝剂",
- specification_name:this.getAnticoagualnt(item.anticoagulant),
- count:0,
- child:[]
- }
- }
- })
- let hisarr = Object.values(dataInfoOne)
- if(hisarr!=null && hisarr.length > 0){
- for(let i=0;i<anticoagulantList.length;i++){
- for(let j=0;j<hisarr.length;j++){
- if(anticoagulantList[i].anticoagulant == hisarr[j].anticoagulant){
- hisarr[j].child.push(anticoagulantList[i])
- }
- }
- }
- }
- for(let i=0;i<hisarr.length;i++){
- hisarr[i].count = hisarr[i].child.length
- this.tableList.push(hisarr[i])
- }
- console.log("hisarr",hisarr)
- }
- var dialysisDialyszersArr = []
- var dialyzerPerfusionApparaArr = []
- var dialysisIrrigationArr = []
- for(let i=0;i<list.length;i++){
- for(let j=0;j<list[i].dialysis_dialyszers_arr.length;j++){
- dialysisDialyszersArr.push(list[i].dialysis_dialyszers_arr[j])
- }
- for(let z=0;z<list[i].dialyzer_perfusion_apparatus_arr.length;z++){
- dialyzerPerfusionApparaArr.push(list[i].dialyzer_perfusion_apparatus_arr[z])
- }
- for(let y=0;y<list[i].dialysis_irrigation_arr.length;y++){
- dialysisIrrigationArr.push(list[i].dialysis_irrigation_arr[y])
- }
- }
- let obj = {}
- let objOne = {}
- let objTwo = {}
- for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
- if(obj[dialysisDialyszersArr[i]]){
- obj[dialysisDialyszersArr[i]] +=1
- }else{
- obj[dialysisDialyszersArr[i]] = 1
- }
- }
- let Arr = [];
- for (let i in obj) {
- let a = {};
- a[i] = obj[i];
- a.name = "透析器"
- a.count = obj[i]
- a.specification_name = i
- Arr.push(a);
- }
-
- for(let i=0;i<dialyzerPerfusionApparaArr.length;i++){
- if(objOne[dialyzerPerfusionApparaArr[i]]){
- objOne[dialyzerPerfusionApparaArr[i]] +=1
- }else{
- objOne[dialyzerPerfusionApparaArr[i]] = 1
- }
- }
-
- for (let i in objOne) {
- let a = {};
- a[i] = objOne[i];
- a.name = "透析器/灌流器"
- a.count = objOne[i]
- a.specification_name = i
- Arr.push(a);
- }
-
- for(let i=0;i<dialysisIrrigationArr.length;i++){
- if(objTwo[dialysisIrrigationArr[i]]){
- objTwo[dialysisIrrigationArr[i]] +=1
- }else{
- objTwo[dialysisIrrigationArr[i]] = 1
- }
- }
-
- for (let i in objTwo) {
- let a = {};
- a[i] = objTwo[i];
- a.name = "灌流器"
- a.count = objTwo[i]
- a.specification_name = i
- Arr.push(a);
- }
-
- if(Arr.length >0){
- for(let i=0;i<Arr.length;i++){
- this.tableList.push(Arr[i])
- }
- }
- }
- })
- },
- handleScheduleDateChange(val) {
- this.query.schedule_date = val
- this.query.page = 1
- this.getlist()
- },
- search() {
- this.query.page = 1
- this.getlist()
- },
-
- exportList(){
- import('@/vendor/Export2Excel').then(excel => {
-
- if(this.list!=null && this.list.length > 0){
- // console.log("hhhahhah",this.list)
- for(let i=0;i<this.list.length;i++){
- this.list[i].index = i+1
- this.list[i].device_number_one = this.list[i].device_number.zone.name + this.list[i].device_number.number
- this.list[i].patient_name = this.list[i].patient.name
- this.list[i].dialysis_no = this.list[i].patient.dialysis_no
- this.list[i].admission_number = this.list[i].xt_receive_treatment_asses.admission_number
- this.list[i].weight_before = this.list[i].assessment_befor_dislysis.weight_before?this.list[i].assessment_befor_dislysis.weight_before:"",
- this.list[i].dry_weight = this.list[i].assessment_befor_dislysis.dry_weight?this.list[i].assessment_befor_dislysis.dry_weight:""
- this.list[i].blood_pressure = this.list[i].assessment_befor_dislysis.systolic_blood_pressure?this.list[i].assessment_befor_dislysis.systolic_blood_pressure:"" + "/" + this.list[i].assessment_befor_dislysis.diastolic_blood_pressure? this.list[i].assessment_befor_dislysis.diastolic_blood_pressure:""
- if(this.list[i].blood_pressure == 0){
- this.list[i].blood_pressure = ""
- }
- this.list[i].ultrafiltration_volume = this.list[i].dialysis_solution.target_ultrafiltration?this.list[i].dialysis_solution.target_ultrafiltration:""
-
- this.list[i].anticoagulant_one = this.getAnticoagualnt(this.list[i].dialysis_solution.anticoagulant) + "(" + this.list[i].dialysis_solution.anticoagulant_shouji?this.list[i].dialysis_solution.anticoagulant_shouji:"" +")" + "("+this.list[i].dialysis_solution.anticoagulant_weichi?this.list[i].dialysis_solution.anticoagulant_weichi:"" +")"+ +"("+this.list[i].dialysis_solution.anticoagulant_zongliang?this.list[i].dialysis_solution.anticoagulant_zongliang:""+")"
- if(this.list[i].anticoagulant_one == 0){
- this.list[i].anticoagulant_one = ""
- }
- this.list[i].dialysis_time = this.list[i].dialysis_solution.dialysis_duration_hour?this.list[i].dialysis_solution.dialysis_duration_hour:"" + "时"+ this.list[i].dialysis_solution.dialysis_duration_minute?this.list[i].dialysis_solution.dialysis_duration_minute:"" + "分"
- if(this.list[i].dialysis_time == 0){
- this.list[i].dialysis_time = ""
- }
- this.list[i].device_type = this.list[i].assessment_befor_dislysis.machine_type
- this.list[i].dialyzer_perfusion_apparatus = this.list[i].dialysis_solution.dialyzer_perfusion_apparatus
- this.list[i].dialysis_dialyszers = this.list[i].dialysis_solution.dialysis_dialyszers
- this.list[i].dialysis_irrigation = this.list[i].dialysis_solution.dialysis_irrigation
- this.list[i].displace_liqui_part = this.getDisplaceLiquiPart(this.list[i].dialysis_solution.displace_liqui_part)
- this.list[i].displace_liqui_value = this.list[i].dialysis_solution.displace_liqui_value? this.list[i].dialysis_solution.displace_liqui_value:""
- this.list[i].kalium = this.list[i].dialysis_solution.kalium?this.list[i].dialysis_solution.kalium:""
- this.list[i].sodium = this.list[i].dialysis_solution.sodium?this.list[i].dialysis_solution.sodium:""
- this.list[i].calcium = this.list[i].dialysis_solution.calcium?this.list[i].dialysis_solution.calcium:""
- this.list[i].blood_access = this.getBloodAccessOption(this.list[i].dialysis_solution.blood_access)
- this.list[i].sealing_fluid_dispose =this.list[i].xt_assesment_after_dislysis.sealing_fluid_dispose
- this.list[i].glucose = this.list[i].dialysis_solution.glucose?this.list[i].dialysis_solution.glucose:""
- this.list[i].blood_flow_volume = this.list[i].dialysis_solution.blood_flow_volume?this.list[i].dialysis_solution.blood_flow_volume:""
- this.list[i].bicarbonate = this.list[i].dialysis_solution.bicarbonate? this.list[i].dialysis_solution.bicarbonate:""
- }
- }
-
- console.log("list23323232322323wode",this.list)
-
- var arr= []
- var arrTwo = []
- arr.push('序号')
- arrTwo.push("index")
- if(this.dialysisSett.device_number == 1){
- arr.push("透析机号")
- arrTwo.push("device_number_one")
- }
- if(this.dialysisSett.name == 1){
- arr.push("姓名")
- arrTwo.push("patient_name")
- }
- if(this.dialysisSett.dialysis_no == 1){
- arr.push("透析号")
- arrTwo.push("dialysis_no")
- }
- if(this.dialysisSett.admission_number == 1){
- arr.push("住院(门诊)号")
- arrTwo.push("admission_number")
- }
- if(this.dialysisSett.weight_befor == 1){
- arr.push("透前体重")
- arrTwo.push("weight_before")
- }
- if(this.dialysisSett.dry_weight == 1){
- arr.push("干体重")
- arrTwo.push("dry_weight")
- }
- if(this.dialysisSett.blood_pressure == 1){
- arr.push("透前血压")
- arrTwo.push("blood_pressure")
- }
- if(this.dialysisSett.ultrafiltration_volume == 1){
- arr.push("目标脱水量")
- arrTwo.push("ultrafiltration_volume")
- }
- if(this.dialysisSett.anticoagulant == 1){
- arr.push("抗凝剂(首剂)(维持)(总量)")
- arrTwo.push("anticoagulant_one")
- }
- if(this.dialysisSett.dialysis_time == 1){
- arr.push("透析时长")
- arrTwo.push("dialysis_time")
- }
- if(this.dialysisSett.device_type == 1){
- arr.push("设备型号")
- arrTwo.push("device_type")
- }
- if(this.dialysisSett.dialyzer_perfusion_apparatus == 1){
- arr.push("透析器/灌流器")
- arrTwo.push("dialyzer_perfusion_apparatus")
- }
- if(this.dialysisSett.dialysis_dialyszers == 1){
- arr.push("透析器")
- arrTwo.push("dialysis_dialyszers")
- }
- if(this.dialysisSett.dialysis_irrigation == 1){
- arr.push("灌流器")
- arrTwo.push("dialysis_irrigation")
- }
- if(this.dialysisSett.displace_liqui_part == 1){
- arr.push("置换液")
- arrTwo.push("displace_liqui_part")
- }
- if(this.dialysisSett.displace_liqui_value == 1){
- arr.push("置换液总量")
- arrTwo.push("displace_liqui_value")
- }
- if(this.dialysisSett.kalium == 1){
- arr.push("钾")
- arrTwo.push("kalium")
- }
- if(this.dialysisSett.sodium == 1){
- arr.push("钠")
- arrTwo.push("sodium")
- }
- if(this.dialysisSett.calcium == 1){
- arr.push("钙")
- arrTwo.push("calcium")
- }
- if(this.dialysisSett.bicarbonate == 1){
- arr.push("碳酸氢盐")
- arrTwo.push("bicarbonate")
- }
- if(this.dialysisSett.blood_access == 1){
- arr.push("血管通路")
- arrTwo.push("blood_access")
- }
-
- if(this.dialysisSett.sealing_fluid_dispose == 1){
- arr.push("封管液")
- arrTwo.push("sealing_fluid_dispose")
- }
-
- if(this.dialysisSett.glucose == 1){
- arr.push("葡萄糖")
- arrTwo.push("glucose")
- }
- if(this.dialysisSett.blood_flow_volume == 1){
- arr.push("血流量")
- arrTwo.push("blood_flow_volume")
- }
-
-
- const tHeader = arr
- const filterVal = arrTwo
- const data = this.formatJson(filterVal, this.list)
- excel.export_json_to_excel({
- header: tHeader,
- data,
- filename: '透析参数查询'
- })
- this.downloadLoading = false
- })
- },
- formatJson(filterVal, jsonData) {
- return jsonData.map(v => filterVal.map(j => v[j]));
- },
- exportListOne(){
- import('@/vendor/Export2Excel').then(excel => {
- if(this.tableList!=null && this.tableList.length > 0){
- for(let i=0;i<this.tableList.length;i++){
- this.tableList[i].index = i+1
- }
- }
- const tHeader = ['序号','名称','规格','数量']
- const filterVal = ['index', 'name','specification_name','count']
-
- const data = this.formatJson(filterVal, this.tableList)
- excel.export_json_to_excel({
- header: tHeader,
- data,
- filename: '透析参数统计'
- })
- this.downloadLoading = false
- })
- },
- toDialog(){
- getDialysisSetting().then(response=>{
- if(response.data.state == 1){
- this.dialogVisible = true
- var dialysisSett = response.data.data.dialysisSett
- if(dialysisSett!=undefined){
- if(dialysisSett.device_number == 1){
- this.device_number = true
- }else{
- this.device_number = false
- }
- if(dialysisSett.device_type == 1){
- this.device_type = true
- }else{
- this.device_type = false
- }
- if(dialysisSett.name == 1){
- this.name = true
- }else{
- this.name = false
- }
- if(dialysisSett.admission_number == 1){
- this.admission_number = true
- }else{
- this.admission_number = false
- }
- if(dialysisSett.dialysis_no == 1){
- this.dialysis_no = true
- }else{
- this.dialysis_no = false
- }
- if(dialysisSett.weight_befor == 1){
- this.weight_befor = true
- }else{
- this.weight_befor = false
- }
- if(dialysisSett.dry_weight == 1){
- this.dry_weight = true
- }else{
- this.dry_weight = false
- }
- if(dialysisSett.blood_pressure == 1){
- this.blood_pressure = true
- }else{
- this.blood_pressure = false
- }
- if(dialysisSett.ultrafiltration_volume == 1){
- this.ultrafiltration_volume = true
- }else{
- this.ultrafiltration_volume = false
- }
- if(dialysisSett.internal_fistula == 1){
- this.internal_fistula = true
- }else{
- this.internal_fistula = false
- }
- if(dialysisSett.blood_flow_volume == 1){
- this.blood_flow_volume = true
- }else{
- this.blood_flow_volume = false
- }
- if(dialysisSett.anticoagulant == 1){
- this.anticoagulant = true
- }else{
- this.anticoagulant = false
- }
- if(dialysisSett.sealing_fluid_dispose == 1){
- this.sealing_fluid_dispose = true
- }else{
- this.sealing_fluid_dispose = false
- }
- if(dialysisSett.mode_id == 1){
- this.mode_id = true
- }else{
- this.mode_id = false
- }
- if(dialysisSett.dialysis_time == 1){
- this.dialysis_time = true
- }else{
- this.dialysis_time = false
- }
- if(dialysisSett.dialysis_dialyszers == 1){
- this.dialysis_dialyszers = true
- }else{
- this.dialysis_dialyszers = false
- }
-
- if(dialysisSett.dialysis_irrigation == 1){
- this.dialysis_irrigation = true
- }else{
- this.dialysis_irrigation = false
- }
-
- if(dialysisSett.gaijiliang ==1){
- this.gaijiliang =true
- }else{
- this.gaijiliang = false
- }
- if(dialysisSett.kalium == 1){
- this.kalium =true
- }else{
- this.kalium = false
- }
- if(dialysisSett.displace_liqui_value == 1){
- this.displace_liqui_value = true
- }else{
- this.displace_liqui_value = false
- }
- if(dialysisSett.bicarbonate == 1){
- this.bicarbonate =true
- }else{
- this.bicarbonate = false
- }
- if(dialysisSett.glucose == 1){
- this.glucose =true
- }else{
- this.glucose = false
- }
- if(dialysisSett.sodium == 1){
- this.sodium = true
- }else{
- this.sodium = false
- }
- if(dialysisSett.calcium == 1){
- this.calcium = true
- }else{
- this.calcium = false
- }
- if(dialysisSett.blood_access == 1){
- this.blood_access = true
- }else{
- this.blood_access = false
- }
- if(dialysisSett.dialyzer_perfusion_apparatus == 1){
- this.dialyzer_perfusion_apparatus = true
- }else{
- this.dialyzer_perfusion_apparatus = false
- }
- if(dialysisSett.displace_liqui_part == 1){
- this.displace_liqui_part = true
- }else{
- this.displace_liqui_part = false
- }
- }
-
- }
- })
-
- },
- saveDialysisSetting(){
- var device_number_set = 0
- var device_type_set = 0
- var name_set = 0
- var admission_number_set = 0
- var dialysis_no_set = 0
- var weight_befor_set = 0
- var dry_weight_set = 0
- var blood_pressure_set = 0
- var ultrafiltration_volume_set= 0
- var internal_fistula_set = 0
- var blood_flow_volume_set = 0
- var anticoagulant_set = 0
- var sealing_fluid_dispose_set = 0
- var mode_id_set =0
- var dialysis_time_set =0
- var dialysis_dialyszers_set =0
- var dialysis_irrigation_set =0
- var gaijiliang_set = 0
- var kalium_set = 0
- var displace_liqui_value_set =0
- var bicarbonate_set =0
- var glucose_set = 0
- var sodium_set = 0
- var calcium_set =0
- var blood_access_set =0
- var dialyzer_perfusion_apparatus_set =0
- var displace_liqui_part_set =0
-
- if(this.sodium == false){
- sodium_set = 2
- }
- if(this.sodium == true){
- sodium_set = 1
- }
-
- if(this.calcium ==false){
- calcium_set = 2
- }
- if(this.calcium == true){
- calcium_set = 1
- }
-
- if(this.blood_access ==false){
- blood_access_set = 2
- }
- if(this.blood_access == true){
- blood_access_set = 1
- }
-
- if(this.dialyzer_perfusion_apparatus == false){
- dialyzer_perfusion_apparatus_set = 2
- }
- if(this.dialyzer_perfusion_apparatus == true){
- dialyzer_perfusion_apparatus_set =1
- }
-
- if(this.displace_liqui_part == false){
- displace_liqui_part_set = 2
- }
-
- if(this.displace_liqui_part == true){
- displace_liqui_part_set = 1
- }
-
-
- if(this.device_number == false){
- device_number_set = 2
- }
- if(this.device_number == true){
- device_number_set = 1
- }
- if(this.device_type == false){
- device_type_set = 2
- }
- if(this.device_type == true){
- device_type_set = 1
- }
- if(this.name == false){
- name_set = 2
- }
- if(this.name == true){
- name_set = 1
- }
- if(this.admission_number == false){
- admission_number_set = 2
- }
- if(this.admission_number== true){
- admission_number_set = 1
- }
- if(this.dialysis_no == false){
- dialysis_no_set = 2
- }
- if(this.dialysis_no == true){
- dialysis_no_set = 1
- }
- if(this.weight_befor == false){
- weight_befor_set = 2
- }
- if(this.weight_befor == true){
- weight_befor_set = 1
- }
- if(this.dry_weight == false){
- dry_weight_set = 2
- }
- if(this.dry_weight == true){
- dry_weight_set = 1
- }
- if(this.blood_pressure == false){
- blood_pressure_set = 2
- }
- if(this.blood_pressure == true){
- blood_pressure_set = 1
- }
- if(this.ultrafiltration_volume == false){
- ultrafiltration_volume_set = 2
- }
- if(this.ultrafiltration_volume == true){
- ultrafiltration_volume_set = 1
- }
- if(this.internal_fistula == false){
- internal_fistula_set = 2
- }
- if(this.internal_fistula == true){
- internal_fistula_set= 1
- }
- if(this.blood_flow_volume == false){
- blood_flow_volume_set = 2
- }
- if(this.blood_flow_volume == true){
- blood_flow_volume_set = 1
- }
- if(this.anticoagulant == false){
- anticoagulant_set = 2
- }
- if(this.anticoagulant == true){
- anticoagulant_set = 1
- }
- if(this.sealing_fluid_dispose == false){
- sealing_fluid_dispose_set = 2
- }
- if(this.sealing_fluid_dispose == true){
- sealing_fluid_dispose_set = 1
- }
- if(this.mode_id == false){
- mode_id_set = 2
- }
- if(this.mode_id == true){
- mode_id_set = 1
- }
- if(this.dialysis_time == false){
- dialysis_time_set = 2
- }
- if(this.dialysis_time == true){
- dialysis_time_set = 1
- }
- if(this.dialysis_dialyszers == false){
- dialysis_dialyszers_set = 2
- }
- if(this.dialysis_dialyszers == true){
- dialysis_dialyszers_set = 1
- }
- if(this.dialysis_irrigation == false){
- dialysis_irrigation_set = 2
- }
- if(this.dialysis_irrigation == true){
- dialysis_irrigation_set = 1
- }
- if(this.gaijiliang == false){
- this.gaijiliang = 2
- }
- if(this.gaijiliang == true){
- this.gaijiliang = 1
- }
- if(this.kalium == false){
- kalium_set = 2
- }
- if(this.kalium == true){
- kalium_set = 1
- }
- if(this.displace_liqui_value == false){
- displace_liqui_value_set = 2
- }
- if(this.displace_liqui_value == true){
- displace_liqui_value_set = 1
- }
- if(this.bicarbonate == false){
- bicarbonate_set = 2
- }
- if(this.bicarbonate == true){
- bicarbonate_set = 1
- }
- if(this.glucose == false){
- glucose_set = 2
- }
- if(this.glucose == true){
- glucose_set = 1
- }
- var params = {
- device_number_set:device_number_set,
- device_type_set:device_type_set,
- name_set:name_set,
- admission_number_set:admission_number_set,
- dialysis_no_set:dialysis_no_set,
- weight_befor_set:weight_befor_set,
- dry_weight_set:dry_weight_set,
- blood_pressure_set:blood_pressure_set,
- ultrafiltration_volume_set:ultrafiltration_volume_set,
- internal_fistula_set:internal_fistula_set,
- blood_flow_volume_set:blood_flow_volume_set,
- anticoagulant_set:anticoagulant_set,
- sealing_fluid_dispose_set:sealing_fluid_dispose_set,
- mode_id_set:mode_id_set,
- dialysis_time_set:dialysis_time_set,
- dialysis_dialyszers_set:dialysis_dialyszers_set,
- dialysis_irrigation_set:dialysis_irrigation_set,
- gaijiliang_set:gaijiliang_set,
- kalium_set:kalium_set,
- displace_liqui_value_set:displace_liqui_value_set,
- bicarbonate_set:bicarbonate_set,
- glucose_set:glucose_set,
- sodium_set:sodium_set,
- calcium_set:calcium_set,
- blood_access_set:blood_access_set,
- dialyzer_perfusion_apparatus_set:dialyzer_perfusion_apparatus_set,
- displace_liqui_part_set:displace_liqui_part_set,
- }
- // console.log("patam223232332",params)
- saveDialysisSetting(params).then(response=>{
- if(response.data.state == 1){
- var dialysisSetting = response.data.data.dialysisSetting
- this.$message.success("保存成功!")
- this.dialogVisible = false
- this.getlist()
- }
- })
- },
- getAnticoagualnt(id){
- var name = ""
- if(id == 1){
- name = "无肝素"
- }
- if(id == 2){
- name = "普通肝素"
- }
- if(id == 3){
- name ="低分子肝素"
- }
- if(id == 4){
- name ="阿加曲班"
- }
- if(id == 5){
- name ="枸橼酸钠"
- }
- if(id == 6){
- name ="低分子肝素钙"
- }
- if(id == 7){
- name ="低分子肝素钠"
- }
- if(id == 8){
- name ="依诺肝素"
- }
- if(id == 9){
- name ="达肝素"
- }
- if(id == 10){
- name ="体外抗凝"
- }
- if(id == 11){
- name ="那屈肝素"
- }
- if(id == 12){
- name ="无抗凝剂"
- }
- if(id == 13){
- name ="那屈肝素钙"
- }
- return name
- },
- getBloodAccessOption(id){
- var name = ""
- for(let i=0;i<this.blood_access_option.length;i++){
- if(id == this.blood_access_option[i].id){
- name = this.blood_access_option[i].name
- }
- }
- return name
- },
- toSign(){
- this.$router.push({path: '/dialysis/consumable/dialysis/print?schedule_type='+this.query.schedule_type+"&partion_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&keyword="+this.query.keywords+"&page="+this.query.page+"&limit="+this.query.limit})
- },
- printAction(){
- this.getRemindPrintList()
- this.dialogVisibleOne = true
-
- },
- getRemindPrintList() {
- getRemindPrintList().then(response => {
- if (response.data.state == 1) {
- var list = response.data.data.list
- console.log('list222332', list)
- if (list.anticoagulant == 1) {
- // console.log('进来22222')
- this.anticoagulant = true
- }
- if (list.anticoagulant == 2) {
- this.anticoagulant = false
- }
- if (list.anticoagulant_zongliang == 1) {
- this.anticoagulant_zongliang = true
- }
- if (list.anticoagulant_zongliang == 2) {
- this.anticoagulant_zongliang = false
- }
- if (list.classes == 1) {
- this.classes = true
- }
- if (list.classes == 2) {
- this.classes = false
- }
- if (list.dialyzers == 1) {
- this.dialyzers = true
- }
- if (list.dialyzers == 2) {
- this.dialyzers = false
- }
- if (list.doctor_advice == 1) {
- this.doctor_advice = true
- }
- if (list.doctor_advice == 2) {
- this.doctor_advice = false
- }
- if (list.name == 1) {
- this.name = true
- }
- if (list.name == 2) {
- this.name = false
- }
- if (list.number == 1) {
- this.number = true
- }
- if (list.number == 2) {
- this.number = false
- }
- if (list.perfusion_apparatus == 1) {
- this.perfusion_apparatus = true
- }
- if (list.perfusion_apparatus == 2) {
- this.perfusion_apparatus = false
- }
- if (list.prescription_status == 1) {
- this.prescription_status = true
- }
- if (list.prescription_status == 2) {
- this.prescription_status = false
- }
- if (list.week == 1) {
- this.week = true
- }
- if (list.week == 2) {
- this.week = false
- }
- if (list.zone == 1) {
- this.zone_name = true
- }
- if (list.zone == 2) {
- this.zone_name = false
- }
- if (list.mode == 1) {
- this.mode = true
- }
- if (list.mode == 2) {
- this.mode = false
- }
- this.form.id = list.id
- }
- })
- },
-
- saveRemindPrint() {
-
-
- if (this.perfusion_apparatus == true) {
- // console.log('3333')
- this.form.perfusion_apparatus = 1
- }
- if (this.perfusion_apparatus == false) {
- this.form.perfusion_apparatus = 2
- }
- if (this.prescription_status == true) {
- this.form.prescription_status = 1
- }
- if (this.prescription_status == false) {
- this.form.prescription_status = 2
- }
- if (this.week == true) {
- this.form.week = 1
- }
- if (this.week == false) {
- this.form.week = 2
- }
- if (this.name == true) {
- this.form.name = 1
- }
- if (this.name == false) {
- this.form.name = 2
- }
- if (this.zone_name == true) {
- this.form.zone = 1
- }
- if (this.zone_name == false) {
- this.form.zone = 2
- }
- if (this.classes == true) {
- this.form.classes = 1
- }
- if (this.classes == false) {
- this.form.classes = 2
- }
- if (this.number == true) {
- this.form.number = 1
- }
- if (this.number == false) {
- this.form.number = 2
- }
- if (this.mode == true) {
- this.form.mode = 1
- }
- if (this.mode == false) {
- this.form.mode = 2
- }
- if (this.dialyzers == true) {
- this.form.dialyzers = 1
- }
- if (this.dialyzers == false) {
- this.form.dialyzers = 2
- }
-
- if (this.anticoagulant == true) {
- this.form.anticoagulant = 1
- }
- if (this.anticoagulant == false) {
- this.form.anticoagulant = 2
- }
- if (this.anticoagulant_zongliang == true) {
- this.form.anticoagulant_zongliang = 1
- }
- if (this.anticoagulant_zongliang == false) {
- this.form.anticoagulant_zongliang = 2
- }
- if (this.doctor_advice == true) {
- this.form.doctor_advice = 1
- }
- if (this.doctor_advice == false) {
- this.form.doctor_advice = 2
- }
- // console.log('555555555', this.form.prescription_status)
- var params = {
- id: this.form.id,
- prescription_status: this.form.prescription_status,
- week: this.form.week,
- name: this.form.name,
- zone: this.form.zone,
- classes: this.form.classes,
- number: this.form.number,
- mode: this.form.mode,
- dialyzers: this.form.dialyzers,
- perfusion_apparatus: this.form.perfusion_apparatus,
- anticoagulant: this.form.anticoagulant,
- anticoagulant_zongliang: this.form.anticoagulant_zongliang,
- doctor_advice: this.form.doctor_advice
- }
- // console.log('params', params)
- saveRemindPrint(params).then(response => {
- if (response.data.state == 1) {
- var settting = response.data.data.setting
- this.$message.success('保存成功')
- this.dialogVisibleOne = false
- this.getRemindPrintList()
- }
- })
- },
- toPrint(){
- this.$router.push({path: '/dialysis/consumable/dialysis/parameter/print?schedule_type='+this.query.schedule_type+"&partion_id="+this.query.partition_id+"&schedule_date="+this.query.schedule_date+"&keyword="+this.query.keywords+"&page="+this.query.page+"&limit="+this.query.limit+"&ids="+this.ids})
- },
- toPrintOne(){
- this.$router.push({path:"/dialysis/consumable/dialysis/count/print?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+this.query.schedule_date})
- },
- handleSelectionChange(val){
- var arr = []
- for(let i=0;i<val.length;i++){
- arr.push(val[i].id)
- }
- this.ids = arr.join(",")
- },
- changeScheduleType(){
- this.tableList = []
- this.statistics()
- },
- changePartionType(){
- this.tableList = []
- this.statistics()
- },
- getDisplaceLiquiPart(id){
- var name = ""
- for(let i=0;i<this.displace_liqui_part_option.length;i++){
- if(id == this.displace_liqui_part_option[i].id){
- name = this.displace_liqui_part_option[i].name
- }
- }
- return name
- }
- }
- }
- </script>
-
-
- <style lang="scss" scoped>
- .page_consumables {
-
- .clearfix:after {
- content: none;
- }
-
- }
- </style>
|