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/procurementLedger/index.vue | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue index a291c11..51110b0 100644 --- a/src/views/procurementManagement/procurementLedger/index.vue +++ b/src/views/procurementManagement/procurementLedger/index.vue @@ -280,7 +280,7 @@ addOrEditPurchase, delPurchase, getSalesNo, - purchaseList, + purchaseListPage, productList, getPurchaseById, getOptions } from "@/api/procurementManagement/procurementLedger.js"; const { proxy } = getCurrentInstance() @@ -384,16 +384,16 @@ futureTickets: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁� }); }; -const paginationChange = ({ current, limit }) => { - page.current = current; - page.size = limit; +const paginationChange = (obj) => { + page.current = obj.page; + page.size = obj.limit; getList() } const getList = () => { tableLoading.value = true - purchaseList({...searchForm.value, ...page}).then(res => { + purchaseListPage({...searchForm.value, ...page}).then(res => { tableLoading.value = false - tableData.value = res.rows + tableData.value = res.records tableData.value.map(item => { item.children = [] }) @@ -562,8 +562,10 @@ const index = modelOptions.value.findIndex(item => item.id === value); if (index !== -1) { productForm.value.specificationModel = modelOptions.value[index].model; + productForm.value.unit = modelOptions.value[index].unit; } else { productForm.value.specificationModel = null; + productForm.value.unit = null } } const findNodeById = (nodes, productId) => { -- Gitblit v1.9.3