|
@@ -282,7 +282,7 @@
|
|
console.log(this.common.commonWeighingList, "commonWeighingList")
|
|
console.log(this.common.commonWeighingList, "commonWeighingList")
|
|
let _list = this.common.commonWeighingList
|
|
let _list = this.common.commonWeighingList
|
|
for (let i = 0; i < _list.length; i++) {
|
|
for (let i = 0; i < _list.length; i++) {
|
|
- if(_list[i].paymentManagement.status == '待结算'){
|
|
|
|
|
|
+ if(_list[i].allow == 2){
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
if (_list[i].status == '已质检' || _list[i].status == '已称毛重') {
|
|
if (_list[i].status == '已质检' || _list[i].status == '已称毛重') {
|
|
@@ -292,28 +292,28 @@
|
|
if ((_list[i].status == '已称皮重' || _list[i].status == '已称毛重')) {
|
|
if ((_list[i].status == '已称皮重' || _list[i].status == '已称毛重')) {
|
|
this.pList.push(_list[i])
|
|
this.pList.push(_list[i])
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }debugger
|
|
if (this.information == "毛重") {
|
|
if (this.information == "毛重") {
|
|
this.index = 0
|
|
this.index = 0
|
|
this.carList = this.mList
|
|
this.carList = this.mList
|
|
if (this.mList.length != 0) {
|
|
if (this.mList.length != 0) {
|
|
- let _list = this.mList.filter(function(val){
|
|
|
|
|
|
+ let _item = this.mList.filter(function(val){
|
|
console.log(that.$route.query.id)
|
|
console.log(that.$route.query.id)
|
|
if(val.id==that.$route.query.id){
|
|
if(val.id==that.$route.query.id){
|
|
return val
|
|
return val
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
- this.setCurrent(_list)
|
|
|
|
|
|
+ this.setCurrent(_item[0])
|
|
|
|
|
|
this.carWeightInfo = {
|
|
this.carWeightInfo = {
|
|
- carNumber: _list.carNumber,
|
|
|
|
|
|
+ carNumber: _item[0].carNumber,
|
|
type: this.information,
|
|
type: this.information,
|
|
weight: this.weighingList.grossWeight
|
|
weight: this.weighingList.grossWeight
|
|
}
|
|
}
|
|
this.deptBudgetTotal = this.mList.length
|
|
this.deptBudgetTotal = this.mList.length
|
|
}
|
|
}
|
|
- this.weighingList = _list
|
|
|
|
|
|
+ this.weighingList = _item[0]
|
|
} else {
|
|
} else {
|
|
this.index = 1
|
|
this.index = 1
|
|
this.carList = this.pList
|
|
this.carList = this.pList
|
|
@@ -323,16 +323,16 @@
|
|
return val1
|
|
return val1
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.setCurrent(_item)
|
|
|
|
|
|
+ this.setCurrent(_item[0])
|
|
|
|
|
|
this.carWeightInfo = {
|
|
this.carWeightInfo = {
|
|
- carNumber: _item.carNumber,
|
|
|
|
|
|
+ carNumber: _item[0].carNumber,
|
|
type: this.information,
|
|
type: this.information,
|
|
weight: this.weighingList.tare
|
|
weight: this.weighingList.tare
|
|
}
|
|
}
|
|
this.deptBudgetTotal = this.pList.length
|
|
this.deptBudgetTotal = this.pList.length
|
|
}
|
|
}
|
|
- this.weighingList = _item
|
|
|
|
|
|
+ this.weighingList = _item[0]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
tabClick(val) {
|
|
tabClick(val) {
|
|
@@ -450,6 +450,10 @@
|
|
this.dialogTableVisible = true
|
|
this.dialogTableVisible = true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ this.isShowPrint = false
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: 'weighingManagement'
|
|
|
|
+ })
|
|
},
|
|
},
|
|
closePrint() {
|
|
closePrint() {
|
|
this.isShowPrint = false
|
|
this.isShowPrint = false
|