Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
5258ba63
Commit
5258ba63
authored
Mar 15, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
团控代码优化
parent
a8b8f5ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
151 additions
and
214 deletions
+151
-214
TravelPrice.vue
...nents/newTravelmanager/TravelGroupControl/TravelPrice.vue
+151
-214
No files found.
src/components/newTravelmanager/TravelGroupControl/TravelPrice.vue
View file @
5258ba63
...
...
@@ -328,14 +328,12 @@
<ul>
<li>
<i
class=
"arrow monthminus"
@
click=
"currentYear-=1,getDateString(),initCalendar(dateString)"
>
<
</i>
<input
type=
"text"
v-model=
"currentYear"
disabled
class=
"currentInput"
@
input=
"getDateString(),initCalendar(dateString)"
>
年
<input
type=
"text"
v-model=
"currentYear"
disabled
class=
"currentInput"
@
input=
"getDateString(),initCalendar(dateString)"
>
年
<i
class=
"arrow monthadd"
@
click=
"currentYear+=1,getDateString(),initCalendar(dateString)"
>
>
</i>
</li>
<li>
<i
class=
"arrow monthminus"
@
click=
"pickPre(currentYear,currentMonth)"
>
<
</i>
<input
type=
"text"
v-model=
"currentMonth"
disabled
class=
"currentInput"
@
input=
"getDateString(),initCalendar(dateString)"
>
月
<input
type=
"text"
v-model=
"currentMonth"
disabled
class=
"currentInput"
@
input=
"getDateString(),initCalendar(dateString)"
>
月
<i
class=
"arrow monthadd"
@
click=
"pickNext(currentYear,currentMonth)"
>
>
</i>
</li>
</ul>
...
...
@@ -354,10 +352,8 @@
<ul
class=
"days"
>
<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.checked"
class=
"checked1"
@
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-if=
"dayobject.checkState==$calendarUtils.checkState.checked"
class=
"checked1"
@
click=
"clickedDay(dayobject)"
>
{{
dayobject
.
day
.
getDate
()
}}
</span>
<span
v-else-if=
"dayobject.checkState==$calendarUtils.checkState.hasValue"
@
click=
"clickedDay(dayobject)"
>
{{
dayobject
.
day
.
getDate
()
}}
</span>
</li>
</ul>
</div>
...
...
@@ -376,8 +372,7 @@
<i
class=
"iconfont icon-previewleft"
></i>
</span>
<div
class=
"TP_childContent"
>
<span
class=
"TP_tips"
:class=
"
{'ckedSpan':item.Checked}" @click="getDateInfo(item)"
v-for="(item,index) in showPriceList"
<span
class=
"TP_tips"
:class=
"
{'ckedSpan':item.Checked}" @click="getDateInfo(item)" v-for="(item,index) in showPriceList"
:key="index">
{{
item
.
StartDate
}}
<span
class=
"TP_cancel"
@
click
.
stop=
"delDateList(item)"
>
...
...
@@ -401,47 +396,40 @@
</div>
<div
class=
"TPright"
>
<div
class=
"TP_noneed"
>
<el-checkbox
v-model=
"priceData.IsSupportChildren"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
>
支持儿童出游
<el-checkbox
v-model=
"priceData.IsSupportChildren"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
>
支持儿童出游
</el-checkbox>
<el-checkbox
v-model=
"priceData.IsBookTeam"
style=
"display:none"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
>
订团
<el-checkbox
v-model=
"priceData.IsBookTeam"
style=
"display:none"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
>
订团
</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>
<el-form-item
prop=
"B2BMemberPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.B2BMemberPrice"
@
keyup
.
native=
"checkPrice(priceData,'B2BMemberPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.B2BMemberPrice"
@
keyup
.
native=
"checkPrice(priceData,'B2BMemberPrice')"
>
<template
slot=
"prepend"
>
同行会员
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"B2BPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.B2BPrice"
@
keyup
.
native=
"checkPrice(priceData,'B2BPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.B2BPrice"
@
keyup
.
native=
"checkPrice(priceData,'B2BPrice')"
>
<
template
slot=
"prepend"
>
同行
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"B2CMemberPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.B2CMemberPrice"
@
keyup
.
native=
"checkPrice(priceData,'B2CMemberPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.B2CMemberPrice"
@
keyup
.
native=
"checkPrice(priceData,'B2CMemberPrice')"
>
<
template
slot=
"prepend"
>
直客会员
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"B2CPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.B2CPrice"
@
keyup
.
native=
"checkPrice(priceData,'B2CPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.B2CPrice"
@
keyup
.
native=
"checkPrice(priceData,'B2CPrice')"
>
<
template
slot=
"prepend"
>
直客
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"BabyPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.BabyPrice"
@
keyup
.
native=
"checkInteger(priceData,'BabyPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.BabyPrice"
@
keyup
.
native=
"checkInteger(priceData,'BabyPrice')"
>
<
template
slot=
"prepend"
>
婴儿
</
template
>
</el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.SingleDMCPrice"
@
keyup
.
native=
"checkPrice(priceData,'SingleDMCPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.SingleDMCPrice"
@
keyup
.
native=
"checkPrice(priceData,'SingleDMCPrice')"
>
<
template
slot=
"prepend"
>
单地接
</
template
>
</el-input>
</el-form-item>
...
...
@@ -454,14 +442,12 @@
</div>
<div
class=
"TPright"
>
<el-form-item
prop=
"ChildNeedPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.ChildNeedPrice"
@
keyup
.
native=
"checkInteger(priceData,'ChildNeedPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.ChildNeedPrice"
@
keyup
.
native=
"checkInteger(priceData,'ChildNeedPrice')"
>
<
template
slot=
"prepend"
>
儿童占床
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"BabyChargePrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.BabyChargePrice"
@
keyup
.
native=
"checkPrice(priceData,'BabyChargePrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.BabyChargePrice"
@
keyup
.
native=
"checkPrice(priceData,'BabyChargePrice')"
>
<
template
slot=
"prepend"
>
儿童附加费
</
template
>
</el-input>
</el-form-item>
...
...
@@ -472,26 +458,22 @@
</el-input>
</el-form-item>
<el-form-item
prop=
"VisaPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.VisaPrice"
@
keyup
.
native=
"checkPrice(priceData,'VisaPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.VisaPrice"
@
keyup
.
native=
"checkPrice(priceData,'VisaPrice')"
>
<
template
slot=
"prepend"
>
签证费
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"SingleRoomPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.SingleRoomPrice"
@
keyup
.
native=
"checkPrice(priceData,'SingleRoomPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.SingleRoomPrice"
@
keyup
.
native=
"checkPrice(priceData,'SingleRoomPrice')"
>
<
template
slot=
"prepend"
>
单房差
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"SafeMoney"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.SafeMoney"
@
keyup
.
native=
"checkInteger(priceData,'SafeMoney')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.SafeMoney"
@
keyup
.
native=
"checkInteger(priceData,'SafeMoney')"
>
<
template
slot=
"prepend"
>
保险
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"OtherPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.OtherPrice"
@
keyup
.
native=
"checkPrice(priceData,'OtherPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.OtherPrice"
@
keyup
.
native=
"checkPrice(priceData,'OtherPrice')"
>
<
template
slot=
"prepend"
>
杂费
</
template
>
</el-input>
</el-form-item>
...
...
@@ -504,27 +486,23 @@
</div>
<div
class=
"TPright"
>
<el-form-item
prop=
"ChildNoNeedPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.ChildNoNeedPrice"
@
keyup
.
native=
"checkInteger(priceData,'ChildNoNeedPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.ChildNoNeedPrice"
@
keyup
.
native=
"checkInteger(priceData,'ChildNoNeedPrice')"
>
<
template
slot=
"prepend"
>
儿童不占床
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"BackVisaPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.BackVisaPrice"
@
keyup
.
native=
"checkInteger(priceData,'BackVisaPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.BackVisaPrice"
@
keyup
.
native=
"checkInteger(priceData,'BackVisaPrice')"
>
<
template
slot=
"prepend"
>
退签证费
</
template
>
</el-input>
</el-form-item>
<el-form-item
style=
"display:none;"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.RebatePrice"
@
keyup
.
native=
"checkPrice(priceData,'RebatePrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.RebatePrice"
@
keyup
.
native=
"checkPrice(priceData,'RebatePrice')"
>
<
template
slot=
"prepend"
>
同行返佣
</
template
>
</el-input>
</el-form-item>
<el-form-item
style=
"display:none;"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.DiscountPrice"
@
keyup
.
native=
"checkPrice(priceData,'DiscountPrice')"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.DiscountPrice"
@
keyup
.
native=
"checkPrice(priceData,'DiscountPrice')"
>
<
template
slot=
"prepend"
>
早鸟优惠
</
template
>
</el-input>
</el-form-item>
...
...
@@ -537,43 +515,37 @@
</div>
<div
class=
"TPright clearfix"
>
<el-form-item
prop=
"ClearOrderHour"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.ClearOrderHour"
@
keyup
.
native=
"checkInteger(priceData,'ClearOrderHour')"
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.ClearOrderHour"
@
keyup
.
native=
"checkInteger(priceData,'ClearOrderHour')"
@
blur=
"checkInteger(priceData,'ClearOrderHour')"
>
<
template
slot=
"prepend"
>
自动清位
</
template
>
</el-input>
</el-form-item>
<span
class=
"TP_Sendprepend"
>
送签时间
</span>
<el-form-item
prop=
"SendVisaTime"
style=
"margin-top:1px;"
>
<el-date-picker
clearable
class=
"w150"
v-model=
"priceData.SendVisaTime"
type=
"date"
value-format=
"yyyy-MM-dd"
<el-date-picker
clearable
class=
"w150"
v-model=
"priceData.SendVisaTime"
type=
"date"
value-format=
"yyyy-MM-dd"
:placeholder=
"$t('admin.admin_choDate')"
></el-date-picker>
</el-form-item>
<el-form-item
prop=
"OutBranchId"
style=
"margin-top:1px;"
>
<span
class=
"TP_Sendprepend"
style=
"margin:3px -1px 0 0"
>
出团公司
</span>
<el-select
class=
"w180"
v-model=
"priceData.OutBranchId"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"SelectOtherDefault"
></el-option>
<el-option
v-for=
"item in companyList"
:key=
"item.id"
:label=
"item.bName"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in companyList"
:key=
"item.id"
:label=
"item.bName"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
</div>
<div
class=
"TPright clearfix"
>
<el-form-item
prop=
"YSeat"
>
<el-input
placeholder=
"人数"
class=
"w190"
v-model=
"priceData.YSeat"
@
keyup
.
native=
"checkInteger(priceData,'YSeat')"
>
<el-input
placeholder=
"人数"
class=
"w190"
v-model=
"priceData.YSeat"
@
keyup
.
native=
"checkInteger(priceData,'YSeat')"
>
<
template
slot=
"prepend"
>
经济舱/上铺
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"CSeat"
>
<el-input
placeholder=
"人数"
class=
"w260"
v-model=
"priceData.CSeat"
@
keyup
.
native=
"checkInteger(priceData,'CSeat')"
>
<el-input
placeholder=
"人数"
class=
"w260"
v-model=
"priceData.CSeat"
@
keyup
.
native=
"checkInteger(priceData,'CSeat')"
>
<
template
slot=
"prepend"
>
商务舱/中铺
</
template
>
</el-input>
</el-form-item>
<el-form-item
prop=
"FSeat"
>
<el-input
placeholder=
"人数"
class=
"w290"
v-model=
"priceData.FSeat"
@
keyup
.
native=
"checkInteger(priceData,'FSeat')"
>
<el-input
placeholder=
"人数"
class=
"w290"
v-model=
"priceData.FSeat"
@
keyup
.
native=
"checkInteger(priceData,'FSeat')"
>
<
template
slot=
"prepend"
>
头等舱/下铺
</
template
>
</el-input>
</el-form-item>
...
...
@@ -588,7 +560,8 @@
</el-input>
</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
>
</el-input>
</el-form-item>
...
...
@@ -607,8 +580,7 @@
<el-form-item>
<span
class=
"TP_Sendprepend"
style=
"margin-left:0;width:120px;"
>
销售状态
</span>
<el-select
class=
"w180"
v-model=
"priceData.TCSaleState"
>
<el-option
v-for=
"item in TeamList"
:key=
"item.Id"
:label=
"item.name"
:value=
"item.Id"
></el-option>
<el-option
v-for=
"item in TeamList"
:key=
"item.Id"
:label=
"item.name"
:value=
"item.Id"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
...
...
@@ -632,12 +604,10 @@
<div>
<div
style=
"margin-bottom:20px;"
>
开始日期
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"QFlightDateStart"
:picker-options=
"pickerBeginDateBefore"
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"QFlightDateStart"
:picker-options=
"pickerBeginDateBefore"
value-format=
"yyyy-MM-dd"
placeholder
></el-date-picker>
结束日期
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"QFlightDateEnd"
:picker-options=
"pickerBeginDateAfter"
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"QFlightDateEnd"
:picker-options=
"pickerBeginDateAfter"
value-format=
"yyyy-MM-dd"
placeholder
></el-date-picker>
<button
class=
"normalBtn"
@
click
.
stop=
"getSelectFilght()"
>
查询
</button>
</div>
...
...
@@ -665,8 +635,7 @@
<td>
{{fitem.PNR}}
</td>
<td>
{{fitem.UseAmount}} / {{fitem.RemainNum}}
</td>
<td>
<el-input
class=
"w80"
placeholder=
"机位数"
@
keyup
.
native=
"getFlightBindNum(fitem)"
v-model=
"fitem.BindNum"
></el-input>
<el-input
class=
"w80"
placeholder=
"机位数"
@
keyup
.
native=
"getFlightBindNum(fitem)"
v-model=
"fitem.BindNum"
></el-input>
</td>
</tr>
</table>
...
...
@@ -680,8 +649,7 @@
<span
class=
"TP_Sendprepend"
style=
"margin:3px -1px 0 0"
>
销售公司
</span>
<el-select
class=
"w350 multiple_input"
:class=
"{'SaleBranchList':priceData.SaleBranchIdArray==''}"
v-model=
"priceData.SaleBranchIdArray"
multiple
>
<el-option
v-for=
"item in companyList"
:key=
"item.id"
:label=
"item.bName"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in companyList"
:key=
"item.id"
:label=
"item.bName"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
</div>
...
...
@@ -700,8 +668,7 @@
<div>
<span
class=
"TCSwitchtitle"
>
订单操作
</span>
<span
class=
"TCswitch"
>
<el-switch
v-model=
"priceData.IsOrder"
:active-value=
"inActive"
:inactive-value=
"notInActive"
></el-switch>
<el-switch
v-model=
"priceData.IsOrder"
:active-value=
"inActive"
:inactive-value=
"notInActive"
></el-switch>
<div
class=
"TC-config"
>
关闭后,业务人员将不能操作订单
</div>
</span>
</div>
...
...
@@ -710,8 +677,7 @@
<div>
<span
class=
"TCSwitchtitle"
>
同行在线预订
</span>
<span
class=
"TCswitch"
>
<el-switch
v-model=
"priceData.IsB2B"
:active-value=
"inActive"
:inactive-value=
"notInActive"
></el-switch>
<el-switch
v-model=
"priceData.IsB2B"
:active-value=
"inActive"
:inactive-value=
"notInActive"
></el-switch>
<div
class=
"TC-config"
>
产品将会直接推送到B2B站点
</div>
</span>
</div>
...
...
@@ -722,8 +688,7 @@
<div>
<span
class=
"TCSwitchtitle"
>
报名候补
</span>
<span
class=
"TCswitch"
>
<el-switch
v-model=
"priceData.IsSubstitution"
:active-value=
"inActive"
:inactive-value=
"notInActive"
></el-switch>
<el-switch
v-model=
"priceData.IsSubstitution"
:active-value=
"inActive"
:inactive-value=
"notInActive"
></el-switch>
<div
class=
"TC-config"
>
关闭后不可超收人数
</div>
</span>
</div>
...
...
@@ -732,8 +697,7 @@
<div>
<span
class=
"TCSwitchtitle"
>
直客在线预订
</span>
<span
class=
"TCswitch"
>
<el-switch
v-model=
"priceData.IsB2C"
:active-value=
"inActive"
:inactive-value=
"notInActive"
></el-switch>
<el-switch
v-model=
"priceData.IsB2C"
:active-value=
"inActive"
:inactive-value=
"notInActive"
></el-switch>
<div
class=
"TC-config"
>
产品将会直接推送到B2C站点
</div>
</span>
</div>
...
...
@@ -747,10 +711,8 @@
</div>
</div>
<TravelPriceFlightList
@
headCallBack=
"setDisDirectFlight"
ref=
"TravelFlightList"
:priceData=
"priceData"
:AirTicketId=
"priceData.AirTicketId"
:DeleteAirticketIds=
"priceData.DeleteAirticketIds"
:selectFilghtList=
"selectFilghtList"
></TravelPriceFlightList>
:AirTicketId=
"priceData.AirTicketId"
:DeleteAirticketIds=
"priceData.DeleteAirticketIds"
:selectFilghtList=
"selectFilghtList"
></TravelPriceFlightList>
</div>
<el-dialog
custom-class=
'Tp_hotelDialog'
title=
"酒店使用情况"
:visible
.
sync=
"outerVisible"
center
>
<table
class=
"TphotelTable"
border=
"0"
cellspacing=
'1'
>
<tr
v-for=
"item in returnPriceList[0].PriceHotelList"
>
...
...
@@ -773,18 +735,17 @@
</template>
<
script
>
import
TravelPriceFlightList
from
"../TravelGroupControl/TravelPriceFlightList.vue"
;
export
default
{
props
:
[
"priceList"
,
"priceIsDirect"
,
"OfferList"
,
"PostConfig"
,
"modifyTcid"
],
data
()
{
return
{
outerVisible
:
false
,
outerVisible
:
false
,
currentDay
:
1
,
currentMonth
:
1
,
currentYear
:
1970
,
uploadList
:
[],
CheckedVaule
:
1
,
//选中值
UnCheckedVaule
:
2
,
//没选中
CheckedVaule
:
1
,
//选中值
UnCheckedVaule
:
2
,
//没选中
//日期数组
days
:
[],
dateString
:
"2016-01-02"
,
...
...
@@ -826,8 +787,7 @@
trigger
:
"change"
}]
},
TeamList
:
[
{
TeamList
:
[{
Id
:
1
,
name
:
"一般团"
},
...
...
@@ -843,8 +803,8 @@
currentPriceIndex
:
0
,
//当前团期索引位置
showPriceList
:
[],
priceShowCount
:
6
,
//团期展示条数
QFlightDateStart
:
''
,
//航班查询开始日期
QFlightDateEnd
:
''
,
//航班查询结束日期
QFlightDateStart
:
''
,
//航班查询开始日期
QFlightDateEnd
:
''
,
//航班查询结束日期
pickerBeginDateBefore
:
{
disabledDate
:
time
=>
{
let
endTime
=
new
Date
(
this
.
QFlightDateEnd
);
...
...
@@ -952,18 +912,15 @@
JSON
.
stringify
(
this
.
PostConfig
.
FlightList
)
),
//删除的绑定的航班编号
DeleteAirticketIds
:
""
,
GatherTag
:
""
,
//集合标识
AirportService
:
""
,
//机场服务
DeleteAirticketIds
:
""
,
GatherTag
:
""
,
//集合标识
AirportService
:
""
,
//机场服务
//可销售机票数量
CanSellTicketNum
:
2
,
CanSellTicketNum
:
2
,
//是否订团,0-不订,1需要订
IsBookTeam
:
0
IsBookTeam
:
0
};
}
// if (this.modifyTcid > 0) {
// this.returnPriceList = [];
// }
this
.
returnPriceList
.
push
(
objItem
);
this
.
initDatePickerCheched
();
this
.
returnPriceList
.
sort
(
...
...
@@ -975,14 +932,7 @@
},
//单团期修改重置日历选中
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
)
{
var
array
=
[];
...
...
@@ -1025,8 +975,6 @@
}
});
}
console
.
log
(
this
.
priceList
,
'priceList'
);
console
.
log
(
this
.
PostConfig
,
'PostConfig'
);
this
.
initDatePickerCheched
();
},
//点击左箭头切换年月
...
...
@@ -1060,7 +1008,7 @@
},
//日期计算
daysCalculate
(
date
,
addDay
)
{
var
date
=
new
Date
(
date
);
//获取当前时间
var
date
=
new
Date
(
date
);
//获取当前时间
date
.
setDate
(
date
.
getDate
()
+
addDay
);
return
date
.
Format
(
"yyyy-MM-dd"
);
},
...
...
@@ -1111,8 +1059,7 @@
});
}
},
err
=>
{
}
err
=>
{}
);
},
compareDay
(
day
)
{
...
...
@@ -1186,7 +1133,7 @@
},
setDisDirectFlight
(
obj
)
{
this
.
priceData
.
PriceFlight
=
JSON
.
parse
(
JSON
.
stringify
(
obj
.
priceFlight
));
this
.
priceData
.
DeleteAirticketIds
=
obj
.
DeleteAirticketIdArray
.
join
(
','
);
this
.
priceData
.
DeleteAirticketIds
=
obj
.
DeleteAirticketIdArray
.
join
(
','
);
},
//删除标签
delDateList
(
item
)
{
...
...
@@ -1244,7 +1191,6 @@
item
.
Checked
=
true
;
this
.
priceData
=
item
;
this
.
initFlightData
();
//this.getSelectFilght(this.priceData.StartDate);
},
//左移动获取展示的团期
priceLeftMove
()
{
...
...
@@ -1300,8 +1246,7 @@
this
.
companyList
=
res
.
data
.
data
;
}
},
err
=>
{
}
err
=>
{}
);
},
//选中航班选择框
...
...
@@ -1374,30 +1319,24 @@
})
},
//检查机位数是否超过设置的可销售数量
CheckSellTicketNum
(
item
)
{
var
totalNum
=
0
;
if
(
item
.
YSeat
&&
item
.
YSeat
!=
''
)
{
totalNum
+=
Number
(
item
.
YSeat
);
CheckSellTicketNum
(
item
)
{
var
totalNum
=
0
;
if
(
item
.
YSeat
&&
item
.
YSeat
!=
''
)
{
totalNum
+=
Number
(
item
.
YSeat
);
}
if
(
item
.
CSeat
&&
item
.
CSeat
!=
''
)
{
totalNum
+=
Number
(
item
.
CSeat
);
if
(
item
.
CSeat
&&
item
.
CSeat
!=
''
)
{
totalNum
+=
Number
(
item
.
CSeat
);
}
if
(
item
.
FSeat
&&
item
.
FSeat
!=
''
)
{
totalNum
+=
Number
(
item
.
FSeat
);
if
(
item
.
FSeat
&&
item
.
FSeat
!=
''
)
{
totalNum
+=
Number
(
item
.
FSeat
);
}
var
canSellNum
=
0
;
if
(
item
.
CanSellTicketNum
&&
item
.
CanSellTicketNum
!=
''
)
{
canSellNum
=
Number
(
item
.
CanSellTicketNum
);
var
canSellNum
=
0
;
if
(
item
.
CanSellTicketNum
&&
item
.
CanSellTicketNum
!=
''
)
{
canSellNum
=
Number
(
item
.
CanSellTicketNum
);
}
if
(
totalNum
<
canSellNum
)
{
if
(
totalNum
<
canSellNum
)
{
this
.
Info
(
"可销售机票数量不能超过本团机位数!"
)
item
.
CanSellTicketNum
=
0
;
item
.
CanSellTicketNum
=
0
;
}
}
},
...
...
@@ -1431,7 +1370,6 @@
this
.
returnPriceList
.
forEach
((
x
,
index
)
=>
{
if
(
index
==
0
)
{
this
.
priceData
=
this
.
returnPriceList
[
index
];
x
[
"Checked"
]
=
true
;
this
.
chooseDay
=
this
.
priceData
.
StartDate
;
this
.
initFlightData
();
...
...
@@ -1465,5 +1403,4 @@
TravelPriceFlightList
:
TravelPriceFlightList
}
};
</
script
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment