liding
2025-05-24 eff6f48a92f9318a95e95cc76c1685d4635d2040
src/views/procurementManagement/paymentLedger/index.vue
@@ -2,7 +2,7 @@
  <div class="app-container">
    <div class="search_form">
      <div>
        <span class="search_title">付款台账:</span>
        <span class="search_title">供应商名称:</span>
        <el-input
          v-model="searchForm.supplierNameOrContractNo"
          style="width: 240px"
@@ -94,36 +94,20 @@
import {getInfo} from "@/api/login.js";
const rowClick = async (row) => {
  /* let res = await getInfo(row.id)
  if (res.code === 200) {
    proxy.$modal.msgSuccess("获取成功")
    if(res.data == "" || res.data == null){
      proxy.$modal.msgError("没有数据")
      return
    }
    rightShow.value = !rightShow.value
    form.value = res.data
  } else {
    proxy.$modal.msgError(res.msg)
  } */
  tableDataSon.value.push(row);
  if(tableDataSon.value.length > 10) {
    tableDataSon.value = []
  }
}
const rowClick = (row) => {
  tableDataSon.value = Array.isArray(row.details) ? row.details : [];
};
// 子模块
const tableColumnSon = ref([
  {
    label: "供应商名称",
    prop: "supplierName",
    label: "付款日期",
    prop: "paymentDate",
  },
  {
    label: "发票金额(元)",
    prop: "invoiceAmount",
    label: "开票数",
    prop: "voteCount",
  },
  {
    label: "付款金额(元)",
@@ -142,9 +126,8 @@
});
const totalSon = ref(0);
const isShowSummarySon = ref(true);
const detailPageNum = ref(1);
const detailPageSize = ref(10);
/** 搜索按钮操作 */
const handleQuery = () => {
@@ -163,11 +146,16 @@
};
const getList = () => {
  tableLoading.value = false;
  paymentLedgerList({ ...searchForm.value, ...page }).then((res) => {
    let result = res.data
  paymentLedgerList({
    ...searchForm.value,
    ...page,
    detailPageNum: detailPageNum.value, // 新增
    detailPageSize: detailPageSize.value // 新增
  }).then((res) => {
    let result = res.data;
    tableLoading.value = false;
    tableData.value = result;
    total.value = result.total;
    tableData.value = result.records || [];
    total.value = result.total || 0;
  });
};
// 表格选择数据