src/views/procureMent/components/ProductionDialog.vue
@@ -203,7 +203,7 @@
  // 1. 根据含税单价和税率计算不含税单价
  // 不含税单价 = 含税单价 / (1 + 税率/100)
  const priceExcludingTax = priceIncludingTax && taxRate 
    ? toFixed(priceIncludingTax / (1 + taxRate / 100), 2)
    ? parseFloat((priceIncludingTax / (1 + taxRate / 100)).toFixed(2))
    : 0;
  // 2. 计算不含税总价 = 不含税单价 × 数量
@@ -216,8 +216,8 @@
    ? toFixed(priceIncludingTax * quantity, 2)
    : 0;
  // 更新表单数据
  form.value.priceExcludingTax = priceExcludingTax;
  // 保证显示为两位小数(如88.5显示为88.50)
  form.value.priceExcludingTax = priceExcludingTax.toFixed(2);
  form.value.totalPriceExcludingTax = totalPriceExcludingTax;
  form.value.totalPriceIncludingTax = totalPriceIncludingTax;
};