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
58c1eeb8
Commit
58c1eeb8
authored
Sep 24, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bff4847e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
roomSure.vue
src/components/Hotel/roomSure.vue
+22
-3
No files found.
src/components/Hotel/roomSure.vue
View file @
58c1eeb8
...
...
@@ -143,7 +143,16 @@
<div
style=
"text-align:left;padding-left:6px;"
v-if=
"row.isFirst"
>
{{
row
.
parent
.
NewHotelName
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
prop=
"DMCState"
width=
"100"
>
<
template
#
default=
"{row}"
>
<template
v-if=
"getStateStr(row.parent)=='OK'"
>
<font
style=
"color: green;"
>
{{
getStateStr
(
row
.
parent
)
}}
</font>
</
template
>
<
template
v-else
>
<font
style=
"color: red;"
>
{{
getStateStr
(
row
.
parent
)
}}
</font>
</
template
>
</template>
</el-table-column>
<el-table-column
:label=
"$t('ground.fangjianleixing')"
prop=
"HouseTypeName"
width=
"100"
>
<
template
#
default=
"{row}"
>
{{
getHouseTypeName
(
row
.
sub
)
}}
...
...
@@ -288,7 +297,7 @@
// 需要合并的列(根据上面 el-table-column 的顺序):0..8 以及最后一列动作 (共 10 列)
// 我们只按列属性判断,合并那些基于父级显示的列
const
mergeCols
=
[
'DMCNum'
,
'TCNUM'
,
'OutBranchName'
,
'LeaderName'
,
'GuideName'
,
'LtName'
,
'seat'
,
'UseTime'
,
'NewHotelName'
,
'actions'
,
'StartDate'
'NewHotelName'
,
'actions'
,
'StartDate'
,
'DMCState'
];
if
(
row
.
isFirst
&&
mergeCols
.
includes
(
column
.
property
))
{
return
[
span
,
1
];
...
...
@@ -302,7 +311,7 @@
saveBookNum
(
item
)
{
var
sMsg
=
{
TCID
:
item
.
TCID
,
IsSyncHotelCount
:
1
,
//不在同步酒店房型
IsSyncHotelCount
:
1
,
//不在同步酒店房型
OrderDetails
:
item
.
OrderDetailsList
};
this
.
saveLoading
=
true
;
...
...
@@ -344,6 +353,16 @@
}
return
roomName
;
},
//获取酒店状态
getStateStr
(
subItem
)
{
var
str
=
""
;
if
(
subItem
.
DMCState
==
1
)
{
str
=
"OK"
}
else
{
str
=
"暂定"
}
return
str
;
},
getLineList
()
{
this
.
apipost
(
"line_post_GetAllList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
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