Commit c941dfa4 authored by 黄奎's avatar 黄奎

页面修改

parent eeb71875
......@@ -67,16 +67,16 @@
<template>
<div>
<div class="CostNewPrice clearfix CP_Div" style="width:980px;">
<div class="CostNewPrice clearfix CP_Div" style="width:1350px;">
<el-form>
<table class="CostNewTable" style="width:1250px;">
<table class="CostNewTable" style="width:1350px;">
<thead>
<tr>
<td colspan="14" class="CP_ComTitle2 CostcomCenter">报价信息</td>
<td colspan="12" class="CP_ComTitle2 CostcomCenter">报价信息</td>
</tr>
<tr>
<td class="CP_ComTitle2">默认报价单</td>
<td colspan="13">
<td colspan="11">
<el-switch type="textarea" :disabled="!canEdit" v-model="IsDefault"
@change="queryMsg.IsDefault = IsDefault"></el-switch>
</td>
......@@ -89,7 +89,7 @@
<i class="iconfont icon-quxiao" style="display:inline-block;" @click="DeleteCurrency(index)"></i>
</span>
</td>
<td :colspan="14-2-CostCurrencyList.length+1">
<td :colspan="12-2-CostCurrencyList.length+1">
<el-form-item class="w70">
<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'>
......@@ -105,7 +105,7 @@
@keyup.native="checkRate(item,'ExchangeRate'),getchange()">
</el-input>
</td>
<td :colspan="14-2-CostCurrencyList.length+1">
<td :colspan="12-2-CostCurrencyList.length+1">
<el-input class="w70" v-model='queryMsg.RateInput'
@keyup.native="checkRate(queryMsg,'RateInput'),getchange()">
</el-input>
......@@ -120,37 +120,36 @@
<i class="iconfont icon-quxiao" @click="DeletePNumber(index),getchange()"></i>
</span>
</td>
<td :colspan="14-2-CostNumberList.length+1">
<td :colspan="12-2-CostNumberList.length+1">
<el-form-item>
<el-input class="w70" v-model='queryMsg.PeopleNumber'
@keyup.native="checkInteger(queryMsg,'PeopleNumber'),getchange()"></el-input>
<i class="iconfont icon-img_haha" style="cursor:pointer;" @click="addPeoNunber"></i>
</el-form-item>
<div colspan="14" style="color: #f12121;font-weigth: bold;">填入人数后请点击"+"</div>
<div colspan="12" style="color: #f12121;font-weigth: bold;">填入人数后请点击"+"</div>
</td>
</tr>
</thead>
<tr>
</tr>
<tr>
<td rowspan="2" style="width:100px" class="CP_ComTitle2 CostcomCenter">Day</td>
<td rowspan="2" width='80' 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="4" class="CP_ComTitle2 CostcomCenter"></td>
<td rowspan="2" width='80' class="CP_ComTitle2 CostcomCenter">门票</td>
<td colspan="3" class="CP_ComTitle2 CostcomCenter"></td>
<td rowspan="2" width='80' class="CP_ComTitle2 CostcomCenter">回佣<br />(不计入成本)</td>
<td rowspan="2" width='80' class="CP_ComTitle2 CostcomCenter">其它费用<br />(保险、司导杂费等)</td>
<td rowspan="2" style="width:100px" class="CP_ComTitle2 CostcomCenter">行程大点</td>
<td rowspan="2" style="width:100px" class="CP_ComTitle2 CostcomCenter">币种</td>
<td rowspan="2" style="width:270px" class="CP_ComTitle2 CostcomCenter">酒店</td>
<td colspan="2" style="width:100px" class="CP_ComTitle2 CostcomCenter"></td>
<td rowspan="2" style="width:100px" class="CP_ComTitle2 CostcomCenter">门票</td>
<td colspan="3" style="width:100px" class="CP_ComTitle2 CostcomCenter"></td>
<td rowspan="2" style="width:100px" class="CP_ComTitle2 CostcomCenter">回佣<br />(不计入成本)</td>
<td rowspan="2" style="width:100px" class="CP_ComTitle2 CostcomCenter">其它费用<br />(保险、司导杂费等)</td>
</tr>
<tr>
<td width="80" colspan="2" class="CP_ComTitle2 CostcomCenter">总车资</td>
<td width="80" colspan="2" class="CP_ComTitle2 CostcomCenter">过路费</td>
<td width="80" class="CP_ComTitle2 CostcomCenter"></td>
<td width="80" class="CP_ComTitle2 CostcomCenter"></td>
<td width="80" class="CP_ComTitle2 CostcomCenter"></td>
<td style="width:50px" class="CP_ComTitle2 CostcomCenter">总车资</td>
<td style="width:50px" class="CP_ComTitle2 CostcomCenter">过路费</td>
<td style="width:35px" class="CP_ComTitle2 CostcomCenter"></td>
<td style="width:35px" class="CP_ComTitle2 CostcomCenter"></td>
<td style="width:30px" class="CP_ComTitle2 CostcomCenter"></td>
</tr>
<template v-if="CostNumberList&&CostNumberList.length>1" >
<template v-if="CostNumberList&&CostNumberList.length>1">
<template v-for="(subItem,subIndex) in dayCostPrice">
<template v-for="(childItem,childIndex) in CostNumberList">
<tr>
......@@ -171,35 +170,34 @@
</el-form-item>
</td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
<el-select
filterable remote
:remote-method="(query) => remoteSearchAdGroup(query, subItem)"
v-model='subItem.HotelId'
class="w100" placeholder="检索酒店"
:loading="loading"
@change="getHotel(subItem,subItem.HotelId)">
<el-option v-for="(x,index) in subItem.HotelList"
:key="x.ID" :label="x.Name" :value='x.ID'></el-option>
</el-select>
</br/>
<el-select style="margin:0 5px;" v-model='subItem.ContainDinnerType' class="w100" placeholder="含餐类型"
@change="DinnerTypeChange(subItem)">
<el-option label="含餐类型" :value='0'></el-option>
<el-option label="含早餐" :value='1'></el-option>
<el-option label="含晚餐" :value='2'></el-option>
<el-option label="含早晚餐" :value='3'></el-option>
</el-select>
<br />
<el-input type='text' v-model="subItem.HotelCostPrice" class="w100" style="margin-bottom: 5px;"
@keyup.native="checkPrice(subItem,'HotelCostPrice')" placeholder="酒店价格"></el-input>
<br />
<el-form-item label="酒店名称:" style="width:250px;">
<el-select filterable remote :remote-method="(query) => remoteSearchAdGroup(query, subItem)"
v-model='subItem.HotelId' placeholder="请选择酒店" :loading="loading"
@change="getHotel(subItem,subItem.HotelId)">
<el-option v-for="(x) in subItem.HotelList" :key="x.ID" :label="x.Name" :value='x.ID'>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="含餐类型:">
<el-select v-model='subItem.ContainDinnerType' style="width:100px;" placeholder="含餐类型"
@change="DinnerTypeChange(subItem)">
<el-option label="含餐类型" :value='0'></el-option>
<el-option label="含早餐" :value='1'></el-option>
<el-option label="含晚餐" :value='2'></el-option>
<el-option label="含早晚餐" :value='3'></el-option>
</el-select>
</el-form-item>
<el-form-item label="酒店价格:">
<el-input type='text' v-model="subItem.HotelCostPrice" style="width:100px"
@keyup.native="checkPrice(subItem,'HotelCostPrice')" placeholder="酒店价格"></el-input>
</el-form-item>
</td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length" colspan="2">
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
<el-input type='text' v-model="subItem.BusCostPrice" class="w60"
@keyup.native="checkPrice(subItem,'BusCostPrice'),getchange()">
</el-input>
</td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length" colspan="2">
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
<el-input type='text' v-model="subItem.PassFee" class="w60"
@keyup.native="checkPrice(subItem,'PassFee'),getchange()">
</el-input>
......@@ -246,13 +244,12 @@
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(1,1)}}
</td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length" colspan="2">
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(2,1)}}
</td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length" colspan="2">
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(7,1)}}
</td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(3,1)}}
</td>
......@@ -282,13 +279,12 @@
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(1,2)}}
</td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length" colspan="2">
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(2,2)}}
</td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length" colspan="2">
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(7,2)}}
</td>
<td v-if="childIndex==0" :rowspan="CostNumberList.length">
{{getDayXiaoJi(3,2)}}
</td>
......@@ -329,40 +325,38 @@
</el-form-item>
</td>
<td>
<el-select
filterable remote
:remote-method="(query) => remoteSearchAdGroup(query, subItem)"
v-model='subItem.HotelId'
class="w100" placeholder="检索酒店"
:loading="loading"
<el-form-item label="酒店名称:" style="width:250px;">
<el-select filterable remote :remote-method="(query) => remoteSearchAdGroup(query, subItem)"
v-model='subItem.HotelId' placeholder="请选择酒店" :loading="loading"
@change="getHotel(subItem,subItem.HotelId)">
<el-option v-for="(x,index) in subItem.HotelList"
:key="x.ID" :label="x.Name" :value='x.ID'></el-option>
</el-select>
</br/>
<el-select v-model='subItem.ContainDinnerType' class="w100" placeholder="含餐类型"
@change="DinnerTypeChange(subItem)">
<el-option label="含餐类型" :value='0'></el-option>
<el-option label="含早餐" :value='1'></el-option>
<el-option label="含晚餐" :value='2'></el-option>
<el-option label="含早晚餐" :value='3'></el-option>
</el-select>
<br />
<el-input type='text' v-model="subItem.HotelCostPrice" class="w100" style="margin-bottom: 5px;"
@keyup.native="checkPrice(subItem,'HotelCostPrice'),getchange()" placeholder="酒店价格"></el-input>
<br />
<el-option v-for="(x) in subItem.HotelList" :key="x.ID" :label="x.Name" :value='x.ID'>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="含餐类型:">
<el-select v-model='subItem.ContainDinnerType' style="width:100px;" placeholder="含餐类型"
@change="DinnerTypeChange(subItem)">
<el-option label="含餐类型" :value='0'></el-option>
<el-option label="含早餐" :value='1'></el-option>
<el-option label="含晚餐" :value='2'></el-option>
<el-option label="含早晚餐" :value='3'></el-option>
</el-select>
</el-form-item>
<el-form-item label="酒店价格:">
<el-input type='text' v-model="subItem.HotelCostPrice" style="width:100px"
@keyup.native="checkPrice(subItem,'HotelCostPrice')" placeholder="酒店价格"></el-input>
</el-form-item>
</td>
<td colspan="2">
<td>
<el-input type='text' v-model="subItem.BusCostPrice" class="w60"
@keyup.native="checkPrice(subItem,'BusCostPrice'),getchange()">
</el-input>
</td>
<td colspan="2">
<td>
<el-input type='text' v-model="subItem.PassFee" class="w60"
@keyup.native="checkPrice(subItem,'PassFee'),getchange()">
</el-input>
</td>
<td>
<el-input type='text' v-model="subItem.ScenicCostPrice" class="w60"
@keyup.native="checkPrice(subItem,'ScenicCostPrice'),getchange()"></el-input>
......@@ -400,10 +394,10 @@
<td>
{{getDayXiaoJi(1,1)}}
</td>
<td colspan="2">
<td>
{{getDayXiaoJi(2,1)}}
</td>
<td colspan="2">
<td>
{{getDayXiaoJi(7,1)}}
</td>
<td>
......@@ -432,13 +426,12 @@
<td>
{{getDayXiaoJi(1,2)}}
</td>
<td colspan="2">
<td>
{{getDayXiaoJi(2,2)}}
</td>
<td colspan="2">
<td>
{{getDayXiaoJi(7,2)}}
</td>
<td>
{{getDayXiaoJi(3,2)}}
</td>
......@@ -460,11 +453,11 @@
</tr>
</template>
<tr>
<td colspan="14"></td>
<td colspan="12"></td>
</tr>
<tr>
<td class="CP_ComTitle2" colspan="7">交通部分</td>
<td class="CP_ComTitle2" colspan="7">杂支部分</td>
<td class="CP_ComTitle2" colspan="6">交通部分</td>
<td class="CP_ComTitle2" colspan="6">杂支部分</td>
</tr>
<tr>
<td class="CP_ComTitle2 CostcomCenter">1</td>
......@@ -479,9 +472,9 @@
</el-select>
</el-form-item>
</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w100" v-model="OtherPrice.InlandAirTicketMoney"
<el-input type='text' class="w70" v-model="OtherPrice.InlandAirTicketMoney"
@keyup.native="checkPrice(OtherPrice,'InlandAirTicketMoney'),getchange()"></el-input>
</el-form-item>
</td>
......@@ -497,9 +490,9 @@
</el-select>
</el-form-item>
</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w100" v-model="OtherPrice.VisaMoney"
<el-input type='text' class="w70" v-model="OtherPrice.VisaMoney"
@keyup.native="checkPrice(OtherPrice,'VisaMoney'),getchange()"></el-input>
</el-form-item>
</td>
......@@ -517,9 +510,9 @@
</el-select>
</el-form-item>
</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w100" v-model="OtherPrice.InlandShipTicketMoney"
<el-input type='text' class="w70" v-model="OtherPrice.InlandShipTicketMoney"
@keyup.native="checkPrice(OtherPrice,'InlandShipTicketMoney'),getchange()"></el-input>
</el-form-item>
</td>
......@@ -535,9 +528,9 @@
</el-select>
</el-form-item>
</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w100" v-model="OtherPrice.SafeMoney"
<el-input type='text' class="w70" v-model="OtherPrice.SafeMoney"
@keyup.native="checkPrice(OtherPrice,'SafeMoney'),getchange()"></el-input>
</el-form-item>
</td>
......@@ -555,9 +548,9 @@
</el-select>
</el-form-item>
</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w100" v-model="OtherPrice.InlandTrainTicketMoney"
<el-input type='text' class="w70" v-model="OtherPrice.InlandTrainTicketMoney"
@keyup.native="checkPrice(OtherPrice,'InlandTrainTicketMoney'),getchange()"></el-input>
</el-form-item>
</td>
......@@ -573,9 +566,9 @@
</el-select>
</el-form-item>
</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w100" v-model="OtherPrice.LeaderTripMoney"
<el-input type='text' class="w70" v-model="OtherPrice.LeaderTripMoney"
@keyup.native="checkPrice(OtherPrice,'LeaderTripMoney'),getchange()"></el-input>
</el-form-item>
</td>
......@@ -593,9 +586,9 @@
</el-select>
</el-form-item>
</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w100" v-model="OtherPrice.InternationalAirTicket"
<el-input type='text' class="w70" v-model="OtherPrice.InternationalAirTicket"
@keyup.native="checkPrice(OtherPrice,'InternationalAirTicket'),getchange()"></el-input>
</el-form-item>
</td>
......@@ -611,15 +604,15 @@
</el-select>
</el-form-item>
</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w100" v-model="OtherPrice.DriverGuideMoney"
<el-input type='text' class="w70" v-model="OtherPrice.DriverGuideMoney"
@keyup.native="checkPrice(OtherPrice,'DriverGuideMoney'),getchange()"></el-input>
</el-form-item>
</td>
</tr>
<tr>
<td colspan="7"></td>
<td colspan="6"></td>
<td class="CP_ComTitle2 CostcomCenter">5</td>
<td class="CP_ComTitle2">导游小费(每人)</td>
<td colspan="2">
......@@ -632,9 +625,9 @@
</el-select>
</el-form-item>
</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w100" v-model="OtherPrice.GuideMoney"
<el-input type='text' class="w70" v-model="OtherPrice.GuideMoney"
@keyup.native="checkPrice(OtherPrice,'GuideMoney'),getchange()"></el-input>
</el-form-item>
</td>
......@@ -643,13 +636,13 @@
<td class="CP_ComTitle2">
外币小计
</td>
<td colspan="6">
<td colspan="5">
{{trafficXiaoJi(2)}}
</td>
<td class="CP_ComTitle2">
外币小计
</td>
<td colspan="6">
<td colspan="5">
{{zazhiXiaoJi(2)}}
</td>
</tr>
......@@ -657,51 +650,51 @@
<td class="CP_ComTitle2">
人民币小计
</td>
<td colspan="6">
<td colspan="5">
{{ trafficXiaoJi(1) }}
</td>
<td class="CP_ComTitle2">
人民币小计
</td>
<td colspan="6">
<td colspan="5">
{{zazhiXiaoJi(1)}}
</td>
</tr>
<tr>
<td colspan="14"></td>
<td colspan="12"></td>
</tr>
<tr>
<td class="CP_ComTitle2" colspan="4">其他支出</td>
<td class="CP_ComTitle2" colspan="5">收入</td>
<td class="CP_ComTitle2" colspan="5">团负费</td>
<td class="CP_ComTitle2" colspan="4">收入</td>
<td class="CP_ComTitle2" colspan="4">团负费</td>
</tr>
<tr>
<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="3">金额(人民币)</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="2">金额(人民币)</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="2">摘要</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="3">金额(人民币)</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="2">金额(人民币)</td>
</tr>
<tr>
<td class="CP_ComTitle2" colspan="2">销售提成1%</td>
<td colspan="2">
<el-form-item>
<el-input type='text' class="w120" v-model="OtherPrice.SalesCommissionMoney"
<el-input type='text' class="w70" v-model="OtherPrice.SalesCommissionMoney"
@keyup.native="checkPrice(OtherPrice,'SalesCommissionMoney'),getchange()"></el-input>
</el-form-item>
</td>
<td class="CP_ComTitle2" colspan="2">客人小费收入</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w120" v-model="OtherPrice.TripMoney"
<el-input type='text' class="w70" v-model="OtherPrice.TripMoney"
@keyup.native="checkPrice(OtherPrice,'TripMoney',true),getchange()"></el-input>
</el-form-item>
</td>
<td class="CP_ComTitle2" colspan="2">KB</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w120" v-model="OtherPrice.KBMoney"
<el-input type='text' class="w70" v-model="OtherPrice.KBMoney"
@keyup.native="checkPrice(OtherPrice,'KBMoney',true),getchange()"></el-input>
</el-form-item>
</td>
......@@ -710,18 +703,18 @@
<td class="CP_ComTitle2" colspan="2">作业处提成</td>
<td colspan="2">
<el-form-item>
<el-input type='text' class="w120" v-model="OtherPrice.OfficeCommissionMoney"
<el-input type='text' class="w70" v-model="OtherPrice.OfficeCommissionMoney"
@keyup.native="checkPrice(OtherPrice,'OfficeCommissionMoney'),getchange()"></el-input>
</el-form-item>
</td>
<td class="CP_ComTitle2" colspan="2">导游人头费</td>
<td colspan="3">
<td colspan="2">
<el-form-item>
<el-input type='text' class="w120" v-model="OtherPrice.GuidePeopleMoney"
<el-input type='text' class="w70" v-model="OtherPrice.GuidePeopleMoney"
@keyup.native="checkPrice(OtherPrice,'GuidePeopleMoney'),getchange()"></el-input>
</el-form-item>
</td>
<td colspan="5"></td>
<td colspan="4"></td>
</tr>
<tr>
<td class="CP_ComTitle2" colspan="2">
......@@ -733,27 +726,27 @@
<td class="CP_ComTitle2" colspan="2">
人民币小计
</td>
<td colspan="3">
<td colspan="2">
{{Number(OtherPrice.TripMoney)+Number(OtherPrice.GuidePeopleMoney)}}
</td>
<td class="CP_ComTitle2" colspan="2">
人民币小计
</td>
<td colspan="3">
<td colspan="2">
{{Number(OtherPrice.KBMoney)}}
</td>
</tr>
<tr>
<td colspan="14"></td>
<td colspan="12"></td>
</tr>
<tr>
<td colspan="14" class="CP_ComTitle2">领队分摊部分
<td colspan="12" class="CP_ComTitle2">领队分摊部分
</td>
</tr>
<tr>
<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">机票</td>
<td class="CP_ComTitle2 CostcomCenter">门票</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="2">领队导游司机住宿</td>
<td class="CP_ComTitle2 CostcomCenter">单房差</td>
<td class="CP_ComTitle2 CostcomCenter" colspan="2">内陆段交通</td>
......@@ -762,13 +755,13 @@
</tr>
<tr>
<td></td>
<td colspan="2">
<td>
<el-form-item>
<el-input type='text' class="w120" v-model="OtherPrice.AirTicketShareMoney"
<el-input type='text' class="w70" v-model="OtherPrice.AirTicketShareMoney"
@keyup.native="checkPrice(OtherPrice,'AirTicketShareMoney'),getchange()"></el-input>
</el-form-item>
</td>
<td colspan="2">
<td>
<el-form-item>
<el-input type='text' class="w70" v-model="OtherPrice.TicketShareMoney"
@keyup.native="checkPrice(OtherPrice,'TicketShareMoney'),getchange()"></el-input>
......@@ -802,8 +795,8 @@
</tr>
<tr v-for="item in CostNumberList" :key="item.subCode">
<td>{{item.PeopleNumber}}+1</td>
<td colspan="2">{{item.AirTicketMoney}}</td>
<td colspan="2">{{item.TicketMoney}}</td>
<td>{{item.AirTicketMoney}}</td>
<td>{{item.TicketMoney}}</td>
<td colspan="2">{{item.LeaderGuideDriveZhuSu}}</td>
<td>{{item.SingleRoomMoney}}</td>
<td colspan="2">{{item.InlandTrafficMoney}}</td>
......@@ -811,15 +804,15 @@
<td colspan="2">{{item.SubtotalMoney}}</td>
</tr>
<tr>
<td colspan="14"></td>
<td colspan="12"></td>
</tr>
<tr>
<td colspan="14" class="CP_ComTitle2">成本回扣
<td colspan="12" class="CP_ComTitle2">成本回扣
</td>
</tr>
<tr>
<td>导游回补</td>
<td colspan="13">
<td colspan="11">
<el-form-item>
<el-input type='text' class="w70" v-model="OtherPrice.GuideComplement"
@keyup.native="checkPrice(OtherPrice,'GuideComplement'),getchange()">></el-input>
......@@ -828,7 +821,7 @@
</tr>
<tr>
<td>小费回补</td>
<td colspan="13">
<td colspan="11">
<el-form-item>
<el-input type='text' class="w70" v-model="OtherPrice.TipComplement"
@keyup.native="checkPrice(OtherPrice,'TipComplement'),getchange()"></el-input>
......@@ -836,10 +829,10 @@
</td>
</tr>
<tr>
<td colspan="14"></td>
<td colspan="12"></td>
</tr>
<tr>
<td colspan="14" class="CP_ComTitle2">成本统计(以下报价为每人费用)<br />
<td colspan="12" class="CP_ComTitle2">成本统计(以下报价为每人费用)<br />
计算规则: (房+餐+车+景点)*汇率+内陆段交通*汇率+杂支部分*汇率+其他资产+机票票+收入-团负费+领队分摊+地接报价*汇率-导游回补-小费回补
</td>
</tr>
......@@ -889,7 +882,7 @@
@keyup.native="checkPrice(item,'JPYSalePrice',true)" maxlength="8"></el-input>
</td>
<td>
<el-select style="width:100%" v-model="postConfig.SaleOfferPayType" :placeholder="$t('pub.pleaseSel')"
<el-select sclass="w70" v-model="postConfig.SaleOfferPayType" :placeholder="$t('pub.pleaseSel')"
filterable>
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="item in payTypeList" :label='item.label' :value='item.value' :key='item.value'>
......@@ -901,8 +894,7 @@
@keyup.native="checkPrice(item,'ShouPeiFee',true)" maxlength="8"></el-input>
</td>
<td>
<el-select style="width:100%" v-model="postConfig.OfferPayType" :placeholder="$t('pub.pleaseSel')"
filterable>
<el-select class="w70" v-model="postConfig.OfferPayType" :placeholder="$t('pub.pleaseSel')" filterable>
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="item in payTypeList" :label='item.label' :value='item.value' :key='item.value'>
</el-option>
......@@ -913,7 +905,7 @@
</td>
</tr>
<tr>
<td colspan="14"></td>
<td colspan="12"></td>
</tr>
<tr>
<td class="CP_ComTitle2">
......@@ -922,10 +914,10 @@
<td class="CP_ComTitle2">
单地接
</td>
<td class="CP_ComTitle2" colspan="2">
<td class="CP_ComTitle2">
儿童占床
</td>
<td class="CP_ComTitle2" colspan="2">
<td class="CP_ComTitle2">
儿童不占床
</td>
<td class="CP_ComTitle2" colspan="2">
......@@ -952,12 +944,12 @@
@keyup.native="checkPrice(teamPrice,'SingleDMCPrice')" class="w70">
</el-input>
</td>
<td colspan="2">
<td>
<el-input placeholder="" v-model="teamPrice.ChildNeedPrice"
@keyup.native="checkInteger(teamPrice,'ChildNeedPrice')" class="w70">
</el-input>
</td>
<td colspan="2">
<td>
<el-input placeholder="" v-model="teamPrice.ChildNoNeedPrice"
@keyup.native="checkInteger(teamPrice,'ChildNoNeedPrice')" class="w70">
</el-input>
......@@ -985,7 +977,7 @@
</tr>
<tr>
<td class="CP_ComTitle2">附件</td>
<td colspan="13">
<td colspan="12">
<el-upload v-if="!teamPrice.ContractArray || !teamPrice.ContractArray.length" class="upload-demo"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
:show-file-list="false" action="">
......@@ -1036,31 +1028,31 @@
value: 3,
label: '外站自理'
}, ],
HotelName: null,//酒店下拉
HotelName: null, //酒店下拉
loading: false
}
},
methods: {
// 获取酒店名称
getHotel(subItem,HotelId){
subItem.HotelList.forEach(x=>{
if(x.ID==HotelId){
getHotel(subItem, HotelId) {
subItem.HotelList.forEach(x => {
if (x.ID == HotelId) {
subItem.HotelName = x.Name
}
})
this.$forceUpdate()
},
remoteSearchAdGroup(query,subItem) {
remoteSearchAdGroup(query, subItem) {
if (query !== '') {
this.loading = true;
this.initHotel(query,subItem)
this.initHotel(query, subItem)
} else {
subItem.HotelList = []
this.HotelName = [];
}
},
//初始化酒店列表
initHotel(query,subItem,day) {
initHotel(query, subItem, day) {
this.apipost(
"hotel_post_GetList", {
Name: query
......@@ -1068,18 +1060,18 @@
res => {
this.loading = false
if (res.data.resultCode == 1) {
if(day==null){
for(let i=0;i<this.dayCostPrice.length;i++){
if(!this.dayCostPrice[i].HotelList||this.dayCostPrice[i].HotelList.length==0){
if (day == null) {
for (let i = 0; i < this.dayCostPrice.length; i++) {
if (!this.dayCostPrice[i].HotelList || this.dayCostPrice[i].HotelList.length == 0) {
this.dayCostPrice[i].HotelList = res.data.data
}
}
if(subItem&&(subItem.HotelList||subItem.HotelList.length>0)){
if (subItem && (subItem.HotelList || subItem.HotelList.length > 0)) {
subItem.HotelList = res.data.data
// subItem.HotelId = null
// subItem.HotelName = ''
}
}else if(day!=null){
} else if (day != null) {
this.dayCostPrice[day].HotelList = res.data.data
}
this.$forceUpdate()
......@@ -1436,8 +1428,8 @@
DinnerCostPrice: 0, //晚餐报价
ContainDinnerType: 0, //含餐类型(1-含早餐,2-含晚餐,3-含早晚)
PassFee: 0, //过路费
HotelList: [],//酒店下拉
HotelId: null,//酒店ID
HotelList: [], //酒店下拉
HotelId: null, //酒店ID
HotelName: "", //酒店名称
RebatePrice: 0, //回佣
OtherPrice: 0, //其它费用(保险、司导杂费等)
......@@ -1709,21 +1701,21 @@
dayCostPrice: {
handler(val, oldVal) {
// 初始化酒店
setTimeout(()=>{
if(this.dayCostPrice&&this.dayCostPrice.length>0){
let arrList = function(list){
list.forEach(x=>{
setTimeout(() => {
if (this.dayCostPrice && this.dayCostPrice.length > 0) {
let arrList = function (list) {
list.forEach(x => {
x.HotelList = []
})
}
arrList(this.dayCostPrice)
for(let i=0;i<this.dayCostPrice.length;i++){
if(this.dayCostPrice[i].HotelName!=''){
this.initHotel(this.dayCostPrice[i].HotelName,this.dayCostPrice[i],i)
for (let i = 0; i < this.dayCostPrice.length; i++) {
if (this.dayCostPrice[i].HotelName != '') {
this.initHotel(this.dayCostPrice[i].HotelName, this.dayCostPrice[i], i)
}
}
}
},100)
}, 100)
},
deep: true,
}
......
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