From e093877b02cb5725fef570ee49ca2bca31f51871 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 11 七月 2025 14:17:06 +0800 Subject: [PATCH] 1.采购台账-销售台账:金额都可以填写,填一个计算另外一个 --- src/views/salesManagement/receiptPaymentHistory/index.vue | 34 +++++++++++++++++++++------------- 1 files changed, 21 insertions(+), 13 deletions(-) diff --git a/src/views/salesManagement/receiptPaymentHistory/index.vue b/src/views/salesManagement/receiptPaymentHistory/index.vue index 9e7ad7d..f0dc1de 100644 --- a/src/views/salesManagement/receiptPaymentHistory/index.vue +++ b/src/views/salesManagement/receiptPaymentHistory/index.vue @@ -10,10 +10,10 @@ :prefix-icon="Search" /> </el-form-item> - <el-form-item label="鍚堝悓鍙�"> + <el-form-item label="瀹㈡埛鍚堝悓鍙�"> <el-input v-model="searchForm.customerContractNo" - placeholder="杈撳叆鍚堝悓鍙�" + placeholder="杈撳叆瀹㈡埛鍚堝悓鍙�" @change="handleQuery" clearable :prefix-icon="Search" @@ -48,16 +48,17 @@ </el-form> <div class="table_list"> <PIMTable + rowKey="id" :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true" :isShowSummary="isShowSummarySon" :summaryMethod="summarizeMainTable1" - :handleSelectionChange="handleSelectionChange" :tableLoading="tableLoading" - @pagination="pagination" :total="total" + @pagination="pagination" + @selection-change="handleSelectionChange" ></PIMTable> </div> </div> @@ -73,30 +74,36 @@ const { proxy } = getCurrentInstance(); const tableColumn = ref([ { + label: "閿�鍞悎鍚屽彿", + prop: "salesContractNo", + width:240 + }, + { + label: "瀹㈡埛鍚堝悓鍙�", + prop: "customerContractNo", + width:240 + }, + { label: "鍥炴鏃ユ湡", prop: "receiptPaymentDate", + width:100 }, { label: "瀹㈡埛鍚嶇О", prop: "customerName", + width:240 }, { label: "椤圭洰鍚嶇О", prop: "projectName", - }, - { - label: "鍚堝悓鍙�", - prop: "customerContractNo", - }, - { - label: "椤圭洰鍚嶇О", - prop: "projectName", + width:200 }, { label: "鍥炴閲戦锛堝厓锛�", prop: "receiptPaymentAmount", + width:200, formatData: (params) => { - return parseFloat(params).toFixed(2); + return params ? parseFloat(params).toFixed(2) : 0; }, }, { @@ -123,6 +130,7 @@ { label: "鐧昏鏃ユ湡", prop: "createTime", + width:100 }, ]); const tableData = ref([]); -- Gitblit v1.9.3