<template>
  <div class="inform">
    <el-card class="box-card" style="width: 1612px; height: 950px">
      <div slot="header" class="clearfix">
        <div class="inform-title">订单管理</div>
      </div>
      <div class="inform-body">
        <div class="order-top">
          <el-input
            placeholder="请输入内容"
            style="width: 261px"
            v-model="value"
          >
            <i slot="prefix" class="el-input__icon el-icon-search"></i>
          </el-input>
          <el-button @click="inquire">查询</el-button>
          <div class="paydate">
            <span class="demonstration">支付时间</span>
            <el-date-picker
              v-model="payTime"
              format="yyyy-MM-dd"
              value-format="yyyy-MM-dd"
              @change="timePay"
              :unlink-panels="true"
              type="daterange"
              :clearable="false"
              range-separator="至"
              start-placeholder="开始日期"
              end-placeholder="结束日期"
            >
            </el-date-picker>
          </div>
          <div class="paydate">
            <span class="demonstration">创建时间</span>
            <el-date-picker
              v-model="creationTime"
              format="yyyy-MM-dd"
              value-format="yyyy-MM-dd"
              @change="timeCreation"
              :unlink-panels="true"
              :clearable="false"
              type="daterange"
              range-separator="至"
              start-placeholder="开始日期"
              end-placeholder="结束日期"
            >
            </el-date-picker>
          </div>
          <div class="state">
            <span>状态</span>
            <el-select v-model="state" placeholder="请选择" @change="stateSel">
              <el-option
                v-for="item in options"
                :key="item.value"
                :value="item.value"
                :label="item.label"
              >
              </el-option>
            </el-select>
          </div>
          <div class="export" @click="exportExcel">导出订单</div>
        </div>
        <div class="inform-table">
          <el-table
            :data="data"
            @selection-change="handleSelectionChange"
            max-height="576"
            height="576"
            style="width: 1550px"
            stripe
            class="Devicetable"
            :cell-style="rowbg"
            :header-cell-style="{
              color: ' rgba(0, 0, 0, 1)',
              background: 'rgba(240, 243, 247, 1)',
            }"
          >
            <el-table-column
              type="selection"
              width="60"
              align="center"
            ></el-table-column>
            <el-table-column
              prop="orderNum"
              width="120"
              label="订单号"
              align="center"
            >
            </el-table-column>

            <el-table-column
              prop="state"
              width="100"
              align="center"
              label="状态"
            >
            </el-table-column>

            <el-table-column
              prop="room"
              width="160"
              align="center"
              label="房间"
            >
            </el-table-column>
            <el-table-column
              prop="electricity"
              align="center"
              width="130"
              label="电费（元）"
            >
            </el-table-column>
            <el-table-column
              prop="water"
              width="130"
              align="center"
              label="水费（元）"
            >
            </el-table-column>
            <el-table-column
              prop="imprest"
              align="center"
              width="150"
              label="收预付款（元）"
            >
            </el-table-column>
            <el-table-column
              prop="refund"
              width="150"
              align="center"
              label="退预付款（元）"
            >
            </el-table-column>
            <el-table-column
              prop="create"
              width="180"
              align="center"
              label="创建时间"
            >
            </el-table-column>
            <el-table-column
              prop="pay"
              width="180"
              align="center"
              label="支付时间"
            >
            </el-table-column>
            <el-table-column prop="address" align="center" label="操作">
              <template slot-scope="scope">
                <span
                  @click="handleEdit(scope.$index, scope.row)"
                  class="operate"
                >
                  详情
                </span>
                <el-dialog
                  title="订单详情"
                  :visible.sync="dialogVisible"
                  width="30%"
                  :before-close="handleClose"
                >
                  <div class="userinfo">用户信息</div>
                  <div class="info">
                    <div class="user">
                      <div class="name">姓名</div>
                      <el-input value="刘老师"></el-input>
                    </div>
                    <div class="user">
                      <div class="name">联系方式</div>
                      <el-input value="13234564"></el-input>
                    </div>
                  </div>
                  <div class="info">
                    <div class="user">
                      <div class="name">订单号</div>
                      <el-input value="261691612"></el-input>
                    </div>
                    <div class="user">
                      <div class="name">预付款金额（元）</div>
                      <el-input value="20.00"></el-input>
                    </div>
                  </div>
                  <div class="info">
                    <div class="user">
                      <div class="name">入住时间</div>
                      <el-input value="2022-07-26"></el-input>
                    </div>
                    <div class="user">
                      <div class="name">离住时间</div>
                      <el-input value="2022-07-26"></el-input>
                    </div>
                  </div>
                  <div class="info">
                    <div class="user">
                      <div class="name">入住天数</div>
                      <el-input value="1"></el-input>
                    </div>
                    <div class="user">
                      <div class="name">支付时间</div>
                      <el-input value="2022-07-27   15:15:15"></el-input>
                    </div>
                  </div>
                  <div class="rate">水费明细</div>
                  <div class="water">
                    表计：101 楼层：12栋1单元2层01 抄表时间：2022-07-27 15:15:15
                  </div>
                  <el-table
                    :data="waterTable"
                    max-height="93"
                    style="width: 832px"
                    stripe
                    :cell-style="rowbg"
                    :header-cell-style="{
                      color: ' rgba(0, 0, 0, 1)',
                      background: 'rgba(240, 243, 247, 1)',
                    }"
                  >
                    <el-table-column
                      prop="start"
                      width="100"
                      label="始码"
                      align="center"
                    >
                    </el-table-column>

                    <el-table-column
                      prop="end"
                      width="100"
                      align="center"
                      label="终码"
                    >
                    </el-table-column>

                    <el-table-column
                      prop="flow"
                      align="center"
                      label="水量（吨）"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="pirce"
                      align="center"
                      label="水价（元）"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="subsidy"
                      align="center"
                      label="补助量（吨）"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="production"
                      align="center"
                      label="产生水费（元）"
                    >
                    </el-table-column>
                  </el-table>

                  <div class="rate">电费明细</div>
                  <div class="water">
                    表计：101 楼层：12栋1单元2层01 抄表时间：2022-07-27 15:15:15
                  </div>
                  <el-table
                    :data="waterTable"
                    max-height="93"
                    style="width: 832px"
                    stripe
                    :cell-style="rowbg"
                    :header-cell-style="{
                      color: ' rgba(0, 0, 0, 1)',
                      background: 'rgba(240, 243, 247, 1)',
                    }"
                  >
                    <el-table-column
                      prop="start"
                      width="100"
                      label="始码"
                      align="center"
                    >
                    </el-table-column>

                    <el-table-column
                      prop="end"
                      width="100"
                      align="center"
                      label="终码"
                    >
                    </el-table-column>

                    <el-table-column
                      prop="flow"
                      align="center"
                      label="电量（度）"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="pirce"
                      align="center"
                      label="电价（元）"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="subsidy"
                      align="center"
                      label="补助量（度）"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="production"
                      align="center"
                      label="产生水费（元）"
                    >
                    </el-table-column>
                  </el-table>
                </el-dialog>

                <span
                  @click="handleDelete(scope.$index, scope.row)"
                  class="operate"
                >
                  删除
                </span>
              </template>
            </el-table-column>
          </el-table>
          <el-table
            :data="tableData"
            max-height="576"
            height="576"
            style="width: 1550px"
            stripe
            class="execlTable"
            :cell-style="rowbg"
            :header-cell-style="{
              color: ' rgba(0, 0, 0, 1)',
              background: 'rgba(240, 243, 247, 1)',
            }"
          >
            <el-table-column
              prop="orderNum"
              width="120"
              label="订单号"
              align="center"
            >
            </el-table-column>

            <el-table-column
              prop="state"
              width="100"
              align="center"
              label="状态"
            >
            </el-table-column>

            <el-table-column
              prop="room"
              width="160"
              align="center"
              label="房间"
            >
            </el-table-column>
            <el-table-column
              prop="electricity"
              align="center"
              width="130"
              label="电费（元）"
            >
            </el-table-column>
            <el-table-column
              prop="water"
              width="130"
              align="center"
              label="水费（元）"
            >
            </el-table-column>
            <el-table-column
              prop="imprest"
              align="center"
              width="150"
              label="收预付款（元）"
            >
            </el-table-column>
            <el-table-column
              prop="refund"
              width="150"
              align="center"
              label="退预付款（元）"
            >
            </el-table-column>
            <el-table-column
              prop="create"
              width="180"
              align="center"
              label="创建时间"
            >
            </el-table-column>
            <el-table-column
              prop="pay"
              width="180"
              align="center"
              label="支付时间"
            >
            </el-table-column>
          </el-table>
          <el-table
            :data="selectionTable"
            max-height="576"
            height="576"
            style="width: 1550px"
            stripe
            class="selectTable"
            :cell-style="rowbg"
            :header-cell-style="{
              color: ' rgba(0, 0, 0, 1)',
              background: 'rgba(240, 243, 247, 1)',
            }"
          >
            <el-table-column
              prop="orderNum"
              width="120"
              label="订单号"
              align="center"
            >
            </el-table-column>

            <el-table-column
              prop="state"
              width="100"
              align="center"
              label="状态"
            >
            </el-table-column>

            <el-table-column
              prop="room"
              width="160"
              align="center"
              label="房间"
            >
            </el-table-column>
            <el-table-column
              prop="electricity"
              align="center"
              width="130"
              label="电费（元）"
            >
            </el-table-column>
            <el-table-column
              prop="water"
              width="130"
              align="center"
              label="水费（元）"
            >
            </el-table-column>
            <el-table-column
              prop="imprest"
              align="center"
              width="150"
              label="收预付款（元）"
            >
            </el-table-column>
            <el-table-column
              prop="refund"
              width="150"
              align="center"
              label="退预付款（元）"
            >
            </el-table-column>
            <el-table-column
              prop="create"
              width="180"
              align="center"
              label="创建时间"
            >
            </el-table-column>
            <el-table-column
              prop="pay"
              width="180"
              align="center"
              label="支付时间"
            >
            </el-table-column>
          </el-table>
        </div>
        <div class="block">
          <el-pagination
            background
            @current-change="handleCurrentChange"
            current-page.sync="1"
            :page-size="8"
            :current-page="currentPage"
            layout="prev, pager, next, jumper"
            :total="tableData.length"
          >
          </el-pagination>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
import FileSaver from "file-saver";
import * as XLSX from "xlsx";

export default {
  name: "Inform",
  data() {
    return {
      // 当前页显示的数据
      data: [],
      // 总数据
      Tdata: [],
      // 查询出来的总数据
      inquireTable: [],
      // 显示的总数据
      tableData: [
        {
          orderNum: "116161656",
          state: "已入住",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2013.07.02 08:50:50",
          pay: "2013.07.02 08:50:50",
        },
        {
          orderNum: "116161656",
          state: "空房",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2014.07.02 08:50:50",
          pay: "2014.07.02 08:50:50",
        },
        {
          orderNum: "116161656",
          state: "空房",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2015.07.02 08:50:50",
          pay: "2015.07.02 08:50:50",
        },
        {
          orderNum: "116161656",
          state: "已锁定",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2016.07.02 08:50:50",
          pay: "2016.07.02 08:50:50",
        },
        {
          orderNum: "116161656",
          state: "脏房",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2014.07.02 08:50:50",
          pay: "2014.07.02 08:50:50",
        },
        {
          orderNum: "116161656",
          state: "脏房",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2012.07.02 08:50:50",
          pay: "2012.07.02 08:50:50",
        },
        {
          orderNum: "216161656",
          state: "保留房",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2021.07.02 08:50:50",
          pay: "2021.07.02 08:50:50",
        },
        {
          orderNum: "316161656",
          state: "空房",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2020.07.02 08:50:50",
          pay: "2020.07.02 08:50:50",
        },
        {
          orderNum: "416161656",
          state: "已住",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2019.07.02 08:50:50",
          pay: "2019.07.02 08:50:50",
        },
        {
          orderNum: "516161656",
          state: "已锁定",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2012.07.02 08:50:50",
          pay: "2012.07.02 08:50:50",
        },
        {
          orderNum: "616161656",
          state: "已入住",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2013.07.02 08:50:50",
          pay: "2013.07.02 08:50:50",
        },
        {
          orderNum: "716161656",
          state: "脏房",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2022.07.02 08:50:50",
          pay: "2022.07.02 08:50:50",
        },
        {
          orderNum: "816161656",
          state: "脏房",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2022.07.02 08:50:50",
          pay: "2022.07.02 08:50:50",
        },
        {
          orderNum: "916161656",
          state: "空房",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2022.07.02 08:50:50",
          pay: "2022.07.02 08:50:50",
        },
        {
          orderNum: "106161656",
          state: "已锁定",
          room: "17栋1单元2层04房",
          electricity: "2.09",
          water: "0.00",
          imprest: "20.00",
          refund: "20.00",
          create: "2022.07.02 08:50:50",
          pay: "2022.07.02 08:50:50",
        },
      ],
      // 多选框按钮勾选的数据
      selectionTable: [],

      options: [
        {
          value: "已入住",
          label: "已入住",
        },
        {
          value: "已锁定",
          label: "已锁定",
        },
        {
          value: "空房",
          label: "空房",
        },
        {
          value: "脏房",
          label: "脏房",
        },
        {
          value: "保留房",
          label: "保留房",
        },
      ],

      state: "",
      value: "",
      payTime: "",
      creationTime: "",
      dialogVisible: false,
      waterTable: [
        {
          start: 36,
          end: 36,
          flow: 20,
          pirce: 2.0,
          subsidy: 5,
          production: 2,
        },
      ],
      currentPage: 1,
    };
  },
  mounted() {
    document.getElementsByClassName(
      "el-pagination__jump"
    )[0].childNodes[0].nodeValue = "跳转到";

    this.handleCurrentChange(this.currentPage);
    this.Tdata = this.tableData;
  },
  methods: {
    // 导出表格
    excel(id) {
      let xlsxParam = { raw: true };
      /* generate workbook object from table */
      let wb = XLSX.utils.table_to_book(document.querySelector(id));
      /* get binary string as output */
      let wbout = XLSX.write(wb, {
        bookType: "xlsx",
        bookSST: true,
        type: "array",
      });
      try {
        FileSaver.saveAs(
          new Blob([wbout], { type: "application/octet-stream" }),
          "订单管理.xlsx"
        );
      } catch (e) {
        if (typeof console !== "undefined") console.log(e, wbout);
      }
      return wbout;
    },
    exportExcel() {
      let selectId = ".selectTable";
      let execlTable = ".execlTable";
      if (this.selectionTable.length > 0) {
        this.excel(selectId);
      } else {
        this.excel(execlTable);
      }
    },

    allRead($event, index) {
      this.className = this.className.map((item) => (item = ""));
      this.className[index] = "active";
    },
    rowbg(row) {
      if (row.rowIndex % 2 != 0) {
        return { background: "rgba(240, 243, 247, 1)", "border-radius": "5px" };
      }
    },

    handleCurrentChange(val) {
      this.currentPage = val;
      if (this.tableData.length >= 8) {
        this.data = this.tableData.slice((val - 1) * 8, val * 8);
      } else {
        this.data = this.tableData;
      }

      // console.log(`当前页: ${val}`);
    },

    // 表格操作
    handleEdit(index, row) {
      console.log(index, row);
      this.dialogVisible = true;
    },

    handleDelete(index, row) {
      // console.log(index, row);
      this.$confirm("确认删除？")
        .then((res) => {
          if (res == "confirm") {
            let data = this.tableData.filter((item) => {
              return item.orderNum !== row.orderNum;
            });
            this.tableData = data;
            this.Tdata = this.Tdata.filter((item) => {
              return item.orderNum !== row.orderNum;
            });
          }
          // console.log(this.currentPage);
          if (this.data.length <= 1) {
            this.currentPage = this.currentPage - 1;
          }
          this.handleCurrentChange(this.currentPage);
        })
        .catch((res) => {
          console.log(res);
        });
    },

    //查询
    inquire() {
      if (this.value == false) {
        this.tableData = this.Tdata;
        this.state = "";
      } else {
        this.state = "";
        let quireData = this.Tdata.filter((item) => {
          if (item.orderNum.includes(this.value)) {
            return item.orderNum;
          }
        });
        this.inquireTable = quireData;
        this.tableData = quireData;
      }
      this.currentPage = 1;

      this.handleCurrentChange(this.currentPage);
      console.log(this.Tdata);
      console.log(this.tableData);
    },

    handleClose(done) {
      this.dialogVisible = false;
    },

    // 支付时间
    timePay() {
      // console.log(this.payTime);
      if (this.value == "") {
        this.state = "";
        let reg = new RegExp("-", "g");
        let startTime = new Date(this.payTime[0].replace(reg, "/"));
        let endTime = new Date(this.payTime[1].replace(reg, "/"));
        const quireData = this.Tdata.filter((item) => {
          let nowTime = new Date(item.pay.substr(0, 10).replace(reg, "/"));
          return nowTime >= startTime && nowTime <= endTime;
        });

        this.inquireTable = quireData;
        this.tableData = quireData;
        this.currentPage = 1;
        this.handleCurrentChange(this.currentPage);
      } else {
        this.state = "";
        let reg = new RegExp("-", "g");
        let startTime = new Date(this.payTime[0].replace(reg, "/"));
        let endTime = new Date(this.payTime[1].replace(reg, "/"));

        const quireData = this.inquireTable.filter((item) => {
          let nowTime = new Date(item.pay.substr(0, 10).replace(reg, "/"));
          return nowTime >= startTime && nowTime <= endTime;
        });
        this.inquireTable = quireData;
        this.tableData = quireData;
        this.currentPage = 1;
        this.handleCurrentChange(this.currentPage);
      }
    },
    // 创建时间
    timeCreation() {
      this.state = "";
      // console.log(this.creationTime);
      let reg = new RegExp("-", "g");
      let startTime = new Date(this.creationTime[0].replace(reg, "/"));
      let endTime = new Date(this.creationTime[1].replace(reg, "/"));
      const quireData = this.Tdata.filter((item) => {
        let nowTime = new Date(item.create.substr(0, 10).replace(reg, "/"));
        return nowTime >= startTime && nowTime <= endTime;
      });
      this.inquireTable = quireData;
      this.tableData = quireData;
      this.currentPage = 1;
      this.handleCurrentChange(this.currentPage);
    },

    // 挑选状态
    stateSel() {
      console.log(this.payTime.length > 0, this.creationTime.length > 0);
      if (
        this.value == false &&
        this.payTime.length == 0 &&
        this.creationTime.length == 0
      ) {
        this.tableData = this.Tdata.filter((item) => {
          return item.state == this.state;
        });
      } else if (this.payTime.length > 0 || this.creationTime.length > 0) {
        this.tableData = this.inquireTable.filter((item) => {
          return item.state == this.state;
        });
      } else {
        console.log(this.inquireTable);
        this.tableData = this.inquireTable.filter((item) => {
          return item.state == this.state;
        });
      }
      // this.tableData = this.Tdata.filter((item) => {
      //   return item.state == this.state;
      // });
      this.currentPage = 1;
      this.handleCurrentChange(this.currentPage);
      console.log(this.state);
    },

    // 多选框按钮操作
    handleSelectionChange(selection) {
      // console.log(selection);
      this.selectionTable = selection;
    },
  },
};
</script>

<style lang="scss" scoped>
.inform /deep/ .el-card {
  width: 1612px;
  height: 950px;
  box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  border-radius: 8px;
  .clearfix {
    height: 96px;
    width: 100%;
    border-bottom: 1px solid rgba(204, 204, 204, 1);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .inform-title {
      width: 96px;
      height: 36px;
      color: rgba(0, 0, 0, 1);
      font-size: 24px;
      font-weight: 500;
      margin-left: 33px;
    }
    .inform-header {
      display: flex;
      margin-right: 29px;
      .el-button {
        margin-left: 9px;
        background-color: rgba(41, 109, 227, 1);
      }
    }
  }
  .inform-body {
    .order-top {
      display: flex;
      align-items: center;
      padding: 33px 29px 34px 33px;
      font-size: 16px;
      font-weight: 400;
      color: #000;
      .el-button {
        background-color: rgba(41, 109, 227, 1);
        color: #fff;
        margin-left: 9px;
      }
      .paydate {
        margin: 0 0 0 44px;
        .el-date-editor {
          margin-left: 7px;
          width: 236px;
          .el-range__icon {
            display: none;
          }
        }
      }
      .state {
        margin-left: 30px;
        .el-input {
          width: 112px;
        }
      }
      .export {
        width: 94px;
        height: 32px;
        opacity: 1;
        color: #fff;
        text-align: center;
        line-height: 32px;
        background: rgba(41, 109, 227, 1);
        cursor: pointer;
        border-radius: 2px;
        margin-left: 221px;
      }
    }
    .inform-table {
      .execlTable,
      .selectTable {
        display: none;
      }
      .el-table {
        font-weight: 400;
        font-size: 16px;
        color: rgba(0, 0, 0, 1);
        margin: 0 auto;
        .el-table__header-wrapper {
          border-radius: 5px;
          .el-checkbox.is-checked {
            .el-checkbox__inner {
              background-color: rgba(41, 109, 227, 1);
            }
          }

          .el-checkbox__input.is-checked,
          .el-checkbox__input.is-indeterminate {
            .el-checkbox__inner {
              background-color: rgba(41, 109, 227, 1);
            }
          }
        }
        tr {
          height: 64px;
          td {
            .cell {
              .el-checkbox.is-checked {
                .el-checkbox__inner {
                  background-color: rgba(41, 109, 227, 1);
                }
              }
              .is-indeterminate {
                .el-checkbox__inner {
                  background-color: rgba(41, 109, 227, 1);
                }
              }
              .operate {
                color: rgba(41, 109, 227, 1);
                cursor: pointer;
                font-size: 16px;
                font-weight: 400;
                padding: 0 5px;
              }
              .el-dialog__wrapper {
                overflow: hidden;
                .el-dialog {
                  width: 968px !important;
                  margin-top: 126px !important;
                  height: 914px;
                  opacity: 1;
                  background: rgba(255, 255, 255, 1);
                  box-shadow: none;
                  .el-dialog__header {
                    height: 83px;
                    border-bottom: 1px solid rgba(230, 230, 230, 1);

                    span {
                      float: left;
                      font-size: 20px;
                      font-weight: 500;
                      color: #000;
                    }

                    .el-dialog__close {
                      width: 35px;
                      height: 35px;
                      &::before {
                        font-size: 24px;
                        color: #000;
                      }
                    }
                  }
                  .el-dialog__body {
                    padding: 0 38px;
                    .userinfo {
                      font-size: 20px;
                      font-weight: 500;
                      color: rgba(0, 0, 0, 1);
                      text-align: left;
                      margin-top: 15px;
                    }
                    .info {
                      display: flex;
                      .user {
                        .name {
                          text-align: left;
                          padding: 12px 0;
                        }
                        .el-input {
                          width: 283px;
                          height: 38px;
                          opacity: 1;
                          margin-right: 81px;
                          .el-input__inner {
                            color: #000;
                          }
                        }
                      }
                    }
                    .rate {
                      font-size: 20px;
                      font-weight: 500;
                      color: rgba(0, 0, 0, 1);
                      text-align: left;
                      margin: 15px 0;
                    }
                    .water {
                      text-align: left;
                      font-size: 16px;
                      font-weight: 400;
                      color: rgba(0, 0, 0, 1);
                    }
                    .el-table {
                      margin: 10px 0;
                      tr {
                        height: 48px;
                      }
                      .el-table__body-wrapper {
                        overflow: visible;
                      }
                    }
                  }
                }
              }

              .el-dialog__title {
                color: rgba(41, 109, 227, 1);
                cursor: pointer;
                padding: 10px 18px 0 18px;
              }
            }
          }
          .el-checkbox__inner {
            width: 18px;
            height: 18px;
            &::after {
              transform: rotate(45deg) scaleY(1.5);
              top: 3px;
              left: 5px;
            }
          }
        }
        th {
          font-weight: 400;
        }
      }
    }
    .block {
      height: 36px;
      margin: 66px 29px 0 0;
      float: right;
      .el-pagination {
        padding: 0;
        button {
          width: 36px;
          background: #fff;
          color: rgba(0, 0, 0, 1);
          height: 36px;
          font-size: 14px;
          border: 1px solid rgba(112, 112, 112, 1);
          border-radius: 8px;
        }
        ul {
          .active {
            background: #fff;
            color: rgba(0, 97, 255, 1);
            border: 1px solid rgba(0, 97, 255, 1);
            box-sizing: border-box;
          }
          .el-icon {
            border: none;
          }
          li {
            background: #fff;
            color: rgba(0, 0, 0, 1);
            width: 36px;
            height: 36px;
            font-size: 14px;
            border: 1px solid rgba(112, 112, 112, 1);
            border-radius: 8px;
            line-height: 36px;
          }
        }
        .el-pagination__jump {
          color: rgba(0, 0, 0, 1);
          font-size: 16px;
          margin-left: 10px;
          font-weight: 400;
          height: 36px;
          .el-input {
            width: 65px;
            height: 36px;
            margin: 0 10px;
            input {
              width: 65px;
              height: 36px;
              border: 1px solid rgba(0, 0, 0, 1);
              border-radius: 8px;
            }
          }
        }
      }
    }
  }
}
.box-card {
  /deep/ .el-card__header {
    padding: 0;
  }
  /deep/ .el-card__body {
    padding: 0;
  }
}
</style>
<style lang="scss">
.el-message-box__wrapper {
  .el-button--primary {
    background-color: #296de3;
  }
}
</style>