From facb7c8b5d3fe64bb97d0fdbc921985c7fb88732 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期四, 10 七月 2025 14:42:23 +0800 Subject: [PATCH] 输入框为数字时限制不为负数60% --- src/views/procurementManagement/invoiceEntry/index.vue | 33 ++++++++++++++++++++++++++++++--- 1 files changed, 30 insertions(+), 3 deletions(-) diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue index 6de82f0..e899511 100644 --- a/src/views/procurementManagement/invoiceEntry/index.vue +++ b/src/views/procurementManagement/invoiceEntry/index.vue @@ -42,6 +42,7 @@ :expand-row-keys="expandRowKeys" @expand-change="expandChange" @selection-change="handleSelectionChange" + @pagination="changePage" > <template #expand="{ row }"> <ExpandTable ref="expandTableRef" /> @@ -87,6 +88,7 @@ pagination, getTableData, resetFilters, + onCurrentChange, } = usePaginationApi( gePurchaseListPage, { @@ -99,36 +101,56 @@ slot: "expand", }, { + label: "閲囪喘璁㈠崟鍙�", + prop: "purchaseContractNumber", + width:150 + }, + { label: "閿�鍞悎鍚屽彿", prop: "salesContractNo", + width:150 }, { label: "渚涘簲鍟嗗悕绉�", prop: "supplierName", + width:240 }, { label: "椤圭洰鍚嶇О", prop: "projectName", + width:150 + }, + { + label: "褰曞叆浜�", + prop: "recorderName", + }, + { + label: "褰曞叆鏃ユ湡", + prop: "entryDate", + width:100 }, { label: "鍚堝悓閲戦(鍏�)", prop: "contractAmount", + width:150, formatData: (val) => { - return parseFloat(val).toFixed(2) ?? 0; + return val ? parseFloat(val).toFixed(2) : 0; }, }, { label: "宸插紑绁ㄩ噾棰�(鍏�)", prop: "receiptPaymentAmount", + width:150, formatData: (val) => { - return parseFloat(val).toFixed(2) ?? 0; + return val ? parseFloat(val).toFixed(2) : 0; }, }, { label: "寰呭紑绁ㄩ噾棰�(鍏�)", prop: "unReceiptPaymentAmount", + width:150, formatData: (val) => { - return parseFloat(val).toFixed(2) ?? 0; + return val ? parseFloat(val).toFixed(2) : 0; }, }, // { @@ -168,6 +190,11 @@ expandTableRef.value.getList(row.id); }; +const changePage = ({ page }) => { + pagination.currentPage = page; + onCurrentChange(page); +}; + onMounted(() => { getTableData(); }); -- Gitblit v1.9.3