gjy 3 lat temu
rodzic
commit
1af200b47a
1 zmienionych plików z 10 dodań i 10 usunięć
  1. 10 10
      src/views/outboundManagement/weighingManagementNew.vue

+ 10 - 10
src/views/outboundManagement/weighingManagementNew.vue

@@ -855,7 +855,7 @@
                 addstorageputList(this.weighingList)
                   .toPromise()
                   .then((response) => {
-					
+					this.weighingList.tare = this.weighingList.tare * 1000
                     this.weighingList.warehouseInOutId = response
                     tareEdit(this.weighingList)
                       .toPromise()
@@ -876,7 +876,6 @@
                           this.weighingList = response
                           this.warehouseCount = Number(this.warehouseCount)+ 1
 						  this.warehouseCount1 = Number(this.warehouseCount1)+ 1
-                          this.weighingList.tare = this.weighingList.tare * 1000
                           this.inspect = JSON.parse(
                             JSON.stringify(this.weighingLis)
                           )
@@ -920,6 +919,7 @@
                 addstorageputList(this.weighingList)
                   .toPromise()
                   .then((response) => {
+					this.weighingList.tare = this.weighingList.tare * 1000
                     this.weighingList.warehouseInOutId = response
                     tareAdd(this.weighingList)
                       .toPromise()
@@ -932,7 +932,6 @@
                             this.weighingList = response
                         	this.warehouseCount = Number(this.warehouseCount)+ 1
 							this.warehouseCount1 = Number(this.warehouseCount1)+ 1
-                            this.weighingList.tare = this.weighingList.tare * 1000
                             this.inspect = JSON.parse(
                               JSON.stringify(this.weighingList)
                             )
@@ -1021,6 +1020,13 @@
               addstorageputList(this.weighingList)
                 .toPromise()
                 .then((response) => {
+					this.weighingList.grossWeight =
+                        this.weighingList.grossWeight * 1000
+                      this.weighingList.tare = this.weighingList.tare * 1000
+                      this.weighingList.netWeight =
+                        this.weighingList.netWeight * 1000
+                      this.weighingList.buckleMiscellaneous =
+                        this.weighingList.buckleMiscellaneous * 1000
                   this.weighingList.warehouseInOutId = response
                   grossWeight(this.weighingList)
                     .toPromise()
@@ -1037,13 +1043,7 @@
                         message: '提交成功',
                         type: 'success',
                       })
-                      this.weighingList.grossWeight =
-                        this.weighingList.grossWeight * 1000
-                      this.weighingList.tare = this.weighingList.tare * 1000
-                      this.weighingList.netWeight =
-                        this.weighingList.netWeight * 1000
-                      this.weighingList.buckleMiscellaneous =
-                        this.weighingList.buckleMiscellaneous * 1000
+                      
                         // debugger
                       this.inspect = JSON.parse(JSON.stringify(this.weighingList))