Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 810a467c
authored
Dec 12, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
74fa3923
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/views/serviceConfig/addService.vue
src/views/serviceConfig/addService.vue
View file @
810a467
...
...
@@ -420,8 +420,8 @@ export default {
let
{
servicePeriod
,
standardSalesCost
,
standardShelfCost
,
salesCost
,
shelfCost
}
=
element
const
it
=
salePeriodData
.
find
(
v
=>
v
.
servicePeriod
==
servicePeriod
)
if
(
computeFlag
==
0
)
{
s
ales
Cost
=
this
.
calcPrice
(
it
?.
standardShelfCost
,
priceCoefficient
)
||
0
// 计算后销售成本
s
helf
Cost
=
this
.
calcPrice
(
it
?.
standardSalesCost
,
priceCoefficient
)
||
0
// 计算后上架成本
s
helf
Cost
=
this
.
calcPrice
(
it
?.
standardShelfCost
,
priceCoefficient
)
||
0
// 计算后销售成本
s
ales
Cost
=
this
.
calcPrice
(
it
?.
standardSalesCost
,
priceCoefficient
)
||
0
// 计算后上架成本
}
if
(
this
.
isEmpty
(
salesCost
)
||
this
.
isEmpty
(
shelfCost
))
{
throw
new
Error
(
`请输入
${
serviceGrade
}
规格
${
servicePeriod
}
年版的
${
this
.
isEmpty
(
salesCost
)
?
'销售成本'
:
'上架成本'
}
`
)
...
...
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