<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>
      </div>
    </div>
    <h3>上传资料</h3>
    <el-divider></el-divider>
    <!-- 筛选条件 -->
    <div>
      <el-form ref="searchForm" :model="searchForm" label-width="100px" size="small" label-position="left">
        <el-row :gutter="20">
          <el-col :xs="24" :sm="12" :lg="24">
            <el-form-item label="工程验收资料" prop="">
              <fileUpload :fileList="fileList" />
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="申请人" prop="">
              <el-input placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="申请日期" prop="">
              <el-date-picker class="dateStyle" type="date" placeholder="选择日期"> </el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="18">
            <el-form-item label="申请退押" prop="">
              <el-input type="textarea" placeholder="请输入" class="textareaStyle"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="24" :lg="24">
            <el-form-item label="">
              <el-button size="small">清空</el-button>
              <el-button size="small" type="primary">提交</el-button>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
  </div>
</template>

<script>
import fileUpload from '@/components/Common/file-upload.vue'
export default {
  components: {
    fileUpload
  },
  data() {
    return {
      fileList: []
    }
  },
  methods: {
    goBack() {
      this.$emit('setShowPage', 1)
    }
  }
}
</script>

<style lang="scss" scoped>
::v-deep .textareaStyle {
  .el-textarea__inner {
    resize: none;
    height: 100px;
  }
}
.dateStyle {
  width: 100%;
}
</style>
