yangfeng
2023-07-26 88e465272d8d6add756eb19764cdb9a59cdf7cf1
src/views/sales/masterOrder/index.vue
@@ -3,7 +3,7 @@
    <SearchCommonView ref="searchCommonView" :query-class-options="queryClassOptions" :search-options="searchOptions" />
    <div class="btn-pager">
      <PublicFunctionBtnView :operates-list="operatesList" />
      <PagerView class="page" />
      <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
    </div>
    <TableCommonView ref="tableListRef" :show-summary="showSummary" :table-list="tableList">
      <template slot="tableButton">
@@ -23,10 +23,12 @@
<script>
import AddMasterOrderDialog from "@/views/sales/masterOrder/AddMasterOrderDialog"
import { getMasterOrderList, getDelMasterOrder } from "@/api/sales/masterOrder"
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
export default {
  name: "MasterOrder",
  props: {},
  mixins: [pageMixin],
  components: {
    AddMasterOrderDialog
  },
@@ -92,7 +94,11 @@
    // 请求数据
    async getData() {
      this.loading = true
      await getMasterOrderList()
      await getMasterOrderList({
        keyword: "",
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      })
        .then((res) => {
          console.log(res)
          if (res.code === 200) {
@@ -104,6 +110,7 @@
                }
              })
              this.tableList.tableInfomation = list || []
              this.pagerOptions.totalCount = res.data.count
            } else {
              this.tableList.tableInfomation = []
            }