From 4e64eeb2a807adc9153fd9cd61b498b99c1f6f2c Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 17 六月 2025 11:06:22 +0800
Subject: [PATCH] 完成库存管理前端页面
---
src/views/procurementManagement/paymentEntry/index.vue | 52 +++++++++++++++++++++++++++++-----------------------
1 files changed, 29 insertions(+), 23 deletions(-)
diff --git a/src/views/procurementManagement/paymentEntry/index.vue b/src/views/procurementManagement/paymentEntry/index.vue
index edea198..82bc96d 100644
--- a/src/views/procurementManagement/paymentEntry/index.vue
+++ b/src/views/procurementManagement/paymentEntry/index.vue
@@ -14,6 +14,8 @@
</div>
<div class="table_list">
<PIMTable :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true"
+ :isShowSummary="isShowSummarySon"
+ :summaryMethod="summarizeMainTable1"
:handleSelectionChange="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination"
:total="total"></PIMTable>
</div>
@@ -99,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: '閲囪喘鍚堝悓鍙�',
@@ -139,26 +129,34 @@
},
{
label: '鍙戠エ閲戦(鍏�)',
- prop: 'invoiceAmount'
+ prop: 'invoiceAmount',
+ formatData: (params) => {
+ return parseFloat(params).toFixed(2);
+ }
},
{
label: '宸蹭粯娆鹃噾棰�(鍏�)',
- prop: 'paymentAmountTotal'
+ prop: 'paymentAmountTotal',
+ formatData: (params) => {
+ return parseFloat(params).toFixed(2);
+ }
},
{
label: '寰呬粯娆鹃噾棰�(鍏�)',
- prop: 'unPaymentAmountTotal'
+ prop: 'unPaymentAmountTotal',
+ formatData: (params) => {
+ return parseFloat(params).toFixed(2);
+ }
},
])
const tableData = ref([])
const selectedRows = ref([])
const tableLoading = ref(false)
-const purchaseLedgerList = ref([])
const invoiceNumberList = ref([])
const userStore = useUserStore()
const page = reactive({
current: 1,
- size: 10,
+ size: 100,
})
const total = ref(0)
@@ -192,23 +190,31 @@
}
})
const { searchForm, form, rules } = toRefs(data)
+const isShowSummarySon = ref(true);
+// 瀛愯〃鍚堣鏂规硶
+const summarizeMainTable1 = (param) => {
+ return proxy.summarizeTable(param, ['invoiceAmount', 'paymentAmountTotal', 'unPaymentAmountTotal'], {
+ ticketsNum: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
+ futureTickets: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
+ });
+};
// 鏌ヨ鍒楄〃
/** 鎼滅储鎸夐挳鎿嶄綔 */
const handleQuery = () => {
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