张诺
22 小时以前 b41552e7d56a7068e9080a475baaef9c173f8b7e
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"
@@ -128,7 +129,7 @@
        </el-table-column>
        <el-table-column align="center" label="序号" type="index" width="60" />
        <el-table-column
          label="销售合同号"
          label="订单编号"
          prop="salesContractNo"
          show-overflow-tooltip
          width="240"
@@ -208,7 +209,7 @@
        size="small"
      >
        <el-table-column type="index" label="序号" width="50" align="center"/>
        <el-table-column label="销售合同号" prop="salesContractNo" show-overflow-tooltip />
        <el-table-column label="订单编号" prop="salesContractNo" show-overflow-tooltip />
        <el-table-column label="客户名称" prop="customerName" show-overflow-tooltip />
            <el-table-column
               label="产品大类"
@@ -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();
};
// 删除回款记录