zhangyuewww 2 lat temu
rodzic
commit
aa8a3cc99b

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

@@ -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
               }, ]
           })