Commit 9128780b authored by 黄奎's avatar 黄奎

页面修改

parent ac5fb52e
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
<i class="iconfont icon-quxiao" style="display:inline-block;" @click="DeleteCurrency(index)"></i> <i class="iconfont icon-quxiao" style="display:inline-block;" @click="DeleteCurrency(index)"></i>
</span> </span>
</td> </td>
<td :colspan="12-2-CostCurrencyList.length+1"> <td :colspan="13-2-CostCurrencyList.length+1">
<el-form-item class="w70"> <el-form-item class="w70">
<el-select v-model='currencyType' @change="getRate(currencyType),addCurrency()"> <el-select v-model='currencyType' @change="getRate(currencyType),addCurrency()">
<el-option v-for="item in currencyTypeArr" :label='item.Name' :value='item.ID' :key='item.ID'> <el-option v-for="item in currencyTypeArr" :label='item.Name' :value='item.ID' :key='item.ID'>
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
@keyup.native="checkRate(item,'ExchangeRate'),getchange()"> @keyup.native="checkRate(item,'ExchangeRate'),getchange()">
</el-input> </el-input>
</td> </td>
<td :colspan="12-2-CostCurrencyList.length+1"> <td :colspan="13-2-CostCurrencyList.length+1">
<el-input class="w70" v-model='queryMsg.RateInput' <el-input class="w70" v-model='queryMsg.RateInput'
@keyup.native="checkRate(queryMsg,'RateInput'),getchange()"> @keyup.native="checkRate(queryMsg,'RateInput'),getchange()">
</el-input> </el-input>
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
<i class="iconfont icon-quxiao" @click="DeletePNumber(index),getchange()"></i> <i class="iconfont icon-quxiao" @click="DeletePNumber(index),getchange()"></i>
</span> </span>
</td> </td>
<td width="150" :colspan="12-2-CostNumberList.length+1"> <td width="150" :colspan="13-2-CostNumberList.length+1">
<el-form-item> <el-form-item>
<el-input class="w50" v-model='queryMsg.PeopleNumber' <el-input class="w50" v-model='queryMsg.PeopleNumber'
@keyup.native="checkInteger(queryMsg,'PeopleNumber'),getchange()"></el-input> @keyup.native="checkInteger(queryMsg,'PeopleNumber'),getchange()"></el-input>
...@@ -224,19 +224,20 @@ ...@@ -224,19 +224,20 @@
</tr> --> </tr> -->
</thead> </thead>
<tr> <tr>
<td colspan="12"></td> <td colspan="13"></td>
</tr> </tr>
<tr> <tr>
<td rowspan="2" width='180' class="CP_ComTitle2 CostcomCenter">Day</td> <td rowspan="2" width='180' class="CP_ComTitle2 CostcomCenter">Day</td>
<td rowspan="2" width='200' class="CP_ComTitle2 CostcomCenter">行程大点</td> <td rowspan="2" width='200' class="CP_ComTitle2 CostcomCenter">行程大点</td>
<td rowspan="2" width="100" class="CP_ComTitle2 CostcomCenter">币种</td> <td rowspan="2" width="100" class="CP_ComTitle2 CostcomCenter">币种</td>
<td rowspan="2" width='60' class="CP_ComTitle2 CostcomCenter">酒店</td> <td rowspan="2" width='60' class="CP_ComTitle2 CostcomCenter">酒店</td>
<td colspan="3" width='100' class="CP_ComTitle2 CostcomCenter"></td> <td colspan="4" width='100' class="CP_ComTitle2 CostcomCenter"></td>
<td rowspan="2" width='80' class="CP_ComTitle2 CostcomCenter">门票</td> <td rowspan="2" width='80' class="CP_ComTitle2 CostcomCenter">门票</td>
<td colspan="3" width='100' class="CP_ComTitle2 CostcomCenter"></td> <td colspan="3" width='100' class="CP_ComTitle2 CostcomCenter"></td>
</tr> </tr>
<tr> <tr>
<td width="120" class="CP_ComTitle2 CostcomCenter">总车资</td> <td width="120" class="CP_ComTitle2 CostcomCenter">总车资</td>
<td width="120" class="CP_ComTitle2 CostcomCenter">过路费</td>
<td width="100" class="CP_ComTitle2 CostcomCenter">人数</td> <td width="100" class="CP_ComTitle2 CostcomCenter">人数</td>
<td width="100" class="CP_ComTitle2 CostcomCenter" style="white-space:nowrap; ">每人车资</td> <td width="100" class="CP_ComTitle2 CostcomCenter" style="white-space:nowrap; ">每人车资</td>
<td width="120" class="CP_ComTitle2 CostcomCenter"></td> <td width="120" class="CP_ComTitle2 CostcomCenter"></td>
...@@ -280,6 +281,11 @@ ...@@ -280,6 +281,11 @@
@keyup.native="checkPrice(subItem,'BusCostPrice'),getchange()"> @keyup.native="checkPrice(subItem,'BusCostPrice'),getchange()">
</el-input> </el-input>
</td> </td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
<el-input type='text' v-model="subItem.PassFee" class="w70"
@keyup.native="checkPrice(subItem,'PassFee'),getchange()">
</el-input>
</td>
<td> <td>
{{childItem.PeopleNumber}} {{childItem.PeopleNumber}}
</td> </td>
...@@ -323,11 +329,14 @@ ...@@ -323,11 +329,14 @@
<td v-if="childIndex==0" :rowspan="CostNumberList.length"> <td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(2,1)}} {{getDayXiaoJi(2,1)}}
</td> </td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(7,1)}}
</td>
<td> <td>
{{childItem.PeopleNumber}} {{childItem.PeopleNumber}}
</td> </td>
<td> <td>
{{(Number(getDayXiaoJi(2,1))/Number(childItem.PeopleNumber)).toFixed(0)}} {{((Number(getDayXiaoJi(2,1))+Number(getDayXiaoJi(7,1)))/Number(childItem.PeopleNumber)).toFixed(0)}}
</td> </td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length"> <td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(3,1)}} {{getDayXiaoJi(3,1)}}
...@@ -355,11 +364,14 @@ ...@@ -355,11 +364,14 @@
<td v-if="childIndex==0" :rowspan="CostNumberList.length"> <td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(2,2)}} {{getDayXiaoJi(2,2)}}
</td> </td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(7,2)}}
</td>
<td> <td>
{{childItem.PeopleNumber}} {{childItem.PeopleNumber}}
</td> </td>
<td> <td>
{{(Number(getDayXiaoJi(2,2))/Number(childItem.PeopleNumber)).toFixed(0)}} {{((Number(getDayXiaoJi(2,2))+Number(getDayXiaoJi(7,2)))/Number(childItem.PeopleNumber)).toFixed(0)}}
</td> </td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length"> <td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(3,2)}} {{getDayXiaoJi(3,2)}}
...@@ -411,6 +423,11 @@ ...@@ -411,6 +423,11 @@
@keyup.native="checkPrice(subItem,'BusCostPrice'),getchange()"> @keyup.native="checkPrice(subItem,'BusCostPrice'),getchange()">
</el-input> </el-input>
</td> </td>
<td>
<el-input type='text' v-model="subItem.PassFee" class="w70"
@keyup.native="checkPrice(subItem,'PassFee'),getchange()">
</el-input>
</td>
<td> <td>
<template v-if="CostNumberList&&CostNumberList.length>0"> <template v-if="CostNumberList&&CostNumberList.length>0">
{{CostNumberList[0].PeopleNumber}} {{CostNumberList[0].PeopleNumber}}
...@@ -453,6 +470,9 @@ ...@@ -453,6 +470,9 @@
<td> <td>
{{getDayXiaoJi(2,1)}} {{getDayXiaoJi(2,1)}}
</td> </td>
<td>
{{getDayXiaoJi(7,1)}}
</td>
<td> <td>
<template v-if="CostNumberList&&CostNumberList.length>0"> <template v-if="CostNumberList&&CostNumberList.length>0">
{{CostNumberList[0].PeopleNumber}} {{CostNumberList[0].PeopleNumber}}
...@@ -460,7 +480,7 @@ ...@@ -460,7 +480,7 @@
</td> </td>
<td> <td>
<template v-if="CostNumberList&&CostNumberList.length>0"> <template v-if="CostNumberList&&CostNumberList.length>0">
{{(Number(getDayXiaoJi(2,1))/Number(CostNumberList[0].PeopleNumber)).toFixed(0)}} {{((Number(getDayXiaoJi(2,1))+Number(getDayXiaoJi(7,1)))/Number(CostNumberList[0].PeopleNumber)).toFixed(0)}}
</template> </template>
</td> </td>
<td> <td>
...@@ -486,6 +506,9 @@ ...@@ -486,6 +506,9 @@
<td> <td>
{{getDayXiaoJi(2,2)}} {{getDayXiaoJi(2,2)}}
</td> </td>
<td>
{{getDayXiaoJi(7,2)}}
</td>
<td> <td>
<template v-if="CostNumberList&&CostNumberList.length>0"> <template v-if="CostNumberList&&CostNumberList.length>0">
{{CostNumberList[0].PeopleNumber}} {{CostNumberList[0].PeopleNumber}}
...@@ -493,7 +516,7 @@ ...@@ -493,7 +516,7 @@
</td> </td>
<td> <td>
<template v-if="CostNumberList&&CostNumberList.length>0"> <template v-if="CostNumberList&&CostNumberList.length>0">
{{(Number(getDayXiaoJi(2,2))/Number(CostNumberList[0].PeopleNumber)).toFixed(0)}} {{( (Number(getDayXiaoJi(2,2))+Number(getDayXiaoJi(7,2)))/Number(CostNumberList[0].PeopleNumber)).toFixed(0)}}
</template> </template>
</td> </td>
<td> <td>
...@@ -511,16 +534,16 @@ ...@@ -511,16 +534,16 @@
</tr> </tr>
</template> </template>
<tr> <tr>
<td colspan="12"></td> <td colspan="13"></td>
</tr> </tr>
<tr> <tr>
<td class="CP_ComTitle2" colspan="5">内陆段交通部分</td> <td class="CP_ComTitle2" colspan="6">内陆段交通部分</td>
<td class="CP_ComTitle2" colspan="6">杂支部分</td> <td class="CP_ComTitle2" colspan="6">杂支部分</td>
</tr> </tr>
<tr> <tr>
<td class="CP_ComTitle2 CostcomCenter">1</td> <td class="CP_ComTitle2 CostcomCenter">1</td>
<td class="CP_ComTitle2">内陆段机位(每人)</td> <td class="CP_ComTitle2">内陆段机位(每人)</td>
<td> <td colspan="2">
<el-form-item> <el-form-item>
<el-select v-model='OtherPrice.InlandAirTicketCurrency' class="w70"> <el-select v-model='OtherPrice.InlandAirTicketCurrency' class="w70">
<el-option :label="$t('pub.unlimitedSel')" :value='defaultSelect'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='defaultSelect'></el-option>
...@@ -556,7 +579,7 @@ ...@@ -556,7 +579,7 @@
<tr> <tr>
<td class="CP_ComTitle2 CostcomCenter">2</td> <td class="CP_ComTitle2 CostcomCenter">2</td>
<td class="CP_ComTitle2">内陆段船票(每人)</td> <td class="CP_ComTitle2">内陆段船票(每人)</td>
<td> <td colspan="2">
<el-form-item> <el-form-item>
<el-select v-model='OtherPrice.InlandShipTicketCurrency' class="w70"> <el-select v-model='OtherPrice.InlandShipTicketCurrency' class="w70">
<el-option :label="$t('pub.unlimitedSel')" :value='defaultSelect'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='defaultSelect'></el-option>
...@@ -594,7 +617,7 @@ ...@@ -594,7 +617,7 @@
<tr> <tr>
<td class="CP_ComTitle2 CostcomCenter">3</td> <td class="CP_ComTitle2 CostcomCenter">3</td>
<td class="CP_ComTitle2">内陆段火车票(每人)</td> <td class="CP_ComTitle2">内陆段火车票(每人)</td>
<td> <td colspan="2">
<el-form-item> <el-form-item>
<el-select v-model='OtherPrice.InlandTrainTicketCurrency' class="w70"> <el-select v-model='OtherPrice.InlandTrainTicketCurrency' class="w70">
<el-option :label="$t('pub.unlimitedSel')" :value='defaultSelect'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='defaultSelect'></el-option>
...@@ -630,7 +653,7 @@ ...@@ -630,7 +653,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="5"></td> <td colspan="6"></td>
<td class="CP_ComTitle2 CostcomCenter">4</td> <td class="CP_ComTitle2 CostcomCenter">4</td>
<td colspan="2" class="CP_ComTitle2">司机、导游小费</td> <td colspan="2" class="CP_ComTitle2">司机、导游小费</td>
<td> <td>
...@@ -654,7 +677,7 @@ ...@@ -654,7 +677,7 @@
<td class="CP_ComTitle2"> <td class="CP_ComTitle2">
外币小计 外币小计
</td> </td>
<td colspan="4"> <td colspan="5">
{{trafficXiaoJi(2)}} {{trafficXiaoJi(2)}}
</td> </td>
<td class="CP_ComTitle2"> <td class="CP_ComTitle2">
...@@ -668,7 +691,7 @@ ...@@ -668,7 +691,7 @@
<td class="CP_ComTitle2"> <td class="CP_ComTitle2">
人民币小计 人民币小计
</td> </td>
<td colspan="4"> <td colspan="5">
{{ trafficXiaoJi(1) }} {{ trafficXiaoJi(1) }}
</td> </td>
<td class="CP_ComTitle2"> <td class="CP_ComTitle2">
...@@ -679,17 +702,17 @@ ...@@ -679,17 +702,17 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="12"></td> <td colspan="13"></td>
</tr> </tr>
<tr> <tr>
<td class="CP_ComTitle2" colspan="2">其他支出</td> <td class="CP_ComTitle2" colspan="4">其他支出</td>
<td class="CP_ComTitle2" colspan="3" style="display:none;">机票</td> <td class="CP_ComTitle2" colspan="3" style="display:none;">机票</td>
<td class="CP_ComTitle2" colspan="4">收入</td> <td class="CP_ComTitle2" colspan="4">收入</td>
<td class="CP_ComTitle2" colspan="5">团负费</td> <td class="CP_ComTitle2" colspan="5">团负费</td>
</tr> </tr>
<tr> <tr>
<td class="CP_ComTitle2 CostcomCenter">摘要</td> <td class="CP_ComTitle2 CostcomCenter" colspan="2">摘要</td>
<td class="CP_ComTitle2 CostcomCenter">金额<br />(人民币)</td> <td class="CP_ComTitle2 CostcomCenter" colspan="2">金额<br />(人民币)</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="2" style="display:none;">摘要</td> <td class="CP_ComTitle2 CostcomCenter" colspan="2" style="display:none;">摘要</td>
<td class="CP_ComTitle2 CostcomCenter" style="display:none;">金额<br />(人民币)</td> <td class="CP_ComTitle2 CostcomCenter" style="display:none;">金额<br />(人民币)</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="2">摘要</td> <td class="CP_ComTitle2 CostcomCenter" colspan="2">摘要</td>
...@@ -698,8 +721,8 @@ ...@@ -698,8 +721,8 @@
<td class="CP_ComTitle2 CostcomCenter" colspan="3">金额<br />(人民币)</td> <td class="CP_ComTitle2 CostcomCenter" colspan="3">金额<br />(人民币)</td>
</tr> </tr>
<tr> <tr>
<td style="white-space:nowrap; " class="CP_ComTitle2">销售提成1%</td> <td style="white-space:nowrap; " class="CP_ComTitle2" colspan="2">销售提成1%</td>
<td> <td colspan="2">
<el-form-item> <el-form-item>
<el-input type='text' class="w120" v-model="OtherPrice.SalesCommissionMoney" <el-input type='text' class="w120" v-model="OtherPrice.SalesCommissionMoney"
@keyup.native="checkPrice(OtherPrice,'SalesCommissionMoney'),getchange()"></el-input> @keyup.native="checkPrice(OtherPrice,'SalesCommissionMoney'),getchange()"></el-input>
...@@ -728,8 +751,8 @@ ...@@ -728,8 +751,8 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="white-space:nowrap; " class="CP_ComTitle2">作业处提成</td> <td style="white-space:nowrap; " class="CP_ComTitle2" colspan="2">作业处提成</td>
<td> <td colspan="2">
<el-form-item> <el-form-item>
<el-input type='text' class="w120" v-model="OtherPrice.OfficeCommissionMoney" <el-input type='text' class="w120" v-model="OtherPrice.OfficeCommissionMoney"
@keyup.native="checkPrice(OtherPrice,'OfficeCommissionMoney'),getchange()"></el-input> @keyup.native="checkPrice(OtherPrice,'OfficeCommissionMoney'),getchange()"></el-input>
...@@ -746,10 +769,10 @@ ...@@ -746,10 +769,10 @@
<td colspan="5"></td> <td colspan="5"></td>
</tr> </tr>
<tr> <tr>
<td class="CP_ComTitle2"> <td class="CP_ComTitle2" colspan="2">
人民币小计 人民币小计
</td> </td>
<td> <td colspan="2">
{{Number(OtherPrice.SalesCommissionMoney)+Number(OtherPrice.OfficeCommissionMoney)}} {{Number(OtherPrice.SalesCommissionMoney)+Number(OtherPrice.OfficeCommissionMoney)}}
</td> </td>
<td class="CP_ComTitle2" style="display:none;"> <td class="CP_ComTitle2" style="display:none;">
...@@ -785,6 +808,7 @@ ...@@ -785,6 +808,7 @@
<td class="CP_ComTitle2 CostcomCenter">人数</td> <td class="CP_ComTitle2 CostcomCenter">人数</td>
<td class="CP_ComTitle2 CostcomCenter">机票</td> <td class="CP_ComTitle2 CostcomCenter">机票</td>
<td class="CP_ComTitle2 CostcomCenter">门票</td> <td class="CP_ComTitle2 CostcomCenter">门票</td>
<td class="CP_ComTitle2 CostcomCenter">领队导游司机住宿</td>
<td class="CP_ComTitle2 CostcomCenter">单房差</td> <td class="CP_ComTitle2 CostcomCenter">单房差</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="2">内陆段交通</td> <td class="CP_ComTitle2 CostcomCenter" colspan="2">内陆段交通</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="2">杂费</td> <td class="CP_ComTitle2 CostcomCenter" colspan="2">杂费</td>
...@@ -803,6 +827,12 @@ ...@@ -803,6 +827,12 @@
<el-input type='text' class="w70" v-model="OtherPrice.TicketShareMoney" <el-input type='text' class="w70" v-model="OtherPrice.TicketShareMoney"
@keyup.native="checkPrice(OtherPrice,'TicketShareMoney'),getchange()"></el-input> @keyup.native="checkPrice(OtherPrice,'TicketShareMoney'),getchange()"></el-input>
</el-form-item> </el-form-item>
</td>
<td>
<el-form-item>
<el-input type='text' class="w70" v-model="OtherPrice.LeaderGuideDriveZhuSu"
@keyup.native="checkPrice(OtherPrice,'LeaderGuideDriveZhuSu'),getchange()"></el-input>
</el-form-item>
</td> </td>
<td> <td>
<el-form-item> <el-form-item>
...@@ -810,6 +840,7 @@ ...@@ -810,6 +840,7 @@
@keyup.native="checkPrice(OtherPrice,'SingleRoomShareMoney'),getchange()"></el-input> @keyup.native="checkPrice(OtherPrice,'SingleRoomShareMoney'),getchange()"></el-input>
</el-form-item> </el-form-item>
</td> </td>
<td colspan="2"> <td colspan="2">
<el-form-item> <el-form-item>
<el-input type='text' class="w70" v-model="OtherPrice.InlandTrafficShareMoney" <el-input type='text' class="w70" v-model="OtherPrice.InlandTrafficShareMoney"
...@@ -828,16 +859,17 @@ ...@@ -828,16 +859,17 @@
<td>{{item.PeopleNumber}}+1</td> <td>{{item.PeopleNumber}}+1</td>
<td>{{item.AirTicketMoney}}</td> <td>{{item.AirTicketMoney}}</td>
<td>{{item.TicketMoney}}</td> <td>{{item.TicketMoney}}</td>
<td>{{item.LeaderGuideDriveZhuSu}}</td>
<td>{{item.SingleRoomMoney}}</td> <td>{{item.SingleRoomMoney}}</td>
<td colspan="2">{{item.InlandTrafficMoney}}</td> <td colspan="2">{{item.InlandTrafficMoney}}</td>
<td colspan="2">{{item.OtherMoney}}</td> <td colspan="2">{{item.OtherMoney}}</td>
<td colspan="3">{{item.SubtotalMoney}}</td> <td colspan="3">{{item.SubtotalMoney}}</td>
</tr> </tr>
<tr> <tr>
<td colspan="12"></td> <td colspan="13"></td>
</tr> </tr>
<tr> <tr>
<td colspan="12" class="CP_ComTitle2">成本统计(以下报价为每人费用)<br /> <td colspan="13" class="CP_ComTitle2">成本统计(以下报价为每人费用)<br />
计算规则: (房+餐+车+景点)*汇率+内陆段交通*汇率+杂支部分*汇率+其他资产+机票票+收入-团负费+领队分摊+地接报价*汇率 计算规则: (房+餐+车+景点)*汇率+内陆段交通*汇率+杂支部分*汇率+其他资产+机票票+收入-团负费+领队分摊+地接报价*汇率
</td> </td>
</tr> </tr>
...@@ -846,7 +878,7 @@ ...@@ -846,7 +878,7 @@
</td> </td>
<td class="CP_ComTitle2">成本价</td> <td class="CP_ComTitle2">成本价</td>
<td class="CP_ComTitle2" colspan="2">销售价格</td> <td class="CP_ComTitle2" colspan="2">销售价格</td>
<td colspan="7" class="CP_ComTitle2">备注</td> <td colspan="8" class="CP_ComTitle2">备注</td>
</tr> </tr>
<tr v-for="item in CostNumberList" :key="item.subCode"> <tr v-for="item in CostNumberList" :key="item.subCode">
<td>{{item.PeopleNumber}}+1</td> <td>{{item.PeopleNumber}}+1</td>
...@@ -855,12 +887,12 @@ ...@@ -855,12 +887,12 @@
<el-input type='text' class="w70" v-model="item.SalePrice" <el-input type='text' class="w70" v-model="item.SalePrice"
@keyup.native="checkPrice(item,'SalePrice',true)" maxlength="8"></el-input> @keyup.native="checkPrice(item,'SalePrice',true)" maxlength="8"></el-input>
</td> </td>
<td colspan="7"> <td colspan="8">
<el-input type="textarea" v-model="item.CostRemark"></el-input> <el-input type="textarea" v-model="item.CostRemark"></el-input>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="12"></td> <td colspan="13"></td>
</tr> </tr>
<tr> <tr>
<td class="CP_ComTitle2"> <td class="CP_ComTitle2">
...@@ -884,7 +916,7 @@ ...@@ -884,7 +916,7 @@
<td class="CP_ComTitle2"> <td class="CP_ComTitle2">
签证费 签证费
</td> </td>
<td class="CP_ComTitle2"> <td class="CP_ComTitle2" colspan="2">
单房差 单房差
</td> </td>
</tr> </tr>
...@@ -924,7 +956,7 @@ ...@@ -924,7 +956,7 @@
class="w100"> class="w100">
</el-input> </el-input>
</td> </td>
<td> <td colspan="2">
<el-input placeholder="" v-model="teamPrice.SingleRoomPrice" <el-input placeholder="" v-model="teamPrice.SingleRoomPrice"
@keyup.native="checkPrice(teamPrice,'SingleRoomPrice')" class="w100"> @keyup.native="checkPrice(teamPrice,'SingleRoomPrice')" class="w100">
</el-input> </el-input>
...@@ -933,7 +965,7 @@ ...@@ -933,7 +965,7 @@
</tr> </tr>
<tr> <tr>
<td class="CP_ComTitle2">备注</td> <td class="CP_ComTitle2">备注</td>
<td colspan="11"> <td colspan="12">
<el-input type="textarea" v-model="OtherPrice.OtherRemark"></el-input> <el-input type="textarea" v-model="OtherPrice.OtherRemark"></el-input>
</td> </td>
</tr> </tr>
...@@ -1101,6 +1133,10 @@ ...@@ -1101,6 +1133,10 @@
if (type == 6) { if (type == 6) {
xiaoJi += Number(item.DinnerCostPrice) * Number(currencyRate); xiaoJi += Number(item.DinnerCostPrice) * Number(currencyRate);
} }
//过路费
if (type == 7) {
xiaoJi += Number(item.PassFee) * Number(currencyRate);
}
}); });
return xiaoJi.toFixed(0); return xiaoJi.toFixed(0);
}, },
...@@ -1220,6 +1256,7 @@ ...@@ -1220,6 +1256,7 @@
LunchCostPrice: 0, //午餐报价 LunchCostPrice: 0, //午餐报价
DinnerCostPrice: 0, //晚餐报价 DinnerCostPrice: 0, //晚餐报价
ContainDinnerType: 0, //含餐类型(1-含早餐,2-含晚餐,3-含早晚) ContainDinnerType: 0, //含餐类型(1-含早餐,2-含晚餐,3-含早晚)
PassFee:0,//过路费
}; };
this.dayCostPrice.push(dayItem); this.dayCostPrice.push(dayItem);
} }
...@@ -1384,12 +1421,16 @@ ...@@ -1384,12 +1421,16 @@
that.getConvertMoney(x.TicketMoney) + that.getConvertMoney(x.TicketMoney) +
that.getConvertMoney(x.SingleRoomMoney) + that.getConvertMoney(x.SingleRoomMoney) +
that.getConvertMoney(x.InlandTrafficMoney) + that.getConvertMoney(x.InlandTrafficMoney) +
that.getConvertMoney(x.OtherMoney) that.getConvertMoney(x.OtherMoney)+
that.getConvertMoney(x.LeaderGuideDriveZhuSu)
).toFixed(0); ).toFixed(0);
//房餐车景点价格 //房餐车景点价格
var trip = Number(that.getLocalTotalMoney(x.PeopleNumber)); var trip = Number(that.getLocalTotalMoney(x.PeopleNumber));
console.log("trip",trip);
//其他价格 //其他价格
var otherPrice = Number(that.getCostTotalMoney()) var otherPrice = Number(that.getCostTotalMoney())
console.log("otherPrice",otherPrice)
x.TotalMoney = (trip + otherPrice + x.TotalMoney = (trip + otherPrice +
Number(that.getConvertMoney(x.SubtotalMoney)) Number(that.getConvertMoney(x.SubtotalMoney))
).toFixed(0); ).toFixed(0);
...@@ -1406,9 +1447,14 @@ ...@@ -1406,9 +1447,14 @@
//获取地接项目报价 //获取地接项目报价
getLocalTotalMoney(PeopleNumber) { getLocalTotalMoney(PeopleNumber) {
let totalMoney = 0.0; let totalMoney = 0.0;
totalMoney = Number(this.getDayXiaoJi(1, 2)) + Number(this.getDayXiaoJi(2, 2)) / Number(PeopleNumber) + totalMoney = Number(this.getDayXiaoJi(1, 2))
Number(this.getDayXiaoJi(3, 2)) + Number(this.getDayXiaoJi(4, 2)) + Number(this.getDayXiaoJi(5, 2)) + + Number(this.getDayXiaoJi(3, 2))
Number(this.getDayXiaoJi(6, 2)); + Number(this.getDayXiaoJi(4, 2))
+ Number(this.getDayXiaoJi(5, 2))
+ Number(this.getDayXiaoJi(6, 2))
+ Number(this.getDayXiaoJi(2, 2))/ Number(PeopleNumber)
+ Number(this.getDayXiaoJi(7, 2))/ Number(PeopleNumber)
;
return totalMoney.toFixed(0); return totalMoney.toFixed(0);
}, },
//计算领队分摊 //计算领队分摊
...@@ -1419,12 +1465,15 @@ ...@@ -1419,12 +1465,15 @@
var SingleRoomShareMoney = this.OtherPrice.SingleRoomShareMoney; var SingleRoomShareMoney = this.OtherPrice.SingleRoomShareMoney;
var InlandTrafficShareMoney = this.OtherPrice.InlandTrafficShareMoney; var InlandTrafficShareMoney = this.OtherPrice.InlandTrafficShareMoney;
var OtherShareMoney = this.OtherPrice.OtherShareMoney; var OtherShareMoney = this.OtherPrice.OtherShareMoney;
//司机导游住宿
var LeaderGuideDriveZhuSu=this.OtherPrice.LeaderGuideDriveZhuSu;
this.CostNumberList.forEach(x => { this.CostNumberList.forEach(x => {
x.AirTicketMoney = (AirTicketShareMoney / x.PeopleNumber).toFixed(0); x.AirTicketMoney = (AirTicketShareMoney / x.PeopleNumber).toFixed(0);
x.TicketMoney = (TicketShareMoney / x.PeopleNumber).toFixed(0); x.TicketMoney = (TicketShareMoney / x.PeopleNumber).toFixed(0);
x.SingleRoomMoney = (SingleRoomShareMoney / x.PeopleNumber).toFixed(0); x.SingleRoomMoney = (SingleRoomShareMoney / x.PeopleNumber).toFixed(0);
x.InlandTrafficMoney = (InlandTrafficShareMoney / x.PeopleNumber).toFixed(0); x.InlandTrafficMoney = (InlandTrafficShareMoney / x.PeopleNumber).toFixed(0);
x.OtherMoney = (OtherShareMoney / x.PeopleNumber).toFixed(0); x.OtherMoney = (OtherShareMoney / x.PeopleNumber).toFixed(0);
x.LeaderGuideDriveZhuSu=(LeaderGuideDriveZhuSu / x.PeopleNumber).toFixed(0);
}); });
}, },
getchange() { getchange() {
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
StartCityId: 0, StartCityId: 0,
ReturnArriveCityId: 0, //返回抵达城市 ReturnArriveCityId: 0, //返回抵达城市
CustomerName: "", //客户名称 CustomerName: "", //客户名称
TeamType: 0, //团队类型
}, },
dayCostPriceList: [], //报价列表 dayCostPriceList: [], //报价列表
isSubmit: true, isSubmit: true,
...@@ -81,10 +82,10 @@ ...@@ -81,10 +82,10 @@
InlandTrafficShareMoney: 0, //内陆段交通分摊费用 InlandTrafficShareMoney: 0, //内陆段交通分摊费用
OtherShareMoney: 0, //杂费分摊费用 OtherShareMoney: 0, //杂费分摊费用
OtherRemark: "", //其他价格备注 OtherRemark: "", //其他价格备注
VisaMoneyCurrencyId:0,//签证费币种 VisaMoneyCurrencyId: 0, //签证费币种
SafeMoneyCurrencyId:0,//保险费币种 SafeMoneyCurrencyId: 0, //保险费币种
LeaderTripMoneyCurrencyId:0,//领队小费币种 LeaderTripMoneyCurrencyId: 0, //领队小费币种
DriverGuideMoneyCurrencyId:0,//司机导游小费币种 DriverGuideMoneyCurrencyId: 0, //司机导游小费币种
}, },
CostCurrencyList: [], //选择的币种 CostCurrencyList: [], //选择的币种
CostNumberList: [], //人数 CostNumberList: [], //人数
...@@ -118,6 +119,7 @@ ...@@ -118,6 +119,7 @@
BackSafeMoney: 0, //退保险费 BackSafeMoney: 0, //退保险费
ContractUrl: "", //合同地址 ContractUrl: "", //合同地址
PriceRemark: "", //定价备注 PriceRemark: "", //定价备注
LeaderGuideDriveZhuSu:0,//领队导游住宿费
}, },
LineList: [], //线路列表 LineList: [], //线路列表
loading: false loading: false
...@@ -154,11 +156,10 @@ ...@@ -154,11 +156,10 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
let isfrom = this.$route.query.isNewQuo; if (this.postData.TeamType == 1) {
if(isfrom==1){
this.goUrl('newQuotation');
}else{
this.goUrl('newQuotation2'); this.goUrl('newQuotation2');
} else {
this.goUrl('newQuotation');
} }
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -191,7 +192,7 @@ ...@@ -191,7 +192,7 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log("tempData",tempData); console.log("tempData", tempData);
if (tempData.ID && tempData.ID > 0) { if (tempData.ID && tempData.ID > 0) {
this.postData.ID = tempData.ID; this.postData.ID = tempData.ID;
} }
...@@ -264,9 +265,11 @@ ...@@ -264,9 +265,11 @@
err => {} err => {}
); );
}, },
}, },
created() { created() {
if (this.$route.query.TeamType) {
this.postData.TeamType = this.$route.query.TeamType;
}
this.getPostData(); this.getPostData();
}, },
components: { components: {
......
...@@ -34,9 +34,11 @@ ...@@ -34,9 +34,11 @@
box-shadow: none; box-shadow: none;
color: #555; color: #555;
} }
.BilldownLoadCommon table td{
.BilldownLoadCommon table td {
text-align: left; text-align: left;
} }
</style> </style>
<template> <template>
<div class="flexOne quoTation"> <div class="flexOne quoTation">
...@@ -76,7 +78,7 @@ ...@@ -76,7 +78,7 @@
</li> </li>
<li> <li>
<button class="hollowFixedBtn" @click="getList(),resetPageIndex()">查询</button> <button class="hollowFixedBtn" @click="getList(),resetPageIndex()">查询</button>
<button class="hollowFixedBtn" @click="goMakeQuo('QuotationNewPrice')">新增</button> <button class="hollowFixedBtn" @click="goMakeQuo('QuotationNewPrice',0)">新增</button>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -195,7 +197,7 @@ ...@@ -195,7 +197,7 @@
<i class="iconfont icon-nav-hangzheng"></i> <i class="iconfont icon-nav-hangzheng"></i>
</el-tooltip> </el-tooltip>
</span> </span>
<span class="bianji opbd" @click="goUrl('QuotationNewPrice',item.ID,false)"> <span class="bianji opbd" @click="goMakeQuo('QuotationNewPrice',item.ID)">
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start" <el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start"
popper-class="max-w250"> popper-class="max-w250">
<i class="iconfont icon-bianji-smal"></i> <i class="iconfont icon-bianji-smal"></i>
...@@ -268,7 +270,8 @@ ...@@ -268,7 +270,8 @@
</tbody> </tbody>
<tr height="66"> <tr height="66">
<td colspan="2" style="text-align:center;"> <td colspan="2" style="text-align:center;">
<input type="button" class="normalBtn" style="margin-left:-70px;" :value="$t('pub.sureBtn')" @click="DownLoadFile()" /> <input type="button" class="normalBtn" style="margin-left:-70px;" :value="$t('pub.sureBtn')"
@click="DownLoadFile()" />
</td> </td>
</tr> </tr>
</table> </table>
...@@ -290,7 +293,8 @@ ...@@ -290,7 +293,8 @@
PageIndex: 1, PageIndex: 1,
PageSize: 10, PageSize: 10,
total: 0, total: 0,
currentPage: 1 currentPage: 1,
TeamType: 0, //0常规,1-小包团,2-一日游,3-地接团
}, },
loading: true, loading: true,
//报价单状态 //报价单状态
...@@ -511,70 +515,27 @@ ...@@ -511,70 +515,27 @@
}); });
that.outerVisible = true; that.outerVisible = true;
}, },
goUrl(path, configId, isCopy) { //报价单跳转
var routeName = this.$route.name; goMakeQuo(path, configId) {
var isNewQuo=1;
if (routeName == 'newQuotation') {
isNewQuo=1;
}
if (routeName == 'newQuotation2') {
isNewQuo=2;
}
if (configId > 0) {
this.$router.push({
name: path,
query: {
configId: configId,
isCopy: isCopy,
isNewQuo:isNewQuo,
blank: 'y'
}
});
} else {
this.$router.push({
name: path
});
}
},
goUrlBo(path) {
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
TeamType: this.queryData.TeamType,
configId: configId,
blank: 'y', blank: 'y',
tab: '报价单' tab: '报价单'
} }
}); });
}, },
goMakeQuo(path) {
this.$router.push({
path: path,
query: {
configId: 0,
blank: 'y',
tab: '报价单'
}
});
},
goSubInfo(path, configId) {
this.$store.commit("pageConditionUpdate", this.queryData);
this.$router.push({
path: path,
query: {
configId: configId
}
});
},
//开团或修改 //开团或修改
goToOpenTravel(item) { goToOpenTravel(item) {
var routeName = this.$route.name; var routeName = this.$route.name;
var path=''; var path = '';
if (routeName == 'newQuotation') { if (routeName == 'newQuotation') {
path='TravelManager6' path = 'TravelManager6'
} }
if (routeName == 'newQuotation2') { if (routeName == 'newQuotation2') {
path='TravelManager5' path = 'TravelManager5'
} }
if (item.ID > 0) { if (item.ID > 0) {
this.$router.push({ this.$router.push({
...@@ -618,6 +579,13 @@ ...@@ -618,6 +579,13 @@
}, },
}, },
mounted() { mounted() {
var routeName = this.$route.name;
if (routeName == 'newQuotation') {
this.queryData.TeamType = 3;
}
if (routeName == 'newQuotation2') {
this.queryData.TeamType = 1;
}
this.getLineList(); this.getLineList();
this.getList(); this.getList();
let isNoOffer = this.$route.params.isNoOffer; let isNoOffer = this.$route.params.isNoOffer;
...@@ -626,6 +594,7 @@ ...@@ -626,6 +594,7 @@
} }
}, },
created() { created() {
if (this.$route.query.hasOwnProperty("cache")) { if (this.$route.query.hasOwnProperty("cache")) {
if (this.$store.state.pageCondition != null) { if (this.$store.state.pageCondition != null) {
this.queryData = this.$store.state.pageCondition; this.queryData = this.$store.state.pageCondition;
......
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