<template>
  <div id="size-1">
    <el-row>
      <el-col :span="24" class="main">
        <el-form ref="company_keep_size" :model="company_keep_size" label-width="100px">
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">服务许可证尺寸</el-col>
            <el-col :span="12">
              <el-form-item label="宽度">
                <el-input v-model="company_keep_size.p0.width"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="高度">
                <el-input v-model="company_keep_size.p0.height"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">吉公保服</el-col>
            <el-col :span="6">
              <el-form-item label="上间距">
                <el-input v-model="company_keep_size.p1.top"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="右间距">
                <el-input v-model="company_keep_size.p1.right"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="下间距">
                <el-input v-model="company_keep_size.p1.bottom"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="左间距">
                <el-input v-model="company_keep_size.p1.left"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">名称</el-col>
            <el-col :span="6">
              <el-form-item label="上间距">
                <el-input v-model="company_keep_size.p2.top"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="右间距">
                <el-input v-model="company_keep_size.p2.right"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="下间距">
                <el-input v-model="company_keep_size.p2.bottom"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="左间距">
                <el-input v-model="company_keep_size.p2.left"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">住所</el-col>
            <el-col :span="6">
              <el-form-item label="上间距">
                <el-input v-model="company_keep_size.p3.top"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="右间距">
                <el-input v-model="company_keep_size.p3.right"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="下间距">
                <el-input v-model="company_keep_size.p3.bottom"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="左间距">
                <el-input v-model="company_keep_size.p3.left"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">法定代表人</el-col>
            <el-col :span="6">
              <el-form-item label="上间距">
                <el-input v-model="company_keep_size.p4.top"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="右间距">
                <el-input v-model="company_keep_size.p4.right"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="下间距">
                <el-input v-model="company_keep_size.p4.bottom"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="左间距">
                <el-input v-model="company_keep_size.p4.left"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">服务范围</el-col>
            <el-col :span="6">
              <el-form-item label="上间距">
                <el-input v-model="company_keep_size.p5.top"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="右间距">
                <el-input v-model="company_keep_size.p5.right"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="下间距">
                <el-input v-model="company_keep_size.p5.bottom"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="左间距">
                <el-input v-model="company_keep_size.p5.left"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">注册资本</el-col>
            <el-col :span="6">
              <el-form-item label="上间距">
                <el-input v-model="company_keep_size.p6.top"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="右间距">
                <el-input v-model="company_keep_size.p6.right"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="下间距">
                <el-input v-model="company_keep_size.p6.bottom"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="左间距">
                <el-input v-model="company_keep_size.p6.left"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">批准文号</el-col>
            <el-col :span="6">
              <el-form-item label="上间距">
                <el-input v-model="company_keep_size.p7.top"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="右间距">
                <el-input v-model="company_keep_size.p7.right"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="下间距">
                <el-input v-model="company_keep_size.p7.bottom"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="左间距">
                <el-input v-model="company_keep_size.p7.left"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">温馨提示</el-col>
            <el-col :span="6">
              <el-form-item label="上间距">
                <el-input v-model="company_keep_size.p8.top"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="右间距">
                <el-input v-model="company_keep_size.p8.right"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="下间距">
                <el-input v-model="company_keep_size.p8.bottom"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="左间距">
                <el-input v-model="company_keep_size.p8.left"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="one">
            <el-col :span="24" class="one_1">发证日期</el-col>
            <el-col :span="6">
              <el-form-item label="上间距">
                <el-input v-model="company_keep_size.p9.top"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="右间距">
                <el-input v-model="company_keep_size.p9.right"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="下间距">
                <el-input v-model="company_keep_size.p9.bottom"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="左间距">
                <el-input v-model="company_keep_size.p9.left"></el-input>
              </el-form-item>
            </el-col>
          </el-col>
          <el-col :span="24" class="btn">
            <el-button type="danger" size="mini" @click="close">取消保存</el-button>
            <el-button type="primary" size="mini" @click="onSubmit">提交保存</el-button>
          </el-col>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>

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

<style lang="less" scoped>
.main {
  .one {
    .one_1 {
      padding: 10px 0;
      margin: 0 0 10px 0;
      color: #000000;
      font-size: 18px;
      font-weight: bold;
      border-bottom: 1px dashed #000000;
    }
    /deep/.el-form-item {
      margin: 0;
    }
  }
  .btn {
    text-align: center;
    margin: 20px 0 0 0;
  }
}
</style>
