Commit af7089a9 authored by 黄奎's avatar 黄奎

页面修改

parent 54149cde
...@@ -472,18 +472,18 @@ ...@@ -472,18 +472,18 @@
{{getLocalJpyTotalMoney(subItem.PeopleNumber)}} {{getLocalJpyTotalMoney(subItem.PeopleNumber)}}
</td> </td>
<td colspan="2"> <td colspan="2">
<template v-if="postConfig.LineId==14||postConfig.LineId==118"> <template v-if="teamPrice&&teamPrice.SingleDMCPrice&&teamPrice.SingleDMCPrice>0">
{{getLocalTotalMoney(subItem.PeopleNumber)}} {{teamPrice.SingleDMCPrice}}
</template> </template>
<template v-else-if="postConfig.LineId==168"> <template v-else-if="postConfig.LineId==14||postConfig.LineId==118">
{{getLocalTotalMoney(subItem.PeopleNumber)}} {{getLocalTotalMoney(subItem.PeopleNumber)}}
</template> </template>
<template v-else-if="teamPrice&&teamPrice.SingleDMCPrice&&teamPrice.SingleDMCPrice>0"> <template v-else-if="postConfig.LineId==168">
{{teamPrice.SingleDMCPrice}} {{getLocalTotalMoney(subItem.PeopleNumber)}}
</template> </template>
<template v-else> <template v-else>
{{subItem.SubtotalMoney}} {{subItem.SubtotalMoney}}
</template> </template>
</td> </td>
<td colspan="2"> <td colspan="2">
{{subItem.TotalMoney}} {{subItem.TotalMoney}}
......
...@@ -380,18 +380,21 @@ ...@@ -380,18 +380,21 @@
{{getLocalJpyTotalMoney(subItem.PeopleNumber)}} {{getLocalJpyTotalMoney(subItem.PeopleNumber)}}
</td> </td>
<td colspan="2"> <td colspan="2">
<template v-if="postConfig.LineId==14||postConfig.LineId==118"> <template v-if="teamPrice&&teamPrice.SingleDMCPrice&&teamPrice.SingleDMCPrice>0">
{{getLocalTotalMoney(subItem.PeopleNumber)}} {{teamPrice.SingleDMCPrice}}
</template> </template>
<template v-else-if="postConfig.LineId==168"> <template v-else-if="postConfig.LineId==14||postConfig.LineId==118">
{{getLocalTotalMoney(subItem.PeopleNumber)}} {{getLocalTotalMoney(subItem.PeopleNumber)}}
</template> </template>
<template v-else-if="teamPrice&&teamPrice.SingleDMCPrice&&teamPrice.SingleDMCPrice>0"> <template v-else-if="postConfig.LineId==168">
{{teamPrice.SingleDMCPrice}} {{getLocalTotalMoney(subItem.PeopleNumber)}}
</template> </template>
<template v-else> <template v-else>
{{subItem.SubtotalMoney}} <!-- <el-input v-model="subItem.SubtotalMoney" @keyup.native="checkPrice(subItem,'SubtotalMoney')"
</template> class="w70">
</el-input> -->
{{subItem.SubtotalMoney}}
</template>
</td> </td>
<td colspan="2"> <td colspan="2">
{{subItem.TotalMoney}} {{subItem.TotalMoney}}
......
...@@ -195,16 +195,16 @@ ...@@ -195,16 +195,16 @@
</td> </td>
<td> <td>
<el-input type='text' v-model="subItem.HotelCostPrice" class="w70" <el-input type='text' v-model="subItem.HotelCostPrice" class="w70"
@keyup.native="checkPrice(subItem,'HotelCostPrice')" placeholder="酒店价格"></el-input> @keyup.native="checkPrice(subItem,'HotelCostPrice'),getchange(1)" placeholder="酒店价格"></el-input>
</td> </td>
<td> <td>
<el-input type='text' v-model="subItem.BusCostPrice" class="w70" <el-input type='text' v-model="subItem.BusCostPrice" class="w70"
@keyup.native="checkPrice(subItem,'BusCostPrice'),getchange()" placeholder="车资"> @keyup.native="checkPrice(subItem,'BusCostPrice'),getchange(1)" placeholder="车资">
</el-input> </el-input>
</td> </td>
<td> <td>
<el-input type='text' v-model="subItem.PassFee" class="w70" <el-input type='text' v-model="subItem.PassFee" class="w70"
@keyup.native="checkPrice(subItem,'PassFee'),getchange()" placeholder="过路费、请车费"> @keyup.native="checkPrice(subItem,'PassFee'),getchange(1)" placeholder="过路费、请车费">
</el-input> </el-input>
</td> </td>
<td> <td>
...@@ -222,29 +222,29 @@ ...@@ -222,29 +222,29 @@
早:<el-input type="text" 早:<el-input type="text"
:disabled="(subItem.ContainDinnerType==1||subItem.ContainDinnerType==3)?true:false" :disabled="(subItem.ContainDinnerType==1||subItem.ContainDinnerType==3)?true:false"
v-model='subItem.BreakfastCostPrice' class="w70" v-model='subItem.BreakfastCostPrice' class="w70"
@keyup.native="checkPrice(subItem,'BreakfastCostPrice'),getchange()"></el-input> @keyup.native="checkPrice(subItem,'BreakfastCostPrice'),getchange(1)"></el-input>
<br /> <br />
午:<el-input type="text" v-model='subItem.LunchCostPrice' class="w70" 午:<el-input type="text" v-model='subItem.LunchCostPrice' class="w70"
@keyup.native="checkPrice(subItem,'LunchCostPrice'),getchange()"></el-input> @keyup.native="checkPrice(subItem,'LunchCostPrice'),getchange(1)"></el-input>
<br /> <br />
晚:<el-input type="text" 晚:<el-input type="text"
:disabled="(subItem.ContainDinnerType==2||subItem.ContainDinnerType==3)?true:false" :disabled="(subItem.ContainDinnerType==2||subItem.ContainDinnerType==3)?true:false"
v-model='subItem.DinnerCostPrice' class="w70" v-model='subItem.DinnerCostPrice' class="w70"
@keyup.native="checkPrice(subItem,'DinnerCostPrice'),getchange()"></el-input> @keyup.native="checkPrice(subItem,'DinnerCostPrice'),getchange(1)"></el-input>
</td> </td>
<td> <td>
<el-input type='text' v-model="subItem.TicketName" style="width:120px;" placeholder="景点名称"></el-input> <el-input type='text' v-model="subItem.TicketName" style="width:120px;" placeholder="景点名称"></el-input>
</td> </td>
<td> <td>
<el-input type='text' v-model="subItem.ScenicCostPrice" class="w70" <el-input type='text' v-model="subItem.ScenicCostPrice" class="w70"
@keyup.native="checkPrice(subItem,'ScenicCostPrice'),getchange()" placeholder="景点价格"></el-input> @keyup.native="checkPrice(subItem,'ScenicCostPrice'),getchange(1)" placeholder="景点价格"></el-input>
</td> </td>
<td> <td>
<el-input type="text" v-model='subItem.OtherName' class="w70" placeholder="杂支名称"></el-input> <el-input type="text" v-model='subItem.OtherName' class="w70" placeholder="杂支名称"></el-input>
</td> </td>
<td> <td>
<el-input type="text" v-model='subItem.OtherPrice' class="w70" <el-input type="text" v-model='subItem.OtherPrice' class="w70"
@keyup.native="checkPrice(subItem,'OtherPrice'),getchange()"></el-input> @keyup.native="checkPrice(subItem,'OtherPrice'),getchange(1)"></el-input>
</td> </td>
</tr> </tr>
</template> </template>
...@@ -369,8 +369,8 @@ ...@@ -369,8 +369,8 @@
</td> </td>
<td> <td>
<el-form-item label="单地接"> <el-form-item label="单地接">
<el-input v-model="teamPrice.SingleDMCPrice" @keyup.native="checkPrice(teamPrice,'SingleDMCPrice'),getchange()" <el-input v-model="teamPrice.SingleDMCPrice"
class="w70"> @keyup.native="checkInteger(teamPrice,'SingleDMCPrice'),getchange()" class="w70">
</el-input> </el-input>
</el-form-item> </el-form-item>
</td> </td>
...@@ -465,7 +465,7 @@ ...@@ -465,7 +465,7 @@
地接成本<br />(人民币) 地接成本<br />(人民币)
</td> </td>
<td colspan="2"> <td colspan="2">
成本<br />[地接成本(人民币)+其它成本(人民币)小计+单地接] 成本<br />[单地接+其它成本(人民币)小计]
</td> </td>
<td> <td>
同业销售价格 同业销售价格
...@@ -504,7 +504,10 @@ ...@@ -504,7 +504,10 @@
{{getLocalJpyTotalMoney(subItem.PeopleNumber)}} {{getLocalJpyTotalMoney(subItem.PeopleNumber)}}
</td> </td>
<td> <td>
<template v-if="postConfig.LineId==14||postConfig.LineId==118"> <template v-if="teamPrice&&teamPrice.SingleDMCPrice&&teamPrice.SingleDMCPrice>0">
{{teamPrice.SingleDMCPrice}}
</template>
<template v-else-if="postConfig.LineId==14||postConfig.LineId==118">
{{getLocalTotalMoney(subItem.PeopleNumber)}} {{getLocalTotalMoney(subItem.PeopleNumber)}}
</template> </template>
<template v-else-if="postConfig.LineId==168"> <template v-else-if="postConfig.LineId==168">
...@@ -514,7 +517,7 @@ ...@@ -514,7 +517,7 @@
<!-- <el-input v-model="subItem.SubtotalMoney" @keyup.native="checkPrice(subItem,'SubtotalMoney')" <!-- <el-input v-model="subItem.SubtotalMoney" @keyup.native="checkPrice(subItem,'SubtotalMoney')"
class="w70"> class="w70">
</el-input> --> </el-input> -->
{{teamPrice.SingleDMCPrice}} {{subItem.SubtotalMoney}}
</template> </template>
</td> </td>
<td colspan="2"> <td colspan="2">
...@@ -928,10 +931,9 @@ ...@@ -928,10 +931,9 @@
var jpyotherPrice = 0; var jpyotherPrice = 0;
var SingleDMCPrice = 0; var SingleDMCPrice = 0;
if (that.teamPrice && that.teamPrice.SingleDMCPrice) { if (that.teamPrice && that.teamPrice.SingleDMCPrice) {
console.log("1111");
SingleDMCPrice = Number(that.teamPrice.SingleDMCPrice); SingleDMCPrice = Number(that.teamPrice.SingleDMCPrice);
} }
x.TotalMoney = (trip + otherPrice + SingleDMCPrice).toFixed(0); x.TotalMoney = (otherPrice + SingleDMCPrice).toFixed(0);
x.JPYTotalMoney = (jpyTrip + jpyotherPrice).toFixed(2); x.JPYTotalMoney = (jpyTrip + jpyotherPrice).toFixed(2);
}); });
}, },
...@@ -954,7 +956,8 @@ ...@@ -954,7 +956,8 @@
var otherPrice = Number(this.getDayXiaoJi(9, 2)) / PeopleNumber; //其它费用 var otherPrice = Number(this.getDayXiaoJi(9, 2)) / PeopleNumber; //其它费用
var busFee = Number(this.getDayXiaoJi(2, 2)) / PeopleNumber; //车费 var busFee = Number(this.getDayXiaoJi(2, 2)) / PeopleNumber; //车费
totalMoney = busFee + hotelPrice + sencePrice + canPrice + otherPrice; totalMoney = busFee + hotelPrice + sencePrice + canPrice + otherPrice;
return totalMoney.toFixed(2); totalMoney = totalMoney.toFixed(2);
return totalMoney;
}, },
//获取地接项目报价(日元) //获取地接项目报价(日元)
getLocalJpyTotalMoney(PeopleNumber) { getLocalJpyTotalMoney(PeopleNumber) {
...@@ -970,8 +973,11 @@ ...@@ -970,8 +973,11 @@
totalMoney = busFee + hotelPrice + sencePrice + canPrice + otherPrice; totalMoney = busFee + hotelPrice + sencePrice + canPrice + otherPrice;
return totalMoney.toFixed(2); return totalMoney.toFixed(2);
}, },
getchange() { getchange(type) {
this.getSubtotalMoney(); this.getSubtotalMoney();
if (type && type == 1) {
this.teamPrice.SingleDMCPrice = this.getLocalTotalMoney(1);
}
}, },
//员工列表 //员工列表
getEmployeeList() { getEmployeeList() {
......
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