gjy 4 anos atrás
pai
commit
69c7016d1e
1 arquivos alterados com 7 adições e 13 exclusões
  1. 7 13
      src/views/taskManagement/moveWarehouseTaskLook.vue

+ 7 - 13
src/views/taskManagement/moveWarehouseTaskLook.vue

@@ -154,19 +154,13 @@
       <ws-info-table class="flow">
         <el-table :data="weights" height="90" border style="width: 100%">
           <el-table-column prop="weightOut" label="累计出库量(吨)">
-            <!-- <template scope="scope"> -->
-              {{this.weightOut}}
-            <!-- </template > -->
           </el-table-column>
           <el-table-column prop="weightIn" label="累计入库量(吨)">
-            <!-- <template scope="scope"> -->
-              {{this.weightIn}}
-            <!-- </template> -->
           </el-table-column>
           <el-table-column prop="transportLoss" label="累计运输损耗(吨)"> 
-             <!-- <template scope="scope">  -->
-              {{this.transportLoss}}
-            <!-- </template> -->
+            <template scope="scope">
+              {{weightOut}}
+            </template>
           </el-table-column>
         </el-table>
       </ws-info-table>
@@ -246,7 +240,7 @@ export default {
       enter: {},
       moveTaskNo: '',
       weights:[
-        // {weightOut: 0},
+        {},
         // {weightIn: 0},
         // { transportLoss: 0}
       ],
@@ -311,16 +305,17 @@ export default {
             if (this.moveLookData[i].inOutType == '移库出库') {
               this.shipment = this.moveLookData[i]
                this.weightOut = this.moveLookData[i].weight
-              // this.weights.push({weightOut:this.moveLookData[i].weight})
+               this.$set(this.weights[0],'weightOut',this.moveLookData[i].weight)
               // this.weights.splice(1,1,{weightOut:this.moveLookData[i].weight})
 
             } else  {
               // if (this.moveLookData[i].inOutType == '移库入库')
               this.enter = this.shipment = this.moveLookData[i]
                 this.weightIn = this.moveLookData[i].weight
-                //this.weights.push({weightIn:this.moveLookData[i].weight})
+                this.$set(this.weights[0],'weightIn',this.moveLookData[i].weight)
               this.businessDescribe = this.moveLookData[i].businessDescribe
             }
+            console.log(this.weights)
            this.transportLoss = this.weightOut - this.weightIn
             this.goodsName = this.moveLookData[0].goodsName
             this.grade = this.moveLookData[0].grade
@@ -330,7 +325,6 @@ export default {
             this.unitPrice = this.moveLookData[0].unitPrice
           }
         })
-        console.log(this.weights,"重量素组")
     },
     selectChapterTwo(e) {
       for (var i = 0; i < this.ChapterTwoList.length; i++) {