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
2b89eddd
Commit
2b89eddd
authored
Dec 18, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
457b1420
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
20 deletions
+81
-20
BusInfo.vue
src/components/busManagement/BusInfo.vue
+81
-20
No files found.
src/components/busManagement/BusInfo.vue
View file @
2b89eddd
...
...
@@ -174,7 +174,7 @@
<th>
{{
$t
(
'visa.v_tuanhao'
)
}}
</th>
<th>
{{
$t
(
'visa.v_hangban'
)
}}
</th>
</tr>
<tr
v-for=
"
item in CommonList
"
>
<tr
v-for=
"
(item,index) in CommonList"
:key=
"index
"
>
<td>
{{
item
.
InOut
}}
</td>
<td>
{{
item
.
GuestNum
}}
</td>
<td>
{{
item
.
TotalSeat
}}
</td>
...
...
@@ -184,7 +184,7 @@
<p
class=
"busInfoP"
@
click=
"goUrlT('TravelControlList',item.TCNUM,'团控列表')"
>
{{
item
.
TCNUM
}}
</p>
</td>
<td>
<div
v-for=
"
subItem in item.FlightList
"
>
<div
v-for=
"
(subItem,subIndex) in item.FlightList"
:key=
"subIndex
"
>
<span
style=
"height:25px; line-height:25px;"
>
<a
style=
"color: #ff0066;font-weight: bold;"
>
{{
subItem
.
Flight_number
}}
</a>
{{
subItem
.
FlightDateStr
}}
{{
subItem
.
Departure_time
}}
{{
subItem
.
dName
}}
{{
subItem
.
TicketArrivalTime
}}
{{
subItem
.
aName
}}
...
...
@@ -204,8 +204,8 @@
</td>
<td>
{{
$t
(
'ground.huisongfei'
)
}}
</td>
<td
colspan=
"4"
align=
"left"
style=
"padding-left:5px;"
>
<el-input
v-model=
"PostData.BackFee"
@
keyup
.
native=
"checkPrice(PostData,'BackFee')"
:placeholder=
"$t('ground.shuruhsf')"
maxlength=
"10"
class=
'w135'
></el-input>
<el-input
v-model=
"PostData.BackFee"
@
keyup
.
native=
"checkPrice(PostData,'BackFee')"
:placeholder=
"$t('ground.shuruhsf')"
maxlength=
"10"
class=
'w135'
></el-input>
</td>
</tr>
</tfoot>
...
...
@@ -218,11 +218,11 @@
<el-table-column
fixed
:label=
"$t('sm.yongchejihua')"
min-width=
"185"
>
<template
slot-scope=
"scope"
>
<!--
{{
scope
.
$index
+
1
}}
-->
<div
v-for=
"(subItem,subIndex) in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<div
v-for=
"(subItem,subIndex) in scope.row.BusPlanOrderList"
class=
"comBTM"
:key=
"subIndex"
>
<em>
<!--接机送机-->
<el-select
class=
"w120"
:placeholder=
"$t('pub.pleaseSel')"
v-model=
"subItem.AirportPickUp"
:disabled=
"forbidInput"
@
change=
"getBusPrice(subItem)"
>
<el-select
class=
"w120"
:placeholder=
"$t('pub.pleaseSel')"
v-model=
"subItem.AirportPickUp"
:disabled=
"forbidInput"
@
change=
"getBusPrice(subItem)"
>
<el-option
:key=
"0"
:value=
"0"
:label=
"$t('pub.pleaseSel')"
></el-option>
<el-option
v-for=
"childitem in BusAirportPickUpList"
:key=
"childitem.Id"
:label=
"childitem.Name"
:value=
"childitem.Id"
>
...
...
@@ -239,6 +239,33 @@
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"套团团号"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"(subItem,subIndex) in scope.row.BusPlanOrderList"
class=
"comBTM"
:key=
"subIndex"
style=
"border:1px solid red"
>
<template
v-if=
"subItem.AirportPickUp==15"
>
<div
v-for=
"(childItem,childIndex) in subItem.MergeList"
:key=
"childIndex"
>
<em>
<!--@change="GetTravelPrice(subItem)"-->
<el-select
class=
"w120"
:placeholder=
"$t('pub.pleaseSel')"
v-model=
"childItem.MTCID"
@
visible-change=
"GetPriceList(subItem)"
@
change=
"GetPriceChange(subItem,childItem)"
>
<el-option
:key=
"0"
:value=
"0"
:label=
"$t('pub.pleaseSel')"
></el-option>
<el-option
v-for=
"pItem in subItem.PriceList"
:key=
"pItem.TCID"
:label=
"pItem.TCNUM"
:value=
"pItem.TCID"
></el-option>
</el-select>
</em>
<span
style=
"display:inline-block;margin-left:5px;"
>
<a
@
click=
"DeleteMergeSubItem(subItem.MergeList,childIndex)"
style=
"color:blue;cursor:pointer"
>
{{
$t
(
'system.table_delete'
)
}}
</a>
</span>
</div>
<span
style=
"display:inline-block;margin-left:5px;"
v-if=
"subIndex==0"
>
<a
@
click=
"AddMergeSubItem(subItem.MergeList)"
style=
"color:blue;cursor:pointer"
>
{{
$t
(
'fnc.tianjia'
)
}}
</a>
</span>
</
template
>
</div>
</template>
</el-table-column>
<el-table-column
:label=
"$t('ground.sijiName')"
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
...
...
@@ -274,8 +301,8 @@
<el-table-column
:label=
"$t('ground.busType')"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<el-select
filterable
:placeholder=
"$t('pub.pleaseSel')"
v-model=
"subItem.BusType"
:disabled=
"forbidInput"
@
change=
'getBusPrice(subItem)'
>
<el-select
filterable
:placeholder=
"$t('pub.pleaseSel')"
v-model=
"subItem.BusType"
:disabled=
"forbidInput"
@
change=
'getBusPrice(subItem)'
>
<el-option
:key=
"0"
:value=
"0"
:label=
"$t('pub.pleaseSel')"
></el-option>
<el-option
v-for=
"item in BusTypeList"
:key=
"item.Id"
:label=
"item.newName"
:value=
"item.Id"
>
</el-option>
...
...
@@ -299,14 +326,7 @@
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('ground.htzfth')"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<el-input
class=
'w120'
type=
"text"
v-model=
'subItem.PayTypeTCNUM'
v-show=
"subItem.PayType==6"
>
</el-input>
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('ground.dingtuanhao')"
min-width=
"215"
>
<
template
slot-scope=
"scope"
>
<div
class=
"comBTM"
v-for=
"(subItem,subIndex) in scope.row.BusPlanOrderList"
>
...
...
@@ -332,7 +352,8 @@
<span
class=
"subName"
:class=
"
{'spanCked':childItem.AccommodationType==subItem.Id}"
@click="AccommodationCLick(subItem.Id,childItem)">
{{
subItem
.
Name
}}
</span>
<span
v-if=
"subItem.Id==1 && childItem.AccommodationType==1"
>
<el-input
style=
"margin-top:13px;"
v-model=
"childItem.AccommodationRemark"
:placeholder=
"$t('ground.qsrwsdz')"
>
<el-input
style=
"margin-top:13px;"
v-model=
"childItem.AccommodationRemark"
:placeholder=
"$t('ground.qsrwsdz')"
>
</el-input>
</span>
</span>
...
...
@@ -350,7 +371,8 @@
<
template
slot-scope=
"scope"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<el-input
v-model=
"subItem.HighSpeedPrice"
@
keyup
.
native=
"checkPrice(subItem,'HighSpeedPrice')"
:placeholder=
"$t('ground.qsrfyong')"
:disabled=
"isShowBtn==1||IsEditBus==0?true:false"
class=
'w135'
></el-input>
:placeholder=
"$t('ground.qsrfyong')"
:disabled=
"isShowBtn==1||IsEditBus==0?true:false"
class=
'w135'
>
</el-input>
</div>
</
template
>
</el-table-column>
...
...
@@ -384,7 +406,8 @@
<
template
slot-scope=
"scope"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<el-input
v-model=
"subItem.CostPrice"
:disabled=
"isShowBtn==1||IsEditBus==0?true:false"
@
keyup
.
native=
"checkPrice(subItem,'CostPrice')"
:placeholder=
"$t('ground.qingshurcbj')"
class=
"w135"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'CostPrice')"
:placeholder=
"$t('ground.qingshurcbj')"
class=
"w135"
>
</el-input>
</div>
</
template
>
</el-table-column>
...
...
@@ -552,6 +575,44 @@
};
},
methods
:
{
//获取团期列表
GetPriceList
(
obj
)
{
this
.
apipost
(
"bus_get_GetBusTravelPriceList"
,
{
StartDate
:
this
.
parametersData
.
StartDate
,
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
obj
.
PriceList
=
res
.
data
.
data
;
}
},
null
);
},
GetPriceChange
(
obj
,
childItem
)
{
var
pObj
=
obj
.
PriceList
.
find
(
qitem
=>
{
return
qitem
.
TCID
===
childItem
.
MTCID
;
});
if
(
pObj
)
{
childItem
.
MTCNUM
=
pObj
.
TCNUM
;
}
},
//删除拼团
DeleteMergeSubItem
(
list
,
index
)
{
list
.
splice
(
index
,
1
);
},
//添加拼团
AddMergeSubItem
(
list
)
{
list
.
push
({
ID
:
0
,
PlanId
:
0
,
MTCID
:
0
,
MTCNUM
:
""
});
},
PayTypeChange
(
obj
)
{
if
(
obj
.
PayType
==
7
)
{
obj
.
CostPrice
=
0
;
...
...
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