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
a9c3f3f8
Commit
a9c3f3f8
authored
Oct 28, 2019
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
c10afdb9
07ba8c15
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
20 deletions
+82
-20
calendarUtils.js
src/assets/utils/calendarUtils.js
+58
-1
HotelProductManage2.vue
src/components/Hotel/HotelProductManage2.vue
+14
-13
groupInquiry.vue
src/components/SalesModule/groupInquiry.vue
+2
-2
TravelControlList.vue
...components/TravelManager/TravelList/TravelControlList.vue
+8
-4
No files found.
src/assets/utils/calendarUtils.js
View file @
a9c3f3f8
import
{
weekdays
}
from
"moment"
;
var
calendarUtils
=
{
//选中状态
checkState
:
{
...
...
@@ -18,7 +20,7 @@ var calendarUtils = {
CurrentDateStr
:
calendarUtils
.
formatDate2
(
d
)
};
},
//初始化日历
//初始化日历
一 二 三 四 五 六 日
createCalendar
:
function
(
dateStr
)
{
var
days
=
[];
var
date
;
...
...
@@ -75,6 +77,61 @@ var calendarUtils = {
CurrentWeek
:
currentWeek
};
},
//初始化日历 日 一 二 三 四 五 六
createCalendar_V2
:
function
(
dateStr
)
{
var
days
=
[];
var
date
;
if
(
dateStr
)
{
date
=
new
Date
(
dateStr
);
}
else
{
var
now
=
new
Date
();
date
=
new
Date
(
calendarUtils
.
formatDate
(
now
.
getFullYear
(),
now
.
getMonth
()
+
1
,
1
));
}
var
currentDay
=
date
.
getDate
();
var
currentYear
=
date
.
getFullYear
();
var
currentMonth
=
date
.
getMonth
()
+
1
;
var
currentWeek
=
date
.
getDay
();
// 1...6,0
var
str
=
calendarUtils
.
formatDate
(
currentYear
,
currentMonth
,
currentDay
);
days
.
length
=
0
;
// 当月第一天是周日,放在第一行第1个位置,前面0个
//初始化第一周
for
(
var
i
=
currentWeek
;
i
>=
0
;
i
--
)
{
var
d
=
new
Date
(
str
);
d
.
setDate
(
d
.
getDate
()
-
i
);
var
dayobject
=
{};
dayobject
.
day
=
d
;
days
.
push
(
dayobject
);
//将日期放入data 中的days数组 供页面渲染使用
}
//其他周
var
temp
=
35
;
if
(
currentWeek
+
new
Date
(
currentYear
,
currentMonth
,
0
).
getDate
()
>
35
)
{
temp
=
41
;
}
for
(
var
i
=
1
;
i
<
temp
-
currentWeek
;
i
++
)
{
var
d
=
new
Date
(
str
);
d
.
setDate
(
d
.
getDate
()
+
i
);
var
dayobject
=
{};
dayobject
.
day
=
d
;
days
.
push
(
dayobject
);
}
return
{
DayArray
:
days
,
CurrentDay
:
currentDay
,
CurrentMonth
:
currentMonth
,
CurrentYear
:
currentYear
,
CurrentWeek
:
currentWeek
};
},
// 返回 类似 2016-01-02 格式的字符串
formatDate
:
function
(
year
,
month
,
day
)
{
var
y
=
year
;
...
...
src/components/Hotel/HotelProductManage2.vue
View file @
a9c3f3f8
...
...
@@ -37,19 +37,19 @@
<span
style=
"color:#000000;background-color: #02F78E;padding:2px 4px;border-radius:5px"
>
特别价
</span>
</div>
<div
class=
"hotelProductManage2_calendar"
>
<div
class=
"hotelProductManage2_calendarItem"
v-for=
"(item, index) in day
s
"
:key=
"index"
>
<div
class=
"hotelProductManage2_calendarItem"
v-for=
"(item, index) in day
List
"
:key=
"index"
>
<div
class=
"calendarItem_month"
title=
"点击查看详情"
@
click=
"calendarShow(item, index)"
>
{{
item
.
date
}}
</div>
<div
class=
"hotelproductCkbox"
>
<el-checkbox
v-model=
"item.isCked"
@
change=
"changeHotelStatus(item,index)"
>
全选
</el-checkbox>
</div>
<div
class=
"calendarItem_week"
>
<div>
周日
</div>
<div>
周一
</div>
<div>
周二
</div>
<div>
周三
</div>
<div>
周四
</div>
<div>
周五
</div>
<div>
周六
</div>
<div>
周日
</div>
</div>
<div
class=
"calendarItem_day"
>
<div
v-for=
"(subItem, index2) in item.days"
:key=
"index2"
...
...
@@ -621,7 +621,7 @@
TotalInventory
:
''
,
Validity
:
''
},
day
s
:
[],
day
List
:
[],
calendar
:
{
num
:
0
,
show
:
false
,
...
...
@@ -937,15 +937,15 @@
this
.
hotelInfo
.
HotelName
=
json
.
HotelName
;
this
.
hotelInfo
.
TotalInventory
=
json
.
TotalInventory
;
this
.
hotelInfo
.
Validity
=
json
.
Validity
;
for
(
let
i
=
0
;
i
<
this
.
day
s
[
key
].
days
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
day
List
[
key
].
days
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
json
.
list
.
length
;
j
++
)
{
if
(
this
.
day
s
[
key
].
days
[
i
].
day
===
json
.
list
[
j
].
DayStr
)
{
this
.
day
s
[
key
].
days
[
i
][
'data'
]
=
json
.
list
[
j
]
if
(
this
.
day
List
[
key
].
days
[
i
].
day
===
json
.
list
[
j
].
DayStr
)
{
this
.
day
List
[
key
].
days
[
i
][
'data'
]
=
json
.
list
[
j
]
}
}
}
if
(
key
===
this
.
calendar
.
num
)
{
this
.
$set
(
this
.
calendar
,
'data'
,
this
.
day
s
[
this
.
calendar
.
num
])
this
.
$set
(
this
.
calendar
,
'data'
,
this
.
day
List
[
this
.
calendar
.
num
])
}
this
.
$forceUpdate
();
}
...
...
@@ -953,18 +953,19 @@
},
getCalendarDays
:
function
(
date
,
key
)
{
let
month
=
new
Date
(
date
).
Format
(
'yyyy-MM'
)
let
dayList
=
this
.
$calendarUtils
.
createCalendar
(
date
).
DayArray
;
let
tempMonth
=
this
.
$calendarUtils
.
createCalendar_V2
(
date
).
DayArray
;
//console.log("dayList",tempMonth);
let
days
=
[];
for
(
let
i
=
0
;
i
<
dayList
.
length
;
i
++
)
{
let
month
=
dayList
[
i
].
day
.
Format
(
'yyyy-MM'
);
let
day
=
dayList
[
i
].
day
.
Format
(
'yyyy-MM-dd'
);
for
(
let
i
=
0
;
i
<
tempMonth
.
length
;
i
++
)
{
let
month
=
tempMonth
[
i
].
day
.
Format
(
'yyyy-MM'
);
let
day
=
tempMonth
[
i
].
day
.
Format
(
'yyyy-MM-dd'
);
days
.
push
({
date
:
dayList
[
i
].
day
,
date
:
tempMonth
[
i
].
day
,
month
:
month
,
day
:
day
});
};
this
.
day
s
[
key
]
=
{
this
.
day
List
[
key
]
=
{
date
:
month
,
days
:
days
,
isCked
:
false
...
...
src/components/SalesModule/groupInquiry.vue
View file @
a9c3f3f8
...
...
@@ -362,7 +362,7 @@
<div>
<div
class=
"el-col"
style=
"width:280px"
>
<div>
<div
class=
"TCL-TCNUM"
>
{{
item
.
TCNUM
}}
</div>
<div
class=
"TCL-TCNUM"
>
{{
item
.
TCNUM
}}
(
{{
item
.
TCID
}}
)
</div>
<div
class=
"d12"
style=
"float:none;margin:3px auto;"
>
<p><i
class=
"iconfont icon-biaoti1"
></i>
{{
item
.
LineName
}}
</p>
<p
class=
"d12p"
>
{{
item
.
Title
}}
</p>
...
...
@@ -528,7 +528,7 @@
<div
class=
"TC_remarkContent"
>
<div
class=
"clearfix TCL-redType"
>
<div
class=
"TCL_remarkTitle"
>
地接备注团号:
</div>
<div
class=
"TCL_Content"
>
{{
item
.
Combination
Num
}}
</div>
<div
class=
"TCL_Content"
>
{{
item
.
DMC
Num
}}
</div>
</div>
<div
class=
"clearfix TCL-redType"
>
<div
class=
"TCL_remarkTitle"
>
OP对外备注:
</div>
...
...
src/components/TravelManager/TravelList/TravelControlList.vue
View file @
a9c3f3f8
...
...
@@ -383,8 +383,12 @@
</div>
<div>
<div
class=
"el-col"
style=
"position:relative;width:200px"
>
<div
v-if=
"item.IsWarning===1"
title=
"紧急团"
class=
"travel_warning"
></div>
<!--
<div
v-else
title=
"地接团"
class=
"travel_warningDi"
></div>
-->
<template
v-if=
"item.TeamType==3"
>
<div
title=
"地接团"
class=
"travel_warningDi"
></div>
</
template
>
<
template
v-else
>
<div
v-if=
"item.IsWarning===1"
title=
"紧急团"
class=
"travel_warning"
></div>
</
template
>
<div>
<div
class=
"TC_teamType"
>
<span
v-if=
"item.IsB2B==0"
title=
"内部团"
>
{{$t('Operation.Op_nei')}}
</span>
...
...
@@ -589,10 +593,10 @@
<span
slot=
"reference"
class=
"price"
>
{{$t('Operation.Op_priceDetail')}}
</span>
</el-popover>
</p>
<p
class=
"travelprice
"
>
<p
style=
"color:red;margin:20px 0 10px 0;font-size:12px;
"
>
今日点击量:{{item.TodayClickCount}}
</p>
<p
class=
"travelprice
"
>
<p
style=
"color:red;font-size:12px;
"
>
总点击量:{{item.TotalClickCount}}
</p>
</div>
...
...
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