<!--退课表单审核信息-->
<style>
  .backbill-Dialog .drawerTop {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    background-color: #F0F5FB;
    padding: 5px 10px;
    align-items: center;
  }

  .backbill-Dialog .classFirst {
    color: #000000;
    font-weight: bold;
  }

  .backbill-Dialog .className {
    margin-left: 10px;
  }

  .backbill-Dialog .classStatus {
    padding: 3px 8px;
    background-color: #c8d7fc;
    color: #2961FE;
    font-size: 12px;
    border-radius: 2px;
    margin-left: 20px;
  }

  .backbill-Dialog .normalName {
    color: #999999;
  }

  .backbill-Dialog .normalInner {
    color: #111111;
  }

  .drop_NameDown {
    margin-top: 20px;
    width: 300px;
  }

</style>
<template>
  <q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeShenheForm">
    <q-card style="margin-top:61px;width:850px" class="no-border-radius backbill-Dialog">
      <div class="drawerTop">
        <div style="display:flex;align-items:center;">
          <div class="className">
            <div class="classFirst">退课审批</div>
          </div>
          <div class="classStatus">{{setingObj.AuditStatusName}}</div>
        </div>
      </div>
      <q-tabs style="margin:15px;" v-model="tabCheck" narrow-indicator dense align="left" class="text-primary">
        <q-tab :ripple="false" name="first" label="详细信息" />
        <q-tab :ripple="false" name="second" label="审批记录" />
      </q-tabs>
      <div v-if="tabCheck=='first'" style="margin:0 15px;">
         <backinfoForm :seting-obj="setingObj" :showType="showType" @close="closeShenheForm"></backinfoForm>
      </div>
      <div v-if="tabCheck=='second'">
         <backflowForm :seting-obj="setingObj" :showType="showType" @close="closeShenheForm"></backflowForm>
      </div>
    </q-card>
    <div class="dialog-out-close" @click="closeShenheForm"
      style="height:40px !important;border-top-left-radius: 4px !important;border-bottom-left-radius: 4px !important;">
      <q-icon name="iconfont icon-jujue1" size="26px" />
    </div>
  </q-dialog>
</template>

<script>
  import backinfoForm from '../sale/backinfo-form';
  import backflowForm from '../sale/backflow-form';
  export default {
    props: {
      setingObj: {
        type: Object,
        default: null
      },
      showType: {
        type: Number,
        default: 1
      }
    },
    components: {
      backinfoForm,
      backflowForm,
    },
    data() {
      return {
        persistent: true,
        tabCheck: 'first', //默认选第一个
        loading: false,
      }
    },
    created() {

    },
    mounted() {
      console.log("setingObj", this.setingObj)
    },
    methods: {
      closeShenheForm() {
        this.persistent = false;
        this.$emit('close');
      },
    }
  }

</script>
