zhangyuewww 3 gadi atpakaļ
vecāks
revīzija
baefd16657

+ 23 - 3
src/views/tranManagement/tranManagementVehicleDispatching.vue

@@ -512,6 +512,7 @@ export default {
       }
       else{
             var tmp1='C00'
+            this.deptBudgetList.count++
             if(this.deptBudgetList.tranCarInfoList.length<10){
                 this.deptBudgetList.tranCarInfoList.push({
                 driverName: '',
@@ -524,12 +525,13 @@ export default {
                 carNumber: '',
                 disabled: false,
                 tranType: '1',
-                tranCarNo: tmp1+(this.deptBudgetList.count+1),
+                tranCarNo: tmp1+(this.deptBudgetList.count),
                 tranPrice:this.deptBudgetList.tranPrice
               })
           }
-         else if(this.deptBudgetList.tranCarInfoList.length>=10){
+         else if(this.deptBudgetList.tranCarInfoList.length<100&&this.deptBudgetList.tranCarInfoList.length>=10){
                 tmp1='C0'
+                 this.deptBudgetList.count++
                 this.deptBudgetList.tranCarInfoList.push({
                 driverName: '',
                 driverPhone: '',
@@ -541,7 +543,25 @@ export default {
                 carNumber: '',
                 disabled: false,
                 tranType: '1',
-                tranCarNo: tmp1+(this.deptBudgetList.count+1),
+                tranCarNo: tmp1+(this.deptBudgetList.count),
+                tranPrice:this.deptBudgetList.tranPrice
+              })
+          }
+          else if(this.deptBudgetList.tranCarInfoList.length<1000&&this.deptBudgetList.tranCarInfoList.length>=100){
+                tmp1='C'
+                 this.deptBudgetList.count++
+                this.deptBudgetList.tranCarInfoList.push({
+                driverName: '',
+                driverPhone: '',
+                carLength: 0,
+                carLengthKey: '',
+                loadWeight: null,
+                carModel: '',
+                carModelKey: '',
+                carNumber: '',
+                disabled: false,
+                tranType: '1',
+                tranCarNo: tmp1+(this.deptBudgetList.count),
                 tranPrice:this.deptBudgetList.tranPrice
               })
           }