Commit b89d112a authored by 黄奎's avatar 黄奎

车辆报价调整

parent eaa41f5b
...@@ -411,10 +411,10 @@ ...@@ -411,10 +411,10 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="upBtnList"> <div class="upBtnList">
<input v-if="IsEditBus==0" type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(0)" <input v-if="IsEditBus==0" type="button" class="normalBtn" :class="{'disClick':!isSubmit}"
:disabled="disButton" value="保存草稿" /> @click="SaveList(0)" :disabled="disButton" value="保存草稿" />
<input v-if="IsEditBus==1" type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="SaveList(1)" <input v-if="IsEditBus==1" type="button" class="normalBtn" :class="{'disClick':!isSubmit}"
:disabled="disButton" value="保存" /> @click="SaveList(1)" :disabled="disButton" value="保存" />
<span v-if="isShowBtn==1" style="color:red;margin-left:10px;"> <span v-if="isShowBtn==1" style="color:red;margin-left:10px;">
已制单,不能再修改价格和付款方式! 已制单,不能再修改价格和付款方式!
</span> </span>
...@@ -548,7 +548,7 @@ ...@@ -548,7 +548,7 @@
loading: false, loading: false,
isSubmit: true, isSubmit: true,
isShowBtn: 1, //1禁用高速费,成本费,高速付款方式文本框 isShowBtn: 1, //1禁用高速费,成本费,高速付款方式文本框
IsEditBus:0,//车辆修改权限 IsEditBus: 0, //车辆修改权限
}; };
}, },
methods: { methods: {
...@@ -574,30 +574,42 @@ ...@@ -574,30 +574,42 @@
} }
//高速付款方式默认现付 //高速付款方式默认现付
obj.HighSpeedPayType = 1; obj.HighSpeedPayType = 1;
let busTypeObj = this.BusTypeList.find(item => item.Id === obj.BusType); this.apipost(
if (busTypeObj) { "bus_get_GetBusTypePriceByDateList", {
//接送价格 StartDate: obj.PlanDateStr,
if (obj.AirportPickUp == 1 || obj.AirportPickUp == 2) { Id: obj.BusType,
tempCostFee += parseFloat(busTypeObj.ReceivePrice); },
//接送高速 response => {
tempHighSpeedFee += parseFloat(busTypeObj.PickUpHighSpeedFee); if (response.data.resultCode == 1) {
} let busTypeObj = response.data.data;
//全天价格 if (busTypeObj) {
if (obj.AirportPickUp == 12) { //接送价格
tempCostFee += parseFloat(busTypeObj.AllDayPrice); if (obj.AirportPickUp == 1 || obj.AirportPickUp == 2) {
//全天高速 tempCostFee += parseFloat(busTypeObj.ReceivePrice);
tempHighSpeedFee += parseFloat(busTypeObj.AllDayHighSpeedFee); //接送高速
} tempHighSpeedFee += parseFloat(busTypeObj.PickUpHighSpeedFee);
obj.HighSpeedPrice = tempHighSpeedFee; }
obj.CostPrice = tempCostFee; //全天价格
if (obj.AirportPickUp == 12) {
tempCostFee += parseFloat(busTypeObj.AllDayPrice);
//全天高速
tempHighSpeedFee += parseFloat(busTypeObj.AllDayHighSpeedFee);
}
obj.HighSpeedPrice = tempHighSpeedFee;
obj.CostPrice = tempCostFee;
if (!obj.HighSpeedPrice) {
obj.HighSpeedPrice = 0;
}
if (!obj.CostPrice) {
obj.CostPrice = 0;
}
}
}
},
null
);
if (!obj.HighSpeedPrice) {
obj.HighSpeedPrice = 0;
}
if (!obj.CostPrice) {
obj.CostPrice = 0;
}
}
} }
}, },
AddSubItem(item) { AddSubItem(item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment