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
dfb0ab7e
Commit
dfb0ab7e
authored
May 25, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
f0ba3f9c
ba53bdd3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
6 deletions
+26
-6
commonUtils.js
src/assets/utils/commonUtils.js
+8
-2
addFinancialDocuments.vue
src/components/FinancialModule/addFinancialDocuments.vue
+17
-1
ExpectedCommission.vue
src/components/sale/ExpectedCommission.vue
+1
-3
No files found.
src/assets/utils/commonUtils.js
View file @
dfb0ab7e
...
...
@@ -5,12 +5,18 @@ var commonUtils = {
arr
.
forEach
(
item
=>
{
if
(
item
.
hasOwnProperty
(
filed
))
{
sum
+=
Number
(
item
[
filed
]);
}
else
{
sum
+=
Number
(
item
);
}
});
return
sum
.
toFixed
(
num
);
},
CaluJsonArraySum2
:
function
(
arr
,
num
)
{
var
sum
=
0
;
arr
.
forEach
(
item
=>
{
sum
+=
Number
(
item
);
});
return
sum
.
toFixed
(
num
);
},
//截取阿里返回文件路径
GetALiFileUrl
:
function
(
str
)
{
var
newStr
=
str
;
...
...
src/components/FinancialModule/addFinancialDocuments.vue
View file @
dfb0ab7e
...
...
@@ -1084,7 +1084,7 @@
let
numToCAN
=
0
let
numToCE
=
0
let
numToMEN
=
0
let
states
=
true
this
.
msg
.
detailList
.
forEach
((
x
,
index
)
=>
{
let
obj
=
x
if
(
x
.
CostTypeName
.
indexOf
(
'房'
)
!=
-
1
||
...
...
@@ -1105,8 +1105,20 @@
y
.
show
=
true
,
numToMEN
+=
Number
(
obj
.
Number
),
y
.
Num
=
numToMEN
}
})
states
=
false
}
})
if
(
states
){
this
.
msg
.
detailList
.
forEach
((
x
,
index
)
=>
{
this
.
HandFeeDetail
&&
this
.
HandFeeDetail
.
DetailList
.
forEach
((
y
,
indexs
)
=>
{
let
obj
=
x
if
(
y
.
Type
==
3
)
{
y
.
show
=
true
,
numToCE
+=
Number
(
obj
.
Number
),
y
.
Num
=
numToCE
states
=
false
}
})
})
}
}
else
{
this
.
HandFeeDetail
&&
this
.
HandFeeDetail
.
DetailList
.
forEach
((
y
,
indexs
)
=>
{
y
.
show
=
false
...
...
@@ -1369,6 +1381,10 @@
this
.
msg
.
HandFeeList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
obj
)))
}
})
if
(
this
.
msg
.
HandFeeList
.
length
==
0
){
this
.
Error
(
'暂无可配置的手配费项,请关闭手配费'
)
return
}
}
if
(
z
)
{
this
.
msg
.
Status
=
0
;
...
...
src/components/sale/ExpectedCommission.vue
View file @
dfb0ab7e
...
...
@@ -587,7 +587,6 @@
// 年终奖
this
.
AnnualBonus
.
AvfOrderNum
=
this
.
CommissionInfor
.
BonusNum
?
this
.
CommissionInfor
.
BonusNum
:
0
this
.
AnnualBonus
.
Commission
=
this
.
CommissionInfor
.
BonusPeriods
?
this
.
CommissionInfor
.
BonusPeriods
:
0
console
.
log
(
this
.
CommissionInfor
,
'----'
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -642,9 +641,8 @@
},
//计算总成本
CalculatePrice
(
arr1
,
num
)
{
var
CoastPrice
=
this
.
$commonUtils
.
CaluJsonArraySum
(
var
CoastPrice
=
this
.
$commonUtils
.
CaluJsonArraySum
2
(
arr1
,
""
,
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