ccjgmwz 3 years ago
parent
commit
ee5c09cd10

+ 2 - 2
src/views/houseSelfCollect/weightCheck.vue

@@ -503,10 +503,10 @@
               console.log(value)
               for (var i = value.length - 1; i >= 0; i--) {
                 var tmp = String.fromCharCode(value[i])
-                if (tmp == '=') {
+                if (value[i] == 46) {
                   flag = true
                 }
-                if (flag && result.length < 9 && tmp != '=') {
+                if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
                   result += tmp
                 }
               }

+ 2 - 2
src/views/outboundManagement/weighing.vue

@@ -236,10 +236,10 @@
 				else if (this.warehouseName && (this.warehouseName == '顺城粮库'||this.warehouseName == '鲅鱼圈金信库')) {
 					for (var i = value.length - 1; i >= 0; i--) {
 						var tmp = String.fromCharCode(value[i])
-						if (tmp == '=') {
+						if (value[i] == 46) {
 							flag = true
 						}
-						if (flag && result.length < 9 && tmp != '=') {
+						if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
 							result += tmp
 						}
 					}

+ 2 - 2
src/views/warehouse/warehouseManagementGross.vue

@@ -504,10 +504,10 @@
             else if (this.deptBudgetList.warehouseName && (this.deptBudgetList.warehouseName == '顺城粮库'||this.deptBudgetList.warehouseName == '鲅鱼圈金信库')) {
               for (var i = value.length - 1; i >= 0; i--) {
                 var tmp = String.fromCharCode(value[i])
-                if (tmp == '=') {
+                if (value[i] == 46) {
                   flag = true
                 }
-                if (flag && result.length < 9 && tmp != '=') {
+                if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
                   result += tmp
                 }
               }

+ 2 - 2
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -527,10 +527,10 @@
             else if (this.deptBudgetList1.warehouseName && (this.deptBudgetList1.warehouseName == '顺城粮库'||this.deptBudgetList1.warehouseName == '鲅鱼圈金信库')) {
               for (var i = value.length - 1; i >= 0; i--) {
                 var tmp = String.fromCharCode(value[i])
-                if (tmp == '=') {
+                if (value[i] == 46) {
                   flag = true
                 }
-                if (flag && result.length < 9 && tmp != '=') {
+                if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
                   result += tmp
                 }
               }

+ 2 - 2
src/views/warehouse/warehouseManagementNoWeightOut.vue

@@ -463,10 +463,10 @@
             else if (this.deptBudgetList1.warehouseName && (this.deptBudgetList1.warehouseName == '顺城粮库'||this.deptBudgetList1.warehouseName == '鲅鱼圈金信库')) {
               for (var i = value.length - 1; i >= 0; i--) {
                 var tmp = String.fromCharCode(value[i])
-                if (tmp == '=') {
+                if (value[i] == 46) {
                   flag = true
                 }
-                if (flag && result.length < 9 && tmp != '=') {
+                if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
                   result += tmp
                 }
               }

+ 2 - 2
src/views/warehouse/warehouseManagementTare.vue

@@ -433,10 +433,10 @@
             else if (this.deptBudgetList.warehouseName && (this.deptBudgetList.warehouseName == '顺城粮库'||this.deptBudgetList.warehouseName == '鲅鱼圈金信库')) {
               for (var i = value.length - 1; i >= 0; i--) {
                 var tmp = String.fromCharCode(value[i])
-                if (tmp == '=') {
+                if (value[i] == 46) {
                   flag = true
                 }
-                if (flag && result.length < 9 && tmp != '=') {
+                if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
                   result += tmp
                 }
               }