gjy 2 years ago
parent
commit
7916a975a3

+ 2 - 0
src/views/outboundManagement/weighingManagementNew.vue

@@ -1961,6 +1961,8 @@
               this.weighingList.selfLoading = '0'
               this.carChange1 = '手动填写'
             }
+            console.log(this.weighingList.selfLoading)
+            this.$forceUpdate()
           }
         }
       },

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

@@ -146,7 +146,7 @@
                   <el-select ref="driverSelect" v-show="!item.temporaryDriverFlag" @visible-change="clearBlur"
                     v-model="item.driver" filterable clearable placeholder="请选择司机" class="row-item" @change="
                              (val) => {
-                               carchange(val, index)
+                               carchange(val, item.tranCarIndex)
                              }
                            ">
                     <el-option v-for="(items, index) in carList" :key="index" :label="items.driverName"
@@ -163,7 +163,7 @@
                   <el-select v-show="!item.temporaryDriverFlag" v-model="item.driverPhone" placeholder="请选择司机电话"
                     filterable clearable class="row-item" @change="
                                (val) => {
-                                 phonechange(val, index)
+                                 phonechange(val, item.tranCarIndex)
                                }
                              ">
                     <el-option v-for="(items, index) in carList" :key="index" :label="items.driverPhone"
@@ -361,6 +361,7 @@
           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])
             }
           }
@@ -372,6 +373,7 @@
           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])
             }
           }