gjy 2 年之前
父節點
當前提交
4711b254fe
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/views/tranManagement/tranManagementVehicleDispatching.vue

+ 6 - 4
src/views/tranManagement/tranManagementVehicleDispatching.vue

@@ -533,6 +533,7 @@
          
       },
       add() {
+
         if(this.pricetype==1){
           if (!this.deptBudgetList.tranPrice) {
             this.$message({
@@ -585,9 +586,10 @@
               })
             } else if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 1000 && (this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) >=
               100) {
+                console.log(111111)
               tmp1 = 'C'
               this.deptBudgetList.count++
-              this.deptBudgetList.tranCarInfoList.push({
+              this.deptBudgetList.tranCarInfoList1.push({
                 driverName: '',
                 driverPhone: '',
                 carLength: 0,
@@ -617,7 +619,7 @@
             var tmp1 = 'C00'
             this.deptBudgetList.count++
             if ((this.deptBudgetList.tranCarInfoList.length+this.deptBudgetList.tranCarInfoList1.length) < 10) {
-              this.deptBudgetList.tranCarInfoList.push({
+              this.deptBudgetList.tranCarInfoList1.push({
                 driverName: '',
                 driverPhone: '',
                 carLength: 0,
@@ -639,7 +641,7 @@
               10) {
               tmp1 = 'C0'
               this.deptBudgetList.count++
-              this.deptBudgetList.tranCarInfoList.push({
+              this.deptBudgetList.tranCarInfoList1.push({
                 driverName: '',
                 driverPhone: '',
                 carLength: 0,
@@ -661,7 +663,7 @@
               100) {
               tmp1 = 'C'
               this.deptBudgetList.count++
-              this.deptBudgetList.tranCarInfoList.push({
+              this.deptBudgetList.tranCarInfoList1.push({
                 driverName: '',
                 driverPhone: '',
                 carLength: 0,