فهرست منبع

修改切换合同增加运输段问题、分页问题

mxx 3 سال پیش
والد
کامیت
47ffe20c17
1فایلهای تغییر یافته به همراه8 افزوده شده و 5 حذف شده
  1. 8 5
      src/views/statisticalReport/stockSaleOutReportList.vue

+ 8 - 5
src/views/statisticalReport/stockSaleOutReportList.vue

@@ -25,7 +25,7 @@
         <el-tabs v-model="activeName" @tab-click="handleClick">
           <el-tab-pane v-for='(item,index) in tranProcessInfo' :key='index'
             :label="item.label" :name="item.name"></el-tab-pane>
-            <el-tab-pane 
+            <el-tab-pane
             label="退库" name="退库"></el-tab-pane>
         </el-tabs>
       </el-row>
@@ -136,7 +136,7 @@
               style="vertical-align: text-top; position: relative; top: -1px" src="../../../public/img/edit.png"
               @click="whether(scope.row)" alt="" />
             </div>
-            
+
             <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
               v-if="scope.row.identification == 'true'" @click="weightClick(scope.row)"></i>
           </template>
@@ -388,13 +388,16 @@
             }
           }
         }
-        
+
         // console.log(this.tranType)
         // this.
         this.getList(this.orderList.deliverType)
       },
       //表头
       contractchange(e) {
+        this.currentPage=1
+        this.pageSize=10
+        this.tranProcessInfo = []
         console.log('type',this.activeName)
         for (var i = 0; i < this.contractNoList.length; i++) {
           if (this.contractNoList[i].contractNo == e) {
@@ -419,7 +422,7 @@
           }
         }
         this.contractNo = e
-        // this.$refs.saleList.doLayout();        
+        // this.$refs.saleList.doLayout();
         this.getList(this.orderList.deliverType)
       },
       //选择合同
@@ -645,7 +648,7 @@
               }
             }
           }
-         
+
         })
         console.log(sums[sums.length - 1],sums[sums.length - 2])
           // sums[sums.length - 1] = sums[sums.length - 1].toFixed(2)