Browse Source

修改合计,拒绝放款等bug

cuixq 4 years ago
parent
commit
25ae820ba2

+ 1 - 1
front-vue/src/utils/amtCommon.js

@@ -9,7 +9,7 @@ export function amtformat(number, decimals, dec_point, thousands_sep) {
         s = '',
         toFixedFix = function (n, prec) {
             var k = Math.pow(10, prec);
-            return '' + Math.ceil(n * k) / k;
+            return '' + Math.round(n * k) / k;
         };
 
     s = (prec ? toFixedFix(n, prec) : '' + Math.round(n)).split('.');

+ 3 - 3
front-vue/src/views/service/bill/billDetail.vue

@@ -318,13 +318,13 @@ export default {
         },
         //发票合计
         allAmount() {
-            var strarr = [0.0];
+            var strarr = [0.00];
             for (let i in this.fileList) {
                 // if (this.fileList[i]["ziiCheckStt"] == "1") {
-                //     strarr.push(this.fileList[i]["ziiAmount"]);
+                    strarr.push(this.fileList[i]["ziiAmount"]);
                 // }
             }
-            return (Math.floor(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
+            return (Math.round(eval(strarr.join("+")) * 100) / 100); //结果
             // return this.handleInput(eval(strarr.join("+"))); //结果
         },
         // 结束

+ 0 - 2
front-vue/src/views/service/financeRecord/financeRecord.vue

@@ -1714,7 +1714,6 @@ export default {
     },
     cancelRefuse(){
       this.openRefuse = false;
-      this.reset();
     },
     // 表单重置
     reset() {
@@ -1917,7 +1916,6 @@ export default {
     /**拒绝放款 */
     submitRefuse(zfrId,zfrFinanceId) {
       debugger
-      this.reset();
       this.formRefuse.zfrId = zfrId;
       this.formRefuse.zfrFinanceId = zfrFinanceId;
       this.openRefuse = true;

+ 2 - 3
front-vue/src/views/service/rel/companyRel.vue

@@ -829,7 +829,7 @@ export default {
     });
     this.getSpare().then(() => {
       this.spareParams.scpQuery = "00";
-    });;
+    });
     this.getCompanyList();
   },
   mounted() {
@@ -966,6 +966,7 @@ export default {
       // } else {
         listRel(this.queryParams).then(response => {
           let list = response.data.records;
+            console.log(list);
           this.loginId = response.msg;
           for (let i = 0; i < list.length; i++) {
             if (list[i].launchCompanyId == response.msg) {
@@ -983,8 +984,6 @@ export default {
             }
           }
           this.companyRelList = list;
-          console.log(12312313123);
-          console.log(this.companyRelList);
           this.total = response.data.total;
           this.loading = false;
         });