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
52dafd84
Commit
52dafd84
authored
Mar 07, 2019
by
王悦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
5cf8310a
0a7e48aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
9 deletions
+42
-9
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+6
-1
CommissionDetail.vue
src/components/administrative/CommissionDetail.vue
+36
-8
No files found.
src/components/Hotel/roomReservationsDetails.vue
View file @
52dafd84
...
...
@@ -218,7 +218,12 @@ export default {
ID
:
item
.
NewHotelId
})
item
.
PayStyle
=
item
.
PayStyle
.
toString
()
item
.
OrderDetailsList
.
forEach
(
x
=>
{
item
.
OrderDetailsList
.
forEach
((
x
,
index1
)
=>
{
if
(
x
.
HouseTypeCount
<=
0
){
x
.
HouseTypeCount
=
item
.
HouseStatistics
.
HouseTypeList
[
index1
].
HouseTypeCount
.
toString
();
}
else
{
x
.
HouseTypeCount
=
x
.
HouseTypeCount
.
toString
();
}
x
.
HouseTypeCount
=
x
.
HouseTypeCount
.
toString
();
x
.
UnitPrice
=
x
.
UnitPrice
.
toString
();
x
.
HotelDiscount
=
x
.
HotelDiscount
.
toString
();
...
...
src/components/administrative/CommissionDetail.vue
View file @
52dafd84
...
...
@@ -55,6 +55,7 @@ export default {
multipleSort
:
false
,
loading
:
true
,
CompanyList
:[],
dataListTwo
:
[],
stringPerons
:
''
};
},
...
...
@@ -96,10 +97,23 @@ export default {
}
},
filterMethod
(
filters
){
if
(
filters
.
bName
==
''
)
this
.
msg
.
BName
=-
1
else
this
.
msg
.
BName
=
filters
.
bName
console
.
log
(
"filter"
,
filters
);
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dataListTwo
))
let
dataListTwo
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dataListTwo
))
if
(
filters
.
bName
!=
''
&&
filters
.
bName
!=
'__all__'
){
data
=
data
.
filter
(
item
=>
item
.
bName
.
indexOf
(
filters
.
bName
)
!=-
1
);
}
if
(
filters
.
departmentName
!=
''
){
data
=
data
.
filter
(
item
=>
item
.
departmentName
.
indexOf
(
filters
.
departmentName
)
!=-
1
);
}
if
(
filters
.
createByStr
!=
''
){
data
=
data
.
filter
(
item
=>
item
.
createByStr
.
indexOf
(
filters
.
createByStr
)
!=-
1
);
}
if
((
filters
.
bName
===
''
||
filters
.
bName
===
'__all__'
)
&&
filters
.
departmentName
===
''
&&
filters
.
createByStr
===
''
){
data
=
dataListTwo
}
this
.
dataList
=
data
console
.
log
(
data
)
},
customCompFunc
(
params
)
{
if
(
params
.
type
===
"see"
)
{
...
...
@@ -132,9 +146,10 @@ export default {
this
.
CompanyList
.
forEach
(
x
=>
{
let
item
=
{};
item
.
label
=
x
.
BName
;
item
.
value
=
x
.
Id
;
item
.
value
=
x
.
BName
;
companyList
.
push
(
item
);
});
console
.
log
(
companyList
)
let
company
=
{
field
:
"bName"
,
title
:
"公司"
,
...
...
@@ -142,11 +157,15 @@ export default {
titleAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
result
:
""
,
filterMultiple
:
false
,
filters
:
companyList
,
type
:
"select"
// filterMultiple: false,
// filters: companyList,
// result: "",
// type: "select",
orderBy
:
"asc"
//
orderBy: "asc"
// isFrozen:true
};
let
department
=
{
...
...
@@ -155,7 +174,11 @@ export default {
width
:
80
,
titleAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
isResize
:
true
,
result
:
""
,
filterMultiple
:
false
,
filters
:
companyList
,
type
:
"text"
};
let
userName
=
{
field
:
"createByStr"
,
...
...
@@ -163,7 +186,11 @@ export default {
titleAlign
:
"left"
,
columnAlign
:
"left"
,
isResize
:
true
,
width
:
80
width
:
80
,
result
:
""
,
filterMultiple
:
false
,
filters
:
[{}],
type
:
"text"
};
let
commissionMoney
=
{
field
:
"commissionMoney"
,
...
...
@@ -329,6 +356,7 @@ export default {
this
.
dataList
.
forEach
(
x
=>
{
x
.
sumMoney
=
x
.
commissionMoney
+
x
.
otherMoney
-
x
.
backMoney
})
this
.
dataListTwo
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
dataList
))
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
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