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