<!--
 * @Descripttion:
 * @version:
 * @Author: kBank
 * @Date: 2022-10-24 15:45:01
-->
<template>
  <div class="page">
    <topBar v-if="topList.length > 0"
            :top-list="topList"
            :moren="moren" />
    <div class="main">
      <el-form ref="select"
               :model="select"
               label-width="100px"
               style="background-color: #fff;padding: 0px 10px 0 10px">
        <el-row>
          <!-- 一层 -->
          <el-col :span="4">
            <el-form-item :label="'会员编号'">
              <el-input v-model="select.memberCode"
                        clearable />
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="'真实奖衔'">
              <el-select v-model="select.pkAwards"
                         clearable
                         placeholder="">
                <el-option v-for="item in awardsList"
                           :key="item.pkId"
                           :label="item.awardsName"
                           :value="item.pkId" />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="'关系类型'">
              <el-select v-model="select.relaType"
                         clearable
                         placeholder="">
                <el-option v-for="item in kdzcList"
                           :key="item.value"
                           :label="item.label"
                           :value="item.value" />
              </el-select>
            </el-form-item>
          </el-col>
          <!--          <el-col :span="4">-->
          <!--            <el-form-item :label="'安置部门'">-->
          <!--              <el-select-->
          <!--                v-model="select.placeDept"-->
          <!--                clearable-->
          <!--                placeholder=""-->
          <!--              >-->
          <!--                <el-option-->
          <!--                  v-for="item in deptList"-->
          <!--                  :key="item.deptId"-->
          <!--                  :label="item.deptName"-->
          <!--                  :value="item.deptId"-->
          <!--                />-->
          <!--              </el-select>-->
          <!--            </el-form-item>-->
          <!--          </el-col>-->
          <el-col :span="4">
            <el-form-item :label="'血缘代数'">
              <el-input v-model="select.consanguinityAlgebra"
                        clearable />
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="'安置层数'">
              <el-input v-model="select.resettleLevel"
                        clearable />
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="'安置位置'">
              <el-select v-model="select.placeDept"
                         clearable
                         placeholder="">
                <el-option v-for="item in deptList"
                           :key="item.value"
                           :label="item.label"
                           :value="item.value" />
              </el-select>
            </el-form-item>
          </el-col>
          <!-- <el-col :span="4">
            <el-form-item :label="'奖金收益'">
              <el-input v-model="select.realIncomeTotal" clearable />
            </el-form-item>
          </el-col> -->
          <el-col :span="4">
            <el-form-item :label="'查询日期'"
                          prop="creationTime"
                          class="el-check_s">
              <el-date-picker v-model="creationTime3"
                              value-format="yyyy-MM-dd"
                              type="date"
                              :placeholder="'请选择'"
                              @change="changeTime2" />
            </el-form-item>
          </el-col>
          <el-col :span="4"
                  style="margin-left: 30px">
            <el-button type="primary"
                       style="background-color: #c8161d"
                       @click="getDataList"> {{ '搜索' }}</el-button>
            <el-button @click="reset"> {{ '重置' }}</el-button>
          </el-col>

        </el-row>
      </el-form>
      <div class="maintop">
        <div class="mainbtn">
          <el-button size="small"
          v-hasButtons="['teamInfoExport']"
                     @click="exports"
                     class="thebtn2"> {{ '导出' }}</el-button>
        </div>
        <div>
          <el-dropdown :hide-on-click="false">
            <span class="el-dropdown-link kuang"
                  style="margin-right: 10px">
              {{'筛选字段'}}<i class="el-icon-arrow-down el-icon--right"></i>
            </span>
            <el-dropdown-menu slot="dropdown"
                              style="overflow: auto;height: 70%">
              <el-dropdown-item v-for="item in menuList"
                                :key="item.id">
                <el-checkbox v-model="item.checked"
                             @change="getMenu($event,item.id)">{{ item.text }}</el-checkbox></el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
        </div>
      </div>
      <div class="maintable">
        <div class="itemTrading">
          <el-table ref="table"
                    :data="tableData.censusSummaryList"
                    style="width: 100%"
                    :header-cell-style="{ background: '#EEEEEE' }" v-loading="loading"
                    :row-class-name="tableRowClassName"
                    :summary-method="getSummaries"
                    show-summary
                    height="720px"
                    @selection-change="handleSelectionChange">
            <el-table-column type="selection"
                             width="55" />
            <el-table-column v-if="allTxt.memberCode"
                             align="center"
                             prop="memberCode"
                             width="130"
                             :label="'会员编号'" />
            <el-table-column v-if="allTxt.memberName"
                             align="center"
                             prop="memberName"
                             width="130"
                             :label="'会员姓名'" />
            <el-table-column v-if="allTxt.pkAwardsStr"
                             align="center"
                             prop="pkAwardsStr"
                             width="130"
                             :label="'真实奖衔'" />
            <el-table-column align="center"
                             prop="resettleLevel"
                             width="130"
                             v-if="menuList[1].checked==true&&allTxt.resettleLevel"
                             :label="'安置层数'" />
            <el-table-column align="center"
                             prop="placeDeptStr"
                             width="130"
                             :label="'安置位置'"
                             v-if="menuList[3].checked==true&&allTxt.placeDeptStr" />
            <el-table-column align="center"
                             v-if="allTxt.placeParentCode"
                             prop="placeParentCode"
                             width="130"
                             :label="'安置编号'" />
            <el-table-column align="center"
                             prop="consanguinityAlgebra"
                             width="130"
                             v-if="menuList[2].checked==true&&allTxt.consanguinityAlgebra"
                             :label="'血缘代数'" />
            <el-table-column align="center"
                             prop="afirstPv"
                             width="130"
                             :label="'左区首购业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[4].checked==true&&allTxt.afirstPv" />
            <el-table-column align="center"
                             prop="bfirstPv"
                             width="130"
                             :label="'右区首购业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[5].checked==true&&allTxt.bfirstPv" />
            <el-table-column align="center"
                             prop="consanguinityFirstPv"
                             width="130"
                             :label="'血缘首购业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[6].checked==true&&allTxt.consanguinityFirstPv" />
            <el-table-column align="center"
                             prop="repASumPv"
                             width="130"
                             :label="'左区复购业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[7].checked==true&&allTxt.repASumPv" />
            <el-table-column align="center"
                             prop="repBSumPv"
                             width="130"
                             :label="'右区复购业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[8].checked==true&&allTxt.repBSumPv" />
            <el-table-column align="center"
                             prop="consanguinityRepBSumPv"
                             width="130"
                             :label="'血缘复购业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[9].checked==true&&allTxt.consanguinityRepBSumPv" />
            <el-table-column align="center"
                             prop="aSumRealPv"
                             width="130"
                             :label="'左区真实业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[10].checked==true&&allTxt.aSumRealPv" />
            <el-table-column align="center"
                             prop="bSumRealPv"
                             width="130"
                             :label="'右区真实业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[11].checked==true&&allTxt.bSumRealPv" />
            <el-table-column align="center"
                             prop="consanguinityRealPv"
                             width="130"
                             :label="'血缘真实业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[12].checked==true&&allTxt.consanguinityRealPv" />
            <!-- <el-table-column
              align="center"
              prop=""
              width="130"
              :label="'奖金收益'+'($)'"
              :formatter="stateFormat"
              v-if="menuList[13].checked==true"
            /> -->
            <el-table-column align="center"
                             prop="bonusTeamProportion"
                             width="130"
                             :label="'奖金团队占比'+'(%)'"
                             v-if="menuList[15].checked==true&&allTxt.bonusTeamProportion" />
            <el-table-column align="center"
                             prop="bonusLargeMarketProportion"
                             width="130"
                             :label="'奖金大盘占比' +('%')"
                             v-if="menuList[14].checked==true&&allTxt.bonusLargeMarketProportion" />
            <el-table-column align="center"
                             prop="directPushPeopleNumber"
                             width="130"
                             :label="'直推人数'"
                             v-if="menuList[16].checked==true&&allTxt.directPushPeopleNumber" />
            <el-table-column align="center"
                             prop="directPushPeoplePv"
                             width="130"
                             :label="'直推业绩'"
                             :formatter="stateFormat"
                             v-if="menuList[17].checked==true&&allTxt.directPushPeoplePv" />
            <el-table-column align="center"
                             prop="repurchaseAmount"
                             width="130"
                             :label="'复购金额'+('$')"
                             :formatter="stateFormat"
                             v-if="menuList[18].checked==true&&allTxt.repurchaseAmount" />
            <el-table-column align="center"
                             prop="repurchasePv"
                             width="130"
                             :label="'复购业绩'"
                             :formatter="stateFormat"
                             v-if="menuList[19].checked==true&&allTxt.repurchasePv" />
            <el-table-column align="center"
                             prop="repurchaseIntegral"
                             width="130"
                             :label="'复购积分'"
                             v-if="menuList[20].checked==true&&allTxt.repurchaseIntegral" />
            <el-table-column align="center"
                             prop="benefitAmount"
                             width="130"
                             :label="'福利金额'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[21].checked==true&&allTxt.benefitAmount" />
            <el-table-column align="center"
                             prop="benefitPv"
                             width="130"
                             :label="'福利业绩'+`(${isLocals()})`"
                             :formatter="stateFormat"
                             v-if="menuList[22].checked==true&&allTxt.benefitPv" />
            <el-table-column align="center"
                             prop="welfarePoints"
                             width="130"
                             :label="'福利积分'"
                             v-if="menuList[23].checked==true&&allTxt.welfarePoints" />
            <el-table-column align="center"
                             prop="memberTransferCount"
                             width="130"
                             :label="'转账次数'"
                             v-if="menuList[24].checked==true&&allTxt.memberTransferCount" />
            <el-table-column align="center"
                             prop="transferAmount"
                             width="130"
                             :label="'转账金额'+'($)'"
                             :formatter="stateFormat"
                             v-if="menuList[25].checked==true&&allTxt.transferAmount" />
            <el-table-column align="center"
                             prop="rechargeAmount"
                             width="130"
                             :label="'充值金额'+'($)'"
                             :formatter="stateFormat"
                             v-if="menuList[26].checked==true&&allTxt.rechargeAmount" />
            <el-table-column align="center"
                             prop="withdrawalNumber"
                             width="130"
                             :label="'提现次数'"
                             v-if="menuList[27].checked==true&&allTxt.withdrawalNumber" />
            <!-- <el-table-column align="center"
                             prop="withdrawalAmount"
                             width="130"
                             :label="'提现金额'+'($)'"
                             v-if="allTxt.withdrawalAmount" /> -->
            <el-table-column align="center"
                             prop="withdrawalAmount"
                             width="130"
                             :label="'提现金额'+'($)'"
                             v-if="menuList[28].checked==true&&allTxt.withdrawalAmount" />
            <el-table-column align="center"
                             prop="lastLoginTime"
                             width="130"
                             :label="'最近登录'"
                             v-if="menuList[29].checked==true&&allTxt.lastLoginTime" />
            <el-table-column align="center"
                             prop="loginNumber"
                             width="130"
                             :label="'登录次数'"
                             v-if="menuList[13].checked==true&&allTxt.loginNumber" />
            <el-table-column v-if="allTxt.creationTime"
                             align="center"
                             prop="creationTime"
                             width="200"
                             :label="'创建日期'" />
            <el-table-column v-if="allTxt.payTime"
                             align="center"
                             prop="payTime"
                             width="200"
                             :label="'支付日期'" />
            <el-table-column v-if="allTxt.directPushNumber"
                             align="center"
                             prop="directPushNumber"
                             width="120"
                             :label="'修改直推次数'" />
          </el-table>
        </div>
        <!--        <div class="heji">-->
        <!--          <div-->
        <!--            v-for="item in menuList"-->
        <!--            v-if="item.checked && item.id != 0 && item.id > 13"-->
        <!--            :key="item.id"-->
        <!--            class="dis"-->
        <!--          >-->
        <!--            <div>{{ item.text }}</div>-->
        <!--            <div>{{ tableData[item.prop] }}</div>-->
        <!--          </div>-->
        <!--        </div>-->
      </div>
    </div>
    <pagination v-show="total>0"
                :total="total"
                :page.sync="queryParams.pageNum"
                :limit.sync="queryParams.pageSize"
                @pagination="getDataList" />
  </div>
</template>

<script>
import topBar from '@/components/topBar'
import * as api from '@/api/settle.js'
import * as api_s from '@/api/product.js'
import * as apis from '@/api/site.js'
import { classifyUpdate, classifySave } from '@/api/product'
import * as log from '@/api/logistics'
import { getcountryAllList } from '@/api/exchangerate'
import { bonusSource } from '@/api/bonus'
import * as del from '@/api/delivery'
import { getPlacedeptList } from '@/api/specialBusiness'
import { deptAll, exportClassIfy, memberTeamInfo } from '@/api/product.js'
import { isLocal, isLocals, stateFormat } from '@/utils/numberToCurrency'
import { getAwardsListChiose } from '@/api/level'
import store from '@/store'
import { getRoleMenu } from '@/api/notice'

export default {
  name: 'Bzpz',
  computed: {
    store() {
      return store
    },
  },
  components: {
    topBar,
  },
  filters: {
    isAgree(val) {
      if (!val) {
        return '允许'
      } else {
        return '禁止'
      }
    },
  },
  data() {
    return {
      loading:false,
      kdzcList: [
        {
          value: '1',
          label: '血缘',
        },
        {
          value: '2',
          label: '安置',
        },
      ], // 注册类型
      regionParams: {
        label: 'name',
        value: 'id',
        children: 'children',
        expandTrigger: 'hover',
      },
      isActive: false,
      typeList: [
        {
          value: 0,
          label: '前台',
        },
        {
          value: 1,
          label: '后台',
        },
      ],
      digList: [
        {
          value: 0,
          label: '允许',
        },
        {
          value: 1,
          label: '禁止',
        },
      ],
      menuList: [
        {
          id: 0,
          text: '全选',
          checked: false,
        },
        {
          id: 1,
          text: '安置层数',
          checked: true,
        },
        {
          id: 2,
          text: '血缘代数',
          checked: true,
        },
        {
          id: 3,
          text: '安置位置',
          checked: true,
          prop: '',
        },
        {
          id: 4,
          text: '左区首购业绩',
          checked: true,
          prop: '',
        },
        {
          id: 5,
          text: '右区首购业绩',
          checked: true,
          prop: '',
        },
        {
          id: 6,
          text: '血缘首购业绩',
          checked: true,
          prop: '',
        },
        {
          id: 7,
          text: '左区复购业绩',
          checked: true,
          prop: '',
        },
        {
          id: 8,
          text: '右区复购业绩',
          checked: true,
          prop: '',
        },
        {
          id: 9,
          text: '血缘复购业绩',
          checked: true,
        },
        {
          id: 10,
          text: '左区真实业绩',
          checked: true,
          prop: '',
        },
        {
          id: 11,
          text: '右区真实业绩',
          checked: true,
          prop: 'priceDollar',
        },
        {
          id: 12,
          text: '血缘真实业绩',
          checked: true,
          prop: 'postageDollar',
        },
        {
          id: 30,
          text: '登录次数',
          checked: true,
          prop: 'lastInstanceRemark',
        },
        {
          id: 14,
          text: '奖金团队占比',
          checked: true,
          prop: '',
        },
        {
          id: 15,
          text: '奖金大盘占比',
          checked: true,
          prop: '',
        },
        {
          id: 16,
          text: '直推人数',
          checked: true,
          prop: 'creationTime',
        },
        {
          id: 17,
          text: '直推业绩',
          checked: true,
          prop: 'payTime',
        },
        {
          id: 18,
          text: '复购金额',
          checked: true,
          prop: 'deliveryTime',
        },
        {
          id: 19,
          text: '复购业绩',
          checked: true,
          prop: 'deliveryWayStr',
        },
        {
          id: 20,
          text: '复购积分',
          checked: true,
          prop: '',
        },
        {
          id: 21,
          text: '福利金额',
          checked: true,
          prop: 'tranTypeStr',
        },
        {
          id: 22,
          text: '福利业绩',
          checked: true,
          prop: 'approvalStatus',
        },
        {
          id: 23,
          text: '福利积分',
          checked: true,
          prop: 'payTypeStr',
        },
        {
          id: 24,
          text: '转账次数',
          checked: true,
          prop: 'creationTime',
        },
        {
          id: 25,
          text: '转账金额',
          checked: true,
          prop: 'creatorName',
        },
        {
          id: 26,
          text: '充值金额',
          checked: true,
          prop: 'lastInstanceDate',
        },
        {
          id: 27,
          text: '提现次数',
          checked: true,
          prop: 'lastInstanceApprover',
        },
        {
          id: 28,
          text: '提现金额',
          checked: true,
          prop: 'withdrawalAmount',
        },
        {
          id: 29,
          text: '最近登录',
          checked: true,
          prop: 'lastLoginTime ',
        },
       
      ],
      creationTime: [],
      creationTime1: [],
      creationTime2: [],
      creationTime3: '',
      select: {},
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 50,
      },
      addOrEdit: '',
      total: 0,
      dialogVisible: false,
      tableData: {
        censusSummaryList: [],
      },
      moren: 'teamInfo',
      topList: [
        {
          name: '团队信息',
          path: 'teamInfo',
        },
      ],
      form: {
        name: '',
      },
      areaData: [],
      rules: {
        name: [
          { required: true, message: '请输入规格类型', trigger: 'blur' },
        ],
      },
      shoppingAddress: [],
      acList: [],
      verList: [],
      memberList: [],
      yieldList: [],
      yieldStatus: [],
      countryList: [],
      orderTypeList: [],
      pkMemberTeam: [],
      pkVertex: [],
      typeId: '',
      paywayList: [],
      presaleStatusList: [],
      orderStatusList: [],
      deptList: [],
      transportTypeList: [],
      gyList: [],
      awardsList: [],
      allTxt: {},
    }
  },
  mounted() {
    // 获取下拉
    this.getData()
    // 获取列表
    this.getDataList()
    this.getUserRole()
  },
  methods: {
    getUserRole() {
      getRoleMenu('TeamInfo').then((res) => {
        let obj = {}
        res.data.forEach((item) => {
          obj[item] = 1
        })
        this.allTxt = obj
        this.$nextTick(() => {
          this.$refs.table.doLayout()
        })
      })
    },
    isLocals,
    isLocal,
    stateFormat,
    exports() {
      this.$confirm('是否确认导出所有数据项?', '警告', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      }).then((_) => {
        this.download(
          '/member/manager/member/member-team-info-export',
          Object.assign({}, this.queryParams, this.select),
          `团队信息${new Date().getTime()}.xlsx`
        )
      })
      // this.download(
      //   "/member/manager/member/member-team-info-export",
      //   { ...this.queryParams },
      //   `${'团队信息'}-${new Date().getTime()}.xlsx`
      // );
    },
    handleChange(res) {
      this.form.recProvince = res[0]
      this.form.recCity = res[1]
      this.form.recCounty = res[2]
    },
    // 展开折叠
    changeActive() {
      this.isActive = !this.isActive
    },
    reset() {
      this.select = {}
      this.pkVertex = []
      this.pkMemberTeam = []
      this.typeId = ''
      this.creationTime3 = ''
      this.getDataList()
    },
    getMenu(e, id) {
      if (e && id == 0) {
        this.menuList.forEach((item) => {
          this.$set(item, 'checked', true)
        })
      } else if (!e && id == 0) {
        this.menuList.forEach((item) => {
          this.$set(item, 'checked', false)
        })
      }
    },
    getData() {
      getAwardsListChiose().then((res) => {
        this.awardsList = res.rows
      })
      // 获取左区右区
      getPlacedeptList().then((res) => {
        this.deptList = res.data
      })
    },
    changeTime(val) {
      this.select.startCreationTime = val[0]
      this.select.endCreationTime = val[1]
    },
    changeTime1(val) {
      this.select.startPayTime = val[0]
      this.select.endPayTime = val[1]
    },
    changeTime2(val) {
      this.select.queryDate = val
    },
    changeTime3(val) {
      this.select.startCreationTime = val[0]
      this.select.endCreationTime = val[1]
    },
    // 点击修改
    toFixed(id) {
      this.addOrEdit = false
      this.dialogVisible = true
      this.$router.push({
        path: 'noticeList/details',
        query: {
          pkId: id,
        },
      })
    },
    getSummaries(param) {
      const { columns, data } = param
      const sums = []
      columns.forEach((column, index) => {
        if (index === 0) {
          sums[index] = ''
          return
        }
        if (index === 1) {
          sums[index] = ''
          return
        }
        const values = data.map((item) => Number(item[column.property]))
        if (!values.every((value) => isNaN(value))) {
          sums[index] = values.reduce((prev, curr) => {
            const value = Number(curr)
            if (!isNaN(value)) {
              return
            } else {
              return
            }
          }, 0)
          // sums[index] += ' 元'
        } else {
          sums[index] = ''
        }
      })

      return sums
    },
    // 删除
    handleDelete(id) {
      this.$confirm('确认删除?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      }).then(() => {
        api.classifyDel(id).then((res) => {
          this.getDataList()
        })
      })
    },
    onSubmit(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          let url = ''
          if (this.addOrEdit == true) {
            url = classifySave
          } else {
            url = classifyUpdate
          }
          url(this.form).then((res) => {
            if (res.code == 200) {
              this.$message({
                message: res.msg,
                type: 'success',
              })
              this.dialogVisible = false
              // 充值数据
              this.$refs[formName].resetFields()
              // 获取列表
              this.getDataList()
            }
          })
        } else {
          return false
        }
      })
    },
    handleClose() {
      this.dialogVisible = false
      this.$refs['form'].clearValidate()
      this.$refs['form'].resetFields()
    },
    openDig() {
      // 导出撤单列表
      this.$router.push({
        path: 'noticeList/details',
      })
    },
    getDataList() {
      this.loading = true
      if (this.creationTime3 == '' || this.creationTime3 == null) {
        this.select.queryDate = ''
      }
      api_s
        .memberTeamInfo(Object.assign({}, this.queryParams, this.select))
        .then((res) => {
          this.loading = false
          this.tableData.censusSummaryList = res.rows
          this.total = res.total
        })
    },
    handleSelectionChange(val) {},
    handleExport() {
      this.$confirm('是否确认导出所有数据项?', '警告', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
      }).then((_) => {
        // this.download(
        //   '/member/manager/trade/export',
        //   Object.assign({}, this.queryParams, this.select),
        //   `撤单列表${new Date().getTime()}.xlsx`
        // )
      })
    },
    tableRowClassName({ row, rowIndex }) {
      if (rowIndex % 2 == 1) {
        return 'warning-row'
      } else if (rowIndex % 2 == 0) {
        return 'success-row'
      }
      return ''
    },
  },
}
</script>
<style scoped lang="scss">
::v-deep .el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 100%;
}
::v-deep .el-dropdown-menu {
  height: 1000px !important;
  overflow: auto !important;
}
::v-deep .el-input__inner {
  //text-align: center;
}
::v-deep .el-check_s .el-input__inner {
  width: 100%;
}
::v-deep .el-cascader {
  width: 100%;
}
//缩短间隔
::v-deep .el-form-item {
  margin-bottom: 10px;
}

::v-deep .el-table .warning-row {
  background: #f9f9f9;
}

::v-deep .el-table .success-row {
  background: #ffffff;
}
::v-deep .el-table thead {
  color: #000000;
}
::v-deep .el-select {
  width: 100%;
}
.uploadIcon ::v-deep .el-upload--picture-card {
  display: none !important; /* 上传按钮隐藏 */
}
.page {
  padding: 10px 20px;
  background: #f9f9f9;
  font-size: 14px;
  .main {
    background: #f9f9f9;
    overflow: hidden;
    //border-radius: 8px;
    //box-shadow: 0px 2px 20px 0px rgba(238, 238, 238, 0.5);
    //padding-top: 20px;
    .maintop {
      display: flex;
      //padding: 10px 0;
      justify-content: space-between;
      align-items: center;
      .mainbtn {
        .thebtn1 {
          background: #3181e5;
          color: #ffffff;
        }
        .thebtn2 {
          width: 68px;
          height: 32px;
          background: #ffad41;
          color: #ffffff;
        }
      }
      .maintitle {
        font-size: 10px;
        font-family: MicrosoftYaHei;
        color: #999999;
      }
    }
  }
  .tem {
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      width: 28px;
      height: 20px;
      margin-right: 3px;
    }
  }
  .isRed {
    color: #ed1d25;
  }
  .isGreen {
    color: #1ab62b;
  }
  .bgImg {
    width: 48px;
    height: 48px;
  }
}
.openClose {
  margin-right: 10px;
  color: #666666;
  text-align: center;
  padding-bottom: 10px;
}
.kuang {
  padding: 5px 20px;
  background: rgba(255, 255, 255, 0);
  border-radius: 4px;
  border: 1px solid #cccccc;
}
.heji {
  margin-top: 10px;
  .dis {
    display: flex;
    justify-content: right;
    padding: 5px 10px;
    font-size: 14px;
    color: #333333;
    :nth-child(1) {
      font-size: 14px;
      font-weight: bold;
      color: #333333;
      margin-right: 20px;
    }
  }
}
</style>
<style>
/* .itemTrading .el-table {
  overflow: auto;
}
.itemTrading .el-table__body-wrapper,
.itemTrading .el-table__header-wrapper,
.itemTrading .el-table__footer-wrapper {
  overflow: visible;
}
.itemTrading .el-table::after {
  position: relative !important;
}

.body-theme-grenn .el-table--scrollable-x .el-table__body-wrapper {
  overflow: visible;
} */
</style>
