高敬炎 преди 1 година
родител
ревизия
18f54f9596
променени са 1 файла, в които са добавени 10 реда и са изтрити 1 реда
  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 = ''
               }
             }