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
72007ddd
Commit
72007ddd
authored
Apr 25, 2019
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
8bd3e084
f0caac9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
48 deletions
+77
-48
TravelPrice.vue
...nents/newTravelmanager/TravelGroupControl/TravelPrice.vue
+77
-48
No files found.
src/components/newTravelmanager/TravelGroupControl/TravelPrice.vue
View file @
72007ddd
...
...
@@ -180,11 +180,12 @@
border
:
1px
solid
#d1d1d1
;
}
._TravelPricePopover
.jiDiv
{
width
:
650px
;
max-height
:
400px
;
._TravelPricePopover
.jiDiv
{
width
:
650px
;
max-height
:
400px
;
overflow
:
auto
;
}
._TravelPricePopover
table
{
padding
:
10px
0
0
20px
;
background-color
:
#ededed
;
...
...
@@ -334,12 +335,14 @@
cursor
:
default
!important
;
box-shadow
:
none
!important
;
}
.lessPriceRule
{
font-size
:
14px
;
margin-left
:
40px
;
.lessPriceRule
{
font-size
:
14px
;
margin-left
:
40px
;
text-decoration
:
underline
;
cursor
:
pointer
;
}
</
style
>
<
template
>
...
...
@@ -437,13 +440,14 @@
<el-checkbox
v-model=
"priceData.IsSupportChildren"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
>
支持儿童出游
</el-checkbox>
<el-checkbox
v-model=
"priceData.IsBookTeam"
:true-label=
"CheckedVaule"
v-if=
"PostConfig.LineId==14"
<el-checkbox
v-model=
"priceData.IsBookTeam"
:true-label=
"CheckedVaule"
v-if=
"PostConfig.LineId==14"
:false-label=
"UnCheckedVaule"
>
订团
</el-checkbox>
<el-checkbox
v-model=
"priceData.IsLessPrice"
:true-label=
"CheckedVaule"
:false-label=
"UnCheckedVaule"
>
可少价
</el-checkbox>
<input
type=
"button"
class=
"normalBtn"
value=
"酒店使用情况"
@
click=
"outerVisible=true"
v-if=
"PostConfig.LineId==14 && priceData.PriceHotelList&&priceData.PriceHotelList.length>0"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"酒店使用情况"
@
click=
"outerVisible=true"
v-if=
"PostConfig.LineId==14 && priceData.PriceHotelList&&priceData.PriceHotelList.length>0"
/>
</div>
<el-form-item
prop=
"B2BMemberPrice"
>
<el-input
placeholder=
"请输入"
class=
"w190 ComSeat"
v-model=
"priceData.B2BMemberPrice"
...
...
@@ -693,13 +697,16 @@
<el-checkbox
v-model=
"fitem.IsSelected===true"
@
change=
"getSelect(fitem)"
></el-checkbox>
</td>
<td>
<span
class=
"TP_Airticktid"
@
click=
"goUrl('TicketManager',fitem.AirticketId)"
>
{{fitem.FlightNumber}}
</span>
/ {{fitem.AlName}} / {{fitem.DepartureName}}-{{fitem.ArrivalCityName}}
<span
class=
"TP_Airticktid"
@
click=
"goUrl('TicketManager',fitem.AirticketId)"
>
{{fitem.FlightNumber}}
</span>
/
{{fitem.AlName}} / {{fitem.DepartureName}}-{{fitem.ArrivalCityName}}
</td>
<td>
{{fitem.FlightDate}} {{fitem.Departure_time}}
</td>
<td>
{{fitem.PNR}}
</td>
<td>
{{fitem.TicketNum}} / {{fitem.UseAmount}}
</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>
...
...
@@ -774,9 +781,10 @@
</el-form-item>
</div>
</div>
<div
class=
"TPright"
>
<span
v-if=
"priceData.IsLessPrice==1"
@
click=
"getLessPriceInfo(),lessPriceVisible=true"
class=
"lessPriceRule"
>
少价规则
</span>
</div>
<div
class=
"TPright"
>
<span
v-if=
"priceData.IsLessPrice==1"
@
click=
"getLessPriceInfo(),lessPriceVisible=true"
class=
"lessPriceRule"
>
少价规则
</span>
</div>
</div>
</el-form>
</div>
...
...
@@ -789,6 +797,12 @@
</div>
<el-dialog
custom-class=
'Tp_hotelDialog'
title=
"酒店使用情况"
:visible
.
sync=
"outerVisible"
center
>
<table
class=
"TphotelTable"
border=
"0"
cellspacing=
'1'
v-if=
"priceData.TCID>0"
>
<tr>
<th>
日期
</th>
<th>
酒店
</th>
<th>
占房时间
</th>
<th>
更换酒店
</th>
</tr>
<tr
v-if=
"priceData.PriceHotelList"
v-for=
"item in priceData.PriceHotelList"
>
<td
style=
"background-color:#E6E6E6;color:#333;"
width=
"120"
>
{{item.UseDay}}
</td>
<td>
...
...
@@ -796,24 +810,35 @@
<div>
{{index+1}}.{{subItem.HotelName}}
<span
v-if=
"subItem.UseCount>0 && item.SubList.length==1"
>
<a
style=
"color:green"
>
{{subItem.RemainingInventory>-3?"【OK】":"【暂定】"}}
</a>
【
<span
style=
"color:green"
>
本团使用库存:{{subItem.UseCount}} {{subItem.CostPrice!=0?"价格:"+subItem.CostPrice:""}}
</span>
】
</span>
【
<span
style=
"color:#E95252;"
>
剩余库存:{{subItem.RemainingInventory}}
<
template
v-if=
"subItem.CreateDateStr"
>
占房时间:
{{
subItem
.
CreateDateStr
}}
</
template
>
<a
style=
"color:green"
>
{{subItem.RemainingInventory>-3?"【OK】":"【暂定】"}}
</a>
【
<span
style=
"color:green"
>
本团使用库存:{{subItem.UseCount}}
{{subItem.CostPrice!=0?"价格:"+subItem.CostPrice:""}}
</span>
】
</span>
【
<span
style=
"color:#E95252;"
>
剩余库存:{{subItem.RemainingInventory}}
</span>
】
<el-checkbox
v-if=
"item.SubList.length>1"
v-model=
"item.CheckList[index].CheckStatus"
@
change=
"changeHotelStatus(item,index),changeHotelList()"
></el-checkbox>
</div>
</div>
</td>
<td>
<div
class=
"tp_divList"
v-for=
"(subItem,index) in item.SubList"
>
<div>
<span
v-if=
"subItem.UseCount>0 && item.SubList.length==1"
>
<span
style=
"color:green;white-space:nowrap;"
>
{{subItem.CreateDateStr}}
</span>
</span>
</div>
</div>
</td>
<td>
<el-select
class=
"w180"
v-model=
"item.NewHotelId"
@
visible-change=
"getHotelList(item,$event)"
@
change=
"changeHotelList()"
filterable
>
<el-option
:key=
"0"
label=
"请选择"
:value=
"0"
></el-option>
<el-option
v-for=
"subItem in item.HotelList"
:key=
"subItem.ID"
:label=
"subItem.Name"
:value=
"subItem.ID"
>
<span
style=
"float: left"
>
{{subItem.Name}}
</span>
<span
style=
"float: right; color:red; font-size: 13px"
>
剩余库存:{{subItem.Inventory}} / 价格:{{subItem.CostPrice}}
</span>
<span
style=
"float: right; color:red; font-size: 13px"
>
剩余库存:{{subItem.Inventory}} /
价格:{{subItem.CostPrice}}
</span>
</el-option>
</el-select>
</td>
...
...
@@ -822,7 +847,8 @@
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"normalBtn"
type=
"primary"
@
click=
"saveHoteluseDetail()"
:class=
"{'disClick':!isSaved}"
>
{{btnText}}
</button>
<button
class=
"hollowFixedBtn"
:class=
"{'disClick':!isSaved}"
@
click=
"cancelHotelUseDetail()"
>
{{$t('pub.cancelBtn')}}
</button>
<button
class=
"hollowFixedBtn"
:class=
"{'disClick':!isSaved}"
@
click=
"cancelHotelUseDetail()"
>
{{$t('pub.cancelBtn')}}
</button>
</div>
</el-dialog>
...
...
@@ -835,22 +861,25 @@
</tr>
<tr
v-for=
"item in lessPriceData"
>
<td>
<span
v-if=
"item.LessMoney!=null"
style=
"margin-right:30px;"
>
{{item.LessMoney}}元
</span><span
v-if=
"item.LessPercent!=null"
>
{{item.LessPercent}}%
</span>
<span
v-if=
"item.LessMoney!=null"
style=
"margin-right:30px;"
>
{{item.LessMoney}}元
</span><span
v-if=
"item.LessPercent!=null"
>
{{item.LessPercent}}%
</span>
</td>
<td>
<span
v-if=
"item.DeptLessMoney!=null"
style=
"margin-right:30px;"
>
{{item.DeptLessMoney}}元
</span><span
v-if=
"item.DeptLessPercent!=null"
>
{{item.DeptLessPercent}}%
</span>
<span
v-if=
"item.DeptLessMoney!=null"
style=
"margin-right:30px;"
>
{{item.DeptLessMoney}}元
</span><span
v-if=
"item.DeptLessPercent!=null"
>
{{item.DeptLessPercent}}%
</span>
</td>
<td>
<span
v-if=
"item.FilialeLessMoney!=null"
style=
"margin-right:30px;"
>
{{item.FilialeLessMoney}}元
</span><span
v-if=
"item.FilialeLessPercent!=null"
>
{{item.FilialeLessPercent}}%
</span>
<span
v-if=
"item.FilialeLessMoney!=null"
style=
"margin-right:30px;"
>
{{item.FilialeLessMoney}}元
</span><span
v-if=
"item.FilialeLessPercent!=null"
>
{{item.FilialeLessPercent}}%
</span>
</td>
</tr>
</table>
<div
class=
"noData"
v-else
>
{{$t('system.content_noData')}}
{{$t('system.content_noData')}}
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"hollowFixedBtn"
@
click=
"lessPriceVisible=false"
>
{{$t('pub.cancelBtn')}}
</button>
<button
class=
"hollowFixedBtn"
@
click=
"lessPriceVisible=false"
>
{{$t('pub.cancelBtn')}}
</button>
</div>
</el-dialog>
...
...
@@ -945,8 +974,8 @@
}
},
//少价规则
lessPriceVisible
:
false
,
lessPriceData
:[],
lessPriceVisible
:
false
,
lessPriceData
:
[],
};
},
methods
:
{
...
...
@@ -1135,7 +1164,7 @@
if
(
this
.
priceData
.
AirticketBindList
.
length
>
0
)
{
this
.
QFlightDateStart
=
this
.
priceData
.
AirticketBindList
[
0
].
FlightDate
;
this
.
QFlightDateEnd
=
this
.
priceData
.
AirticketBindList
[
this
.
priceData
.
AirticketBindList
.
length
-
1
]
.
FlightDate
;
.
FlightDate
;
this
.
getSelectFilght
();
}
else
{
this
.
QFlightDateStart
=
this
.
daysCalculate
(
this
.
priceData
.
StartDate
,
-
1
);
...
...
@@ -1160,7 +1189,7 @@
QFlightDateEnd
:
this
.
QFlightDateEnd
,
CreateBy
:
createBy
,
AirTicketId
:
this
.
priceData
.
AirTicketId
,
TCID
:
this
.
priceData
.
TCID
TCID
:
this
.
priceData
.
TCID
};
let
that
=
this
;
...
...
@@ -1437,11 +1466,10 @@
parseInt
(
this
.
priceData
.
YSeat
)
+
parseInt
(
this
.
priceData
.
CSeat
)
+
parseInt
(
this
.
priceData
.
FSeat
);
if
(
Number
(
fitem
.
TicketNum
)
-
Number
(
fitem
.
OtherTeamUseNum
)
<
Number
(
fitem
.
BindNum
))
{
fitem
.
BindNum
=
0
;
this
.
Error
(
"最多只能绑定"
+
(
Number
(
fitem
.
TicketNum
)
-
Number
(
fitem
.
OtherTeamUseNum
))
+
"个机位"
);
}
if
(
Number
(
fitem
.
TicketNum
)
-
Number
(
fitem
.
OtherTeamUseNum
)
<
Number
(
fitem
.
BindNum
))
{
fitem
.
BindNum
=
0
;
this
.
Error
(
"最多只能绑定"
+
(
Number
(
fitem
.
TicketNum
)
-
Number
(
fitem
.
OtherTeamUseNum
))
+
"个机位"
);
}
this
.
selectFilghtList
.
forEach
((
x
,
index
)
=>
{
if
(
x
.
IsSelected
)
{
this
.
priceData
.
AirticketBindList
.
forEach
(
y
=>
{
...
...
@@ -1522,13 +1550,13 @@
},
//保存酒店使用情况
saveHoteluseDetail
()
{
var
that
=
this
;
this
.
Confirm
(
"是否确定提交选中的酒店?"
,
function
()
{
var
that
=
this
;
this
.
Confirm
(
"是否确定提交选中的酒店?"
,
function
()
{
if
(
that
.
isSaved
)
{
that
.
isSaved
=
false
;
that
.
$emit
(
"saveMsg"
);
}
that
.
btnText
=
'保存中...'
that
.
isSaved
=
false
;
that
.
$emit
(
"saveMsg"
);
}
that
.
btnText
=
'保存中...'
});
},
//取消
...
...
@@ -1570,16 +1598,16 @@
}
},
//获取少价信息
getLessPriceInfo
(){
getLessPriceInfo
()
{
let
msg
=
{
RB_Branch_id
:
this
.
priceData
.
OutBranchId
,
LineID
:
this
.
PostConfig
.
LineId
,
LineTeamId
:
this
.
PostConfig
.
LineteamId
RB_Branch_id
:
this
.
priceData
.
OutBranchId
,
LineID
:
this
.
PostConfig
.
LineId
,
LineTeamId
:
this
.
PostConfig
.
LineteamId
}
this
.
apipost
(
"sell_get_GetNewTCIDLessprice"
,
msg
,
res
=>
{
this
.
apipost
(
"sell_get_GetNewTCIDLessprice"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
lessPriceData
=
res
.
data
.
data
;
}
else
{
this
.
lessPriceData
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
...
...
@@ -1650,4 +1678,5 @@
TravelPriceFlightList
:
TravelPriceFlightList
}
};
</
script
>
\ No newline at end of file
</
script
>
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