|
@@ -6,6 +6,8 @@
|
|
|
<h2 class="bg-left title">汽车调度</h2>
|
|
|
</el-col>
|
|
|
<el-col :span="4" class="bg-right">
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="history()">历史司机车队
|
|
|
+ </el-button>
|
|
|
<el-button class="bg-bottom" type="primary" size="small" @click="revert()"><img width="6" height="10"
|
|
|
style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
|
|
|
</el-button>
|
|
@@ -355,12 +357,14 @@
|
|
|
},
|
|
|
computed: {
|
|
|
total: function() {
|
|
|
- if (this.deptBudgetList.tranCarInfoList.length > 0) {
|
|
|
+
|
|
|
+ if (this.deptBudgetList.tranCarInfoList1&&this.deptBudgetList.tranCarInfoList1.length > 0&&this.deptBudgetList.tranCarInfoList&&this.deptBudgetList.tranCarInfoList.length > 0) {
|
|
|
+ var arr=this.deptBudgetList.tranCarInfoList.concat(this.deptBudgetList.tranCarInfoList1)
|
|
|
var maxStorage = 0
|
|
|
- for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
|
|
|
- if(this.deptBudgetList.tranCarInfoList[i].loadWeight){
|
|
|
+ for (var i = 0; i < arr.length; i++) {
|
|
|
+ if(arr[i].loadWeight){
|
|
|
maxStorage += Number(
|
|
|
- this.deptBudgetList.tranCarInfoList[i].loadWeight
|
|
|
+ arr[i].loadWeight
|
|
|
)
|
|
|
}
|
|
|
|
|
@@ -369,24 +373,24 @@
|
|
|
}
|
|
|
},
|
|
|
teamlist: function() {
|
|
|
- if (this.deptBudgetList.tranCarInfoList.length > 0) {
|
|
|
+ if (this.deptBudgetList.tranCarInfoList1&&this.deptBudgetList.tranCarInfoList1.length > 0) {
|
|
|
var arr = []
|
|
|
- for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
|
|
|
- if(this.deptBudgetList.tranCarInfoList[i].fleetFlag==1){
|
|
|
- this.deptBudgetList.tranCarInfoList[i].tranCarIndex=i
|
|
|
- arr.push(this.deptBudgetList.tranCarInfoList[i])
|
|
|
+ for (var i = 0; i < this.deptBudgetList.tranCarInfoList1.length; i++) {
|
|
|
+ if(this.deptBudgetList.tranCarInfoList1[i].fleetFlag==1){
|
|
|
+ this.deptBudgetList.tranCarInfoList1[i].tranCarIndex=i
|
|
|
+ arr.push(this.deptBudgetList.tranCarInfoList1[i])
|
|
|
}
|
|
|
}
|
|
|
return arr
|
|
|
}
|
|
|
},
|
|
|
driverlist: function() {
|
|
|
- if (this.deptBudgetList.tranCarInfoList.length > 0) {
|
|
|
+ if (this.deptBudgetList.tranCarInfoList1&&this.deptBudgetList.tranCarInfoList1.length > 0) {
|
|
|
var arr = []
|
|
|
- for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
|
|
|
- if(this.deptBudgetList.tranCarInfoList[i].fleetFlag==0){
|
|
|
- this.deptBudgetList.tranCarInfoList[i].tranCarIndex=i
|
|
|
- arr.push(this.deptBudgetList.tranCarInfoList[i])
|
|
|
+ for (var i = 0; i < this.deptBudgetList.tranCarInfoList1.length; i++) {
|
|
|
+ if(this.deptBudgetList.tranCarInfoList1[i].fleetFlag==0){
|
|
|
+ this.deptBudgetList.tranCarInfoList1[i].tranCarIndex=i
|
|
|
+ arr.push(this.deptBudgetList.tranCarInfoList1[i])
|
|
|
}
|
|
|
}
|
|
|
return arr
|
|
@@ -394,6 +398,11 @@
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ history(){
|
|
|
+ this.$router.push({name:'vehicleDispatchinghistorycar',query: {
|
|
|
+ id: this.$route.query.id,
|
|
|
+ },})
|
|
|
+ },
|
|
|
withdraw() {
|
|
|
this.$confirm(`撤回成功后,可再次提交,确定撤回该单价吗?`, {
|
|
|
cancelButtonText: '取消',
|
|
@@ -413,14 +422,14 @@
|
|
|
pricetypechange(e){
|
|
|
console.log(e)
|
|
|
this.deptBudgetList.billingMethod=e
|
|
|
- if (this.deptBudgetList.tranCarInfoList.length > 0) {
|
|
|
- for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
|
|
|
- if(!this.deptBudgetList.tranCarInfoList[i].id){
|
|
|
- this.deptBudgetList.tranCarInfoList[i].billingMethod=e
|
|
|
+ if (this.deptBudgetList.tranCarInfoList1.length > 0) {
|
|
|
+ for (var i = 0; i < this.deptBudgetList.tranCarInfoList1.length; i++) {
|
|
|
+ if(!this.deptBudgetList.tranCarInfoList1[i].id){
|
|
|
+ this.deptBudgetList.tranCarInfoList1[i].billingMethod=e
|
|
|
if(e==1){
|
|
|
- this.deptBudgetList.tranCarInfoList[i].tranPrice=this.deptBudgetList.tranPrice
|
|
|
+ this.deptBudgetList.tranCarInfoList1[i].tranPrice=this.deptBudgetList.tranPrice
|
|
|
}else{
|
|
|
- this.deptBudgetList.tranCarInfoList[i].tranPrice=this.deptBudgetList.tranPriceCar
|
|
|
+ this.deptBudgetList.tranCarInfoList1[i].tranPrice=this.deptBudgetList.tranPriceCar
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -441,27 +450,27 @@
|
|
|
del(index, row,status) {
|
|
|
if (row.status == null) {
|
|
|
if(status==1){
|
|
|
- if (this.deptBudgetList.tranCarInfoList.length > 1) {
|
|
|
- for (let i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
|
|
|
- console.log(this.deptBudgetList.tranCarInfoList[i])
|
|
|
- if(this.deptBudgetList.tranCarInfoList[i].index){
|
|
|
- if(this.deptBudgetList.tranCarInfoList[i].index==row.index){
|
|
|
- this.deptBudgetList.tranCarInfoList.splice(i, 1)
|
|
|
+ if (this.deptBudgetList.tranCarInfoList1.length > 1) {
|
|
|
+ for (let i = 0; i < this.deptBudgetList.tranCarInfoList1.length; i++) {
|
|
|
+ console.log(this.deptBudgetList.tranCarInfoList1[i])
|
|
|
+ if(this.deptBudgetList.tranCarInfoList1[i].index){
|
|
|
+ if(this.deptBudgetList.tranCarInfoList1[i].index==row.index){
|
|
|
+ this.deptBudgetList.tranCarInfoList1.splice(i, 1)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
- if (this.deptBudgetList.tranCarInfoList.length > 1) {
|
|
|
- this.deptBudgetList.tranCarInfoList.splice(index, 1)
|
|
|
- for (let i = index; i < this.deptBudgetList.tranCarInfoList.length; i++) {
|
|
|
- let number = Number(this.deptBudgetList.tranCarInfoList[i].tranCarNo.split('C')[1]) - 1
|
|
|
+ if (this.deptBudgetList.tranCarInfoList1.length > 1) {
|
|
|
+ this.deptBudgetList.tranCarInfoList1.splice(index, 1)
|
|
|
+ for (let i = index; i < this.deptBudgetList.tranCarInfoList1.length; i++) {
|
|
|
+ let number = Number(this.deptBudgetList.tranCarInfoList1[i].tranCarNo.split('C')[1]) - 1
|
|
|
if (number < 10) {
|
|
|
- this.deptBudgetList.tranCarInfoList[i].tranCarNo = 'C00' + number
|
|
|
+ this.deptBudgetList.tranCarInfoList1[i].tranCarNo = 'C00' + number
|
|
|
} else if (number < 100) {
|
|
|
- this.deptBudgetList.tranCarInfoList[i].tranCarNo = 'C0' + number
|
|
|
+ this.deptBudgetList.tranCarInfoList1[i].tranCarNo = 'C0' + number
|
|
|
} else {
|
|
|
- this.deptBudgetList.tranCarInfoList[i].tranCarNo = 'C' + number
|
|
|
+ this.deptBudgetList.tranCarInfoList1[i].tranCarNo = 'C' + number
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -479,8 +488,8 @@
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message.success('删除成功')
|
|
|
- if (this.deptBudgetList.tranCarInfoList.length > 1) {
|
|
|
- this.deptBudgetList.tranCarInfoList.splice(index, 1)
|
|
|
+ if (this.deptBudgetList.tranCarInfoList1.length > 1) {
|
|
|
+ this.deptBudgetList.tranCarInfoList1.splice(index, 1)
|
|
|
}
|
|
|
this.getList()
|
|
|
})
|
|
@@ -495,10 +504,10 @@
|
|
|
type: 'warning',
|
|
|
})
|
|
|
} else {
|
|
|
- this.deptBudgetList.tranCarInfoList.push({
|
|
|
+ this.deptBudgetList.tranCarInfoList1.push({
|
|
|
fleetName:'',
|
|
|
fleetFlag:1,
|
|
|
- index:this.deptBudgetList.tranCarInfoList.length,
|
|
|
+ index:this.deptBudgetList.tranCarInfoList1.length,
|
|
|
billingMethod:this.pricetype,
|
|
|
tranPrice:this.deptBudgetList.tranPrice,
|
|
|
tranType: '1',
|
|
@@ -511,10 +520,10 @@
|
|
|
type: 'warning',
|
|
|
})
|
|
|
} else {
|
|
|
- this.deptBudgetList.tranCarInfoList.push({
|
|
|
+ this.deptBudgetList.tranCarInfoList1.push({
|
|
|
fleetName:'',
|
|
|
fleetFlag:1,
|
|
|
- index:this.deptBudgetList.tranCarInfoList.length,
|
|
|
+ index:this.deptBudgetList.tranCarInfoList1.length,
|
|
|
billingMethod:this.pricetype,
|
|
|
tranPrice:this.deptBudgetList.tranPriceCar,
|
|
|
tranType: '1',
|
|
@@ -533,8 +542,9 @@
|
|
|
} else {
|
|
|
var tmp1 = 'C00'
|
|
|
this.deptBudgetList.count++
|
|
|
- if (this.deptBudgetList.tranCarInfoList.length < 10) {
|
|
|
- this.deptBudgetList.tranCarInfoList.push({
|
|
|
+ if (this.deptBudgetList.tranCarInfoList1.length < 10) {
|
|
|
+ console.log()
|
|
|
+ this.deptBudgetList.tranCarInfoList1.push({
|
|
|
driverName: '',
|
|
|
driverPhone: '',
|
|
|
carLength: 0,
|
|
@@ -549,14 +559,14 @@
|
|
|
tranPriceCar:this.deptBudgetList.tranPriceCar,
|
|
|
billingMethod:this.pricetype,
|
|
|
// tranCarNo: tmp1+(this.deptBudgetList.count),
|
|
|
- tranCarNo: 'C00' + (this.deptBudgetList.tranCarInfoList.length + 1),
|
|
|
+ tranCarNo: 'C00' + (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length+1),
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
- } else if (this.deptBudgetList.tranCarInfoList.length < 100 && this.deptBudgetList.tranCarInfoList.length >=
|
|
|
+ } else if (this.deptBudgetList.tranCarInfoList1.length < 100 && this.deptBudgetList.tranCarInfoList1.length >=
|
|
|
10) {
|
|
|
tmp1 = 'C0'
|
|
|
this.deptBudgetList.count++
|
|
|
- this.deptBudgetList.tranCarInfoList.push({
|
|
|
+ this.deptBudgetList.tranCarInfoList1.push({
|
|
|
driverName: '',
|
|
|
driverPhone: '',
|
|
|
carLength: 0,
|
|
@@ -571,10 +581,10 @@
|
|
|
tranPriceCar:this.deptBudgetList.tranPriceCar,
|
|
|
billingMethod:this.pricetype,
|
|
|
// tranCarNo: tmp1+(this.deptBudgetList.count),
|
|
|
- tranCarNo: 'C0' + (this.deptBudgetList.tranCarInfoList.length + 1),
|
|
|
+ tranCarNo: 'C0' + (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length+1),
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
- } else if (this.deptBudgetList.tranCarInfoList.length < 1000 && this.deptBudgetList.tranCarInfoList.length >=
|
|
|
+ } else if (this.deptBudgetList.tranCarInfoList1.length < 1000 && this.deptBudgetList.tranCarInfoList1.length >=
|
|
|
100) {
|
|
|
tmp1 = 'C'
|
|
|
this.deptBudgetList.count++
|
|
@@ -593,7 +603,7 @@
|
|
|
billingMethod:this.pricetype,
|
|
|
tranPriceCar:this.deptBudgetList.tranPriceCar,
|
|
|
// tranCarNo: tmp1+(this.deptBudgetList.count),
|
|
|
- tranCarNo: 'C' + (this.deptBudgetList.tranCarInfoList.length + 1),
|
|
|
+ tranCarNo: 'C' + (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length+1),
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
}
|
|
@@ -623,7 +633,7 @@
|
|
|
tranPriceCar:this.deptBudgetList.tranPriceCar,
|
|
|
billingMethod:this.pricetype,
|
|
|
// tranCarNo: tmp1+(this.deptBudgetList.count),
|
|
|
- tranCarNo: 'C00' + (this.deptBudgetList.tranCarInfoList.length + 1),
|
|
|
+ tranCarNo: 'C00' + (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length+1),
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
} else if (this.deptBudgetList.tranCarInfoList.length < 100 && this.deptBudgetList.tranCarInfoList.length >=
|
|
@@ -645,7 +655,7 @@
|
|
|
tranPriceCar:this.deptBudgetList.tranPriceCar,
|
|
|
billingMethod:this.pricetype,
|
|
|
// tranCarNo: tmp1+(this.deptBudgetList.count),
|
|
|
- tranCarNo: 'C0' + (this.deptBudgetList.tranCarInfoList.length + 1),
|
|
|
+ tranCarNo: 'C0' + (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length+1),
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
} else if (this.deptBudgetList.tranCarInfoList.length < 1000 && this.deptBudgetList.tranCarInfoList.length >=
|
|
@@ -667,7 +677,7 @@
|
|
|
billingMethod:this.pricetype,
|
|
|
tranPriceCar:this.deptBudgetList.tranPriceCar,
|
|
|
// tranCarNo: tmp1+(this.deptBudgetList.count),
|
|
|
- tranCarNo: 'C' + (this.deptBudgetList.tranCarInfoList.length + 1),
|
|
|
+ tranCarNo: 'C' + (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length+1),
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
}
|
|
@@ -781,22 +791,22 @@
|
|
|
})
|
|
|
return
|
|
|
} else {
|
|
|
- for (var i = this.index; i < this.deptBudgetList.tranCarInfoList.length; i++) {
|
|
|
- if (!this.deptBudgetList.tranCarInfoList[i].driver&&this.deptBudgetList.tranCarInfoList[i].fleetFlag==0) {
|
|
|
+ for (var i = this.index; i < this.deptBudgetList.tranCarInfoList1.length; i++) {
|
|
|
+ if (!this.deptBudgetList.tranCarInfoList1[i].driver&&this.deptBudgetList.tranCarInfoList1[i].fleetFlag==0) {
|
|
|
this.$message({
|
|
|
message: '姓名不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.deptBudgetList.tranCarInfoList[i].fleetName&&this.deptBudgetList.tranCarInfoList[i].fleetFlag==1) {
|
|
|
+ if (!this.deptBudgetList.tranCarInfoList1[i].fleetName&&this.deptBudgetList.tranCarInfoList1[i].fleetFlag==1) {
|
|
|
this.$message({
|
|
|
message: '车队名称不能为空!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.deptBudgetList.tranCarInfoList[i].fleetName&&this.deptBudgetList.tranCarInfoList[i].fleetName.length<1&&this.deptBudgetList.tranCarInfoList[i].fleetFlag==1||this.deptBudgetList.tranCarInfoList[i].fleetName&&this.deptBudgetList.tranCarInfoList[i].fleetName.length>10&&this.deptBudgetList.tranCarInfoList[i].fleetFlag==1) {
|
|
|
+ if (this.deptBudgetList.tranCarInfoList1[i].fleetName&&this.deptBudgetList.tranCarInfoList1[i].fleetName.length<1&&this.deptBudgetList.tranCarInfoList1[i].fleetFlag==1||this.deptBudgetList.tranCarInfoList1[i].fleetName&&this.deptBudgetList.tranCarInfoList1[i].fleetName.length>10&&this.deptBudgetList.tranCarInfoList1[i].fleetFlag==1) {
|
|
|
this.$message({
|
|
|
message: '车队名称1-10个字!',
|
|
|
type: 'warning',
|
|
@@ -804,7 +814,7 @@
|
|
|
return
|
|
|
}
|
|
|
for (var j = 0; j < this.carList.length; j++) {
|
|
|
- if (this.carList[j].driverName == this.deptBudgetList.tranCarInfoList[i].driver && this.carList[j]
|
|
|
+ if (this.carList[j].driverName == this.deptBudgetList.tranCarInfoList1[i].driver && this.carList[j]
|
|
|
.disableStatusFlag == 1) {
|
|
|
this.$message({
|
|
|
message: this.deptBudgetList.tranCarInfoList[i].driver + '该司机已被禁用!',
|
|
@@ -828,7 +838,7 @@
|
|
|
tranCarInfo.tranPrice = this.deptBudgetList.tranPrice
|
|
|
tranCarInfo.infoId = this.deptBudgetList.infoId
|
|
|
tranCarInfo.billingMethod=this.pricetype
|
|
|
- tranCarInfo.tranCarInfoList = this.deptBudgetList.tranCarInfoList
|
|
|
+ tranCarInfo.tranCarInfoList = this.deptBudgetList.tranCarInfoList.concat(this.deptBudgetList.tranCarInfoList1)
|
|
|
dispatchCat(tranCarInfo)
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -876,6 +886,27 @@
|
|
|
if (this.deptBudgetList.tranPriceIng == 0) {
|
|
|
this.deptBudgetList.tranPriceIng = ''
|
|
|
}
|
|
|
+ var carno='0000'
|
|
|
+ if (this.deptBudgetList.tranCarInfoList) {
|
|
|
+ var len=carno+Number(this.deptBudgetList.tranCarInfoList.length+1)
|
|
|
+ carno='C'+(len.substring(len.length-3))
|
|
|
+ }
|
|
|
+ this.deptBudgetList.tranCarInfoList1 = [{
|
|
|
+ driverName: '',
|
|
|
+ driverPhone: '',
|
|
|
+ carLength: 0,
|
|
|
+ carLengthKey: '',
|
|
|
+ loadWeight: null,
|
|
|
+ carModel: '',
|
|
|
+ carModelKey: '',
|
|
|
+ carNumber: '',
|
|
|
+ disabled: false,
|
|
|
+ fleetFlag:0,
|
|
|
+ tranType: '1',
|
|
|
+ tranCarNo: carno,
|
|
|
+ billingMethod:1,
|
|
|
+ tranPrice: this.deptBudgetList.tranPrice
|
|
|
+ }, ]
|
|
|
if (this.deptBudgetList.tranCarInfoList.length == 0) {
|
|
|
this.deptBudgetList.tranCarInfoList = [{
|
|
|
driverName: '',
|
|
@@ -914,29 +945,29 @@
|
|
|
carchange(val, index) {
|
|
|
for (var i = 0; i < this.carList.length; i++) {
|
|
|
if (this.carList[i].driverName == val) {
|
|
|
- this.deptBudgetList.tranCarInfoList[index].driverPhone =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].driverPhone =
|
|
|
this.carList[i].driverPhone
|
|
|
arrange({
|
|
|
id: this.carList[i].id
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- console.log(index,this.deptBudgetList.tranCarInfoList)
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carNo =
|
|
|
+ console.log(index,this.deptBudgetList.tranCarInfoList1)
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carNo =
|
|
|
response.carNumber
|
|
|
if (response.carLoad != null) {
|
|
|
- this.deptBudgetList.tranCarInfoList[index].loadWeight =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].loadWeight =
|
|
|
response.carLoad
|
|
|
} else {
|
|
|
- this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].loadWeight = 0
|
|
|
}
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carModel =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carModel =
|
|
|
response.carModel
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carLength =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carLength =
|
|
|
response.carLength
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carLengthKey =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carLengthKey =
|
|
|
response.carLengthKey
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carModelKey =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carModelKey =
|
|
|
response.carModelKey
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
@@ -951,18 +982,18 @@
|
|
|
if (this.carNoList[i].carNumber == val) {
|
|
|
console.log(this.carNoList[i])
|
|
|
if (this.carNoList[i].carLoad != null) {
|
|
|
- this.deptBudgetList.tranCarInfoList[index].loadWeight =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].loadWeight =
|
|
|
this.carNoList[i].carLoad
|
|
|
} else {
|
|
|
- this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].loadWeight = 0
|
|
|
}
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carModel =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carModel =
|
|
|
this.carNoList[i].carModel
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carLength =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carLength =
|
|
|
this.carNoList[i].carLength
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carLengthKey =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carLengthKey =
|
|
|
this.carNoList[i].carLengthKey
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carModelKey =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carModelKey =
|
|
|
this.carNoList[i].carModelKey
|
|
|
getdriverinfo({
|
|
|
carNumber: this.carNoList[i].carNumber
|
|
@@ -978,7 +1009,7 @@
|
|
|
phonechange(val, index) {
|
|
|
for (var i = 0; i < this.carList.length; i++) {
|
|
|
if (this.carList[i].driverPhone == val) {
|
|
|
- this.deptBudgetList.tranCarInfoList[index].driver =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].driver =
|
|
|
this.carList[i].driverName
|
|
|
arrange({
|
|
|
id: this.carList[i].id
|
|
@@ -986,21 +1017,21 @@
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
console.log(this, response)
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carNo =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carNo =
|
|
|
response.carNumber
|
|
|
if (response.carLoad != null) {
|
|
|
- this.deptBudgetList.tranCarInfoList[index].loadWeight =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].loadWeight =
|
|
|
response.carLoad
|
|
|
} else {
|
|
|
- this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].loadWeight = 0
|
|
|
}
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carModel =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carModel =
|
|
|
response.carModel
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carLength =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carLength =
|
|
|
response.carLength
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carLengthKey =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carLengthKey =
|
|
|
response.carLengthKey
|
|
|
- this.deptBudgetList.tranCarInfoList[index].carModelKey =
|
|
|
+ this.deptBudgetList.tranCarInfoList1[index].carModelKey =
|
|
|
response.carModelKey
|
|
|
})
|
|
|
}
|