|
@@ -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'
|
|
})
|
|
})
|