ccjgmwz 3 tahun lalu
induk
melakukan
bd7bd39af0

+ 1 - 7
src/api/V2/charts/index.js

@@ -1,8 +1,2 @@
-/**
- * @fileOverview 图标数据
- */
-// 动态请求前缀
-const baseUrl = process.env.VUE_APP_API_CERTIFICATE
 
 
-// 证书模块
-export const API_GET_GETCHARTSDATA = `${baseUrl}/biInfoController/selectBiInfo`
+export const API_GET_GETCHARTSDATA = `/biInfoController/selectBiInfo`

+ 0 - 1
src/views/home/index.vue

@@ -429,7 +429,6 @@
           let text = ''
           let text = ''
           let formatter = ''
           let formatter = ''
           let graphicText = ''
           let graphicText = ''
-          debugger
           switch (i) {
           switch (i) {
             case 0:
             case 0:
               // 圆环图各环节的颜色
               // 圆环图各环节的颜色

+ 15 - 0
src/views/houseSelfCollect/weightCheck.vue

@@ -484,6 +484,7 @@
               }
               }
             }
             }
             else if (this.warehouseName && (this.warehouseName == '顺城粮库'||this.warehouseName == '鲅鱼圈金信库')) {
             else if (this.warehouseName && (this.warehouseName == '顺城粮库'||this.warehouseName == '鲅鱼圈金信库')) {
+              console.log(value)
               for (var i = value.length - 1; i >= 0; i--) {
               for (var i = value.length - 1; i >= 0; i--) {
                 var tmp = String.fromCharCode(value[i])
                 var tmp = String.fromCharCode(value[i])
                 if (tmp == '=') {
                 if (tmp == '=') {
@@ -493,6 +494,7 @@
                   result += tmp
                   result += tmp
                 }
                 }
               }
               }
+              console.log(parseInt(result))
               if (this.tpyeNo != 2) {
               if (this.tpyeNo != 2) {
                 if (parseInt(result) || parseInt(result) == 0) {
                 if (parseInt(result) || parseInt(result) == 0) {
                   this.weighingList.grossWeight = parseInt(result)
                   this.weighingList.grossWeight = parseInt(result)
@@ -504,6 +506,7 @@
               }
               }
             }
             }
             else {
             else {
+              // console.log(value)
               for(var i=0;i<value.length;i++){
               for(var i=0;i<value.length;i++){
                 var tmp = String.fromCharCode(value[i])
                 var tmp = String.fromCharCode(value[i])
                 
                 
@@ -530,13 +533,21 @@
                 }
                 }
               }
               }
               if (this.tpyeNo != 2) {
               if (this.tpyeNo != 2) {
+                console.log(parseInt(result)+''+parseInt(this.result1))
                 if (parseInt(result) || parseInt(result) == 0) {
                 if (parseInt(result) || parseInt(result) == 0) {
                   this.weighingList.grossWeight =  parseInt(result+this.result1)
                   this.weighingList.grossWeight =  parseInt(result+this.result1)
                 }
                 }
+                if (parseInt(result) == 0&&parseInt(this.result1) == 0) {
+                  this.weighingList.grossWeight =  0
+                }
+               
               } else {
               } else {
                 if (parseInt(result) || parseInt(result) == 0) {
                 if (parseInt(result) || parseInt(result) == 0) {
                   this.weighingList.tare =  parseInt(result+this.result1)
                   this.weighingList.tare =  parseInt(result+this.result1)
                 }
                 }
+                if (parseInt(result) == 0&&parseInt(this.result1) == 0) {
+                  this.weighingList.tare =  0
+                }
               }
               }
             }
             }
 
 
@@ -549,6 +560,10 @@
         }
         }
       },
       },
       cancel() {
       cancel() {
+        
+        if(this.reader){
+          this.reader.cancel()
+        }
         this.$router.push({
         this.$router.push({
           path: 'weighingManagement'
           path: 'weighingManagement'
         })
         })