<template>
  <div>
    <el-radio-group v-model="current" size="mini">
      <el-radio-button class="my-width" label="detail">详情</el-radio-button>
      <el-radio-button class="my-width" label="record">操作记录</el-radio-button>
    </el-radio-group>
    <el-form v-show="current === 'detail'" disabled>
      <Base :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
      <Model :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
      <Examine v-if=" formData.confirmBy && formData.confirmTime" :form-data="formData" page-type="frock" :module="module" :common-data="commonData" />
    </el-form>
    <OperationRecords v-show="current === 'record'" :detail-id="detailId" />
  </div>
</template>

<script>
import Base from '../components/base.vue'
import Model from '../components/model.vue'
import Examine from '../components/examine.vue'
import OperationRecords from '../components/operationRecords.vue'
import Mixin from '../mixin'
export default {
  components: {
    Base,
    Model,
    Examine,
    OperationRecords
  },
  mixins: [Mixin],
  data() {
    return {
      current: 'detail'
    }
  }
}
</script>

<style lang="scss" scoped>
.my-width ::v-deep .el-radio-button__inner {
  width: 100px;
}
</style>
