<template>
  <div class="app-container">
    <div v-if="isShow">
      <!-- 筛选条件 -->
      <div>
        <el-form label-width="70px" 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="18" class="tr">
              <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 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" min-width="160"></el-table-column>
            <el-table-column
              align="center"
              label="客户编码"
              prop="bianMa"
              min-width="160"
              label-class-name="bianma"
              class-name="fontstyle"
            ></el-table-column>
            <el-table-column
              align="center"
              label="客户名称"
              prop="username"
              min-width="160"
            ></el-table-column>
            <el-table-column
              align="center"
              label="简称"
              prop="jianCheng"
              min-width="160"
            ></el-table-column>
            <el-table-column
              align="center"
              label="单据状态"
              prop="danJuZhuangTai"
              min-width="160"
            ></el-table-column>
            <el-table-column
              align="center"
              label="禁用状态"
              prop="jinYong"
              min-width="160"
            ></el-table-column>
            <el-table-column
              align="center"
              label="使用组织"
              prop="use"
              min-width="160"
            ></el-table-column>
            <el-table-column
              align="center"
              label="审核人"
              prop="shenHeRen"
              min-width="160"
            ></el-table-column>
            <el-table-column
              align="center"
              label="审核日期"
              prop="shenHeDate"
              min-width="160"
            ></el-table-column>
            <el-table-column
              align="center"
              label="客户分组"
              prop="keHu"
              min-width="160"
            ></el-table-column>
            <el-table-column
              align="center"
              label="操作"
              prop="caozuo"
              min-width="160"
              show-overflow-tooltip
            >
              <el-button type="text" class="textColor" @click="editFn"
                >编辑</el-button
              >
              <el-button type="text" class="textColor">删除</el-button>
            </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>
    <DealerListDetail v-else />
  </div>
</template>

<script>
import DealerListDetail from "./components/dealer_list-detail.vue";
export default {
  data() {
    return {
      isShow: true,
      dataList: [
        {
          bianMa: "001",
          username: "张蕙兰",
          jianCheng: "zhl",
          danJuZhuangTai: "已审核",
          jinYong: "否",
          use: "广州格匠机电工程科技有限公司",
          shenHeRen: "郑桂茹",
          shenHeDate: "2020/11/11",
          keHu: "花都线",
        },
        {
          bianMa: "001",
          username: "张蕙兰",
          jianCheng: "zhl",
          danJuZhuangTai: "已审核",
          jinYong: "否",
          use: "广州格匠机电工程科技有限公司",
          shenHeRen: "郑桂茹",
          shenHeDate: "2020/11/11",
          keHu: "花都线",
        },
        {
          bianMa: "001",
          username: "张蕙兰",
          jianCheng: "zhl",
          danJuZhuangTai: "已审核",
          jinYong: "否",
          use: "广州格匠机电工程科技有限公司",
          shenHeRen: "郑桂茹",
          shenHeDate: "2020/11/11",
          keHu: "花都线",
          zip: 200333,
        },
      ], // 列表数据

      listLoading: false, // 列表加载loading
      screenForm: {
        // 筛选表单数据
        name: "", // 名称
      },
      currentPage: 1, // 当前页码
      pageSize: 10, // 每页数量
      listTotal: 0, // 列表总数
    };
  },
  components: {
    DealerListDetail,
  },
  created() {},
  computed: {},
  methods: {
    handleSizeChange() {},
    handleCurrentChange() {},
    handleNodeClick(data) {
      console.log(data);
    },
    editFn() {
      this.isShow = false;
    },
  },
};
</script>

<style lang="scss" scoped>
</style>
