<template>
  <el-container v-if="isShow">
    <el-header height="100%" class="mg">
      <el-row>
        <el-col :span="6">
          <el-input
            v-model="input"
            placeholder="销售政策编号"
            size="normal"
            clearable
            @change=""
          ></el-input>
        </el-col>
        <el-col :span="6" :push="1">
          <el-input
            v-model="input"
            placeholder="销售政策说明"
            size="normal"
            clearable
            @change=""
          ></el-input>
        </el-col>
        <el-col :span="6" :push="2">
          <el-input
            v-model="input"
            placeholder="表头备注"
            size="normal"
            clearable
            @change=""
          ></el-input>
        </el-col>
        <!-- <el-col :span="6" class="btn">

        </el-col> -->
      </el-row>
      <el-row class="mg">
        <el-button type="primary" size="default" @click="">查询</el-button>
        <el-button type="primary" size="default" @click="">重置</el-button>
        <el-button type="primary" size="default" @click="">导出</el-button>
      </el-row>
    </el-header>
    <el-main>
      <el-table :data="tableData" border style="width: 100%">
        <el-table-column prop="name" label="操作" width="120" align="center">
        </el-table-column>
        <el-table-column
          prop="province"
          label="状态"
          width="120"
          align="center"
        >
        </el-table-column>
        <el-table-column
          prop="city"
          label="销售政策编号"
          width="150"
          align="center"
        >
        </el-table-column>
        <el-table-column
          prop="address"
          label="销售政策说明"
          width="400"
          align="center"
        >
        </el-table-column>
        <el-table-column prop="zip" label="表头备注" width="200" align="center">
        </el-table-column>
        <el-table-column
          prop="zip"
          label="关联经销商"
          width="150"
          align="center"
        >
        </el-table-column>
        <el-table-column prop="zip" label="生效日期" align="center">
        </el-table-column>
        <el-table-column prop="zip" label="结束日期" align="center">
        </el-table-column>
        <el-table-column prop="zip" label="制表人" align="center">
        </el-table-column>
        <el-table-column prop="zip" label="制表日期" align="center">
        </el-table-column>
      </el-table>
    </el-main>
    <Pagination />
  </el-container>
  <Distributor v-else/>
</template>

<script>
import Pagination from "./components/Pagination";
import Distributor from './components/Distributor'
export default {
  data() {
    return {
      isShow:false,
      input: "",
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          province: "上海",
          city: "普陀区",
          address: "上海市普陀区金沙江路 1518 弄",
          zip: 200333,
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          province: "上海",
          city: "普陀区",
          address: "上海市普陀区金沙江路 1517 弄",
          zip: 200333,
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          province: "上海",
          city: "普陀区",
          address: "上海市普陀区金沙江路 1519 弄",
          zip: 200333,
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          province: "上海",
          city: "普陀区",
          address: "上海市普陀区金沙江路 1516 弄",
          zip: 200333,
        },
      ],
    };
  },
  components: {
    Pagination,
    Distributor
  },
};
</script>

<style lang="scss" scoped>
.mg {
  margin: 20px 0;
}
.btn {
  text-align: right;
}
</style>
