| | |
| | | <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"> |
| | |
| | | <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 |
| | | }, |
| | |
| | | // 请求数据 |
| | | 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) { |
| | |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | | this.pagerOptions.totalCount = res.data.count |
| | | } else { |
| | | this.tableList.tableInfomation = [] |
| | | } |