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
574635d9
Commit
574635d9
authored
Jul 08, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a955c623
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
54 deletions
+46
-54
commonPriceHotelInfo.vue
src/components/commonPage/commonPriceHotelInfo.vue
+38
-43
TravelPrice.vue
...nents/newTravelmanager/TravelGroupControl/TravelPrice.vue
+8
-11
No files found.
src/components/commonPage/commonPriceHotelInfo.vue
View file @
574635d9
<
style
>
<
style
>
.comHotelOperation
{
margin-top
:
10px
;
}
.comHotelOperation
tr
td
{
text-align
:
left
;
width
:
50%
;
padding
:
5px
0
;
}
.comHotelOperation
.tdRight
{
text-align
:
right
;
width
:
20%
;
}
.comHotelOperation
.tdLeft
{
text-align
:
left
;
padding-left
:
5px
;
width
:
30%
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div>
<div
class=
"commonPriceHotelInfo"
>
<div>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"singeRowTable"
>
<table
width=
"100%"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"singeRowTable"
v-loading=
"loading"
>
<tr>
<tr>
<th
width=
"120"
>
日期
</th>
<th
width=
"100"
>
日期
</th>
<th
style=
"width:150px;"
>
团期
</th>
<th
width=
"135"
>
占房时间
</th>
<th
style=
"width:100px;"
>
状态
</th>
<th
width=
"120"
>
团期
</th>
<th
width=
"80"
>
总库存
</th>
<th
width=
"80"
>
使用库存
</th>
<th
width=
"80"
>
状态
</th>
</tr>
<tr
v-for=
"(item,index) in HotelPriceList"
>
<td>
{{
item
.
UseTimeStr
}}
</td>
<td>
{{
item
.
CreateTimeStr
}}
</td>
<td>
{{
item
.
TCNUM
}}
</td>
<td>
{{
item
.
Inventory
}}
</td>
<td>
{{
item
.
LastUseNum
}}
</td>
<td>
<template
v-if=
"item.Status==1"
><span
style=
"color:green;"
>
OK
</span></
template
>
<
template
v-else
><span
style=
"color:red;"
>
暂定
</span></
template
>
</td>
</tr>
</tr>
<template
v-for=
"(item,index) in HotelPriceList"
>
<tr
>
</tr>
</
template
>
</table>
</table>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
HotelPriceList
:[],
HotelPriceList
:
[],
queryMsg
:{
queryMsg
:
{
HotelId
:
0
,
HotelId
:
0
,
UseTime
:
""
,
UseTime
:
""
,
}
}
};
};
},
},
methods
:
{
methods
:
{
//获取日志
//获取日志
getHotelPriceList
(
HotelId
,
timeStr
)
{
getHotelPriceList
(
HotelId
,
timeStr
)
{
this
.
HotelPriceList
=
[];
this
.
HotelPriceList
=
[];
this
.
loading
=
true
;
this
.
loading
=
true
;
if
(
HotelId
)
{
if
(
HotelId
)
{
this
.
queryMsg
.
HotelId
=
HotelId
;
this
.
queryMsg
.
HotelId
=
HotelId
;
...
@@ -66,11 +60,12 @@
...
@@ -66,11 +60,12 @@
if
(
timeStr
)
{
if
(
timeStr
)
{
this
.
queryMsg
.
UseTime
=
timeStr
;
this
.
queryMsg
.
UseTime
=
timeStr
;
}
}
this
.
apipost
(
'travel_get_GetHotelUsePriceListService'
,
this
.
queryMsg
,
res
=>
{
this
.
apipost
(
'travel_get_GetHotelUsePriceListService'
,
this
.
queryMsg
,
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Hotel
Logs
List
=
res
.
data
.
data
;
this
.
Hotel
Price
List
=
res
.
data
.
data
;
console
.
log
(
"this.Hotel
LogsList"
,
this
.
HotelLogs
List
);
console
.
log
(
"this.Hotel
PriceList"
,
this
.
HotelPrice
List
);
}
}
},
err
=>
{})
},
err
=>
{})
},
},
...
...
src/components/newTravelmanager/TravelGroupControl/TravelPrice.vue
View file @
574635d9
...
@@ -810,7 +810,7 @@
...
@@ -810,7 +810,7 @@
<th
width=
"240"
>
酒店情况
</th>
<th
width=
"240"
>
酒店情况
</th>
<th
width=
"100"
>
占房时间
</th>
<th
width=
"100"
>
占房时间
</th>
<th
width=
"100"
>
更换酒店
</th>
<th
width=
"100"
>
更换酒店
</th>
<th
width=
"
6
0"
>
操作
</th>
<th
width=
"
12
0"
>
操作
</th>
</tr>
</tr>
<
template
v-for=
"(subItem,subIndex) in priceData.PriceHotelList"
>
<
template
v-for=
"(subItem,subIndex) in priceData.PriceHotelList"
>
<tr
v-for=
"(childItem,childIndex) in subItem.SubList"
>
<tr
v-for=
"(childItem,childIndex) in subItem.SubList"
>
...
@@ -859,8 +859,8 @@
...
@@ -859,8 +859,8 @@
<span
v-if=
"childItem.UseCount>0 && subItem.SubList.length==1"
>
<span
v-if=
"childItem.UseCount>0 && subItem.SubList.length==1"
>
<span
style=
"color:red;white-space:nowrap;cursor:pointer;"
@
click=
"DeleteStock(subItem)"
>
删除
</span>
<span
style=
"color:red;white-space:nowrap;cursor:pointer;"
@
click=
"DeleteStock(subItem)"
>
删除
</span>
</span>
</span>
<span>
<span
style=
"display:none;"
>
<el-popover
width=
"
3
00"
trigger=
"click"
popper-class=
"DMC_HotelPop"
>
<el-popover
width=
"
7
00"
trigger=
"click"
popper-class=
"DMC_HotelPop"
>
<commonPHInfo
:name=
'"comPriceHotelInfo"+subIndex+childIndex'
:ref=
'"comPriceHotelInfo"+subIndex+childIndex'
></commonPHInfo>
<commonPHInfo
:name=
'"comPriceHotelInfo"+subIndex+childIndex'
:ref=
'"comPriceHotelInfo"+subIndex+childIndex'
></commonPHInfo>
<span
slot=
"reference"
class=
"price"
style=
"cursor:pointer;text-decoration:underline;"
@
click=
"GetHotelUsePriceList(childItem.HotelId,subItem.UseDay,subIndex,childIndex)"
>
库存情况
</span>
<span
slot=
"reference"
class=
"price"
style=
"cursor:pointer;text-decoration:underline;"
@
click=
"GetHotelUsePriceList(childItem.HotelId,subItem.UseDay,subIndex,childIndex)"
>
库存情况
</span>
</el-popover>
</el-popover>
...
@@ -919,8 +919,8 @@
...
@@ -919,8 +919,8 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
commonPHlInfo
from
"../../commonPage/commonPriceHotelInfo.vue"
;
import
TravelPriceFlightList
from
"../TravelGroupControl/TravelPriceFlightList.vue"
;
import
TravelPriceFlightList
from
"../TravelGroupControl/TravelPriceFlightList.vue"
;
import
commonPriceHotelInfo
from
"../../commonPage/commonPriceHotelInfo.vue"
;
export
default
{
export
default
{
props
:
[
"priceList"
,
"priceIsDirect"
,
"OfferList"
,
"PostConfig"
,
"modifyTcid"
,
"TeamType"
],
props
:
[
"priceList"
,
"priceIsDirect"
,
"OfferList"
,
"PostConfig"
,
"modifyTcid"
,
"TeamType"
],
data
()
{
data
()
{
...
@@ -1014,16 +1014,12 @@
...
@@ -1014,16 +1014,12 @@
lessPriceData
:
[],
lessPriceData
:
[],
};
};
},
},
components
:
{
commonPHInfo
:
commonPriceHotelInfo
},
methods
:
{
methods
:
{
//调用子组件方法
//调用子组件方法
GetHotelUsePriceList
(
HotelId
,
UseDay
,
index
,
hotelSubIndex
)
GetHotelUsePriceList
(
HotelId
,
UseDay
,
index
,
hotelSubIndex
)
{
{
// let str = `comPriceHotelInfo${index}${hotelSubIndex}`;
let
str
=
`comPriceHotelInfo
${
index
}${
hotelSubIndex
}
`
;
// console.log(this.$refs[str]);
this
.
$refs
[
str
][
0
].
getHotelPriceList
(
HotelId
,
UseDay
);
// this.$refs[str][0].getHotelPriceList(HotelId, UseDay);
},
},
//点击折叠
//点击折叠
fold
()
{
fold
()
{
...
@@ -1753,7 +1749,8 @@
...
@@ -1753,7 +1749,8 @@
}
}
},
},
components
:
{
components
:
{
TravelPriceFlightList
:
TravelPriceFlightList
TravelPriceFlightList
:
TravelPriceFlightList
,
commonPHInfo
:
commonPHlInfo
}
}
};
};
...
...
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