yangfeng
2023-07-26 88e465272d8d6add756eb19764cdb9a59cdf7cf1
src/views/sales/quotation/index.vue
@@ -8,7 +8,7 @@
    />
    <div class="btn-pager">
      <PublicFunctionBtnView :submit-approval="true" :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">
@@ -28,10 +28,12 @@
<script>
import AddQuotationDialog from "@/views/sales/quotation/AddQuotationDialog"
import { getQuotationList, getDelQuotation } from "@/api/sales/quotation"
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
export default {
  name: "QuotationView",
  props: {},
  mixins: [pageMixin],
  components: {
    AddQuotationDialog
  },
@@ -97,7 +99,11 @@
    // 请求数据
    async getData() {
      this.loading = true
      await getQuotationList()
      await getQuotationList({
        keyword: "",
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      })
        .then((res) => {
          console.log(res)
          if (res.code === 200) {
@@ -110,6 +116,7 @@
                }
              })
              this.tableList.tableInfomation = list || []
              this.pagerOptions.totalCount = res.data.count
            } else {
              this.tableList.tableInfomation = []
            }