Commit 711ac494 authored by 黄奎's avatar 黄奎

页面修改

parent 98898ad8
...@@ -1068,7 +1068,6 @@ ...@@ -1068,7 +1068,6 @@
if (isClear && isClear == 1) { if (isClear && isClear == 1) {
this.postConfig.LineteamId = 0; this.postConfig.LineteamId = 0;
} }
let msg = { let msg = {
lineID: lineId, lineID: lineId,
isTOOP: 1 isTOOP: 1
...@@ -1259,18 +1258,20 @@ ...@@ -1259,18 +1258,20 @@
let that = this; let that = this;
this.CostNumberList.forEach(x => { this.CostNumberList.forEach(x => {
x.SubtotalMoney = ( x.SubtotalMoney = (
this.getConvertMoney(x.AirTicketMoney) + that.getConvertMoney(x.AirTicketMoney) +
this.getConvertMoney(x.TicketMoney) + that.getConvertMoney(x.TicketMoney) +
this.getConvertMoney(x.SingleRoomMoney) + that.getConvertMoney(x.SingleRoomMoney) +
this.getConvertMoney(x.InlandTrafficMoney) + that.getConvertMoney(x.InlandTrafficMoney) +
this.getConvertMoney(x.OtherMoney) that.getConvertMoney(x.OtherMoney)
).toFixed(0); ).toFixed(0);
x.TotalMoney = ( x.TotalMoney = (
that.getLocalTotalMoney() + Number(that.getLocalTotalMoney(x.PeopleNumber)) +
that.getCostTotalMoney() + Number( that.getCostTotalMoney()) +
this.getConvertMoney(x.SubtotalMoney) + Number( that.getConvertMoney(x.SubtotalMoney) )
this.getCurrencyNumberTotalMoney(x.PeopleNumber)
).toFixed(0); ).toFixed(0);
// + that.getCurrencyNumberTotalMoney(x.PeopleNumber)
console.log("x.TotalMoney", x.TotalMoney);
}); });
}, },
//价格转换器 //价格转换器
...@@ -1281,21 +1282,27 @@ ...@@ -1281,21 +1282,27 @@
return parseFloat(value); return parseFloat(value);
}, },
//获取地接项目报价 //获取地接项目报价
getLocalTotalMoney() { getLocalTotalMoney(PeopleNumber) {
let totalMoney = 0.0; let totalMoney = 0.0;
this.dayCostPrice.forEach(x => { totalMoney = Number(this.getDayXiaoJi(1, 2)) + Number(this.getDayXiaoJi(2, 2)) / Number(PeopleNumber) +
let subTotalMoney = 0.0; Number(this.getDayXiaoJi(3, 2)) + Number(this.getDayXiaoJi(4, 2)) + Number(this.getDayXiaoJi(5, 2)) +
subTotalMoney = Number(this.getDayXiaoJi(6, 2));
(this.getConvertMoney(x.HotelCostPrice) + // this.dayCostPrice.forEach(x => {
this.getConvertMoney(x.BusCostPrice) + // let subTotalMoney = 0.0;
this.getConvertMoney(x.ScenicCostPrice) + // subTotalMoney =
this.getConvertMoney(x.BreakfastCostPrice) + // (this.getConvertMoney(x.HotelCostPrice) +
this.getConvertMoney(x.LunchCostPrice) +
this.getConvertMoney(x.DinnerCostPrice)) * // this.getConvertMoney(x.ScenicCostPrice) +
this.getCurrencyMoney(x.CurrencyId); // this.getConvertMoney(x.BreakfastCostPrice) +
totalMoney += subTotalMoney; // this.getConvertMoney(x.LunchCostPrice) +
}); // this.getConvertMoney(x.DinnerCostPrice)) *
return totalMoney; // this.getCurrencyMoney(x.CurrencyId)
// +(this.getConvertMoney(x.BusCostPrice)*this.getCurrencyMoney(x.CurrencyId)/PeopleNumber)
// ;
// totalMoney += subTotalMoney;
// });
console.log("totalMoney", totalMoney.toFixed(0))
return totalMoney.toFixed(0);
}, },
//计算领队分摊 //计算领队分摊
getLeaderShare() { getLeaderShare() {
...@@ -1319,6 +1326,7 @@ ...@@ -1319,6 +1326,7 @@
} }
}, },
mounted() { mounted() {
this.getSubtotalMoney();
this.getAllCurrency(); this.getAllCurrency();
}, },
created() { created() {
......
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