<template>
  <div class="financial-situation">
    <el-form
      ref="ruleFormRef"
      :model="ruleForm"
      label-position="top"
      label-width="150px"
      class="rule-form-orange"
    >
      <el-form-item
        label="指标名称"
        prop="resource"
        style="width: 100%"
      >
        <el-input v-model="ruleForm.desc" placeholder="请输入指标名称" />
      </el-form-item>
      <el-form-item
        label="纳税申报表"
        prop="resource"
        style="width: 100%"
      >
        <cy-upload
          ref="fileStorage"
          :upload-params="{}"
          :file-data="ruleForm.fileStorageList"
          :upload-from-orange-status="true"
          placeholder="请上传附件"
        />
      </el-form-item>
      <el-form-item
        label="近两年财务报表"
        prop="resource"
        style="width: 100%"
      >
        <cy-comm-table
          ref="commTable"
          :columns="columns"
          :data="tableData"
        />
      </el-form-item>
      <el-form-item
        label="企业内账报表"
        prop="resource"
        style="width: 100%"
      >
        <cy-upload
          ref="fileStorage"
          :upload-params="{}"
          :file-data="ruleForm.fileStorageList"
          :upload-from-orange-status="true"
          placeholder="请上传附件"
        />
      </el-form-item>
      <el-form-item label="主营业务收入" prop="name" class="one-form-item">
        <el-input v-model="ruleForm.name" placeholder="请输入主营业务收入">
          <template slot="append">元</template>
        </el-input>
      </el-form-item>
      <el-form-item label="评估得分" prop="name" class="one-form-item">
        <el-input v-model="ruleForm.name" placeholder="请输入评估得分" />
      </el-form-item>

      <el-form-item label="主营业务成本" prop="name" style="width: 100%">
        <el-input v-model="ruleForm.name" placeholder="请输入主营业务成本">
          <template slot="append">元</template>
        </el-input>
      </el-form-item>

      <el-form-item label="上年度毛利率" prop="name" class="one-form-item">
        <el-input v-model="ruleForm.name" placeholder="请输入上年度毛利率">
          <template slot="append">%</template>
        </el-input>
      </el-form-item>
      <el-form-item label="评估得分" prop="name" class="one-form-item">
        <el-input v-model="ruleForm.name" placeholder="请输入评估得分" />
      </el-form-item>

    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      ruleForm: {
        desc: '企业财务情况'
      },
      tableData: [
        { userName: '1111', statusName: '2131231' },
        { userName: '1111', statusName: '2131231' }
      ],
      columns: [
        {
          label: '序号',
          index: true,
          width: '100'
        },
        {
          label: '报表类型',
          prop: 'postName',
          showTooltip: true
        },
        {
          label: '报表年月',
          showTooltip: true,
          prop: 'userNumber'
        },
        {
          label: '金额单位',
          showTooltip: true,
          prop: 'userNumber'
        },
        {
          label: '创建时间',
          showTooltip: true,
          prop: 'userNumber'
        },
        {
          label: '操作',
          showTooltip: true,
          prop: 'userNumber'
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.financial-situation {
  .auditing-box {
    display: flex;
    justify-content: space-around;
  }
}
</style>
