<template>
  <div class="app-container">
    <!-- 筛选条件 -->
    <div>
      <el-form label-width="80px" size="small" label-position="left">
        <el-row :gutter="20">
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="存货编码" prop="account">
              <el-input placeholder="请输入存货编码"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="存货名称" prop="nickname">
              <el-input placeholder="请输入存货名称"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="存货代码" prop="account">
              <el-input placeholder="请输入存货代码"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="生效日期" prop="nickname">
              <el-input placeholder="请输入生效日期"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="失效日期" prop="nickname">
              <el-input placeholder="请输入失效日期"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="销售类型" prop="nickname">
              <el-input placeholder="请输入销售类型"></el-input>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="产品品类" prop="nickname">
              <el-select placeholder="请选择产品品类">
                <el-option label="品类一" value="shanghai"></el-option>
                <el-option label="品类二" value="beijing"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :xs="24" :sm="12" :lg="6">
            <el-form-item label="规格型号" prop="nickname">
              <el-input placeholder="请输入规格型号"></el-input>
            </el-form-item>
          </el-col>

          <el-col :xs="24" :sm="24" :lg="24" class="tr">
            <el-form-item label="">
              <el-button size="small" @click="resetScreenForm">清空</el-button>
              <el-button size="small" type="primary" @click="submitScreenForm"
                >搜索</el-button
              >
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 按钮 -->
    <div class="btn-group clearfix">
      <div class="fr">
        <el-button type="primary" size="small">导出</el-button>
        <el-button type="primary" size="small">打印</el-button>
      </div>
    </div>
    <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 type="selection" align="center"></el-table-column>
          <el-table-column
            align="center"
            label="产品品类"
            prop="productCategory"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="存货编码"
            prop="code"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="存货名称"
            prop="name"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="存货代码"
            prop="number"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="规格型号"
            prop="specs"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="销售类型"
            prop="salesType"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="主计量单位名称"
            prop="company"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="数量下限"
            prop="lowerLimit"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="返利比例"
            prop="rebateRatio"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="生效日期"
            prop="effectiveDate"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>

          <el-table-column
            align="center"
            label="失效日期"
            prop="ExpiryDate"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="是否促销价"
            prop="promotion"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="是否促作废"
            prop="cancellation"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="批发价1"
            prop="wholesaleOne"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
          <el-table-column
            align="center"
            label="备注"
            prop="remarks"
            min-width="160"
            show-overflow-tooltip
          ></el-table-column>
        </el-table>
      </div>
      <!-- 分页 -->
      <div class="fr">
        <el-pagination
          :current-page="currentPage"
          :page-sizes="[10, 20, 30, 50]"
          :page-size="10"
          layout="total, sizes, prev, pager, next, jumper"
          :total="listTotal"
        >
        </el-pagination>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      currentPage: 1, // 当前页码
      pageSize: 10, // 每页数量
      listTotal: 0, // 列表总数

      dataList: [
        {
          productCategory: "家用空调",
          code: "2022051775",
          name: "夏之凉变频1",
          number: "",
          specs: "DAD-26GW/",
          salesType: "*一票机*",
          company: "套",
          lowerLimit: "",
          rebateRatio: "",
          effectiveDate: "",
          ExpiryDate: "",
          promotion: "",
          cancellation: "",
          wholesaleOne: "3,299.00",
          remarks: "*常规机*",
        },
        {
          productCategory: "家用空调",
          code: "2022051775",
          name: "夏之凉变频1",
          number: "",
          specs: "DAD-26GW/",
          salesType: "*一票机*",
          company: "套",
          lowerLimit: "",
          rebateRatio: "",
          effectiveDate: "",
          ExpiryDate: "",
          promotion: "",
          cancellation: "",
          wholesaleOne: "3,299.00",
          remarks: "*常规机*",
        },
        {
          productCategory: "家用空调",
          code: "2022051775",
          name: "夏之凉变频1",
          number: "",
          specs: "DAD-26GW/",
          salesType: "*一票机*",
          company: "套",
          lowerLimit: "",
          rebateRatio: "",
          effectiveDate: "",
          ExpiryDate: "",
          promotion: "",
          cancellation: "",
          wholesaleOne: "3,299.00",
          remarks: "*常规机*",
        },
        {
          productCategory: "家用空调",
          code: "2022051775",
          name: "夏之凉变频1",
          number: "",
          specs: "DAD-26GW/",
          salesType: "*一票机*",
          company: "套",
          lowerLimit: "",
          rebateRatio: "",
          effectiveDate: "",
          ExpiryDate: "",
          promotion: "",
          cancellation: "",
          wholesaleOne: "3,299.00",
          remarks: "*常规机*",
        },
      ],
    };
  },
  methods: {
    addFn() {
      this.showDialogForm = true;
    },
  },
};
</script>

<style lang="scss" scoped>
::v-deep .el-select--small {
  width: 100%;
}
</style>