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
8f3a7211
Commit
8f3a7211
authored
5 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
434c1c55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
43 deletions
+51
-43
HotelQueryList.vue
src/components/Hotel/HotelQueryList.vue
+4
-2
HotelQueryList.vue
src/components/Supplier/HotelQueryList.vue
+4
-2
SupplierIndex.vue
src/components/SupplierIndex.vue
+43
-39
No files found.
src/components/Hotel/HotelQueryList.vue
View file @
8f3a7211
...
...
@@ -299,11 +299,13 @@
pageIndex
:
1
,
pageSize
:
5
,
currentPage
:
1
,
total
:
0
total
:
0
,
OpType
:
0
},
postMsg
:
{
Id
:
0
,
TipContent
:
''
TipContent
:
''
,
OpType
:
0
,
},
//默认显示弹窗信息
showHQinfo
:
true
,
...
...
This diff is collapsed.
Click to expand it.
src/components/Supplier/HotelQueryList.vue
View file @
8f3a7211
...
...
@@ -288,11 +288,13 @@
pageIndex
:
1
,
pageSize
:
5
,
currentPage
:
1
,
total
:
0
total
:
0
,
OpType
:
1
,
},
postMsg
:
{
Id
:
0
,
TipContent
:
''
TipContent
:
''
,
OpType
:
1
},
//默认显示弹窗信息
showHQinfo
:
true
,
...
...
This diff is collapsed.
Click to expand it.
src/components/SupplierIndex.vue
View file @
8f3a7211
...
...
@@ -63,7 +63,8 @@
<el-select
v-model=
"msg.Province"
filterable
@
change=
"getProvinceList(msg.Province,2)"
:placeholder=
"$t('hotel.hotel_province')"
>
<el-option
:key=
"0"
:value=
"0"
label=
"请选择"
></el-option>
<el-option
v-for=
"item in provinceList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
<el-option
v-for=
"item in provinceList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
<el-select
v-model=
"msg.City"
filterable
:placeholder=
"$t('hotel.hotel_city')"
>
<el-option
:key=
"0"
:value=
"0"
label=
"请选择"
></el-option>
...
...
@@ -107,17 +108,19 @@
</span>
</li>
<li><span><em>
日期
</em>
<el-date-picker
v-model=
'msg.StartDate'
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"beforeCheck"
>
<el-date-picker
v-model=
'msg.StartDate'
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"beforeCheck"
>
</el-date-picker>
<el-date-picker
v-model=
'msg.EndDate'
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"afterCheck"
>
<el-date-picker
v-model=
'msg.EndDate'
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"afterCheck"
>
</el-date-picker>
</span>
</li>
<li>
<span>
<em>
酒店
</em>
<el-select
v-model=
"msg.HotelChooseArray"
:placeholder=
"$t('pub.pleaseSel')"
class=
"multiple_input w300"
filterable
multiple
:multiple-limit=
"3"
>
<el-select
v-model=
"msg.HotelChooseArray"
:placeholder=
"$t('pub.pleaseSel')"
class=
"multiple_input w300"
filterable
multiple
:multiple-limit=
"3"
>
<el-option
v-for=
"item in HotelList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
</span>
...
...
@@ -141,7 +144,8 @@
<span
style=
"color:#000000;background-color: #02F78E;padding:2px 4px;border-radius:5px"
>
特别价
</span>
</div>
<template
v-if=
"isShow"
>
<el-table
v-if=
"dataList.length>0"
:data=
"dataList"
style=
"width:100%"
border
v-loading=
'loading'
:height=
"tableHeight"
>
<el-table
v-if=
"dataList.length>0"
:data=
"dataList"
style=
"width:100%"
border
v-loading=
'loading'
:height=
"tableHeight"
>
<el-table-column
fixed
label=
"酒店名称"
min-width=
"180"
>
<template
slot-scope=
"scope"
>
<div
style=
"text-decoration: underline;cursor:pointer"
>
...
...
@@ -156,22 +160,22 @@
<div
class=
"Hotel_kong"
>
超定
</div>
</
template
>
</el-table-column>
<el-table-column
v-for=
'(item,index) in dataList[0].subList'
:label=
"getDateList(item.DateStr)"
:key=
'index'
min-width=
"120"
>
<el-table-column
v-for=
'(item,index) in dataList[0].subList'
:label=
"getDateList(item.DateStr)"
:key=
'index'
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
<div
class=
"Hotel_kong Com_hoteldiv"
>
<template
v-if=
"scope.row.subList[index].PriceList.length>0"
>
<template
v-for=
"childItem in scope.row.subList[index].PriceList"
>
<div
:class=
"getClass(1,childItem.InventoryType)"
style=
"height:100%;float:left;width:100%"
:style=
"
{width:(100/scope.row.subList[index].PriceList.length)+'%'}">
{{
childItem
.
CostPrice
}}
</div>
:style=
"
{width:(100/scope.row.subList[index].PriceList.length)+'%'}">
{{
childItem
.
CostPrice
}}
</div>
</
template
>
</template>
<
template
v-else
>
<div
:class=
"getClass(0,0)"
style=
"width:100%;height:100%"
>
</div>
</
template
>
</div>
<div
class=
"Hotel_kong Com_hoteldiv Hq_duoge"
>
<div
class=
"Hotel_kong Com_hoteldiv Hq_duoge"
>
{{scope.row.subList[index].Inventory}}/{{scope.row.subList[index].UseInventory}}/{{scope.row.subList[index].RemainingInventory}}
</div>
<div
class=
"Hotel_kong Com_hoteldiv"
>
...
...
@@ -242,7 +246,8 @@
<el-button
type=
"primary"
icon=
"el-icon-edit"
circle
@
click=
"GetHotelTip(item.Id)"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"RemoveHotelTip(item.Id)"
></el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
circle
@
click=
"RemoveHotelTip(item.Id)"
>
</el-button>
</el-tooltip>
</td>
</tr>
...
...
@@ -315,8 +320,8 @@
icon
:
'this.src="'
+
require
(
"../assets/img/NotificationIcon.png"
)
+
'"'
,
allWindowWidth
:
''
,
showPage
:
true
,
tableHeight
:
0
,
showPage
:
true
,
tableHeight
:
0
,
msg
:
{
//酒店选择数组
HotelChooseArray
:
[],
...
...
@@ -366,7 +371,8 @@
pageIndex
:
1
,
pageSize
:
5
,
currentPage
:
1
,
total
:
0
total
:
0
,
OpType
:
1
,
},
postMsg
:
{
Id
:
0
,
...
...
@@ -402,13 +408,10 @@
]
}
},
};
},
created
()
{
this
.
userInfo
=
this
.
getLocalStorageSupplier
();
console
.
log
(
"userInfo"
,
this
.
userInfo
);
let
language
=
localStorage
.
language
;
if
(
!
language
)
{
this
.
language
=
'zh-CN'
;
...
...
@@ -446,7 +449,9 @@
this
.
$store
.
dispatch
(
"logout"
)
localStorage
.
removeItem
(
"userInfo"
);
localStorage
.
removeItem
(
"previousPathInfo"
);
this
.
$router
.
push
({
path
:
"/SupplierLogin"
});
this
.
$router
.
push
({
path
:
"/SupplierLogin"
});
},
settingSys
:
function
()
{
this
.
MsgBus
.
$emit
(
'settingOpen'
)
...
...
@@ -682,16 +687,16 @@
this
.
loading
=
false
;
});
},
com_onresize
(){
com_onresize
()
{
//clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
var
contentsHeight
=
document
.
body
.
clientHeight
;
var
contentsHeight
=
document
.
body
.
clientHeight
;
var
h
=
contentsHeight
-
50
-
80
;
if
(
h
<
110
){
return
;
}
//设置table的行高
this
.
tableHeight
=
h
;
if
(
h
<
110
)
{
return
;
}
//设置table的行高
this
.
tableHeight
=
h
;
}
},
mounted
()
{
document
.
title
=
this
.
userInfo
.
GroupName
;
...
...
@@ -702,21 +707,21 @@
this
.
GetHotelList
();
this
.
getList
();
this
.
GetHotelTipList
();
var
url
=
window
.
location
.
href
;
if
(
String
(
url
).
indexOf
(
'SupplierIndex'
)
>=
0
)
{
this
.
showPage
=
true
;
}
else
{
this
.
showPage
=
false
;
var
url
=
window
.
location
.
href
;
if
(
String
(
url
).
indexOf
(
'SupplierIndex'
)
>=
0
)
{
this
.
showPage
=
true
;
}
else
{
this
.
showPage
=
false
;
};
this
.
com_onresize
();
window
.
onresize
=
()
=>
{
this
.
com_onresize
();
this
.
com_onresize
();
}
},
watch
:{
$route
(
val
)
{
this
.
showPage
=
false
;
}
watch
:
{
$route
(
val
)
{
this
.
showPage
=
false
;
}
}
};
...
...
@@ -1054,7 +1059,7 @@
}
.Hq_duoge {
.Hq_duoge {
cursor: pointer;
text-decoration: underline;
}
...
...
@@ -1065,7 +1070,7 @@
.classHong {
background-color: rgb(255, 55, 55);
color:#fff;
color:
#fff;
}
.classWang {
...
...
@@ -1180,5 +1185,4 @@
padding: 0;
}
</
style
>
This diff is collapsed.
Click to expand it.
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