Commit 5258ba63 authored by 黄奎's avatar 黄奎

团控代码优化

parent a8b8f5ec
...@@ -328,14 +328,12 @@ ...@@ -328,14 +328,12 @@
<ul> <ul>
<li> <li>
<i class="arrow monthminus" @click="currentYear-=1,getDateString(),initCalendar(dateString)">&lt;</i> <i class="arrow monthminus" @click="currentYear-=1,getDateString(),initCalendar(dateString)">&lt;</i>
<input type="text" v-model="currentYear" disabled class="currentInput" <input type="text" v-model="currentYear" disabled class="currentInput" @input="getDateString(),initCalendar(dateString)">
@input="getDateString(),initCalendar(dateString)">
<i class="arrow monthadd" @click="currentYear+=1,getDateString(),initCalendar(dateString)">&gt;</i> <i class="arrow monthadd" @click="currentYear+=1,getDateString(),initCalendar(dateString)">&gt;</i>
</li> </li>
<li> <li>
<i class="arrow monthminus" @click="pickPre(currentYear,currentMonth)">&lt;</i> <i class="arrow monthminus" @click="pickPre(currentYear,currentMonth)">&lt;</i>
<input type="text" v-model="currentMonth" disabled class="currentInput" <input type="text" v-model="currentMonth" disabled class="currentInput" @input="getDateString(),initCalendar(dateString)">
@input="getDateString(),initCalendar(dateString)">
<i class="arrow monthadd" @click="pickNext(currentYear,currentMonth)">&gt;</i> <i class="arrow monthadd" @click="pickNext(currentYear,currentMonth)">&gt;</i>
</li> </li>
</ul> </ul>
...@@ -354,10 +352,8 @@ ...@@ -354,10 +352,8 @@
<ul class="days"> <ul class="days">
<li class="liList" v-for="(dayobject,index) in days" :key="dayobject.subCode"> <li class="liList" v-for="(dayobject,index) in days" :key="dayobject.subCode">
<span v-if="dayobject.checkState==$calendarUtils.checkState.noChecked" class="other-month">{{dayobject.day.getDate()}}</span> <span v-if="dayobject.checkState==$calendarUtils.checkState.noChecked" class="other-month">{{dayobject.day.getDate()}}</span>
<span v-if="dayobject.checkState==$calendarUtils.checkState.checked" class="checked1" <span v-if="dayobject.checkState==$calendarUtils.checkState.checked" class="checked1" @click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
@click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span> <span v-else-if="dayobject.checkState==$calendarUtils.checkState.hasValue" @click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
<span v-else-if="dayobject.checkState==$calendarUtils.checkState.hasValue"
@click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -376,8 +372,7 @@ ...@@ -376,8 +372,7 @@
<i class="iconfont icon-previewleft"></i> <i class="iconfont icon-previewleft"></i>
</span> </span>
<div class="TP_childContent"> <div class="TP_childContent">
<span class="TP_tips" :class="{'ckedSpan':item.Checked}" @click="getDateInfo(item)" <span class="TP_tips" :class="{'ckedSpan':item.Checked}" @click="getDateInfo(item)" v-for="(item,index) in showPriceList"
v-for="(item,index) in showPriceList"
:key="index"> :key="index">
{{item.StartDate}} {{item.StartDate}}
<span class="TP_cancel" @click.stop="delDateList(item)"> <span class="TP_cancel" @click.stop="delDateList(item)">
...@@ -401,47 +396,40 @@ ...@@ -401,47 +396,40 @@
</div> </div>
<div class="TPright"> <div class="TPright">
<div class="TP_noneed"> <div class="TP_noneed">
<el-checkbox v-model="priceData.IsSupportChildren" <el-checkbox v-model="priceData.IsSupportChildren" :true-label="CheckedVaule" :false-label="UnCheckedVaule">支持儿童出游
:true-label="CheckedVaule" :false-label="UnCheckedVaule">支持儿童出游
</el-checkbox> </el-checkbox>
<el-checkbox v-model="priceData.IsBookTeam" style="display:none" <el-checkbox v-model="priceData.IsBookTeam" style="display:none" :true-label="CheckedVaule"
:true-label="CheckedVaule" :false-label="UnCheckedVaule">订团 :false-label="UnCheckedVaule">订团
</el-checkbox> </el-checkbox>
<input type="button" class="normalBtn" style="display:none;" value="酒店使用情况" @click="outerVisible=true"/> <input type="button" class="normalBtn" style="display:none;" value="酒店使用情况" @click="outerVisible=true" />
</div> </div>
<el-form-item prop="B2BMemberPrice"> <el-form-item prop="B2BMemberPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BMemberPrice" @keyup.native="checkPrice(priceData,'B2BMemberPrice')">
@keyup.native="checkPrice(priceData,'B2BMemberPrice')">
<template slot="prepend">同行会员</template> <template slot="prepend">同行会员</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="B2BPrice"> <el-form-item prop="B2BPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2BPrice" @keyup.native="checkPrice(priceData,'B2BPrice')">
@keyup.native="checkPrice(priceData,'B2BPrice')">
<template slot="prepend">同行</template> <template slot="prepend">同行</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="B2CMemberPrice"> <el-form-item prop="B2CMemberPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2CMemberPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2CMemberPrice" @keyup.native="checkPrice(priceData,'B2CMemberPrice')">
@keyup.native="checkPrice(priceData,'B2CMemberPrice')">
<template slot="prepend">直客会员</template> <template slot="prepend">直客会员</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="B2CPrice"> <el-form-item prop="B2CPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2CPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.B2CPrice" @keyup.native="checkPrice(priceData,'B2CPrice')">
@keyup.native="checkPrice(priceData,'B2CPrice')">
<template slot="prepend">直客</template> <template slot="prepend">直客</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="BabyPrice"> <el-form-item prop="BabyPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.BabyPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.BabyPrice" @keyup.native="checkInteger(priceData,'BabyPrice')">
@keyup.native="checkInteger(priceData,'BabyPrice')">
<template slot="prepend">婴儿</template> <template slot="prepend">婴儿</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.SingleDMCPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.SingleDMCPrice" @keyup.native="checkPrice(priceData,'SingleDMCPrice')">
@keyup.native="checkPrice(priceData,'SingleDMCPrice')">
<template slot="prepend">单地接</template> <template slot="prepend">单地接</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -454,14 +442,12 @@ ...@@ -454,14 +442,12 @@
</div> </div>
<div class="TPright"> <div class="TPright">
<el-form-item prop="ChildNeedPrice"> <el-form-item prop="ChildNeedPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.ChildNeedPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.ChildNeedPrice" @keyup.native="checkInteger(priceData,'ChildNeedPrice')">
@keyup.native="checkInteger(priceData,'ChildNeedPrice')">
<template slot="prepend">儿童占床</template> <template slot="prepend">儿童占床</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="BabyChargePrice"> <el-form-item prop="BabyChargePrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.BabyChargePrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.BabyChargePrice" @keyup.native="checkPrice(priceData,'BabyChargePrice')">
@keyup.native="checkPrice(priceData,'BabyChargePrice')">
<template slot="prepend">儿童附加费</template> <template slot="prepend">儿童附加费</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -472,26 +458,22 @@ ...@@ -472,26 +458,22 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="VisaPrice"> <el-form-item prop="VisaPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.VisaPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.VisaPrice" @keyup.native="checkPrice(priceData,'VisaPrice')">
@keyup.native="checkPrice(priceData,'VisaPrice')">
<template slot="prepend">签证费</template> <template slot="prepend">签证费</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="SingleRoomPrice"> <el-form-item prop="SingleRoomPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.SingleRoomPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.SingleRoomPrice" @keyup.native="checkPrice(priceData,'SingleRoomPrice')">
@keyup.native="checkPrice(priceData,'SingleRoomPrice')">
<template slot="prepend">单房差</template> <template slot="prepend">单房差</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="SafeMoney"> <el-form-item prop="SafeMoney">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.SafeMoney" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.SafeMoney" @keyup.native="checkInteger(priceData,'SafeMoney')">
@keyup.native="checkInteger(priceData,'SafeMoney')">
<template slot="prepend">保险</template> <template slot="prepend">保险</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="OtherPrice"> <el-form-item prop="OtherPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.OtherPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.OtherPrice" @keyup.native="checkPrice(priceData,'OtherPrice')">
@keyup.native="checkPrice(priceData,'OtherPrice')">
<template slot="prepend">杂费</template> <template slot="prepend">杂费</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -504,27 +486,23 @@ ...@@ -504,27 +486,23 @@
</div> </div>
<div class="TPright"> <div class="TPright">
<el-form-item prop="ChildNoNeedPrice"> <el-form-item prop="ChildNoNeedPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.ChildNoNeedPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.ChildNoNeedPrice" @keyup.native="checkInteger(priceData,'ChildNoNeedPrice')">
@keyup.native="checkInteger(priceData,'ChildNoNeedPrice')">
<template slot="prepend">儿童不占床</template> <template slot="prepend">儿童不占床</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="BackVisaPrice"> <el-form-item prop="BackVisaPrice">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.BackVisaPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.BackVisaPrice" @keyup.native="checkInteger(priceData,'BackVisaPrice')">
@keyup.native="checkInteger(priceData,'BackVisaPrice')">
<template slot="prepend">退签证费</template> <template slot="prepend">退签证费</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item style="display:none;"> <el-form-item style="display:none;">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.RebatePrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.RebatePrice" @keyup.native="checkPrice(priceData,'RebatePrice')">
@keyup.native="checkPrice(priceData,'RebatePrice')">
<template slot="prepend">同行返佣</template> <template slot="prepend">同行返佣</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item style="display:none;"> <el-form-item style="display:none;">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.DiscountPrice" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.DiscountPrice" @keyup.native="checkPrice(priceData,'DiscountPrice')">
@keyup.native="checkPrice(priceData,'DiscountPrice')">
<template slot="prepend">早鸟优惠</template> <template slot="prepend">早鸟优惠</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -537,43 +515,37 @@ ...@@ -537,43 +515,37 @@
</div> </div>
<div class="TPright clearfix"> <div class="TPright clearfix">
<el-form-item prop="ClearOrderHour"> <el-form-item prop="ClearOrderHour">
<el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.ClearOrderHour" <el-input placeholder="请输入" class="w190 ComSeat" v-model="priceData.ClearOrderHour" @keyup.native="checkInteger(priceData,'ClearOrderHour')"
@keyup.native="checkInteger(priceData,'ClearOrderHour')"
@blur="checkInteger(priceData,'ClearOrderHour')"> @blur="checkInteger(priceData,'ClearOrderHour')">
<template slot="prepend">自动清位</template> <template slot="prepend">自动清位</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<span class="TP_Sendprepend">送签时间</span> <span class="TP_Sendprepend">送签时间</span>
<el-form-item prop="SendVisaTime" style="margin-top:1px;"> <el-form-item prop="SendVisaTime" style="margin-top:1px;">
<el-date-picker clearable class="w150" v-model="priceData.SendVisaTime" type="date" <el-date-picker clearable class="w150" v-model="priceData.SendVisaTime" type="date" value-format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
:placeholder="$t('admin.admin_choDate')"></el-date-picker> :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item prop="OutBranchId" style="margin-top:1px;"> <el-form-item prop="OutBranchId" style="margin-top:1px;">
<span class="TP_Sendprepend" style="margin:3px -1px 0 0">出团公司</span> <span class="TP_Sendprepend" style="margin:3px -1px 0 0">出团公司</span>
<el-select class="w180" v-model="priceData.OutBranchId"> <el-select class="w180" v-model="priceData.OutBranchId">
<el-option :label="$t('pub.unlimitedSel')" :value="SelectOtherDefault"></el-option> <el-option :label="$t('pub.unlimitedSel')" :value="SelectOtherDefault"></el-option>
<el-option v-for="item in companyList" :key="item.id" :label="item.bName" <el-option v-for="item in companyList" :key="item.id" :label="item.bName" :value="item.id"></el-option>
:value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
<div class="TPright clearfix"> <div class="TPright clearfix">
<el-form-item prop="YSeat"> <el-form-item prop="YSeat">
<el-input placeholder="人数" class="w190" v-model="priceData.YSeat" <el-input placeholder="人数" class="w190" v-model="priceData.YSeat" @keyup.native="checkInteger(priceData,'YSeat')">
@keyup.native="checkInteger(priceData,'YSeat')">
<template slot="prepend">经济舱/上铺</template> <template slot="prepend">经济舱/上铺</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="CSeat"> <el-form-item prop="CSeat">
<el-input placeholder="人数" class="w260" v-model="priceData.CSeat" <el-input placeholder="人数" class="w260" v-model="priceData.CSeat" @keyup.native="checkInteger(priceData,'CSeat')">
@keyup.native="checkInteger(priceData,'CSeat')">
<template slot="prepend">商务舱/中铺</template> <template slot="prepend">商务舱/中铺</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="FSeat"> <el-form-item prop="FSeat">
<el-input placeholder="人数" class="w290" v-model="priceData.FSeat" <el-input placeholder="人数" class="w290" v-model="priceData.FSeat" @keyup.native="checkInteger(priceData,'FSeat')">
@keyup.native="checkInteger(priceData,'FSeat')">
<template slot="prepend">头等舱/下铺</template> <template slot="prepend">头等舱/下铺</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -588,7 +560,8 @@ ...@@ -588,7 +560,8 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-input placeholder="可销售机票数量" class="w290" v-model="priceData.CanSellTicketNum" maxlength="2" @keyup.native="checkInteger(priceData,'CanSellTicketNum')" @change="CheckSellTicketNum(priceData)"> <el-input placeholder="可销售机票数量" class="w290" v-model="priceData.CanSellTicketNum" maxlength="2"
@keyup.native="checkInteger(priceData,'CanSellTicketNum')" @change="CheckSellTicketNum(priceData)">
<template slot="prepend">可销售机票数量</template> <template slot="prepend">可销售机票数量</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
...@@ -607,8 +580,7 @@ ...@@ -607,8 +580,7 @@
<el-form-item> <el-form-item>
<span class="TP_Sendprepend" style="margin-left:0;width:120px;">销售状态</span> <span class="TP_Sendprepend" style="margin-left:0;width:120px;">销售状态</span>
<el-select class="w180" v-model="priceData.TCSaleState"> <el-select class="w180" v-model="priceData.TCSaleState">
<el-option v-for="item in TeamList" :key="item.Id" :label="item.name" <el-option v-for="item in TeamList" :key="item.Id" :label="item.name" :value="item.Id"></el-option>
:value="item.Id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -632,12 +604,10 @@ ...@@ -632,12 +604,10 @@
<div> <div>
<div style="margin-bottom:20px;"> <div style="margin-bottom:20px;">
开始日期 开始日期
<el-date-picker class="w150" type="date" v-model="QFlightDateStart" <el-date-picker class="w150" type="date" v-model="QFlightDateStart" :picker-options="pickerBeginDateBefore"
:picker-options="pickerBeginDateBefore"
value-format="yyyy-MM-dd" placeholder></el-date-picker> value-format="yyyy-MM-dd" placeholder></el-date-picker>
结束日期 结束日期
<el-date-picker class="w150" type="date" v-model="QFlightDateEnd" <el-date-picker class="w150" type="date" v-model="QFlightDateEnd" :picker-options="pickerBeginDateAfter"
:picker-options="pickerBeginDateAfter"
value-format="yyyy-MM-dd" placeholder></el-date-picker> value-format="yyyy-MM-dd" placeholder></el-date-picker>
<button class="normalBtn" @click.stop="getSelectFilght()">查询</button> <button class="normalBtn" @click.stop="getSelectFilght()">查询</button>
</div> </div>
...@@ -665,8 +635,7 @@ ...@@ -665,8 +635,7 @@
<td>{{fitem.PNR}}</td> <td>{{fitem.PNR}}</td>
<td>{{fitem.UseAmount}} / {{fitem.RemainNum}}</td> <td>{{fitem.UseAmount}} / {{fitem.RemainNum}}</td>
<td> <td>
<el-input class="w80" placeholder="机位数" @keyup.native="getFlightBindNum(fitem)" <el-input class="w80" placeholder="机位数" @keyup.native="getFlightBindNum(fitem)" v-model="fitem.BindNum"></el-input>
v-model="fitem.BindNum"></el-input>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -680,8 +649,7 @@ ...@@ -680,8 +649,7 @@
<span class="TP_Sendprepend" style="margin:3px -1px 0 0">销售公司</span> <span class="TP_Sendprepend" style="margin:3px -1px 0 0">销售公司</span>
<el-select class="w350 multiple_input" :class="{'SaleBranchList':priceData.SaleBranchIdArray==''}" <el-select class="w350 multiple_input" :class="{'SaleBranchList':priceData.SaleBranchIdArray==''}"
v-model="priceData.SaleBranchIdArray" multiple> v-model="priceData.SaleBranchIdArray" multiple>
<el-option v-for="item in companyList" :key="item.id" :label="item.bName" <el-option v-for="item in companyList" :key="item.id" :label="item.bName" :value="item.id"></el-option>
:value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
...@@ -700,8 +668,7 @@ ...@@ -700,8 +668,7 @@
<div> <div>
<span class="TCSwitchtitle">订单操作</span> <span class="TCSwitchtitle">订单操作</span>
<span class="TCswitch"> <span class="TCswitch">
<el-switch v-model="priceData.IsOrder" :active-value="inActive" <el-switch v-model="priceData.IsOrder" :active-value="inActive" :inactive-value="notInActive"></el-switch>
:inactive-value="notInActive"></el-switch>
<div class="TC-config">关闭后,业务人员将不能操作订单</div> <div class="TC-config">关闭后,业务人员将不能操作订单</div>
</span> </span>
</div> </div>
...@@ -710,8 +677,7 @@ ...@@ -710,8 +677,7 @@
<div> <div>
<span class="TCSwitchtitle">同行在线预订</span> <span class="TCSwitchtitle">同行在线预订</span>
<span class="TCswitch"> <span class="TCswitch">
<el-switch v-model="priceData.IsB2B" :active-value="inActive" <el-switch v-model="priceData.IsB2B" :active-value="inActive" :inactive-value="notInActive"></el-switch>
:inactive-value="notInActive"></el-switch>
<div class="TC-config">产品将会直接推送到B2B站点</div> <div class="TC-config">产品将会直接推送到B2B站点</div>
</span> </span>
</div> </div>
...@@ -722,8 +688,7 @@ ...@@ -722,8 +688,7 @@
<div> <div>
<span class="TCSwitchtitle">报名候补</span> <span class="TCSwitchtitle">报名候补</span>
<span class="TCswitch"> <span class="TCswitch">
<el-switch v-model="priceData.IsSubstitution" :active-value="inActive" <el-switch v-model="priceData.IsSubstitution" :active-value="inActive" :inactive-value="notInActive"></el-switch>
:inactive-value="notInActive"></el-switch>
<div class="TC-config">关闭后不可超收人数</div> <div class="TC-config">关闭后不可超收人数</div>
</span> </span>
</div> </div>
...@@ -732,8 +697,7 @@ ...@@ -732,8 +697,7 @@
<div> <div>
<span class="TCSwitchtitle">直客在线预订</span> <span class="TCSwitchtitle">直客在线预订</span>
<span class="TCswitch"> <span class="TCswitch">
<el-switch v-model="priceData.IsB2C" :active-value="inActive" <el-switch v-model="priceData.IsB2C" :active-value="inActive" :inactive-value="notInActive"></el-switch>
:inactive-value="notInActive"></el-switch>
<div class="TC-config">产品将会直接推送到B2C站点</div> <div class="TC-config">产品将会直接推送到B2C站点</div>
</span> </span>
</div> </div>
...@@ -747,10 +711,8 @@ ...@@ -747,10 +711,8 @@
</div> </div>
</div> </div>
<TravelPriceFlightList @headCallBack="setDisDirectFlight" ref="TravelFlightList" :priceData="priceData" <TravelPriceFlightList @headCallBack="setDisDirectFlight" ref="TravelFlightList" :priceData="priceData"
:AirTicketId="priceData.AirTicketId" :DeleteAirticketIds="priceData.DeleteAirticketIds" :AirTicketId="priceData.AirTicketId" :DeleteAirticketIds="priceData.DeleteAirticketIds" :selectFilghtList="selectFilghtList"></TravelPriceFlightList>
:selectFilghtList="selectFilghtList"></TravelPriceFlightList>
</div> </div>
<el-dialog custom-class='Tp_hotelDialog' title="酒店使用情况" :visible.sync="outerVisible" center> <el-dialog custom-class='Tp_hotelDialog' title="酒店使用情况" :visible.sync="outerVisible" center>
<table class="TphotelTable" border="0" cellspacing='1'> <table class="TphotelTable" border="0" cellspacing='1'>
<tr v-for="item in returnPriceList[0].PriceHotelList"> <tr v-for="item in returnPriceList[0].PriceHotelList">
...@@ -773,18 +735,17 @@ ...@@ -773,18 +735,17 @@
</template> </template>
<script> <script>
import TravelPriceFlightList from "../TravelGroupControl/TravelPriceFlightList.vue"; import TravelPriceFlightList from "../TravelGroupControl/TravelPriceFlightList.vue";
export default { export default {
props: ["priceList", "priceIsDirect", "OfferList", "PostConfig", "modifyTcid"], props: ["priceList", "priceIsDirect", "OfferList", "PostConfig", "modifyTcid"],
data() { data() {
return { return {
outerVisible:false, outerVisible: false,
currentDay: 1, currentDay: 1,
currentMonth: 1, currentMonth: 1,
currentYear: 1970, currentYear: 1970,
uploadList: [], uploadList: [],
CheckedVaule: 1,//选中值 CheckedVaule: 1, //选中值
UnCheckedVaule: 2,//没选中 UnCheckedVaule: 2, //没选中
//日期数组 //日期数组
days: [], days: [],
dateString: "2016-01-02", dateString: "2016-01-02",
...@@ -826,8 +787,7 @@ ...@@ -826,8 +787,7 @@
trigger: "change" trigger: "change"
}] }]
}, },
TeamList: [ TeamList: [{
{
Id: 1, Id: 1,
name: "一般团" name: "一般团"
}, },
...@@ -843,8 +803,8 @@ ...@@ -843,8 +803,8 @@
currentPriceIndex: 0, //当前团期索引位置 currentPriceIndex: 0, //当前团期索引位置
showPriceList: [], showPriceList: [],
priceShowCount: 6, //团期展示条数 priceShowCount: 6, //团期展示条数
QFlightDateStart: '',//航班查询开始日期 QFlightDateStart: '', //航班查询开始日期
QFlightDateEnd: '',//航班查询结束日期 QFlightDateEnd: '', //航班查询结束日期
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: time => { disabledDate: time => {
let endTime = new Date(this.QFlightDateEnd); let endTime = new Date(this.QFlightDateEnd);
...@@ -952,18 +912,15 @@ ...@@ -952,18 +912,15 @@
JSON.stringify(this.PostConfig.FlightList) JSON.stringify(this.PostConfig.FlightList)
), ),
//删除的绑定的航班编号 //删除的绑定的航班编号
DeleteAirticketIds:"", DeleteAirticketIds: "",
GatherTag:"",//集合标识 GatherTag: "", //集合标识
AirportService:"",//机场服务 AirportService: "", //机场服务
//可销售机票数量 //可销售机票数量
CanSellTicketNum:2, CanSellTicketNum: 2,
//是否订团,0-不订,1需要订 //是否订团,0-不订,1需要订
IsBookTeam:0 IsBookTeam: 0
}; };
} }
// if (this.modifyTcid > 0) {
// this.returnPriceList = [];
// }
this.returnPriceList.push(objItem); this.returnPriceList.push(objItem);
this.initDatePickerCheched(); this.initDatePickerCheched();
this.returnPriceList.sort( this.returnPriceList.sort(
...@@ -975,14 +932,7 @@ ...@@ -975,14 +932,7 @@
}, },
//单团期修改重置日历选中 //单团期修改重置日历选中
initDatePickerCheched() { initDatePickerCheched() {
// if (this.modifyTcid > 0 && this.returnPriceList.length > 0) {
// let oneDay = this.returnPriceList[0];
// this.days.forEach(x => {
// if (this.getDayStr(x.day) != oneDay.StartDate) {
// x.checkState = this.$calendarUtils.checkState.hasValue;
// }
// });
// }
}, },
RemovePrice(dateStr) { RemovePrice(dateStr) {
var array = []; var array = [];
...@@ -1025,8 +975,6 @@ ...@@ -1025,8 +975,6 @@
} }
}); });
} }
console.log(this.priceList,'priceList');
console.log(this.PostConfig,'PostConfig');
this.initDatePickerCheched(); this.initDatePickerCheched();
}, },
//点击左箭头切换年月 //点击左箭头切换年月
...@@ -1060,7 +1008,7 @@ ...@@ -1060,7 +1008,7 @@
}, },
//日期计算 //日期计算
daysCalculate(date, addDay) { daysCalculate(date, addDay) {
var date = new Date(date);//获取当前时间 var date = new Date(date); //获取当前时间
date.setDate(date.getDate() + addDay); date.setDate(date.getDate() + addDay);
return date.Format("yyyy-MM-dd"); return date.Format("yyyy-MM-dd");
}, },
...@@ -1111,8 +1059,7 @@ ...@@ -1111,8 +1059,7 @@
}); });
} }
}, },
err => { err => {}
}
); );
}, },
compareDay(day) { compareDay(day) {
...@@ -1186,7 +1133,7 @@ ...@@ -1186,7 +1133,7 @@
}, },
setDisDirectFlight(obj) { setDisDirectFlight(obj) {
this.priceData.PriceFlight = JSON.parse(JSON.stringify(obj.priceFlight)); this.priceData.PriceFlight = JSON.parse(JSON.stringify(obj.priceFlight));
this.priceData.DeleteAirticketIds=obj.DeleteAirticketIdArray.join(','); this.priceData.DeleteAirticketIds = obj.DeleteAirticketIdArray.join(',');
}, },
//删除标签 //删除标签
delDateList(item) { delDateList(item) {
...@@ -1244,7 +1191,6 @@ ...@@ -1244,7 +1191,6 @@
item.Checked = true; item.Checked = true;
this.priceData = item; this.priceData = item;
this.initFlightData(); this.initFlightData();
//this.getSelectFilght(this.priceData.StartDate);
}, },
//左移动获取展示的团期 //左移动获取展示的团期
priceLeftMove() { priceLeftMove() {
...@@ -1300,8 +1246,7 @@ ...@@ -1300,8 +1246,7 @@
this.companyList = res.data.data; this.companyList = res.data.data;
} }
}, },
err => { err => {}
}
); );
}, },
//选中航班选择框 //选中航班选择框
...@@ -1374,30 +1319,24 @@ ...@@ -1374,30 +1319,24 @@
}) })
}, },
//检查机位数是否超过设置的可销售数量 //检查机位数是否超过设置的可销售数量
CheckSellTicketNum(item) CheckSellTicketNum(item) {
{ var totalNum = 0;
var totalNum=0; if (item.YSeat && item.YSeat != '') {
if(item.YSeat && item.YSeat!='') totalNum += Number(item.YSeat);
{
totalNum+=Number(item.YSeat);
} }
if(item.CSeat && item.CSeat!='') if (item.CSeat && item.CSeat != '') {
{ totalNum += Number(item.CSeat);
totalNum+=Number(item.CSeat);
} }
if(item.FSeat && item.FSeat!='') if (item.FSeat && item.FSeat != '') {
{ totalNum += Number(item.FSeat);
totalNum+=Number(item.FSeat);
} }
var canSellNum=0; var canSellNum = 0;
if(item.CanSellTicketNum && item.CanSellTicketNum!='') if (item.CanSellTicketNum && item.CanSellTicketNum != '') {
{ canSellNum = Number(item.CanSellTicketNum);
canSellNum=Number(item.CanSellTicketNum);
} }
if(totalNum<canSellNum) if (totalNum < canSellNum) {
{
this.Info("可销售机票数量不能超过本团机位数!") this.Info("可销售机票数量不能超过本团机位数!")
item.CanSellTicketNum=0; item.CanSellTicketNum = 0;
} }
} }
}, },
...@@ -1431,7 +1370,6 @@ ...@@ -1431,7 +1370,6 @@
this.returnPriceList.forEach((x, index) => { this.returnPriceList.forEach((x, index) => {
if (index == 0) { if (index == 0) {
this.priceData = this.returnPriceList[index]; this.priceData = this.returnPriceList[index];
x["Checked"] = true; x["Checked"] = true;
this.chooseDay = this.priceData.StartDate; this.chooseDay = this.priceData.StartDate;
this.initFlightData(); this.initFlightData();
...@@ -1465,5 +1403,4 @@ ...@@ -1465,5 +1403,4 @@
TravelPriceFlightList: TravelPriceFlightList TravelPriceFlightList: TravelPriceFlightList
} }
}; };
</script> </script>
\ No newline at end of file
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