src/views/procurementManagement/procurementLedger/index.vue
@@ -761,6 +761,7 @@
  import { modelList, productTreeList } from "@/api/basicData/product.js";
  import dayjs from "dayjs";
  import FileUpload from "@/components/AttachmentUpload/file/index.vue";
  import { trimZeros } from "@/utils/formatNumber.js";
  const userStore = useUserStore();
@@ -1085,7 +1086,7 @@
  };
  const formattedNumber = (row, column, cellValue) => {
    return parseFloat(cellValue).toFixed(6);
    return trimZeros(cellValue, 6);
  };
  // 查询列表
  /** 搜索按钮操作 */
@@ -1205,11 +1206,11 @@
        "futureTicketsAmount",
      ],
      {
        taxInclusiveUnitPrice: { decimalPlaces: 6 },
        taxInclusiveTotalPrice: { decimalPlaces: 6 },
        taxExclusiveTotalPrice: { decimalPlaces: 6 },
        ticketsAmount: { decimalPlaces: 6 },
        futureTicketsAmount: { decimalPlaces: 6 },
        taxInclusiveUnitPrice: { decimalPlaces: 6, trimZeros: true },
        taxInclusiveTotalPrice: { decimalPlaces: 6, trimZeros: true },
        taxExclusiveTotalPrice: { decimalPlaces: 6, trimZeros: true },
        ticketsAmount: { decimalPlaces: 6, trimZeros: true },
        futureTicketsAmount: { decimalPlaces: 6, trimZeros: true },
        ticketsNum: { noDecimal: true }, // 不保留小数
        futureTickets: { noDecimal: true }, // 不保留小数
      }
@@ -1279,8 +1280,8 @@
      param,
      ["contractAmount", "netContractAmount"],
      {
        contractAmount: { decimalPlaces: 6 },
        netContractAmount: { decimalPlaces: 6 },
        contractAmount: { decimalPlaces: 6, trimZeros: true },
        netContractAmount: { decimalPlaces: 6, trimZeros: true },
      }
    );
  };
@@ -1294,9 +1295,9 @@
        "taxExclusiveTotalPrice",
      ],
      {
        taxInclusiveUnitPrice: { decimalPlaces: 6 },
        taxInclusiveTotalPrice: { decimalPlaces: 6 },
        taxExclusiveTotalPrice: { decimalPlaces: 6 },
        taxInclusiveUnitPrice: { decimalPlaces: 6, trimZeros: true },
        taxInclusiveTotalPrice: { decimalPlaces: 6, trimZeros: true },
        taxExclusiveTotalPrice: { decimalPlaces: 6, trimZeros: true },
      }
    );
  };