From ece2dfeb926d728b10db38038e4d12e9e9851c24 Mon Sep 17 00:00:00 2001 From: chenrui <1187576398@qq.com> Date: 星期五, 06 六月 2025 17:38:10 +0800 Subject: [PATCH] 分页修改 --- src/views/procurementManagement/paymentEntry/index.vue | 25 ++++++------------------- 1 files changed, 6 insertions(+), 19 deletions(-) diff --git a/src/views/procurementManagement/paymentEntry/index.vue b/src/views/procurementManagement/paymentEntry/index.vue index a995d6b..c3b22e3 100644 --- a/src/views/procurementManagement/paymentEntry/index.vue +++ b/src/views/procurementManagement/paymentEntry/index.vue @@ -101,27 +101,15 @@ import { ref } from 'vue' import { Search } from "@element-plus/icons-vue"; import { ElMessageBox } from "element-plus"; -import { getInfo } from "@/api/login.js"; import useUserStore from "@/store/modules/user.js"; import { byPurchaseId, - getPurchaseNo, paymentRegistrationAdd, paymentRegistrationDel, paymentRegistrationEdit, - registrationInfo, - registrationList, getTicketNo } from "@/api/procurementManagement/paymentEntry.js"; -import { invoiceList } from "@/api/procurementManagement/procurementInvoiceLedger.js" +import {invoiceListPage} from "@/api/procurementManagement/procurementInvoiceLedger.js" const { proxy } = getCurrentInstance() -const taxRateSelection = [ - { value: '0', label: '0%' }, - { value: '3', label: '3%' }, - { value: '6', label: '6%' }, - { value: '9', label: '9%' }, - { value: '13', label: '13%' }, - { value: '17', label: '17%' }, -] const tableColumn = ref([ { label: '閲囪喘鍚堝悓鍙�', @@ -164,7 +152,6 @@ const tableData = ref([]) const selectedRows = ref([]) const tableLoading = ref(false) -const purchaseLedgerList = ref([]) const invoiceNumberList = ref([]) const userStore = useUserStore() const page = reactive({ @@ -218,16 +205,16 @@ page.current = 1 getList() } -const pagination = ({ current, limit }) => { - page.current = current; - page.size = limit; +const pagination = (obj) => { + page.current = obj.page; + page.size = obj.limit; getList() } const getList = () => { tableLoading.value = true - invoiceList({ ...searchForm.value, ...page }).then(res => { + invoiceListPage({ ...searchForm.value, ...page }).then(res => { tableLoading.value = false - tableData.value = res.rows + tableData.value = res.records total.value = res.total }) } -- Gitblit v1.9.3