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 bbaacb02
authored
Feb 21, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商品成本bug修复
1 parent
ee49082a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/views/inSale/upgradeOrder.vue
src/views/inSale/upgradeOrder.vue
View file @
bbaacb0
...
@@ -791,8 +791,8 @@ export default {
...
@@ -791,8 +791,8 @@ export default {
let
temp
=
JSON
.
parse
(
localStorage
.
getItem
(
`
${
this
.
pageName
==
'insurance'
?
'in'
:
''
}
menuList
${
session
.
merchantId
}
`
))
let
temp
=
JSON
.
parse
(
localStorage
.
getItem
(
`
${
this
.
pageName
==
'insurance'
?
'in'
:
''
}
menuList
${
session
.
merchantId
}
`
))
let
res
=
await
converterApi
({
let
res
=
await
converterApi
({
routerMethod
:
getMerchantSetting
(),
routerMethod
:
getMerchantSetting
(),
merchantId
:
this
.
merchantId
,
//
merchantId: this.merchantId,
sceneType
:
this
.
pageName
==
'insurance'
?
0
:
1
//
sceneType: this.pageName == 'insurance' ? 0 : 1
})
})
// 商品成本设置不可见
// 商品成本设置不可见
if
(
res
?.
costPrivacyShowFlag
!=
'Y'
)
{
if
(
res
?.
costPrivacyShowFlag
!=
'Y'
)
{
...
@@ -1195,7 +1195,8 @@ export default {
...
@@ -1195,7 +1195,8 @@ export default {
if
((
thirdPartyCost
||
djCost
)
&&
this
.
pageName
==
'insurance'
)
{
if
((
thirdPartyCost
||
djCost
)
&&
this
.
pageName
==
'insurance'
)
{
_goodsCost
=
(
thirdPartyCost
||
0
)
+
(
djCost
||
0
)
_goodsCost
=
(
thirdPartyCost
||
0
)
+
(
djCost
||
0
)
}
}
const
types
=
[
item
.
carBrand
,
item
.
carChildsBrandName
,
item
.
carSeriesName
]
const
result
=
types
.
filter
(
type
=>
type
).
join
(
'-'
)
const
_obj
=
{
const
_obj
=
{
...
item
,
...
item
,
tableNum
:
_idx
+
(
para
.
pageNum
-
1
)
*
para
.
pageSize
+
1
,
tableNum
:
_idx
+
(
para
.
pageNum
-
1
)
*
para
.
pageSize
+
1
,
...
@@ -1216,7 +1217,8 @@ export default {
...
@@ -1216,7 +1217,8 @@ export default {
setMealRule
:
`
${
setMealRuleType
}${
!
setMealRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
setMealRuleObj
.
shopTrafficMoneyCalculateValue
}${
!
setMealRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
setMealRuleObj
.
shopTrafficMoneyCalculateType
==
3
?
'元'
:
'%'
}
`
,
setMealRule
:
`
${
setMealRuleType
}${
!
setMealRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
setMealRuleObj
.
shopTrafficMoneyCalculateValue
}${
!
setMealRuleObj
.
shopTrafficMoneyCalculateType
?
''
:
setMealRuleObj
.
shopTrafficMoneyCalculateType
==
3
?
'元'
:
'%'
}
`
,
divisionTypeName
:
item
.
divisionType
==
1
?
'线下对账'
:
'线上分账'
,
divisionTypeName
:
item
.
divisionType
==
1
?
'线下对账'
:
'线上分账'
,
payTypeName
:
PAYTYPEOBJ
[
item
.
payType
],
payTypeName
:
PAYTYPEOBJ
[
item
.
payType
],
paySuccessDate
:
utils
.
dateFormat
(
item
.
paySuccessDate
,
'YYYY-MM-DD HH:mm:ss'
)
paySuccessDate
:
utils
.
dateFormat
(
item
.
paySuccessDate
,
'YYYY-MM-DD HH:mm:ss'
),
carTypeName
:
result
// 车型使用主品牌-子品牌-车系
}
}
// 按固定金额*购买数量特殊处理
// 按固定金额*购买数量特殊处理
if
(
shopTrafficMoneyCalculateType
==
10
)
{
if
(
shopTrafficMoneyCalculateType
==
10
)
{
...
...
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