Commit b89d112a authored by 黄奎's avatar 黄奎

车辆报价调整

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