gjy 3 years ago
parent
commit
cbc5c40ad4
1 changed files with 17 additions and 0 deletions
  1. 17 0
      src/views/houseSelfCollect/weightCheck.vue

+ 17 - 0
src/views/houseSelfCollect/weightCheck.vue

@@ -113,6 +113,8 @@
             </div>
           </div>
           <div class="car-right">
+            <el-button @click="cutstatus(1)"  :type="status==1?'primary':''">已称重</el-button>
+              <el-button @click="cutstatus(2)" :type="status==2?'primary':''">未称重</el-button>
             <el-table ref="singleTable" :data="carList" highlight-current-row @current-change="handleCurrentChange"
               style="width: 100%;overflow:auto;height:680px">
               <el-table-column property="number" label="编号">
@@ -204,6 +206,7 @@
         pList: [],
         mList: [],
         index: 0,
+        status:0,
         carList: [],
         carWeightInfo: {
           carNumber: '',
@@ -239,6 +242,7 @@
         mListTop: [],
         mListBottom: [],
         pListTop: [],
+        carList1:[],
         pListBottom: []
       }
     },
@@ -293,6 +297,18 @@
 
     },
     methods: {
+      cutstatus(status){
+        this.status=status
+        if(status==1){
+          this.carList=this.carList1.filter(function (item) {
+            return item.status=='已质检'
+        })
+        }else{
+          this.carList=this.carList1.filter(function (item) {
+              return item.status=='已称毛重'
+          })
+        }
+      },
       handleSizeChange(val) {
         console.log(`每页 ${val} 条`)
         this.pageSize = val
@@ -375,6 +391,7 @@
         if (this.information == '毛重') {
           this.index = 0
           this.carList = this.mList
+          this.carList1 = this.mList
           if (this.mList.length != 0) {
             let _item = this.mList.filter(function(val) {
               console.log(that.$route.query.id)