Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 7ec2c6af
authored
Jul 20, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(商品上架): 业务开发
1 parent
8b283b40
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
src/views/goods/shelfProduct/components/shelfProductConfirm/components/product/components/modify/index.vue
src/views/goods/shelfProduct/utils/status.js
src/views/goods/shelfProduct/components/shelfProductConfirm/components/product/components/modify/index.vue
View file @
7ec2c6a
...
@@ -475,22 +475,29 @@ export default {
...
@@ -475,22 +475,29 @@ export default {
if
(
isUpgradeProductCostStyleCustom
(
this
.
product
?.
detailList
?.[
0
]?.
upgradeProductCostStyle
))
{
if
(
isUpgradeProductCostStyleCustom
(
this
.
product
?.
detailList
?.[
0
]?.
upgradeProductCostStyle
))
{
return
;
return
;
}
}
const
reqData
=
{
upgradeGoodsId
:
this
.
product
.
upgradeGoodsId
||
this
.
product
.
detailList
[
0
].
upgradeGoodsId
,
};
// 如果是膜类的话, 需要带上 服务项目id
if
(
isSolarFilm
(
this
.
product
?.
detailList
?.[
0
]?.
upgradeGoods
?.
goodsInfo
?.
goodsType
))
{
reqData
.
serviceItemId
=
this
.
product
?.
detailList
?.[
0
]?.
serviceItemId
;
}
// 权益延保第三方成本 equityOperationCost;
// 权益延保第三方成本 equityOperationCost;
// 轻改产品升级成本 upgradeCost;
// 轻改产品升级成本 upgradeCost;
const
{
equityOperationCost
,
upgradeCost
}
=
await
postProductCostCalculateApi
({
const
{
equityOperationCost
,
upgradeCost
}
=
await
postProductCostCalculateApi
(
reqData
);
serviceItemId
:
this
.
product
?.
detailList
?.[
0
]?.
serviceItemId
,
upgradeGoodsId
:
this
.
product
.
upgradeGoodsId
||
this
.
product
.
detailList
[
0
].
upgradeGoodsId
,
});
// 如果是会员权益升级场景
// 如果是会员权益升级场景
if
(
isMemberRightsUpgrade
(
this
.
baseSceneCode
))
{
if
(
isMemberRightsUpgrade
(
this
.
baseSceneCode
))
{
this
.
product
.
detailList
[
0
].
thirdPartyCost
=
equityOperationCost
;
this
.
product
.
detailList
[
0
].
thirdPartyCost
=
equityOperationCost
??
0
;
}
}
// 如果是精品升级场景
// 如果是精品升级场景
if
(
isQualityUpgrade
(
this
.
baseSceneCode
))
{
if
(
isQualityUpgrade
(
this
.
baseSceneCode
))
{
this
.
product
.
detailList
[
0
].
upgradeProductCost
=
upgradeCost
;
this
.
product
.
detailList
[
0
].
upgradeProductCost
=
upgradeCost
??
0
;
// 如果 是否作为赠送产品
// 如果 是否作为赠送产品
if
(
this
.
product
.
detailList
[
0
].
isGiftCost
===
"Y"
)
{
if
(
this
.
product
.
detailList
[
0
].
isGiftCost
===
"Y"
)
{
this
.
product
.
detailList
[
0
].
giftCost
=
upgradeCost
;
this
.
product
.
detailList
[
0
].
giftCost
=
upgradeCost
??
0
;
}
}
}
}
},
},
...
...
src/views/goods/shelfProduct/utils/status.js
View file @
7ec2c6a
...
@@ -93,7 +93,7 @@ export function getTableFilterIds(baseSceneCode) {
...
@@ -93,7 +93,7 @@ export function getTableFilterIds(baseSceneCode) {
}
}
/**
/**
* "产品成本获取方式 1-自定义成本
-->
* "产品成本获取方式 1-自定义成本
* @param {*} upgradeProductCostStyle
* @param {*} upgradeProductCostStyle
* @returns
* @returns
*/
*/
...
...
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