张诺
8 小时以前 41a639a4a4b6fbf35db7903b5ee3c068c8644430
src/views/procurementManagement/procurementInvoiceLedger/index.vue
@@ -185,7 +185,7 @@
      prop: "taxInclusiveTotalPrice",
      width: 200,
      formatData: (cell) => {
        return cell ? parseFloat(cell).toFixed(2) : 0;
        return cell ? parseFloat(cell).toFixed(3) : 0;
      },
    },
    {
@@ -198,7 +198,7 @@
      prop: "ticketsAmount",
      width: 200,
      formatData: (cell) => {
        return cell ? parseFloat(cell).toFixed(2) : 0;
        return cell ? parseFloat(cell).toFixed(3) : 0;
      },
    },
    {
@@ -206,7 +206,7 @@
      prop: "unTicketsPrice",
      width: 200,
      formatData: (cell) => {
        return cell ? parseFloat(cell).toFixed(2) : 0;
        return cell ? parseFloat(cell).toFixed(3) : 0;
      },
    },
    {
@@ -242,6 +242,9 @@
    param,
    ["ticketsAmount", "unTicketsPrice", "invoiceAmount"],
    {
      ticketsAmount: { decimalPlaces: 3 },
      unTicketsPrice: { decimalPlaces: 3 },
      invoiceAmount: { decimalPlaces: 3 },
      ticketsNum: { noDecimal: true },
      futureTickets: { noDecimal: true },
    }
@@ -250,7 +253,7 @@
  const keySet = new Set();
  let taxInclusiveSum = 0;
  (param.data || []).forEach((row) => {
    const key = `${row.purchaseContractNumber ?? ""}\n${row.salesContractNo ?? ""}`;
    const key = `${row.purchaseContractNumber ?? ""}\n${row.salesContractNo ?? ""}\n${row.productCategory ?? ""}\n${row.specificationModel ?? ""}`;
    if (keySet.has(key)) return;
    keySet.add(key);
    const val = Number(row.taxInclusiveTotalPrice);
@@ -260,7 +263,7 @@
    (c) => c.property === "taxInclusiveTotalPrice"
  );
  if (taxInclusiveIndex !== -1) {
    sums[taxInclusiveIndex] = taxInclusiveSum.toFixed(2);
    sums[taxInclusiveIndex] = taxInclusiveSum.toFixed(3);
  }
  return sums;
};