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
a2d6e68c
Commit
a2d6e68c
authored
Oct 27, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
d04e8327
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
HotelTripThree.vue
...onents/newTravelmanager/travelLineTrip/HotelTripThree.vue
+17
-7
No files found.
src/components/newTravelmanager/travelLineTrip/HotelTripThree.vue
View file @
a2d6e68c
...
@@ -172,8 +172,8 @@
...
@@ -172,8 +172,8 @@
<el-option
v-for=
"item in QHotelList"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID"
>
<el-option
v-for=
"item in QHotelList"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID"
>
<span>
{{ getHotelItemLabel(item) }}
<span>
{{ getHotelItemLabel(item) }}
<
template
v-if=
"item.Inventory>0"
>
<
template
v-if=
"item.Inventory>0"
>
<el-tooltip
:content=
"
item.Stock
Str"
>
<el-tooltip
:content=
"
getStockStr(item).tip
Str"
>
<font>
{{
getStockStr
(
item
)
}}
</font>
<font>
{{
getStockStr
(
item
)
.
currentStr
}}
</font>
</el-tooltip>
</el-tooltip>
</
template
>
</
template
>
</span>
</span>
...
@@ -189,7 +189,9 @@
...
@@ -189,7 +189,9 @@
<el-option
v-for=
"item in QHotelList"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID"
>
<el-option
v-for=
"item in QHotelList"
:label=
"item.Name"
:value=
"item.ID"
:key=
"item.ID"
>
<span>
{{
getHotelItemLabel
(
item
)
}}
<span>
{{
getHotelItemLabel
(
item
)
}}
<template
v-if=
"item.Inventory>0"
>
<template
v-if=
"item.Inventory>0"
>
<font>
{{
getStockStr
(
item
)
}}
</font>
<el-tooltip
:content=
"getStockStr(item).tipStr"
>
<font>
{{
getStockStr
(
item
).
currentStr
}}
</font>
</el-tooltip>
</
template
>
</
template
>
</span>
</span>
</el-option>
</el-option>
...
@@ -419,14 +421,22 @@
...
@@ -419,14 +421,22 @@
},
},
//获取库存字符串
//获取库存字符串
getStockStr
(
item
)
{
getStockStr
(
item
)
{
var
str
=
""
;
var
obj
=
{
currentStr
:
""
,
tipStr
:
""
,
}
if
(
item
.
StockList
&&
item
.
StockList
.
length
>
0
)
{
if
(
item
.
StockList
&&
item
.
StockList
.
length
>
0
)
{
item
.
StockList
.
forEach
(
subItem
=>
{
item
.
StockList
.
forEach
((
subItem
,
subIndex
)
=>
{
str
+=
" "
+
subItem
.
DateStr
+
"(总:"
+
subItem
.
Inventory
+
"/用:"
+
subItem
.
UseInventory
+
"/剩:"
+
subItem
var
tempStr
=
" "
+
subItem
.
DateStr
+
"(总:"
+
subItem
.
Inventory
+
"/用:"
+
subItem
.
UseInventory
+
"/剩:"
+
subItem
.
SurplusInventory
+
")"
;
.
SurplusInventory
+
")"
;
if
(
subIndex
<=
1
)
{
obj
.
currentStr
+=
tempStr
;
}
obj
.
tipStr
+=
tempStr
;
})
})
}
}
return
str
;
return
obj
;
},
},
//酒店Label
//酒店Label
getHotelItemLabel
(
item
)
{
getHotelItemLabel
(
item
)
{
...
...
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