Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
7012ac1f
Commit
7012ac1f
authored
Nov 08, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限制订单暗佣金额设置以免产生负数成本价
parent
b65c86ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Commission.vue
src/views/ecw/order/special/Commission.vue
+4
-3
No files found.
src/views/ecw/order/special/Commission.vue
View file @
7012ac1f
...
...
@@ -49,7 +49,7 @@
<
/el-form-item
>
<!--
明佣
+
暗佣才显示
-->
<
el
-
form
-
item
label
=
"
暗佣佣金
"
v
-
if
=
"
form.commissionType == 3
"
>
<
el
-
form
-
item
label
=
"
暗佣佣金
"
v
-
if
=
"
form.commissionType == 3
"
prop
=
"
shadeCommissionAmount
"
:
rules
=
"
{type: 'number', max: originPrice.toNumber(), message: '暗佣设置错误', trigger: 'blur'
}
"
>
<
el
-
input
v
-
model
.
number
=
"
form.shadeCommissionAmount
"
placeholder
=
""
class
=
"
w-100
"
><
/el-input
>
{{
currencyMap
[
orderItem
.
seaFreightCurrency
]
}}
/
{{
unitMap
[
orderItem
.
seaFreightVolume
]
}}
<
/el-form-item
>
...
...
@@ -113,6 +113,7 @@ import WorkFlow from '@/components/WorkFlow'
import
{
getDarkReturnCommission
}
from
'
@/api/ecw/customerCommission
'
import
Decimal
from
'
decimal.js
'
import
{
cancelProcessInstance
}
from
'
@/api/bpm/processInstance
'
import
{
number
}
from
"
echarts/lib/export
"
export
default
{
name
:
"
OrderSpecialCommission
"
,
props
:
{
...
...
@@ -184,12 +185,12 @@ export default {
// 成本价
costPrice
(){
if
(
!
this
.
originPrice
)
return
0
return
Decimal
(
this
.
originPrice
).
minus
(
this
.
form
.
shadeCommissionAmount
)
return
Decimal
(
this
.
originPrice
).
minus
(
this
.
form
.
shadeCommissionAmount
||
0
)
}
,
// 销售价
salePrice
(){
if
(
!
this
.
originPrice
)
return
0
return
Decimal
(
this
.
originPrice
).
plus
(
this
.
form
.
lightCommissionAmount
)
return
Decimal
(
this
.
originPrice
).
plus
(
this
.
form
.
lightCommissionAmount
||
0
)
}
}
,
...
...
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