|
@@ -237,29 +237,6 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // dataFilter(val) {
|
|
|
|
- // this.deptBudgetList.personCharge = val
|
|
|
|
- // if (val) {
|
|
|
|
- // this.options = this.staffList.filter((item) => {
|
|
|
|
- // if (
|
|
|
|
- // !!~item.staffName.indexOf(val) ||
|
|
|
|
- // !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
|
|
|
|
- // ) {
|
|
|
|
- // return true
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // } else {
|
|
|
|
- // this.options = this.staffList
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
- // selectstaff(e) {
|
|
|
|
- // for (var i = 0; i < this.staffList.length; i++) {
|
|
|
|
- // if (this.staffList[i].staffName == e) {
|
|
|
|
- // this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
|
|
|
|
- // this.deptBudgetList.personChargeKey = this.staffList[i].staffId
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
marker: function (item) {
|
|
marker: function (item) {
|
|
this.deptBudgetList.warehousePositioning =
|
|
this.deptBudgetList.warehousePositioning =
|
|
item.lnglat.lat + ',' + item.lnglat.lng
|
|
item.lnglat.lat + ',' + item.lnglat.lng
|
|
@@ -302,10 +279,8 @@ export default {
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.deptBudgetList = response
|
|
this.deptBudgetList = response
|
|
this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
|
|
this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
|
|
- if (this.deptBudgetList.tranCarInfoList.length > 0) {
|
|
|
|
-
|
|
|
|
|
|
+ if (this.deptBudgetList.tranCarInfoList.length > 0) {
|
|
if (response.tranCarInfoList[0].boxNo) {
|
|
if (response.tranCarInfoList[0].boxNo) {
|
|
- // alert("数组拆分")
|
|
|
|
this.list = response.tranCarInfoList[0].boxNo.split(',')
|
|
this.list = response.tranCarInfoList[0].boxNo.split(',')
|
|
for (var i = 0; i < this.list.length; i++) {
|
|
for (var i = 0; i < this.list.length; i++) {
|
|
var num = this.list[i]
|
|
var num = this.list[i]
|
|
@@ -313,7 +288,6 @@ export default {
|
|
trainNo: num,
|
|
trainNo: num,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- console.log(this.freightspace,"拆分车厢号数组")
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|