|
@@ -550,7 +550,7 @@
|
|
|
var tmp1 = 'C00'
|
|
|
this.deptBudgetList.count++
|
|
|
console.log(this.deptBudgetList.tranCarInfoList,this.deptBudgetList.tranCarInfoList1.length)
|
|
|
- if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 10) {
|
|
|
+ if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 9) {
|
|
|
this.deptBudgetList.tranCarInfoList1.push({
|
|
|
driverName: '',
|
|
|
driverPhone: '',
|
|
@@ -569,8 +569,8 @@
|
|
|
tranCarNo: 'C00' + (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length+1),
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
- } else if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 100 && (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) >=
|
|
|
- 10) {
|
|
|
+ } else if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 99 && (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) >=
|
|
|
+ 9) {
|
|
|
tmp1 = 'C0'
|
|
|
this.deptBudgetList.count++
|
|
|
this.deptBudgetList.tranCarInfoList1.push({
|
|
@@ -592,7 +592,7 @@
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
} else if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 1000 && (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) >=
|
|
|
- 100) {
|
|
|
+ 99) {
|
|
|
console.log(111111)
|
|
|
tmp1 = 'C'
|
|
|
this.deptBudgetList.count++
|
|
@@ -625,7 +625,7 @@
|
|
|
} else {
|
|
|
var tmp1 = 'C00'
|
|
|
this.deptBudgetList.count++
|
|
|
- if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 10) {
|
|
|
+ if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 9) {
|
|
|
this.deptBudgetList.tranCarInfoList1.push({
|
|
|
driverName: '',
|
|
|
driverPhone: '',
|
|
@@ -644,8 +644,8 @@
|
|
|
tranCarNo: 'C00' + (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length+1),
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
- } else if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 100 && (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) >=
|
|
|
- 10) {
|
|
|
+ } else if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 99 && (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) >=
|
|
|
+ 9) {
|
|
|
tmp1 = 'C0'
|
|
|
this.deptBudgetList.count++
|
|
|
this.deptBudgetList.tranCarInfoList1.push({
|
|
@@ -667,7 +667,7 @@
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
})
|
|
|
} else if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 1000 && (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) >=
|
|
|
- 100) {
|
|
|
+ 99) {
|
|
|
tmp1 = 'C'
|
|
|
this.deptBudgetList.count++
|
|
|
this.deptBudgetList.tranCarInfoList1.push({
|
|
@@ -892,10 +892,18 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ this.deptBudgetList = response
|
|
|
if(response.billingMethod){
|
|
|
this.pricetype=response.billingMethod
|
|
|
+ if(this.pricetype==1){
|
|
|
+ this.deptBudgetList.tranPrice=response.tranPrice
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.deptBudgetList.tranPrice=response.tranPriceCar
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
- this.deptBudgetList = response
|
|
|
+
|
|
|
this.fhaddress = response.sendPrivate + response.sendCity + response.sendArea + response
|
|
|
.sendDetailedAddress
|
|
|
this.shaddress = response.receivePrivate + response.receiveCity + response.receiveArea + response
|
|
@@ -921,7 +929,7 @@
|
|
|
fleetFlag:0,
|
|
|
tranType: '1',
|
|
|
tranCarNo: carno,
|
|
|
- billingMethod:1,
|
|
|
+ billingMethod:this.pricetype,
|
|
|
tranPrice: this.deptBudgetList.tranPrice
|
|
|
}, ]
|
|
|
})
|