<template>
    <div id="statement-print" class="statement-print">
        <div class="statementTitle">广东省社会医疗保险医疗费用结算单</div>
        <table class="statementTable" border="1">
            <tr>
                <td width="80">机构名称</td>
                <td colspan="4">{{info.fixmedins_name}}</td>
                <td width="80">机构编码</td>
                <td colspan="4">{{info.fixmedins_code}}</td>
                <td width="100">医保结算级别</td>
                <td width="100"></td>
            </tr>
            <tr>
                <td width="90">就医登记号</td>
                <td colspan="11">{{info.psn_no}}</td>
            </tr>
            <tr>
                <td width="80">姓名</td>
                <td width="80">{{info.psn_name}}</td>
                <td width="80">性别</td>
                <td width="50" v-if="info.gend == '1'">男</td>
              <td width="50" v-if="info.gend == '2'">女</td>

              <td width="80">出生日期</td>
                <td width="100">{{info.brdy}}</td>
                <td width="90">个人电脑号</td>
                <td width="110"></td>
                <td width="80">人员类别</td>
                <td colspan="3"></td>
            </tr>
            <tr>
                <td>单位名称</td>
                <td colspan="5">{{info.emp_name}}</td>
                <td width="80">联系电话</td>
                <td width="110"></td>
                <td width="80">身份证号</td>
                <td colspan="3">{{info.certno}}</td>
            </tr>
            <tr>
                <td>住院号</td>
                <td></td>
                <td>科别</td>
                <td width="100"></td>
                <td>床号</td>
                <td></td>
                <td>入院日期</td>
                <td></td>
                <td>出院日期</td>
                <td width="100"></td>
                <td>住院天数</td>
                <td></td>
            </tr>
            <tr>
                <td>险种</td>
                  <td colspan="2" v-if="info.insutype == '310'">职工基本医疗保险</td>
                  <td colspan="2" v-if="info.insutype == '320'">公务员医疗补助</td>
                  <td colspan="2" v-if="info.insutype == '330'">大额医疗费用补助</td>
                  <td colspan="2" v-if="info.insutype == '340'">离休人员医疗保障</td>
                  <td colspan="2" v-if="info.insutype == '390'">城乡居民基本医疗保险</td>
                  <td colspan="2" v-if="info.insutype == '392'">城乡居民大病医疗保险</td>
                  <td colspan="2" v-if="info.insutype == '510'">生育保险</td>


              <td>入院第一诊断</td>
                <td colspan="3"></td>
                <td>出院第一诊断</td>
                <td colspan="4"></td>
            </tr>
            <tr>
                <td>业务类别</td>
                <td colspan="5" style="text-align:left;padding-left:10px;">普通门诊</td>
                <td>结算时间</td>
                <td colspan="5" style="text-align:left;padding-left:10px;">{{info.setl_time}}</td>
            </tr>
            <tr>
                <td colspan="12" style="text-align:left;padding-left:10px;">
                    本次就医：总费用{{info.medfee_sumamt}}元，基金支付{{info.fund_pay_sumamt}}元，个人支付{{info.psn_pay}}元。
                </td>
            </tr>
            <tr>
                <td>费用名称</td>
                <td colspan="2">总费用</td>
                <td>自费</td>
                <td colspan="2">部分项目自付</td>
                <td>费用名称</td>
                <td colspan="2">总费用</td>
                <td>自费</td>
                <td colspan="2">部分项目自付</td>
            </tr>
            <tr>
                <td>床位费</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
                <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total}}</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
                <td>西成药</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
                <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total}}</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
            </tr>
            <tr>
                <td>中药费</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td style="text-align:right;padding-right:10px;">0</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td>中成药</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}</td>
                <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total}}</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_part_self_total}}</td>
            </tr>
            <tr>
                <td>中草药</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td style="text-align:right;padding-right:10px;">0</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td>检查费</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
                <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total}}</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
            </tr>
            <tr>
                <td>治疗费</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
              <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total}}</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
                <td>放射费</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td style="text-align:right;padding-right:10px;">0</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
            </tr>
            <tr>
                <td>手术费</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
              <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total}}</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
                <td>化验费</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
              <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total}}</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
            </tr>
            <tr>
                <td>输血费</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td style="text-align:right;padding-right:10px;">0</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td>输氧费</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td style="text-align:right;padding-right:10px;">0</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
            </tr>
            <tr>
                <td>其他</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
              <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total}}</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
                <td>麻醉费</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td style="text-align:right;padding-right:10px;">0</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
            </tr>
            <tr>
                <td>材料费</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
              <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total}}</td>
              <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
                <td>特殊检查费</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td style="text-align:right;padding-right:10px;">0</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
            </tr>
            <tr>
                <td>特殊治疗费</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td style="text-align:right;padding-right:10px;">0</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
                <td style="text-align:right;padding-right:10px;"></td>
                <td colspan="2" style="text-align:right;padding-right:10px;"></td>
                <td style="text-align:right;padding-right:10px;"></td>
                <td colspan="2" style="text-align:right;padding-right:10px;"></td>
            </tr>
            <tr>
                <td>合计</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total + info.operation_cost_total + info.other_cost_total + info.material_cost_total + info.western_medicine_cost_total + info.chinese_traditional_medicine_cost_total + info.check_cost_total + info.laboratory_cost_total + info.treat_cost_total}}</td>
                <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total + info.operation_cost_self_total + info.other_cost_self_total + info.material_cost_self_total + info.western_medicine_cost_self_total + info.chinese_traditional_medicine_cost_self_total + info.check_cost_self_total + info.laboratory_cost_self_total + info.treat_cost_self_total}}</td>
                <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total + info.operation_cost_part_self_total + info.other_cost_part_self_total + info.material_cost_part_self_total + info.western_medicine_cost_part_self_total + info.chinese_traditional_medicine_cost_part_self_total + info.check_cost_part_self_total + info.laboratory_cost_part_self_total + info.treat_cost_part_self_total}}</td>
                <td style="text-align:right;padding-right:10px;"></td>
                <td colspan="2" style="text-align:right;padding-right:10px;"></td>
                <td style="text-align:right;padding-right:10px;"></td>
                <td colspan="2" style="text-align:right;padding-right:10px;"></td>
            </tr>
            <tr>
                <td colspan="3" style="text-align:left;padding-left:10px;">基本医疗保险统筹基金支付</td>
                <td colspan="3">{{info.hifp_pay}}</td>
                <td colspan="3" style="text-align:left;padding-left:10px;">大额基金支付</td>
                <td colspan="3">{{info.hifob_pay}}</td>
            </tr>
            <tr>
                <td colspan="3" style="text-align:left;padding-left:10px;">大病基金支付</td>
                <td colspan="3">{{info.hifmi_pay}}</td>
                <td colspan="3" style="text-align:left;padding-left:10px;">补充保险基金支付</td>
                <td colspan="3">{{info.hifes_pay}}</td>
            </tr>
            <tr>
                <td colspan="3" style="text-align:left;padding-left:10px;">医疗救助基金支付</td>
                <td colspan="3">{{info.maf_pay}}</td>
                <td colspan="3" style="text-align:left;padding-left:10px;">公务员基金支付</td>
                <td colspan="3">{{info.cvlserv_pay}}</td>
            </tr>
            <tr>
                <td>收款人:</td>
                <td colspan="2"></td>
                <td>审核人:</td>
                <td colspan="2"></td>
                <td>制单人:</td>
                <td colspan="2"></td>
                <td>打印日期</td>
                <td colspan="2"></td>
            </tr>
            <tr>
                <td colspan="12" style="text-align:left;padding-left:10px;line-height:20px;">
                    注: 1、部分项目自付金额是指基本医疗保险范围内的项目需参保人先按规定比例自付的金额。<br />
                    &ensp;&ensp;&ensp;2、此表由医院打印。<br />
                    &ensp;&ensp;&ensp;3、此表一式两份，医院、参保人各一份。
                </td>
            </tr>
            <tr>
                <td colspan="12" style="text-align:left;padding-left:10px;">
                    病人家属签字:
                </td>
            </tr>
        </table>
    </div>
</template>
<script>
  export default {
    props: {
      info: {
        type: Object,
        default: function () {
          return {};
        }
      },
    }
  }


</script>



<style lang="scss" scoped>
.statement-print{
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
    margin-bottom: 20px;
    padding:20px 10px;
}
.statementTitle{
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}
.statementTable{
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    line-height: 40px;
    font-size: 14px;
    border-color: #000;
}
</style>
