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 dfd6ec10
authored
Mar 12, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
65c50740
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
65 deletions
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
src/views/goods/shelfManage/components/editCon/FinanceConfig.vue
src/views/goods/shelfManage/components/editCon/components/classificationCpt.vue
src/views/goods/shelfManage/components/editCon/components/classificationCptCheck.vue
src/views/goods/shelfManage/components/editCon/DivisionConfig.vue
View file @
dfd6ec1
...
...
@@ -1001,9 +1001,8 @@ export default {
getAllGoodsList
({
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
merchantIdList
:
[
this
.
financialObj
.
realityShopMerchantId
],
statusList
:
[
1
],
sceneTypeList
:
[
0
]
,
sceneTypeList
:
[
0
]
})
.
then
((
res
)
=>
{
this
.
allPages
=
res
.
pages
...
...
@@ -1309,10 +1308,10 @@ export default {
const
upgradeArr
=
[]
const
packageArr
=
[]
this
.
editableTabs
=
[]
//
console.log(goodsTypeGroupRules, "goodsTypeGroupRules")
console
.
log
(
goodsTypeGroupRules
,
"goodsTypeGroupRules"
)
const
childParams
=
goodsTypeGroupRules
.
splice
(
tabIndex
,
1
)
//
console.log(goodsTypeGroupRules, this.financialObj, "goodsTypeGroupRules")
// debugger
console
.
log
(
goodsTypeGroupRules
,
this
.
financialObj
,
"goodsTypeGroupRules"
)
// console.log(childParams, "packageArr")
// return
this
.
$nextTick
(()
=>
{
...
...
@@ -1361,14 +1360,14 @@ export default {
item
.
packageGoods
=
[]
}
// 按套餐商品
// console.log(
item.goodsTypes, 'item.goodsTypes')
console
.
log
(
item
,
item
.
goodsTypes
,
'item.goodsTypes'
)
if
(
item
.
goodsTypes
?.
length
&&
item
.
goodsTypes
[
0
]?.
categoryType
==
3
item
.
goodsType
GroupRelation
s
?.
length
&&
item
.
goodsType
GroupRelation
s
[
0
]?.
categoryType
==
3
)
{
item
.
packageGoods
=
deepClone
(
item
.
goodsTypes
)
item
.
packageGoods
=
deepClone
(
item
.
goodsType
GroupRelation
s
)
item
.
categoryType
=
3
item
.
goodsTypes
?.
forEach
((
val
)
=>
{
item
.
goodsType
GroupRelation
s
?.
forEach
((
val
)
=>
{
packageArr
.
push
({
packageCode
:
val
.
packageCode
,
packageName
:
val
.
packageName
...
...
@@ -1380,10 +1379,11 @@ export default {
}
})
console
.
log
(
upgradeArr
,
"upgradeArr"
)
console
.
log
(
packageArr
,
"upgradeArr"
)
// 获取商品
this
.
getSelectingList
(
upgradeArr
)
this
.
getSelectingListPackage
(
packageArr
)
this
.
$forceUpdate
()
//
this.$forceUpdate()
this
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
...
...
src/views/goods/shelfManage/components/editCon/FinanceConfig.vue
View file @
dfd6ec1
...
...
@@ -28,7 +28,7 @@
@deletePackageGoodsItem="deletePackageGoodsItem"
@deleteSelectUpgradeGoodsList="deleteSelectUpgradeGoodsList"
@deleteSelectPackageGoodsList="deleteSelectPackageGoodsList"
@deleteSelectGoodsTypeList="deleteSelectGoodsTypeList" />
@deleteSelectGoodsTypeList="deleteSelectGoodsTypeList"
:ruleInfo="ruleInfo"
/>
</div>
</el-tab-pane>
</el-tabs>
...
...
@@ -71,12 +71,7 @@ export default {
currentIndex
:
1
,
addIndex
:
1
,
tabIndex
:
1
,
editableTabs
:
[
// {
// title: "全部分类",
// name: "1"
// }
],
editableTabs
:
[],
errorIndex
:
-
1
,
goodsSelectList
:
[],
goodsTypeGroupRelations
:
[],
...
...
@@ -93,7 +88,8 @@ export default {
selectUpgradeGoodsList
:
[],
upgradeGoodsList
:
[],
selectPackageGoodsList
:
[],
packageGoodsList
:
[]
packageGoodsList
:
[],
ruleInfo
:
{}
}
},
computed
:
{
...
...
@@ -118,6 +114,13 @@ export default {
// if(JSON.stringify(obj)== this.set)
this
.
getSelectingListPackage
([],
obj
)
})
this
.
$EventBus
.
$on
(
"shelfUpdatMerchantId"
,
(
obj
)
=>
{
if
(
this
.
ruleInfo
?.
createBusinessApproveMerchant
)
{
this
.
ruleInfo
.
createBusinessApproveMerchant
.
merchantId
=
obj
.
merchantId
this
.
ruleInfo
.
createBusinessApproveMerchant
.
merchantName
=
obj
.
merchantName
this
.
getSelectingListPackage
()
}
})
this
.
getGoodsCategoryConfiguration
()
setTimeout
(()
=>
{
this
.
getEffectRule
()
// 获取对账规则
...
...
@@ -233,7 +236,9 @@ export default {
getSelectingList
(
defaultSelect
)
{
getAllGoodsList
({
currentPage
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
,
statusList
:
[
1
],
sceneTypeList
:
[
0
]
})
.
then
((
res
)
=>
{
this
.
allPages
=
res
.
pages
...
...
@@ -264,7 +269,7 @@ export default {
)
},
// 或者商品套餐
getSelectingListPackage
(
defaultSelect
=
[],
packageArr
)
{
getSelectingListPackage
(
defaultSelect
=
[],
packageArr
=
[]
)
{
packageArr
=
packageArr
.
map
((
item
)
=>
{
// item.packageCode = item.id
// item.packageName = item.name
...
...
@@ -276,14 +281,15 @@ export default {
})
// console.log(packageArr, "packageArr")
this
.
packageGoodsList
=
this
.
uniquePackage
(
packageArr
)
merchantPackageGoodsInfoPage
({
this
.
ruleInfo
?.
createBusinessApproveMerchant
&&
merchantPackageGoodsInfoPage
({
// goodsNameKeyword: this.goodsNameKeyword,
currentPage
:
1
,
pageSize
:
20
,
status
:
1
,
// sceneType: this.routerInfo.scene,
sceneType
:
0
,
// 固定查权益类的
merchantIdList
:
[
this
.
routerInfo
.
merchantId
]
// merchantIdList: [this.routerInfo.merchantId]
merchantIdList
:
[
this
.
ruleInfo
.
createBusinessApproveMerchant
.
merchantId
]
})
.
then
((
res
)
=>
{
// this.allPages = res.pages
...
...
@@ -423,7 +429,6 @@ export default {
}
const
goodsTypeGroupRules
=
this
.
getClassificationCptFormData
()
// debugger
if
(
activeName
===
targetName
)
{
tabs
.
forEach
((
tab
,
index
)
=>
{
if
(
tab
.
name
===
targetName
)
{
...
...
@@ -520,7 +525,7 @@ export default {
}
})
this
.
getSelectingList
(
upgradeArr
)
//
this.getSelectingListPackage(packageArr)
this
.
getSelectingListPackage
(
packageArr
)
// this.queryFeeCategoryByTypeFlow = deepClone(this.queryFeeCategoryByTypeFlow)
this
.
$message
({
type
:
"success"
,
...
...
@@ -611,6 +616,8 @@ export default {
const
res
=
await
merchantSettleDistributeRuleLastRule
(
params
)
console
.
log
(
res
,
"getEffectRule"
)
if
(
res
)
{
// debugger
this
.
ruleInfo
=
res
const
typeList
=
res
?.
merchantReconciliationRule
.
goodsTypeGroupReconciliationRules
...
...
@@ -677,10 +684,10 @@ export default {
}
})
this
.
getSelectingList
(
upgradeArr
)
//
this.getSelectingListPackage(packageArr)
this
.
getSelectingListPackage
(
packageArr
)
}
else
{
this
.
getSelectingList
()
//
this.getSelectingListPackage()
this
.
getSelectingListPackage
()
}
},
checkParamsType
(
array
)
{
...
...
@@ -815,7 +822,8 @@ export default {
}
},
beforeDestroy
()
{
this
.
$EventBus
.
$off
(
"packageInfoList"
,
this
.
handlePackageInfoList
)
this
.
$EventBus
.
$off
(
"packageInfoList"
)
this
.
$EventBus
.
$off
(
"shelfUpdatMerchantId"
)
// 删除子组件保留的数据
localStorage
.
removeItem
(
"getListPartnerMerchant"
)
...
...
src/views/goods/shelfManage/components/editCon/components/classificationCpt.vue
View file @
dfd6ec1
...
...
@@ -43,8 +43,7 @@
:prop=
"classificationObj.categoryType == 3 ? 'packageGoods' : 'empty'"
label-width=
"20px"
>
<!-- -->
<el-select
v-model=
"classificationObj.packageGoods"
multiple
collapse-tags
remote
reserve-keyword
@
change=
"upgradeGoodsChange"
@
visible-change=
"visibleChangePackage"
:remote-method=
"remoteMethodPackage"
@
change=
"upgradeGoodsChange"
@
visible-change=
"visibleChangePackage"
:remote-method=
"remoteMethodPackage"
v-el-select-loadmore-package=
"interestsLoadmorePackage"
placeholder=
"请选择套餐商品"
style=
"width: 370px"
value-key=
"packageCode"
filterable
>
<el-option
v-for=
"subItem in copyPackageGoodsList"
:key=
"subItem.packageCode"
...
...
@@ -516,9 +515,6 @@ export default {
watch
:
{
"classificationObj.goodsSource"
:
{
handler
(
newVal
,
oldVal
)
{
// this.initList()
// tabindex
// this.set
this
.
setGoodsSource
({
goodsSource
:
newVal
,
tabIndex
:
this
.
tabindex
...
...
@@ -619,8 +615,7 @@ export default {
},
classificationObjSelect
:
{
handler
(
val
)
{
// console.log(val, "🚀")
this
.
initList
()
this
.
initList
(
'classificationObjSelect'
)
},
deep
:
true
,
immediate
:
true
...
...
@@ -716,10 +711,10 @@ export default {
},
upgradeGoodsChange
(
val
)
{
this
.
$refs
.
classification
.
clearValidate
([
"goodsTypes"
,
"upgradeGoods"
,
"packageGoods"
]);
"goodsTypes"
,
"upgradeGoods"
,
"packageGoods"
]);
},
visibleChange
(
data
)
{
// 获取焦点重新渲染下拉框数据
...
...
@@ -770,7 +765,7 @@ export default {
// goodsNameKeyword: this.goodsNameKeyword,
// upgradeGoodsNameOrCCode: this.goodsNameKeyword,
goodsNameKeyword
:
this
.
goodsNameKeyword
,
merchantIdList
:
[
this
.
financialLedgerParty
.
realityShopMerchantId
],
//
merchantIdList: [this.financialLedgerParty.realityShopMerchantId],
statusList
:
[
1
],
sceneTypeList
:
[
0
],
currentPage
:
this
.
currentPage
,
...
...
@@ -827,7 +822,6 @@ export default {
let
arr
=
this
.
copyPackageGoodsList
.
concat
(
resArr
)
if
(
defaultSelect
?.
length
)
arr
=
arr
.
concat
(
defaultSelect
)
this
.
copyPackageGoodsList
=
this
.
uniquePackage
(
arr
)
// this.copyPackageGoodsList = arr
})
.
catch
(()
=>
{
})
},
...
...
@@ -999,22 +993,18 @@ export default {
this
.
$refs
[
"tableAccount"
]?.
$refs
[
"divisionRuleRef"
].
clearValidate
()
})
},
initList
()
{
initList
(
name
)
{
this
.
classificationObj
.
groupType
=
this
.
tabindex
?
1
:
2
const
expenseCategoryRules
=
deepClone
(
this
.
goodsTypeGroupRules
.
expenseCategoryRules
)
||
[]
// console.log('expenseCategoryRules', expenseCategoryRules)
const
setList
=
this
.
classificationObjSelect
// const list = {}
// console.log("setList", this.classificationObjSelect)
// 初始化类目
for
(
const
key
in
setList
)
{
// console.log('setList[key]', setList[key])
// console.log('key', key)
this
.
classificationObj
[
key
]
=
[]
setList
[
key
].
forEach
((
item
)
=>
{
// debugger
// console.log(setList[key])
const
editObj
=
expenseCategoryRules
.
find
(
(
el
)
=>
el
.
expenseCategoryId
==
item
.
expenseCategoryId
...
...
@@ -1063,7 +1053,6 @@ export default {
obj
.
targetMerchantType
=
2
}
// 是多子类目
// if (item.formType == 2) {
if
(
item
.
nodeType
==
2
)
{
// console.log(item.feeCategoryNameList, 'item.feeCategoryNameList')
// 解决子选项问题
...
...
@@ -1158,14 +1147,12 @@ export default {
this
.
classificationObj
.
packageGoods
=
""
this
.
classificationObj
.
categoryType
=
""
keyNameList
.
forEach
((
item
)
=>
{
this
.
goodsTypeGroupRules
[
item
]
&&
(
this
.
classificationObj
[
item
]
=
this
.
goodsTypeGroupRules
[
item
])
if
(
this
.
goodsTypeGroupRules
[
item
])
{
this
.
classificationObj
[
item
]
=
this
.
goodsTypeGroupRules
[
item
]
}
})
// console.log(this.classificationObj)
this
.
classificationObj
=
deepClone
(
this
.
classificationObj
)
// console.log(list)
this
.
handleSelectChange
()
// this.classificationObj.expenseCategoryRules = list
},
filterEmpty
(
data
)
{
return
(
data
??
""
)
===
""
...
...
@@ -1335,8 +1322,6 @@ export default {
(
item
)
=>
item
.
expenseCategoryId
!=
701
&&
item
.
expenseCategoryId
!=
1104
)
// debugger
console
.
log
(
packageGoods
,
"packageGoods"
)
const
returnObj
=
{
expenseCategoryRules
,
shop4sDeductChargeFlag
:
obj
.
shop4sDeductChargeFlag
,
...
...
src/views/goods/shelfManage/components/editCon/components/classificationCptCheck.vue
View file @
dfd6ec1
...
...
@@ -190,6 +190,12 @@ export default {
default
()
{
return
{}
}
},
ruleInfo
:
{
type
:
Object
,
default
()
{
return
{}
}
}
},
directives
:
{
...
...
@@ -517,12 +523,6 @@ export default {
this
.
getRowItem
()
},
mounted
()
{
// this.getListPartnerMerchant()
// this.getMerchantLevelList()
// this.getListPlatformMerchant()
// setTimeout(() => {
// this.getEffectRule()
// }, 1000)
this
.
copyUpgradeGoodsList
=
deepClone
(
this
.
upgradeGoodsList
)
this
.
copyPackageGoodsList
=
deepClone
(
this
.
packageGoodsList
)
},
...
...
@@ -692,7 +692,7 @@ export default {
// goodsNameKeyword: this.goodsNameKeyword,
// upgradeGoodsNameOrCCode: this.goodsNameKeyword,
goodsNameKeyword
:
this
.
goodsNameKeyword
,
merchantIdList
:
[
this
.
financialLedgerParty
.
realityShopMerchantId
],
//
merchantIdList: [this.financialLedgerParty.realityShopMerchantId],
statusList
:
[
1
],
sceneTypeList
:
[
0
],
currentPage
:
this
.
currentPage
,
...
...
@@ -726,14 +726,14 @@ export default {
},
// 或者商品套餐
getSelectingListPackage
(
defaultSelect
=
[])
{
merchantPackageGoodsInfoPage
({
this
.
ruleInfo
?.
createBusinessApproveMerchant
&&
merchantPackageGoodsInfoPage
({
matchPackageNameOrCode
:
this
.
packageNameKeyword
,
currentPage
:
this
.
currentPagePackage
,
pageSize
:
this
.
pageSizePackage
,
status
:
1
,
// sceneType: this.routerInfo.scene,
sceneType
:
0
,
// 固定查权益类的
merchantIdList
:
[
this
.
financialLedgerParty
.
realityShopM
erchantId
]
merchantIdList
:
[
this
.
ruleInfo
.
createBusinessApproveMerchant
.
m
erchantId
]
})
.
then
((
res
)
=>
{
this
.
allPagesPackage
=
res
.
pages
...
...
@@ -747,7 +747,6 @@ export default {
})
let
arr
=
this
.
copyPackageGoodsList
.
concat
(
resArr
)
if
(
defaultSelect
?.
length
)
arr
=
arr
.
concat
(
defaultSelect
)
// this.packageGoodsList = this.unique(arr)
this
.
copyPackageGoodsList
=
this
.
uniquePackage
(
arr
)
})
.
catch
(()
=>
{
})
...
...
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