<template>
  <div class="mainBox"
       v-loading="loading"
       element-loading-text="加载中"
       element-loading-spinner="el-icon-loading"
       element-loading-background="rgba(0, 0, 0, 0.8)"
       style="width: 100%;height: 100%"
  >

    <!--<el-button  style="margin-top: 10px;margin-right:100px;float: right" type="primary" icon="el-icon-printer" @click="printThisPage">打印</el-button>-->

    <side-bar :active_index="0" v-if="isShow == true"></side-bar>
    <div class="mainContent">

      <div class="navigation" v-if="isShow == true">
        <div class="goBack">
          <span class="back" @click="backAction()"><span class="iconfont">&#xe720;</span>返回</span>

        </div>

        <div class="print" style="float: right">
          <el-button size="mini" type="primary" icon="el-icon-printer" @click="printThisPage">打印</el-button>
        </div>

      </div>


      <div ref='cvs' id="dialysis-print-box" style="padding-top: 60px">
        <div class="dialysis-print-order">
          <div class="order-yy-name">{{orgname}}</div>
          <div class="order-title">血液净化治疗记录单</div>
          <table class="table-box" style="margin-top: 10px;">
            <tbody>
            <tr>
              <td width="50">姓 名:</td>
              <td width="90">
                <div class="under-line">&nbsp;{{patientInfo.name}}</div>
              </td>
              <td width="50">性 别:</td>
              <td width="120">
                <div>
                  <label for="gender_1" class="radio-lebel-box">
                                        <span class="radio-inner">
                                            <span class="radio-fang "
                                                  :class="{'is-checked-radio':patientInfo_gender_1}"></span>
                                            <input vt-model="patientInfo.gender" id="gender_1" name="gender"
                                                   type="radio" class="radio-no" value="1">
                                        </span>
                    <span> 男</span>
                  </label>
                  &nbsp;
                  <label for="gender_2" class="radio-lebel-box">
                                        <span class="radio-inner">
                                            <span class="radio-fang"
                                                  :class="{'is-checked-radio':patientInfo_gender_2}"></span>
                                            <input vt-model="patientInfo.gender" id="gender_2"
                                                   :checked="patientInfo.gender==2?true:false" name="gender"
                                                   type="radio" class="radio-no" value="2">
                                        </span>
                    <span> 女</span>
                  </label>
                </div>
              </td>
              <td width="50">年 龄:</td>
              <td width="40">
                <div class="under-line">&nbsp;{{patientInfo.age}}</div>
              </td>
              <td>岁</td>
              <td width="10">&nbsp;</td>

              <td width="50">科 室:</td>
              <td width="200">
                <div>
                  <label for="source_1" class="radio-lebel-box">
                                        <span class="radio-inner">
                                            <span class="radio-fang "
                                                  :class="{'is-checked-radio':patientInfo_source_1}"></span>
                                            <input vt-model="patientInfo.source" id="source_1" name="source"
                                                   type="radio" class="radio-no" value="1">
                                        </span>
                    <span> 门 诊 透 析</span>
                  </label>
                  &nbsp;
                  <label for="source_2" class="radio-lebel-box">
                                        <span class="radio-inner">
                                            <span class="radio-fang"
                                                  :class="{'is-checked-radio':patientInfo_source_2}"></span>
                                            <input vt-model="patientInfo.source" id="source_2"
                                                   :checked="patientInfo.source==2?true:false" name="source"
                                                   type="radio" class="radio-no" value="2">
                                        </span>
                    <span> 住 院</span>
                  </label>
                </div>
              </td>

            </tr>
            </tbody>
          </table>
          <table class="table-box" style="margin-top: 10px;">
            <tbody>
            <tr>
              <td width="130">住院号/透析卡号:</td>
              <td width="90">
                <div class="under-line">&nbsp;{{patientInfo.admission_number?patientInfo.admission_number:'无'}}
                  /{{patientInfo.dialysis_no}}
                </div>
              </td>

              <td width="40">诊 断:</td>
              <td width="">
                <div class="under-line">&nbsp;{{patientInfo.diagnose}}</div>
              </td>

              <td width="80">治 疗 日 期:</td>
              <td width="120">
                <div class="under-line">&nbsp;<span>{{queryParams.xtdate}}</span></div>
              </td>

            </tr>
            </tbody>
          </table>
          <table class="print-table" border="1">
            <tbody>
            <tr>
              <td width="30px" class="title-box">透前评估</td>
              <td>
                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="70">入院方式:</td>
                    <td width="230">
                      <div>
                        <label for="receiverTreatmentAccess_way_1" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang "
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.way==1?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.way"
                                                                   id="receiverTreatmentAccess_way_1"
                                                                   name="receiverTreatmentAccess_way" type="radio"
                                                                   class="radio-no" value="1">
                                                        </span>
                          <span> 步行</span>
                        </label>
                        &nbsp;
                        <label for="receiverTreatmentAccess_way_2" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.way==2?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.way"
                                                                   id="receiverTreatmentAccess_way_2"
                                                                   name="receiverTreatmentAccess_way" type="radio"
                                                                   class="radio-no" value="2">
                                                        </span>
                          <span> 扶行</span>
                        </label>
                        &nbsp;
                        <label for="receiverTreatmentAccess_way_3" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.way==3?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.way"
                                                                   id="receiverTreatmentAccess_way_3"
                                                                   name="receiverTreatmentAccess_way" type="radio"
                                                                   class="radio-no" value="3">
                                                        </span>
                          <span> 轮椅</span>
                        </label>
                        &nbsp;
                        <label for="receiverTreatmentAccess_way_4" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.way==4?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.way"
                                                                   id="receiverTreatmentAccess_way_4"
                                                                   name="receiverTreatmentAccess_way" type="radio"
                                                                   class="radio-no" value="4">
                                                        </span>
                          <span> 平车</span>
                        </label>
                      </div>
                    </td>

                    <td></td>
                    <td width="50">意识:</td>
                    <td width="180">
                      <div>
                        <label for="receiverTreatmentAccess_consciousness_1" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang "
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.consciousness==1?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.consciousness"
                                                                   id="receiverTreatmentAccess_consciousness_1"
                                                                   name="receiverTreatmentAccess_consciousness"
                                                                   type="radio" class="radio-no" value="1">
                                                        </span>
                          <span> 清醒</span>
                        </label>
                        &nbsp;
                        <label for="receiverTreatmentAccess_consciousness_2" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.consciousness==2?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.consciousness"
                                                                   id="receiverTreatmentAccess_consciousness_2"
                                                                   name="receiverTreatmentAccess_consciousness"
                                                                   type="radio" class="radio-no" value="2">
                                                        </span>
                          <span> 嗜睡</span>
                        </label>
                        &nbsp;
                        <label for="receiverTreatmentAccess_consciousness_3" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.consciousness==3?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.consciousness"
                                                                   id="receiverTreatmentAccess_consciousness_3"
                                                                   name="receiverTreatmentAccess_consciousness"
                                                                   type="radio" class="radio-no" value="3">
                                                        </span>
                          <span> 昏迷</span>
                        </label>
                      </div>
                    </td>
                    <td></td>
                    <td width="50">体温:</td>
                    <td width="100">
                      <div class="under-line">&nbsp;{{predialysis.temperature}}</div>
                    </td>
                    <td width="35">℃</td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="40">体位:</td>
                    <td width="400">
                      <div>
                        <label for="receiverTreatmentAccess_posture_1" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.posture==1?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.posture"
                                                                   id="receiverTreatmentAccess_posture_1"
                                                                   name="receiverTreatmentAccess_posture_1" type="radio"
                                                                   class="radio-no" value="1">
                                                        </span>
                          <span> 自动体位</span>
                        </label>
                        &nbsp;
                        <label for="receiverTreatmentAccess_posture_2" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.posture==2?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.posture"
                                                                   id="receiverTreatmentAccess_posture_2"
                                                                   name="receiverTreatmentAccess_posture_2" type="radio"
                                                                   class="radio-no" value="2">
                                                        </span>
                          <span> 平卧位</span>
                        </label>
                        &nbsp;
                        <label for="receiverTreatmentAccess_posture_3" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.posture==3?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.posture"
                                                                   id="receiverTreatmentAccess_posture_3"
                                                                   name="receiverTreatmentAccess_posture_3" type="radio"
                                                                   class="radio-no" value="3">
                                                        </span>
                          <span> 半卧位</span>
                        </label>
                        &nbsp;
                        <label for="receiverTreatmentAccess_posture_4" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.posture==4?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.posture"
                                                                   id="receiverTreatmentAccess_posture_4"
                                                                   name="receiverTreatmentAccess_posture_4" type="radio"
                                                                   class="radio-no" value="4">
                                                        </span>
                          <span> 端坐位</span>
                        </label>
                        &nbsp;
                        <label for="receiverTreatmentAccess_posture_5" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':receiverTreatmentAccess.posture==5?true:false}"></span>
                                                            <input vt-model="receiverTreatmentAccess.posture"
                                                                   id="receiverTreatmentAccess_posture_5"
                                                                   name="receiverTreatmentAccess_posture_5" type="radio"
                                                                   class="radio-no" value="5">
                                                        </span>
                          <span> 躁动不安</span>
                        </label>
                        &nbsp;

                      </div>
                    </td>

                    <td></td>
                  </tr>
                  </tbody>
                </table>
                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="40">出血:</td>
                    <td width="95">
                      <div>
                        <label for="PredialysisEvaluation_is_hemorrhage_2" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.is_hemorrhage==2?true:false}"></span>
                                                            <input vt-model="predialysis.is_hemorrhage"
                                                                   id="PredialysisEvaluation_is_hemorrhage_2"
                                                                   name="PredialysisEvaluation_is_hemorrhage"
                                                                   type="radio" class="radio-no" value="2">
                                                        </span>
                          <span> 无</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_is_hemorrhage_1" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.is_hemorrhage==1?true:false}"></span>
                                                            <input vt-model="predialysis.is_hemorrhage"
                                                                   id="PredialysisEvaluation_is_hemorrhage_1"
                                                                   name="PredialysisEvaluation_is_hemorrhage"
                                                                   type="radio" class="radio-no" value="1">
                                                        </span>
                          <span> 有</span>
                        </label>
                      </div>
                    </td>
                    <td width="10">(</td>
                    <td width="380">
                      <div>
                        <label for="PredialysisEvaluation_hemorrhage_1" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('穿刺点渗血')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.is_hemorrhage"
                                                                   id="PredialysisEvaluation_hemorrhage_1"
                                                                   name="PredialysisEvaluation_hemorrhage" type="radio"
                                                                   class="radio-no" value="1">
                                                        </span>
                          <span> 穿刺点渗血</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_hemorrhage_2" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('牙龈出血')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.is_hemorrhage"
                                                                   id="PredialysisEvaluation_hemorrhage_2"
                                                                   name="PredialysisEvaluation_hemorrhage" type="radio"
                                                                   class="radio-no" value="2">
                                                        </span>
                          <span> 牙龈出血</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_hemorrhage_3" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('消化道出血')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.is_hemorrhage"
                                                                   id="PredialysisEvaluation_hemorrhage_3"
                                                                   name="PredialysisEvaluation_hemorrhage" type="radio"
                                                                   class="radio-no" value="3">
                                                        </span>
                          <span> 消化道出血</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_hemorrhage_4" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('女性经期')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.is_hemorrhage"
                                                                   id="PredialysisEvaluation_hemorrhage_4"
                                                                   name="PredialysisEvaluation_hemorrhage" type="radio"
                                                                   class="radio-no" value="4">
                                                        </span>
                          <span> 女性经期</span>
                        </label>
                      </div>
                    </td>

                    <td width="35">其它</td>
                    <td width="">
                      <div class="under-line">&nbsp;
                        <span v-if="predialysis.is_hemorrhage==1">{{predialysis.hemorrhage_other}}</span>
                      </div>
                    </td>
                    <td width="10">)</td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="70">血管通路:</td>
                    <td width="400">
                      <div>
                        <label for="PredialysisEvaluation_blood_access_1" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.blood_access_part_opera_name.indexOf('自体内瘘')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.blood_access_part_opera_name"
                                                                   id="PredialysisEvaluation_blood_access_1"
                                                                   name="PredialysisEvaluation_blood_access"
                                                                   type="radio" class="radio-no" value="自体内瘘">
                                                        </span>
                          <span> 自体内瘘</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_blood_access_2" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.blood_access_part_opera_name.indexOf('人造血管')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.blood_access_part_opera_name"
                                                                   id="PredialysisEvaluation_blood_access_2"
                                                                   name="PredialysisEvaluation_blood_access"
                                                                   type="radio" class="radio-no" value="人造血管">
                                                        </span>
                          <span> 人造血管</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_blood_access_3" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.blood_access_part_opera_name.indexOf('直穿')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.blood_access_part_opera_name"
                                                                   id="PredialysisEvaluation_blood_access_3"
                                                                   name="PredialysisEvaluation_blood_access"
                                                                   type="radio" class="radio-no" value="直穿">
                                                        </span>
                          <span> 直穿</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_blood_access_4" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.blood_access_part_opera_name.indexOf('颈内静脉')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.blood_access_part_opera_name"
                                                                   id="PredialysisEvaluation_blood_access_4"
                                                                   name="PredialysisEvaluation_blood_access"
                                                                   type="radio" class="radio-no" value="颈内静脉">
                                                        </span>
                          <span> 颈内静脉</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_blood_access_5" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.blood_access_part_opera_name.indexOf('股静脉')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.blood_access_part_opera_name"
                                                                   id="PredialysisEvaluation_blood_access_5"
                                                                   name="PredialysisEvaluation_blood_access"
                                                                   type="radio" class="radio-no" value="股静脉">
                                                        </span>
                          <span> 股静脉</span>
                        </label>
                        &nbsp;

                      </div>
                    </td>

                    <td></td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="40">内瘘:</td>
                    <td width="35">震颤</td>
                    <td width="10">(</td>
                    <td width="180">
                      <div>
                        <label for="PredialysisEvaluation_internal_fistula_1" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.internal_fistula.indexOf('震颤-存在')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.internal_fistula"
                                                                   id="PredialysisEvaluation_internal_fistula_1"
                                                                   name="PredialysisEvaluation_internal_fistula"
                                                                   type="radio" class="radio-no" value="震颤-存在">
                                                        </span>
                          <span> 存在</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_internal_fistula_2" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.internal_fistula.indexOf('震颤-减弱')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.internal_fistula"
                                                                   id="PredialysisEvaluation_internal_fistula_2"
                                                                   name="PredialysisEvaluation_internal_fistula"
                                                                   type="radio" class="radio-no" value="震颤-减弱">
                                                        </span>
                          <span> 减弱</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_internal_fistula_3" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.internal_fistula.indexOf('震颤-无')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.internal_fistula"
                                                                   id="PredialysisEvaluation_internal_fistula_3"
                                                                   name="PredialysisEvaluation_internal_fistula"
                                                                   type="radio" class="radio-no" value="震颤-无">
                                                        </span>
                          <span> 无</span>
                        </label>
                      </div>
                    </td>
                    <td width="10">)</td>

                    <td width="95">内瘘皮肤情况</td>
                    <td width="10">(</td>
                    <td width="220">
                      <div>
                        <label for="PredialysisEvaluation_internal_fistula_skin_4" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.internal_fistula_skin.indexOf('正常')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.internal_fistula_skin"
                                                                   id="PredialysisEvaluation_internal_fistula_skin_4"
                                                                   name="PredialysisEvaluation_internal_fistula_skin"
                                                                   type="radio" class="radio-no" value="正常">
                                                        </span>
                          <span> 正常</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_internal_fistula_skin_5" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.internal_fistula_skin.indexOf('瘀斑')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.internal_fistula_skin"
                                                                   id="PredialysisEvaluation_internal_fistula_skin_5"
                                                                   name="PredialysisEvaluation_internal_fistula_skin"
                                                                   type="radio" class="radio-no" value="瘀斑">
                                                        </span>
                          <span> 瘀斑</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_internal_fistula_skin_6" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.internal_fistula_skin.indexOf('红')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.internal_fistula_skin"
                                                                   id="PredialysisEvaluation_internal_fistula_skin_6"
                                                                   name="PredialysisEvaluation_internal_fistula_skin"
                                                                   type="radio" class="radio-no" value="红">
                                                        </span>
                          <span> 红</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_internal_fistula_skin_7" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.internal_fistula_skin.indexOf('肿')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.internal_fistula_skin"
                                                                   id="PredialysisEvaluation_internal_fistula_skin_7"
                                                                   name="PredialysisEvaluation_internal_fistula_skin"
                                                                   type="radio" class="radio-no" value="肿">
                                                        </span>
                          <span> 肿</span>
                        </label>
                      </div>
                    </td>
                    <td width="10">)</td>
                    <td></td>
                  </tr>
                  </tbody>
                </table>
                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="40">导管:</td>
                    <td width="50">穿刺口</td>
                    <td width="10">(</td>
                    <td width="250">
                      <div>
                        <label for="PredialysisEvaluation_catheter_1" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.catheter.indexOf('穿刺口-干洁')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.catheter"
                                                                   id="PredialysisEvaluation_catheter_1"
                                                                   name="PredialysisEvaluation_catheter" type="radio"
                                                                   class="radio-no" value="穿刺口-干洁">
                                                        </span>
                          <span> 干洁</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_catheter_2" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.catheter.indexOf('穿刺口-红肿')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.catheter"
                                                                   id="PredialysisEvaluation_catheter_2"
                                                                   name="PredialysisEvaluation_catheter" type="radio"
                                                                   class="radio-no" value="穿刺口-红肿">
                                                        </span>
                          <span> 红肿</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_catheter_3" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.catheter.indexOf('穿刺口-分泌物')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.catheter"
                                                                   id="PredialysisEvaluation_catheter_3"
                                                                   name="PredialysisEvaluation_catheter" type="radio"
                                                                   class="radio-no" value="穿刺口-分泌物">
                                                        </span>
                          <span> 分泌物</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_catheter_4" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.catheter.indexOf('穿刺口-渗血')>-1?true:false}"></span>
                                                            <input vt-model="predialysis.catheter"
                                                                   id="PredialysisEvaluation_catheter_4"
                                                                   name="PredialysisEvaluation_catheter" type="radio"
                                                                   class="radio-no" value="穿刺口-渗血">
                                                        </span>
                          <span> 渗血</span>
                        </label>
                      </div>
                    </td>
                    <td width="10">)</td>

                    <td width="65">导管打折</td>
                    <td width="10">(</td>
                    <td width="80">
                      <div>
                        <label for="PredialysisEvaluation_catheter_bend_5" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.catheter_bend == 1?true:false}"></span>
                                                            <input vt-model="predialysis.catheter_bend"
                                                                   id="PredialysisEvaluation_catheter_bend_5"
                                                                   name="PredialysisEvaluation_catheter_bend"
                                                                   type="radio" class="radio-no" value="1">
                                                        </span>
                          <span> 有</span>
                        </label>
                        &nbsp;
                        <label for="PredialysisEvaluation_catheter_bend_6" class="radio-lebel-box">
                                                        <span class="radio-inner">
                                                            <span class="radio-fang"
                                                                  :class="{'is-checked-radio':predialysis.catheter_bend == 2?true:false}"></span>
                                                            <input vt-model="predialysis.catheter_bend"
                                                                   id="PredialysisEvaluation_catheter_bend_6"
                                                                   name="catheter_bend" type="radio" class="radio-no"
                                                                   value="2">
                                                        </span>
                          <span> 无</span>
                        </label>
                      </div>
                    </td>
                    <td width="10">)</td>
                    <td></td>
                  </tr>
                  </tbody>
                </table>
              </td>
            </tr>
            </tbody>
          </table>

          <table class="print-table" border="1">
            <tbody>
            <tr>
              <td width="30px" class="title-box">透析处方</td>
              <td>
                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="70">透析时间:</td>
                    <td width="40">
                      <div class="under-line">&nbsp;{{prescription.dialysis_duration_hour}}</div>
                    </td>
                    <td width="10">h</td>
                    <td width="40">
                      <div class="under-line">&nbsp;{{prescription.dialysis_duration_minute}}</div>
                    </td>
                    <td width="35">min</td>
                    <td></td>
                    <td width="55">血流量:</td>
                    <td width="60">
                      <div class="under-line">&nbsp;{{prescription.blood_flow_volume}}</div>
                    </td>
                    <td width="60">ml/min</td>
                    <td></td>
                    <td width="40">体重:</td>
                    <td width="35">透前</td>
                    <td width="50">
                      <div class="under-line">&nbsp;{{predialysis.weight_before}}</div>
                    </td>
                    <td width="20">Kg</td>
                    <td width="45">干体重</td>
                    <td width="50">
                      <div class="under-line">&nbsp;{{predialysis.dry_weight}}</div>
                    </td>
                    <td width="20">Kg</td>
                    <td></td>
                    <td width="85">目标超滤量:</td>
                    <td width="70">
                      <div class="under-line">&nbsp;{{prescription.target_ultrafiltration}}</div>
                    </td>
                    <td width="20">ml</td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="70">抗凝方式:</td>
                    <td width="80">
                      <label for="prescription_anticoagulant_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':prescription.anticoagulant==2?true:false}"></span>
                                                        <input vt-model="prescription.anticoagulant"
                                                               id="prescription_anticoagulant_2"
                                                               name="prescription_anticoagulant" type="radio"
                                                               class="radio-no" value="2">
                                                    </span>
                        <span> 普通肝素</span>
                      </label>
                    </td>
                    <td width="10">(</td>
                    <td width="35">首剂</td>
                    <td width="40">
                      <div class="under-line">&nbsp;
                        <span v-if="prescription.anticoagulant==2">{{prescription.anticoagulant_shouji}}</span>
                      </div>
                    </td>
                    <td width="20">mg</td>
                    <td width="10"></td>
                    <td width="35">维持</td>
                    <td width="40">
                      <div class="under-line">&nbsp;
                        <span v-if="prescription.anticoagulant==2">{{prescription.anticoagulant_weichi}}</span>
                      </div>
                    </td>
                    <td width="40">mg/h</td>
                    <td width="10">)</td>

                    <td width="95">
                      <label for="prescription_anticoagulant_3" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':prescription.anticoagulant==3?true:false}"></span>
                                                        <input vt-model="prescription.anticoagulant"
                                                               id="prescription_anticoagulant_3"
                                                               name="prescription_anticoagulant" type="radio"
                                                               class="radio-no" value="3">
                                                    </span>
                        <span> 低分子肝素</span>
                      </label>
                    </td>
                    <td width="60">
                      <div class="under-line">&nbsp;
                        <span v-if="prescription.anticoagulant==3">{{prescription.anticoagulant_zongliang}}</span>
                      </div>
                    </td>
                    <td width="20">IU</td>

                    <td width="80">
                      <label for="prescription_anticoagulant_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':prescription.anticoagulant==1?true:false}"></span>
                                                        <input vt-model="prescription.anticoagulant"
                                                               id="prescription_anticoagulant_1"
                                                               name="prescription_anticoagulant" type="radio"
                                                               class="radio-no" value="1">
                                                    </span>
                        <span> 无肝素</span>
                      </label>
                    </td>

                    <td width="70">其他方式:</td>
                    <td width="">
                      <div class="under-line">&nbsp;
                        <span v-if="prescription.anticoagulant>3">{{prescription.anticoagulant_name}}</span>
                      </div>
                    </td>
                  </tr>
                  </tbody>
                </table>


                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="85">透析液配方:</td>
                    <td width="50">
                      <label for="prescription_dialysate_formulation_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':prescription.dialysate_formulation_name.indexOf('常规')>-1?true:false}"></span>
                                                        <input vt-model="prescription.dialysate_formulation_name"
                                                               id="prescription_dialysate_formulation_1"
                                                               name="PredialysisEvaluation_catheter" type="radio"
                                                               class="radio-no" value="常规">
                                                    </span>
                        <span> 常规</span>
                      </label>
                    </td>
                    <td width="50">
                      <label for="prescription_dialysate_formulation_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':prescription.dialysate_formulation_name.indexOf('低钙')>-1?true:false}"></span>
                                                        <input vt-model="prescription.dialysate_formulation_name"
                                                               id="prescription_dialysate_formulation_2"
                                                               name="PredialysisEvaluation_catheter" type="radio"
                                                               class="radio-no" value="低钙">
                                                    </span>
                        <span> 低钙</span>
                      </label>
                    </td>
                    <td width="120">
                      (
                      <label class="radio-lebel-box">
                        <!-- <span class="radio-inner">
                            <span class="radio-fang " ></span>
                            <input  type="radio" class="radio-no" value="1">
                        </span> -->
                        <span> 1.25mmol/L</span>
                      </label>
                      )
                    </td>
                    <td width="50">
                      <label for="prescription_dialysate_formulation_3" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':prescription.dialysate_formulation_name.indexOf('高钙')>-1?true:false}"></span>
                                                        <input vt-model="prescription.dialysate_formulation_name"
                                                               id="prescription_dialysate_formulation_3"
                                                               name="PredialysisEvaluation_catheter" type="radio"
                                                               class="radio-no" value="高钙">
                                                    </span>
                        <span> 高钙</span>
                      </label>
                    </td>
                    <td width="100">
                      ( 1.75mmol/L )
                    </td>

                    <td width="50">
                      <label for="prescription_dialysate_formulation_4" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':prescription.dialysate_formulation_name.indexOf('低钠')>-1?true:false}"></span>
                                                        <input vt-model="prescription.dialysate_formulation_name"
                                                               id="prescription_dialysate_formulation_4"
                                                               name="PredialysisEvaluation_catheter" type="radio"
                                                               class="radio-no" value="低钠">
                                                    </span>
                        <span> 低钠</span>
                      </label>
                    </td>
                    <td width="110">
                      (
                      <label class="radio-lebel-box">
                        <!-- <span class="radio-inner">
                            <span class="radio-fang " ></span>
                            <input  type="radio" class="radio-no" value="1">
                        </span> -->
                        <span> 135mmol/L</span>
                      </label>
                      )
                    </td>
                    <td width="50">
                      <label for="prescription_dialysate_formulation_5" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':prescription.dialysate_formulation_name.indexOf('高钠')>-1?true:false}"></span>
                                                        <input vt-model="prescription.dialysate_formulation_name"
                                                               id="prescription_dialysate_formulation_5"
                                                               name="PredialysisEvaluation_catheter" type="radio"
                                                               class="radio-no" value="高钠">
                                                    </span>
                        <span> 高钠</span>
                      </label>
                    </td>
                    <td width="100">
                      ( 145mmol/L )
                    </td>
                    <td></td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="55">置换量:</td>
                    <td width="40">
                      <div class="under-line">&nbsp;{{prescription.replacement_total}}</div>
                    </td>
                    <td width="10">L</td>
                    <td width="10"></td>
                    <td width="70">治疗方式:</td>
                    <td width="50">
                      <label for="prescription_mode_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':prescription.mode_id==1?true:false}"></span>
                                                        <input vt-model="prescription.mode_id" id="prescription_mode_1"
                                                               name="prescription_mode" type="radio" class="radio-no"
                                                               value="1">
                                                    </span>
                        <span> HD</span>
                      </label>
                    </td>
                    <td width="50">
                      <label for="prescription_mode_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':prescription.mode_id==2?true:false}"></span>
                                                        <input vt-model="prescription.mode_id" id="prescription_mode_2"
                                                               name="prescription_mode" type="radio" class="radio-no"
                                                               value="2">
                                                    </span>
                        <span> HDF</span>
                      </label>
                    </td>
                    <td width="50">
                      <label for="prescription_mode_5" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':prescription.mode_id==5?true:false}"></span>
                                                        <input vt-model="prescription.mode_id" id="prescription_mode_5"
                                                               name="prescription_mode" type="radio" class="radio-no"
                                                               value="5">
                                                    </span>
                        <span> HF</span>
                      </label>
                    </td>
                    <td width="50">
                      <label for="prescription_mode_4" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':prescription.mode_id==4?true:false}"></span>
                                                        <input vt-model="prescription.mode_id" id="prescription_mode_4"
                                                               name="prescription_mode" type="radio" class="radio-no"
                                                               value="4">
                                                    </span>
                        <span> HP</span>
                      </label>
                    </td>
                    <td width="80">
                      <label for="prescription_mode_3" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':prescription.mode_id==3?true:false}"></span>
                                                        <input vt-model="prescription.mode_id" id="prescription_mode_3"
                                                               name="prescription_mode" type="radio" class="radio-no"
                                                               value="3">
                                                    </span>
                        <span> HD+HP</span>
                      </label>
                    </td>

                    <td width="35">其他</td>
                    <td width="100">
                      <div class="under-line">&nbsp;
                        <span v-if="prescription.mode_id>5">{{prescription.mode}}</span>
                      </div>
                    </td>

                    <td width="140">透析器/灌流器型号:</td>
                    <td width="">
                      <div class="under-line">&nbsp;{{prescription.dialyzer_perfusion_apparatus}}</div>
                    </td>

                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="70">透析机号:</td>
                    <td width="100">
                      <div class="under-line">{{getNumber()}}</div>
                    </td>
                    <td width=""></td>

                    <td width="70">医生签名:</td>
                    <td width="100">
                      <div class="under-line">

                        <span v-if="advices.length == 0"></span>
                        <span v-else-if="setAdminUserES(advices[0][0].advice_doctor) == ''">{{getAdminUser(advices[0][0].advice_doctor)}}</span>
                        <img class="es-img" :src="setAdminUserES(advices[0][0].advice_doctor)"
                             alt="" srcset="" v-else>


                        <!--<span v-if="setAdminUserES(advices[0][0].advice_doctor) == ''">{{getAdminUser(advices[0][0].advice_doctor)}}</span>-->
                        <!--<img class="es-img" :src="setAdminUserES(advices[0][0].advice_doctor)"-->
                        <!--alt="" srcset="" v-else>-->


                        <!--<span v-if="setAdminUserES(advice[0].advice_doctor) == ''">{{getAdminUser(advice[0].advice_doctor)}}</span>-->
                        <!--<img class="es-img" :src="setAdminUserES(advice[0].advice_doctor)"-->
                        <!--alt="" srcset="" v-else>-->


                        <!-- {{getXuserName(prescription.prescription_doctor)}} -->
                      </div>
                    </td>
                    <td width="70">上机护士:</td>
                    <td width="100">
                      <div class="under-line">
                        <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
                        <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)"
                             alt="" srcset="" v-else>
                      </div>
                    </td>
                  </tr>
                  </tbody>
                </table>
              </td>
            </tr>
            </tbody>
          </table>


          <table class="print-table" border="1">
            <tbody>
            <tr>
              <td :rowspan="jilurow" width="30px" class="title-box">透析中记录</td>

              <td width="100">时间</td>
              <td width="80">血压<br/>mmHg</td>
              <td width="40">脉率<br/>次/分</td>
              <td width="40">呼吸<br/>次/分</td>
              <td width="60">血流量<br/>ml/min</td>
              <td width="60">超滤量<br/>L</td>
              <td width="60">置换量<br/>L</td>
              <td width="60">静脉压<br/>mmHg</td>
              <td width="60">跨膜压<br/>mmHg</td>
              <!-- <td width="60">钠浓度<br/>mmol/L</td>
              <td width="80">透析液温度<br/>℃</td>
              <td width="60">置换率<br/>ml/min</td> -->

              <td width="">备 注</td>
            </tr>


            <tr v-for="monitor in monitors" :key="monitor.id">
              <td>&nbsp;
                <!-- <template>
                    <span v-if="monitor.monitoring_date">
                        {{monitor.monitoring_date | parseTime('{y}-{m}-{d}')}}
                    </span>
                </template>     -->
                {{getTime(monitor.operate_time,'{h}:{i}')}}
              </td>
              <td>&nbsp;{{monitor.systolic_blood_pressure}} / {{monitor.diastolic_blood_pressure}}</td>
              <td>&nbsp;{{monitor.pulse_frequency}}</td>
              <td>&nbsp;{{monitor.breathing_rate}}</td>
              <td>&nbsp;{{monitor.blood_flow_volume}}</td>
              <td>&nbsp;{{monitor.ultrafiltration_volume}}</td>
              <td>&nbsp;{{monitor.displacement_quantity}}</td>
              <td>&nbsp;{{monitor.venous_pressure}}</td>
              <td>&nbsp;{{monitor.transmembrane_pressure}}</td>
              <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
              <td>&nbsp;{{monitor.dialysate_temperature}}</td>
              <td>&nbsp;{{monitor.replacement_rate}}</td> -->
              <td>&nbsp;{{monitor.symptom}}
                &nbsp;{{monitor.dispose}}
                &nbsp;{{monitor.result}}
              </td>
            </tr>
            </tbody>
          </table>


          <table class="print-table" border="1">
            <tbody>
            <tr>
              <td class="title-box" width="30px">透后评估</td>
              <td>
                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="90">实际治疗时间</td>
                    <td width="40">
                      <div class="under-line">&nbsp;{{afterdialysis.actual_treatment_hour}}</div>
                    </td>
                    <td width="10">h</td>
                    <td width="40">
                      <div class="under-line">&nbsp;{{afterdialysis.actual_treatment_minute}}</div>
                    </td>
                    <td width="35">min</td>
                    <td></td>
                    <td width="75">实际超滤量</td>
                    <td width="70">
                      <div class="under-line">&nbsp;{{afterdialysis.actual_ultrafiltration}}</div>
                    </td>
                    <td width="20">ml</td>
                    <td></td>
                    <td width="60">透后体重</td>
                    <td width="50">
                      <div class="under-line">&nbsp;{{afterdialysis.weight_after}}</div>
                    </td>
                    <td width="20">Kg</td>
                    <td></td>
                    <td width="95">透析器凝血:</td>
                    <td width="220">
                      <label for="txqnx_0" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':afterdialysis.txqnx==0?true:false}"></span>
                                                        <input vt-model="afterdialysis.txqnx" id="txqnx_0" name="txqnx"
                                                               type="radio" class="radio-no" value="0">
                                                    </span>
                        <span> 0 级</span>
                      </label>
                      <label for="txqnx_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':afterdialysis.txqnx==1?true:false}"></span>
                                                        <input vt-model="afterdialysis.txqnx" id="txqnx_1" name="txqnx"
                                                               type="radio" class="radio-no" value="1">
                                                    </span>
                        <span> Ⅰ 级</span>
                      </label>
                      <label for="txqnx_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':afterdialysis.txqnx==2?true:false}"></span>
                                                        <input vt-model="afterdialysis.txqnx" id="txqnx_2" name="txqnx"
                                                               type="radio" class="radio-no" value="2">
                                                    </span>
                        <span> Ⅱ 级</span>
                      </label>
                      <label for="txqnx_3" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang "
                                                              :class="{'is-checked-radio':afterdialysis.txqnx==3?true:false}"></span>
                                                        <input vt-model="afterdialysis.txqnx" id="txqnx_3" name="txqnx"
                                                               type="radio" class="radio-no" value="3">
                                                    </span>
                        <span> Ⅲ 级</span>
                      </label>
                    </td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="130">拔针后穿刺点渗血:</td>
                    <td width="80">
                      <label for="afterdialysis_puncture_point_oozing_blood_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.puncture_point_oozing_blood==1?true:false}"></span>
                                                        <input vt-model="afterdialysis.puncture_point_oozing_blood"
                                                               id="afterdialysis_puncture_point_oozing_blood_1"
                                                               name="afterdialysis_puncture_point_oozing_blood"
                                                               type="radio" class="radio-no" value="1">
                                                    </span>
                        <span> 有</span>
                      </label>


                      <label for="afterdialysis_puncture_point_oozing_blood_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.puncture_point_oozing_blood==2?true:false}"></span>
                                                        <input vt-model="afterdialysis.puncture_point_oozing_blood"
                                                               id="afterdialysis_puncture_point_oozing_blood_2"
                                                               name="afterdialysis_puncture_point_oozing_blood"
                                                               type="radio" class="radio-no" value="2">
                                                    </span>
                        <span> 无</span>
                      </label>
                    </td>
                    <td width="10"></td>
                    <td width="85">穿刺处血肿:</td>
                    <td width="80">
                      <label for="afterdialysis_puncture_point_haematoma_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.puncture_point_haematoma==1?true:false}"></span>
                                                        <input vt-model="afterdialysis.puncture_point_haematoma"
                                                               id="afterdialysis_puncture_point_haematoma_1"
                                                               name="afterdialysis_puncture_point_haematoma"
                                                               type="radio" class="radio-no" value="1">
                                                    </span>
                        <span> 有</span>
                      </label>

                      <label for="afterdialysis_puncture_point_haematoma_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.puncture_point_haematoma==2?true:false}"></span>
                                                        <input vt-model="afterdialysis.puncture_point_haematoma"
                                                               id="afterdialysis_puncture_point_haematoma_2"
                                                               name="afterdialysis_puncture_point_haematoma"
                                                               type="radio" class="radio-no" value="2">
                                                    </span>
                        <span> 无</span>
                      </label>
                    </td>

                    <td width="10"></td>
                    <td width="105">压迫后内瘘震颤:</td>
                    <td width="140">
                      <label for="afterdialysis_internal_fistula_tremor_ac_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.internal_fistula_tremor_ac==1?true:false}"></span>
                                                        <input vt-model="afterdialysis.internal_fistula_tremor_ac"
                                                               id="afterdialysis_internal_fistula_tremor_ac_1"
                                                               name="afterdialysis_internal_fistula_tremor_ac"
                                                               type="radio" class="radio-no" value="1">
                                                    </span>
                        <span> 存在</span>
                      </label>


                      <label for="afterdialysis_internal_fistula_tremor_ac_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.internal_fistula_tremor_ac==2?true:false}"></span>
                                                        <input vt-model="afterdialysis.internal_fistula_tremor_ac"
                                                               id="afterdialysis_internal_fistula_tremor_ac_2"
                                                               name="afterdialysis_internal_fistula_tremor_ac"
                                                               type="radio" class="radio-no" value="2">
                                                    </span>
                        <span> 减弱</span>
                      </label>
                      <label for="afterdialysis_internal_fistula_tremor_ac_3" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.internal_fistula_tremor_ac==3?true:false}"></span>
                                                        <input vt-model="afterdialysis.internal_fistula_tremor_ac"
                                                               id="afterdialysis_internal_fistula_tremor_ac_3"
                                                               name="afterdialysis_internal_fistula_tremor_ac"
                                                               type="radio" class="radio-no" value="3">
                                                    </span>
                        <span> 无</span>
                      </label>
                    </td>
                    <td width="">
                    </td>
                  </tr>
                  </tbody>
                </table>


                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="55">并发症:</td>
                    <td width="600">
                      <label for="afterdialysis_complications_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('低血压')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_1"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="低血压">
                                                    </span>
                        <span> 低血压</span>
                      </label>
                      <label for="afterdialysis_complications_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('高血压')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_2"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="高血压">
                                                    </span>
                        <span> 高血压</span>
                      </label>
                      <label for="afterdialysis_complications_3" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('心律失常')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_3"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="心律失常">
                                                    </span>
                        <span> 心律失常</span>
                      </label>
                      <label for="afterdialysis_complications_4" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('头晕')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_4"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="头晕">
                                                    </span>
                        <span> 头晕</span>
                      </label>
                      <label for="afterdialysis_complications_5" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('头痛')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_5"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="头痛">
                                                    </span>
                        <span> 头痛</span>
                      </label>
                      <label for="afterdialysis_complications_6" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('呕吐')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_6"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="呕吐">
                                                    </span>
                        <span> 呕吐</span>
                      </label>
                      <label for="afterdialysis_complications_7" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('抽搐')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_7"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="抽搐">
                                                    </span>
                        <span> 抽搐</span>
                      </label>
                      <label for="afterdialysis_complications_8" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('出血')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_8"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="出血">
                                                    </span>
                        <span> 出血</span>
                      </label>
                      <label for="afterdialysis_complications_9" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('心衰')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_9"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="心衰">
                                                    </span>
                        <span> 心衰</span>
                      </label>
                      <label for="afterdialysis_complications_10" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.complications_index.indexOf('腹痛')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.complications_index"
                                                               id="PredialysisEvaluation_complications_10"
                                                               name="PredialysisEvaluation_complications" type="radio"
                                                               class="radio-no" value="腹痛">
                                                    </span>
                        <span> 腹痛</span>
                      </label>
                    </td>
                    <td></td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="70">其他记录:</td>
                    <td width="">
                      <div class="under-line">&nbsp;{{afterdialysis.complications_other}}</div>
                    </td>
                  </tr>
                  </tbody>
                </table>
                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="">
                      <div class="under-line">&nbsp;</div>
                    </td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="70">患者去向:</td>
                    <td width="160">
                      <label for="afterdialysis_patient_gose_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.patient_gose==1?true:false}"></span>
                                                        <input vt-model="afterdialysis.patient_gose"
                                                               id="afterdialysis.patient_gose_1"
                                                               name="afterdialysis.patient_gose" type="radio"
                                                               class="radio-no" value="1">
                                                    </span>
                        <span> 离院</span>
                      </label>
                      <label for="afterdialysis_patient_gose_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.patient_gose==2?true:false}"></span>
                                                        <input vt-model="afterdialysis.patient_gose"
                                                               id="afterdialysis.patient_gose_2"
                                                               name="afterdialysis.patient_gose" type="radio"
                                                               class="radio-no" value="2">
                                                    </span>
                        <span> 留观</span>
                      </label>
                      <label for="afterdialysis_patient_gose_3" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.patient_gose==3?true:false}"></span>
                                                        <input vt-model="afterdialysis.patient_gose"
                                                               id="afterdialysis.patient_gose_3"
                                                               name="afterdialysis.patient_gose" type="radio"
                                                               class="radio-no" value="3">
                                                    </span>
                        <span> 住院</span>
                      </label>
                    </td>
                    <td width="10">(</td>
                    <td width="35">科室</td>
                    <td width="">
                      <div class="under-line">&nbsp;
                        <span v-if="afterdialysis.patient_gose==3">{{afterdialysis.inpatient_department}}</span>
                      </div>
                    </td>
                    <td width="220">交待病房护士/患者/陪人观察内容:</td>
                    <td width="160">
                      <label for="afterdialysis_observation_content_1" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('意识状态')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.observation_content"
                                                               id="afterdialysis_observation_content_1"
                                                               name="afterdialysis_observation_content" type="radio"
                                                               class="radio-no" value="1">
                                                    </span>
                        <span> 意识状态</span>
                      </label>
                      <label for="afterdialysis_observation_content_2" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('生命体征')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.observation_content"
                                                               id="afterdialysis_observation_content_2"
                                                               name="afterdialysis_observation_content" type="radio"
                                                               class="radio-no" value="2">
                                                    </span>
                        <span> 生命体征</span>
                      </label>
                    </td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="530">
                      <label for="afterdialysis_observation_content_3" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('内瘘搏动/渗血')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.observation_content"
                                                               id="afterdialysis_observation_content_3"
                                                               name="afterdialysis_observation_content" type="radio"
                                                               class="radio-no" value="3">
                                                    </span>
                        <span> 内瘘搏动/渗血</span>
                      </label>
                      <label for="afterdialysis_observation_content_4" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('导管固定/穿刺口渗血')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.observation_content"
                                                               id="afterdialysis_observation_content_4"
                                                               name="afterdialysis_observation_content" type="radio"
                                                               class="radio-no" value="4">
                                                    </span>
                        <span> 导管固定/穿刺口渗血</span>
                      </label>
                      <label for="afterdialysis_observation_content_5" class="radio-lebel-box">
                                                    <span class="radio-inner">
                                                        <span class="radio-fang"
                                                              :class="{'is-checked-radio':afterdialysis.patient_gose==3&&afterdialysis.observation_content.indexOf('动静脉直接穿刺口渗血/肢端循环情况')>-1?true:false}"></span>
                                                        <input vt-model="afterdialysis.observation_content"
                                                               id="afterdialysis_observation_content_5"
                                                               name="afterdialysis_observation_content" type="radio"
                                                               class="radio-no" value="5">
                                                    </span>
                        <span> 动静脉直接穿刺口渗血/肢端循环情况</span>
                      </label>
                    </td>
                    <td width="40">其他:</td>
                    <td width="">
                      <div class="under-line">&nbsp;
                        <span v-if="afterdialysis.patient_gose==3">{{afterdialysis.observation_content_other}}
                                                        </span>
                      </div>
                    </td>
                  </tr>
                  </tbody>
                </table>

                <table class="table-box">
                  <tbody>
                  <tr>
                    <td width="150">当班责任（核对）护士:</td>
                    <td width="100">
                      <div class="under-line">
                        <!--<span v-if="afterdialysis.creater==0">&nbsp;</span>-->
                        <!--<img class="es-img" :src="setAdminUserES(afterdialysis.creater)" alt="" srcset="" v-else>-->


                        <span v-if="setAdminUserES(afterdialysis.creater) == ''">{{getAdminUser(afterdialysis.creater)}}</span>
                        <img class="es-img" :src="setAdminUserES(afterdialysis.creater)"
                             alt="" srcset="" v-else>



                      </div>
                    </td>
                    <td width=""></td>
                    <td width="70">下机护士:</td>
                    <td width="100">
                      <div class="under-line">


                        <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
                        <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)"
                             alt="" srcset="" v-else>

                      </div>
                    </td>
                  </tr>
                  </tbody>
                </table>
              </td>
            </tr>
            </tbody>
          </table>

          <table class="print-table-no" border="1" count="0">
            <tbody>
            <tr>
              <td width="60px">时间</td>
              <td width="100px">医嘱内容</td>
              <td width="80px">医生签名</td>
              <td width="80px">执行护士</td>
              <td width="80px">执行时间</td>
              <td width="75px">核对护士</td>
              <td width="10px"></td>
              <td width="60px">时间</td>
              <td width="100px">医嘱内容</td>
              <td width="80px">医生签名</td>
              <td width="80px">执行护士</td>
              <td width="80px">执行时间</td>
              <td width="75px">核对护士</td>
            </tr>
            <tr v-for="(advice, index) in advices" :key="index">
              <td height="10px">
                                <span v-if="advice[0].start_time">
                                  {{getTime(advice[0].start_time,'{h}:{i}')}}
                                </span>
                <span v-else>&nbsp;<br/>&nbsp;</span>
              </td>
              <td class="advice-name">
                <span v-if="advice[0].parent_id>0">└</span>
                <span>{{advice[0].advice_name }}</span>
                <span>{{advice[0].advice_desc}}</span>
                <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span>
                <span v-if="advice[0].prescribing_number">* {{advice[0].prescribing_number}}{{advice[0].prescribing_number_unit}}</span>
                <span v-if="advice[0].single_dose">单次用量 {{advice[0].single_dose}}{{advice[0].single_dose_unit}}</span>
                <span>{{advice[0].delivery_way}}</span>
                <span>{{advice[0].execution_frequency}}</span>
                <div v-for="(child, childindex) in advice[0].children" :key="childindex" class="advice-children">
                  <div>▲</div>
                  <div>
                    <span>{{child.advice_name }}</span>
                    <span>{{child.advice_desc}}</span>
                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
                    <span
                      v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
                    <span v-if="child.single_dose">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
                  </div>
                </div>

              </td>

              <td>
                <!--<img class="es-img" :src="setAdminUserES(advice[0].advice_doctor)" alt="" srcset=""-->
                <!--v-show="advice[0].advice_doctor>0">-->
                <!---->
                <span
                  v-if="setAdminUserES(advice[0].advice_doctor) == ''">{{getAdminUser(advice[0].advice_doctor)}}</span>
                <img class="es-img" :src="setAdminUserES(advice[0].advice_doctor)"
                     alt="" srcset="" v-else>
              </td>
              <td>
                <!--<img class="es-img" :src="setAdminUserES(advice[0].execution_staff)" alt="" srcset=""-->
                <!--v-show="advice[0].execution_staff>0">-->

                <span
                  v-if="setAdminUserES(advice[0].execution_staff) == ''">{{getAdminUser(advice[0].execution_staff)}}</span>
                <img class="es-img" :src="setAdminUserES(advice[0].execution_staff)"
                     alt="" srcset="" v-else>

              </td>
              <td><span v-if="advice[0].execution_time">
                <!--{{advice[0].execution_time| parseTime('{y}-{m}-{d} {h}:{i}:{s}')}}-->
                  {{getTime(advice[0].execution_time,'{h}:{i}')}}
                </span>
              </td>
              <td>
                <!--<img class="es-img" :src="setAdminUserES(advice[0].checker)" alt="" srcset=""-->
                <!--v-show="advice[0].checker>0">-->

                <span v-if="setAdminUserES(advice[0].checker) == ''">{{getAdminUser(advice[0].checker)}}</span>
                <img class="es-img" :src="setAdminUserES(advice[0].checker)"
                     alt="" srcset="" v-else>

              </td>
              <td></td>
              <td v-if="advice[1] != undefined">
                                <span v-if="advice[1].start_time">
                                    <!-- {{advice[1].start_time | parseTime('{y}-{m}-{d} {h}:{i}')}} -->
                                  {{getTime(advice[1].start_time,'{h}:{i}')}}
                                </span>
              </td>
              <td v-else>
                <span></span>
              </td>
              <td class="advice-name" v-if="advice[1] != undefined">
                <span>{{advice[1].advice_name }}</span>
                <span>{{advice[1].advice_desc}}</span>
                <span v-if="advice[1].drug_spec">{{advice[1].drug_spec}}{{advice[1].drug_spec_unit}}</span>
                <span v-if="advice[1].prescribing_number">* {{advice[1].prescribing_number}}{{advice[1].prescribing_number_unit}}</span>
                <span v-if="advice[1].single_dose">单次用量 {{advice[1].single_dose}}{{advice[1].single_dose_unit}}</span>
                <span>{{advice[1].delivery_way}}</span>
                <span>{{advice[1].execution_frequency}}</span>

                <div v-for="(child, childindex) in advice[1].children" :key="childindex" class="advice-children">
                  <div>▲</div>
                  <div>
                    <span>{{child.advice_name }}</span>
                    <span>{{child.advice_desc}}</span>
                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
                    <span
                      v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
                    <span v-if="child.single_dose">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
                  </div>
                </div>
              </td>
              <td v-else>
                <span></span>
              </td>
              <td v-if="advice[1] != undefined">
                <!--<img class="es-img" :src="setAdminUserES(advice[1].advice_doctor)" alt="" srcset=""-->
                <!--v-show="advice[1].advice_doctor>0"></td>-->

                <span
                  v-if="setAdminUserES(advice[1].advice_doctor) == ''">{{getAdminUser(advice[1].advice_doctor)}}</span>
                <img class="es-img" :src="setAdminUserES(advice[1].advice_doctor)"
                     alt="" srcset="" v-else>

              </td>

              <td v-else>
                <span></span>
              </td>

              <td v-if="advice[1] != undefined">
                <!--<img class="es-img" :src="setAdminUserES(advice[1].execution_staff)" alt="" srcset=""-->
                <!--v-show="advice[1].execution_staff>0">-->

                <span
                  v-if="setAdminUserES(advice[1].execution_staff) == ''">{{getAdminUser(advice[1].execution_staff)}}</span>
                <img class="es-img" :src="setAdminUserES(advice[1].execution_staff)"
                     alt="" srcset="" v-else>

              </td>
              <!--<td><span v-if="advice[1].execution_time">{{advice[1].execution_time| parseTime('{y}-{m}-{d} {h}:{i}:{s}')}}</span>-->
              <!--</td>-->
              <td v-else>
                <span></span>
              </td>


              <td v-if="advice[1] != undefined">
                <span v-if="advice[1].execution_time">{{getTime(advice[1].execution_time,'{h}:{i}')}}</span>
              </td>
              <td v-else>
                <span></span>
              </td>


              <td v-if="advice[1] != undefined">
                <!--<img class="es-img" :src="setAdminUserES(advice[1].checker)" alt="" srcset=""-->
                <!--v-show="advice[1].checker>0">-->
                <!--<span v-show="advice[1].checker>0">setAdminUserES(advice[1].checker)</span>-->
                <span v-if="setAdminUserES(advice[1].checker) == ''">{{getAdminUser(advice[1].checker)}}</span>
                <img class="es-img" :src="setAdminUserES(advice[1].checker)"
                     alt="" srcset="" v-else>

              </td>
              <td v-else>
                <span></span>
              </td>
            </tr>
            </tbody>
          </table>


          <table class="table-box" style="margin-top: 10px;">
            <tbody>
            <tr>
              <td width="" style="font-size:13px">
                注：透析器凝血评价标准：“0 级” 无凝血或数条纤维束凝血，“Ⅰ 级” 少于10%纤维凝血，“Ⅱ 级” 少于50%纤维凝血，“Ⅲ 级” 大于50%纤维凝血。
              </td>
            </tr>
            </tbody>
          </table>
        </div>


      </div>

    </div>
  </div>
</template>


<script>
import { getPrintDialysisRecord } from "@/api/dialysis";
import { getDataConfig } from "@/utils/data";
import SideBar from "@/pages/layout/SideBar";
import { jsGetAge, uParseTime } from "@/utils/tools";
import { fetchAllAdminUsers } from "@/api/doctor";
import LabelBox from "./printItem/LabelBox";

export default {
  name: "Main",
  components: {
    LabelBox
  },
  data() {
    return {
      isShowImg: true,
      isShow: true,
      operators: [],
      dialysisOrder: {
        DeviceNumber: []
      },
      operatorMaps: {},
      complications: [
        "低血压",
        "高血压",
        "心律失常",
        "头晕",
        "头痛",
        "呕吐",
        "抽搐",
        "出血",
        "心衰",
        "腹痛"
      ],
      jilurow: 10,
      loading: true,
      orgname: "",
      patientInfo_gender_1: false,
      patientInfo_gender_2: false,
      patientInfo_source_2: false,
      patientInfo_source_1: false,
      modeOptions: {},
      replacementWays: [],
      perfusionApparatus: [],
      anticoagulantsConfit: {},
      bloodAccessParOpera: {},
      dialysateFormulationOptions: {},

      queryParams: {
        xtdate: "",
        xtno: ""
      },
      patientInfo: {
        birth: "",
        age: "",
        DialysisSchedule: {
          device_number: { number: "" },
          device_zone: { name: "" }
        },
        gender: 0
      },
      predialysis: {
        internal_fistula: "",
        internal_fistula_skin: "",
        catheter: "",
        blood_access_part_opera_name: ""
      },
      afterdialysis: {
        complications_index: ""
      },
      prescription: {
        dialysate_formulation_name: "",
        device: {}
      },
      advices: [],
      users: [],
      monitors: [],
      summary: {},
      adminUser: [],
      receiverTreatmentAccess: {},

      AlPanel: {
        id: 0,
        name: "",
        type: 1,
        shouji: 2,
        weichi: 2,
        zongliang: 2,
        gaimingcheng: -1,
        gaijiliang: -1,
        shouji_unit: "mg",
        weichi_unit: "mg/h",
        zongliang_unit: "mg",
        gaimingcheng_unit: "",
        gaijiliang_unit: ""
      }
    };
  },
  methods: {
    getUser() {
      fetchAllAdminUsers().then(response => {
        if (response.data.state == 1) {
          this.adminUser = response.data.data.users;
          console.log(this.adminUser);
          this.loading = false;
        } else {
          this.loading = false;
          this.$message.error("请求数据失败");
          return false;
        }
      });
    },
    getTime(value, temp) {
      if (value != undefined) {
        return uParseTime(value, temp);
      }
      return "";
    },
    printThisPage() {
      var xtdate = this.$route.query.xtdate;
      this.$router.push(
        "/Prints?xtdate=" + xtdate + "&xtno=" + this.$route.query.xtno
      );
    },
    backAction() {
      this.$router.back(-1);
    },
    getXuserName(id) {
      if (id <= 0) {
        return "";
      }
      var name = "";
      if (this.users == null || typeof this.users.length == "undefined") {
        return name;
      }
      var leng = this.users.length;
      if (leng == 0) {
        return name;
      }
      for (let index = 0; index < leng; index++) {
        if (this.users[index].id == id) {
          name = this.users[index].name;
          break;
        }
      }
      return name;
    },
    setAdminUserES(id) {
      console.log(id);
      if (id == 0) {
        return "";
      }
      if (id == undefined) {
        return "";
      }
      if (id in this.operatorMaps) {
        return this.operatorMaps[id].url;
      }
      return "";
    },
    modeName(mode_id) {
      return typeof this.modeOptions[mode_id] != "undefined" &&
        typeof this.modeOptions[mode_id].name != "undefined"
        ? this.modeOptions[mode_id].name
        : "";
    },
    getDialysisRecord() {
      getPrintDialysisRecord(this.queryParams).then(response => {
        if (response.data.state == 1) {
          this.adminUser = response.data.data.users;
          this.users = response.data.data.users;
          this.patientInfo = response.data.data.patientInfo;
          this.patientInfo.birth = uParseTime(
            this.patientInfo.birthday,
            "{y}-{m}-{d}"
          );
          this.patientInfo.age = jsGetAge(this.patientInfo.birth, "-");
          if (response.data.data.patientInfo.first_dialysis_date != 0) {
            this.patientInfo.first_dialysis_date = uParseTime(
              response.data.data.patientInfo.first_dialysis_date,
              "{y}-{m}-{d}"
            );
          } else {
            this.patientInfo.first_dialysis_date = "";
          }

          this.predialysis = response.data.data.PredialysisEvaluation;
          this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
            this.predialysis.blood_access_part_opera_id
          );
          this.afterdialysis = response.data.data.AssessmentAfterDislysis;
          this.operators = response.data.data.operators;
          this.dialysisOrder =
            response.data.data.dialysisOrder === null
              ? null
              : response.data.data.dialysisOrder;

          if (this.operators.length > 0) {
            var operatorsLen = this.operators.length;
            for (var index = 0; index < operatorsLen; index++) {
              this.$set(
                this.operatorMaps,
                this.operators[index].creator,
                this.operators[index]
              );
            }
          }

          this.afterdialysis.txqnx = -1;
          if (this.afterdialysis.cruor.indexOf("0度") > -1) {
            this.afterdialysis.txqnx = 0;
          }
          if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
            this.afterdialysis.txqnx = 1;
          }
          if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
            this.afterdialysis.txqnx = 2;
          }
          if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
            this.afterdialysis.txqnx = 3;
          }

          this.afterdialysis.complications = this.afterdialysis.complication.split(
            ","
          );
          this.afterdialysis.complications_other = [];
          this.afterdialysis.complications_index = [];
          var acllen = this.afterdialysis.complications.length;
          for (let index = 0; index < acllen; index++) {
            if (
              this.complications.indexOf(
                this.afterdialysis.complications[index]
              ) >= 0
            ) {
              this.afterdialysis.complications_index.push(
                this.afterdialysis.complications[index]
              );
            } else if (
              this.complications.indexOf(
                this.afterdialysis.complications[index]
              ) < 0 &&
              this.afterdialysis.complications_other.indexOf(
                this.afterdialysis.complications[index]
              ) < 0
            ) {
              this.afterdialysis.complications_other.push(
                this.afterdialysis.complications[index]
              );
            }
          }
          this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
            ","
          );

          this.prescription = response.data.data.dialysisPrescription;
          this.receiverTreatmentAccess =
            response.data.data.receiverTreatmentAccess;

          this.prescription.mode = this.modeName(this.prescription.mode_id);
          var rwLen = this.replacementWays.length;
          this.prescription.replacement = "";
          for (let index = 0; index < rwLen; index++) {
            if (
              this.replacementWays[index].id ==
              this.prescription.replacement_way
            ) {
              this.prescription.replacement = this.replacementWays[index].name;
              break;
            }
          }

          this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
            this.prescription.dialysate_formulation
          );

          var paLen = this.perfusionApparatus.length;
          this.prescription.perfusion_apparatus_name = "";
          for (let index = 0; index < paLen; index++) {
            if (
              this.perfusionApparatus[index].id ==
              this.prescription.perfusion_apparatus
            ) {
              this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
                index
              ].name;
              break;
            }
          }

          var acLen = this.anticoagulantsConfit.length;
          var thisALID = this.prescription.anticoagulant;
          this.prescription.anticoagulant_name = "";

          if (
            typeof this.anticoagulantsConfit[thisALID] != "undefined" &&
            this.anticoagulantsConfit[thisALID] != null
          ) {
            this.prescription.anticoagulant_name = this.anticoagulantsConfit[
              thisALID
            ].name;
            this.AlPanel = this.anticoagulantsConfit[thisALID];
          }

          this.advices = response.data.data.advices;
          this.monitors = response.data.data.monitors;
          this.summary = response.data.data.summary;

          if (this.monitors.length < 8) {
            var nl = 8 - this.monitors.length;
            for (let index = 0; index < nl; index++) {
              this.monitors.push([]);
            }
          }
          this.jilurow = this.monitors.length + 1;

          var childMap = {};
          for (const index in this.advices) {
            if (this.advices[index].parent_id == 0) {
              continue;
            }
            if (!(this.advices[index].parent_id in childMap)) {
              childMap[this.advices[index].parent_id] = [];
            }
            childMap[this.advices[index].parent_id].push(this.advices[index]);
          }

          var advices = [];
          for (const index in this.advices) {
            if (this.advices[index].parent_id > 0) {
              continue;
            }
            var item = this.advices[index];
            if (item.id in childMap) {
              item.children = childMap[item.id];
            } else {
              item.children = [];
            }
            advices.push(item);
          }

          var leftAdvice = [];
          var rightAdvice = [];
          var adlen = advices.length;

          var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
          for (var i = 0; i < halfLen; i++) {
            leftAdvice.push(advices[i]);
            rightAdvice.push(advices[i + halfLen]);
          }

          if (halfLen < 5) {
            var nl = 5 - leftAdvice.length;
            for (let index = 0; index < nl; index++) {
              leftAdvice.push([]);
            }
            var nl = 5 - rightAdvice.length;
            for (let index = 0; index < nl; index++) {
              rightAdvice.push([]);
            }
          }

          this.advices = [];
          for (var i = 0; i < halfLen; i++) {
            var item = [];
            item.push(leftAdvice[i]);
            item.push(rightAdvice[i]);
            this.advices.push(item);
          }
        } else {
          this.$message.error("请求数据失败");
          return false;
        }

        console.log(this.advices);
      });
    },

    bloodAccessParOperaName(id) {
      if (id in this.bloodAccessParOpera) {
        return this.bloodAccessParOpera[id].name;
      }
      return "";
    },
    dialysateFormulationName(id) {
      if (id in this.dialysateFormulationOptions) {
        return this.dialysateFormulationOptions[id].name;
      }
      return "";
    },
    getNumber() {
      if (this.dialysisOrder != null) {
        return (
          this.patientInfo.DialysisSchedule.device_zone.name +
          this.dialysisOrder.DeviceNumber.number
        );
      } else {
        return this.patientInfo.DialysisSchedule.device_zone.name;
      }
    },
    getAdminUser(id) {
      console.log(id);
      if (id == 0) {
        return "";
      }
      if (id == undefined) {
        return "";
      }
      for (let i = 0; i < this.adminUser.length; i++) {
        if (this.adminUser[i].id == id) {
          return this.adminUser[i].name;
        }
      }
    },
    printlog(val) {
      console.log(typeof val + "Second");
    }
  },
  watch: {
    "patientInfo.gender": function() {
      if (this.patientInfo.gender == 1) {
        this.patientInfo_gender_1 = true;
        this.patientInfo_gender_2 = false;
      } else if (this.patientInfo.gender == 2) {
        this.patientInfo_gender_2 = true;
        this.patientInfo_gender_1 = false;
      } else {
        this.patientInfo_gender_2 = false;
        this.patientInfo_gender_1 = false;
      }
    },

    "patientInfo.source": function() {
      if (this.patientInfo.source == 1) {
        this.patientInfo_source_1 = true;
        this.patientInfo_source_2 = false;
      } else if (this.patientInfo.source == 2) {
        this.patientInfo_source_2 = true;
        this.patientInfo_source_1 = false;
      } else {
        this.patientInfo_source_2 = false;
        this.patientInfo_source_1 = false;
      }
    }
  },
  created() {
    var xtuser = this.$store.getters.user;
    this.orgname = xtuser.org.org_name;
    // this.orgname = "遂溪方济医院";
    this.modeOptions = this.$store.getters.treatment_mode;
    this.replacementWays = this.$store.getters.replacement_ways;
    this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;

    // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')

    var bloodAccessParOpera = getDataConfig(
      "hemodialysis",
      "vascular_access_desc"
    );
    for (var key in bloodAccessParOpera) {
      this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
        bloodAccessParOpera[key];
    }

    var dialysateFormulationOptions = getDataConfig(
      "hemodialysis",
      "dialysate_formulation"
    );
    for (var key in dialysateFormulationOptions) {
      this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
        dialysateFormulationOptions[key];
    }

    const xtdate = this.$route.query && this.$route.query.xtdate;
    const xtno = this.$route.query && this.$route.query.xtno;
    if (
      typeof xtdate == "string" &&
      xtdate.length > 0 &&
      typeof xtno == "string" &&
      xtno.length > 0
    ) {
      this.queryParams.xtdate = xtdate;
      this.queryParams.xtno = xtno;
      this.getDialysisRecord();
    } else {
      this.$message.error("参数不齐");
      return false;
    }

    this.getUser();
  },
  components: {
    SideBar
  }
};
</script>

<style style="stylesheet/scss" lang="scss" scoped>
.dialysis-print-order {
  width: 960px;
  margin: 0 auto;
  .order-yy-name {
    margin:10px auto 0 auto;
    text-align: center;
    font-size: 20px;
  }
  .order-title {
    margin: auto;
    font-weight: 600;
    text-align: center;
    font-size: 22px;
    padding: 10px 20px 20px 20px;
  }
  .table-box {
    width: 100%;
    line-height: 15px;
    font-size: 14px;
    .under-line {
      border-bottom: 1px solid #999;
      width: 95%;
      text-align: center;
      margin-left: 2px;
    }
  }
  .print-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    line-height: 25px;
    font-size: 14px;
    .title-box {
      text-align: center;
      font-size: 16px;
    }
  }
  .print-table-no {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    font-size: 14px;
  }
}

.dialysis-print-order .radio-lebel-box {
  font-weight: 400;
  cursor: pointer;
}
.dialysis-print-order .radio-no {
  opacity: 0;
  outline: none;
  position: absolute;
  margin: 0;
  width: 0;
  height: 0;
  z-index: -1;
}
.dialysis-print-order .radio-inner {
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  display: inline-block;
  line-height: 1;
  position: relative;
  vertical-align: middle;
}
.dialysis-print-order .radio-fang {
  display: inline-block;
  position: relative;
  border: 1px solid #000;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  background-color: #fff;
  z-index: 1;
  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
}
.dialysis-print-order .is-checked-radio::after {
  content: "√";
  font-size: 15px;
}
.es-img {
  height: 25px;
}

html,
body {
  height: 100%;
}
.mainBox {
  height: 100%;
  font-size: 0.3rem;
  background: #fff;
  .sideColumn {
    float: left;
    width: 1.58rem;
    background: #f5f8fb;
    height: 100%;
    border-right: 1px #c1c1c1 solid;
    position: fixed;
    .column {
      // height: 100%;
      // background: #f5f8fb;
      .head {
        @include display-flex;
        @include align-items-center;
        @include flex-direction;
        @include text-align;
        @include justify-content-center;
        margin: 0.5rem 0 0.5rem 0;
        img {
          width: 100%;
          height: 100%;
          border-radius: 0.5rem;
          width: 0.7rem;
          height: 0.7rem;
        }
      }
      .sidebar {
        @include display-flex;
        @include align-items-center;
        @include flex-direction;
        @include text-align;
        padding: 0;
        li {
          // font-size:0.23rem;
          padding: 0 0 0.8rem 0;
          a {
            color: #a8b3ba;
            display: inline-block;
            padding: 0;
            margin: 0;
            p {
              font-size: 0.24rem;
              margin-top: 0.2rem;
            }
            .iconfont {
              font-size: 0.5rem;
              display: inline-block;
            }
          }
          &.active {
            a {
              color: #409eff;
            }
          }
        }
      }
    }
  }
}
.navigation {
  @include display-flex;
  @include align-items-center;
  @include text-align;
  @include box-sizing;
  @include justify-content-between;
  padding: 0.3rem 0.36rem;
  border-bottom: 1px #e5e5e5 solid;
  position: fixed;
  top: 0;
  left: 1.58rem;
  right: 0;
  z-index: 100;
  background: #fff;
  .goBack {
    // color: #6e7a87;
    cursor: pointer;
    @include display-flex;
    @include align-items-center;
    @include text-align;
    .back {
      color: $main-color;
      margin-right: 0.87rem;
      .iconfont {
        color: $main-color;
      }
    }
    .name {
      .iconfont {
        margin-left: 0.1rem;
      }
    }
  }
  .nav {
    ul {
      li {
        float: left;
        font-size: 0.3rem;
        margin: 0 0.2rem;
        height: 0.5rem;
        line-height: 0.5rem;
        width: 1rem;
        cursor: pointer;
        &.active {
          background: $main-color;
          color: #fff;
          border-radius: 30px;
        }
      }
    }
  }
  .time {
    cursor: pointer;
    .iconfont {
      margin-left: 0.1rem;
    }
  }
}

.mainContent {
  margin: 0 0 0 1.58rem;
}
</style>
