<template>
  <div id="info-2">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="one">
          <el-form :model="info" ref="info" label-width="100px">
            <el-col :span="12">
              <el-form-item label="枪号" prop="gun_num">
                <el-input v-model="info.gun_num" placeholder="请输入枪号" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="枪型" prop="gun_model">
                <el-input v-model="info.gun_model" placeholder="请输入枪型" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="出产日期" prop="put_date">
                <el-input v-model="info.put_date" placeholder="请输入出产日期" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="注销日期" prop="cancel_date">
                <el-input v-model="info.cancel_date" placeholder="请输入注销日期" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="制造单位名称" prop="make_company">
                <el-input v-model="info.make_company" placeholder="请输入制造单位名称" readonly></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="24">
              <el-form-item label="注销原因" prop="cancel_reason">
                <el-input v-model="info.cancel_reason" type="textarea" rows="2" placeholder="请输入注销原因" readonly></el-input>
              </el-form-item>
            </el-col>
          </el-form>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'info-2',
  props: {
    info: { 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></style>
