<template>
  <div class="dialog">
    <el-dialog
      :title="formData.JGMC"
      width="40%"
      :visible.sync="dialogVisible"
      :before-close="close"
      :modal-append-to-body="false"
      :close-on-click-modal="false"
    >
      <div class="content">
        <el-form :model="ruleForm" ref="ruleForm" label-width="100px">
          <el-form-item label="审核结论:" prop="shjl">
            <el-radio v-model="ruleForm.shjl" label="1"> 申请通过 </el-radio>
            <el-radio v-model="ruleForm.shjl" label="2"> 申请不通过 </el-radio>
          </el-form-item>
          <el-form-item label="使用截止日期:" prop="jzrq">
            <el-date-picker
              v-model="ruleForm.jzrq"
              type="date"
              value-format="yyyy-MM-dd"
              placeholder="选择日期"
            >
            </el-date-picker>
            (默认一年)
          </el-form-item>
          <el-form-item label="审核意见:" prop="xmmc">
            <el-input
              v-model="ruleForm.xmmc"
              :rows="5"
              type="textarea"
              placeholder="描述"
            ></el-input>
          </el-form-item>
          <el-row :gutter="20" class="elrow">
            <el-col :span="12">
              <el-form-item label="审核时间" prop="shsj">
                <el-date-picker
                  v-model="ruleForm.shsj"
                  type="date"
                  value-format="yyyy-MM-dd"
                  placeholder="自动读取"
                >
                </el-date-picker>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="审核人" prop="shr">
                <el-input
                  v-model="ruleForm.shr"
                  placeholder="自动读取"
                ></el-input>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submit">保存</el-button>
        <el-button type="primary" @click="close">关闭</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      formData: {},
      fieldList: [{ label: "sc", name: "字段" }],
      dialogVisible: false,
    };
  },
  created() {},
  methods: {
    // 关闭弹窗
    close() {
      this.dialogVisible = false;
      this.$emit("close");
    },
    Init(rowdata) {
      this.formData = rowdata;
      this.dialogVisible = true;
    },
    async submit() {
      this.close();
    },
  },
};
</script>

<style lang="scss" scoped>
.dialog {
  .content {
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    color: #fff;
    .el-checkbox {
      color: #fff;
    }
  }
}
</style>
<style lang="scss" >
</style>
