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
d1f163c0
Commit
d1f163c0
authored
Jun 13, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改增加链接
parent
0cef192f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
25 deletions
+38
-25
comCheckHotel.vue
src/components/commonPage/comCheckHotel.vue
+38
-25
No files found.
src/components/commonPage/comCheckHotel.vue
View file @
d1f163c0
<
style
>
.comCheckHotel
>
div
{
.comCheckHotel
.comCheckHotel
{
width
:
100%
;
height
:
150px
;
overflow
:
auto
}
.comCk_list
{
cursor
:
pointer
;
.comCheckHotel
.comCk_list
{
padding
:
0
20px
;
margin
:
0
15px
5px
0
;
}
.cm_Inventory
{
.c
omCheckHotel
.c
m_Inventory
{
margin-left
:
20px
;
color
:
red
;
display
:
inline-block
;
}
.cm_hotelTitle
{
.c
omCheckHotel
.c
m_hotelTitle
{
width
:
100%
;
text-align
:
center
;
margin-bottom
:
20px
;
...
...
@@ -26,15 +25,15 @@
padding
:
0
20px
10px
20px
;
}
.com_SaveBtn
{
.com
CheckHotel
.com
_SaveBtn
{
margin
:
10px
20px
0
45%
;
}
.ckedList
{
.c
omCheckHotel
.c
kedList
{
background-color
:
#E95252
;
color
:
#fff
;
}
.Ck_hotelInfo
{
.
comCheckHotel
.
Ck_hotelInfo
{
width
:
100%
;
height
:
40px
;
background-color
:
#F6F8FB
;
...
...
@@ -42,10 +41,15 @@
line-height
:
40px
;
margin-bottom
:
10px
;
}
.comCheckHotel
.ck_goUrl
{
color
:
blue
;
cursor
:
pointer
;
margin-left
:
10px
;
}
</
style
>
<
template
>
<div>
<div
class=
"comCheckHotel"
>
<div
class=
"Ck_hotelInfo"
>
<span
style=
"color:red"
>
{{
UseDate
}}
</span>
酒店库存信息
</div>
...
...
@@ -61,13 +65,11 @@
<el-tabs
type=
"border-card"
v-loading=
"loading"
v-if=
"IsShow"
>
<el-tab-pane
:label=
"item.ProvinceName"
v-for=
"(item,index) in dataList"
>
<div
class=
"clearfix comCheckHotel"
>
<div>
<div
class=
"comCk_list"
v-for=
"(subItem,subIndex) in item.HotelList"
>
<input
type=
"checkbox"
v-model=
"subItem.isChecked"
@
click=
"getCheck(item.HotelList,subIndex)"
style=
""
/>
<input
type=
"checkbox"
v-model=
"subItem.isChecked"
@
click=
"getCheck(item.HotelList,subIndex)"
/>
{{
subItem
.
Name
}}
<span
class=
"cm_Inventory"
>
{{
subItem
.
Inventory
}}
</span>
<span
class=
"ck_goUrl"
@
click=
"goUrl(subItem.ID)"
>
新增库存
</span>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
...
...
@@ -85,6 +87,7 @@
ProvinceList
:
[],
ProvinceId
:
0
,
//选择个省份编号
IsShow
:
false
,
ckedHotel
:{}
};
},
methods
:
{
...
...
@@ -119,6 +122,7 @@
hotelList
.
forEach
((
x
,
subIndex
)
=>
{
if
(
index
==
subIndex
)
{
x
.
isChecked
=
!
x
.
isChecked
;
this
.
ckedHotel
=
x
;
}
else
{
x
.
isChecked
=
false
;
}
...
...
@@ -128,18 +132,14 @@
//向父组件传递选中酒店
sendCkedHotel
()
{
var
ckHotelObj
=
{};
this
.
dataList
.
forEach
((
x
,
index
)
=>
{
x
.
HotelList
.
forEach
(
subItem
=>
{
if
(
subItem
.
isChecked
)
{
ckHotelObj
.
ID
=
subItem
.
ID
;
ckHotelObj
.
Address
=
subItem
.
Address
;
ckHotelObj
.
Inventory
=
subItem
.
Inventory
;
ckHotelObj
.
Name
=
subItem
.
Name
;
ckHotelObj
.
PayStyle
=
subItem
.
PayStyle
;
ckHotelObj
.
Tel
=
subItem
.
Tel
;
}
});
})
if
(
this
.
ckedHotel
){
ckHotelObj
.
ID
=
this
.
ckedHotel
.
ID
;
ckHotelObj
.
Address
=
this
.
ckedHotel
.
Address
;
ckHotelObj
.
Inventory
=
this
.
ckedHotel
.
Inventory
;
ckHotelObj
.
Name
=
this
.
ckedHotel
.
Name
;
ckHotelObj
.
PayStyle
=
this
.
ckedHotel
.
PayStyle
;
ckHotelObj
.
Tel
=
this
.
ckedHotel
.
Tel
;
}
this
.
$emit
(
"childHotel"
,
ckHotelObj
);
},
//获取日本下面的市->下拉框用
...
...
@@ -157,6 +157,19 @@
err
=>
{}
);
},
goUrl
(
ID
){
this
.
$router
.
push
({
path
:
'HotelProductManage2'
,
query
:
{
id
:
ID
,
Country
:
651
,
IsSelfBook
:
1
,
blank
:
'y'
,
tab
:
'报价详情'
}
});
}
},
mounted
()
{
this
.
getProvinceList
();
...
...
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