123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808 |
- <template>
- <div class="main-contain">
- <div class="position">
- <bread-crumb :crumbs="crumbs"></bread-crumb>
- <el-row style="float:right;">
- <el-col :span="24">
- <el-button
- size="small"
- icon="el-icon-printer"
- type="primary"
- @click="printAction"
- >打印</el-button
- >
- </el-col>
- </el-row>
- </div>
- <div class="app-container" style="background-color: white;">
- <div id="print_content">
- <div class="print_main_content">
- <div class="table_panel" v-loding="loading" element-loading-text="拼命加载中">
- <div v-for="(main_collection,index) in scheduleData" :key="index" :class="(org_id == 9671 || org_id == 10340) && parseInt((index+1)%8) == 0 ? 'page-break-after':''">
-
-
- <div class="signPrint" style="font-size:16px;">
- <div style="font-size:24px;font-weight: 400;">姓名:
- <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
- <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
- <span v-if="type ==1 && printObj.name == 1">({{ main_collection.patient.dialysis_no }},
- <span> {{getGender(main_collection.patient.gender)}},</span>
- {{getNewAge(main_collection.patient.id_card_no) }}岁)</span>
- <span v-if="type ==2 && printObj.name == 1">({{ main_collection.dialysis_no }},
- <span>{{getGender(main_collection.gender) }},</span>
- {{getNewAge(main_collection.id_card_no) }}岁)</span>
-
- </div>
- <div class="printCell">
- 透析模式:
- <span>{{getModeId(main_collection.mode_id)}}</span>
-
- </div>
- <div class="printCell">
- <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
- </div>
- <div class="printCell">
- 首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 2">
- {{main_collection.dialysissolution.anticoagulant_shouji}}mg
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 3">
- {{main_collection.dialysissolution.anticoagulant_shouji}}iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 4">
- {{main_collection.dialysissolution.anticoagulant_shouji}}mg
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 5">
- {{main_collection.dialysissolution.anticoagulant_shouji}} mg
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 6">
- {{main_collection.dialysissolution.anticoagulant_shouji}}iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 7">
- {{main_collection.dialysissolution.anticoagulant_shouji}}iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 8">
- {{main_collection.dialysissolution.anticoagulant_shouji}}iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 9">
- {{main_collection.dialysissolution.anticoagulant_shouji}}iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 10">
- {{main_collection.dialysissolution.anticoagulant_shouji}}iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 11">
- {{main_collection.dialysissolution.anticoagulant_shouji}}iu
- </span>
-
- </div>
- <div class="printCell">
- 维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
- <span v-if="main_collection.dialysissolution.anticoagulant == 1">
- mg/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 2">
- mg/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 3">
- iu/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 4">
- mg/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 5">
- mg/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 6">
- iu/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 7">
- iu/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 8">
- iu/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 9">
- iu/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 10">
- iu/h
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 11">
- iu/h
- </span>
-
- </div>
-
- <div class="printCell">
- 总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
- <span v-if="main_collection.dialysissolution.anticoagulant == 1">
- mg
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 2">
- mg
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 3">
- iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 4">
- mg
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 5">
- mg
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 6">
- iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 7">
- iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 8">
- iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 9">
- iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 10">
- iu
- </span>
- <span v-if="main_collection.dialysissolution.anticoagulant == 11">
- iu
- </span>
-
- </div>
- <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
- <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
- </div>
- <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
- <span>上次透析时长:{{ main_collection.lastafterweight.actual_treatment_hour }}小时{{ main_collection.lastafterweight.actual_treatment_minute }}分钟</span>
- </div>
- <div class="printCell">身份证:
- <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
- <span v-if="type ==2">{{main_collection.id_card_no}} </span>
- </div>
- <div class="printCell">电话号码:
- <span v-if="type ==1">{{main_collection.patient.phone}} </span>
- <span v-if="type ==2">{{main_collection.phone}} </span>
- </div>
- <div class="printCell">
- 透析器:
- <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
- <span v-if="type ==2">{{main_collection.dialysis_order.dialysis_dialyszers}} </span>
-
- </div>
- <div class="printCell">
- 灌流器:
- <span v-if="type ==1">{{main_collection.dialysis_order.dialysis_irrigation}} </span>
- <span v-if="type ==2">{{main_collection.dialysis_order.dialysis_irrigation}} </span>
- </div>
- <div class="printCell">
- 血管通路:
- <span v-if="type ==1">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
- <span v-if="type ==2">{{getBloodAccess(main_collection.dialysis_order.blood_access_id)}} </span>
- </div>
-
- <div class="printCell">
- <span>
- 分区/床号
- <span style="width:auto;">{{main_collection.zone.name}}/</span>
- {{ main_collection.number.number }}
- <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
- <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
- <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span> -->
- </span>
-
- </div>
-
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
-
- <script>
- import { getScheduleList, getPrintList, getNextScheduleWeekDayOne } from '@/api/schedule'
- import { parseTime } from '@/utils'
- import { uParseTime } from '@/utils/tools'
- import BreadCrumb from '@/xt_pages/components/bread-crumb'
- import { getDataConfig } from '@/utils/data'
- import print from 'print-js'
- const moment = require('moment')
- export default {
- name: 'SchedulePrint',
- data() {
- return {
- crumbs: [
- { path: false, name: '排班提醒' },
- { path: false, name: '排班提醒打印' }
- ],
- scheduleData: [],
- week_type: 0,
- day: '',
- td_1_width: '10%',
- td_2_width: '10%',
- td_3_width: '25%',
- td_4_width: '45%',
- modeOptions: null,
- anticoagulants_confit: null,
- currentDate: '',
- start_time: moment().week(moment().week() + 1).startOf('week').unix(),
- end_time: moment().week(moment().week() + 1).endOf('week').unix(),
- org_id: 0,
- now_time: 0,
- zone: '',
- pre_status: 0,
- printObj: {},
- type: 1,
- printDate: '',
- loading:false,
- }
- },
- components: {
- BreadCrumb
- },
- created() {
- this.type = this.$route.query.type
- this.getPrintList()
- this.org_id = this.$store.getters.xt_user.org.id
- console.log('机构ID', this.org_id)
- this.currentDate = this.getCurrentDate()
-
- this.printDate = moment().format('YYYY-MM-DD HH:mm:ss')
- this.modeOptions = this.$store.getters.treatment_mode
- this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
- this.week_type = this.$route.query.week_type
- this.week_time = this.$route.query.week_time
- this.zone = this.$route.query.zone
- this.pre_status = this.$route.query.prestatus
-
- if (parseInt(this.$route.query.type) == 1) {
- const params = {
- week_type: this.week_type,
- week_time: this.week_time,
- zone: this.zone
- }
-
- this.loading = true
- getScheduleList(params).then(response => {
- if (response.data.state == 1) {
- var list = response.data.data.list
- this.loading = false
- for (let i = 0; i < list.length; i++) {
- list[i].sort = list[i].number.sort
- }
- var arr = list.sort(this.compare('sort'))
-
- this.scheduleData = arr
-
- const a = response.data.data.day
- console.log('a', a)
- var myDate = new Date(a)
- var year = myDate.getFullYear() // 年
- var month = myDate.getMonth() + 1 // 月
- var day = myDate.getDate() // 日
- var days = myDate.getDay()
- switch (days) {
- case 1:
- days = '星期一'
- break
- case 2:
- days = '星期二'
- break
- case 3:
- days = '星期三'
- break
- case 4:
- days = '星期四'
- break
- case 5:
- days = '星期五'
- break
- case 6:
- days = '星期六'
- break
- case 0:
- days = '星期日'
- break
- }
- var str = year + '年' + month + '月' + day + '日 ' + days
- this.currentDate = str
- }
- })
-
- var now_time = parseInt(this.week_type) * 86400 + this.start_time
- console.log('now', now_time)
- this.now_time = now_time
- }
- if (parseInt(this.$route.query.type) == 2) {
- this.getNextScheduleWeekDay()
- }
- },
- methods: {
- getAdvice: function(doctor_advice) {
- if (doctor_advice != null) {
- let name = ''
- for (let i = 0; i < doctor_advice.length; i++) {
- let prescribing_number = ''
- let single_dose = ''
- let drug_spec = ''
-
- if (doctor_advice[i].prescribing_number > 0) {
- prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
- }
- if (doctor_advice[i].single_dose > 0) {
- single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
- }
-
- if (doctor_advice[i].drug_spec > 0) {
- drug_spec = doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
- }
-
- name = name + doctor_advice[i].advice_name + ' ' + drug_spec + ' ' + prescribing_number + ' ' + single_dose + ' ' + doctor_advice[i].delivery_way + ' ' + doctor_advice[i].execution_frequency + ' ' + doctor_advice[i].remark + '\n'
-
- if (doctor_advice[i].child.length > 0) {
- for (let a = 0; a < doctor_advice[i].child.length; a++) {
- if (doctor_advice[i].child[a].prescribing_number > 0) {
- doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
- } else {
- doctor_advice[i].child[a]['presc'] = ''
- }
-
- if (doctor_advice[i].child[a].single_dose > 0) {
- doctor_advice[i].child[a]['single'] = ' ' + ' 单次用量 ' + ' ' + doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
- } else {
- doctor_advice[i].child[a]['single'] = ''
- }
-
- name = name + '▲' + doctor_advice[i].child[a].advice_name + '' +
- doctor_advice[i].child[a].advice_desc +
- doctor_advice[i].child[a].drug_spec_unit +
- doctor_advice[i].child[a].presc +
- doctor_advice[i].child[a].single + '\n'
- }
- }
- }
- return name
- }
- },
- printAction: function() {
- const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
- const style1 = '@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
- const style2 = '@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;}.signPrint{width:40%;float: left;margin-left: 5%; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; margin-bottom: 20px;padding: 20px 10px;} .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
- if (this.org_id == 9671 || this.org_id == 10340) {
- printJS({
- printable: 'print_content',
- type: 'html',
- documentTitle: ' ',
- style: style2,
- scanStyles: false
- })
- } else if (this.org_id == 10188 || this.org_id == 10217) {
- printJS({
- printable: 'print_content',
- type: 'html',
- documentTitle: ' ',
- style: style1,
- scanStyles: false
- })
- } else {
- printJS({
- printable: 'print_content',
- type: 'html',
- documentTitle: ' ',
- style: style,
- scanStyles: false
- })
- }
- }, getSchedulesType: function(type) {
- let type_name = ''
- switch (type) {
- case 1:
- type_name = '上午'
- break
- case 2:
- type_name = '下午'
- break
- case 3:
- type_name = '晚上'
- break
- }
- return type_name
- },
- getCurrentDate: function() {
- console.log(this.$route.query.week_type)
- var myDate = new Date()
- var year = myDate.getFullYear() // 年
- var month = myDate.getMonth() + 1 // 月
- var day = myDate.getDate() + 7 // 日
- var newday = myDate.getDay()
- var days = parseInt(this.$route.query.week_type)
- var dayNum = parseInt(this.$route.query.week_type)
- switch (days) {
- case 1:
- days = '星期一'
- break
- case 2:
- days = '星期二'
- break
- case 3:
- days = '星期三'
- break
- case 4:
- days = '星期四'
- break
- case 5:
- days = '星期五'
- break
- case 6:
- days = '星期六'
- break
- case 7:
- days = '星期日'
- break
- }
- if (newday > dayNum) {
- const lastDay = day - (newday - dayNum)
- console.log('lastDay1', lastDay)
- var str = year + '年' + month + '月' + lastDay + '日 ' + days
- return str
- } else if (newday < dayNum) {
- const lastDay = day + (dayNum - newday)
- console.log('lastDay2', lastDay)
- var str = year + '年' + month + '月' + lastDay + '日 ' + days
- return str
- } else {
- var str = year + '年' + month + '月' + day + '日 ' + days
- return str
- }
- },
-
- compare(property) {
- return function(a, b) {
- var value1 = a[property]
- var value2 = b[property]
- return value1 - value2
- }
- },
- getTime(val) {
- if (val == '') {
- return ''
- } else {
- return uParseTime(val, '{y}-{m}-{d}')
- }
- },
- getPrintList() {
- getPrintList().then(response => {
- if (response.data.state == 1) {
- var list = response.data.data.list
- console.log('打印设置', list)
- this.printObj = list
- }
- })
- },
- getNextScheduleWeekDay() {
- const start = moment().weekday(1).format('YYYY-MM-DD') // 本周一
- const end = moment().weekday(7).format('YYYY-MM-DD')
- var zone = this.zone
- // var newArr = []
- // for(let i=0;i<this.zoneList.length;i++){
- // newArr.push(this.zoneList[i].id)
- // }
- // var arr = newArr.join(",")
- // var str = ""
- // if(this.zone == 0){
- // str = arr
- // }
- // if(zone != 0){
- // str = zone.join(",")
- // }
- var now_time = parseInt(this.week_type) * 86400 + this.start_time
-
- const weekOfDay = parseInt(moment().format('E'))
- const next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD')
- console.log('卡 is h2323233232', this.toStamp(next_monday))
- const next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
- console.log('下周日', this.toStamp(next_sunday))
-
- const params = {
- start_time: this.toStamp(next_monday),
- end_time: this.toStamp(next_sunday),
- week_type: this.week_type,
- week_time: this.week_time,
- zone: this.zone,
- record_date: this.getTime(now_time)
- }
- // const params = {
- // start_time:1609603200,
- // end_time:1610208000,
- // week_type:this.week_type,
- // week_time:this.week_time,
- // }
- console.log('params', params)
- getNextScheduleWeekDayOne(params).then(response => {
- this.scheduleData = []
- if (response.data.state == 1) {
- var scheduleData = response.data.data.schedule
-
- for (let i = 0; i < scheduleData.length; i++) {
- scheduleData[i].sort = scheduleData[i].number.sort
- }
- var arr = scheduleData.sort(this.compare('sort'))
- console.log('元旦快乐', arr)
- this.scheduleData = arr
-
- // var newList = []
- // for(let i=0;i<scheduleData.length;i++){
- // if(scheduleData.prescription.id > 0){
- // newList.push(scheduleData[i])
- // }
- // }
- // var arr = newList.sort(this.compare('sort'))
- // console.log("元旦快乐",arr)
- // this.scheduleData = arr
- } else {
- this.$message.error('网络错误')
- return false
- }
- })
- },
- getAnticoagulant(name) {
- if (name == 0) {
- name = ''
- }
- if (name == 1) {
- name = '无肝素'
- }
- if (name == 2) {
- name = '普通肝素'
- }
- if (name == 3) {
- name = '低分子肝素'
- }
-
- if (name == 4) {
- name = '阿加曲班'
- }
- if (name == 5) {
- name = '枸橼酸钠'
- }
- if (name == 6) {
- name = '低分子肝素钙'
- }
- if (name == 7) {
- name = '低分子肝素钠'
- }
-
- return name
- },
- getAnticoagulantZonliang(arr, mode_id) {
- var name = 0
- if (arr.length > 0) {
- for (let i = 0; i < arr.length; i++) {
- if (mode_id == arr[i].mode_id) {
- name = arr[i].anticoagulant_zongliang
- }
- }
- }
- return name
- },
- getNewAge(UUserCard) {
- if (UUserCard != null && UUserCard != '') {
- // 获取年龄
- var myDate = new Date()
- var month = myDate.getMonth() + 1
- var day = myDate.getDate()
- var age = myDate.getFullYear() - UUserCard.substring(6, 10) - 1
- if (UUserCard.substring(10, 12) < month || UUserCard.substring(10, 12) == month && UUserCard.substring(12, 14) <= day) {
- age++
- }
- return age
- }
- },
- getGender(gender) {
- var name = ''
- if (gender == 1) {
- name = '男'
- }
- if (gender == 2) {
- name = '女'
- }
- return name
- },
- getModeId(id) {
- var name = ''
- if (id == 1) {
- name = 'HD'
- }
- if (id == 2) {
- name = 'HDF'
- }
- if (id == 3) {
- name = 'HD+HP'
- }
- if (id == 4) {
- name = 'HP'
- }
- if (id == 5) {
- name = 'HF'
- }
- if (id == 6) {
- name = 'SCUF'
- }
- if (id == 7) {
- name = 'IUF'
- }
- if (id == 8) {
- name = 'HFHD'
- }
- if (id == 9) {
- name = 'HFHD+HP'
- }
- if (id == 10) {
- name = 'PHF'
- }
- if (id == 11) {
- name = 'HFR'
- }
- if (id == 12) {
- name = 'HDF+HP'
- }
- if (id == 13) {
- name = 'CRRT'
- }
- if (id == 14) {
- name = '腹水回输'
- }
- if (id == 19) {
- name = 'IUF+HD'
- }
- if (id == 20) {
- name = 'UF'
- }
- if (id == 21) {
- name = 'HD+'
- }
- if (id == 22) {
- name = '血浆胆红素吸附+HDF'
- }
- if (id == 23) {
- name = '血浆胆红素吸附'
- }
- if (id == 24) {
- name = 'I-HDF'
- }
- if (id == 25) {
- name = 'HD高通'
- }
- if (id == 26) {
- name = 'CVVH'
- }
- if (id == 27) {
- name = 'CVVHD'
- }
- if (id == 28) {
- name = 'CVVHDF'
- }
- if (id == 29) {
- name = 'PE'
- }
- if (id == 30) {
- name = '血浆胆红素吸附+HP'
- }
- if (id == 31) {
- name = 'HPD'
- }
- if (id == 32) {
- name = 'HDP'
- }
- return name
- },
- getBloodAccess(id) {
- var name = ''
- var list = getDataConfig(
- 'hemodialysis',
- 'vascular_access_desc'
- )
- for (let i = 0; i < list.length; i++) {
- if (id == list[i].id) {
- name = list[i].name
- }
- }
- return name
- },
- toStamp(date) {
- const myDate = new Date(date).getTime() / 1000 - 28800
- // const stmapEg = Date.parse(myDate) / 1000
- return myDate
- }
-
- }
- }
- </script>
-
- <style rel="stylesheet/scss" lang="scss" scoped>
- .page-break-after{
- page-break-after:always;
- }
- .print_main_content {
- background-color: white;
- max-width: 1500px;
- margin: 0 auto;
- padding: 0 0 20px 0;
-
- .order_title_panl {
- text-align: center;
-
- .main_title {
- font-size: 18px;
- line-height: 40px;
- font-weight: 500;
- }
- }
- .table_panel {
- .table {
- width: 100%;
- border: 1px solid;
- border-collapse: collapse;
- padding: 2px;
-
- thead {
- tr {
- td {
- border: 1px solid;
- text-align: center;
- font-size: 20px;
- padding: 15px 5px;
- }
- }
- }
- tbody {
- tr {
- td {
- border: 1px solid;
- text-align: center;
- font-size: 18px;
- padding: 10px 5px;
-
- .proj {
- padding: 5px 0;
- text-align: left;
-
- .proj_title {
- font-size: 16px;
- font-weight: 500;
- line-height: 25px;
- }
-
- .proj_item {
- font-size: 15px;
- line-height: 20px;
-
- .zone_name {
- font-weight: 500;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- .signPrint{
- -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
- -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
- margin-bottom: 20px;
- padding: 20px 10px;
- }
- .printCell{
- span{
- display: inline-block;
- width: 220px;
- }
- }
- </style>
|