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 1e2ddd2a
authored
Sep 06, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
购买数量修改
1 parent
6cf6d2d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/views/inSale/upgradeOrder.vue
src/views/inSale/upgradeOrder.vue
View file @
1e2ddd2
...
@@ -1152,7 +1152,7 @@ export default {
...
@@ -1152,7 +1152,7 @@ export default {
const
setMealRuleObj
=
subItem
.
profitAllocationRule
||
{}
// 套餐规则取值对象
const
setMealRuleObj
=
subItem
.
profitAllocationRule
||
{}
// 套餐规则取值对象
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
,
purchaseNum
}
=
profitAllocationRule
||
{}
const
{
goodsCost
,
virtualAccountCost
,
actualIncomeMoney
,
thirdPartyCost
,
djCost
}
=
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
]
||
'--'
...
@@ -1186,13 +1186,13 @@ export default {
...
@@ -1186,13 +1186,13 @@ export default {
}
}
// 按固定金额*购买数量特殊处理
// 按固定金额*购买数量特殊处理
if
(
shopTrafficMoneyCalculateType
==
10
)
{
if
(
shopTrafficMoneyCalculateType
==
10
)
{
_obj
.
rule
=
`按固定金额
${
shopTrafficMoneyCalculateValue
}
元*
${
ele
.
purchaseNum
||
''
}
`
_obj
.
rule
=
`按固定金额
${
shopTrafficMoneyCalculateValue
}
元*
${
purchaseNum
||
''
}
`
}
}
if
(
orderRuleObj
.
shopTrafficMoneyCalculateType
==
10
)
{
if
(
orderRuleObj
.
shopTrafficMoneyCalculateType
==
10
)
{
_obj
.
orderRule
=
`按固定金额
${
orderRuleObj
.
shopTrafficMoneyCalculateValue
}
元*
${
ele
.
purchaseNum
||
''
}
`
_obj
.
orderRule
=
`按固定金额
${
orderRuleObj
.
shopTrafficMoneyCalculateValue
}
元*
${
orderRuleObj
.
purchaseNum
||
''
}
`
}
}
if
(
setMealRuleObj
.
shopTrafficMoneyCalculateType
==
10
)
{
if
(
setMealRuleObj
.
shopTrafficMoneyCalculateType
==
10
)
{
_obj
.
setMealRule
=
`按固定金额
${
setMealRuleObj
.
shopTrafficMoneyCalculateValue
}
元*
${
ele
.
purchaseNum
||
''
}
`
_obj
.
setMealRule
=
`按固定金额
${
setMealRuleObj
.
shopTrafficMoneyCalculateValue
}
元*
${
setMealRuleObj
.
purchaseNum
||
''
}
`
}
}
tableData
.
push
(
_obj
)
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