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 00ac3bb1
authored
Jul 24, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
财务/对账商品品类支持一级二级三级同时选择
1 parent
2f42269a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
35 deletions
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
src/views/systemConfig/merchant/financialRules/components/classificationCpt/GoodsSourceCategoryPicker.vue
src/views/systemConfig/merchant/merchantStep/components/classificationCpt.vue
src/views/systemConfig/merchant/financialRules/components/classificationCpt.vue
View file @
00ac3bb
...
@@ -2765,7 +2765,8 @@ export default {
...
@@ -2765,7 +2765,8 @@ export default {
}
}
::v-deep
{
::v-deep
{
.el-select__tags
{
.el-select__tags,
.el-cascader__tags
{
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
flex-wrap
:
nowrap
;
flex-wrap
:
nowrap
;
...
@@ -2775,10 +2776,19 @@ export default {
...
@@ -2775,10 +2776,19 @@ export default {
align-items
:
center
;
align-items
:
center
;
}
}
}
}
.el-cascader__tags
{
.el-tag
span
{
display
:
inline-block
;
max-width
:
240px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
.el-select__tags-text
{
.el-select__tags-text
{
display
:
inline-block
;
display
:
inline-block
;
max-width
:
2
6
0px
;
max-width
:
2
4
0px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
...
...
src/views/systemConfig/merchant/financialRules/components/classificationCpt/GoodsSourceCategoryPicker.vue
View file @
00ac3bb
...
@@ -61,13 +61,11 @@
...
@@ -61,13 +61,11 @@
]">
]">
<el-cascader
v-model=
"cascaderGoodsTypes"
<el-cascader
v-model=
"cascaderGoodsTypes"
placeholder=
"请选择品类"
placeholder=
"请选择品类"
style=
"width: 320px"
style=
"width: 370px"
clearable
collapse-tags
collapse-tags
filterable
filterable
:options=
"computedGoodsTypeTreeList"
:options=
"computedGoodsTypeTreeList"
:props=
"cascaderProps"
:props=
"cascaderProps"
:show-all-levels=
"false"
@
change=
"onCascaderChange"
/>
@
change=
"onCascaderChange"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"classificationObj.categoryType == 2"
<el-form-item
v-show=
"classificationObj.categoryType == 2"
...
@@ -307,18 +305,19 @@ export default {
...
@@ -307,18 +305,19 @@ export default {
}
}
});
});
// 1. 处理当前Tab已选路径(同一Tab内的禁用规则)
// ⚠️ 同Tab内的禁用规则已注释:不再禁用祖先和后代节点,允许在同一Tab内自由选择
currentPaths
.
forEach
((
path
)
=>
{
// // 1. 处理当前Tab已选路径(同一Tab内的禁用规则)
if
(
!
path
||
!
path
.
length
)
{
// currentPaths.forEach((path) => {
return
;
// if (!path || !path.length) {
}
// return;
// 禁用该路径的所有祖先(从第0个到倒数第2个)
// }
for
(
let
i
=
0
;
i
<
path
.
length
-
1
;
i
++
)
{
// // 禁用该路径的所有祖先(从第0个到倒数第2个)
shouldDisableValues
.
add
(
path
[
i
]);
// for (let i = 0; i < path.length - 1; i++) {
}
// shouldDisableValues.add(path[i]);
// 禁用该路径的所有后代
// }
this
.
collectAllDescendantsByPath
(
tree
,
path
,
shouldDisableValues
);
// // 禁用该路径的所有后代
});
// this.collectAllDescendantsByPath(tree, path, shouldDisableValues);
// });
// 2. 处理其他Tab已选路径(跨Tab禁用规则)
// 2. 处理其他Tab已选路径(跨Tab禁用规则)
// 规则:只禁用节点本身(防止重复),父级、子级、兄弟级都可以选
// 规则:只禁用节点本身(防止重复),父级、子级、兄弟级都可以选
...
...
src/views/systemConfig/merchant/merchantStep/components/classificationCpt.vue
View file @
00ac3bb
...
@@ -65,13 +65,11 @@
...
@@ -65,13 +65,11 @@
])">
])">
<el-cascader
v-model=
"cascaderGoodsTypes"
<el-cascader
v-model=
"cascaderGoodsTypes"
placeholder=
"请选择品类"
placeholder=
"请选择品类"
style=
"width: 320px"
style=
"width: 370px"
clearable
collapse-tags
collapse-tags
filterable
filterable
:options=
"computedGoodsTypeTreeList"
:options=
"computedGoodsTypeTreeList"
:props=
"cascaderProps"
:props=
"cascaderProps"
:show-all-levels=
"false"
@
change=
"onCascaderChange"
/>
@
change=
"onCascaderChange"
/>
</el-form-item>
</el-form-item>
<el-form-item
v-show=
"classificationObj.categoryType == 2"
<el-form-item
v-show=
"classificationObj.categoryType == 2"
...
@@ -81,7 +79,7 @@
...
@@ -81,7 +79,7 @@
v-el-select-loadmore=
"interestsLoadmore"
v-el-select-loadmore=
"interestsLoadmore"
placeholder=
"请选择商品"
placeholder=
"请选择商品"
popper-class=
"class123"
popper-class=
"class123"
style=
"width: 3
2
0px"
style=
"width: 3
7
0px"
value-key=
"merchantGoodsCode"
value-key=
"merchantGoodsCode"
collapse-tags
collapse-tags
filterable
filterable
...
@@ -1214,18 +1212,19 @@ export default {
...
@@ -1214,18 +1212,19 @@ export default {
}
}
});
});
// 1. 处理当前Tab已选路径(同一Tab内的禁用规则)
// ⚠️ 同Tab内的禁用规则已注释:不再禁用祖先和后代节点,允许在同一Tab内自由选择
currentPaths
.
forEach
((
path
)
=>
{
// // 1. 处理当前Tab已选路径(同一Tab内的禁用规则)
if
(
!
path
||
!
path
.
length
)
{
// currentPaths.forEach((path) => {
return
;
// if (!path || !path.length) {
}
// return;
// 禁用该路径的所有祖先(从第0个到倒数第2个)
// }
for
(
let
i
=
0
;
i
<
path
.
length
-
1
;
i
++
)
{
// // 禁用该路径的所有祖先(从第0个到倒数第2个)
shouldDisableValues
.
add
(
path
[
i
]);
// for (let i = 0; i < path.length - 1; i++) {
}
// shouldDisableValues.add(path[i]);
// 禁用该路径的所有后代
// }
this
.
collectAllDescendantsByPath
(
tree
,
path
,
shouldDisableValues
);
// // 禁用该路径的所有后代
});
// this.collectAllDescendantsByPath(tree, path, shouldDisableValues);
// });
// 2. 处理其他Tab已选路径(跨Tab禁用规则)
// 2. 处理其他Tab已选路径(跨Tab禁用规则)
// 规则:只禁用节点本身(防止重复),父级、子级、兄弟级都可以选
// 规则:只禁用节点本身(防止重复),父级、子级、兄弟级都可以选
...
@@ -2928,7 +2927,8 @@ export default {
...
@@ -2928,7 +2927,8 @@ export default {
}
}
::v-deep
{
::v-deep
{
.el-select__tags
{
.el-select__tags,
.el-cascader__tags
{
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
flex-wrap
:
nowrap
;
flex-wrap
:
nowrap
;
...
@@ -2938,10 +2938,19 @@ export default {
...
@@ -2938,10 +2938,19 @@ export default {
align-items
:
center
;
align-items
:
center
;
}
}
}
}
.el-cascader__tags
{
.el-tag
span
{
display
:
inline-block
;
max-width
:
240px
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
.el-select__tags-text
{
.el-select__tags-text
{
display
:
inline-block
;
display
:
inline-block
;
max-width
:
18
0px
;
max-width
:
24
0px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
...
...
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