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 512abd27
authored
Sep 27, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.45.0-0926' into 'master'
上线合并 See merge request
!17
2 parents
318c14ce
acc30ca4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
src/views/inSale/upgradeOrder.vue
src/views/inSale/upgradeOrder.vue
View file @
512abd2
...
...
@@ -1143,7 +1143,7 @@ export default {
converterApi
(
para
).
then
(
res
=>
{
res
.
list
=
res
&&
res
.
list
?
res
.
list
:
[]
let
tableData
=
[]
const
TYPELIST
=
{
0
:
'--'
,
1
:
'毛利'
,
2
:
'收入'
,
3
:
'固定'
,
8
:
'(收入-自定义其他费用)'
,
9
:
'(收入-其他费用)
'
}
const
TYPELIST
=
{
0
:
'--'
,
1
:
'毛利'
,
2
:
'收入'
,
3
:
'固定'
,
4
:
"(产值-流量成本)"
,
5
:
"(产值-流量成本-其他费用不包含产品成本)"
,
6
:
"(产值-流量成本-其他费用包含产品成本)"
,
8
:
'(收入-自定义其他费用)'
,
9
:
'(收入-其他费用)'
,
10
:
'按固定金额*购买数量
'
}
res
.
list
.
forEach
((
item
,
_idx
)
=>
{
const
packageOrderList
=
item
.
packageOrderList
||
[]
const
orderRuleObj
=
item
.
mainProfitAllocation
||
{}
// 整单规则取值对象
...
...
@@ -1152,7 +1152,7 @@ export default {
const
setMealRuleObj
=
subItem
.
profitAllocationRule
||
{}
// 套餐规则取值对象
subOrderList
.
forEach
((
ele
,
eleIdx
)
=>
{
const
{
id
,
subOrderCode
,
subTotalPrice
,
upgradeGoodsCommodityCode
,
upgradeGoodsName
,
upgradeGoodsTypeName
,
subProfitAllocation
,
profitAllocationRule
}
=
ele
let
{
shopTrafficMoneyCalculateType
,
shopTrafficMoneyCalculateValue
}
=
profitAllocationRule
||
{}
let
{
shopTrafficMoneyCalculateType
,
shopTrafficMoneyCalculateValue
,
purchaseNum
}
=
profitAllocationRule
||
{}
const
{
goodsCost
,
virtualAccountCost
,
actualIncomeMoney
,
thirdPartyCost
,
djCost
}
=
subProfitAllocation
||
{}
let
ruleType
=
TYPELIST
[
shopTrafficMoneyCalculateType
]
||
'--'
let
setMealRuleType
=
TYPELIST
[
setMealRuleObj
.
shopTrafficMoneyCalculateType
]
||
'--'
...
...
@@ -1184,6 +1184,16 @@ export default {
payTypeName
:
PAYTYPEOBJ
[
item
.
payType
],
paySuccessDate
:
utils
.
dateFormat
(
item
.
paySuccessDate
,
'YYYY-MM-DD HH:mm:ss'
)
}
// 按固定金额*购买数量特殊处理
if
(
shopTrafficMoneyCalculateType
==
10
)
{
_obj
.
rule
=
`按固定金额
${
shopTrafficMoneyCalculateValue
}
元*
${
purchaseNum
||
''
}
`
}
if
(
orderRuleObj
.
shopTrafficMoneyCalculateType
==
10
)
{
_obj
.
orderRule
=
`按固定金额
${
orderRuleObj
.
shopTrafficMoneyCalculateValue
}
元*
${
orderRuleObj
.
purchaseNum
||
''
}
`
}
if
(
setMealRuleObj
.
shopTrafficMoneyCalculateType
==
10
)
{
_obj
.
setMealRule
=
`按固定金额
${
setMealRuleObj
.
shopTrafficMoneyCalculateValue
}
元*
${
setMealRuleObj
.
purchaseNum
||
''
}
`
}
tableData
.
push
(
_obj
)
})
})
...
...
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