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 03d99ecf
authored
Jul 06, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 调整 删除 ShelfManage模块后带来的引用问题
1 parent
9b87b410
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
41 deletions
src/store/index.js
src/views/goods/shelfProduct/components/profitSharingConfig/components/specialCategory/index.vue
src/views/goods/shelfProduct/components/profitSharingConfig/components/specialCategory/specialCategoryDetail.vue
src/views/goods/shelfProduct/components/profitSharingConfig/hooks/index.js
src/views/goods/shelfProduct/components/reconciliationConfig/components/specialCategory/detail.vue
src/store/index.js
View file @
03d99ec
import
Vue
from
"vue"
;
import
Vue
from
"vue"
;
import
Vuex
from
"vuex"
;
import
Vuex
from
"vuex"
;
import
ShelfManage
from
"@/views/goods/shelfManage/store/index.js"
;
import
performanceFormStore
from
"@/views/residentManage/salaryPerformance/performanceScheme/store/performanceFormStore.js"
;
import
performanceFormStore
from
"@/views/residentManage/salaryPerformance/performanceScheme/store/performanceFormStore.js"
;
import
cacheStore
from
"./modules/cacheStore"
;
import
cacheStore
from
"./modules/cacheStore"
;
...
@@ -30,6 +29,5 @@ export default new Vuex.Store({
...
@@ -30,6 +29,5 @@ export default new Vuex.Store({
goodsInfoData
,
goodsInfoData
,
FinancialRules
,
FinancialRules
,
PerformanceFormStore
:
performanceFormStore
,
PerformanceFormStore
:
performanceFormStore
,
ShelfManage
,
},
},
});
});
src/views/goods/shelfProduct/components/profitSharingConfig/components/specialCategory/index.vue
View file @
03d99ec
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
<div
class=
"special-category-wrapper"
>
<div
class=
"special-category-wrapper"
>
<Detail
v-if=
"editState === VIEW_MODE.VIEW"
<Detail
v-if=
"editState === VIEW_MODE.VIEW"
v-bind=
"$attrs"
v-bind=
"$attrs"
:goods-list=
"options.productType"
:base-scene-code=
"baseSceneCode"
:base-scene-code=
"baseSceneCode"
:goods-list=
"options.productType"
v-on=
"$listeners"
/>
v-on=
"$listeners"
/>
<Modify
v-if=
"editState === VIEW_MODE.EDIT"
<Modify
v-if=
"editState === VIEW_MODE.EDIT"
ref=
"modifyRef"
ref=
"modifyRef"
v-bind=
"$attrs"
v-bind=
"$attrs"
:goods-list=
"options.productTyp
e"
:base-scene-code=
"baseSceneCod
e"
:base-scene-code=
"baseSceneCod
e"
/>
:goods-list=
"options.productTyp
e"
/>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/goods/shelfProduct/components/profitSharingConfig/components/specialCategory/specialCategoryDetail.vue
View file @
03d99ec
<
template
>
<
template
>
<!-- 分账配置 - 特殊品类 - 编辑状态 -->
<!-- 分账配置 - 特殊品类 - 编辑状态 -->
<div
class=
"detail-wrapper "
>
<div
class=
"detail-wrapper "
>
<Descriptions
:schema=
"getSchema"
:data=
"getSchemaData"
/>
<Descriptions
:data=
"getSchemaData"
:schema=
"getSchema"
/>
<CostAttributionSetting
:value=
"owningMerchantDistributionRulesMap"
<CostAttributionSetting
prop-prefix=
"owningMerchantDistributionRulesMap"
prop-prefix=
"owningMerchantDistributionRulesMap"
title=
"费用归属设置"
title=
"费用归属设置"
disabled
disabled
:shelf-type=
"shelfType"
:shelf-type=
"shelfType"
:table-cols=
"tableCols"
:table-cols=
"tableCols"
:table-rows=
"tableRows"
/>
:table-rows=
"tableRows"
<CostAttributionSetting
:value=
"merchantDistributionRulesMap"
:value=
"owningMerchantDistributionRulesMap"
/>
prop-prefix=
"merchantDistributionRulesMap"
<CostAttributionSetting
prop-prefix=
"merchantDistributionRulesMap"
title=
"实际分账设置"
title=
"实际分账设置"
disabled
disabled
:shelf-type=
"shelfType"
:shelf-type=
"shelfType"
:table-cols=
"tableCols"
:table-cols=
"tableCols"
:table-rows=
"tableRows"
/>
:table-rows=
"tableRows"
:value=
"merchantDistributionRulesMap"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -26,8 +26,8 @@ import {
...
@@ -26,8 +26,8 @@ import {
otherSelectOptions
,
otherSelectOptions
,
severSelectOptions
,
severSelectOptions
,
}
from
"@/common/constant/merchant"
;
}
from
"@/common/constant/merchant"
;
import
Descriptions
from
"@/components/descriptions/index.vue"
;
import
{
isZeroOrNumber
}
from
"@/libs/number.js"
;
import
{
isZeroOrNumber
}
from
"@/libs/number.js"
;
import
Descriptions
from
"@/views/goods/shelfManage/components/descriptions/index.vue"
;
import
CostAttributionSetting
from
"@/views/goods/shelfProduct/components/profitSharingConfig/components/costAttributionSetting/index.vue"
;
import
CostAttributionSetting
from
"@/views/goods/shelfProduct/components/profitSharingConfig/components/costAttributionSetting/index.vue"
;
import
{
import
{
getTableCols
,
getTableCols
,
...
@@ -163,10 +163,12 @@ export default {
...
@@ -163,10 +163,12 @@ export default {
goodsStr
=
this
.
specialDetail
.
goodsTypeGroupRelationList
.
map
((
item
)
=>
{
goodsStr
=
this
.
specialDetail
.
goodsTypeGroupRelationList
.
map
((
item
)
=>
{
// if (this.specialDetail.categoryType === 1)
// if (this.specialDetail.categoryType === 1)
// return item.goodsTypeName;
// return item.goodsTypeName;
if
(
this
.
specialDetail
.
categoryType
===
2
)
if
(
this
.
specialDetail
.
categoryType
===
2
)
{
return
`
${
item
.
upgradeGoodsName
}
(
${
item
.
merchantGoodsCode
}
)`
;
return
`
${
item
.
upgradeGoodsName
}
(
${
item
.
merchantGoodsCode
}
)`
;
if
(
this
.
specialDetail
.
categoryType
===
3
)
}
if
(
this
.
specialDetail
.
categoryType
===
3
)
{
return
`
${
item
.
packageName
}
(
${
item
.
packageCode
}
)`
;
return
`
${
item
.
packageName
}
(
${
item
.
packageCode
}
)`
;
}
return
"-"
;
return
"-"
;
});
});
}
}
...
@@ -184,8 +186,9 @@ export default {
...
@@ -184,8 +186,9 @@ export default {
col
:
24
,
col
:
24
,
render
:
(
h
,
{
data
,
schemaItem
})
=>
{
render
:
(
h
,
{
data
,
schemaItem
})
=>
{
const
info
=
data
[
schemaItem
.
descKey
];
const
info
=
data
[
schemaItem
.
descKey
];
if
(
!
info
)
if
(
!
info
)
{
return
h
(
"span"
,
"-"
);
return
h
(
"span"
,
"-"
);
}
return
h
(
"span"
,
info
.
typeLabel
?
`
${
info
.
calculateModeLabel
}
:
${
info
.
typeLabel
}
:
${
info
.
text
}
`
:
info
.
text
);
return
h
(
"span"
,
info
.
typeLabel
?
`
${
info
.
calculateModeLabel
}
:
${
info
.
typeLabel
}
:
${
info
.
text
}
`
:
info
.
text
);
},
},
};
};
...
...
src/views/goods/shelfProduct/components/profitSharingConfig/hooks/index.js
View file @
03d99ec
...
@@ -3,19 +3,13 @@ import { cloneDeep, isArray, sortBy, uniqBy } from "lodash-es";
...
@@ -3,19 +3,13 @@ import { cloneDeep, isArray, sortBy, uniqBy } from "lodash-es";
import
{
getMerchantLevelApi
}
from
"@/api/shelfManage"
;
import
{
getMerchantLevelApi
}
from
"@/api/shelfManage"
;
import
{
queryFeeCategoryByType
as
getFeeCategoryByTypeApi
}
from
"@/api/sys.base"
;
import
{
queryFeeCategoryByType
as
getFeeCategoryByTypeApi
}
from
"@/api/sys.base"
;
import
{
attrToVal
as
attrToValOptions
,
userType
}
from
"@/common/constants"
;
import
{
attrToVal
as
attrToValOptions
,
userType
}
from
"@/common/constants"
;
import
{
isSingleShopMode
}
from
"@/views/goods/shelfManage/components/profitSharingConfig/utils/feeCategoryHelper"
;
import
{
import
{
getProfitSharingConfigBaseDetailApi
,
getProfitSharingConfigBaseDetailApi
,
getProfitSharingConfigSpecialCategoryDetailApi
,
getProfitSharingConfigSpecialCategoryDetailApi
,
getProfitSharingConfigSpecialCategoryListApi
,
getProfitSharingConfigSpecialCategoryListApi
,
postProfitSharingConfigBaseDetailApi
,
postProfitSharingConfigBaseDetailApi
,
}
from
"@/views/goods/shelfProduct/api"
;
}
from
"@/views/goods/shelfProduct/api"
;
import
{
import
{
getMemberRightsUpgradeValue
,
getSelectFilterIds
,
getTableFilterIds
,
isMemberRightsUpgrade
,
isSingleShopMode
}
from
"@/views/goods/shelfProduct/utils/status"
;
getMemberRightsUpgradeValue
,
getSelectFilterIds
,
getTableFilterIds
,
isMemberRightsUpgrade
,
}
from
"@/views/goods/shelfProduct/utils/status"
;
// 获取渠道列表, 这里的数据不真实. 仅做循环展示用 .
// 获取渠道列表, 这里的数据不真实. 仅做循环展示用 .
// 具体的值需要 获取品类详情后 再设置
// 具体的值需要 获取品类详情后 再设置
...
@@ -331,8 +325,9 @@ export function mapToRules({
...
@@ -331,8 +325,9 @@ export function mapToRules({
export
function
filerExpenseCategoryValuePlaceholder
(
value
)
{
export
function
filerExpenseCategoryValuePlaceholder
(
value
)
{
// value? :''
// value? :''
if
(
!
value
)
if
(
!
value
)
{
return
"请选择上级"
;
return
"请选择上级"
;
}
return
value
===
3
||
value
===
10
?
"请输入金额"
:
"请输入比例"
;
return
value
===
3
||
value
===
10
?
"请输入金额"
:
"请输入比例"
;
}
}
...
...
src/views/goods/shelfProduct/components/reconciliationConfig/components/specialCategory/detail.vue
View file @
03d99ec
<
template
>
<
template
>
<div
class=
""
>
<div
class=
""
>
<Descriptions
:schema=
"getSchema"
:data=
"getSchemaDat
a"
/>
<Descriptions
:data=
"getSchemaData"
:schema=
"getSchem
a"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -10,17 +10,10 @@ import {
...
@@ -10,17 +10,10 @@ import {
otherSelectOptions
,
otherSelectOptions
,
severSelectOptions
,
severSelectOptions
,
}
from
"@/common/constant/merchant"
;
}
from
"@/common/constant/merchant"
;
import
Descriptions
from
"@/components/descriptions/index.vue"
;
import
{
isZeroOrNumber
}
from
"@/libs/number.js"
;
import
{
isZeroOrNumber
}
from
"@/libs/number.js"
;
import
{
baseConfig
}
from
"@/main"
;
import
{
baseConfig
}
from
"@/main"
;
import
Descriptions
from
"@/views/goods/shelfManage/components/descriptions/index.vue"
;
import
{
categoryTypeOptions
}
from
"@/views/goods/shelfProduct/constant/index.js"
;
import
{
categoryTypeOptions
}
from
"@/views/goods/shelfProduct/constant/index.js"
;
import
{
isEdit
,
isMemberRightsUpgrade
,
isQualityUpgrade
,
isSolarFilm
,
isView
,
}
from
"@/views/goods/shelfProduct/utils/status.js"
;
export
default
{
export
default
{
name
:
""
,
name
:
""
,
...
@@ -59,12 +52,15 @@ export default {
...
@@ -59,12 +52,15 @@ export default {
let
goodsStr
=
"-"
;
let
goodsStr
=
"-"
;
if
(
this
.
specialDetail
.
goodsTypeGroupRelationList
&&
this
.
specialDetail
.
goodsTypeGroupRelationList
.
length
)
{
if
(
this
.
specialDetail
.
goodsTypeGroupRelationList
&&
this
.
specialDetail
.
goodsTypeGroupRelationList
.
length
)
{
goodsStr
=
this
.
specialDetail
.
goodsTypeGroupRelationList
.
map
((
item
)
=>
{
goodsStr
=
this
.
specialDetail
.
goodsTypeGroupRelationList
.
map
((
item
)
=>
{
if
(
this
.
specialDetail
.
categoryType
===
1
)
if
(
this
.
specialDetail
.
categoryType
===
1
)
{
return
item
.
goodsTypeName
||
item
.
goodsType
;
return
item
.
goodsTypeName
||
item
.
goodsType
;
if
(
this
.
specialDetail
.
categoryType
===
2
)
}
if
(
this
.
specialDetail
.
categoryType
===
2
)
{
return
`
${
item
.
upgradeGoodsName
}
(
${
item
.
merchantGoodsCode
}
)`
;
return
`
${
item
.
upgradeGoodsName
}
(
${
item
.
merchantGoodsCode
}
)`
;
if
(
this
.
specialDetail
.
categoryType
===
3
)
}
if
(
this
.
specialDetail
.
categoryType
===
3
)
{
return
`
${
item
.
packageName
}
(
${
item
.
packageCode
}
)`
;
return
`
${
item
.
packageName
}
(
${
item
.
packageCode
}
)`
;
}
return
"-"
;
return
"-"
;
});
});
}
}
...
@@ -145,8 +141,9 @@ export default {
...
@@ -145,8 +141,9 @@ export default {
col
:
24
,
col
:
24
,
render
:
(
h
,
{
data
,
schemaItem
})
=>
{
render
:
(
h
,
{
data
,
schemaItem
})
=>
{
const
info
=
data
[
schemaItem
.
descKey
];
const
info
=
data
[
schemaItem
.
descKey
];
if
(
!
info
)
if
(
!
info
)
{
return
h
(
"span"
,
"-"
);
return
h
(
"span"
,
"-"
);
}
return
h
(
"span"
,
`
${
info
.
calculateModeText
}
:
${
info
.
typeLabel
}
:
${
info
.
text
}
`
);
return
h
(
"span"
,
`
${
info
.
calculateModeText
}
:
${
info
.
typeLabel
}
:
${
info
.
text
}
`
);
// if (isSunshineIncentive) {
// if (isSunshineIncentive) {
// return h("span", `${info.calculateModeText}:${info.typeLabel}:${info.text}`);
// return h("span", `${info.calculateModeText}:${info.typeLabel}:${info.text}`);
...
@@ -166,12 +163,15 @@ export default {
...
@@ -166,12 +163,15 @@ export default {
},
},
methods
:
{
methods
:
{
getExpenseCategoryCalculateTypeOptions
(
targetType
)
{
getExpenseCategoryCalculateTypeOptions
(
targetType
)
{
if
(
targetType
===
1
)
if
(
targetType
===
1
)
{
return
[...
defaultSelectOptions
,
...
otherSelectOptions
];
return
[...
defaultSelectOptions
,
...
otherSelectOptions
];
if
(
targetType
===
2
)
}
if
(
targetType
===
2
)
{
return
severSelectOptions
;
}
if
(
targetType
===
3
)
{
return
severSelectOptions
;
return
severSelectOptions
;
if
(
targetType
===
3
)
}
// reconciliation中的platformFeeList用的是severSelectOptions
return
severSelectOptions
;
// reconciliation中的platformFeeList用的是severSelectOptions
return
[];
return
[];
},
},
},
},
...
...
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