<template>
  <div class="deviceInformation">
    <el-row class="repair_row">
      <el-col :span="12" class="repair_column">
        <span>设备编码：</span>
        <span>{{ equipmentInfo ? equipmentInfo.code : '' }}</span>
      </el-col>
      <el-col :span="12" class="repair_column">
        <span>权属部门：</span>
        <span>{{ equipmentInfo ? equipmentInfo.ownershipGroupName : '' }}</span>
      </el-col>
    </el-row>
    <el-row class="repair_row">
      <el-col :span="12" class="repair_column">
        <span>设备名称：</span>
        <span>{{ equipmentInfo ? equipmentInfo.name : '' }}</span>
      </el-col>
      <el-col :span="12" class="repair_column">
        <span>权属人：</span>
        <span>{{ equipmentInfo ? equipmentInfo.ownershipUserName : '' }}</span>
      </el-col>
    </el-row>
    <el-row class="repair_row">
      <el-col :span="12" class="repair_column">
        <span>设备分类：</span>
        <span>{{
          equipmentInfo.category ? equipmentInfo.category.categoryLevelPath : ''
        }}</span>
      </el-col>
      <el-col :span="12" class="repair_column">
        <span>权属人电话：</span>
        <span>{{
          equipmentInfo ? equipmentInfo.ownershipUserMobile : ''
        }}</span>
      </el-col>
    </el-row>
    <el-row class="repair_row">
      <el-col :span="12" class="repair_column">
        <span>固定资产编码：</span>
        <span>{{ equipmentInfo ? equipmentInfo.fixCode : '' }}</span>
      </el-col>
      <el-col :span="12" class="repair_column">
        <span>设备位置：</span>
        <span>{{ equipmentInfo.position }}</span>
      </el-col>
    </el-row>
    <el-row class="repair_row">
      <el-col :span="12" class="repair_column">
        <span>规格型号：</span>
        <span>
          {{
            equipmentInfo.category && equipmentInfo.category.specification
          }}|{{ equipmentInfo.category && equipmentInfo.category.modelType }}
        </span>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        equipmentInfo: {
          category: {}
        }
      };
    }
  };
</script>
