src/views/salesManagement/receiptPaymentLedger/index.vue
@@ -42,12 +42,7 @@
                             :formatter="formattedNumber"
                             width="200" />
            <el-table-column label="回款金额(元)"
                             prop="receiptPaymentAmount"
                             show-overflow-tooltip
                             :formatter="formattedNumber"
                             width="200" />
            <el-table-column label="退货金额(元)"
                             prop="returnAmount"
                             prop="receiptRecordAmount"
                             show-overflow-tooltip
                             :formatter="formattedNumber"
                             width="200" />
@@ -59,6 +54,16 @@
                <el-text type="danger">
                  {{ formattedNumber(row, column, row.receiptableAmount) }}
                </el-text>
              </template>
            </el-table-column>
            <el-table-column label="操作"
                             align="center"
                             width="90"
                             fixed="right">
              <template #default="{ row }">
                <el-button link
                           type="primary"
                           @click.stop="openRecordDialog(row)">流水</el-button>
              </template>
            </el-table-column>
          </el-table>
@@ -97,12 +102,7 @@
                             :formatter="formattedNumber"
                             width="200" />
            <el-table-column label="回款金额(元)"
                             prop="receiptPaymentAmount"
                             show-overflow-tooltip
                             :formatter="formattedNumber"
                             width="200" />
            <el-table-column label="退货金额(元)"
                             prop="returnAmount"
                             prop="receiptRecordAmount"
                             show-overflow-tooltip
                             :formatter="formattedNumber"
                             width="200" />
@@ -126,6 +126,14 @@
        </div>
      </el-col>
    </el-row>
    <!-- 客户付款流水维护 -->
    <PaymentRecordDialog v-model:visible="recordDialogVisible"
                         title="客户付款流水"
                         :party-type="1"
                         :party-id="recordPartyId"
                         :party-name="recordPartyName"
                         :direction="1"
                         @changed="getList" />
  </div>
</template>
@@ -136,6 +144,7 @@
    customewTransactionsDetails,
  } from "@/api/salesManagement/indicatorStats.js";
  import Pagination from "../../../components/PIMTable/Pagination.vue";
  import PaymentRecordDialog from "@/components/PaymentRecordDialog/index.vue";
  const { proxy } = getCurrentInstance();
  const tableData = ref([]);
  const receiptRecord = ref([]);
@@ -159,6 +168,16 @@
  const customerId = ref("");
  const { searchForm } = toRefs(data);
  const originReceiptRecord = ref([]);
  // 付款流水弹窗
  const recordDialogVisible = ref(false);
  const recordPartyId = ref("");
  const recordPartyName = ref("");
  const openRecordDialog = row => {
    recordPartyId.value = row.customerId;
    recordPartyName.value = row.customerName || "";
    recordDialogVisible.value = true;
  };
  // 查询列表
  /** 搜索按钮操作 */
  const handleQuery = () => {
@@ -190,12 +209,7 @@
  const summarizeMainTable = param => {
    return proxy.summarizeTable(
      param,
      [
        "contractAmounts",
        "receiptPaymentAmount",
        "returnAmount",
        "receiptableAmount",
      ],
      ["contractAmounts", "receiptPaymentAmount", "receiptableAmount"],
      {
        ticketsNum: { noDecimal: true }, // 不保留小数
        futureTickets: { noDecimal: true }, // 不保留小数
@@ -206,12 +220,7 @@
  const summarizeMainTable1 = param => {
    var summarizeTable = proxy.summarizeTable(
      param,
      [
        "contractAmount",
        "receiptPaymentAmount",
        "returnAmount",
        "receiptableAmount",
      ],
      ["contractAmount", "receiptPaymentAmount", "receiptableAmount"],
      {
        ticketsNum: { noDecimal: true }, // 不保留小数
        futureTickets: { noDecimal: true }, // 不保留小数