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
a42bfdc8
Commit
a42bfdc8
authored
Sep 22, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店修改
parent
8b181f14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
roomSure.vue
src/components/Hotel/roomSure.vue
+5
-12
No files found.
src/components/Hotel/roomSure.vue
View file @
a42bfdc8
...
@@ -73,14 +73,14 @@
...
@@ -73,14 +73,14 @@
<div
style=
"font-size:12px;padding:2px 4px 3px 4px; color:red"
>
{{
$t
(
'ground.zymcdcsjbcgygy'
)
}}
。
</div>
<div
style=
"font-size:12px;padding:2px 4px 3px 4px; color:red"
>
{{
$t
(
'ground.zymcdcsjbcgygy'
)
}}
。
</div>
<!-- 使用 el-table 替换原生 table,设置 height 实现固定表头 -->
<!-- 使用 el-table 替换原生 table,设置 height 实现固定表头 -->
<el-table
:data=
"flattenedRows"
v-loading=
"loading"
stripe
border
:height=
"tableHeight"
<el-table
:data=
"flattenedRows"
v-loading=
"loading"
stripe
border
:height=
"tableHeight"
:span-method=
"tableSpanMethod"
style=
"width: 100%; font-size:12px;"
:row-key=
"rowKey"
>
:span-method=
"tableSpanMethod"
style=
"width: 100%; font-size:12px;"
>
<el-table-column
:label=
"$t('active.ad_xuhao')"
prop=
"DMCNum"
width=
"1
2
0"
>
<el-table-column
:label=
"$t('active.ad_xuhao')"
prop=
"DMCNum"
width=
"1
5
0"
>
<template
#
default=
"
{row}">
<template
#
default=
"
{row}">
<span
v-if=
"row.isFirst"
>
{{
row
.
parent
.
DMCNum
}}
</span>
<span
v-if=
"row.isFirst"
>
{{
row
.
parent
.
DMCNum
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('salesModule.CompanyNum')"
prop=
"TCNUM"
width=
"1
0
0"
>
<el-table-column
:label=
"$t('salesModule.CompanyNum')"
prop=
"TCNUM"
width=
"1
5
0"
>
<
template
#
default=
"{row}"
>
<
template
#
default=
"{row}"
>
<div
v-if=
"row.isFirst"
class=
"w120 link"
>
<div
v-if=
"row.isFirst"
class=
"w120 link"
>
<p
@
click=
"goUrlT('productQuery', row.parent.TCNUM, '产品查询')"
>
{{
row
.
parent
.
TCNUM
}}
</p>
<p
@
click=
"goUrlT('productQuery', row.parent.TCNUM, '产品查询')"
>
{{
row
.
parent
.
TCNUM
}}
</p>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"出团公司"
prop=
"OutBranchName"
width=
"1
0
0"
>
<el-table-column
label=
"出团公司"
prop=
"OutBranchName"
width=
"1
2
0"
>
<
template
#
default=
"{row}"
>
<
template
#
default=
"{row}"
>
<span
v-if=
"row.isFirst"
>
{{
row
.
parent
.
OutBranchName
}}
</span>
<span
v-if=
"row.isFirst"
>
{{
row
.
parent
.
OutBranchName
}}
</span>
</
template
>
</
template
>
...
@@ -260,12 +260,7 @@
...
@@ -260,12 +260,7 @@
},
},
methods
:
{
methods
:
{
rowKey
(
row
)
{
// 使用TCID 和 子项可能的 HouseType 或相对索引保证唯一
return
(
row
.
parent
&&
row
.
parent
.
TCID
?
row
.
parent
.
TCID
:
'p'
)
+
row
.
ID
+
'_'
+
(
row
.
HouseType
||
'0'
)
+
'_'
+
(
row
.
HouseNum
||
''
)
},
// 控制合并单元格:当为某父项的第一行时,把前几列合并到子项个数
// 控制合并单元格:当为某父项的第一行时,把前几列合并到子项个数
tableSpanMethod
({
tableSpanMethod
({
row
,
row
,
...
@@ -291,7 +286,6 @@
...
@@ -291,7 +286,6 @@
},
},
//保存用房数
//保存用房数
saveBookNum
(
item
)
{
saveBookNum
(
item
)
{
console
.
log
(
"item"
,
item
);
var
sMsg
=
{
var
sMsg
=
{
TCID
:
item
.
TCID
,
TCID
:
item
.
TCID
,
OrderDetails
:
item
.
OrderDetailsList
OrderDetails
:
item
.
OrderDetailsList
...
@@ -379,7 +373,6 @@
...
@@ -379,7 +373,6 @@
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
var
sourceData
=
res
.
data
.
data
.
pageData
;
var
sourceData
=
res
.
data
.
data
.
pageData
;
console
.
log
(
"sourceData"
,
sourceData
);
if
(
sourceData
&&
sourceData
.
length
>
0
)
{
if
(
sourceData
&&
sourceData
.
length
>
0
)
{
sourceData
.
forEach
(
sItem
=>
{
sourceData
.
forEach
(
sItem
=>
{
sItem
.
IsEdit
=
false
;
sItem
.
IsEdit
=
false
;
...
...
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