<template>
  <div>
    <!-- 搜索框，可以设置钢卷搜索条件 -->
    <!-- 上方是未选的钢卷表格，包含选择按钮 -->
    <!-- 搜索区域 -->
    <el-row>
      <el-form :inline="true" :model="queryParams" class="search-form">
        <el-form-item label="卷号">
          <el-input v-model="queryParams.currentCoilNo" placeholder="请输入卷号" clearable size="small"
            @keyup.enter.native="handleQuery" />
        </el-form-item>
        <!-- 分页 -->
        <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
          :limit.sync="queryParams.pageSize" @pagination="getList" />
        <el-form-item>
          <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button>
          <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
        </el-form-item>
      </el-form>

      <!-- 数据表格 -->
      <el-table v-loading="loading" :data="coilList" @row-click="handleRowClick" highlight-current-row height="400px"
        style="width: 100%">
        <el-table-column type="index" width="50" align="center" label="序号" />
        <el-table-column label="卷号" align="center" prop="currentCoilNo" :show-overflow-tooltip="true" />
        <el-table-column label="物料" align="center" prop="itemName" width="100" />
        <el-table-column label="重量(t)" align="center" prop="netWeight" width="100" />
        <el-table-column label="库区" align="center" prop="warehouseName" width="120" :show-overflow-tooltip="true" />
        <el-table-column label="操作" align="center" width="100">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click.stop="handleSelect(scope.row)">选择</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-row>

    <el-row>
      <el-table v-loading="loading" :data="coilList" @row-click="handleRowClick" highlight-current-row height="400px"
        style="width: 100%">
        <el-table-column type="index" width="50" align="center" label="序号" />
        <el-table-column label="卷号" align="center" prop="currentCoilNo" :show-overflow-tooltip="true" />
        <el-table-column label="物料" align="center" prop="itemName" width="100" />
        <el-table-column label="重量(t)" align="center" prop="netWeight" width="100" />
        <el-table-column label="库区" align="center" prop="warehouseName" width="120" :show-overflow-tooltip="true" />
        <el-table-column label="操作" align="center" width="100">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click.stop="handleSelect(scope.row)">选择</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-row>
  </div>


  <!-- 下方的已选的钢卷表格，包含删除按钮 -->
</template>

<script>

</script>