|
@@ -424,9 +424,10 @@ export default {
|
|
current: function () {
|
|
current: function () {
|
|
if (this.freightspace.length > 0) {
|
|
if (this.freightspace.length > 0) {
|
|
var maxStorage = 0
|
|
var maxStorage = 0
|
|
- for (var i = 0; i < this.freightspace.tranFlag; i++) {
|
|
|
|
- maxStorage =(this.freightspace.tranFlag.length)
|
|
|
|
-
|
|
|
|
|
|
+ for (var i = 0; i < this.freightspace.length; i++) {
|
|
|
|
+ if(this.freightspace[i].tranFlag!=null&&this.freightspace[i].tranFlag == 1){
|
|
|
|
+ maxStorage ++
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return maxStorage
|
|
return maxStorage
|
|
}
|
|
}
|
|
@@ -598,6 +599,7 @@ export default {
|
|
var tmp1='C00'
|
|
var tmp1='C00'
|
|
if(response.length>0){
|
|
if(response.length>0){
|
|
this.freightspace = response
|
|
this.freightspace = response
|
|
|
|
+ console.log(this.freightspace)
|
|
}else{
|
|
}else{
|
|
this.freightspace=[{
|
|
this.freightspace=[{
|
|
carNo: '',
|
|
carNo: '',
|
|
@@ -618,7 +620,7 @@ export default {
|
|
boxNo: '',
|
|
boxNo: '',
|
|
titleNo: '',
|
|
titleNo: '',
|
|
tranCarNo: tmp1+(this.freightspace.length+1),
|
|
tranCarNo: tmp1+(this.freightspace.length+1),
|
|
- agent: this.freightspace[1].agent
|
|
|
|
|
|
+ agent: this.freightspace[this.freightspace.length-1].agent
|
|
})
|
|
})
|
|
|
|
|
|
})
|
|
})
|