<template>
  <div class="page-box" v-loading="Loading.tableLoading">
    <tablePagination
      v-if="apiColumns_Table"
      :currenButtonData="currenButtonData"
      :tableData="tableData"
      :tableLoading="Loading.tableLoading"
      :tableColumns="apiColumns_Table"
      @rowDrop="rowDrop"
      :totalCount="totalCount"
      :multipleSelection="multipleSelection"
      :MaxResultCount="PageListParams.MaxResultCount"
      @topbutton="topbutton"
      @inlineDialog="inlineDialog"
      @sortChange="sortChange"
      @alertoldSkipCount="alertoldSkipCount"
      @alterResultCount="alterResultCount"
      @handleSelectionChange="handleSelectionChange"
      :currentPageProps="oldSkipCount"
      :quicklySearchOption="quicklySearchOption"
      @quicklySearchClick="quicklySearchClick"
      @quicklySearchClear="quicklySearchClear"
      :primarySearchOption="primarySearchOption"
      @overallSearchFormClick="overallSearchFormClick"
      :httpOverallSearchData="httpOverallSearchData"
      :buttonOperationList_left="buttonOperationClick_leftBase"
      @buttonOperationClick_left="buttonOperationClick_left"
    ></tablePagination>
    <!-- :buttonOperationList_left="buttonOperationClick_leftBase"
      @buttonOperationClick_left="buttonOperationClick_left" -->
    <curren-Drawer
      ref="currenDrawer_Ref"
      :title="apiColumns_DesTions"
      @rowDrop="rowDrop"
      :tableColumns="apiColumns_DetailsTable"
      :tabsDesTions="apiColumns_DesTions"
      :DrawerLoading="Loading.DrawerLoading"
      :drawer="displayDialog.detailsDialog"
      :propsData="propsData"
      :Butttondata="[]"
      @drawerShut="(val) => (displayDialog.detailsDialog = val)"
      @drawerbutton="drawerbutton"
      @handleCommand="drawerHandle"
      @close-value="closeValue"
      :totalCount="totalCountDetails"
      :currentPage="oldSkipCountDetails"
      :MaxResultCount="MaxResultCountDetails"
      @alterResultCountDetails="alterResultCountDetails"
      @alertoldSkipCountDetails="alertoldSkipCountDetails"
      :buttonOperationList_left="operationButtonsDetail"
    ></curren-Drawer>
    <!-- 导出弹窗 -->
    <exportDrop 
      v-if="displayDialog.exportDialog"
      @closeDialog="closeExportDrop"
      @exportDropSubmit="exportDropSubmit"
    ></exportDrop>
  </div>
</template>
<script>
import { tableMixins } from "@/mixins/TableMixins";
import { LoadingMixins } from "@/mixins/LoadingMixins";
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins";
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select'


export default {
  name: "StoreWorkOrderDetail",
  mixins: [
    tableMixins,
    LoadingMixins,
    drawerMixins,
    TableHeaderMixins,
    mixins,
    filterSelectMixins,
    newAndEdiDialogMixins
  ],
  data() {
    return {
      //常用按钮数据
      currenButtonData: [
        this.defaultExportBtn({
          isRedundance:true,
          isDetailExport:true
        }),//导出
        this.defaultFieldSettingBtn(),//字段设置
        this.defaultFreshBtn(),//刷新
        this.defaultFilterBtn(),//筛选
      ],
    };
  },
  mounted() {
    this.paging();
  },
}
</script>
<style lang="scss" scoped>
@import "@/styles/basicData.scss";
</style>