zhongtianhaoyuan 3 年 前
コミット
b2859b8128
1 ファイル変更7 行追加6 行削除
  1. 7 6
      src/views/taskManagement/moveWarehouseTaskLook.vue

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

@@ -155,17 +155,17 @@
         <el-table :data="weights" height="90" border style="width: 100%">
           <el-table-column prop="weightOut" label="累计出库量(吨)">
             <!-- <template scope="scope"> -->
-              {{this.weightOut}}
+              <!-- {{this.weightOut}} -->
             <!-- </template > -->
           </el-table-column>
           <el-table-column prop="weightIn" label="累计入库量(吨)">
             <!-- <template scope="scope"> -->
-              {{this.weightIn}}
+              <!-- {{this.weightIn}} -->
             <!-- </template> -->
           </el-table-column>
           <el-table-column prop="transportLoss" label="累计运输损耗(吨)"> 
              <!-- <template scope="scope">  -->
-              {{this.transportLoss}}
+              <!-- {{this.transportLoss}} -->
             <!-- </template> -->
           </el-table-column>
         </el-table>
@@ -311,17 +311,18 @@ 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.weights.push({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.weights.push({weightIn:this.moveLookData[i].weight})
               this.businessDescribe = this.moveLookData[i].businessDescribe
             }
-           this.transportLoss = this.weightOut - this.weightIn
+             this.weights[0].transportLoss = this.weights[0].weightOut -  this.weights[0].weightIn
+          //  this.transportLoss = this.weightOut - this.weightIn
             this.goodsName = this.moveLookData[0].goodsName
             this.grade = this.moveLookData[0].grade
             this.bulkDensity = this.moveLookData[0].bulkDensity