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 18f8a936
authored
Apr 07, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 嘀加上架 - 运营查看 - 同步"编辑" 的内容
1 parent
93c53774
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
124 additions
and
75 deletions
src/views/goods/shelfManage/components/productShelving/index.vue
src/views/goods/shelfManage/components/profitSharingConfig/index.vue
src/views/goods/shelfManage/components/reconciliationConfig/index.vue
src/views/goods/shelfManage/components/trafficSource/index.vue
src/views/goods/shelfManage/index.vue
src/views/goods/shelfManage/view/contractDetail.vue
src/views/goods/shelfManage/components/productShelving/index.vue
View file @
18f8a93
...
@@ -35,8 +35,7 @@
...
@@ -35,8 +35,7 @@
</
template
>
</
template
>
</RemoteSelect>
</RemoteSelect>
</div>
</div>
<span
class=
"actions-wrapper"
>
<span
v-if=
"useEdit"
class=
"actions-wrapper"
>
<el-dropdown
@
command=
"handleAppendProductPackages"
>
<el-dropdown
@
command=
"handleAppendProductPackages"
>
<el-button
plain
>
<el-button
plain
>
新增
新增
...
@@ -53,7 +52,7 @@
...
@@ -53,7 +52,7 @@
</div>
</div>
<div
class=
"content-wrapper"
>
<div
class=
"content-wrapper"
>
<
template
v-if=
"tabsActive && tabs.list && tabs.list.length || (!isEmpty(productDetail) || productDetail.productType)"
>
<
template
v-if=
"tabsActive && tabs.list && tabs.list.length || (!isEmpty(productDetail) || productDetail.productType)"
>
<div
class=
"actions-wrapper"
>
<div
v-if=
"useEdit"
class=
"actions-wrapper"
>
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
plain
plain
style=
"width:160px"
style=
"width:160px"
...
@@ -134,6 +133,10 @@ export default {
...
@@ -134,6 +133,10 @@ export default {
},
},
props
:
{
props
:
{
useEdit
:
{
type
:
Boolean
,
default
:
true
,
},
shelveId
:
{
shelveId
:
{
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
required
:
true
,
required
:
true
,
...
...
src/views/goods/shelfManage/components/profitSharingConfig/index.vue
View file @
18f8a93
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</el-select>
</el-select>
</div>
</div>
<span
class=
"actions-wrapper"
>
<span
v-if=
"useEdit"
class=
"actions-wrapper"
>
<el-button
plain
<el-button
plain
size=
"small"
size=
"small"
icon=
"el-icon-plus"
icon=
"el-icon-plus"
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</div>
</div>
<div
v-if=
"specialCategory.active"
class=
"public-container"
>
<div
v-if=
"specialCategory.active"
class=
"public-container"
>
<div
class=
"actions-wrapper"
>
<div
v-if=
"useEdit"
class=
"actions-wrapper"
>
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
plain
plain
style=
"width:160px"
style=
"width:160px"
...
@@ -209,6 +209,10 @@ export default {
...
@@ -209,6 +209,10 @@ export default {
SpecialCategory
,
SpecialCategory
,
},
},
props
:
{
props
:
{
useEdit
:
{
type
:
Boolean
,
default
:
true
,
},
shelveId
:
{
shelveId
:
{
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
required
:
true
,
required
:
true
,
...
...
src/views/goods/shelfManage/components/reconciliationConfig/index.vue
View file @
18f8a93
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</el-button>
</el-button>
</div>
-->
</div>
-->
<span
class=
"actions-wrapper"
>
<span
v-if=
"useEdit"
class=
"actions-wrapper"
>
<el-button
plain
<el-button
plain
size=
"small"
size=
"small"
icon=
"el-icon-plus"
icon=
"el-icon-plus"
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</div>
</div>
<template
v-if=
"specialCategoryActive"
>
<template
v-if=
"specialCategoryActive"
>
<div
class=
"actions-wrapper"
>
<div
v-if=
"useEdit"
class=
"actions-wrapper"
>
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
plain
plain
style=
"width:160px"
style=
"width:160px"
...
@@ -115,6 +115,10 @@ export default {
...
@@ -115,6 +115,10 @@ export default {
// RuleUpdateDialog: ruleUpdateDialog,
// RuleUpdateDialog: ruleUpdateDialog,
},
},
props
:
{
props
:
{
useEdit
:
{
type
:
Boolean
,
default
:
true
,
},
shelveId
:
{
shelveId
:
{
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
required
:
true
,
required
:
true
,
...
...
src/views/goods/shelfManage/components/trafficSource/index.vue
View file @
18f8a93
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</div> -->
</div> -->
</div>
</div>
<div
class=
"content-wrapper"
>
<div
class=
"content-wrapper"
>
<div
class=
"actions-wrapper"
>
<div
v-if=
"useEdit"
class=
"actions-wrapper"
>
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
<el-button
v-if=
"mode === VIEW_MODE.VIEW"
plain
plain
style=
"width:160px"
style=
"width:160px"
...
@@ -97,6 +97,10 @@ export default {
...
@@ -97,6 +97,10 @@ export default {
RemoteSelect
,
RemoteSelect
,
},
},
props
:
{
props
:
{
useEdit
:
{
type
:
Boolean
,
default
:
true
,
},
shelveId
:
{
shelveId
:
{
type
:
[
String
,
Number
],
type
:
[
String
,
Number
],
required
:
true
,
required
:
true
,
...
...
src/views/goods/shelfManage/index.vue
View file @
18f8a93
...
@@ -186,8 +186,9 @@ export default {
...
@@ -186,8 +186,9 @@ export default {
this
.
close
({
tagName
:
"/contractDetail"
});
this
.
close
({
tagName
:
"/contractDetail"
});
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"contractDetail"
,
name
:
"contractDetail"
,
params
:
{
query
:
{
id
:
row
.
id
,
id
:
row
.
id
,
businessCode
:
row
.
businessCode
,
},
},
});
});
},
},
...
...
src/views/goods/shelfManage/view/contractDetail.vue
View file @
18f8a93
<!-- 编辑 - 运营确认 -->
<!-- 编辑 - 运营确认 -->
<
template
>
<
template
>
<d2-container
v-loading=
"isLoad"
class=
"edit-contract"
>
<d2-container
v-loading=
"isLoad"
class=
"edit-contract"
>
<!-- 基础信息 -->
<BaseInfo
:basic-info=
"basicInfo"
></BaseInfo>
<div
v-if=
"shelveId && shelvingData.shelfType && businessCode"
class=
"wrapper"
>
<!-- 流量方信息 -->
<div>
<!--
<shop-merchant-info
:merchantInfo=
"merchantInfo"
></shop-merchant-info>
-->
<BaseInfo
:shelve-id=
"shelveId"
/>
<!-- 流量方信息 -->
<TrafficSource
ref=
"trafficSourceRef"
<MultilateralShopMerchant
ref=
"multilateralShopMerchant"
:merchants-list=
"merchantEditData"
>
:shelve-id=
"shelveId"
</MultilateralShopMerchant>
:use-edit=
"false"
<!-- 上架商品及测算 -->
:shelf-type=
"shelvingData.shelfType"
<GoodsInfo></GoodsInfo>
:business-code=
"businessCode"
/>
<!-- 分账配置 -->
</div>
<DivisionConfig
:basic-info=
"basicInfo"
:divisi-obj=
"divisiObj"
></DivisionConfig>
<div>
<!-- 对账配置 -->
<!-- 上架商品及测算 -->
<FinanceConfig
:finance-obj=
"financialObj"
></FinanceConfig>
<ProductShelving
ref=
"productShelvingRef"
:shelve-id=
"shelveId"
:use-edit=
"false"
:scene-type=
"shelvingData.sceneType"
:shelf-type=
"shelvingData.shelfType"
:business-code=
"businessCode"
/>
</div>
<div
style=
"margin-top:20px"
>
<!-- 分账配置 -->
<ProfitSharingConfig
ref=
"profitSharingConfigRef"
:shelve-id=
"shelveId"
:use-edit=
"false"
:scene-type=
"shelvingData.sceneType"
:shelf-type=
"shelvingData.shelfType"
:business-code=
"businessCode"
/>
</div>
<div>
<!-- 对账配置 -->
<ReconciliationConfig
ref=
"reconciliationConfigRef"
:shelve-id=
"shelveId"
:use-edit=
"false"
:scene-type=
"shelvingData.sceneType"
:shelf-type=
"shelvingData.shelfType"
:business-code=
"businessCode"
/>
</div>
<div
style=
"height:100%;overflow:hidden;height:600px"
>
<!-- 预估利润率 -->
<ProfitMarginTable
ref=
"profitMarginTableRef"
:shelve-id=
"shelveId"
:scene-type=
"shelvingData.sceneType"
:shelf-type=
"shelvingData.shelfType"
:business-code=
"businessCode"
/>
</div>
<div
style=
"margin-top:20px"
>
<OperateList
:log-list=
"logList"
></OperateList>
</div>
</div>
<!-- 操作记录 -->
<!-- 操作记录 -->
<OperateList
:log-list=
"logList"
></OperateList>
<div
style=
"margin-top: 40px; text-align: center"
>
<div
style=
"margin-top: 40px; text-align: center"
>
<el-button
type=
"primary"
@
click=
"handleBack()"
>
<el-button
type=
"primary"
@
click=
"handleBack()"
>
返回
返回
...
@@ -27,35 +65,52 @@
...
@@ -27,35 +65,52 @@
<
script
>
<
script
>
import
{
import
{
getBusisDetailBasic
,
getBusisDetailBasic
,
merchantSettleDistributeRuleLastRule
,
getShelveBaseDetailApi
,
}
from
"@api/shelfManage"
;
}
from
"@api/shelfManage"
;
import
{
mapActions
}
from
"vuex"
;
import
{
mapActions
}
from
"vuex"
;
import
DivisionConfig
from
"../components/detailCon/DivisionConfig.vue"
;
// 基础信息
import
FinanceConfig
from
"../components/detailCon/FinanceConfig.vue"
;
import
BaseInfo
from
"../components/baseInfo/index.vue"
;
import
GoodsInfo
from
"../components/detailCon/GoodsInfo.vue"
;
import
multilateralShopMerchant
from
"../components/detailCon/multilateralShopMerchant.vue"
;
import
OperateList
from
"../components/detailCon/OperateList.vue"
;
import
OperateList
from
"../components/detailCon/OperateList.vue"
;
import
ShopMerchantInfo
from
"../components/detailCon/ShopMerchantInfo.vue"
;
// 商品上架
import
BaseInfo
from
"../components/editCon/BaseInfo.vue"
;
import
ProductShelving
from
"../components/productShelving/index.vue"
;
import
ProfitMarginTable
from
"../components/profitMarginTable/index.vue"
;
// 分账配置
import
ProfitSharingConfig
from
"../components/profitSharingConfig/index.vue"
;
// 对账配置
import
ReconciliationConfig
from
"../components/reconciliationConfig/index.vue"
;
// 流量方
import
TrafficSource
from
"../components/trafficSource/index.vue"
;
export
default
{
export
default
{
name
:
"ContractDetail"
,
name
:
"ContractDetail"
,
components
:
{
components
:
{
BaseInfo
,
BaseInfo
,
MultilateralShopMerchant
:
multilateralShopMerchant
,
ProductShelving
,
ShopMerchantInfo
,
TrafficSource
,
GoodsInfo
,
ProfitSharingConfig
,
Divis
ionConfig
,
Reconciliat
ionConfig
,
FinanceConfig
,
ProfitMarginTable
,
OperateList
,
OperateList
,
},
},
data
()
{
data
()
{
return
{
return
{
shelveId
:
undefined
,
businessCode
:
""
,
shelvingData
:
{
confirmStep
:
-
1
,
// 上架类型 1-单店模式 2-项目制批量上架
shelfType
:
1
,
// 业务场景
sceneType
:
1
,
// { confId: 1, confValue: "精品升级" },
// { confId: 0, confValue: "会员权益升级" },
approveType
:
1
,
businessCode
:
""
,
},
isLoad
:
true
,
isLoad
:
true
,
merchantEditData
:
[],
merchantEditData
:
[],
logList
:
[],
logList
:
[],
editData
:
{},
basicInfo
:
{},
basicInfo
:
{},
merchantInfo
:
{},
merchantInfo
:
{},
divisiObj
:
{},
divisiObj
:
{},
...
@@ -68,12 +123,17 @@ export default {
...
@@ -68,12 +123,17 @@ export default {
},
},
},
},
created
()
{
created
()
{
this
.
shelveId
=
this
.
$route
.
query
.
id
;
this
.
businessCode
=
this
.
$route
.
query
.
businessCode
;
this
.
refreshCategoryList
();
this
.
refreshCategoryList
();
},
},
mounted
()
{
async
mounted
()
{
this
.
getDetail
();
try
{
this
.
getBasicDetail
();
await
this
.
getBasicDetail
();
this
.
getFinaceObj
();
await
this
.
init
();
}
finally
{
this
.
isLoad
=
false
;
}
},
},
// 方法集合
// 方法集合
methods
:
{
methods
:
{
...
@@ -81,42 +141,15 @@ export default {
...
@@ -81,42 +141,15 @@ export default {
...
mapActions
({
...
mapActions
({
close
:
"d2admin/page/close"
,
close
:
"d2admin/page/close"
,
}),
}),
getBasicDetail
()
{
async
getBasicDetail
()
{
getBusisDetailBasic
({
id
:
this
.
routerInfo
.
id
}).
then
((
res
)
=>
{
const
{
logList
}
=
await
getBusisDetailBasic
({
id
:
this
.
shelveId
});
console
.
log
(
res
,
"res11111"
);
this
.
logList
=
logList
;
this
.
basicInfo
=
res
.
basicInfo
||
{};
this
.
logList
=
res
.
logList
;
this
.
merchantInfo
=
res
.
createBusinessApproveMerchant
||
{};
this
.
merchantEditData
=
res
.
createBusinessApproveMerchantList
||
[];
});
},
getDetail
()
{
this
.
isLoad
=
false
;
},
},
getFinaceObj
()
{
async
init
()
{
const
{
id
}
=
this
.
routerInfo
;
// 获取该上架详情的基础数据
id
const
data
=
await
getShelveBaseDetailApi
({
id
:
this
.
shelveId
});
&&
merchantSettleDistributeRuleLastRule
({
data
.
confirmStep
=
data
.
confirmStep
-
1
||
0
;
id
,
Object
.
assign
(
this
.
shelvingData
,
data
);
}).
then
((
result
)
=>
{
console
.
log
(
result
,
"result"
);
const
realityShopMerchantName
=
result
.
basicInfo
.
shelfType
==
1
?
result
.
merchantSettleDistributeRule
.
realityShopMerchantName
:
result
.
merchantSettleDistributeRule
.
realityShopLevel
==
1
?
"流量方"
:
"上级流量方"
;
console
.
log
(
result
.
createBusinessApproveMerchantList
[
0
].
parentMerchantId
,
"partnerMerchantName"
);
this
.
divisiObj
=
Object
.
assign
(
result
.
merchantSettleDistributeRule
,
{
realityShopMerchantName
,
partnerMerchantName
:
result
.
createBusinessApproveMerchantList
[
0
].
partnerMerchantName
,
partnerMerchantId
:
result
.
createBusinessApproveMerchantList
[
0
].
partnerMerchantId
,
});
const
operationMode
=
result
.
createBusinessApproveMerchantList
[
0
].
operationMode
;
if
(
operationMode
==
0
)
{
// 非直营过滤掉人力成本
result
.
merchantReconciliationRule
.
goodsTypeGroupReconciliationRules
=
result
.
merchantReconciliationRule
.
goodsTypeGroupReconciliationRules
.
map
((
item
)
=>
{
item
.
expenseCategoryRules
=
item
.
expenseCategoryRules
.
filter
(
el
=>
el
.
expenseCategoryId
!=
807
);
return
item
;
});
}
// result.merchantReconciliationRule
this
.
financialObj
=
result
.
merchantReconciliationRule
;
});
},
},
handleBack
()
{
handleBack
()
{
this
.
close
({
tagName
:
"/shelfManage"
});
this
.
close
({
tagName
:
"/shelfManage"
});
...
...
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