Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-appreciation
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ba620c3f
authored
May 15, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
1ddc7e40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
src/views/inSale/upgradeOrder.vue
src/views/inSale/upgradeOrder.vue
View file @
ba620c3
...
@@ -1134,10 +1134,15 @@ export default {
...
@@ -1134,10 +1134,15 @@ export default {
subOrderList
.
forEach
((
ele
,
eleIdx
)
=>
{
subOrderList
.
forEach
((
ele
,
eleIdx
)
=>
{
const
{
id
,
subOrderCode
,
subTotalPrice
,
upgradeGoodsCommodityCode
,
upgradeGoodsName
,
upgradeGoodsTypeName
,
subProfitAllocation
,
profitAllocationRule
}
=
ele
const
{
id
,
subOrderCode
,
subTotalPrice
,
upgradeGoodsCommodityCode
,
upgradeGoodsName
,
upgradeGoodsTypeName
,
subProfitAllocation
,
profitAllocationRule
}
=
ele
let
{
shopTrafficMoneyCalculateType
,
shopTrafficMoneyCalculateValue
}
=
profitAllocationRule
||
{}
let
{
shopTrafficMoneyCalculateType
,
shopTrafficMoneyCalculateValue
}
=
profitAllocationRule
||
{}
const
{
goodsCost
,
virtualAccountCost
,
actualIncomeMoney
}
=
subProfitAllocation
||
{}
const
{
goodsCost
,
virtualAccountCost
,
actualIncomeMoney
,
thirdPartyCost
,
djCost
}
=
subProfitAllocation
||
{}
let
ruleType
=
TYPELIST
[
shopTrafficMoneyCalculateType
]
||
'--'
let
ruleType
=
TYPELIST
[
shopTrafficMoneyCalculateType
]
||
'--'
let
setMealRuleType
=
TYPELIST
[
setMealRuleObj
.
shopTrafficMoneyCalculateType
]
||
'--'
let
setMealRuleType
=
TYPELIST
[
setMealRuleObj
.
shopTrafficMoneyCalculateType
]
||
'--'
let
orderRuleType
=
TYPELIST
[
orderRuleObj
.
shopTrafficMoneyCalculateType
]
||
'--'
let
orderRuleType
=
TYPELIST
[
orderRuleObj
.
shopTrafficMoneyCalculateType
]
||
'--'
let
_goodsCost
=
virtualAccountCost
||
goodsCost
if
((
thirdPartyCost
||
djCost
)
&&
this
.
pageName
==
'insurance'
)
{
_goodsCost
=
(
thirdPartyCost
||
0
)
+
(
djCost
||
0
)
}
const
_obj
=
{
const
_obj
=
{
...
item
,
...
item
,
rowspan
:
1
,
rowspan
:
1
,
...
@@ -1151,7 +1156,7 @@ export default {
...
@@ -1151,7 +1156,7 @@ export default {
actualIncomeMoney
,
actualIncomeMoney
,
realityShopMerchantName
:
orderRuleObj
.
shopMerchantName
,
realityShopMerchantName
:
orderRuleObj
.
shopMerchantName
,
shopTrafficMoney
:
orderRuleObj
.
shopTrafficMoney
,
shopTrafficMoney
:
orderRuleObj
.
shopTrafficMoney
,
goodsCost
:
virtualAccountCost
||
goodsCost
,
goodsCost
:
_
goodsCost
,
rule
:
`
${
ruleType
}${
!
shopTrafficMoneyCalculateType
?
''
:
shopTrafficMoneyCalculateValue
}${
!
shopTrafficMoneyCalculateType
?
''
:
'%'
}
`
,
rule
:
`
${
ruleType
}${
!
shopTrafficMoneyCalculateType
?
''
:
shopTrafficMoneyCalculateValue
}${
!
shopTrafficMoneyCalculateType
?
''
:
'%'
}
`
,
orderRule
:
`
${
orderRuleType
}${
!
orderRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
orderRuleObj
.
shopTrafficMoneyCalculateValue
}${
!
orderRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
'%'
}
`
,
orderRule
:
`
${
orderRuleType
}${
!
orderRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
orderRuleObj
.
shopTrafficMoneyCalculateValue
}${
!
orderRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
'%'
}
`
,
setMealRule
:
`
${
setMealRuleType
}${
!
setMealRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
setMealRuleObj
.
shopTrafficMoneyCalculateValue
}${
!
setMealRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
'%'
}
`
,
setMealRule
:
`
${
setMealRuleType
}${
!
setMealRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
setMealRuleObj
.
shopTrafficMoneyCalculateValue
}${
!
setMealRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
'%'
}
`
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment