From 7b826779dd70fcfeb956030fdf971552ba58337d Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期三, 04 六月 2025 14:25:53 +0800
Subject: [PATCH] 付款流水功能开发
---
src/views/procurementManagement/paymentHistory/index.vue | 93 +++++++++++++++++++++++
src/api/procurementManagement/paymentEntry.js | 10 ++
src/views/salesManagement/receiptPaymentHistory/index.vue | 93 +++++++++++++++++++++++
3 files changed, 195 insertions(+), 1 deletions(-)
diff --git a/src/api/procurementManagement/paymentEntry.js b/src/api/procurementManagement/paymentEntry.js
index 53f865b..10ea685 100644
--- a/src/api/procurementManagement/paymentEntry.js
+++ b/src/api/procurementManagement/paymentEntry.js
@@ -61,4 +61,12 @@
method: "get",
params: query
})
-}
\ No newline at end of file
+}
+// 鍒嗛〉鏌ヨ
+export function paymentHistoryList(query) {
+ return request({
+ url: '/purchase/paymentRegistration/paymentHistoryList',
+ method: 'get',
+ params: query
+ })
+}
diff --git a/src/views/procurementManagement/paymentHistory/index.vue b/src/views/procurementManagement/paymentHistory/index.vue
new file mode 100644
index 0000000..ec6616a
--- /dev/null
+++ b/src/views/procurementManagement/paymentHistory/index.vue
@@ -0,0 +1,93 @@
+<template>
+ <div class="app-container">
+ <div class="search_form">
+ <div>
+ <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"
+ :handleSelectionChange="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination"
+ :total="total"></PIMTable>
+ </div>
+ </div>
+</template>
+
+<script setup>
+import { ref } from 'vue'
+import { Search } from "@element-plus/icons-vue";
+import {
+ paymentHistoryList
+} from "@/api/procurementManagement/paymentEntry.js";
+const { proxy } = getCurrentInstance()
+const tableColumn = ref([
+ {
+ label: '浠樻鏃ユ湡',
+ prop: 'paymentDate',
+ },
+ {
+ label: '渚涘簲鍟嗗悕绉�',
+ prop: 'supplierName',
+ },
+ {
+ label: '浠樻閲戦',
+ prop: 'currentPaymentAmount',
+ },
+ {
+ label: '浠樻鏂瑰紡',
+ prop: 'paymentMethod'
+ },
+ {
+ label: '鐧昏浜�',
+ prop: 'registrant'
+ },
+ {
+ label: '鐧昏鏃ユ湡',
+ prop: 'registrationtDate'
+ }
+])
+const tableData = ref([])
+const selectedRows = ref([])
+const tableLoading = ref(false)
+const page = reactive({
+ current: 1,
+ size: 10,
+})
+const total = ref(0)
+const data = reactive({
+ searchForm: {
+ searchText: '',
+ },
+})
+const { searchForm } = toRefs(data)
+
+// 鏌ヨ鍒楄〃
+/** 鎼滅储鎸夐挳鎿嶄綔 */
+const handleQuery = () => {
+ page.current = 1
+ getList()
+}
+const pagination = ({ current, limit }) => {
+ page.current = current;
+ page.size = limit;
+ getList()
+}
+const getList = () => {
+ tableLoading.value = true
+ paymentHistoryList({ ...searchForm.value, ...page }).then(res => {
+ tableLoading.value = false
+ tableData.value = res.rows
+ total.value = res.total
+ })
+}
+// 琛ㄦ牸閫夋嫨鏁版嵁
+const handleSelectionChange = (selection) => {
+ selectedRows.value = selection
+}
+getList()
+</script>
+
+<style scoped lang="scss"></style>
diff --git a/src/views/salesManagement/receiptPaymentHistory/index.vue b/src/views/salesManagement/receiptPaymentHistory/index.vue
new file mode 100644
index 0000000..52e29d1
--- /dev/null
+++ b/src/views/salesManagement/receiptPaymentHistory/index.vue
@@ -0,0 +1,93 @@
+<template>
+ <div class="app-container">
+ <div class="search_form">
+ <div>
+ <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"
+ :handleSelectionChange="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination"
+ :total="total"></PIMTable>
+ </div>
+ </div>
+</template>
+
+<script setup>
+import { ref } from 'vue'
+import { Search } from "@element-plus/icons-vue";
+import {
+ paymentHistoryList
+} from "@/api/procurementManagement/paymentEntry.js";
+const { proxy } = getCurrentInstance()
+const tableColumn = ref([
+ {
+ label: '鍥炴鏃ユ湡',
+ prop: 'paymentDate',
+ },
+ {
+ label: '瀹㈡埛鍚嶇О',
+ prop: 'supplierName',
+ },
+ {
+ label: '鍥炴閲戦',
+ prop: 'currentPaymentAmount',
+ },
+ {
+ label: '鍥炴鏂瑰紡',
+ prop: 'paymentMethod'
+ },
+ {
+ label: '鐧昏浜�',
+ prop: 'registrant'
+ },
+ {
+ label: '鐧昏鏃ユ湡',
+ prop: 'registrationtDate'
+ }
+])
+const tableData = ref([])
+const selectedRows = ref([])
+const tableLoading = ref(false)
+const page = reactive({
+ current: 1,
+ size: 10,
+})
+const total = ref(0)
+const data = reactive({
+ searchForm: {
+ searchText: '',
+ },
+})
+const { searchForm } = toRefs(data)
+
+// 鏌ヨ鍒楄〃
+/** 鎼滅储鎸夐挳鎿嶄綔 */
+const handleQuery = () => {
+ page.current = 1
+ getList()
+}
+const pagination = ({ current, limit }) => {
+ page.current = current;
+ page.size = limit;
+ getList()
+}
+const getList = () => {
+ tableLoading.value = true
+ paymentHistoryList({ ...searchForm.value, ...page }).then(res => {
+ tableLoading.value = false
+ tableData.value = res.rows
+ total.value = res.total
+ })
+}
+// 琛ㄦ牸閫夋嫨鏁版嵁
+const handleSelectionChange = (selection) => {
+ selectedRows.value = selection
+}
+getList()
+</script>
+
+<style scoped lang="scss"></style>
--
Gitblit v1.9.3