cuixq 3 år sedan
förälder
incheckning
42e92a034f

+ 1 - 1
front-vue/src/views/service/bill/addBill.vue

@@ -973,7 +973,7 @@ export default {
                 strarr.push(this.fileList[i]["ziiAmount"]);
                 }
             }
-            return (Math.floor(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
+            return (Math.round(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
         },
         // 提交
         submit() {

+ 1 - 1
front-vue/src/views/service/bill/editBill.vue

@@ -1311,7 +1311,7 @@ export default {
            strarr.push(this.fileList[i]["ziiAmount"]);
         }
       }
-      return (Math.floor(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
+      return (Math.round(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
       // return this.handleInput(eval(strarr.join("+"))); //结果
     },
     // 结束

+ 1 - 1
front-vue/src/views/service/credit/billDetail.vue

@@ -431,7 +431,7 @@ export default {
           strarr.push(this.fileList[i]["ziiAmount"]);
         }
       }
-      return (Math.floor(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
+      return (Math.round(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
       // return this.handleInput(eval(strarr.join("+"))); //结果
     },
     // 结束

+ 1 - 1
front-vue/src/views/service/credit/goFinance.vue

@@ -1009,7 +1009,7 @@ export default {
       for (let i in this.billInfList) {
         strarr.push(this.billInfList[i]["zbiAmount"]);
       }
-      return Math.floor(eval(strarr.join("+")) * 100) / 100; //结果
+      return Math.round(eval(strarr.join("+")) * 100) / 100; //结果
     },
     /* //  将数字金额转换为大写金额 */
     smallToBig(money) {

+ 1 - 1
front-vue/src/views/service/financeRecord/addFinanceRecord.vue

@@ -1003,7 +1003,7 @@ export default {
       for (let i in this.billInfList) {
         strarr.push(this.billInfList[i]["zbiAmount"]);
       }
-      return Math.floor(eval(strarr.join("+")) * 100) / 100; //结果
+      return Math.round(eval(strarr.join("+")) * 100) / 100; //结果
     },
     /* //  将数字金额转换为大写金额 */
     smallToBig(money) {

+ 1 - 1
front-vue/src/views/service/financeRecord/approvalRecordDetail.vue

@@ -453,7 +453,7 @@ export default {
       for (let i in this.billInfList) {
         strarr.push(this.billInfList[i]["zbiAmount"]);
       }
-      return Math.floor(eval(strarr.join("+")) * 100) / 100; //结果
+      return Math.round(eval(strarr.join("+")) * 100) / 100; //结果
     },
     /* //  将数字金额转换为大写金额 */
     smallToBig(money) {

+ 1 - 1
front-vue/src/views/service/financeRecord/detailFinanceRecord.vue

@@ -823,7 +823,7 @@ export default {
       for (let i in this.billInfList) {
         strarr.push(this.billInfList[i]["zbiAmount"]);
       }
-      return Math.floor(eval(strarr.join("+")) * 100) / 100; //结果
+      return Math.fround(eval(strarr.join("+")) * 100) / 100; //结果
     },
     /* //  将数字金额转换为大写金额 */
     smallToBig(money) {

+ 1 - 1
front-vue/src/views/service/financeRecord/recordSeal.vue

@@ -1010,7 +1010,7 @@ export default {
       for (let i in this.billInfList) {
         strarr.push(this.billInfList[i]["zbiAmount"]);
       }
-      return Math.floor(eval(strarr.join("+")) * 100) / 100; //结果
+      return Math.round(eval(strarr.join("+")) * 100) / 100; //结果
     },
     /* //  将数字金额转换为大写金额 */
     smallToBig(money) {