From d83860d6839daaf7dccda5cbd68e865ba7e679ab Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期二, 08 七月 2025 17:48:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev
---
src/views/salesManagement/receiptPayment/index.vue | 82 +++++++++++++++++++++++++++++++++--------
1 files changed, 66 insertions(+), 16 deletions(-)
diff --git a/src/views/salesManagement/receiptPayment/index.vue b/src/views/salesManagement/receiptPayment/index.vue
index 0525c8b..80cb7f8 100644
--- a/src/views/salesManagement/receiptPayment/index.vue
+++ b/src/views/salesManagement/receiptPayment/index.vue
@@ -3,15 +3,32 @@
<div class="search_form">
<el-form :inline="true" :model="searchForm" style="width: 100%">
<el-row justify="space-between">
- <el-col :span="20">
- <el-form-item label="鍥炴鐧昏">
+ <el-col :span="24">
+ <el-form-item label="瀹㈡埛鍚嶇О">
<el-input
- v-model="searchForm.searchText"
- style="width: 240px"
- placeholder="杈撳叆瀹㈡埛鍚嶇О/鍚堝悓鍙锋悳绱�"
+ v-model="searchForm.customerName"
+ placeholder="璇疯緭鍏�"
+ @change="handleQuery"
clearable
prefix-icon="Search"
+ />
+ </el-form-item>
+ <el-form-item label="瀹㈡埛鍚堝悓鍙�">
+ <el-input
+ v-model="searchForm.customerContractNo"
+ placeholder="璇疯緭鍏�"
@change="handleQuery"
+ clearable
+ prefix-icon="Search"
+ />
+ </el-form-item>
+ <el-form-item label="椤圭洰鍚嶇О">
+ <el-input
+ v-model="searchForm.projectName"
+ placeholder="璇疯緭鍏�"
+ @change="handleQuery"
+ clearable
+ prefix-icon="Search"
/>
</el-form-item>
<el-form-item>
@@ -25,17 +42,19 @@
<el-button type="primary" @click="handleQuery"> 鎼滅储 </el-button>
</el-form-item>
</el-col>
- <el-col :span="4">
- <el-form-item style="float: right; margin-right: unset">
- <el-button type="primary" @click="openForm('add')">
- 鏂板鍥炴
- </el-button>
- </el-form-item>
- </el-col>
</el-row>
</el-form>
</div>
<div class="table_list">
+ <div class="actions">
+ <div></div>
+ <div>
+ <el-button type="primary" icon="Plus" @click="openForm('add')">
+ 鏂板鍥炴
+ </el-button>
+ <el-button icon="Download" @click="handleOut"> 瀵煎嚭 </el-button>
+ </div>
+ </div>
<el-table
:data="tableData"
border
@@ -136,6 +155,7 @@
label="瀹㈡埛鍚嶇О"
prop="customerName"
show-overflow-tooltip
+ width="240"
/>
<el-table-column
label="椤圭洰鍚嶇О"
@@ -158,7 +178,7 @@
show-overflow-tooltip
:formatter="formattedNumber"
/>
- <el-table-column label="绋庣巼" prop="taxRate" show-overflow-tooltip />
+ <el-table-column label="绋庣巼(%)" prop="taxRate" show-overflow-tooltip />
<el-table-column
label="鍥炴閲戦(鍏�)"
prop="receiptPaymentAmountTotal"
@@ -322,7 +342,7 @@
<script setup>
import pagination from "@/components/PIMTable/Pagination.vue";
-import { ref } from "vue";
+import { onMounted, ref } from "vue";
import {
receiptPaymentSaveOrUpdate,
bindInvoiceNoRegPage,
@@ -351,7 +371,10 @@
const data = reactive({
searchForm: {
searchText: "",
- status: false,
+ status: true,
+ customerName: "",
+ customerContractNo: "",
+ projectName: "",
},
form: {
salesContractNo: "",
@@ -543,7 +566,29 @@
});
};
-getList();
+// 瀵煎嚭
+const handleOut = () => {
+ ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
+ confirmButtonText: "纭",
+ cancelButtonText: "鍙栨秷",
+ type: "warning",
+ })
+ .then(() => {
+ const ids = selectedRows.value.map((item) => item.id);
+ proxy.download(
+ `/receiptPayment/export`,
+ { ids: `${ids}` },
+ "鍥炴鐧昏妗f.xlsx"
+ );
+ })
+ .catch(() => {
+ proxy.$modal.msg("宸插彇娑�");
+ });
+};
+
+onMounted(() => {
+ getList();
+});
</script>
<style scoped lang="scss">
@@ -553,4 +598,9 @@
::v-deep(.el-checkbox__label) {
font-weight: bold;
}
+.actions {
+ display: flex;
+ justify-content: space-between;
+ margin-bottom: 10px;
+}
</style>
--
Gitblit v1.9.3