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
c8a8093b
Commit
c8a8093b
authored
Mar 07, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
6be6b905
b7103bd8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
457 additions
and
23 deletions
+457
-23
HotelProductCalendar.vue
src/components/Hotel/HotelProductCalendar.vue
+4
-1
HotelsTeam.vue
src/components/Hotel/HotelsTeam.vue
+231
-0
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+30
-4
LuckyDraw.vue
src/components/activity/LuckyDraw.vue
+160
-6
awardList.vue
src/components/activity/awardList.vue
+19
-8
index.js
src/plug/index.js
+5
-4
config.js
src/router/config.js
+8
-0
No files found.
src/components/Hotel/HotelProductCalendar.vue
View file @
c8a8093b
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<div
:class=
"stockColor(item.data.InventoryType)"
v-if=
"item.data&&item.month===calendar.data.date"
>
<div
:class=
"stockColor(item.data.InventoryType)"
v-if=
"item.data&&item.month===calendar.data.date"
>
<p><span
@
click=
"goUrlA('2', item)"
class=
"text_underLine"
>
价格:
{{
item
.
data
.
CostPrice
}}
(
{{
item
.
data
.
CurrencyName
}}
)
</span></p>
<p><span
@
click=
"goUrlA('2', item)"
class=
"text_underLine"
>
价格:
{{
item
.
data
.
CostPrice
}}
(
{{
item
.
data
.
CurrencyName
}}
)
</span></p>
<p><span
class=
"text_underLine"
@
click=
"goUrlB(item)"
>
总库存:
{{
item
.
data
.
Inventory
}}
(间)
</span></p>
<p><span
class=
"text_underLine"
@
click=
"goUrlB(item)"
>
总库存:
{{
item
.
data
.
Inventory
}}
(间)
</span></p>
<p><span>
剩余库存:
{{
item
.
data
.
RemainingInventory
}}
(间)
</span></p>
<p><span
class=
"text_underLine"
@
click=
"goUrlHotelTeam(item)"
>
剩余库存:
{{
item
.
data
.
RemainingInventory
}}
(间)
</span></p>
<p><span
v-if=
"item.data.Inventory!==item.data.RemainingInventory"
class=
"text_underLine"
>
已使用库存:
{{
item
.
data
.
UseAmount
}}
(间)
</span></p>
<p><span
v-if=
"item.data.Inventory!==item.data.RemainingInventory"
class=
"text_underLine"
>
已使用库存:
{{
item
.
data
.
UseAmount
}}
(间)
</span></p>
<p><span
v-if=
"item.data.Inventory!==item.data.RemainingInventory"
>
欠房数量:
{{
item
.
data
.
OweAmount
}}
(间)
</span></p>
<p><span
v-if=
"item.data.Inventory!==item.data.RemainingInventory"
>
欠房数量:
{{
item
.
data
.
OweAmount
}}
(间)
</span></p>
<p><span
v-if=
"item.data.Inventory!==item.data.RemainingInventory"
class=
"text_underLine"
>
已确定:
{{
item
.
data
.
SureAmount
}}
(间)
</span></p>
<p><span
v-if=
"item.data.Inventory!==item.data.RemainingInventory"
class=
"text_underLine"
>
已确定:
{{
item
.
data
.
SureAmount
}}
(间)
</span></p>
...
@@ -110,6 +110,9 @@
...
@@ -110,6 +110,9 @@
this
.
$emit
(
'goEdit'
,
type
,
item
.
day
)
this
.
$emit
(
'goEdit'
,
type
,
item
.
day
)
// this.$router.push({ name: 'HotelProductEdit', query: { type: type, HotelId: this.hotelId, day: item.day,blank: 'y', tab: '报价管理'} });
// this.$router.push({ name: 'HotelProductEdit', query: { type: type, HotelId: this.hotelId, day: item.day,blank: 'y', tab: '报价管理'} });
},
},
goUrlHotelTeam
:
function
(
item
){
this
.
$router
.
push
({
name
:
'HotelsTeam'
,
query
:
{
HotelId
:
item
.
data
.
HotelId
,
StartDate
:
item
.
data
.
DayStr
,
blank
:
'y'
,
tab
:
'酒店相关团'
}
});
},
goUrlB
:
function
(
item
)
{
goUrlB
:
function
(
item
)
{
this
.
$router
.
push
({
name
:
'HotelTotalStock'
,
query
:
{
HotelId
:
this
.
hotelId
,
blank
:
'y'
,
tab
:
'总库存看板'
}
});
this
.
$router
.
push
({
name
:
'HotelTotalStock'
,
query
:
{
HotelId
:
this
.
hotelId
,
blank
:
'y'
,
tab
:
'总库存看板'
}
});
}
}
...
...
src/components/Hotel/HotelsTeam.vue
0 → 100644
View file @
c8a8093b
<
template
>
<div>
<div
style=
"width: 100%; overflow-x: auto;padding-bottom: 10px; "
class=
"ownScrollbarStyle"
>
<table
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
class=
"roomReservationsDetailsTalbe"
v-loading=
'loading'
>
<tr>
<th
width=
"50"
>
序号
</th>
<th
width=
"80"
>
公司团号
</th>
<th
width=
"80"
>
出发地
</th>
<th
width=
"80"
>
领队
</th>
<th
width=
"80"
>
导游
</th>
<th
width=
"120"
>
机位总数/(Y/E/F)
</th>
<th
width=
"120"
>
占床/不占床
</th>
<th
width=
"80"
>
实际用房数
</th>
<th
width=
"150"
>
房间类型
</th>
<th
width=
"80"
>
房间数
</th>
<th
width=
"80"
>
房间人数
</th>
<th
width=
"150"
>
房间预定数
</th>
<th
width=
"120"
>
尚差房间数
</th>
<th
width=
"80"
>
单价/每人
</th>
<th
width=
"80"
>
免减人数
</th>
<th
width=
"80"
>
金额小计
</th>
<th
width=
"80"
>
返佣
</th>
<th
width=
"80"
>
金额总计
</th>
<th
width=
"80"
>
付款方式
</th>
<th
width=
"80"
>
联系电话
</th>
<th
width=
"80"
>
地址
</th>
<th
width=
"80"
>
订团号
</th>
<th
width=
"80"
>
备注
</th>
<th
width=
"80"
>
操作
</th>
</tr>
<tr
v-for=
"(item,index) in dataList"
>
<td><div
class=
"w80"
>
{{
index
}}
</div></td>
<td><div
class=
"w120"
>
{{
item
.
TCNUMS
}}
</div></td>
<td><div
class=
"w120"
>
{{
item
.
StartCityNames
}}
</div></td>
<td><div
class=
"w120"
>
{{
item
.
LeaderName
}}
</div></td>
<td><div
class=
"w120"
>
{{
item
.
GuideName
}}
</div></td>
<td><div
class=
"w120"
>
{{
item
.
TotalSeat
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityYSeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityESeatNum
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
RealityFSeatNum
}}
</div></td>
<td><div
class=
"w80"
>
{{
item
.
CommonReport
.
HouseStatistics
.
NeedBed
}}
/
{{
item
.
CommonReport
.
HouseStatistics
.
NoNeedBed
}}
</div></td>
<td><div
class=
"w80"
>
{{
item
.
CommonReport
.
HouseStatistics
.
RealityRoomNum
}}
</div></td>
<td>
<div
class=
"w150"
>
<p
class=
"pHouseStyle"
v-for=
"o in item.CommonReport.HouseStatistics.HouseTypeList"
>
{{
o
.
HouseTypeName
}}
</p>
</div>
</td>
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-for=
"o in item.CommonReport.HouseStatistics.HouseTypeList"
>
{{
o
.
HouseTypeCount
}}
</p>
</div>
</td>
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-for=
"o in item.CommonReport.HouseStatistics.HouseTypeList"
>
{{
o
.
HouseGuestNum
}}
</p>
</div>
</td>
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-for=
"o in item.CommonReport.HotelList[0].OrderDetailsList"
>
<el-input
class=
'w50 tcenter'
@
keyup
.
native=
"checkInteger(o,'HouseTypeCount')"
v-model=
'o.HouseTypeCount'
></el-input>
</p>
</div>
</td>
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
:class=
"
{colorRed:o.HouseTypeCount-item.CommonReport.HouseStatistics.HouseTypeList[index].HouseTypeCount
<0
}"
v-for=
"(o,index) in item.CommonReport.HotelList[0].OrderDetailsList"
>
{{
o
.
HouseTypeCount
-
item
.
CommonReport
.
HouseStatistics
.
HouseTypeList
[
index
].
HouseTypeCount
}}
</p>
</div>
</td>
<td>
<div
class=
"w120"
>
<p
class=
"pHouseStyle"
v-for=
"(o,index) in item.CommonReport.HotelList[0].OrderDetailsList"
>
<el-input
@
keyup
.
native=
"checkInteger(o,'UnitPrice')"
class=
'w80 tcenter'
v-model=
'o.UnitPrice'
></el-input>
</p>
</div>
</td>
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-for=
"(o,index) in item.CommonReport.HotelList[0].OrderDetailsList"
>
<el-input
class=
'w50'
@
keyup
.
native=
"checkInteger(o,'HotelDiscount')"
v-model=
'o.HotelDiscount'
></el-input>
</p>
</div>
</td>
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle"
v-for=
"(o,index) in item.CommonReport.HotelList[0].OrderDetailsList"
>
{{
o
.
UnitPrice
*
(
o
.
HouseGuestNum
-
o
.
HotelDiscount
)
}}
</p>
</div>
</td>
<td>
<div
class=
"w80"
>
<p
class=
"pHouseStyle link"
v-for=
"(o,index) in item.CommonReport.HotelList[0].OrderDetailsList"
>
<span
class=
"spanlink"
v-if=
'o.IsRebateRatio==0'
@
click=
"goUrl('HotelInfo',o,'酒店管理')"
>
设置
</span>
<span
v-if=
'o.IsRebateRatio!=0'
>
{{
o
.
RebateRatio
}}
</span>
</p>
</div>
</td>
<td>
<div
class=
"w120"
>
{{
item
.
TotalPrice
}}
</div>
</td>
<td>
<div
class=
"w120"
>
<el-select
class=
'w100 sel'
v-model=
'item.PayStyle'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-option
label=
'请选择'
value=
'0'
></el-option>
<el-option
label=
'现付'
value=
'1'
></el-option>
<el-option
label=
'签单'
value=
'2'
></el-option>
<el-option
label=
'实物抵扣'
value=
'5'
></el-option>
<el-option
label=
'预付'
value=
'4'
></el-option>
</el-select>
</div>
</td>
<td>
<div
class=
"w120"
>
{{
item
.
CommonReport
.
HotelList
[
0
].
Tel
}}
</div>
</td>
<td>
<div
class=
"w200 padding10"
>
{{
item
.
CommonReport
.
HotelList
[
0
].
Address
}}
</div>
</td>
<td>
<div
class=
"w150"
>
<el-input
class=
'w120'
v-model=
'item.ReserveNo'
></el-input>
</div>
</td>
<td>
<div
class=
"w150"
>
<el-input
type=
'textarea'
class=
'w120'
v-model=
'item.Remarks'
></el-input>
</div>
</td>
<td>
<input
type=
"button"
class=
"roomBtn"
value=
"保存"
@
click=
"SaveSingle(item)"
/>
</td>
</tr>
<tbody
v-if=
"dataList.length===0"
>
<tr>
<td
:colspan=
"3"
>
暂无数据
</td>
</tr>
</tbody>
</table>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
msg
:{
HotelId
:
0
,
StartDate
:
''
,
},
loading
:
false
,
dataList
:[],
}
},
methods
:
{
getList
(){
this
.
apipost
(
"dmcstatistics_post_GetHotelByIDAndUseTime"
,
this
.
msg
,
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
goUrl
(
path
,
obj
,
name
)
{
this
.
$router
.
push
({
path
:
path
,
query
:
{
id
:
obj
.
HotelId
,
blank
:
"y"
,
tab
:
name
}
});
},
//单条保存
SaveSingle
(
item
){
item
.
CommonReport
.
HotelList
[
0
].
HotelOrderState
=
1
;
this
.
apipost
(
'dmcstatistics_post_SetNewHotelOrder'
,
item
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
Success
(
res
.
data
.
message
)
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
err
=>
{})
}
},
mounted
:
function
()
{
this
.
msg
.
HotelId
=
this
.
$route
.
query
.
HotelId
;
this
.
msg
.
StartDate
=
this
.
$route
.
query
.
StartDate
;
this
.
getList
();
},
created
:
function
()
{
}
}
</
script
>
<
style
>
.roomReservationsDetailsTalbe
.roomBtn
{
color
:
#fff
;
padding
:
0
10px
!important
;
height
:
30px
!important
;
background
:
#E95252
;
border
:
1px
solid
#E95252
;
cursor
:
pointer
;
border-radius
:
15px
;
margin
:
0
10px
;
}
.roomReservationsDetailsTalbe
{
background
:
#ddd
;}
.roomReservationsDetailsTalbe
tr
th
{
background
:
#eee
;
height
:
40px
;
font-size
:
12px
;
color
:
#333
;}
.roomReservationsDetailsTalbe
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;}
.roomReservationsDetailsTalbe
tr
td
{
font-size
:
12px
;}
.roomReservationsDetailsTalbe
tr
td
.pHouseStyle
{
border-bottom
:
1px
solid
#ccc
;
height
:
28px
;
line-height
:
28px
;}
.roomReservationsDetailsTalbe
tr
td
.colorRed
{
color
:
#E95252
;}
.roomReservationsDetailsTalbe
tr
td
.pHouseStyle
:last-child
{
border-bottom
:
none
;}
.roomReservationsDetailsTalbe
tr
td
input
{
height
:
20px
!important
;
padding
:
0
!important
;
text-align
:
center
;}
.roomReservationsDetailsTalbe
tr
td
.sel
input
{
height
:
34px
!important
;
padding-right
:
20px
!important
;
padding-left
:
5px
!important
;
font-size
:
12px
!important
;}
.roomReservationsDetailsTalbe
tr
td
.link
:hover
{
text-decoration
:
underline
;
cursor
:
pointer
;}
.roomReservationsDetailsTalbe
.Hotel_red
{
color
:
red
;}
</
style
>
src/components/Hotel/roomReservationsDetails.vue
View file @
c8a8093b
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
<th
width=
"80"
>
地址
</th>
<th
width=
"80"
>
地址
</th>
<th
width=
"80"
>
订团号
</th>
<th
width=
"80"
>
订团号
</th>
<th
width=
"80"
>
备注
</th>
<th
width=
"80"
>
备注
</th>
<th
width=
"80"
>
操作
</th>
</tr>
</tr>
<tr
v-for=
"(item,index) in list"
>
<tr
v-for=
"(item,index) in list"
>
<td
:rowspan=
"list.length"
v-if=
"index==0"
>
<td
:rowspan=
"list.length"
v-if=
"index==0"
>
...
@@ -153,7 +154,10 @@
...
@@ -153,7 +154,10 @@
<div
class=
"w150"
>
<div
class=
"w150"
>
<el-input
type=
'textarea'
class=
'w120'
v-model=
'item.Remarks'
></el-input>
<el-input
type=
'textarea'
class=
'w120'
v-model=
'item.Remarks'
></el-input>
</div>
</div>
</td>
</td>
<td>
<input
type=
"button"
class=
"roomBtn"
value=
"保存"
@
click=
"SaveSingle(item)"
/>
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
...
@@ -274,12 +278,24 @@ export default {
...
@@ -274,12 +278,24 @@ export default {
})
})
this
.
apipost
(
'dmcstatistics_get_SetHotelOrder'
,
this
.
list
,
res
=>
{
this
.
apipost
(
'dmcstatistics_get_SetHotelOrder'
,
this
.
list
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
if
(
res
.
data
.
resultCode
==
1
){
this
.
$message
.
s
uccess
(
res
.
data
.
message
)
this
.
S
uccess
(
res
.
data
.
message
)
}
else
{
}
else
{
this
.
$message
.
e
rror
(
res
.
data
.
message
)
this
.
E
rror
(
res
.
data
.
message
)
}
}
},
err
=>
{})
},
err
=>
{})
},
},
//单条保存
SaveSingle
(
item
){
item
.
HotelOrderState
=
1
;
this
.
apipost
(
'dmcstatistics_post_SetNewHotelOrder'
,
item
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
Success
(
res
.
data
.
message
)
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
err
=>
{})
}
},
},
created
()
{
created
()
{
...
@@ -295,6 +311,16 @@ export default {
...
@@ -295,6 +311,16 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
.roomReservationsDetailsTalbe
.roomBtn
{
color
:
#fff
;
padding
:
0
10px
!important
;
height
:
30px
!important
;
background
:
#E95252
;
border
:
1px
solid
#E95252
;
cursor
:
pointer
;
border-radius
:
15px
;
margin
:
0
10px
;
}
.roomReservationsDetailsTalbe
{
background
:
#ddd
;}
.roomReservationsDetailsTalbe
{
background
:
#ddd
;}
.roomReservationsDetailsTalbe
tr
th
{
background
:
#eee
;
height
:
40px
;
font-size
:
12px
;
color
:
#333
;}
.roomReservationsDetailsTalbe
tr
th
{
background
:
#eee
;
height
:
40px
;
font-size
:
12px
;
color
:
#333
;}
.roomReservationsDetailsTalbe
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;}
.roomReservationsDetailsTalbe
tr
{
background
:
#fff
;
text-align
:
center
;
height
:
40px
;}
...
...
src/components/activity/LuckyDraw.vue
View file @
c8a8093b
<
style
>
<
style
>
.w595
{
width
:
595px
!important
;}
.w595
{
width
:
595px
!important
;}
</
style
>
.LuckyDraw
.singeRowTable
i
{
font-size
:
15px
;
}
.LuckyDraw
._addUpload_box
{
display
:
block
;
margin
:
10px
0
0
100px
;
}
.LuckyDraw
._addUpload_box
img
{
width
:
100%
;
height
:
100%
;
}
.LuckyDraw
._addUpload_box
>
div
{
float
:
left
;
width
:
138px
;
height
:
92px
;
border
:
1px
dashed
rgba
(
210
,
210
,
210
,
1
);
border-radius
:
2px
;
cursor
:
pointer
;
margin-bottom
:
10px
;
padding
:
5px
;
margin-right
:
10px
;
position
:
relative
;
}
.LuckyDraw
._addUpload_box
.icon-guanbi1
{
font-size
:
12px
;
color
:
white
;
display
:
inline-block
;
margin-left
:
15px
;
position
:
absolute
;
right
:
-6px
;
top
:
-9px
;
background-color
:
#f56c6c
;
border-radius
:
50%
;
height
:
20px
;
width
:
20px
;
text-align
:
center
;
line-height
:
20px
;
}
.LuckyDraw
._addUpload_box
>
div
:hover
{
background-color
:
#f5f5f5
;
}
.LuckyDraw
.el-upload-dragger
{
font-size
:
28px
;
color
:
#8c939d
;
width
:
126px
;
height
:
80px
;
line-height
:
41px
;
text-align
:
center
;
}
.LuckyDraw
._show_img_box
{
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,
.6
);
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
z-index
:
9999
;
text-align
:
center
;
}
.LuckyDraw
.ql-container
{
min-height
:
100px
;
}
</
style
>
<
template
>
<
template
>
<div
class=
"flexOne"
>
<div
class=
"flexOne
LuckyDraw
"
>
<div
class=
"query-box"
>
<div
class=
"query-box"
>
<ul
class=
"user_time_picker"
>
<ul
class=
"user_time_picker"
>
<li>
<li>
...
@@ -69,7 +131,7 @@
...
@@ -69,7 +131,7 @@
<th>
抽奖名称
</th>
<th>
抽奖名称
</th>
<th>
公司名称
</th>
<th>
公司名称
</th>
<th>
结束日期
</th>
<th>
结束日期
</th>
<th>
抽奖次数
</th>
<th>
抽奖次数
(每人)
</th>
<th>
抽奖状态
</th>
<th>
抽奖状态
</th>
<th>
备注
</th>
<th>
备注
</th>
<th>
操作
</th>
<th>
操作
</th>
...
@@ -173,6 +235,13 @@
...
@@ -173,6 +235,13 @@
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
<tr>
<td
colspan=
"2"
>
<el-form-item
label=
"抽奖规则"
prop=
"lotteryRules"
>
<quill-editor
class=
"w595"
v-model=
"addMsg.lotteryRules"
></quill-editor>
</el-form-item>
</td>
</tr>
<tr>
<tr>
<td
colspan=
"2"
>
<td
colspan=
"2"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
...
@@ -180,6 +249,29 @@
...
@@ -180,6 +249,29 @@
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
<tr>
<td
colspan=
"2"
>
<div
class=
"_addUpload_box clearfix"
>
<template>
<div
v-if=
"addMsg.image!=''"
>
<div
style=
"width:100%;height:100%;overflow: hidden;"
>
<img
:src=
"addMsg.image"
@
click=
"showUpLoadFile()"
/>
</div>
<span
class=
"iconfont icon-guanbi1"
@
click=
"deleteUploadFile()"
></span>
</div>
</
template
>
<div
class=
"_pic_upload"
>
<el-upload
drag
:http-request=
"uploadFileBtn"
:multiple=
"false"
:show-file-list=
"false"
action=
""
>
<i
class=
"el-icon-plus avatar-uploader-icon"
></i>
<div
class=
"el-upload__text"
>
点击/拖拽上传
</div>
</el-upload>
</div>
</div>
</td>
</tr>
</table>
</table>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -187,6 +279,16 @@
...
@@ -187,6 +279,16 @@
<button
class=
"normalBtn"
@
click=
"submitForm('addMsg')"
>
保存
</button>
<button
class=
"normalBtn"
@
click=
"submitForm('addMsg')"
>
保存
</button>
</div>
</div>
</el-dialog>
</el-dialog>
<div
v-if=
'picIsShow'
class=
"_show_img_box"
@
click=
"picIsShow=false"
>
<div
style=
"position: absolute; width: 800px; height: 600px; left: 50%; top: 50%; margin-left: -400px; margin-top: -300px;"
>
<el-carousel
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel-item
style=
"height: 600px;overflow:auto;"
>
<img
:src=
"addMsg.image"
style=
""
/>
</el-carousel-item>
</el-carousel>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -214,7 +316,15 @@ export default {
...
@@ -214,7 +316,15 @@ export default {
groupId
:
0
,
groupId
:
0
,
branchId
:
''
,
branchId
:
''
,
lotteryStatus
:
1
,
lotteryStatus
:
1
,
lotteryPlatform
:
1
lotteryPlatform
:
1
,
lotteryRules
:
''
,
image
:
''
,
},
toolbar
:
{
clean
:
false
,
//加粗
font
:
false
,
//字体
narrative
:
true
,
//叙述,
image
:
true
},
},
rules
:{
rules
:{
branchId
:
[{
required
:
true
,
message
:
"请选择公司"
,
trigger
:
"change"
}],
branchId
:
[{
required
:
true
,
message
:
"请选择公司"
,
trigger
:
"change"
}],
...
@@ -245,6 +355,7 @@ export default {
...
@@ -245,6 +355,7 @@ export default {
companyList
:[],
companyList
:[],
//线路
//线路
LineList
:[],
LineList
:[],
picIsShow
:
false
,
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -268,7 +379,9 @@ export default {
...
@@ -268,7 +379,9 @@ export default {
groupId
:
0
,
groupId
:
0
,
branchId
:
''
,
branchId
:
''
,
lotteryStatus
:
1
,
lotteryStatus
:
1
,
lotteryPlatform
:
1
lotteryPlatform
:
1
,
lotteryRules
:
''
,
image
:
''
,
}
}
this
.
addMsg
=
newMsg
;
this
.
addMsg
=
newMsg
;
},
},
...
@@ -330,6 +443,7 @@ export default {
...
@@ -330,6 +443,7 @@ export default {
this
.
resetForm
(
"addMsg"
);
this
.
resetForm
(
"addMsg"
);
this
.
Success
(
res
.
data
.
message
);
this
.
Success
(
res
.
data
.
message
);
this
.
getList
();
this
.
getList
();
this
.
resSetInfo
();
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
)
this
.
Error
(
res
.
data
.
message
)
}
}
...
@@ -346,6 +460,8 @@ export default {
...
@@ -346,6 +460,8 @@ export default {
this
.
addMsg
.
groupId
=
item
.
groupId
;
this
.
addMsg
.
groupId
=
item
.
groupId
;
this
.
addMsg
.
branchId
=
item
.
branchId
;
this
.
addMsg
.
branchId
=
item
.
branchId
;
this
.
addMsg
.
lotteryStatus
=
item
.
lotteryStatus
;
this
.
addMsg
.
lotteryStatus
=
item
.
lotteryStatus
;
this
.
addMsg
.
lotteryRules
=
item
.
lotteryRules
,
this
.
addMsg
.
image
=
item
.
image
},
},
//跳转至获取抽奖奖项信息列表
//跳转至获取抽奖奖项信息列表
goUrl
(
item
){
goUrl
(
item
){
...
@@ -383,7 +499,45 @@ export default {
...
@@ -383,7 +499,45 @@ export default {
},
},
resetForm
(
formName
)
{
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
this
.
$refs
[
formName
].
resetFields
();
}
},
deleteUploadFile
(){
// 删除上传文件
this
.
addMsg
.
image
=
''
;
},
showUpLoadFile
(){
// 预览上传文件
this
.
picIsShow
=
true
;
},
//上传图片
uploadFileBtn
(
file
)
{
//上传
if
(
file
.
file
.
size
>
1024
*
1024
*
10
)
{
this
.
$message
.
warning
(
'文件大小不能超过10M!'
)
return
}
// 1 文档 2 数据 3 图片
let
typeArr
=
[
{
stringArr
:
'GIF|JPG|JPEG|PNG|BMP'
,
type
:
3
},
]
let
ft
=
file
.
file
.
name
.
substring
(
file
.
file
.
name
.
lastIndexOf
(
'.'
)
+
1
,
file
.
file
.
name
.
length
).
toUpperCase
();
let
fileTypeNumber
=
2
;
let
typeOk
=
false
;
typeArr
.
forEach
(
x
=>
{
if
(
x
.
stringArr
.
indexOf
(
ft
)
!=
'-1'
)
{
fileTypeNumber
=
x
.
type
typeOk
=
true
;
}
})
if
(
!
typeOk
)
return
this
.
$message
.
error
(
'请上传图片!'
);
let
newArr
=
[];
newArr
.
push
(
file
.
file
)
let
path
=
"/Upload/activity/"
this
.
$message
.
info
(
'上传中...'
)
this
.
uploadFile
(
path
,
newArr
,
x
=>
{
let
fileSize
=
file
.
file
.
size
<
1024
?
file
.
file
.
size
:(
file
.
file
.
size
/
1024
).
toFixed
(
0
);
this
.
addMsg
.
image
=
x
.
res
.
requestUrls
[
0
].
split
(
'?'
)[
0
]
this
.
$message
.
success
(
'上传成功'
);
this
.
$forceUpdate
();
});
},
}
}
};
};
</
script
>
</
script
>
\ No newline at end of file
src/components/activity/awardList.vue
View file @
c8a8093b
...
@@ -11,15 +11,21 @@
...
@@ -11,15 +11,21 @@
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></div>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<tr>
<th>
序号
</th>
<th>
奖项名
</th>
<th>
奖项名
</th>
<th>
奖项数量
</th>
<th>
奖项数量
</th>
<th>
中奖数量
</th>
<th>
剩余数量
</th>
<th>
奖项状态
</th>
<th>
奖项状态
</th>
<th>
奖项类型
</th>
<th>
奖项类型
</th>
<th>
操作
</th>
<th>
操作
</th>
</tr>
</tr>
<tr
v-for=
"item in dataList"
>
<tr
v-for=
"item in dataList"
>
<td>
{{
item
.
rank
}}
</td>
<td>
{{
item
.
awardName
}}
</td>
<td>
{{
item
.
awardName
}}
</td>
<td>
{{
item
.
awardCount
}}
</td>
<td>
{{
item
.
awardCount
}}
</td>
<td>
{{
item
.
awardWinningCount
}}
</td>
<td>
{{
item
.
awardCount
-
item
.
awardWinningCount
>=
0
?
item
.
awardCount
-
item
.
awardWinningCount
:
0
}}
</td>
<td>
{{
item
.
awardStatus
==
1
?
'正常'
:
'禁用'
}}
</td>
<td>
{{
item
.
awardStatus
==
1
?
'正常'
:
'禁用'
}}
</td>
<td
v-if=
"item.awardType==1"
>
谢谢参与
</td>
<td
v-if=
"item.awardType==1"
>
谢谢参与
</td>
<td
v-if=
"item.awardType==2"
>
一般奖项
</td>
<td
v-if=
"item.awardType==2"
>
一般奖项
</td>
...
@@ -63,7 +69,7 @@
...
@@ -63,7 +69,7 @@
</tr>
</tr>
<td>
<td>
<el-form-item
label=
"奖项类型"
prop=
"awardType"
>
<el-form-item
label=
"奖项类型"
prop=
"awardType"
>
<el-select
filterable
v-model=
"addMsg.awardType"
class=
"w217"
@
change=
"getAwardRelationId()"
>
<el-select
filterable
v-model=
"addMsg.awardType"
class=
"w217"
@
change=
"getAwardRelationId(
addMsg.awardType
)"
>
<el-option
label=
"谢谢参与"
:value=
"1"
></el-option>
<el-option
label=
"谢谢参与"
:value=
"1"
></el-option>
<el-option
label=
"一般奖项"
:value=
"2"
></el-option>
<el-option
label=
"一般奖项"
:value=
"2"
></el-option>
<el-option
label=
"优惠券"
:value=
"3"
></el-option>
<el-option
label=
"优惠券"
:value=
"3"
></el-option>
...
@@ -117,7 +123,7 @@ export default {
...
@@ -117,7 +123,7 @@ export default {
awardName
:
''
,
awardName
:
''
,
awardType
:
1
,
awardType
:
1
,
//谢谢参与和一般奖项为0,优惠券 请求接口返回
//谢谢参与和一般奖项为0,优惠券 请求接口返回
awardRelationId
:
''
,
awardRelationId
:
0
,
awardCount
:
''
,
awardCount
:
''
,
awardStatus
:
1
,
awardStatus
:
1
,
rank
:
''
,
rank
:
''
,
...
@@ -149,10 +155,10 @@ export default {
...
@@ -149,10 +155,10 @@ export default {
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apiJavaPost
(
"/api/sell/lottery/getLotteryAwardList"
,
this
.
msg
,
res
=>
{
this
.
apiJavaPost
(
"/api/sell/lottery/getLotteryAwardList"
,
this
.
msg
,
res
=>
{
console
.
log
(
res
,
'getList'
);
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
;
this
.
dataList
=
res
.
data
.
data
;
console
.
log
(
this
.
dataList
,
'datalist'
);
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
)
this
.
Error
(
res
.
data
.
message
)
}
}
...
@@ -176,7 +182,6 @@ export default {
...
@@ -176,7 +182,6 @@ export default {
this
.
addMsg
.
awardRelationId
=
0
;
this
.
addMsg
.
awardRelationId
=
0
;
}
}
this
.
apiJavaPost
(
"/api/sell/lottery/setLotteryAward"
,
this
.
addMsg
,
res
=>
{
this
.
apiJavaPost
(
"/api/sell/lottery/setLotteryAward"
,
this
.
addMsg
,
res
=>
{
console
.
log
(
res
,
'getList'
);
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
Success
(
res
.
data
.
message
);
this
.
outerVisible
=
false
;
this
.
outerVisible
=
false
;
...
@@ -188,6 +193,7 @@ export default {
...
@@ -188,6 +193,7 @@ export default {
},
},
//修改信息
//修改信息
updateData
(
item
){
updateData
(
item
){
console
.
log
(
item
);
this
.
addMsg
.
id
=
item
.
id
;
this
.
addMsg
.
id
=
item
.
id
;
this
.
addMsg
.
lotteryId
=
item
.
lotteryId
;
this
.
addMsg
.
lotteryId
=
item
.
lotteryId
;
this
.
addMsg
.
awardName
=
item
.
awardName
;
this
.
addMsg
.
awardName
=
item
.
awardName
;
...
@@ -196,12 +202,16 @@ export default {
...
@@ -196,12 +202,16 @@ export default {
this
.
addMsg
.
awardCount
=
item
.
awardCount
;
this
.
addMsg
.
awardCount
=
item
.
awardCount
;
this
.
addMsg
.
awardStatus
=
item
.
awardStatus
;
this
.
addMsg
.
awardStatus
=
item
.
awardStatus
;
this
.
addMsg
.
rank
=
item
.
rank
;
this
.
addMsg
.
rank
=
item
.
rank
;
this
.
getAwardRelationId
();
this
.
getAwardRelationId
(
3
);
},
},
//根据奖项类型请求关联Id
//根据奖项类型请求关联Id
getAwardRelationId
(){
getAwardRelationId
(
id
){
let
userInfo
=
localStorage
.
userInfo
?
JSON
.
parse
(
localStorage
.
userInfo
)
:
''
;
let
branchId
=
userInfo
.
RB_Branch_id
?
userInfo
.
RB_Branch_id
:
0
if
(
id
==
3
){
let
msg
=
{
let
msg
=
{
couponId
:
0
couponId
:
this
.
addMsg
.
awardRelationId
,
branchId
:
branchId
}
}
this
.
apiJavaPost
(
"/api/sell/lottery/getCouponsList"
,
msg
,
res
=>
{
this
.
apiJavaPost
(
"/api/sell/lottery/getCouponsList"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
if
(
res
.
data
.
resultCode
===
1
)
{
...
@@ -210,6 +220,7 @@ export default {
...
@@ -210,6 +220,7 @@ export default {
this
.
Error
(
res
.
data
.
message
)
this
.
Error
(
res
.
data
.
message
)
}
}
},
null
);
},
null
);
}
},
},
//重置信息
//重置信息
resetInfo
(){
resetInfo
(){
...
@@ -218,7 +229,7 @@ export default {
...
@@ -218,7 +229,7 @@ export default {
lotteryId
:
0
,
lotteryId
:
0
,
awardName
:
''
,
awardName
:
''
,
awardType
:
1
,
awardType
:
1
,
awardRelationId
:
''
,
awardRelationId
:
0
,
awardCount
:
''
,
awardCount
:
''
,
awardStatus
:
1
,
awardStatus
:
1
,
rank
:
''
,
rank
:
''
,
...
...
src/plug/index.js
View file @
c8a8093b
...
@@ -116,7 +116,6 @@ export default {
...
@@ -116,7 +116,6 @@ export default {
let
domainUrl
=
''
;
let
domainUrl
=
''
;
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://127.0.0.1"
;
//214主域名
domainUrl
=
"http://127.0.0.1"
;
//214主域名
// domainUrl = "http://192.168.2.16:8083";
if
(
locationName
.
indexOf
(
'oytour'
)
!==-
1
)
{
if
(
locationName
.
indexOf
(
'oytour'
)
!==-
1
)
{
domainUrl
=
"http://webapi.viitto.com"
;
domainUrl
=
"http://webapi.viitto.com"
;
}
}
...
@@ -357,8 +356,9 @@ export default {
...
@@ -357,8 +356,9 @@ export default {
this
.
apiurl
=
apiurl
;
this
.
apiurl
=
apiurl
;
var
token
=
""
;
var
token
=
""
;
var
key
=
""
;
var
key
=
""
;
let
userInfo
=
localStorage
.
userInfo
?
JSON
.
parse
(
localStorage
.
userInfo
)
:
''
let
userInfo
=
localStorage
.
userInfo
?
JSON
.
parse
(
localStorage
.
userInfo
)
:
''
;
let
uid
=
userInfo
.
EmployeeId
?
userInfo
.
EmployeeId
:
0
let
groupId
=
userInfo
.
RB_Group_id
?
userInfo
.
RB_Group_id
:
0
;
let
uid
=
userInfo
.
EmployeeId
?
userInfo
.
EmployeeId
:
0
;
if
(
this
.
getLocalStorage
()
!=
null
)
{
if
(
this
.
getLocalStorage
()
!=
null
)
{
token
=
this
.
getLocalStorage
().
token
;
token
=
this
.
getLocalStorage
().
token
;
key
=
this
.
getLocalStorage
().
SecretKey
;
key
=
this
.
getLocalStorage
().
SecretKey
;
...
@@ -370,7 +370,8 @@ export default {
...
@@ -370,7 +370,8 @@ export default {
"timestamp"
:
timestamp
,
"timestamp"
:
timestamp
,
"token"
:
token
,
"token"
:
token
,
"sign"
:
md5Str
,
"sign"
:
md5Str
,
"uid"
:
uid
"uid"
:
uid
,
"groupId"
:
groupId
}
}
if
(
localStorage
.
g
&&
localStorage
.
g
!=
'undefined'
){
if
(
localStorage
.
g
&&
localStorage
.
g
!=
'undefined'
){
postData
.
groupId
=
parseInt
(
JSON
.
parse
(
localStorage
.
g
).
i
)
postData
.
groupId
=
parseInt
(
JSON
.
parse
(
localStorage
.
g
).
i
)
...
...
src/router/config.js
View file @
c8a8093b
...
@@ -659,6 +659,14 @@ export default {
...
@@ -659,6 +659,14 @@ export default {
title
:
'酒店每日用房详情'
title
:
'酒店每日用房详情'
},
},
},
},
{
path
:
'/HotelsTeam'
,
name
:
'HotelsTeam'
,
component
:
resolve
=>
require
([
'@/components/Hotel/HotelsTeam'
],
resolve
),
meta
:
{
title
:
'酒店对应团'
}
},
{
{
path
:
'/lineManagement'
,
//线路管理
path
:
'/lineManagement'
,
//线路管理
name
:
'lineManagement'
,
name
:
'lineManagement'
,
...
...
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