<template>
  <div id="search-1">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="one">
          <el-form ref="form" :model="form" label-width="170px">
            <el-col :span="24" class="one_2txt">
              <el-col :span="8">
                <el-form-item label="企业名称">
                  <el-input v-model="form.company"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="管辖单位">
                  <el-input v-model="form.tube_company"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="备案证明编号">
                  <el-input v-model="form.licence_num"></el-input>
                </el-form-item>
              </el-col>
            </el-col>
            <el-col :span="24" class="one_2txt">
              <el-col :span="8">
                <el-form-item label="证件状态">
                  <el-select v-model="form.cert_status" clearable placeholder="请选择">
                    <el-option label="正常" value="0"></el-option>
                    <el-option label="注销" value="1"></el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="保安备案证明发证日期">
                  <el-date-picker
                    v-model="form['start@cert_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="8">
                <el-form-item label="至">
                  <el-date-picker
                    v-model="form['end@cert_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>
            <el-col :span="24" class="one_2txt">
              <el-col :span="8">
                <el-form-item label="法人姓名">
                  <el-input v-model="form.legal_personal"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="法人代表证件号码">
                  <el-input v-model="form.legal_card"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="8" class="btn">
                <el-button type="primary" size="mini" @click="onSubmit()">查询</el-button>
              </el-col>
            </el-col>
          </el-form>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'search-1',
  props: {
    form: { type: Object },
  },
  components: {},
  data: function () {
    return {};
  },
  created() {},
  methods: {
    onSubmit() {
      this.$emit('onSubmit');
    },
  },
  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_2txt {
      border: 1px solid #ccc;
      /deep/.el-form-item {
        margin: 0;
      }
      /deep/.el-date-editor.el-input,
      .el-date-editor.el-input__inner {
        width: 100%;
      }
      /deep/.el-select {
        width: 100%;
      }
      .btn {
        text-align: right;
        padding: 5px 5px;
      }
    }
  }
}
</style>
