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
033e07e4
Commit
033e07e4
authored
Apr 09, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改链接样式
parent
328e3803
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
26 deletions
+31
-26
HotelQueryList.vue
src/components/Hotel/HotelQueryList.vue
+31
-26
No files found.
src/components/Hotel/HotelQueryList.vue
View file @
033e07e4
...
@@ -56,10 +56,9 @@
...
@@ -56,10 +56,9 @@
<div
class=
"Hotel_kong"
>
超定
</div>
<div
class=
"Hotel_kong"
>
超定
</div>
</td>
</td>
<td
v-for=
"(subItem,subIndex) in item.subList"
>
<td
v-for=
"(subItem,subIndex) in item.subList"
>
<div
class=
"Hotel_kong Com_hoteldiv"
:class=
"
{'noKucun':subItem.Status==0,'classHong':subItem.InventoryType==1,
<div
class=
"Hotel_kong Com_hoteldiv"
:class=
"getClass(subItem)"
>
'classWang':subItem.InventoryType==2,'classPing':subItem.InventoryType==3,'classDan':subItem.InventoryType==4,'classTe':subItem.InventoryType==5}">
{{
subItem
.
CostPrice
}}
</div>
{{
subItem
.
CostPrice
}}
</div>
<div
class=
"Hotel_kong Com_hoteldiv"
@
click=
"GotoUrl(item,subIndex)"
>
<div
class=
"Hotel_kong Com_hoteldiv
Hq_duoge
"
@
click=
"GotoUrl(item,subIndex)"
>
{{
subItem
.
Inventory
}}
/
{{
subItem
.
UseInventory
}}
/
{{
subItem
.
RemainingInventory
}}
</div>
{{
subItem
.
Inventory
}}
/
{{
subItem
.
UseInventory
}}
/
{{
subItem
.
RemainingInventory
}}
</div>
<div
class=
"Hotel_kong Com_hoteldiv"
>
<div
class=
"Hotel_kong Com_hoteldiv"
>
<span
v-if=
"subItem.UseInventory-subItem.Inventory>0"
style=
"color:red;"
>
<span
v-if=
"subItem.UseInventory-subItem.Inventory>0"
style=
"color:red;"
>
...
@@ -159,28 +158,30 @@
...
@@ -159,28 +158,30 @@
return
weekDay
[
myDate
.
getDay
()]
return
weekDay
[
myDate
.
getDay
()]
},
},
//获取颜色状态
//获取颜色状态
// getClass(status) {
getClass
(
subItem
)
{
// var classStr = "";
var
classStr
=
""
;
// switch (status) {
if
(
subItem
.
Status
==
0
){
// case 1:
classStr
=
'noKucun'
;
// classStr = "classHong";
}
// break;
switch
(
subItem
.
InventoryType
)
{
// case 2:
case
1
:
// classStr = "classWang";
classStr
=
"classHong"
;
// break;
break
;
// case 3:
case
2
:
// classStr = "classPing";
classStr
=
"classWang"
;
// break;
break
;
// case 4:
case
3
:
// classStr = "classDan";
classStr
=
"classPing"
;
// break;
break
;
// case 5:
case
4
:
// classStr = "classTe";
classStr
=
"classDan"
;
// break;
break
;
// }
case
5
:
// return classStr;
classStr
=
"classTe"
;
// },
break
;
}
return
classStr
;
}
},
},
mounted
()
{
mounted
()
{
this
.
GetHotelList
();
this
.
GetHotelList
();
...
@@ -190,6 +191,10 @@
...
@@ -190,6 +191,10 @@
</
script
>
</
script
>
<
style
>
<
style
>
.Hq_duoge
{
cursor
:
pointer
;
text-decoration
:
underline
;
}
.classHong
{
.classHong
{
background-color
:
rgb
(
255
,
55
,
55
);
background-color
:
rgb
(
255
,
55
,
55
);
}
}
...
@@ -214,7 +219,7 @@
...
@@ -214,7 +219,7 @@
min-width
:
40px
;
min-width
:
40px
;
}
}
.noKucun
{
.noKucun
{
background-color
:
black
;
background-color
:
black
!important
;
}
}
.Hotel_kong
{
.Hotel_kong
{
width
:
100%
;
width
:
100%
;
...
...
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