chenrui  1 rok temu
rodzic
commit
00618e0580

+ 21 - 0
src/views/statisticalanalysis/components/echart/tableforms.vue

@@ -1181,6 +1181,13 @@
             :align="tableColumnProperty.align"
           >
           </el-table-column>
+          <el-table-column
+            prop="weight"
+            label="重量"
+            :show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
+            :align="tableColumnProperty.align"
+          >
+          </el-table-column>
         </el-table>
       </template>
       <template v-if="tableList.length && action == 15">
@@ -1230,6 +1237,13 @@
             :align="tableColumnProperty.align"
           >
           </el-table-column>
+          <el-table-column
+            prop="weight"
+            label="重量"
+            :show-overflow-tooltip="tableColumnProperty.showOverflowTooltip"
+            :align="tableColumnProperty.align"
+          >
+          </el-table-column>
         </el-table>
       </template>
     </div>
@@ -1478,6 +1492,13 @@ export default {
             sums[12] = this.listall.oklvall;
           }
         }
+        if (this.action === 15) {
+          sums[3] = this.listall.alllist;
+          sums[4] = this.listall.allwei;
+        } else if (this.action === 14) {
+          sums[4] = this.listall.alllist;
+          sums[5] = this.listall.allwei;
+        }
       });
       return sums;
     },

+ 9 - 0
src/views/statisticalanalysis/deliverydetails/index.vue

@@ -29,6 +29,7 @@
         "
         :action="action"
         :set="set"
+        :listall="listall"
       />
     </div>
     <el-pagination
@@ -72,6 +73,10 @@ export default {
       listHeader: [],
       listnames: "",
       listHeaders: [],
+      listall: {
+        alllist: "",
+        allwei: 0,
+      },
       tableData: {
         time: [],
         data1: [],
@@ -189,6 +194,10 @@ export default {
           //     this.tableList.push({});
           //   }
           // }
+          this.listall.alllist = this.tableList.length;
+          for (let i = 0; i < this.tableList.length; i++) {
+            this.listall.allwei += this.tableList[i].weight;
+          }
           this.tableListcop.forEach((item, index) => {
             item.indexs = index + 1;
           });

+ 9 - 0
src/views/statisticalanalysis/specialgoodsdelist/index.vue

@@ -30,6 +30,7 @@
         "
         :action="action"
         :set="set"
+        :listall="listall"
       />
     </div>
     <el-pagination
@@ -68,6 +69,10 @@ export default {
       eledata: null,
       set: "",
       tableList: [],
+      listall: {
+        alllist: "",
+        allwei: 0,
+      },
       tableListcop: [],
       listname: "",
       listHeader: [],
@@ -288,6 +293,10 @@ export default {
           //     this.tableList.push({});
           //   }
           // }
+          this.listall.alllist = this.tableList.length;
+          for (let i = 0; i < this.tableList.length; i++) {
+            this.listall.allwei += this.tableList[i].weight;
+          }
           this.tableListcop.forEach((item, index) => {
             item.indexs = index + 1;
           });