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
f9dc4704
Commit
f9dc4704
authored
Oct 12, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务 日期功能权限
parent
dbdde84b
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
125 additions
and
95 deletions
+125
-95
ReservationOrder.vue
...components/CarDealerOrder/components/ReservationOrder.vue
+3
-2
FinancialDocuments.vue
src/components/FinancialModule/FinancialDocuments.vue
+34
-15
CombinedRevenueReport.vue
...ents/FinancialModule/ReportForm/CombinedRevenueReport.vue
+1
-1
VisaProductOrder.vue
src/components/SalesVisa/components/VisaProductOrder.vue
+2
-2
TicketOrder.vue
src/components/SingleAirTicket/components/TicketOrder.vue
+6
-6
HotelOrderTotal.vue
src/components/TravelManager/TravelList/HotelOrderTotal.vue
+2
-1
OpTripList.vue
src/components/TravelManager/TravelList/OpTripList.vue
+1
-1
freeTravelOrderStati.vue
...ponents/TravelManager/TravelList/freeTravelOrderStati.vue
+3
-3
todayOrderTotal.vue
src/components/TravelManager/TravelList/todayOrderTotal.vue
+8
-1
BookAcarOrder.vue
...nents/busManagement/BookAcar/components/BookAcarOrder.vue
+4
-4
allList.vue
src/components/myOrdersAllType/components/allList.vue
+8
-8
DateLimit.vue
src/components/public/DateLimit.vue
+7
-15
MonthLimit.vue
src/components/public/MonthLimit.vue
+2
-3
StartDateLimit.vue
src/components/public/StartDateLimit.vue
+20
-11
StartYMDateLimit.vue
src/components/public/StartYMDateLimit.vue
+11
-10
YearLimit.vue
src/components/public/YearLimit.vue
+2
-2
entryForm.vue
src/components/rank/entryForm.vue
+6
-6
ReservationOrder.vue
src/components/scenicSpot/reservation/ReservationOrder.vue
+5
-4
No files found.
src/components/CarDealerOrder/components/ReservationOrder.vue
View file @
f9dc4704
...
@@ -338,9 +338,10 @@ export default {
...
@@ -338,9 +338,10 @@ export default {
if
(
this
.
DatelistUse
){
if
(
this
.
DatelistUse
){
if
(
this
.
DatelistUse
[
0
])
{
if
(
this
.
DatelistUse
[
0
])
{
this
.
msg
.
UseSTime
=
this
.
DatelistUse
[
0
]
this
.
msg
.
UseSTime
=
this
.
DatelistUse
[
0
]
}
if
(
this
.
DatelistUse
[
1
])
{
}
else
this
.
msg
.
UseSTime
=
''
if
(
this
.
DatelistUse
[
1
])
{
this
.
msg
.
UseETime
=
this
.
DatelistUse
[
1
]
this
.
msg
.
UseETime
=
this
.
DatelistUse
[
1
]
}
}
else
this
.
msg
.
UseETime
=
''
}
else
{
}
else
{
this
.
msg
.
UseSTime
=
''
this
.
msg
.
UseSTime
=
''
this
.
msg
.
UseETime
=
''
this
.
msg
.
UseETime
=
''
...
...
src/components/FinancialModule/FinancialDocuments.vue
View file @
f9dc4704
...
@@ -2070,7 +2070,8 @@
...
@@ -2070,7 +2070,8 @@
JoinFrId
:
0
,
JoinFrId
:
0
,
TransferMoney
:
0
,
TransferMoney
:
0
,
CurrencyName
:
''
CurrencyName
:
''
}
}
,
isQueryHistoryData
:
false
,
}
;
}
;
}
,
}
,
created
()
{
created
()
{
...
@@ -2079,6 +2080,8 @@
...
@@ -2079,6 +2080,8 @@
this
.
productionDate
=
[
StartDate
,
EndDate
]
this
.
productionDate
=
[
StartDate
,
EndDate
]
this
.
msg
.
sDate
=
this
.
productionDate
[
0
];
this
.
msg
.
sDate
=
this
.
productionDate
[
0
];
this
.
msg
.
eDate
=
this
.
productionDate
[
1
];
this
.
msg
.
eDate
=
this
.
productionDate
[
1
];
this
.
GetSupperOrderEditAuth
()
if
(
localStorage
.
typeSystem
&&
localStorage
.
typeSystem
==
1
)
this
.
typeSystem
=
localStorage
.
typeSystem
if
(
localStorage
.
typeSystem
&&
localStorage
.
typeSystem
==
1
)
this
.
typeSystem
=
localStorage
.
typeSystem
this
.
isTerminate
=
-
1
this
.
isTerminate
=
-
1
let
userinfo
=
this
.
getLocalStorage
();
let
userinfo
=
this
.
getLocalStorage
();
...
@@ -3140,22 +3143,28 @@
...
@@ -3140,22 +3143,28 @@
getActive
(
active
,
Conditon
,
BOSSBtn
)
{
getActive
(
active
,
Conditon
,
BOSSBtn
)
{
this
.
active
=
active
this
.
active
=
active
// if (this.active == 2 || this.active == 3)
{
// let StartDate = this.getBeforeDate(186, new Date().Format("yyyy-MM-dd"))
// let EndDate = this.getBeforeDate(-1, new Date().Format("yyyy-MM-dd"))
// this.productionDate = [StartDate, EndDate]
// this.msg.sDate = this.productionDate[0];
// this.msg.eDate = this.productionDate[1];
//
}
else
{
// this.productionDate = []
// this.msg.sDate = '';
// this.msg.eDate = '';
//
}
let
StartDate
=
this
.
getBeforeDate
(
186
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
let
StartDate
=
this
.
getBeforeDate
(
186
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
let
EndDate
=
this
.
getBeforeDate
(
-
1
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
let
EndDate
=
this
.
getBeforeDate
(
-
1
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
this
.
productionDate
=
[
StartDate
,
EndDate
]
if
(
!
this
.
isQueryHistoryData
){
this
.
msg
.
sDate
=
this
.
productionDate
[
0
];
if
(
!
this
.
msg
.
sDate
||!
this
.
msg
.
eDate
)
{
this
.
msg
.
eDate
=
this
.
productionDate
[
1
];
this
.
productionDate
=
[
StartDate
,
EndDate
]
this
.
msg
.
sDate
=
this
.
productionDate
[
0
]
this
.
msg
.
eDate
=
this
.
productionDate
[
1
]
}
}
else
{
if
(
this
.
active
==
2
||
this
.
active
==
3
)
{
this
.
productionDate
=
[
StartDate
,
EndDate
]
this
.
msg
.
sDate
=
this
.
productionDate
[
0
];
this
.
msg
.
eDate
=
this
.
productionDate
[
1
];
}
else
{
this
.
productionDate
=
[]
this
.
msg
.
sDate
=
''
;
this
.
msg
.
eDate
=
''
;
}
}
this
.
msg
.
Conditon
=
Conditon
this
.
msg
.
Conditon
=
Conditon
if
(
BOSSBtn
)
{
if
(
BOSSBtn
)
{
...
@@ -3164,6 +3173,16 @@
...
@@ -3164,6 +3173,16 @@
this
.
msg
.
pageIndex
==
1
this
.
msg
.
pageIndex
==
1
this
.
getPageList
(
0
,
1
)
this
.
getPageList
(
0
,
1
)
}
,
}
,
GetSupperOrderEditAuth
()
{
var
actiionContract
=
this
.
$AuthCode
.
isQueryHistoryData
;
var
isQueryHistoryData
=
this
.
$AuthCode
.
isQueryHistoryData
;
this
.
CheckUserAuth
(
actiionContract
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
isQueryHistoryData
=
true
;
}
}
);
}
,
getPageList
(
t
,
active
)
{
getPageList
(
t
,
active
)
{
if
(
active
)
{
if
(
active
)
{
this
.
total
=
0
this
.
total
=
0
...
...
src/components/FinancialModule/ReportForm/CombinedRevenueReport.vue
View file @
f9dc4704
...
@@ -479,7 +479,7 @@ tr._item_list td:last-child {
...
@@ -479,7 +479,7 @@ tr._item_list td:last-child {
:picker-options=
"pickerOptions"
:picker-options=
"pickerOptions"
:range-separator=
"$t('OrderList.zhi')"
:range-separator=
"$t('OrderList.zhi')"
></el-date-picker>
-->
></el-date-picker>
-->
<StartDateLimit
:clearable=
"false"
:dateTime=
"productionDate"
@
change=
"(startDate,endDate)=>
{
msg.startDate=startDate,msg.endDate=endDate
}">
</StartDateLimit>
<StartDateLimit
:clearable=
"false"
:dateTime=
"productionDate"
@
change=
"(startDate,endDate)=>
{
productionDate=[startDate,endDate],timeAdd(1)
}">
</StartDateLimit>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
src/components/SalesVisa/components/VisaProductOrder.vue
View file @
f9dc4704
...
@@ -385,8 +385,8 @@
...
@@ -385,8 +385,8 @@
<em>
完结日期
</em>
<em>
完结日期
</em>
<!--
<el-date-picker
v-model=
'msg.FinishSDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
-->
<!--
<el-date-picker
v-model=
'msg.FinishSDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
-->
<DateLimit
:clearable=
"true"
:StartGroupDate=
"msg.FinishSDate"
:EndGroupDate=
"msg.FinishEDate"
@
change=
"(date)=> msg.FinishSDate = date"
></DateLimit>
<DateLimit
:clearable=
"true"
:StartGroupDate=
"msg.FinishSDate"
:EndGroupDate=
"msg.FinishEDate"
@
change=
"(date)=> msg.FinishSDate = date"
></DateLimit>
<!-- -
<el-date-picker
v-model=
'msg.FinishEDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"pickerBeginDateAfter"
></el-date-picker>
--
>
-
<el-date-picker
v-if=
"msg.FinishSDate"
v-model=
'msg.FinishEDate'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"pickerBeginDateAfter"
></el-date-picker
>
<DateLimit
:clearable=
"true"
:StartGroupDate=
"msg.FinishEDate"
@
change=
"(date)=>
{msg.FinishEDate = date,pickerEnd()}">
</DateLimit>
<DateLimit
v-else
:clearable=
"true"
:StartGroupDate=
"msg.FinishEDate"
@
change=
"(date)=>
{msg.FinishEDate = date,pickerEnd()}">
</DateLimit>
</span>
</span>
</li>
</li>
<li>
<li>
...
...
src/components/SingleAirTicket/components/TicketOrder.vue
View file @
f9dc4704
...
@@ -447,8 +447,8 @@
...
@@ -447,8 +447,8 @@
},
},
getDatesBM
()
{
getDatesBM
()
{
if
(
this
.
DatelistBM
)
{
if
(
this
.
DatelistBM
)
{
this
.
msg
.
StartTime
=
this
.
DatelistBM
[
0
]
this
.
msg
.
StartTime
=
this
.
DatelistBM
[
0
]
?
this
.
DatelistBM
[
0
]:
''
this
.
msg
.
EndTime
=
this
.
DatelistBM
[
1
]
this
.
msg
.
EndTime
=
this
.
DatelistBM
[
1
]
?
this
.
DatelistBM
[
1
]:
''
}
}
if
(
!
this
.
DatelistBM
)
{
if
(
!
this
.
DatelistBM
)
{
this
.
msg
.
StartTime
=
''
this
.
msg
.
StartTime
=
''
...
@@ -457,8 +457,8 @@
...
@@ -457,8 +457,8 @@
},
},
getDatesUse
()
{
getDatesUse
()
{
if
(
this
.
DatelistUse
)
{
if
(
this
.
DatelistUse
)
{
this
.
msg
.
DepartSTime
=
this
.
DatelistUse
[
0
]
this
.
msg
.
DepartSTime
=
this
.
DatelistUse
[
0
]
?
this
.
DatelistUse
[
0
]:
''
this
.
msg
.
DepartETime
=
this
.
DatelistUse
[
1
]
this
.
msg
.
DepartETime
=
this
.
DatelistUse
[
1
]
?
this
.
DatelistUse
[
1
]:
''
}
}
if
(
!
this
.
DatelistUse
)
{
if
(
!
this
.
DatelistUse
)
{
this
.
msg
.
DepartSTime
=
''
this
.
msg
.
DepartSTime
=
''
...
@@ -467,8 +467,8 @@
...
@@ -467,8 +467,8 @@
},
},
getDates
()
{
getDates
()
{
if
(
this
.
Datelist
)
{
if
(
this
.
Datelist
)
{
this
.
msg
.
FinishSTime
=
this
.
Datelist
[
0
]
this
.
msg
.
FinishSTime
=
this
.
Datelist
[
0
]
?
this
.
Datelist
[
0
]:
''
this
.
msg
.
FinishETime
=
this
.
Datelist
[
1
]
this
.
msg
.
FinishETime
=
this
.
Datelist
[
1
]
?
this
.
Datelist
[
1
]:
''
}
}
if
(
!
this
.
Datelist
)
{
if
(
!
this
.
Datelist
)
{
this
.
msg
.
FinishSTime
=
''
this
.
msg
.
FinishSTime
=
''
...
...
src/components/TravelManager/TravelList/HotelOrderTotal.vue
View file @
f9dc4704
...
@@ -253,8 +253,9 @@
...
@@ -253,8 +253,9 @@
<li>
<li>
<span>
<span>
<em>
{{
$t
(
'salesModule.CreateOverTime'
)
}}
</em>
<em>
{{
$t
(
'salesModule.CreateOverTime'
)
}}
</em>
<el-date-picker
type=
"date"
v-model=
"msg.CEndTime"
:picker-options=
"CEndTimeAfter"
value-format=
"yyyy-MM-dd"
<el-date-picker
v-if=
"msg.CStartTime"
type=
"date"
v-model=
"msg.CEndTime"
:picker-options=
"CEndTimeAfter"
value-format=
"yyyy-MM-dd"
placeholder
></el-date-picker>
placeholder
></el-date-picker>
<DateLimit
v-else
:clearable=
"true"
:StartGroupDate=
"msg.CEndTime"
@
change=
"(date)=> msg.CEndTime = date"
></DateLimit>
</span>
</span>
</li>
</li>
...
...
src/components/TravelManager/TravelList/OpTripList.vue
View file @
f9dc4704
...
@@ -432,7 +432,7 @@
...
@@ -432,7 +432,7 @@
this
.
getLineList
();
this
.
getLineList
();
},
},
created
()
{
created
()
{
let
StartDate
=
this
.
getBeforeDate
(
186
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
let
StartDate
=
this
.
getBeforeDate
(
90
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
this
.
queryMsg
.
StartGroupDate
=
StartDate
this
.
queryMsg
.
StartGroupDate
=
StartDate
this
.
getControlList
();
this
.
getControlList
();
},
},
...
...
src/components/TravelManager/TravelList/freeTravelOrderStati.vue
View file @
f9dc4704
...
@@ -228,9 +228,9 @@
...
@@ -228,9 +228,9 @@
<li>
<li>
<span>
<span>
<em>
{{
$t
(
'salesModule.CreateOverTime'
)
}}
</em>
<em>
{{
$t
(
'salesModule.CreateOverTime'
)
}}
</em>
<
!--
<el-date-picker
type=
"date"
v-model=
"msg.CEndTime"
<
el-date-picker
v-if=
"msg.CStartTime"
type=
"date"
v-model=
"msg.CEndTime"
:picker-options=
"CEndTimeAfter"
value-format=
"yyyy-MM-dd"
placeholder
></el-date-picker>
-->
:picker-options=
"CEndTimeAfter"
value-format=
"yyyy-MM-dd"
placeholder
></el-date-picker>
<DateLimit
:clearable=
"true"
:StartGroupDate=
"msg.CEndTime"
@
change=
"(date)=> msg.CEndTime = date"
></DateLimit>
<DateLimit
v-else
:clearable=
"true"
:StartGroupDate=
"msg.CEndTime"
@
change=
"(date)=> msg.CEndTime = date"
></DateLimit>
</span>
</span>
</li>
</li>
...
...
src/components/TravelManager/TravelList/todayOrderTotal.vue
View file @
f9dc4704
...
@@ -92,7 +92,8 @@
...
@@ -92,7 +92,8 @@
</el-date-picker>
-->
</el-date-picker>
-->
<DateLimit
:clearable=
"true"
:StartGroupDate=
"msg.QStartDate"
:EndGroupDate=
"msg.QEndDate"
@
change=
"(date)=> msg.QStartDate = date"
></DateLimit>
<DateLimit
:clearable=
"true"
:StartGroupDate=
"msg.QStartDate"
:EndGroupDate=
"msg.QEndDate"
@
change=
"(date)=> msg.QStartDate = date"
></DateLimit>
-
-
<el-date-picker
v-model=
"msg.QEndDate"
class=
"w135"
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"pickerBeginDateAfter"
></el-date-picker>
<el-date-picker
v-if=
"msg.QStartDate"
v-model=
"msg.QEndDate"
class=
"w135"
value-format=
"yyyy-MM-dd"
type=
"date"
:picker-options=
"pickerBeginDateAfterFT"
></el-date-picker>
<DateLimit
v-else
:clearable=
"true"
:StartGroupDate=
"msg.QEndDate"
@
change=
"(date)=>
{msg.QEndDate = date,pickerEnd()}">
</DateLimit>
</span>
</span>
</li>
</li>
<li>
<li>
...
@@ -735,6 +736,12 @@
...
@@ -735,6 +736,12 @@
};
};
},
},
methods
:
{
methods
:
{
pickerEnd
(){
if
(
this
.
msg
.
QStartDate
>
this
.
msg
.
QEndDate
&&
this
.
msg
.
QEndDate
!==
""
)
{
this
.
$message
.
error
(
"结束日期不能大于开始日期"
);
this
.
msg
.
QEndDate
=
""
;
}
},
//跳转到团控列表
//跳转到团控列表
goToTravelList
(
item
)
{
goToTravelList
(
item
)
{
if
(
item
.
teamType
==
1
)
{
if
(
item
.
teamType
==
1
)
{
...
...
src/components/busManagement/BookAcar/components/BookAcarOrder.vue
View file @
f9dc4704
...
@@ -229,8 +229,8 @@
...
@@ -229,8 +229,8 @@
},
},
getDatesUse
(){
getDatesUse
(){
if
(
this
.
DatelistUse
){
if
(
this
.
DatelistUse
){
this
.
msg
.
OrderSTime
=
this
.
DatelistUse
[
0
]
this
.
msg
.
OrderSTime
=
this
.
DatelistUse
[
0
]?
this
.
DatelistUse
[
0
]:
''
this
.
msg
.
OrderETime
=
this
.
DatelistUse
[
1
]
this
.
msg
.
OrderETime
=
this
.
DatelistUse
[
1
]
?
this
.
DatelistUse
[
1
]:
''
}
if
(
!
this
.
DatelistUse
){
}
if
(
!
this
.
DatelistUse
){
this
.
msg
.
OrderSTime
=
''
this
.
msg
.
OrderSTime
=
''
this
.
msg
.
OrderETime
=
''
this
.
msg
.
OrderETime
=
''
...
@@ -238,8 +238,8 @@
...
@@ -238,8 +238,8 @@
},
},
getDates
(){
getDates
(){
if
(
this
.
Datelist
){
if
(
this
.
Datelist
){
this
.
msg
.
StartTime
=
this
.
Datelist
[
0
]
this
.
msg
.
StartTime
=
this
.
Datelist
[
0
]
?
this
.
Datelist
[
0
]:
''
this
.
msg
.
EndTime
=
this
.
Datelist
[
1
]
this
.
msg
.
EndTime
=
this
.
Datelist
[
1
]
?
this
.
Datelist
[
1
]:
''
}
if
(
!
this
.
Datelist
){
}
if
(
!
this
.
Datelist
){
this
.
msg
.
StartTime
=
''
this
.
msg
.
StartTime
=
''
this
.
msg
.
EndTime
=
''
this
.
msg
.
EndTime
=
''
...
...
src/components/myOrdersAllType/components/allList.vue
View file @
f9dc4704
...
@@ -689,8 +689,8 @@
...
@@ -689,8 +689,8 @@
},
},
getDatesBM
(){
getDatesBM
(){
if
(
this
.
DatelistBM
){
if
(
this
.
DatelistBM
){
this
.
msg
.
StartTime
=
this
.
DatelistBM
[
0
]
this
.
msg
.
StartTime
=
this
.
DatelistBM
[
0
]
?
this
.
DatelistBM
[
0
]:
''
this
.
msg
.
EndTime
=
this
.
DatelistBM
[
1
]
this
.
msg
.
EndTime
=
this
.
DatelistBM
[
1
]
?
this
.
DatelistBM
[
1
]:
''
}
if
(
!
this
.
DatelistBM
){
}
if
(
!
this
.
DatelistBM
){
this
.
msg
.
StartTime
=
''
this
.
msg
.
StartTime
=
''
...
@@ -699,10 +699,10 @@
...
@@ -699,10 +699,10 @@
},
},
getDatesUse
(){
getDatesUse
(){
if
(
this
.
DatelistUse
){
if
(
this
.
DatelistUse
){
this
.
msg
.
DepartSTime
=
this
.
DatelistUse
[
0
]
this
.
msg
.
DepartSTime
=
this
.
DatelistUse
[
0
]
?
this
.
DatelistUse
[
0
]:
''
this
.
msg
.
DepartETime
=
this
.
DatelistUse
[
1
]
this
.
msg
.
DepartETime
=
this
.
DatelistUse
[
1
]
?
this
.
DatelistUse
[
1
]
:
''
this
.
msg2
.
DepartSTime
=
this
.
DatelistUse
[
0
]
this
.
msg2
.
DepartSTime
=
this
.
DatelistUse
[
0
]
?
this
.
DatelistUse
[
0
]
:
''
this
.
msg2
.
DepartETime
=
this
.
DatelistUse
[
1
]
this
.
msg2
.
DepartETime
=
this
.
DatelistUse
[
1
]
?
this
.
DatelistUse
[
1
]
:
''
}
if
(
!
this
.
DatelistUse
){
}
if
(
!
this
.
DatelistUse
){
this
.
msg
.
DepartSTime
=
''
this
.
msg
.
DepartSTime
=
''
this
.
msg
.
DepartETime
=
''
this
.
msg
.
DepartETime
=
''
...
@@ -712,8 +712,8 @@
...
@@ -712,8 +712,8 @@
},
},
getDates
(){
getDates
(){
if
(
this
.
Datelist
){
if
(
this
.
Datelist
){
this
.
msg
.
FinishSTime
=
this
.
Datelist
[
0
]
this
.
msg
.
FinishSTime
=
this
.
Datelist
[
0
]
?
this
.
Datelist
[
0
]:
''
this
.
msg
.
FinishETime
=
this
.
Datelist
[
1
]
this
.
msg
.
FinishETime
=
this
.
Datelist
[
1
]
?
this
.
Datelist
[
1
]:
''
}
if
(
!
this
.
Datelist
){
}
if
(
!
this
.
Datelist
){
this
.
msg
.
FinishSTime
=
''
this
.
msg
.
FinishSTime
=
''
this
.
msg
.
FinishETime
=
''
this
.
msg
.
FinishETime
=
''
...
...
src/components/public/DateLimit.vue
View file @
f9dc4704
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"SGroupDate"
<el-date-picker
class=
"w150"
type=
"date"
v-model=
"SGroupDate"
:picker-options=
"pickerBeginDateBefore"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerBeginDateBefore"
value-format=
"yyyy-MM-dd"
placeholder
placeholder
:clearable=
"
clearable==false||clearable
?clearable:true"
:clearable=
"
((clearable==false||clearable)&&!isQueryHistoryData)
?clearable:true"
@
change=
"getTime"
></el-date-picker>
@
change=
"getTime"
></el-date-picker>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -14,22 +14,14 @@
...
@@ -14,22 +14,14 @@
pickerBeginDateBefore
:
{
pickerBeginDateBefore
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
if
(
this
.
EndGroupDate
){
if
(
this
.
EndGroupDate
){
if
(
this
.
EndGroupDate
==
null
)
{
if
(
!
this
.
isQueryHistoryData
){
if
(
this
.
SGroupDate
||
this
.
isQueryHistoryData
){
let
endTime
=
this
.
TourDateRestrictions
()
let
endTime
=
this
.
TourDateRestrictions
()
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
}
else
{
}
else
return
false
;
let
endTime
=
new
Date
(
this
.
EndGroupDate
);
}
else
{
if
(
this
.
SGroupDate
||
this
.
isQueryHistoryData
){
let
endTime
=
this
.
TourDateRestrictions
()
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
}
else
{
let
endTime
=
new
Date
(
this
.
EndGroupDate
);
return
endTime
.
getTime
()
<
time
.
getTime
();
}
}
}
}
else
{
}
else
{
if
(
this
.
SGroupDate
||
this
.
isQueryHistoryData
){
if
(
!
this
.
isQueryHistoryData
){
let
endTime
=
this
.
TourDateRestrictions
()
let
endTime
=
this
.
TourDateRestrictions
()
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
}
}
...
...
src/components/public/MonthLimit.vue
View file @
f9dc4704
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
:picker-options=
"pickerBeginDateBefore"
:picker-options=
"pickerBeginDateBefore"
value-format=
"yyyy-MM"
value-format=
"yyyy-MM"
placeholder=
"选择月"
placeholder=
"选择月"
:clearable=
"
clearable==false||clearable
?clearable:true"
>
:clearable=
"
((clearable==false||clearable)&&!isQueryHistoryData)
?clearable:true"
>
</el-date-picker>
</el-date-picker>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -17,9 +17,8 @@
...
@@ -17,9 +17,8 @@
years
:
''
,
years
:
''
,
pickerBeginDateBefore
:
{
pickerBeginDateBefore
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
if
(
this
.
years
&&
this
.
isQueryHistoryData
){
if
(
!
this
.
isQueryHistoryData
){
let
endTime
=
this
.
TourDateRestrictions
()
let
endTime
=
this
.
TourDateRestrictions
()
console
.
log
(
endTime
)
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
}
}
}
}
...
...
src/components/public/StartDateLimit.vue
View file @
f9dc4704
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
:picker-options=
"pickerOptions"
:range-separator=
"$t('OrderList.zhi')"
:range-separator=
"$t('OrderList.zhi')"
:clearable=
"
clearable==false||clearable
?clearable:true"
:clearable=
"
((clearable==false||clearable)&&!isQueryHistoryData)
?clearable:true"
></el-date-picker>
></el-date-picker>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -24,16 +24,17 @@
...
@@ -24,16 +24,17 @@
}
}
},
},
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
let
endTime
=
this
.
TourDateRestrictions
()
if
(
!
this
.
isQueryHistoryData
)
{
if
(
time
<
endTime
||
this
.
isQueryHistoryData
)
{
let
endTime
=
this
.
TourDateRestrictions
()
return
true
;
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
// return true;
}
else
{
}
else
{
if
(
this
.
choiceDate
)
{
//
if (this.choiceDate) {
const
one
=
365
*
24
*
3600
*
1000
;
//
const one = 365 * 24 * 3600 * 1000;
const
minTime
=
this
.
choiceDate
-
one
;
//
const minTime = this.choiceDate - one;
const
maxTime
=
this
.
choiceDate
+
one
;
//
const maxTime = this.choiceDate + one;
return
time
.
getTime
()
<
minTime
||
time
.
getTime
()
>
maxTime
;
//
return time.getTime()
<
minTime
||
time
.
getTime
()
>
maxTime
;
}
//
}
}
}
}
}
},
},
...
@@ -53,7 +54,15 @@
...
@@ -53,7 +54,15 @@
handler
(
n
,
o
){
handler
(
n
,
o
){
this
.
productionDate
=
this
.
dateTime
this
.
productionDate
=
this
.
dateTime
},
},
deep
:
true
,
deep
:
false
,
immediate
:
true
,
},
clearable
:{
handler
(
n
,
o
){
if
(
n
)
console
.
log
(
n
,
'--------'
)
},
deep
:
false
,
immediate
:
true
,
immediate
:
true
,
}
}
},
},
...
...
src/components/public/StartYMDateLimit.vue
View file @
f9dc4704
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
align=
"right"
align=
"right"
:picker-options=
"pickerOptions"
:picker-options=
"pickerOptions"
:range-separator=
"$t('OrderList.zhi')"
:range-separator=
"$t('OrderList.zhi')"
:clearable=
"
clearable==false||clearable
?clearable:true"
:clearable=
"
((clearable==false||clearable)&&!isQueryHistoryData)
?clearable:true"
></el-date-picker>
></el-date-picker>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -46,16 +46,17 @@
...
@@ -46,16 +46,17 @@
}
}
},
},
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
let
endTime
=
this
.
TourDateRestrictions
()
if
(
!
this
.
isQueryHistoryData
)
{
if
(
time
<
endTime
||
this
.
isQueryHistoryData
)
{
let
endTime
=
this
.
TourDateRestrictions
()
return
true
;
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
// return true;
}
else
{
}
else
{
if
(
this
.
choiceDate
)
{
//
if (this.choiceDate) {
const
one
=
365
*
24
*
3600
*
1000
;
//
const one = 365 * 24 * 3600 * 1000;
const
minTime
=
this
.
choiceDate
-
one
;
//
const minTime = this.choiceDate - one;
const
maxTime
=
this
.
choiceDate
+
one
;
//
const maxTime = this.choiceDate + one;
return
time
.
getTime
()
<
minTime
||
time
.
getTime
()
>
maxTime
;
//
return time.getTime()
<
minTime
||
time
.
getTime
()
>
maxTime
;
}
//
}
}
}
}
}
},
},
...
...
src/components/public/YearLimit.vue
View file @
f9dc4704
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
type=
"year"
type=
"year"
value-format=
"yyyy"
value-format=
"yyyy"
placeholder=
"选择年"
placeholder=
"选择年"
:clearable=
"
clearable==false||clearable
?clearable:true"
>
:clearable=
"
((clearable==false||clearable)&&!isQueryHistoryData)
?clearable:true"
>
</el-date-picker>
</el-date-picker>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
QStartDate
:
''
,
QStartDate
:
''
,
pickerBeginDateBefore
:
{
pickerBeginDateBefore
:
{
disabledDate
:
time
=>
{
disabledDate
:
time
=>
{
if
(
this
.
QStartDate
&&
!
this
.
isQueryHistoryData
){
if
(
!
this
.
isQueryHistoryData
){
let
endTime
=
this
.
TourDateRestrictions
()
let
endTime
=
this
.
TourDateRestrictions
()
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
}
}
...
...
src/components/rank/entryForm.vue
View file @
f9dc4704
...
@@ -403,8 +403,8 @@
...
@@ -403,8 +403,8 @@
},
},
getDatesBM
()
{
getDatesBM
()
{
if
(
this
.
DatelistBM
)
{
if
(
this
.
DatelistBM
)
{
this
.
msg
.
StartTime
=
this
.
DatelistBM
[
0
]
;
this
.
msg
.
StartTime
=
this
.
DatelistBM
[
0
]
?
this
.
DatelistBM
[
0
]:
''
this
.
msg
.
EndTime
=
this
.
DatelistBM
[
1
]
;
this
.
msg
.
EndTime
=
this
.
DatelistBM
[
1
]
?
this
.
DatelistBM
[
1
]:
''
}
}
if
(
!
this
.
DatelistBM
)
{
if
(
!
this
.
DatelistBM
)
{
this
.
msg
.
StartTime
=
""
;
this
.
msg
.
StartTime
=
""
;
...
@@ -413,8 +413,8 @@
...
@@ -413,8 +413,8 @@
},
},
getDatesUse
()
{
getDatesUse
()
{
if
(
this
.
DatelistUse
)
{
if
(
this
.
DatelistUse
)
{
this
.
msg
.
DepartSTime
=
this
.
DatelistUse
[
0
];
this
.
msg
.
DepartSTime
=
this
.
DatelistUse
[
0
]
?
this
.
DatelistUse
[
1
]:
''
;
this
.
msg
.
DepartETime
=
this
.
DatelistUse
[
1
];
this
.
msg
.
DepartETime
=
this
.
DatelistUse
[
1
]
?
this
.
DatelistUse
[
1
]:
''
;
}
}
if
(
!
this
.
DatelistUse
)
{
if
(
!
this
.
DatelistUse
)
{
this
.
msg
.
DepartSTime
=
""
;
this
.
msg
.
DepartSTime
=
""
;
...
@@ -423,8 +423,8 @@
...
@@ -423,8 +423,8 @@
},
},
getDates
()
{
getDates
()
{
if
(
this
.
Datelist
)
{
if
(
this
.
Datelist
)
{
this
.
msg
.
FinishSTime
=
this
.
Datelist
[
0
]
;
this
.
msg
.
FinishSTime
=
this
.
Datelist
[
0
]
?
this
.
Datelist
[
0
]:
''
this
.
msg
.
FinishETime
=
this
.
Datelist
[
1
]
;
this
.
msg
.
FinishETime
=
this
.
Datelist
[
1
]
?
this
.
Datelist
[
1
]:
''
}
}
if
(
!
this
.
Datelist
)
{
if
(
!
this
.
Datelist
)
{
this
.
msg
.
FinishSTime
=
""
;
this
.
msg
.
FinishSTime
=
""
;
...
...
src/components/scenicSpot/reservation/ReservationOrder.vue
View file @
f9dc4704
...
@@ -342,9 +342,10 @@ export default {
...
@@ -342,9 +342,10 @@ export default {
if
(
this
.
DatelistUse
){
if
(
this
.
DatelistUse
){
if
(
this
.
DatelistUse
[
0
])
{
if
(
this
.
DatelistUse
[
0
])
{
this
.
msg
.
UseSTime
=
this
.
DatelistUse
[
0
]
this
.
msg
.
UseSTime
=
this
.
DatelistUse
[
0
]
}
if
(
this
.
DatelistUse
[
1
])
{
}
else
this
.
msg
.
UseSTime
=
''
if
(
this
.
DatelistUse
[
1
])
{
this
.
msg
.
UseETime
=
this
.
DatelistUse
[
1
]
this
.
msg
.
UseETime
=
this
.
DatelistUse
[
1
]
}
}
else
this
.
msg
.
UseETime
=
''
}
else
{
}
else
{
this
.
msg
.
UseSTime
=
''
this
.
msg
.
UseSTime
=
''
this
.
msg
.
UseETime
=
''
this
.
msg
.
UseETime
=
''
...
@@ -353,9 +354,9 @@ export default {
...
@@ -353,9 +354,9 @@ export default {
getDates
()
{
getDates
()
{
if
(
this
.
Datelist
){
if
(
this
.
Datelist
){
if
(
this
.
Datelist
[
0
])
{
if
(
this
.
Datelist
[
0
])
{
this
.
msg
.
StartTime
=
this
.
Datelist
[
0
]
this
.
msg
.
StartTime
=
this
.
Datelist
[
0
]
?
this
.
Datelist
[
0
]:
''
}
if
(
this
.
Datelist
[
1
])
{
}
if
(
this
.
Datelist
[
1
])
{
this
.
msg
.
EndTime
=
this
.
Datelist
[
1
]
this
.
msg
.
EndTime
=
this
.
Datelist
[
1
]
?
this
.
Datelist
[
1
]:
''
}
}
}
else
{
}
else
{
this
.
msg
.
StartTime
=
''
this
.
msg
.
StartTime
=
''
...
...
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