<template>
  <div>
    <el-form ref="basicInfoForm" label-position="top" :model="info" :rules="rules" label-width="150px">
      <div class="fomebox">
        <div class="ftop flexc">
          <img class="timg flex0" src="@/assets/images/project/tabtit.png"/>
          <div class="flex1 tit">投产信息</div>
          <el-button type="primary" plain>保存</el-button>
        </div>
        <div class="rowbox">
          <el-row  :gutter="22">
            <el-col :span="6">
              <el-form-item label="投产时间" prop="remark">
                <el-date-picker
                      v-model="value1"
                      type="date"
                      placeholder="年 / 月 / 日">
                    </el-date-picker>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="入规时间" prop="remark">
                <el-date-picker
                      v-model="value1"
                      type="date"
                      placeholder="年 / 月 / 日">
                    </el-date-picker>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="本年度累计产值(万元)" prop="tableName">
                <el-input  placeholder="请输入本年度累计产值" v-model="info.tableName" />
              </el-form-item>
            </el-col>
            <el-col :span="18">
              <el-form-item label="本会计年度实缴税收(万元)" prop="tableComment">
                <el-input placeholder="请输入本会计年度实缴税收" v-model="info.tableComment" />
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="累计用电(万千瓦时)" prop="className">
                <el-input placeholder="请输入累计用电" v-model="info.className" />
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="万元产值能耗(吨/万元)" prop="functionAuthor">
                <el-input placeholder="请输入万元产值能耗" v-model="info.functionAuthor" />
              </el-form-item>
            </el-col>
            
          </el-row>
        </div>
      </div>
      <div class="fomebox">
        <div class="ftop flexc">
          <img class="timg flex0" src="@/assets/images/project/tabtit.png"/>
          <div class="flex1 tit">上传附件</div>
          <el-button type="primary" plain>保存</el-button>
        </div>
        <div class="rowbox">
            <el-table  :data="tableData" border style="width: 100%;margin-bottom: 15px;">
                <el-table-column align="center" prop="fjlx" label="附件类型"  width="20%"> </el-table-column>
                <el-table-column align="center" prop="name" label="文件名称"  width="20%"> </el-table-column>
                <el-table-column align="center" prop="dx" label="附件大小"  width="15%"> </el-table-column>
                <el-table-column align="center" prop="time" label="上传时间"  width="15%"> </el-table-column>
                <el-table-column align="center" label="操作" width="30%">
                  <template slot-scope="scope">
                   <div class="flexcc">
                     <div class="btna flexc coa">
                       <div class="imgs">
                         <img class="imga" src="@/assets/images/project/upa.png"/>
                       </div>上传
                     </div>
                     <div class="btna flexc cob">
                       <div class="imgs">
                         <img class="imgb" src="@/assets/images/project/upb.png"/>
                       </div>预览
                     </div>
                     <div class="btna flexc coc">
                       <div class="imgs">
                         <img class="imga" src="@/assets/images/project/upc.png"/>
                       </div>下载
                     </div>
                     <div class="btna flexc cod">
                       <div class="imgs">
                         <img class="imgc" src="@/assets/images/project/upd.png"/>
                       </div>删除
                     </div>
                   </div>
                  </template>
                </el-table-column>
              </el-table>
        </div>
      </div>
    </el-form>
  </div>

</template>

<script>
export default {
  props: {
    info: {
      type: Object,
      default: null
    }
  },
  data() {
    return {
      value:'',
      value1:'',
      options: [{
                value: '选项1',
                label: '黄金糕'
              }, {
                value: '选项2',
                label: '双皮奶'
              }],
      tableData: [{
                fjlx: '项目可行性研究报告',
                name: '项目可行性研究报告.pdf',
                dx: '11.8 MB',
                time: '2025-06-16 16:57',
      }],
      rules: {
        // tableName: [
        //   { required: true, message: "请输入表名称", trigger: "blur" }
        // ],
        // tableComment: [
        //   { required: true, message: "请输入表描述", trigger: "blur" }
        // ],
        // className: [
        //   { required: true, message: "请输入实体类名称", trigger: "blur" }
        // ],
        // functionAuthor: [
        //   { required: true, message: "请输入作者", trigger: "blur" }
        // ]
      }
    }
  }
}
</script>
<style lang="scss" scoped>
::v-deep {
  .fomebox{
    .el-button--primary{font-size: 14px;padding: 8px 14px;}
    .el-form-item__label{padding-bottom: 0;line-height: 38px;}
    .el-form-item{margin-bottom: 15px;}
    .el-input__inner{height: 40px;line-height: 40px;}
    .el-date-editor.el-input{width: 100%;}
    .el-select{width: 100%;}
    table{width: 100% !important;}
   }
}
.fomebox{background: #FFFFFF;margin-bottom: 15px;border-radius: 4px;
  .ftop{padding: 10px 17px 10px 16px;border-bottom: 1px solid #E6E6E6;
    .timg{width: 20px;height: 20px;margin-right: 13px;}
    .tit{font-weight: bold;font-size: 16px;color: #222838;}
  }
  .rowbox{padding: 10px 15px 9px;}
  .ftab{font-weight: bold;font-size: 14px;color: #2777D0;padding: 24px 16px 7px;
    .line{width: 6px;margin-right: 9px;height: 20px;background: #2777D0;}
  }
  .btna{font-weight: 500;font-size: 14px;padding: 0 13px;
    .imgs{width: 15px;height: 15px;display: flex;align-items: center;justify-content: center;margin-right: 7px;
      .imga{width: 13px;height: 14px;}
      .imgb{width: 14px;height: 14px;}
      .imgc{width: 15px;height: 15px;}
      .imgd{width: 13px;height: 14px;}
    }
    &.coa{color: #1890FF;}
    &.cob{color: #FE7F0E;}
    &.coc{color: #00A854;}
    &.cod{color: #F25858;}
  }
}
</style>
