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/salesManagement/receiptPaymentHistory/index.vue | 58 ++++++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 42 insertions(+), 16 deletions(-)
diff --git a/src/views/salesManagement/receiptPaymentHistory/index.vue b/src/views/salesManagement/receiptPaymentHistory/index.vue
index 52e29d1..290fb31 100644
--- a/src/views/salesManagement/receiptPaymentHistory/index.vue
+++ b/src/views/salesManagement/receiptPaymentHistory/index.vue
@@ -2,14 +2,16 @@
<div class="app-container">
<div class="search_form">
<div>
- <span class="search_title">渚涘簲鍟嗗悕绉帮細</span>
- <el-input v-model="searchForm.searchText" style="width: 240px" placeholder="杈撳叆渚涘簲鍟嗗悕绉版悳绱�"
+ <span class="search_title">瀹㈡埛鍚嶇О锛�</span>
+ <el-input v-model="searchForm.searchText" style="width: 240px" placeholder="杈撳叆瀹㈡埛鍚嶇О鎼滅储"
@change="handleQuery" clearable :prefix-icon="Search" />
<el-button type="primary" @click="handleQuery" style="margin-left: 10px">鎼滅储</el-button>
</div>
</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>
@@ -20,25 +22,41 @@
import { ref } from 'vue'
import { Search } from "@element-plus/icons-vue";
import {
- paymentHistoryList
-} from "@/api/procurementManagement/paymentEntry.js";
+ receiptPaymentHistoryListPage
+} from "@/api/salesManagement/receiptPayment.js";
const { proxy } = getCurrentInstance()
const tableColumn = ref([
{
label: '鍥炴鏃ユ湡',
- prop: 'paymentDate',
+ prop: 'receiptPaymentDate',
},
{
label: '瀹㈡埛鍚嶇О',
- prop: 'supplierName',
+ prop: 'customerName',
},
{
label: '鍥炴閲戦',
- prop: 'currentPaymentAmount',
+ prop: 'receiptPaymentAmount',
+ formatData: (params) => {
+ return parseFloat(params).toFixed(2);
+ }
},
{
label: '鍥炴鏂瑰紡',
- prop: 'paymentMethod'
+ prop: 'receiptPaymentType',
+ dataType: 'tag',
+ formatData: (params) => {
+ if (params == 0) {
+ return '鐢垫眹';
+ } else if (params == 1) {
+ return '鎵垮厬';
+ } else {
+ return null
+ }
+ },
+ formatType: (params) => {
+ return "info"
+ }
},
{
label: '鐧昏浜�',
@@ -46,7 +64,7 @@
},
{
label: '鐧昏鏃ユ湡',
- prop: 'registrationtDate'
+ prop: 'createTime'
}
])
const tableData = ref([])
@@ -54,7 +72,7 @@
const tableLoading = ref(false)
const page = reactive({
current: 1,
- size: 10,
+ size: 100,
})
const total = ref(0)
const data = reactive({
@@ -63,26 +81,34 @@
},
})
const { searchForm } = toRefs(data)
-
+const { receipt_payment_type } = proxy.useDict("receipt_payment_type")
+const isShowSummarySon = ref(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
- paymentHistoryList({ ...searchForm.value, ...page }).then(res => {
+ receiptPaymentHistoryListPage({ ...searchForm.value, ...page }).then(res => {
tableLoading.value = false
- tableData.value = res.rows
+ tableData.value = res.records
total.value = res.total
})
}
+// 瀛愯〃鍚堣鏂规硶
+const summarizeMainTable1 = (param) => {
+ return proxy.summarizeTable(param, ['receiptPaymentAmount'], {
+ ticketsNum: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
+ futureTickets: { noDecimal: true }, // 涓嶄繚鐣欏皬鏁�
+ });
+};
// 琛ㄦ牸閫夋嫨鏁版嵁
const handleSelectionChange = (selection) => {
selectedRows.value = selection
--
Gitblit v1.9.3