huangfuli 3 years ago
parent
commit
b150b2c0c6
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/views/tranManagement/tranManagementShippingArrangemen.vue

+ 14 - 0
src/views/tranManagement/tranManagementShippingArrangemen.vue

@@ -323,6 +323,9 @@
               alt=""
               >×</span>
           </div>
+          <div style="text-align: right; color: #8890b1; font-size: 16px; margin-right: -40%" v-show="deptBudgetList.tranCarInfoList[0].shipType == '散船'">
+            共{{ total }}/{{ deptBudgetList.weight }}         
+          </div>
           <el-button
             class="add bg-bottom"
             type="primary"
@@ -459,6 +462,17 @@ export default {
       }
       return maxStorage
     },
+    total: function () {
+      if (this.deptBudgetList.tranCarInfoList.length > 0) {
+        var maxStorage = 0
+        for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
+          maxStorage += Number(
+            this.deptBudgetList.tranCarInfoList[i].positionWeight
+          )
+        }
+        return maxStorage
+      }
+    },
   },
   methods: {
     getList() {