<template>
  <div>
    <div class="sty">
      <el-page-header @back="goBack" content="审批"> </el-page-header>
    </div>
    <el-divider></el-divider>

    <h3>工程项目信息</h3>
    <el-divider></el-divider>
    <div class="diy-table-1">
      <el-row :gutter="0">
        <el-col :xs="12" :sm="8" :lg="8" class="item">
          <div class="label">工程登录编码</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="12" :sm="8" :lg="8" class="item">
          <div class="label">工程名称(项目名称)</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="12" :sm="8" :lg="8" class="item">
          <div class="label">工程编号</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">经销商名称</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">经销商编码</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">工程登录类型</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">厂工程编码</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">使用单位</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">安装地址</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">扣款总额</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">押金比例</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">安装时间</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">押金总额</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">退款总额</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8" class="item">
          <div class="label">寄厂日期</div>
          <div class="value">2022123233435342</div>
        </el-col>
      </el-row>
    </div>
    <h3>货品信息</h3>
    <el-divider></el-divider>
    <!-- 列表 -->
    <div class="mymain-container">
      <div class="table">
        <el-table
          v-loading="listLoading"
          :data="dataList"
          element-loading-text="Loading"
          border
          fit
          highlight-current-row
          stripe
        >
          <el-table-column
            align="center"
            label="产品编码"
            prop=""
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="产品名称"
            prop=""
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="规格型号"
            prop=""
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column align="center" label="单价" prop="" min-width="160" show-overflow-tooltip></el-table-column>
          <el-table-column align="center" label="数量" prop="" min-width="160" show-overflow-tooltip></el-table-column>
          <el-table-column align="center" label="金额" prop="" min-width="160" show-overflow-tooltip></el-table-column>
          <el-table-column
            align="center"
            label="押金金额"
            prop=""
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="上交资料"
            prop=""
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
        </el-table>
      </div>
    </div>
    <h3>工程资料</h3>
    <el-divider></el-divider>
    <!-- 列表 -->
    <div class="mymain-container">
      <div class="table">
        <el-table
          v-loading="listLoading"
          :data="dataList"
          element-loading-text="Loading"
          border
          fit
          highlight-current-row
          stripe
        >
          <el-table-column
            align="center"
            label="资料描述"
            prop=""
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="原文件名"
            prop=""
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="缩略图"
            prop=""
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="下载文件名称"
            prop=""
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip>
            <template slot-scope="">
              <el-button type="text" class="textColor" slot="reference">下载</el-button>
            </template>
          </el-table-column>
        </el-table>
      </div>
    </div>
    <el-divider></el-divider>
    <div class="diy-table-1">
      <el-row :gutter="0">
        <el-col :xs="12" :sm="12" :lg="12" class="item">
          <div class="label">申请人</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="12" :sm="12" :lg="12" class="item">
          <div class="label">申请日期</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="12" :sm="24" :lg="24" class="item">
          <div class="label">申请免扣押金</div>
          <div class="value">************</div>
        </el-col>
      </el-row>
    </div>
    <h3>审批</h3>
    <el-divider></el-divider>
    <div class="diy-table-1">
      <el-row :gutter="0">
        <el-col :xs="12" :sm="12" :lg="12" class="item">
          <div class="label">验收人</div>
          <div class="value">2022123233435342</div>
        </el-col>
        <el-col :xs="12" :sm="12" :lg="12" class="item">
          <div class="label">受理日期</div>
          <div class="value">
            <el-date-picker type="date" placeholder=""> </el-date-picker>
          </div>
        </el-col>
        <el-col :xs="12" :sm="12" :lg="12" class="item">
          <div class="label">是否免押金</div>
          <div class="value">
            <el-radio-group>
              <el-radio :label="true">是</el-radio>
              <el-radio :label="false">否</el-radio>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :xs="12" :sm="12" :lg="12" class="item">
          <div class="label">审批结果</div>
          <div class="value">
            <el-radio-group>
              <el-radio :label="true">同意</el-radio>
              <el-radio :label="false">驳回</el-radio>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :xs="12" :sm="24" :lg="24" class="item">
          <div class="label">审批说明</div>
          <div class="value">
            <el-input placeholder="请输入内容"></el-input>
          </div>
        </el-col>
      </el-row>
    </div>
    <br />
    <!-- 按钮 -->
    <div class="btn-group clearfix">
      <div class="fl">
        <el-button type="primary" size="small">提交审批</el-button>
        <el-button type="primary" size="small">重置</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goBack() {
      this.$emit('setShowPage', true)
    }
  }
}
</script>

<style lang="scss" scoped>
.dateStyle {
  width: 100%;
}
</style>
