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
476e0265
Commit
476e0265
authored
May 23, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
95e019b3
1cd35d28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
commonUtils.js
src/assets/utils/commonUtils.js
+4
-6
ExpectedCommission.vue
src/components/sale/ExpectedCommission.vue
+5
-6
No files found.
src/assets/utils/commonUtils.js
View file @
476e0265
var
commonUtils
=
{
//json数组求和
CaluJsonArraySum
:
function
(
arr
,
filed
,
num
,
type
)
{
CaluJsonArraySum
:
function
(
arr
,
filed
,
num
)
{
var
sum
=
0
;
arr
.
forEach
(
item
=>
{
if
(
type
)
{
sum
+=
Number
(
item
);
if
(
item
.
hasOwnProperty
(
filed
))
{
sum
+=
Number
(
item
[
filed
]
);
}
else
{
if
(
item
.
hasOwnProperty
(
filed
))
{
sum
+=
Number
(
item
[
filed
]);
}
sum
+=
Number
(
item
);
}
});
return
sum
.
toFixed
(
num
);
...
...
src/components/sale/ExpectedCommission.vue
View file @
476e0265
...
...
@@ -616,8 +616,8 @@
setTimeout
(()
=>
{
let
arr1
=
[
this
.
CommissionInfor
.
PeopleMoney
,
this
.
CommissionInfor
.
EuropeMoney
]
let
arr2
=
[
this
.
CommissionInfor
.
SalesCommission
,
this
.
CommissionInfor
.
JapanCommission
,
this
.
CommissionInfor
.
EuropeCommission
,
this
.
GNCommission
]
this
.
CommissionJJ
=
this
.
CalculatePrice
(
arr1
)
this
.
CommissionTC
=
this
.
CalculatePrice
(
arr2
)
this
.
CommissionJJ
=
this
.
CalculatePrice
(
arr1
,
0
)
this
.
CommissionTC
=
this
.
CalculatePrice
(
arr2
,
2
)
},
500
)
}
...
...
@@ -646,12 +646,11 @@
},
//计算总成本
CalculatePrice
(
arr1
)
{
CalculatePrice
(
arr1
,
num
)
{
var
CoastPrice
=
this
.
$commonUtils
.
CaluJsonArraySum
(
arr1
,
"CostPrice"
,
2
,
1
""
,
num
);
return
CoastPrice
},
...
...
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