002201 2 роки тому
батько
коміт
a0a94d7c4d

+ 1 - 1
src/views/purchase/apply/add/column.js

@@ -289,7 +289,7 @@ export const TabColumns = [
         computed: (prop) => {
           const { tax, taxPrice } = prop;
           const newTax = Number(tax) / 100;
-          const price = (taxPrice / (1 + newTax)).toFixed(8);
+          const price = (taxPrice / (1 + newTax)).toFixed(6);
           return price === "NaN" ? null : price;
         },
         require: true,

+ 3 - 3
src/views/purchase/contract/add/column.js

@@ -382,7 +382,7 @@ export const TabColumns = [
         width: 200,
         computed: (prop) => {
           const { qty, taxPrice } = prop;
-          const taxMoney = (qty * taxPrice).toFixed(8);
+          const taxMoney = (qty * taxPrice).toFixed(6);
           return taxMoney === "NaN" ? null : taxMoney;
         },
       },
@@ -394,7 +394,7 @@ export const TabColumns = [
         computed: (prop) => {
           const { tax, taxPrice } = prop;
           const newTax = Number(tax) / 100;
-          const taxFreePrice = (taxPrice / (1 + newTax)).toFixed(8);
+          const taxFreePrice = (taxPrice / (1 + newTax)).toFixed(6);
           return taxFreePrice === "NaN" ? null : taxFreePrice;
         },
       },
@@ -405,7 +405,7 @@ export const TabColumns = [
         width: 200,
         computed: (prop) => {
           const { qty, taxFreePrice } = prop;
-          const taxFreeMoney = (qty * taxFreePrice).toFixed(8);
+          const taxFreeMoney = (qty * taxFreePrice).toFixed(6);
           return taxFreeMoney === "NaN" ? null : taxFreeMoney;
         },
       },

+ 3 - 3
src/views/purchase/contract/see/column.js

@@ -394,7 +394,7 @@ export const TabColumns = [
         width: 200,
         computed: (prop) => {
           const { qty, taxPrice } = prop;
-          const taxMoney = (qty * taxPrice).toFixed(8);
+          const taxMoney = (qty * taxPrice).toFixed(6);
           return taxMoney === "NaN" ? null : taxMoney;
         },
       },
@@ -406,7 +406,7 @@ export const TabColumns = [
         computed: (prop) => {
           const { tax, taxPrice } = prop;
           const newTax = Number(tax) / 100;
-          const taxFreePrice = (taxPrice / (1 + newTax)).toFixed(8);
+          const taxFreePrice = (taxPrice / (1 + newTax)).toFixed(6);
           return taxFreePrice === "NaN" ? null : taxFreePrice;
         },
       },
@@ -417,7 +417,7 @@ export const TabColumns = [
         width: 200,
         computed: (prop) => {
           const { qty, taxFreePrice } = prop;
-          const taxFreeMoney = (qty * taxFreePrice).toFixed(8);
+          const taxFreeMoney = (qty * taxFreePrice).toFixed(6);
           return taxFreeMoney === "NaN" ? null : taxFreeMoney;
         },
       },

+ 1 - 1
src/views/purchase/task/first-direct/column.js

@@ -26,7 +26,7 @@ export const TableColumns = [
     width: 200,
     computed: (prop) => {
       const { tax } = prop;
-      return tax.toFixed(8) + "%";
+      return tax.toFixed(6) + "%";
     },
   },
   { key: "taxFreePrice", title: "无税单价" },