张诺
14 小时以前 e705ef7b15c04307d6f37b388564dedfaeef4a55
src/views/salesManagement/receiptPayment/index.vue
@@ -40,6 +40,7 @@
      <el-table
        :data="tableData"
        border
        ref="tableRef"
        v-loading="tableLoading"
        @selection-change="handleSelectionChange"
        :row-key="(row) => row.id"
@@ -313,6 +314,7 @@
});
const total = ref(0);
const expandedRowKeys = ref([]);
const tableRef = ref(null);
// 用户信息表单弹框数据
const dialogFormVisible = ref(false);
@@ -335,7 +337,7 @@
const getStatusTagType = (statusName = '') => {
  const normalized = statusName.trim();
  if (!normalized) return 'info';
  return normalized === '未完成回款' ? 'danger' : 'success';
  return normalized === '未完成付款' ? 'danger' : 'success';
};
// 查询列表
/** 搜索按钮操作 */
@@ -406,6 +408,8 @@
    param,
    ["receiptPaymentAmountTotal", "noReceiptAmount"],
    {
      receiptPaymentAmountTotal: { decimalPlaces: 3 },
      noReceiptAmount: { decimalPlaces: 3 },
      ticketsNum: { noDecimal: true }, // 不保留小数
      futureTickets: { noDecimal: true }, // 不保留小数
    }
@@ -413,7 +417,9 @@
};
// 子表合计方法
const summarizeChildrenTable = (param) => {
  return proxy.summarizeTable(param, ["receiptPaymentAmount"]);
  return proxy.summarizeTable(param, ["receiptPaymentAmount"], {
    receiptPaymentAmount: { decimalPlaces: 3 },
  });
};
// 打开弹框
const openForm = () => {
@@ -491,6 +497,7 @@
  dialogFormVisible.value = false;
  // 避免二次打开弹窗时仍携带上一次的选择导致“多出一行/脏数据”
  selectedRows.value = [];
  tableRef.value?.clearSelection();
};
// 删除回款记录