zhangyuewww 2 年之前
父节点
当前提交
aa8a3cc99b
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      src/views/tranManagement/tranManagementVehicleDispatching.vue

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

@@ -892,10 +892,18 @@
                 }
                 }
               }
               }
             }
             }
+            this.deptBudgetList = response
             if(response.billingMethod){
             if(response.billingMethod){
               this.pricetype=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
             this.fhaddress = response.sendPrivate + response.sendCity + response.sendArea + response
               .sendDetailedAddress
               .sendDetailedAddress
             this.shaddress = response.receivePrivate + response.receiveCity + response.receiveArea + response
             this.shaddress = response.receivePrivate + response.receiveCity + response.receiveArea + response
@@ -921,7 +929,7 @@
                 fleetFlag:0,
                 fleetFlag:0,
                 tranType: '1',
                 tranType: '1',
                 tranCarNo: carno,
                 tranCarNo: carno,
-                billingMethod:1,
+                billingMethod:this.pricetype,
                 tranPrice: this.deptBudgetList.tranPrice
                 tranPrice: this.deptBudgetList.tranPrice
               }, ]
               }, ]
           })
           })