Commit 496ff208 authored by 黄奎's avatar 黄奎

页面修改

parent 5a923f8e
...@@ -279,6 +279,9 @@ ...@@ -279,6 +279,9 @@
<!-- 金额总计 --> <!-- 金额总计 -->
<td v-if="childIndex==0" :rowspan="6" style="white-space:nowrap;"> <td v-if="childIndex==0" :rowspan="6" style="white-space:nowrap;">
{{subItem.TotalPrice}} {{subItem.TotalPrice}}
<template v-if="subItem.NewTotalPrice">
<br />{{subItem.NewTotalPrice}}
</template>
</td> </td>
<!-- 付款方式 --> <!-- 付款方式 -->
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="6">
...@@ -286,7 +289,8 @@ ...@@ -286,7 +289,8 @@
<tr> <tr>
<td width="70" style="text-align:right;">币种:</td> <td width="70" style="text-align:right;">币种:</td>
<td> <td>
<el-select v-model="subItem.CurrencyId" placeholder="请选择" class='w135 sel'> <el-select v-model="subItem.CurrencyId" placeholder="请选择" class='w135 sel'
@change="calculationPrice(subItem)">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="(item,index) in allCurrencyList" :key="index" :label="item.Name" <el-option v-for="(item,index) in allCurrencyList" :key="index" :label="item.Name"
:value="item.ID"> :value="item.ID">
...@@ -346,6 +350,7 @@ ...@@ -346,6 +350,7 @@
<el-option label='实物抵扣' :value='3'></el-option> <el-option label='实物抵扣' :value='3'></el-option>
<el-option label='预付' :value='4'></el-option> <el-option label='预付' :value='4'></el-option>
<el-option label='预付款抵扣' :value='5'></el-option> <el-option label='预付款抵扣' :value='5'></el-option>
<el-option label='领队导游垫付' :value='10'></el-option>
</el-select> </el-select>
</td> </td>
</tr> </tr>
...@@ -365,6 +370,7 @@ ...@@ -365,6 +370,7 @@
<el-option label='预付' :value='4'></el-option> <el-option label='预付' :value='4'></el-option>
<el-option label='预付款抵扣' :value='5'></el-option> <el-option label='预付款抵扣' :value='5'></el-option>
<el-option label='公司合团支付' :value='6'></el-option> <el-option label='公司合团支付' :value='6'></el-option>
<el-option label='领队导游垫付' :value='10'></el-option>
</el-select> </el-select>
</td> </td>
</tr> </tr>
...@@ -754,6 +760,19 @@ ...@@ -754,6 +760,19 @@
}, },
calculationPrice(obj) { calculationPrice(obj) {
let totalPrice = 0; let totalPrice = 0;
//获取当前选中的对象
let currentObj = {};
if (obj.CurrencyId != 0) {
currentObj = this.allCurrencyList.find(item => {
return item.ID === obj.CurrencyId; //筛选出匹配数据
});
}
//日元
let jpaObj = this.allCurrencyList.find(item => {
return item.ID === 3; //筛选出匹配数据
});
//this.allCurrencyList
obj.OrderDetailsList.forEach((item, index) => { obj.OrderDetailsList.forEach((item, index) => {
var tempPrice = 0; var tempPrice = 0;
var coefficient = 1; var coefficient = 1;
...@@ -771,6 +790,20 @@ ...@@ -771,6 +790,20 @@
}) })
totalPrice += obj.ParkFee + obj.CityTax + obj.InTangTax; totalPrice += obj.ParkFee + obj.CityTax + obj.InTangTax;
obj.TotalPrice = totalPrice.toFixed(2); obj.TotalPrice = totalPrice.toFixed(2);
if (currentObj && currentObj.ID > 0) {
//人民币
if (currentObj.ID == 1) {
obj.NewTotalPrice = currentObj.Name + ":" + (totalPrice * jpaObj.PayRate).toFixed(2);
}
//日元
else if (currentObj.ID == 3) {
obj.NewTotalPrice = "";
} else {
obj.NewTotalPrice = currentObj.Name + ":" + (totalPrice / currentObj.PayRate).toFixed(2);
}
} else {
obj.NewTotalPrice = "";
}
this.$forceUpdate(); this.$forceUpdate();
}, },
getHotelList(obj) { getHotelList(obj) {
......
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