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