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
15409a74
Commit
15409a74
authored
Dec 03, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增付款单房费、差旅费、签证费、机票相关费用类型单据的预付款日期最多推后3天!
parent
2f6700a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
addFinancialDocuments.vue
src/components/FinancialModule/addFinancialDocuments.vue
+25
-0
No files found.
src/components/FinancialModule/addFinancialDocuments.vue
View file @
15409a74
...
@@ -890,9 +890,34 @@ export default {
...
@@ -890,9 +890,34 @@ export default {
if
(
this
.
orderObj
){
if
(
this
.
orderObj
){
this
.
msg
.
VisaIds
=
this
.
orderObj
.
VisaIds
?
this
.
orderObj
.
VisaIds
:
''
;
this
.
msg
.
VisaIds
=
this
.
orderObj
.
VisaIds
?
this
.
orderObj
.
VisaIds
:
''
;
}
}
// 2019-12-3 18:29:31 新增费用类型判断
let
riqi
=
false
this
.
msg
.
detailList
.
forEach
(
x
=>
{
this
.
msg
.
detailList
.
forEach
(
x
=>
{
if
(
!
riqi
&&
(
x
.
CostTypeName
==
'房费'
||
x
.
CostTypeName
==
'差旅费'
||
x
.
CostTypeName
==
'签证费'
||
x
.
CostTypeName
.
indexOf
(
'机票'
)
!==
-
1
)){
riqi
=
true
}
delete
x
.
rate
;
delete
x
.
rate
;
});
});
if
(
riqi
)
{
var
today
=
new
Date
();
var
year
=
today
.
getFullYear
();
var
month
=
today
.
getMonth
();
var
date
=
today
.
getDate
();
var
weeks
=
[
"日"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
]
var
temp
=
new
Date
(
year
,
month
,
date
+
3
)
var
today
=
Date
.
parse
(
new
Date
())
var
PayDate
=
this
.
msg
.
PayDate
var
startTime
=
Date
.
parse
(
temp
);
var
endTime
=
Date
.
parse
(
PayDate
);
if
(
endTime
>
startTime
)
{
this
.
$message
.
error
(
'房费、差旅费、签证费、机票相关费用类型单据的预付款日期最多推后3天!'
);
return
}
// else if (endTime
<
today
)
{
// this.$message.error('房费、差旅费、签证费、机票相关费用类型单据的预付款日期最多推后3天!');
// return
// }
}
//旅客名单数据组装
//旅客名单数据组装
if
(
!
this
.
$route
.
query
.
edit
){
if
(
!
this
.
$route
.
query
.
edit
){
this
.
msg
.
Type
=
this
.
$route
.
query
.
Type
this
.
msg
.
Type
=
this
.
$route
.
query
.
Type
...
...
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