liding
16 小时以前 06372ae6f71fd776fc3db320c410c38966576c7c
src/views/procurementManagement/procurementLedger/index.vue
@@ -604,8 +604,8 @@
            <el-form-item label="含税单价(元):"
                          prop="taxInclusiveUnitPrice">
              <el-input-number v-model="productForm.taxInclusiveUnitPrice"
                               :precision="2"
                               :step="0.1"
                               :precision="4"
                               :step="0.0001"
                               :min="0"
                               clearable
                               style="width: 100%"
@@ -1072,7 +1072,9 @@
  };
  const formattedNumber = (row, column, cellValue) => {
    return parseFloat(cellValue).toFixed(2);
    const val = Number(cellValue ?? 0);
    if (!Number.isFinite(val)) return "0.00";
    return column.property === "taxInclusiveUnitPrice" ? val.toFixed(4) : val.toFixed(2);
  };
  // 查询列表
  /** 搜索按钮操作 */
@@ -1267,7 +1269,7 @@
      "taxInclusiveUnitPrice",
      "taxInclusiveTotalPrice",
      "taxExclusiveTotalPrice",
    ]);
    ], { taxInclusiveUnitPrice: { decimalPlaces: 4 } });
  };
  // 打开弹框
  const openForm = async (type, row) => {
@@ -1769,7 +1771,7 @@
        productForm.value.taxInclusiveUnitPrice = (
          Number(productForm.value.taxInclusiveTotalPrice) /
          Number(productForm.value.quantity)
        ).toFixed(2);
        ).toFixed(4);
        // 确保结果不为负数
        if (Number(productForm.value.taxInclusiveUnitPrice) < 0) {
          productForm.value.taxInclusiveUnitPrice = "0";
@@ -1810,7 +1812,7 @@
        productForm.value.taxInclusiveUnitPrice = (
          Number(productForm.value.taxInclusiveTotalPrice) /
          Number(productForm.value.quantity)
        ).toFixed(2);
        ).toFixed(4);
        // 确保结果不为负数
        if (Number(productForm.value.taxInclusiveUnitPrice) < 0) {
          productForm.value.taxInclusiveUnitPrice = "0";