<template>
  <div id="one">
    <el-row>
      <el-col :span="24" class="main">
        <el-form :model="form" :rules="rules" ref="form" label-width="100px">
          <el-col :span="12">
            <el-form-item label="注册类型" prop="companytype">
              <el-input v-model="form.companytype" placeholder="请输入注册类型"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="注册时间" prop="companydate">
              <el-date-picker v-model="form.companydate" placeholder="请选择" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date"> </el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="注册资金" prop="companycapital">
              <el-input v-model="form.companycapital" placeholder="请输入注册资金"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="企业法人" prop="companyperson">
              <el-input v-model="form.companyperson" placeholder="请输入企业法人"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="企业总收入" prop="sndqyzsr">
              <el-input v-model="form.sndqyzsr" placeholder="请输入上年度企业总收入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="研发费用" prop="sndyffy">
              <el-input v-model="form.sndyffy" placeholder="请输入上年度研发费用"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="企业总人数" prop="companytotal">
              <el-input v-model="form.companytotal" placeholder="请输入企业总人数"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="研发人数" prop="zjzyfrs">
              <el-input v-model="form.zjzyfrs" placeholder="请输入专&兼职研发人数"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="企业简介" prop="companybrief">
              <el-input
                v-model="form.companybrief"
                placeholder="请输入企业简介"
                type="textarea"
                maxlength="300"
                :autosize="{ minRows: 4, maxRows: 6 }"
                show-word-limit
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="主要产品" prop="mainproduct">
              <el-input
                v-model="form.mainproduct"
                placeholder="请输入主要产品"
                type="textarea"
                maxlength="300"
                :autosize="{ minRows: 4, maxRows: 6 }"
                show-word-limit
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="24">
            <el-form-item label="资质&荣誉" prop="qualifications">
              <el-input
                v-model="form.qualifications"
                placeholder="请输入企业资质&荣誉"
                type="textarea"
                maxlength="300"
                :autosize="{ minRows: 4, maxRows: 6 }"
                show-word-limit
              ></el-input>
            </el-form-item>
          </el-col>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'one',
  props: {
    form: { type: Object },
    rules: { type: Object },
  },
  components: {},
  data: function () {
    return {};
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
/deep/.el-input__inner {
  border: 1px solid #333;
}
/deep/.el-textarea__inner {
  border: 1px solid #333;
}
</style>
