<template>
  <div>
    <a-row>
      <a-col :span="24">
        <div class="tb-title">
          <span>审核</span>
        </div>
      </a-col>
    </a-row>
    <a-row>
      <a-col :span="24" style="padding-top:6px;border-bottom:0px;">
        <a-form-model-item prop="auditContent">
          <a-textarea v-model="auditObj.auditContent" :auto-size="{ minRows: 5, maxRows: 8 }" :max-length="500" style="width: 60%" />
        </a-form-model-item>
      </a-col>
    </a-row>
    <a-row>
      <a-col :span="24">
        <a-form-model-item prop="auditResult">
          <a-radio-group v-model="auditObj.auditResult" @change="onChange">
            <a-radio :value="10" :disabled="disabledBtns.btnPassed">通过</a-radio>
            <a-radio :value="30" :disabled="disabledBtns.btnReturn">返回修改</a-radio>
            <a-radio :value="20" :disabled="disabledBtns.btnUnpassed">不通过</a-radio>
          </a-radio-group>
        </a-form-model-item>
      </a-col>
    </a-row>
  </div>
</template>
<script>
export default {
  name: "AuditEdit",
  data () {
    return {};
  },
  props: {
    auditObj: {
      type: Object,
      default: () => {
        return null;
      },
    },
    disabledBtns: {
      btnPassed: {
        type: Boolean,
        default () {
          return false
        }
      },
      btnReturn: {
        type: Boolean,
        default () {
          return false
        }
      },
      btnUnpassed: {
        type: Boolean,
        default () {
          return false
        }
      }
    }
  },
  created () {
    
  },
  methods: {
    onChange (e) { },
  },
};
</script>
<style lang="less" scoped>
.tb-title {
  color: #0079fe;
  display: flex;
  text-align: center;
  height: 40px;

  &::after {
    content: "";
    flex-grow: 1;
    border-top: 1px dashed #d9d9d9;
    transform: translateY(50%);
    margin-left: 10px;
  }
}

.doc-tag {
  line-height: 2;
  display: inline-block;
  margin-right: 12px;
  background: #ebf3ff;
  border-radius: 4px;
  color: #0079fe;
  padding: 0 10px;
}
</style>
