<template>
  <div id="other-info">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="one">
          <el-col :span="24" class="text"> 公务用枪情况: </el-col>
          <el-col :span="24" class="info">
            <el-col :span="24">
              <el-col :span="12">
                <el-form-item label="持枪证编码" prop="gun_num">
                  <el-input v-model="form.gun_num" placeholder="请输入持枪证编码"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12" class="longlabel">
                <el-form-item label="持枪证枪型代码" prop="gun_code">
                  <el-input v-model="form.gun_code" placeholder="请输入持枪证枪型代码"></el-input>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col :span="24">
              <el-col :span="12" class="longlabel">
                <el-form-item label="持枪证发证日期" prop="gun_date">
                  <el-date-picker v-model="form.gun_date" placeholder="请选择" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" style="width: 100%">
                  </el-date-picker>
                </el-form-item>
              </el-col>
              <el-col :span="12" class="longlabel">
                <el-form-item label="持枪证有效期止" prop="gun_enddate">
                  <el-date-picker v-model="form.gun_enddate" placeholder="请选择" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" style="width: 100%">
                  </el-date-picker>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col :span="24">
              <el-col :span="24" class="longlabel">
                <el-form-item label="持枪证发证机关代码" prop="gun_office">
                  <el-input v-model="form.gun_office" placeholder="请输入持枪证发证机关代码"></el-input>
                </el-form-item>
              </el-col>
            </el-col>
          </el-col>
        </el-col>
        <el-col :span="24" class="one">
          <el-col :span="24" class="text"> 其他专业资格证: </el-col>
          <el-col :span="24" class="info">
            <el-col :span="24">
              <el-col :span="12">
                <el-form-item label="证件名称" prop="cert_name">
                  <el-input v-model="form.cert_name" placeholder="请输入证件名称"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="证件号码" prop="cert_num">
                  <el-input v-model="form.cert_num" placeholder="请输入证件号码"></el-input>
                </el-form-item>
              </el-col>
            </el-col>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'other-info',
  props: {
    form: { 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>
.main {
  .one {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    margin: 0 0 10px 0;
    .text {
      font-weight: bold;
      height: 40px;
      line-height: 40px;
      border-bottom: 1px dashed #ccc;
      margin: 0 0 8px 0;
    }
    .longlabel {
      /deep/.el-form-item__label {
        line-height: 20px;
        padding: 0 12px;
      }
    }
  }
}
</style>
