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
64a5dc81
Commit
64a5dc81
authored
Dec 03, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Plain Diff
订单异常单证异常优化
parents
d0e2e24e
27149936
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
20 deletions
+23
-20
Commossion.vue
src/views/ecw/offer/components/Commossion.vue
+10
-6
SpecialDetail.vue
src/views/ecw/offer/components/SpecialDetail.vue
+8
-5
ApprovalDetail.vue
src/views/ecw/order/components/ApprovalDetail.vue
+2
-2
Commission.vue
src/views/ecw/order/special/Commission.vue
+3
-7
No files found.
src/views/ecw/offer/components/Commossion.vue
View file @
64a5dc81
...
...
@@ -159,16 +159,20 @@ export default {
return
s
?
'
【
'
+
s
+
'
】
'
:
''
}
}
,
costPrice
(){
// 最初的运费
initialPrice
(){
return
Decimal
(
this
.
form
.
orgSeaFreight
||
0
)
.
minus
(
this
.
form
.
orgShadeCommissionAmount
||
0
)
//
.minus(this.form.orgShadeCommissionAmount || 0)
.
minus
(
this
.
form
.
orgLightCommissionAmount
||
0
)
.
minus
(
this
.
form
.
shadeCommissionAmount
||
0
)
}
,
// 新的成本价
costPrice
(){
return
this
.
initialPrice
.
minus
(
this
.
form
.
shadeCommissionAmount
||
0
)
}
,
// 新的销售价
salePrice
(){
return
Decimal
(
this
.
form
.
orgSeaFreight
||
0
)
.
minus
(
this
.
form
.
orgLightCommissionAmount
||
0
)
.
plus
(
this
.
form
.
lightCommissionAmount
||
0
)
return
this
.
initialPrice
.
plus
(
this
.
form
.
lightCommissionAmount
||
0
)
}
,
currencyMap
(){
let
map
=
{
}
...
...
src/views/ecw/offer/components/SpecialDetail.vue
View file @
64a5dc81
...
...
@@ -142,14 +142,17 @@ export default {
/* costPrice(){
return Decimal(this.form.seaFreight || 0).minus(this.form.lightCommissionAmount || 0).minus(this.form.shadeCommissionAmount || 0)
}
*/
costPrice
(){
// 最初的运费
initialPrice
(){
return
Decimal
(
this
.
form
.
orgSeaFreight
||
0
)
.
minus
(
this
.
form
.
orgShadeCommissionAmount
||
0
)
.
minus
(
this
.
form
.
orgLightCommissionAmount
||
0
)
.
minus
(
this
.
form
.
shadeCommissionAmount
||
0
)
// .minus(this.form.orgShadeCommissionAmount || 0)
.
minus
(
this
.
form
.
orgLightCommissionAmount
||
0
)
}
,
costPrice
(){
return
this
.
initialPrice
.
minus
(
this
.
form
.
shadeCommissionAmount
||
0
)
}
,
salePrice
(){
return
Decimal
(
this
.
form
.
orgSeaFreight
||
0
).
minus
(
this
.
form
.
orgLightCommissionAmount
||
0
)
.
plus
(
this
.
form
.
lightCommissionAmount
||
0
)
return
this
.
initialPrice
.
plus
(
this
.
form
.
lightCommissionAmount
||
0
)
}
,
}
,
methods
:
{
...
...
src/views/ecw/order/components/ApprovalDetail.vue
View file @
64a5dc81
...
...
@@ -67,10 +67,10 @@
{{
$t
(
'
原运费
'
)
}}
:
{{
detail
.
orgFreight
}}
{{
currencyMap
[
detail
.
freightCurrency
]
}}
/
{{
unitMap
[
detail
.
freightVolume
]
}}
<
/div
>
<
div
>
{{
$t
(
'
新运费
'
)
}}
:
{{
Decimal
(
detail
.
freight
).
plus
(
detail
.
lightCommissionAmount
)
}}
{{
currencyMap
[
detail
.
freightCurrency
]
}}
/
{{
unitMap
[
detail
.
freightVolume
]
}}
{{
$t
(
'
新运费
'
)
}}
:
{{
Decimal
(
detail
.
orgFreight
||
0
).
minus
(
detail
.
lightCommissionAmount
||
0
).
plus
(
detail
.
lightCommissionAmount
||
0
)
}}
{{
currencyMap
[
detail
.
freightCurrency
]
}}
/
{{
unitMap
[
detail
.
freightVolume
]
}}
<
/div
>
<
div
>
{{
$t
(
'
成本价
'
)
}}
:
{{
Decimal
(
detail
.
freight
).
minus
(
detail
.
shadeCommissionAmount
)
}}
{{
currencyMap
[
detail
.
freightCurrency
]
}}
/
{{
unitMap
[
detail
.
freightVolume
]
}}
{{
$t
(
'
成本价
'
)
}}
:
{{
Decimal
(
detail
.
orgFreight
||
0
).
minus
(
detail
.
lightCommissionAmount
||
0
).
minus
(
detail
.
shadeCommissionAmount
||
0
)
}}
{{
currencyMap
[
detail
.
freightCurrency
]
}}
/
{{
unitMap
[
detail
.
freightVolume
]
}}
<
/div
>
<
div
>
{{
$t
(
'
明佣
'
)
}}
:
{{
detail
.
lightCommissionAmount
}}
{{
currencyMap
[
detail
.
freightCurrency
]
}}
/
{{
unitMap
[
detail
.
freightVolume
]
}}
...
...
src/views/ecw/order/special/Commission.vue
View file @
64a5dc81
...
...
@@ -187,19 +187,15 @@ export default {
}
,
// 原价
originPrice
(){
if
(
!
this
.
form
.
orgFreight
)
return
0
return
Decimal
(
this
.
form
.
orgFreight
).
minus
(
parseFloat
(
this
.
form
.
orgLightCommissionAmount
)
||
0
)
return
Decimal
(
this
.
form
.
orgFreight
||
0
).
minus
(
this
.
form
.
orgLightCommissionAmount
||
0
)
}
,
// 成本价
costPrice
(){
if
(
!
this
.
originPrice
)
return
0
return
Decimal
(
this
.
originPrice
).
minus
(
parseFloat
(
this
.
form
.
shadeCommissionAmount
)
||
0
)
return
this
.
originPrice
.
minus
(
this
.
form
.
shadeCommissionAmount
||
0
)
}
,
// 销售价
salePrice
(){
if
(
!
this
.
originPrice
)
return
0
return
Decimal
(
this
.
originPrice
).
plus
(
parseFloat
(
this
.
form
.
lightCommissionAmount
)
||
0
)
return
this
.
originPrice
.
plus
(
this
.
form
.
lightCommissionAmount
||
0
)
}
,
totalCommision
(){
return
Decimal
(
this
.
form
.
lightCommissionAmount
||
0
).
plus
(
this
.
form
.
shadeCommissionAmount
||
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