From ee6f8c315926a871f11a96a69702efcef4d0b49f Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 26 五月 2025 13:49:03 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev

---
 src/views/salesManagement/receiptPayment/index.vue         |  130 +++---------------
 src/views/salesManagement/receiptPaymentLedger/index.vue   |   30 ++-
 src/views/procurementManagement/thePaymentLedger/index.vue |   90 ------------
 vite.config.js                                             |    2 
 src/api/salesManagement/receiptPayment.js                  |   18 ++
 src/views/procurementManagement/paymentLedger/index.vue    |  114 ++++++++++------
 6 files changed, 134 insertions(+), 250 deletions(-)

diff --git a/src/api/salesManagement/receiptPayment.js b/src/api/salesManagement/receiptPayment.js
index 213d405..14695f1 100644
--- a/src/api/salesManagement/receiptPayment.js
+++ b/src/api/salesManagement/receiptPayment.js
@@ -36,3 +36,21 @@
         data: query
     })
 }
+
+// 鏌ヨ宸茬粡缁戝畾鍙戠エ鐨勫紑绁ㄥ彴璐�
+export function bindInvoiceNoRegPage(query) {
+    return request({
+        url: '/receiptPayment/bindInvoiceNoRegPage',
+        method: 'get',
+        params: query
+    })
+}
+
+// 寮�绁ㄥ彴璐﹁鎯�
+export function invoiceInfo(query) {
+    return request({
+        url: '/receiptPayment/invoiceInfo',
+        method: 'get',
+        params: query
+    })
+}
diff --git a/src/views/procurementManagement/paymentLedger/index.vue b/src/views/procurementManagement/paymentLedger/index.vue
index 7ee2a3f..18c0176 100644
--- a/src/views/procurementManagement/paymentLedger/index.vue
+++ b/src/views/procurementManagement/paymentLedger/index.vue
@@ -15,25 +15,49 @@
           >鎼滅储</el-button
         >
       </div>
-      <div>
-      </div>
+      <div></div>
     </div>
     <el-row>
       <el-col :span="14">
         <div class="table_list">
-          <PIMTable
-            :column="tableColumn"
-            :tableData="tableData"
-            :page="page"
-            :isSelection="false"
-            :handleSelectionChange="handleSelectionChange"
-            :tableLoading="tableLoading"
-            @pagination="pagination"
-            :total="total"
-            :rowClick="rowClick"
-            :isShowSummary="isShowSummary"
+          <el-table
+            ref="multipleTable"
+            v-loading="tableLoading"
+            :data="tableData"
+            :header-cell-style="{ background: '#F0F1F5', color: '#333333' }"
+            height="calc(100vh - 18.5em)"
             :highlight-current-row="true"
-          ></PIMTable>
+            style="width: 100%"
+            tooltip-effect="dark"
+            @row-click="rowClick"
+            :show-summary="isShowSummary"
+            class="lims-table"
+          >
+            <el-table-column
+              align="center"
+              label="搴忓彿"
+              type="index"
+              width="60"
+            />
+            <el-table-column
+              v-for="(item, index) in tableColumn"
+              :key="index"
+              :column-key="item.columnKey"
+              :filter-method="item.filterHandler"
+              :filter-multiple="item.filterMultiple"
+              :filtered-value="item.filteredValue"
+              :filters="item.filters"
+              :fixed="item.fixed"
+              :label="item.label"
+              :prop="item.prop"
+              show-overflow-tooltip
+              :align="item.align"
+              :sortable="!!item.sortable"
+              :type="item.type"
+              :width="item.width"
+            >
+            </el-table-column>
+          </el-table>
         </div>
       </el-col>
       <el-col :span="10">
@@ -44,12 +68,20 @@
             :page="pageSon"
             :isSelection="false"
             :tableLoading="tableLoadingSon"
-            @pagination="paginationSon"
-            :total="totalSon"
             :isShowSummary="isShowSummarySon"
           ></PIMTable>
         </div>
       </el-col>
+      <div class="el-pagination">
+        <pagination
+          v-show="total > 0"
+          @pagination="paginationSearch"
+          :total="total"
+          :layout="page.layout"
+          :page="page.current"
+          :limit="page.size"
+        />
+      </div>
     </el-row>
   </div>
 </template>
@@ -77,6 +109,7 @@
     prop: "payableAmount",
   },
 ]);
+const tableData = ref([]);
 const tableLoading = ref(false);
 const data = reactive({
   searchForm: {
@@ -89,16 +122,10 @@
 });
 const total = ref(0);
 const isShowSummary = ref(true);
-const tableData = ref([]);
 const { searchForm } = toRefs(data);
-
-
-import {getInfo} from "@/api/login.js";
 const rowClick = (row) => {
   tableDataSon.value = Array.isArray(row.details) ? row.details : [];
 };
-
-
 // 瀛愭ā鍧�
 const tableColumnSon = ref([
   {
@@ -120,11 +147,6 @@
 ]);
 const tableDataSon = ref([]);
 const tableLoadingSon = ref(false);
-const pageSon = reactive({
-  current: 1,
-  size: 10,
-});
-const totalSon = ref(0);
 const isShowSummarySon = ref(true);
 const detailPageNum = ref(1);
 const detailPageSize = ref(10);
@@ -134,14 +156,10 @@
   page.current = 1;
   getList();
 };
-const pagination = ({ current, limit }) => {
+const paginationSearch = ({ current, limit }) => {
   page.current = current;
   page.size = limit;
-  getList();
-};
-const paginationSon = ({ current, limit }) => {
-  pageSon.current = current;
-  pageSon.size = limit;
+  tableDataSon.value = [];
   getList();
 };
 const getList = () => {
@@ -150,7 +168,7 @@
     ...searchForm.value,
     ...page,
     detailPageNum: detailPageNum.value, // 鏂板
-    detailPageSize: detailPageSize.value // 鏂板
+    detailPageSize: detailPageSize.value, // 鏂板
   }).then((res) => {
     let result = res.data;
     tableLoading.value = false;
@@ -158,20 +176,11 @@
     total.value = result.total || 0;
   });
 };
-// 琛ㄦ牸閫夋嫨鏁版嵁
-const handleSelectionChange = (selection) => {
-  selectedRows.value = selection;
-};
 
 getList();
 </script>
 
 <style scoped lang="scss">
-/* 閫変腑鏌愯鏃剁殑鑳屾櫙鑹�*/
-/* .el-table__body tr.current-row > td {
-  color: #c0c0c0;
-  background: #F6F7FB !important;
-} */
 .el-row {
   .el-col-14 {
     .table_list {
@@ -184,4 +193,23 @@
     }
   }
 }
+.el-pagination {
+  width: 100%;
+  height: 55px;
+  display: flex;
+  justify-content: flex-end;
+  float: right;
+  flex-direction: row;
+  align-items: center;
+  background: #fff;
+  margin: -20px 0 0 0;
+  padding: 0 20px;
+}
+.pagination-container {
+  margin-top: 0;
+}
+.table_list {
+  height: calc(100vh - 13.5em);
+  overflow: auto;
+}
 </style>
diff --git a/src/views/procurementManagement/thePaymentLedger/index.vue b/src/views/procurementManagement/thePaymentLedger/index.vue
index 72a2eb9..38fac3a 100644
--- a/src/views/procurementManagement/thePaymentLedger/index.vue
+++ b/src/views/procurementManagement/thePaymentLedger/index.vue
@@ -15,97 +15,9 @@
       </div>
     </div>
     <div class="table_list">
-      <PIMTable :column="tableColumn" :tableData="tableData" :page="page" :handleSelectionChange="handleSelectionChange"
+      <PIMTable :column="tableColumn" :tableData="tableData" :page="page"
                 :tableLoading="tableLoading" @pagination="pagination" :total="total"></PIMTable>
     </div>
-    <el-dialog v-model="dialogFormVisible" :title="operationType === 'add' ? '鏂板浠樻鐧昏' : '缂栬緫浠樻鐧昏'" width="60%" @close="closeDia">
-      <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
-        <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="閲囪喘鍚堝悓鍙凤細" prop="purchaseLedgerId">
-              <el-select v-model="form.purchaseLedgerId" placeholder="璇烽�夋嫨" clearable @change="setInfo" :disabled="operationType === 'edit'">
-                <el-option v-for="item in purchaseLedgerList" :key="item.id" :label="item.purchaseContractNumber" :value="item.id"/>
-              </el-select>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="閿�鍞悎鍚屽彿锛�" prop="salesContractNo">
-              <el-input v-model="form.salesContractNo" placeholder="鑷姩濉厖" clearable disabled/>
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="渚涘簲鍟嗗悕绉帮細" prop="supplierName">
-              <el-input v-model="form.supplierName" placeholder="鑷姩濉厖" clearable disabled/>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="鍙戠エ鍙凤細" prop="invoiceNumber">
-              <el-select v-model="form.invoiceNumber" placeholder="璇烽�夋嫨" clearable :disabled="operationType === 'edit'" @change="setInvoiceAmount">
-                <el-option v-for="item in invoiceNumberList" :key="item.id" :label="item.invoiceNumber" :value="item.invoiceNumber"/>
-              </el-select>
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="鍙戠エ閲戦(鍏�)锛�" prop="invoiceAmount">
-              <el-input type="number" :step="0.01" v-model="form.invoiceAmount" placeholder="鑷姩濉厖" clearable disabled/>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="绋庣巼(%)锛�" prop="taxRate">
-               <el-select v-model="form.taxRate"  placeholder="璇烽�夋嫨" clearable :disabled="operationType === 'edit'">
-                <el-option v-for="item in taxRateSelection" :key="item.value" :label="item.label" :value="item.value"/>
-              </el-select>
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="鏈浠樻閲戦锛�" prop="currentPaymentAmount">
-              <el-input type="number" :step="0.01" v-model="form.currentPaymentAmount" placeholder="璇疯緭鍏�" clearable/>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="浠樻褰㈠紡锛�" prop="paymentMethod">
-              <el-select v-model="form.paymentMethod" placeholder="璇烽�夋嫨" clearable>
-                <el-option label="鐢垫眹" value="鐢垫眹"/>
-                <el-option label="鎵垮厬" value="鎵垮厬"/>
-              </el-select>
-            </el-form-item>
-          </el-col>
-        </el-row>
-        <el-row :gutter="30">
-          <el-col :span="12">
-            <el-form-item label="鐧昏浜猴細" prop="registrant">
-              <el-input v-model="form.registrant" placeholder="璇疯緭鍏�" clearable disabled/>
-            </el-form-item>
-          </el-col>
-          <el-col :span="12">
-            <el-form-item label="浠樻鏃ユ湡锛�" prop="paymentDate">
-              <el-date-picker
-                  disabled
-                  style="width: 100%"
-                  v-model="form.paymentDate"
-                  value-format="YYYY-MM-DD"
-                  format="YYYY-MM-DD"
-                  type="date"
-                  placeholder="璇烽�夋嫨"
-                  clearable
-              />
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <template #footer>
-        <div class="dialog-footer">
-          <el-button type="primary" @click="submitForm">纭</el-button>
-          <el-button @click="closeDia">鍙栨秷</el-button>
-        </div>
-      </template>
-    </el-dialog>
   </div>
 </template>
 
diff --git a/src/views/salesManagement/receiptPayment/index.vue b/src/views/salesManagement/receiptPayment/index.vue
index ee98464..d894833 100644
--- a/src/views/salesManagement/receiptPayment/index.vue
+++ b/src/views/salesManagement/receiptPayment/index.vue
@@ -15,7 +15,6 @@
       </div>
       <div>
         <el-button type="primary" @click="openForm('add')">鏂板鍥炴</el-button>
-        <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button>
       </div>
     </div>
     <div class="table_list">
@@ -30,33 +29,22 @@
         <el-table-column label="閿�鍞悎鍚屽彿" prop="salesContractNo" show-overflow-tooltip/>
         <el-table-column label="瀹㈡埛鍚堝悓鍙�" prop="customerContractNo" show-overflow-tooltip/>
         <el-table-column label="瀹㈡埛鍚嶇О" prop="customerName" show-overflow-tooltip/>
+        <el-table-column label="浜у搧澶х被" prop="productCategory" show-overflow-tooltip/>
         <el-table-column label="鍙戠エ鍙�" prop="invoiceNo" show-overflow-tooltip/>
-        <el-table-column label="鍙戠エ閲戦(鍏�)" prop="invoiceAmount" show-overflow-tooltip/>
+        <el-table-column label="鍙戠エ閲戦(鍏�)" prop="invoiceTotal" show-overflow-tooltip/>
         <el-table-column label="绋庣巼" prop="taxRate" show-overflow-tooltip/>
-        <el-table-column label="鏈鍥炴閲戦(鍏�)" prop="receiptPaymentAmount" show-overflow-tooltip/>
-        <el-table-column label="鍥炴褰㈠紡" prop="receiptPaymentType" show-overflow-tooltip>
-          <template #default="scope">
-            {{transferValue(scope.row.receiptPaymentType)}}
-          </template>
-        </el-table-column>
-        <el-table-column label="寰呭洖娆鹃噾棰�(鍏�)" prop="entryDate" show-overflow-tooltip/>
-        <el-table-column fixed="right" label="鎿嶄綔" min-width="60" align="center">
-          <template #default="scope">
-            <el-button link type="primary" size="small" @click="openForm('edit', scope.row);">缂栬緫</el-button>
-          </template>
-        </el-table-column>
+        <el-table-column label="鍥炴閲戦(鍏�)" prop="receiptPaymentAmountTotal" show-overflow-tooltip/>
+        <el-table-column label="寰呭洖娆鹃噾棰�(鍏�)" prop="noReceiptAmount" show-overflow-tooltip/>
       </el-table>
       <pagination v-show="total > 0" :total="total" layout="total, sizes, prev, pager, next, jumper" :page="page.current"
                   :limit="page.size" @pagination="paginationChange" />
     </div>
-    <el-dialog v-model="dialogFormVisible" :title="operationType === 'add' ? '鏂板鍙戠エ鍙烽〉闈�' : '淇敼鍙戠エ鍙烽〉闈�'" width="70%" @close="closeDia">
+    <el-dialog v-model="dialogFormVisible" title="鏂板鍙戠エ鍙烽〉闈�" width="70%" @close="closeDia">
       <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
         <el-row :gutter="30">
           <el-col :span="12">
-            <el-form-item label="閿�鍞悎鍚屽彿锛�" prop="invoiceLedgerId">
-              <el-select v-model="form.invoiceLedgerId" placeholder="璇烽�夋嫨" clearable @change="ledgerChange">
-                <el-option v-for="item in invoiceLedgerList" :key="item.id" :label="item.salesContractNo + '(' + item.invoiceDate + ')' " :value="item.id"/>
-              </el-select>
+            <el-form-item label="閿�鍞悎鍚屽彿锛�" prop="salesContractNo">
+              <el-input v-model="form.salesContractNo" placeholder="鑷姩濉厖" disabled />
             </el-form-item>
           </el-col>
           <el-col :span="12">
@@ -72,8 +60,8 @@
             </el-form-item>
           </el-col>
           <el-col :span="12">
-            <el-form-item label="鍙戠エ閲戦(鍏�)锛�" prop="invoiceAmount">
-              <el-input type="number" v-model="form.invoiceAmount" placeholder="鑷姩濉厖" :step="0.01" disabled/>
+            <el-form-item label="鍙戠エ閲戦(鍏�)锛�" prop="invoiceTotal">
+              <el-input type="number" v-model="form.invoiceTotal" placeholder="鑷姩濉厖" :step="0.01" disabled/>
             </el-form-item>
           </el-col>
         </el-row>
@@ -132,20 +120,13 @@
 <script setup>
 import pagination from '@/components/PIMTable/Pagination.vue'
 import { ref } from 'vue'
-import {ElMessageBox } from "element-plus";
-import {
-  invoiceLedgerListNoPage,
-  invoiceLedgerDetail
-} from "../../../api/salesManagement/invoiceLedger.js";
 import {
   receiptPaymentSaveOrUpdate,
-  receiptPaymentListPage,
-  receiptPaymentInfo,
-  receiptPaymentDel
+  bindInvoiceNoRegPage,
+  invoiceInfo
 } from "../../../api/salesManagement/receiptPayment.js";
 const { proxy } = getCurrentInstance()
 const tableData = ref([])
-const productData = ref([])
 const selectedRows = ref([])
 const tableLoading = ref(false)
 const page = reactive({
@@ -155,17 +136,16 @@
 const total = ref(0)
 
 // 鐢ㄦ埛淇℃伅琛ㄥ崟寮规鏁版嵁
-const operationType = ref('')
 const dialogFormVisible = ref(false)
 const data = reactive({
   searchForm: {
     searchText: '',
   },
   form: {
-    invoiceLedgerId: '',
+    salesContractNo: '',
     customerName: '',
     invoiceNo: '',
-    invoiceAmount: '',
+    invoiceTotal: '',
     taxRate: '',
     receiptPaymentAmount: '',
     receiptPaymentType: '',
@@ -173,10 +153,10 @@
     receiptPaymentDate: ''
   },
   rules: {
-    invoiceLedgerId: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
+    salesContractNo: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
     customerName: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
     invoiceNo: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
-    invoiceAmount: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
+    invoiceTotal: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }],
     taxRate: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
     receiptPaymentAmount: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
     receiptPaymentType: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
@@ -185,9 +165,6 @@
   }
 })
 const { searchForm, form, rules } = toRefs(data)
-const currentId = ref('')
-// 寮�绁ㄥ彴璐︽暟缁�
-const invoiceLedgerList = ref([])
 const { receipt_payment_type } = proxy.useDict("receipt_payment_type")
 
 // 鏌ヨ鍒楄〃
@@ -203,7 +180,7 @@
 }
 const getList = () => {
   tableLoading.value = true
-  receiptPaymentListPage({...searchForm.value, ...page}).then(res => {
+  bindInvoiceNoRegPage({...searchForm.value, ...page}).then(res => {
     tableLoading.value = false
     tableData.value = res.data.records
     total.value = res.data.total
@@ -239,19 +216,17 @@
   return sums;
 };
 // 鎵撳紑寮规
-const openForm = (type, row) => {
-  operationType.value = type
+const openForm = () => {
   form.value = {}
-  productData.value = []
-  invoiceLedgerListNoPage({}).then(res => {
-    invoiceLedgerList.value = res.data
-  })
-  if (type === 'edit') {
-    currentId.value = row.id;
-    receiptPaymentInfo({id: row.id}).then(res => {
-      form.value = {...res.data}
-    })
+  if(selectedRows.value.length !== 1) {
+    proxy.$modal.msgError("璇烽�夋嫨涓�鏉℃暟鎹�")
+    return
   }
+  invoiceInfo({id: selectedRows.value[0].id}).then(res => {
+    form.value = {...res.data}
+    form.value.invoiceLedgerId = form.value.id
+    form.value.id = ''
+  })
   dialogFormVisible.value = true
 }
 // 鎻愪氦琛ㄥ崟
@@ -270,61 +245,6 @@
 const closeDia = () => {
   proxy.resetForm("formRef")
   dialogFormVisible.value = false
-}
-// 鍒犻櫎
-const handleDelete = () => {
-  let ids = []
-  if (selectedRows.value.length > 0) {
-    ids = selectedRows.value.map(item => item.id);
-  } else {
-    proxy.$modal.msgWarning('璇烽�夋嫨鏁版嵁')
-    return
-  }
-  ElMessageBox.confirm(
-      '閫変腑鐨勫唴瀹瑰皢琚垹闄わ紝鏄惁纭鍒犻櫎锛�',
-      '瀵煎嚭', {
-        confirmButtonText: '纭',
-        cancelButtonText: '鍙栨秷',
-        type: 'warning',
-      }
-  ).then(() => {
-    receiptPaymentDel(ids).then(res => {
-      proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛")
-      getList()
-    })
-  }).catch(() => {
-    proxy.$modal.msg("宸插彇娑�")
-  })
-}
-// 閿�鍞彴璐︾瓫閫�
-const ledgerChange = (val) => {
-  console.log('val', val)
-  if(val){
-    invoiceLedgerDetail({id: val}).then(res => {
-      form.value.customerName = res.data.customerName,
-      form.value.invoiceNo= res.data.invoiceNo,
-      form.value.invoiceAmount= res.data.invoiceAmount,
-      form.value.taxRate= res.data.taxRate,
-      form.value.salesLedgerId= res.data.salesLedgerId,
-      form.value.customerId= res.data.customerId,
-      form.value.salesContractNo = res.data.salesContractNo
-    })
-  }else {
-    form.value.customerName = '',
-    form.value.invoiceNo= '',
-    form.value.invoiceAmount= '',
-    form.value.taxRate= '',
-    form.value.salesLedgerId= '',
-    form.value.customerId= '',
-    form.value.salesContractNo= ''
-  }
-}
-// 鏀舵绫诲埆杞崲
-const transferValue = (val) => {
-  const findIndex = receipt_payment_type.value.findIndex(item => item.value === val);
-  if (findIndex > -1) {
-    return  receipt_payment_type.value[findIndex].label
-  }
 }
 getList()
 </script>
diff --git a/src/views/salesManagement/receiptPaymentLedger/index.vue b/src/views/salesManagement/receiptPaymentLedger/index.vue
index 603e734..fb6c67e 100644
--- a/src/views/salesManagement/receiptPaymentLedger/index.vue
+++ b/src/views/salesManagement/receiptPaymentLedger/index.vue
@@ -24,7 +24,7 @@
                   height="calc(100vh - 18.5em)">
           <el-table-column align="center" label="搴忓彿" type="index" width="60" />
           <el-table-column label="瀹㈡埛鍚嶇О" prop="customerName" show-overflow-tooltip/>
-          <el-table-column label="寮�绁ㄩ噾棰�" prop="invoiceAmount" show-overflow-tooltip/>
+          <el-table-column label="寮�绁ㄩ噾棰�" prop="invoiceTotal" show-overflow-tooltip/>
           <el-table-column label="鍥炴閲戦" prop="receiptPaymentAmount" show-overflow-tooltip/>
           <el-table-column label="鏈洖娆鹃噾棰�" prop="unReceiptPaymentAmount" show-overflow-tooltip/>
         </el-table>
@@ -40,7 +40,8 @@
           <el-table-column align="center" label="搴忓彿" type="index" width="60" />
           <el-table-column label="鍙戠敓鏃ユ湡" prop="receiptPaymentDate" show-overflow-tooltip/>
           <el-table-column label="鍥炴閲戦" prop="receiptPaymentAmount" show-overflow-tooltip/>
-          <el-table-column label="搴旀敹閲戦" prop="invoiceAmount" show-overflow-tooltip/>
+          <el-table-column label="寰呮敹閲戦" prop="noReceiptAmount" show-overflow-tooltip/>
+          <el-table-column label="搴旀敹閲戦" prop="invoiceTotal" show-overflow-tooltip/>
         </el-table>
         <pagination v-show="recordTotal > 0" :total="recordTotal" layout="total, sizes, prev, pager, next, jumper" :page="recordPage.current"
                     :limit="recordPage.size" @pagination="recordPaginationChange" />
@@ -86,9 +87,10 @@
   page.current = 1
   getList()
 }
-const paginationChange = ({ current, limit }) => {
-  page.current = current;
-  page.size = limit;
+const paginationChange = (obj) => {
+  console.log('paginationChange', current,limit)
+  page.current = obj.page;
+  page.size = obj.limit;
   getList()
 }
 const getList = () => {
@@ -99,7 +101,7 @@
     total.value = res.data.total;
     if(tableData.value.length > 0) {
       recordPage.current = 1
-      customerId.value = tableData.value[0].customerId
+      customerId.value = tableData.value[0].id
       receiptPaymentList(customerId.value);
     }
   })
@@ -131,24 +133,28 @@
 const receiptPaymentList = (id) => {
   const param = {
     customerId:id,
-    current: page.current,
-    size: page.size,
+    current: recordPage.current,
+    size: recordPage.size,
   }
+  console.log('param', param)
   receiptPaymentListPage(param).then(res => {
     receiptRecord.value = res.data.records;
     recordTotal.value = res.data.total;
+
   })
 }
 
 // 姹囨璁板綍鍒楄〃鍒嗛〉
-const recordPaginationChange = (currentPage, pageSize) => {
-  recordPage.current = currentPage;
-  recordPage.size = pageSize;
+const recordPaginationChange = (obj) => {
+  console.log('recordPaginationChange', obj );
+  recordPage.current = obj.page;
+  recordPage.size = obj.limit;
+  console.log('recordPage',recordPage)
   receiptPaymentList(customerId.value);
 }
 
 const rowClickMethod = (row) => {
-  customerId.value = row.customerId;
+  customerId.value = row.id;
   receiptPaymentList(customerId.value);
 }
 
diff --git a/vite.config.js b/vite.config.js
index 70b85c8..a5dcb88 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,7 +2,7 @@
 import path from 'path'
 import createVitePlugins from './vite/plugins'
 
-const baseUrl = 'http://192.168.1.35:8080' // 鍚庣鎺ュ彛
+const baseUrl = 'http://192.168.1.36:8080' // 鍚庣鎺ュ彛
 
 // https://vitejs.dev/config/
 export default defineConfig(({ mode, command }) => {

--
Gitblit v1.9.3