Forráskód Böngészése

Merge branch 'stage' of http://36.137.93.232:3000/hf/byte-sailing-new into stage

lxf 1 éve
szülő
commit
9f512270a4
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      src/components/process/SendPurchase.vue

+ 2 - 3
src/components/process/SendPurchase.vue

@@ -691,9 +691,8 @@ const formatNumber = (value) => {
     return "";
   }
   // 将输入值保留四位小数
-  const formattedValue = parseFloat(value).toFixed(4);
-  // 移除多余的0
-  return parseFloat(formattedValue).toString();
+  const formattedValue = Math.round(Number(value) * 10000) / 10000;
+  return formattedValue;
 };
 
 // 计算采购总金额