ccjgmwz 3 лет назад
Родитель
Сommit
5d8f8af813

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

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

+ 5 - 4
src/views/outboundManagement/weighing.vue

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

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

@@ -504,10 +504,11 @@
             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 (value[i] == 46) {
+                console.log(tmp)
+                if (String.fromCharCode(value[0]) == '.') {
                   flag = true
                 }
-                if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
+                if (flag && result.length < 9 && tmp != '='&& tmp != '.') {
                   result += tmp
                 }
               }

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

@@ -527,10 +527,11 @@
             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 (value[i] == 46) {
+                console.log(tmp)
+                if (String.fromCharCode(value[0]) == '.') {
                   flag = true
                 }
-                if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
+                if (flag && result.length < 9 && tmp != '='&& tmp != '.') {
                   result += tmp
                 }
               }

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

@@ -463,10 +463,11 @@
             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 (value[i] == 46) {
+                console.log(tmp)
+                if (String.fromCharCode(value[0]) == '.') {
                   flag = true
                 }
-                if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
+                if (flag && result.length < 9 && tmp != '='&& tmp != '.') {
                   result += tmp
                 }
               }

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

@@ -441,10 +441,11 @@
             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 (value[i] == 46) {
+                console.log(tmp)
+                if (String.fromCharCode(value[0]) == '.') {
                   flag = true
                 }
-                if (flag && result.length < 9 && tmp != '='&& value[i] != 46) {
+                if (flag && result.length < 9 && tmp != '='&& tmp != '.') {
                   result += tmp
                 }
               }