高敬炎 1 anno fa
parent
commit
18f54f9596
1 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  1. 10 1
      src/views/tradeServicesManagement/warehouseReceiptAdd.vue

+ 10 - 1
src/views/tradeServicesManagement/warehouseReceiptAdd.vue

@@ -141,7 +141,8 @@
           nowWeight:'',
           warehouseNo:'',
           warehouseName:'',
-          renown:''
+          renown:'',
+          weight:''
         },
         size: 10,
         compId: '',
@@ -182,8 +183,15 @@
         this.deptBudgetList=JSON.parse(localStorage.getItem('warehouseReceiptdata'))
         var data=await global.default.getDataByKey(this.db,'signalChat',1)
         if(data){
+          this.deptBudgetList.weight=''
+          var weight = 0
           if(data.modification&&data.modification.length>0){
+
             this.goodstext='已选'+data.modification.length+'辆车'
+            for(let i=0;i<data.modification.length;i++){
+              weight+=data.modification[i].netWeight
+            }
+            this.deptBudgetList.weight = weight.toFixed(2)
           }
         }
       }
@@ -374,6 +382,7 @@
             if(data){
               if(data.modification&&data.modification.length>0){
                 global.default.deleteDB(this.db,'signalChat',1)
+                this.deptBudgetList.weight = ''
               }
             }