<template>
  <el-form
    ref="form"
    :model="form"
    label-width="100px"
    style="margin-top: 20px; margin-right: 10px"
  >
    <el-row>
      <el-col :span="12">
        <el-form-item label="业务实体:" prop="company">
          <el-input v-model="form.company" placeholder="" readonly />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="库房名称:" prop="depotName">
          <el-input v-model="form.depotName" placeholder="" readonly />
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="12">
        <el-form-item label="档案柜名称:" prop="cabinetName">
          <el-input v-model="form.cabinetName" placeholder="" readonly />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="会计年份:" prop="year">
          <el-input v-model="form.year" placeholder="" readonly />
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="12">
        <el-form-item label="会计月份:" prop="period">
          <el-input v-model="form.period" placeholder="" readonly />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="全宗号:" prop="caseNum">
          <el-input v-model="form.caseNum" placeholder="" readonly />
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="12">
        <el-form-item label="目录号:" prop="catalogNum">
          <el-input v-model="form.catalogNum" placeholder="" readonly />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="案卷号:" prop="filesNum">
          <el-input v-model="form.filesNum" placeholder="" readonly />
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="12">
        <el-form-item label="关联号:" prop="flowId">
          <el-input v-model="form.flowId" placeholder="" readonly />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="装册时间:" prop="packageTime">
          <el-input v-model="form.packageTime" placeholder="" readonly />
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="12">
        <el-form-item label="装册数量:" prop="packageNum">
          <el-input v-model="form.packageNum" placeholder="" readonly />
        </el-form-item>
      </el-col>
    </el-row>
    <el-form-item label="备注:" prop="remark">
      <el-input v-model="form.remark" type="textarea" placeholder="" readonly />
    </el-form-item>
  </el-form>
</template>

<script>
import { getCodeValueo } from "@/api/login";
export default {
  name: "info",
  components: {},
  data() {
    return {
      form: {},
    };
  },
  created() {
    this.getCodeValueo();
  },
  methods: {
    getCodeValueo() {
      const params = new URLSearchParams(location.search);
      const name = params.get("codeValue");
      console.log(name);
      getCodeValueo({ codeValue: name }).then((response) => {
        this.form = response.data;
      });
    },
  },
};
</script>
<style lang="scss" scoped></style>
