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
daedbd0b
Commit
daedbd0b
authored
Oct 16, 2023
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0ba2911b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
addFinancialDocuments.vue
src/components/FinancialModule/addFinancialDocuments.vue
+22
-4
No files found.
src/components/FinancialModule/addFinancialDocuments.vue
View file @
daedbd0b
...
...
@@ -1191,8 +1191,23 @@
},
// 获取当前手配费选项
chooseHandFee
()
{
console
.
log
(
"我进来啦1"
,
this
.
HandFeeDetail
);
console
.
log
(
"我进来啦2"
,
this
.
msg
.
detailList
);
let
handfreeCount
=
0
;
let
companyID
=
this
.
$route
.
query
.
companyID
;
if
(
companyID
==
1220
){
this
.
msg
.
detailList
.
forEach
((
x
,
index
)
=>
{
if
(
x
.
CostTypeName
.
indexOf
(
'房费送客手数料'
)
!=
-
1
||
x
.
CostTypeName
.
indexOf
(
'餐费送客手数料'
)
!=
-
1
||
x
.
CostTypeName
.
indexOf
(
'门票送客手数料'
)
!=
-
1
){
handfreeCount
+=
1
;
}});
if
(
handfreeCount
>
0
){
this
.
is_HandFee
=
true
;
}
else
{
this
.
is_HandFee
=
false
;
}
}
if
(
!
this
.
is_HandFee
)
return
if
(
this
.
msg
.
detailList
.
length
>
0
)
{
let
HandFeeObj
=
this
.
HandFeeList
.
map
(
item
=>
{
...
...
@@ -1208,7 +1223,7 @@
let
numToCE
=
0
let
numToMEN
=
0
let
states
=
true
let
companyID
=
this
.
$route
.
query
.
companyID
;
this
.
msg
.
detailList
.
forEach
((
x
,
index
)
=>
{
let
obj
=
x
if
(
x
.
CostTypeName
.
indexOf
(
'房'
)
!=
-
1
||
...
...
@@ -1230,6 +1245,7 @@
y
.
show
=
true
,
numToMEN
+=
Number
(
obj
.
Number
)
//, y.Num = numToMEN
}
if
(
x
.
CostTypeName
.
indexOf
(
'房费送客手数料'
)
!=
-
1
&&
y
.
Type
==
5
)
{
if
(
x
.
UnitPrice
<
0
){
y
.
Unit_Price
=-
x
.
UnitPrice
}
else
{
y
.
Unit_Price
=
x
.
UnitPrice
...
...
@@ -1238,6 +1254,7 @@
y
.
show
=
true
,
numToMEN
+=
Number
(
obj
.
Number
)
//, y.Num = numToMEN
}
if
(
x
.
CostTypeName
.
indexOf
(
'餐费送客手数料'
)
!=
-
1
&&
y
.
Type
==
6
)
{
y
.
Num
=
x
.
Number
console
.
log
(
"UnitPriceTo"
,
x
.
UnitPrice
)
if
(
x
.
UnitPrice
<
0
){
...
...
@@ -1248,6 +1265,7 @@
y
.
show
=
true
,
numToMEN
+=
Number
(
obj
.
Number
)
//, y.Num = numToMEN
}
if
(
x
.
CostTypeName
.
indexOf
(
'门票送客手数料'
)
!=
-
1
&&
y
.
Type
==
7
)
{
y
.
Num
=
x
.
Number
if
(
x
.
UnitPrice
<
0
){
y
.
Unit_Price
=-
x
.
UnitPrice
}
else
{
...
...
@@ -1259,7 +1277,7 @@
})
}
})
if
(
states
)
{
this
.
msg
.
detailList
.
forEach
((
x
,
index
)
=>
{
this
.
HandFeeDetail
&&
this
.
HandFeeDetail
.
DetailList
.
forEach
((
y
,
indexs
)
=>
{
...
...
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