瀏覽代碼

Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU/icore-pass

Tiroble 3 年之前
父節點
當前提交
5977f34132
共有 1 個文件被更改,包括 19 次插入1 次删除
  1. 19 1
      src/views/WMS/components/steel/steel_outboundStatistics.vue

+ 19 - 1
src/views/WMS/components/steel/steel_outboundStatistics.vue

@@ -19,9 +19,13 @@
       <!-- <el-button type="primary" @click="refresh">
         <i class="el-icon-refresh"></i>刷新
       </el-button> -->
+      <span style="margin-left: 1rem;">总件数:</span>
+      <el-input v-model="totalNumber" :disabled="true" style="width: 150px;"></el-input>
+      <span style="margin-left: 1rem;">总重量:</span>
+      <el-input v-model="totalWeight" :disabled="true" style="width: 150px;"></el-input>
     </div>
     <div class="table">
-      <dilTable v-bind.sync="option" >
+      <dilTable v-bind.sync="option" @func="func">
       </dilTable>
     </div>
   </div>
@@ -35,6 +39,8 @@ export default {
       textInput:"",
       startTime: null,
       endTime: null,
+      totalNumber:0,
+      totalWeight:0,
       option:{
         // first请求数据的地址
         requestUrl: "/api/v1/wms/getWmsOutboundResultStatistics?apiId=446&warehouseId="+3+"&startTime=null&endTime=null&i=" +new Date()+"&con="+this.textInput,
@@ -45,6 +51,18 @@ export default {
       refresh(){
       this.$router.go(0);
     },
+    func(res){
+      console.log(res)
+      var total1 = 0
+      var total2 = 0
+      res.list.forEach(e => {
+        total1 = total1+e.coun
+        total2 = total2+e.theoreticalWeight
+      });
+  
+      this.totalNumber = total1
+      this.totalWeight = total2
+    },
    onclick() {
      console.log("textInput",this.textInput);
       let startTime = null;