<template>
  <el-dialog v-model="shuJuDuiBiDialog" title="数据对比" fullscreen @closed="emit('close')">
    <el-tabs>
      <el-tab-pane label="诊断对比">
        <el-table :data="props.oldYbZyDisDiag" :height="store.state.app.windowSize.h / 2" stripe highlight-current-row>
          <el-table-column label="老诊断信息">
            <el-table-column lable="排序" type="index"></el-table-column>
            <el-table-column label="诊断代码" prop="disDiag"></el-table-column>
            <el-table-column label="诊断名称" prop="disDiagComment"></el-table-column>
            <el-table-column label="入院病情" prop="admissCond" width="90">
              <template #default="scope">
                {{ getAdmissCond(scope.row.admissCond) }}
              </template>
            </el-table-column>
            <el-table-column label="诊断类别" prop="siDiagTypeName">
              <template #default="scope">
                {{ getsiDiagTypeName(scope.row.siDiagType) }}
              </template>
            </el-table-column>
            <el-table-column label="诊断排序" prop="disDiagNo"> </el-table-column>
          </el-table-column>
        </el-table>
        <el-table :data="props.newYbZyDisDiag" :height="store.state.app.windowSize.h / 2" stripe highlight-current-row>
          <el-table-column label="新诊断信息">
            <el-table-column lable="排序" type="index"></el-table-column>
            <el-table-column label="诊断代码" prop="disDiag"></el-table-column>
            <el-table-column label="诊断名称" prop="disDiagComment"></el-table-column>
            <el-table-column label="入院病情" prop="admissCond" width="90">
              <template #default="scope">
                {{ getAdmissCond(scope.row.admissCond) }}
              </template>
            </el-table-column>
            <el-table-column label="诊断类别" prop="siDiagTypeName">
              <template #default="scope">
                {{ getsiDiagTypeName(scope.row.siDiagType) }}
              </template>
            </el-table-column>
            <el-table-column label="诊断排序" prop="disDiagNo"> </el-table-column>
          </el-table-column>
        </el-table>
      </el-tab-pane>
      <el-tab-pane label="手术对比">
        <el-table :data="props.oldBat" :height="store.state.app.windowSize.h / 2" stripe highlight-current-row>
          <el-table-column label="老手术数据">
            <el-table-column lable="排序" type="index"></el-table-column>
            <el-table-column label="手术及操作名称" prop="ssmc"></el-table-column>
            <el-table-column label="手术及操作日期" prop="ssrq"></el-table-column>
            <el-table-column label="手术级别" prop="ssjb"></el-table-column>
            <el-table-column label="手术及操作编码	" prop="ssbm"></el-table-column>
            <el-table-column label="手术及操作医师">
              <el-table-column label="术者" prop="ssysName"></el-table-column>
              <el-table-column label="I助" prop="sszsName1"></el-table-column>
              <el-table-column label="II助" prop="sszsName2"></el-table-column>
            </el-table-column>
            <el-table-column label="切口愈合等级" prop="qkjb">
              <template #default="scope">
                {{ qieKouName(scope.row.qkjb, scope.row.yhqk) }}
              </template>
            </el-table-column>
            <el-table-column label="麻醉方式" prop="mzff">
              <template #default="scope">
                {{ maZuiName(scope.row.mzff) }}
              </template>
            </el-table-column>
            <el-table-column label="麻醉医师" prop="mzysName"></el-table-column>
          </el-table-column>
        </el-table>
        <el-table :data="props.newBat" :height="store.state.app.windowSize.h / 2" stripe highlight-current-row>
          <el-table-column label="新手术数据">
            <el-table-column lable="排序" type="index"></el-table-column>
            <el-table-column label="手术及操作名称" prop="ssmc"></el-table-column>
            <el-table-column label="手术及操作日期" prop="ssrq"></el-table-column>
            <el-table-column label="手术级别" prop="ssjb"></el-table-column>
            <el-table-column label="手术及操作编码	" prop="ssbm"></el-table-column>
            <el-table-column label="手术及操作医师">
              <el-table-column label="术者" prop="ssysName"></el-table-column>
              <el-table-column label="I助" prop="sszsName1"></el-table-column>
              <el-table-column label="II助" prop="sszsName2"></el-table-column>
            </el-table-column>
            <el-table-column label="切口愈合等级" prop="qkjb">
              <template #default="scope">
                {{ qieKouName(scope.row.qkjb, scope.row.yhqk) }}
              </template>
            </el-table-column>
            <el-table-column label="麻醉方式" prop="mzff">
              <template #default="scope">
                {{ maZuiName(scope.row.mzff) }}
              </template>
            </el-table-column>
            <el-table-column label="麻醉医师" prop="mzysName"></el-table-column>
          </el-table-column>
        </el-table>
      </el-tab-pane>
    </el-tabs>
  </el-dialog>
</template>

<script setup name="ShuJuDuiBi">
import store from '@/store'
import { getAdmissCond, getsiDiagTypeName, maZuiName, qieKouName } from './jieSuanDanXiuGai'
const props = defineProps({
  oldYbZyDisDiag: {
    type: Array,
  },
  newYbZyDisDiag: {
    type: Array,
  },
  oldBat: {
    type: Array,
  },
  newBat: {
    type: Array,
  },
})
const emit = defineEmits(['close'])
const shuJuDuiBiDialog = ref(true)
</script>

<style scoped></style>
