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
364fdd29
Commit
364fdd29
authored
Jul 04, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增日志组件
parent
84b138e5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
168 additions
and
29 deletions
+168
-29
groupInquiry.vue
src/components/SalesModule/groupInquiry.vue
+2
-2
commonHotelInfo.vue
src/components/commonPage/commonHotelInfo.vue
+44
-27
commonHotelLog.vue
src/components/commonPage/commonHotelLog.vue
+122
-0
No files found.
src/components/SalesModule/groupInquiry.vue
View file @
364fdd29
...
...
@@ -815,7 +815,7 @@ export default {
//航班配置
FlightState
:
0
,
TCVisaStatus
:
'-1'
,
IsShowUnion
:
0
,
IsShowUnion
:
-
1
,
QueryType
:
1
,
//查询类型 1:签证
},
remarkMsg
:
{
...
...
@@ -1188,7 +1188,7 @@ export default {
msg
[
'IsVisaSelect'
]
=
1
;
this
.
queryCommonData
.
loading
=
true
;
this
.
apipost
(
"travel_get_GetTravelPrciePageList"
,
"travel_get_GetTravelPrciePageList
_V2
"
,
msg
,
res
=>
{
this
.
queryCommonData
.
loading
=
false
;
...
...
src/components/commonPage/commonHotelInfo.vue
View file @
364fdd29
<
style
>
.comHotelOperation
{
margin-top
:
10px
;}
.comHotelOperation
tr
td
{
.comHotelOperation
{
margin-top
:
10px
;
}
.comHotelOperation
tr
td
{
text-align
:
left
;
width
:
50%
;
padding
:
5px
0
;
width
:
50%
;
padding
:
5px
0
;
}
</
style
>
<
template
>
...
...
@@ -36,6 +40,9 @@
<th
style=
"width:120px;"
v-if=
"showHotelObj.ShowRebateRatio"
>
返佣比例
</th>
<th
style=
"width:120px"
v-if=
"showHotelObj.showZhan"
>
占房时间
</th>
<th
style=
"width:100px"
v-if=
"showHotelObj.showZhan"
>
确认时间
</th>
<th
style=
"width:100px;display:none"
>
日志
</th>
</tr>
<template
v-for=
"hotelItem in HotelObj"
>
<tr
v-for=
"(hotelSubItem,hotelSubIndex) in hotelItem.SubList"
>
...
...
@@ -90,6 +97,13 @@
<td
v-if=
"showHotelObj.showZhan"
>
{{hotelSubItem.SureTimeStr}}
</td>
<td
style=
"display:none;"
>
<el-popover
width=
"200"
trigger=
"click"
popper-class=
"Bus_HotelPop"
>
<commonHotelLog
:TCID=
"TCID"
:HotelId=
"hotelSubItem.HotelId"
:UseTime=
"hotelItem.UseDay"
>
</commonHotelLog>
<div
slot=
"reference"
class=
"w80"
style=
"cursor:pointer;text-decoration:underline;"
>
日志
</div>
</el-popover>
</td>
</tr>
</template>
</table>
...
...
@@ -124,7 +138,8 @@
<input
type=
"button"
class=
"normalBtn"
:value=
"HotelObj[0].ShouPeiStatus==0?'手配书(确定)':'手配书(暂定)'"
v-if=
"showHotelObj.ShowShouPeiStatus"
@
click=
"subSetShouPeiShu(HotelObj[0].ShouPeiStatus)"
/>
<template
v-if=
"showHotelObj.isFromTCList"
>
<input
type=
"button"
v-if=
"HotelObj[0].ShouPeiStatus==1"
class=
"normalBtn"
value=
"下载"
@
click=
"DownLoadShouPeiShu()"
/>
<input
type=
"button"
v-if=
"HotelObj[0].ShouPeiStatus==1"
class=
"normalBtn"
value=
"下载"
@
click=
"DownLoadShouPeiShu()"
/>
</
template
>
<
template
v-else
>
<input
type=
"button"
class=
"normalBtn"
value=
"下载"
@
click=
"DownLoadShouPeiShu()"
/>
...
...
@@ -134,11 +149,11 @@
</template>
</table>
</div>
</div>
</template>
<
script
>
import
commonHotelLog
from
"../commonPage/commonHotelLog.vue"
;
export
default
{
props
:
[
"HotelObj"
,
"showHotelObj"
,
"TCID"
,
"DMCNum"
,
"TCNUM"
],
data
()
{
...
...
@@ -146,6 +161,10 @@
loading
:
false
,
};
},
components
:
{
//日志组件
commonHotelLog
},
methods
:
{
DownLoadShouPeiShu
()
{
this
.
loading
=
true
;
...
...
@@ -161,15 +180,13 @@
//子组件调用父组件方法
subSetShouPeiShu
(
ShouPeiStatus
)
{
var
that
=
this
;
var
str
=
"是否将手配书设置成"
+
(
ShouPeiStatus
==
0
?
"【确定】"
:
"【暂定】"
)
+
"?"
;
var
str
=
"是否将手配书设置成"
+
(
ShouPeiStatus
==
0
?
"【确定】"
:
"【暂定】"
)
+
"?"
;
this
.
Confirm
(
str
,
function
()
{
that
.
$emit
(
'SetShouPeiShu'
);
});
}
},
mounted
()
{
}
mounted
()
{}
};
</
script
>
src/components/commonPage/commonHotelLog.vue
0 → 100644
View file @
364fdd29
<!--酒店日志-->
<
style
>
.commonHotelLog
>
div
:first-child
{
margin-bottom
:
10px
;
}
.commonHotelLog
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
4px
;
/*高宽分别对应横竖滚动条的尺寸*/
height
:
1px
;
}
.commonHotelLog
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#c9c9c9
;
}
.commonHotelLog
::-webkit-scrollbar-track
{
/*滚动条里面轨道*/
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
4px
;
background
:
#ededed
;
}
.commonHotelLog
.logContact
{
width
:
90%
;
height
:
auto
;
margin-top
:
20px
;
padding-left
:
20px
;
position
:
relative
;
}
.commonHotelLog
.logContact
>
div
{
padding
:
0
0
20px
20px
;
border-left
:
1px
solid
#d1d1d1
;
}
.commonHotelLog
.logContact
>
div
:last-child
{
border
:
none
;
}
.commonHotelLog
.AuditLog
{
margin-left
:
15px
;
}
.commonHotelLog
.Auditcircle
{
position
:
absolute
;
width
:
10px
;
height
:
10px
;
left
:
16px
;
background-color
:
#e95252
;
border-radius
:
50%
;
}
</
style
>
<
template
>
<div>
<div
class=
"commonHotelLog"
>
<div
class=
"AuditLog"
>
日志
</div>
<div
class=
"logContact"
style=
"background:#f9f9f9; padding:20px 10px 0;"
>
<div
v-if=
'HotelLogsList.length>0'
v-for=
"(item,index) in HotelLogsList"
:key=
"index"
>
<div
class=
"clearfix"
>
<div
class=
"Auditcircle"
style=
"left: 6px!important;"
></div>
<div
class=
"operateName"
style=
"color:#005CAA;font-size:12px;"
>
{{
item
.
CreateByName
}}
{{
item
.
CreateTimeStr
}}
</div>
</div>
<div
class=
"fz12 color333"
>
{{
item
.
Remarks
}}
</div>
</div>
<div
v-if=
'HotelLogsList.length==0'
>
暂无数据
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
[
"TCID"
,
"HotelId"
,
"UseTime"
],
data
()
{
return
{
reverse
:
true
,
loading
:
false
,
queryLogMsg
:
{
pageIndex
:
1
,
pageSize
:
15
,
currentPage
:
1
,
HotelId
:
0
,
TCID
:
0
,
UseTime
:
''
},
//酒店日志
HotelLogsList
:
[],
};
},
methods
:
{
//获取日志
getHotelLogsList
(
TCID
,
HotelId
,
timeStr
)
{
if
(
TCID
)
{
this
.
queryLogMsg
.
TCID
=
TCID
;
}
if
(
HotelId
)
{
this
.
queryLogMsg
.
HotelId
=
HotelId
;
}
if
(
timeStr
)
{
this
.
queryLogMsg
.
UseTime
=
timeStr
;
}
this
.
apipost
(
'DmcInfoChangeLog_get_GetHotelLogList'
,
this
.
queryLogMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
HotelLogsList
=
res
.
data
.
data
.
pageData
;
}
},
err
=>
{})
},
},
mounted
()
{
this
.
getHotelLogsList
(
this
.
TCID
,
this
.
HotelId
,
this
.
UseTime
);
}
};
</
script
>
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