gongchunyi
昨天 4b44783dfbc0ab21b8970cce25fddfc1cfffeafb
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"
@@ -101,7 +102,6 @@
                  <el-button
                    link
                    type="primary"
                    size="small"
                    @click="changeEditType(scope.row)"
                    v-if="!scope.row.editType"
                    >编辑</el-button
@@ -109,7 +109,6 @@
                  <el-button
                    link
                    type="primary"
                    size="small"
                    @click="saveReceiptPayment(scope.row)"
                    v-if="scope.row.editType"
                    >保存</el-button
@@ -117,7 +116,6 @@
                  <el-button
                    link
                    type="primary"
                    size="small"
                    @click="delReceiptRecord(scope.row)"
                    >删除</el-button
                  >
@@ -206,6 +204,8 @@
        border
        style="width: 100%"
        size="small"
        show-summary
        :summary-method="summarizeFormTable"
      >
        <el-table-column type="index" label="序号" width="50" align="center"/>
        <el-table-column label="销售合同号" prop="salesContractNo" show-overflow-tooltip />
@@ -313,6 +313,7 @@
});
const total = ref(0);
const expandedRowKeys = ref([]);
const tableRef = ref(null);
// 用户信息表单弹框数据
const dialogFormVisible = ref(false);
@@ -404,7 +405,7 @@
const summarizeMainTable = (param) => {
  return proxy.summarizeTable(
    param,
    ["receiptPaymentAmountTotal", "noReceiptAmount"],
    ["invoiceTotal", "pendingInvoiceTotal"],
    {
      ticketsNum: { noDecimal: true }, // 不保留小数
      futureTickets: { noDecimal: true }, // 不保留小数
@@ -414,6 +415,10 @@
// 子表合计方法
const summarizeChildrenTable = (param) => {
  return proxy.summarizeTable(param, ["receiptPaymentAmount"]);
};
// 新增回款弹窗表合计方法
const summarizeFormTable = (param) => {
  return proxy.summarizeTable(param, ["pendingInvoiceTotal", "receiptPaymentAmount"]);
};
// 打开弹框
const openForm = () => {
@@ -491,6 +496,7 @@
  dialogFormVisible.value = false;
  // 避免二次打开弹窗时仍携带上一次的选择导致“多出一行/脏数据”
  selectedRows.value = [];
  tableRef.value?.clearSelection();
};
// 删除回款记录